/* Layout: phone app (customer) beside a tablet-style counter board (staff); one pane at a time on phones.
   Palette and type are lifted from Zoom's printed menu: sage + olive corner blocks, beige photo card,
   condensed bold names with olive price pills, wide-tracked teal labels. */
:root {
  --cream: #EFECE4;
  --paper: #F8F6F1;
  --photo: #E0DBCF;
  --sage: #879B8F;
  --sage-deep: #5D7166;
  --olive: #D4D8B1;
  --olive-deep: #B9BF8C;
  --teal: #24939D;
  --ink: #161816;
  --muted: #5F6762;
  --line: rgba(22, 24, 22, .12);
  --desk: #DCD8CC;

  --f-display: "Oswald", "Arial Narrow", "Helvetica Neue", sans-serif;
  --f-body: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--desk);
  color: var(--ink);
  font: 400 15px/1.45 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; cursor: pointer; }
input { font: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* ---------- page shell ---------- */
.shell { min-height: 100%; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px;
}
.tb-title { margin: 0; font-size: 14px; }
.tb-title b { font-family: var(--f-display); font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.tb-title span { color: var(--muted); }
.tb-hint { margin: 0 0 0 auto; color: var(--muted); font-size: 13px; }
.seg { display: none; background: var(--paper); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button {
  border: 0; background: none; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
}
.seg button[aria-selected="true"] { background: var(--ink); color: var(--cream); }

.stage {
  flex: 1; display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 28px;
  padding: 8px 24px 28px; align-items: start; max-width: 1500px; width: 100%; margin: 0 auto;
}
.phone {
  position: sticky; top: 12px;
  height: min(844px, calc(100dvh - 72px)); min-height: 600px;
  border: 10px solid var(--ink); border-radius: 46px; overflow: hidden;
  background: var(--cream);
  box-shadow: 0 30px 60px -30px rgba(22, 24, 22, .45);
}
.phone-inner { position: relative; height: 100%; overflow: hidden; background: var(--cream); }

@media (max-width: 1079px) {
  .tb-hint { display: none; }
  .seg { display: inline-flex; margin-left: auto; }
  .stage { grid-template-columns: minmax(0, 1fr); padding: 0; gap: 0; }
  .stage[data-pane="app"] .counter, .stage[data-pane="counter"] .phone { display: none; }
  .phone {
    position: relative; top: 0; border: 0; border-radius: 0; box-shadow: none;
    height: calc(100dvh - 56px - env(safe-area-inset-top, 0px)); min-height: 0;
    max-width: 520px; width: 100%; margin: 0 auto;
  }
  .counter { padding: 0 16px 24px; }
}
@media (max-width: 600px) { .tb-title { display: none; } .seg { margin: 0 auto; } }

/* ---------- app screens ---------- */
.screen { height: 100%; overflow-y: auto; overscroll-behavior: contain; scroll-behavior: smooth; padding-bottom: 150px; }
.screen.no-nav { padding-bottom: 110px; }
.label {
  font: 800 11px/1.2 var(--f-body); font-stretch: 125%; letter-spacing: .2em; text-transform: uppercase; color: var(--teal);
}
.h-display { font-family: var(--f-display); font-weight: 600; text-transform: uppercase; line-height: 1.02; letter-spacing: .005em; margin: 0; text-wrap: balance; }
.price {
  display: inline-block; font: 600 15px/1 var(--f-display); background: var(--olive); padding: 5px 8px 4px; border-radius: 7px;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.muted { color: var(--muted); }

/* home header with the menu's corner blocks */
.home-top { position: relative; padding: 18px 18px 8px; overflow: hidden; }
.home-top::before, .home-top::after { content: ""; position: absolute; top: 0; width: 120px; height: 90px; z-index: 0; }
.home-top::before { left: 0; background: var(--sage); clip-path: polygon(0 0, 100% 0, 0 100%); }
.home-top::after { right: 0; background: var(--olive); clip-path: polygon(0 0, 100% 0, 100% 100%); }
.home-top > * { position: relative; z-index: 1; }
.brand-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { width: 58px; height: 58px; color: var(--ink); flex: none; }
.stamp-pill {
  display: inline-flex; align-items: center; gap: 8px; border: 0; background: var(--ink); color: var(--cream);
  border-radius: 999px; padding: 7px 12px 7px 8px; font-size: 13px; font-weight: 600;
}
.stamp-pill .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--olive); color: var(--ink); display: grid; place-items: center; font: 700 12px var(--f-display); }
.greet { margin: 18px 0 2px; font-size: 14px; color: var(--muted); }
.greet b { color: var(--ink); }
.home-title { font-size: 40px; }
.home-title em { font-style: normal; color: var(--sage-deep); }

.hero {
  margin: 14px 18px 0; background: var(--sage); border-radius: var(--r-lg); padding: 18px 0 0 18px;
  display: grid; grid-template-columns: minmax(0, 1fr) 118px; gap: 6px; align-items: end; overflow: hidden;
}
.hero .label { color: var(--ink); opacity: .75; }
.hero p { margin: 6px 0 14px; font-size: 14px; color: var(--ink); }
.hero h2 { font-size: 26px; margin-top: 6px; }
.hero .mascot { width: 118px; margin-bottom: -4px; }
.where { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.where span { background: rgba(248, 246, 241, .55); border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 600; }

.sec { padding: 22px 18px 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.sec-head h3 { font: 600 22px/1 var(--f-display); text-transform: uppercase; margin: 0; }

.pop-row { display: grid; grid-auto-flow: column; grid-auto-columns: 148px; gap: 12px; overflow-x: auto; padding: 0 18px 4px; margin: 0 -18px; scrollbar-width: none; }
.pop-row::-webkit-scrollbar { display: none; }
.pop {
  border: 0; text-align: left; padding: 0; background: var(--paper); border-radius: var(--r-md); overflow: hidden;
  display: flex; flex-direction: column;
}
.pop .ph { background: var(--photo); height: 138px; display: grid; place-items: center; }
.pop .ph img { height: 128px; width: auto; }
.pop .txt { padding: 10px 11px 12px; display: grid; gap: 4px; }
.pop .txt b { font: 600 16px/1.05 var(--f-display); text-transform: uppercase; }
.pop .txt small { font-size: 12px; color: var(--muted); line-height: 1.3; }

.chips-bar {
  position: sticky; top: 0; z-index: 5; background: var(--cream);
  display: flex; gap: 8px; overflow-x: auto; padding: 12px 18px; margin-top: 18px; scrollbar-width: none;
  border-bottom: 1px solid var(--line);
}
.chips-bar::-webkit-scrollbar { display: none; }
.cat-chip {
  flex: none; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 8px 14px;
  font-size: 13px; font-weight: 600; white-space: nowrap;
}
.cat-chip.on { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.cat-sec { padding: 22px 18px 0; scroll-margin-top: 60px; }
.cat-sec > h3 { font: 600 24px/1 var(--f-display); text-transform: uppercase; margin: 0 0 4px; }
.cat-sec > p { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.prod-list { display: grid; gap: 10px; }
.prod {
  display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; align-items: stretch; text-align: left;
  border: 0; background: var(--paper); border-radius: var(--r-md); padding: 8px; width: 100%;
}
.prod .ph { background: var(--photo); border-radius: var(--r-sm); display: grid; place-items: center; min-height: 104px; overflow: hidden; }
.prod .ph img { height: 96px; width: auto; }
.prod .ph.wide img { height: auto; width: 100%; }
.ph.blank { font: 600 13px/1.1 var(--f-display); text-transform: uppercase; color: var(--sage-deep); text-align: center; padding: 8px; }
.prod .info { display: flex; flex-direction: column; gap: 4px; padding: 4px 4px 4px 0; min-width: 0; }
.prod .name { display: flex; justify-content: space-between; gap: 8px; align-items: start; }
.prod .name b { font: 600 18px/1.05 var(--f-display); text-transform: uppercase; }
.prod .desc { font-size: 12.5px; color: var(--muted); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.facts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; }
.facts span { font-size: 11px; font-weight: 600; color: var(--sage-deep); background: rgba(135, 155, 143, .16); border-radius: 6px; padding: 2px 6px; }

/* ---------- item builder ---------- */
.item-photo { position: relative; background: var(--photo); height: 250px; display: grid; place-items: center; }
.item-photo img { height: 220px; width: auto; }
.item-photo img.wide { height: auto; width: 78%; }
.icon-btn {
  position: absolute; top: 14px; left: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: var(--paper); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}
.icon-btn svg { width: 20px; height: 20px; }
.item-head { padding: 18px 18px 6px; display: grid; gap: 8px; }
.item-head .row { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.item-head h1 { font-size: 32px; }
.item-head p { margin: 0; color: var(--muted); font-size: 14px; }

.group { padding: 18px 18px 4px; border-top: 1px solid var(--line); margin-top: 14px; }
.group + .group { margin-top: 0; }
.g-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.g-head h4 { margin: 0; font: 600 18px/1.1 var(--f-display); text-transform: uppercase; }
.g-head .step { color: var(--teal); margin-right: 6px; }
.tag { font-size: 11px; font-weight: 700; border-radius: 6px; padding: 3px 7px; white-space: nowrap; }
.tag.req { background: var(--ink); color: var(--cream); }
.tag.req.done { background: var(--sage); color: var(--ink); }
.tag.opt { background: rgba(22, 24, 22, .07); color: var(--muted); }
.sub-sec { font: 800 10px/1 var(--f-body); font-stretch: 125%; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 12px 0 8px; }

.opt-rows { display: grid; gap: 8px; }
.opt-row {
  display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: center; text-align: left;
  border: 1.5px solid var(--line); background: var(--paper); border-radius: 14px; padding: 12px 14px;
}
.opt-row .mark { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; }
.opt-row.on { border-color: var(--ink); }
.opt-row.on .mark { border-color: var(--ink); background: var(--ink); }
.opt-row.on .mark::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--olive); }
.opt-row b { display: block; font-weight: 700; font-size: 14.5px; }
.opt-row small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.35; margin-top: 2px; }
.opt-row .p { font: 600 15px var(--f-display); font-variant-numeric: tabular-nums; }

.opt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-chip {
  border: 1.5px solid var(--line); background: var(--paper); border-radius: 999px; padding: 8px 13px; font-size: 13.5px; font-weight: 600;
  display: inline-flex; gap: 6px; align-items: center;
}
.opt-chip i { font-style: normal; color: var(--sage-deep); font-weight: 700; font-size: 12.5px; }
.opt-chip.on { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.opt-chip.on i { color: var(--olive); }
.opt-chip[disabled] { opacity: .4; cursor: not-allowed; }

.note-field { width: 100%; border: 1.5px solid var(--line); background: var(--paper); border-radius: 14px; padding: 12px 14px; resize: none; min-height: 64px; font-size: 14px; }

/* bottom action bars inside the phone */
.action-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, var(--cream) 70%, rgba(239, 236, 228, 0));
  display: flex; gap: 10px; align-items: center;
}
.qty { display: inline-flex; align-items: center; background: var(--paper); border-radius: 999px; border: 1.5px solid var(--line); }
.qty button { width: 38px; height: 46px; border: 0; background: none; font-size: 20px; font-weight: 600; }
.qty span { min-width: 18px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.cta {
  flex: 1; border: 0; background: var(--ink); color: var(--cream); border-radius: 999px; height: 50px; padding: 0 20px;
  font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.cta .amt { font: 600 17px var(--f-display); font-variant-numeric: tabular-nums; }
.cta.waiting { background: var(--photo); color: var(--muted); justify-content: center; }
.cta.center { justify-content: center; }

.bagbar {
  position: absolute; left: 12px; right: 12px; bottom: 84px; z-index: 15;
  border: 0; background: var(--ink); color: var(--cream); border-radius: 18px; padding: 12px 16px;
  display: flex; align-items: center; gap: 12px; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .55);
  animation: rise .35s cubic-bezier(.2, .9, .3, 1.2);
}
.bagbar .count { background: var(--olive); color: var(--ink); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 700 14px var(--f-display); }
.bagbar b { flex: 1; text-align: left; font-weight: 700; }
.bagbar .amt { font: 600 17px var(--f-display); }

.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 16;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--paper); border-top: 1px solid var(--line);
  padding: 6px 8px calc(8px + env(safe-area-inset-bottom, 0px));
}
.tabbar button { border: 0; background: none; display: grid; justify-items: center; gap: 3px; padding: 6px 0; font-size: 11px; font-weight: 700; color: var(--muted); position: relative; }
.tabbar svg { width: 24px; height: 24px; }
.tabbar button.on { color: var(--ink); }
.tabbar button.on svg { color: var(--sage-deep); }
.tabbar .live { position: absolute; top: 4px; left: calc(50% + 8px); width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 2px var(--paper); }

/* ---------- bag / checkout ---------- */
.plain-head { padding: 18px 18px 6px; display: flex; align-items: center; gap: 12px; }
.plain-head .icon-btn { position: static; }
.plain-head h1 { font-size: 30px; }
.card { background: var(--paper); border-radius: var(--r-md); padding: 14px; }
.bag-line { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.bag-line + .bag-line { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.bag-line .ph { background: var(--photo); border-radius: 10px; height: 64px; display: grid; place-items: center; overflow: hidden; }
.bag-line .ph img { height: 58px; width: auto; }
.bag-line .ph.wide img { width: 100%; height: auto; }
.bag-line b { font: 600 16px/1.1 var(--f-display); text-transform: uppercase; }
.bag-line ul { margin: 4px 0 8px; padding: 0; list-style: none; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.bag-line .qty button { width: 30px; height: 32px; font-size: 17px; }
.bag-line .lp { font: 600 16px var(--f-display); font-variant-numeric: tabular-nums; }

.pick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pick {
  border: 1.5px solid var(--line); background: var(--paper); border-radius: 14px; padding: 10px 8px; text-align: center;
  display: grid; gap: 2px;
}
.pick b { font: 600 17px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.pick small { font-size: 11.5px; color: var(--muted); }
.pick.on { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.pick.on small { color: var(--olive); }

.field { display: grid; gap: 6px; }
.field label { font-size: 12px; font-weight: 700; color: var(--muted); }
.field input { width: 100%; min-width: 0; border: 1.5px solid var(--line); background: var(--paper); border-radius: 12px; padding: 12px 14px; font-size: 15px; }
.fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }

.totals { display: grid; gap: 6px; font-size: 14px; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font: 600 20px var(--f-display); text-transform: uppercase; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; }
.earn { display: flex; gap: 10px; align-items: center; background: var(--olive); border-radius: 14px; padding: 12px 14px; font-size: 13.5px; font-weight: 600; }
.earn .star { font: 700 18px var(--f-display); }
.empty { text-align: center; padding: 40px 24px; display: grid; justify-items: center; gap: 10px; }
.empty img { width: 120px; }

/* ---------- order status ---------- */
.status-top { background: var(--sage); padding: 22px 18px 24px; position: relative; overflow: hidden; }
.status-top::after { content: ""; position: absolute; right: 0; top: 0; width: 110px; height: 80px; background: var(--olive); clip-path: polygon(0 0, 100% 0, 100% 100%); }
.status-top .num { font: 700 64px/0.9 var(--f-display); letter-spacing: -.01em; }
.status-top h1 { font-size: 30px; margin-top: 10px; position: relative; z-index: 1; padding-right: 96px; }
.status-top p { padding-right: 96px; }
.status-top p { margin: 6px 0 0; font-size: 14px; }
.status-top .mascot { position: absolute; right: 14px; bottom: -6px; width: 96px; }
.status-top.ready { background: var(--olive); }
.status-top.ready::after { background: var(--sage); }
.status-top.ready .label { color: var(--ink); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; position: relative; padding-bottom: 18px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line); }
.steps li:last-child::before { display: none; }
.steps .bullet { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); background: var(--paper); display: grid; place-items: center; font: 700 13px var(--f-display); color: var(--muted); }
.steps li.done .bullet { background: var(--sage); border-color: var(--sage); color: var(--ink); }
.steps li.now .bullet { background: var(--ink); border-color: var(--ink); color: var(--olive); animation: pulse 1.6s infinite; }
.steps li.done::before { background: var(--sage); }
.steps b { display: block; font-size: 15px; }
.steps small { color: var(--muted); font-size: 12.5px; }

.demo-note { font-size: 12px; color: var(--muted); background: rgba(36, 147, 157, .1); border-radius: 12px; padding: 10px 12px; }
.demo-note b { color: var(--teal); }
.link-btn { border: 0; background: none; padding: 0; color: var(--teal); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- rewards ---------- */
.reward-card {
  margin: 8px 18px 0; border-radius: var(--r-lg); background: var(--ink); color: var(--cream); padding: 20px; position: relative; overflow: hidden;
}
.reward-card::before { content: ""; position: absolute; left: 0; bottom: 0; width: 120px; height: 70px; background: var(--sage); clip-path: polygon(0 0, 0 100%, 100% 100%); opacity: .9; }
.reward-card > * { position: relative; }
.reward-card .label { color: var(--olive); }
.reward-card h2 { font-size: 30px; margin: 8px 0 4px; }
.reward-card p { margin: 0 0 16px; font-size: 13.5px; opacity: .8; }
.stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.stamps span { aspect-ratio: 1; border-radius: 50%; border: 2px dashed rgba(239, 236, 228, .35); display: grid; place-items: center; }
.stamps span.on { border: 0; background: var(--olive); color: var(--ink); }
.stamps span.on svg { width: 60%; height: 60%; }
.stamps span.free { border-style: solid; border-color: var(--olive); color: var(--olive); font: 700 11px var(--f-display); text-transform: uppercase; }
.stamps span.just { animation: pop .5s cubic-bezier(.2, .9, .3, 1.5); }
.hist { display: grid; gap: 10px; }
.hist .card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.hist b { font: 600 16px/1.1 var(--f-display); text-transform: uppercase; }
.hist small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.small-btn { border: 0; background: var(--olive); border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 13px; white-space: nowrap; }

/* ---------- counter board ---------- */
.counter { min-width: 0; }
.board { background: var(--paper); border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px -36px rgba(22, 24, 22, .4); }
.board-head {
  background: var(--ink); color: var(--cream); padding: 14px 18px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.board-head .logo { width: 44px; height: 44px; }
.board-head h2 { margin: 0; font: 600 22px/1 var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
.board-head small { display: block; font-size: 12px; opacity: .7; margin-top: 3px; }
.board-head .grow { flex: 1; min-width: 140px; }
.clock { font: 600 26px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.sound {
  border: 1.5px solid rgba(239, 236, 228, .3); background: none; color: var(--cream); border-radius: 999px; padding: 7px 12px; font-size: 12.5px; font-weight: 700;
}
.sound.on { background: var(--olive); color: var(--ink); border-color: var(--olive); }
.board-stats { display: flex; gap: 22px; padding: 12px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.board-stats b { color: var(--ink); font: 600 18px var(--f-display); margin-right: 4px; font-variant-numeric: tabular-nums; }
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 16px; align-items: start; }
@media (max-width: 1300px) and (min-width: 1080px) { .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .cols { grid-template-columns: minmax(0, 1fr); } }
.col { background: var(--cream); border-radius: 16px; padding: 12px; display: grid; gap: 10px; align-content: start; min-height: 160px; }
.col-head { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px; }
.col-head h3 { margin: 0; font: 600 17px/1 var(--f-display); text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.col-head h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.col-head span { font: 600 15px var(--f-display); background: var(--paper); border-radius: 999px; padding: 2px 10px; }
.col-empty { font-size: 13px; color: var(--muted); padding: 18px 4px; text-align: center; }

.ticket { background: var(--paper); border-radius: 14px; padding: 12px 14px; display: grid; gap: 10px; border-left: 5px solid var(--c); }
.ticket.fresh { animation: arrive 1.2s ease-out; }
.t-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: start; }
.t-num { font: 700 28px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.t-who b { display: block; font-weight: 700; font-size: 15px; }
.t-who small { color: var(--muted); font-size: 12px; }
.t-time { text-align: right; }
.t-time b { display: block; font: 600 17px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.t-time small { font-size: 11.5px; font-weight: 700; color: var(--teal); }
.t-time small.late { color: #B4532A; }
.t-items { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.t-items li b { font-weight: 700; font-size: 14px; }
.t-items li b em { font-style: normal; background: var(--olive); border-radius: 5px; padding: 0 5px; margin-right: 6px; font-family: var(--f-display); }
.t-items ul { margin: 3px 0 0; padding-left: 16px; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.t-foot { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.badge { font-size: 11px; font-weight: 700; border-radius: 6px; padding: 3px 7px; }
.badge.paid { background: rgba(135, 155, 143, .25); color: var(--sage-deep); }
.badge.due { background: var(--olive); color: var(--ink); }
.badge.src { background: rgba(36, 147, 157, .12); color: var(--teal); }
.t-btn { margin-left: auto; border: 0; background: var(--ink); color: var(--cream); border-radius: 999px; padding: 9px 16px; font-weight: 700; font-size: 13px; }
.t-btn.ready { background: var(--sage); color: var(--ink); }
.t-btn.done { background: var(--olive); color: var(--ink); }
.board-foot { padding: 0 18px 16px; font-size: 12px; color: var(--muted); }

.toast {
  position: absolute; left: 14px; right: 14px; top: 14px; z-index: 40; background: var(--ink); color: var(--cream);
  border-radius: 16px; padding: 12px 14px; display: flex; gap: 12px; align-items: center; font-size: 13.5px;
  animation: drop .4s cubic-bezier(.2, .9, .3, 1.2);
}
.toast .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--olive); color: var(--ink); display: grid; place-items: center; flex: none; }
.toast .ic svg { width: 20px; height: 20px; }
.toast b { display: block; }

@keyframes rise { from { transform: translateY(30px); opacity: 0; } }
@keyframes drop { from { transform: translateY(-30px); opacity: 0; } }
@keyframes pop { 0% { transform: scale(.3); } 100% { transform: scale(1); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(22, 24, 22, .12); } }
@keyframes arrive { 0% { background: var(--olive); transform: scale(.97); } 100% { background: var(--paper); transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; } }

/* ---------- real app pages ---------- */
body.app-page { background: var(--cream); }
body.app-page .phone-inner { height: 100dvh; max-width: 520px; margin: 0 auto; }
@media (min-width: 560px) {
  body.app-page { background: var(--desk); }
  body.app-page .phone-inner { box-shadow: 0 0 0 1px var(--line), 0 30px 60px -30px rgba(22, 24, 22, .35); }
}
.form-error { margin: 0; background: rgba(180, 83, 42, .12); color: #8A3A17; border-radius: 12px; padding: 10px 12px; font-size: 13.5px; font-weight: 600; }
.check { display: flex; gap: 10px; align-items: start; font-size: 13px; color: var(--muted); margin-top: 10px; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); margin-top: 1px; flex: none; }
.opt-row[disabled] { opacity: .5; cursor: not-allowed; }
.soon { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: rgba(22, 24, 22, .07); border-radius: 6px; padding: 3px 6px; }
.cta[disabled] { opacity: .6; cursor: wait; }

body.counter-page { background: var(--desk); padding: calc(16px + env(safe-area-inset-top, 0px)) 16px 24px; min-height: 100%; }
body.counter-page .board { max-width: 1500px; margin: 0 auto; }
.conn { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 6px 10px; background: rgba(135, 155, 143, .3); color: var(--cream); }
.conn.off { background: #B4532A; }
.pin-wrap { min-height: calc(100dvh - 48px); display: grid; place-items: center; }
.pin-card { background: var(--paper); border-radius: 22px; padding: 28px; width: min(360px, 100%); display: grid; gap: 14px; justify-items: center; text-align: center; }
.pin-card .logo { width: 72px; height: 72px; }
.pin-card h1 { font-size: 26px; }
.pin-card input { width: 100%; text-align: center; font: 600 28px var(--f-display); letter-spacing: .4em; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px; background: var(--cream); }
.pin-card .cta { width: 100%; justify-content: center; }
.t-cancel { border: 0; background: none; color: var(--muted); font-size: 12px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; padding: 4px; }
.t-phone { font-size: 12px; color: var(--muted); }

/* ---------- pay now, I'm here, MyClub ---------- */
.sheet-wrap { position: absolute; inset: 0; z-index: 50; background: rgba(22, 24, 22, .45); display: flex; align-items: flex-end; animation: fade .2s ease-out; }
.sheet {
  width: 100%; background: var(--paper); border-radius: 24px 24px 0 0; padding: 10px 18px calc(20px + env(safe-area-inset-bottom, 0px));
  display: grid; gap: 14px; animation: rise .3s cubic-bezier(.2, .9, .3, 1.1);
}
.sheet-grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); justify-self: center; }
.sheet-head { display: flex; justify-content: space-between; align-items: baseline; }
.sheet-head b { font-size: 22px; }
.sheet-head .amt { font: 600 26px var(--f-display); font-variant-numeric: tabular-nums; }
.pay-card { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: 13px; }
.pay-card .chip { width: 40px; height: 28px; border-radius: 6px; background: var(--ink); position: relative; }
.pay-card .chip::after { content: ""; position: absolute; left: 7px; top: 9px; width: 12px; height: 9px; border-radius: 2px; background: var(--olive); }
.pay-card b { display: block; font-size: 14px; }
.pay-card small { color: var(--muted); }
.demo-pay { margin: 0; font-size: 12px; color: var(--muted); text-align: center; line-height: 1.4; }
.spin { width: 16px; height: 16px; border: 2px solid rgba(239, 236, 228, .35); border-top-color: var(--cream); border-radius: 50%; display: inline-block; animation: spin .8s linear infinite; margin-right: 8px; vertical-align: -3px; }
.soon { color: var(--sage-deep); background: rgba(135, 155, 143, .18); }

.here-btn {
  width: 100%; border: 0; border-radius: 18px; background: var(--ink); color: var(--cream); padding: 16px 18px; text-align: left;
  display: grid; gap: 2px; box-shadow: 0 12px 24px -16px rgba(0, 0, 0, .6);
}
.here-btn b { font: 600 24px/1 var(--f-display); text-transform: uppercase; letter-spacing: .01em; }
.here-btn b::after { content: " 👋"; }
.here-btn small { color: var(--olive); font-size: 13px; }
.here-done { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: center; background: rgba(36, 147, 157, .1); border-radius: 16px; padding: 12px 14px; }
.here-done .ic { width: 34px; height: 34px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 800; }
.here-done b { display: block; font-size: 14.5px; }
.here-done small { color: var(--muted); font-size: 12.5px; }
.paid-ok { color: var(--sage-deep); }

.ticket.here { box-shadow: 0 0 0 2px var(--teal); }
.here-flag { margin: -12px -14px 0; padding: 7px 14px; background: var(--teal); color: #fff; font-size: 12.5px; font-weight: 800; letter-spacing: .02em; border-radius: 0 10px 0 0; }
.badge.paid.strong { background: var(--sage-deep); color: #fff; letter-spacing: .03em; }
.mc-check { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); cursor: pointer; }
.mc-check input { width: 16px; height: 16px; accent-color: var(--sage-deep); margin: 0; }
.mc-link { color: var(--muted); text-decoration: none; }
.mc-link.on { color: var(--ink); background: var(--olive); border-radius: 999px; padding: 2px 10px 2px 8px; }
.mc { margin: 0 16px 16px; border: 1.5px dashed var(--olive-deep); border-radius: 16px; padding: 14px; display: grid; gap: 12px; scroll-margin-top: 16px; }
.mc-head h3 { margin: 0; font: 600 18px/1 var(--f-display); text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.mc-head h3 span { font-size: 14px; background: var(--olive); border-radius: 999px; padding: 3px 10px; }
.mc-head p { margin: 6px 0 0; font-size: 13px; color: var(--muted); max-width: 70ch; }
.mc-list { display: grid; gap: 8px; }
.mc-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) 130px auto; gap: 14px; align-items: center; background: var(--cream); border-radius: 12px; padding: 10px 12px; }
.mc-row ul { margin: 0; padding: 0; list-style: none; font-size: 12.5px; line-height: 1.4; }
.mc-id b, .mc-pay b { display: block; font: 600 17px/1.1 var(--f-display); font-variant-numeric: tabular-nums; }
.mc-id small, .mc-pay small { font-size: 11.5px; color: var(--muted); }
@media (max-width: 760px) { .mc-row { grid-template-columns: minmax(0, 1fr) auto; } .mc-row ul { grid-column: 1 / -1; grid-row: 2; } .mc-pay { text-align: right; } .mc-row .t-btn { grid-column: 1 / -1; margin: 0; } }
@keyframes fade { from { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- counter: views, history, undo ---------- */
.v-tabs { display: inline-flex; background: rgba(239, 236, 228, .12); border-radius: 999px; padding: 3px; gap: 2px; }
.v-tabs button { border: 0; background: none; color: var(--cream); border-radius: 999px; padding: 7px 14px; font-size: 12.5px; font-weight: 700; }
.v-tabs button[aria-selected="true"] { background: var(--cream); color: var(--ink); }
.hist-bar { display: flex; gap: 12px; flex-wrap: wrap; padding: 14px 18px 4px; }
.hist-bar .field { display: grid; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.hist-bar .field.grow { flex: 1; min-width: 180px; }
.hist-bar input { border: 1.5px solid var(--line); background: var(--cream); border-radius: 10px; padding: 9px 12px; font-size: 14px; color: var(--ink); width: 100%; }
.h-wrap { overflow-x: auto; padding: 0 16px 16px; }
.h-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 760px; }
.h-table th { text-align: left; font: 800 10.5px var(--f-body); font-stretch: 125%; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 10px 8px; border-bottom: 1.5px solid var(--line); }
.h-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.h-table td b { display: block; }
.h-table td small { color: var(--muted); font-size: 11.5px; }
.h-table .num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--f-display); font-size: 15px; }
.h-table .h-items { color: var(--muted); font-size: 12px; max-width: 360px; }
.h-table tr.cx td { opacity: .5; text-decoration: line-through; }
.h-table tr.cx td:last-child, .h-table tr.cx td:nth-child(6) { text-decoration: none; }
.pill { display: inline-block; font-size: 11px; font-weight: 800; border-radius: 6px; padding: 2px 7px; }
.pill.ok { background: rgba(135, 155, 143, .25); color: var(--sage-deep); }
.pill.warn { background: var(--olive); color: var(--ink); }
.undo-bar {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 60;
  background: var(--ink); color: var(--cream); border-radius: 14px; padding: 10px 10px 10px 16px; display: flex; gap: 14px; align-items: center;
  font-size: 14px; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5); animation: rise .3s ease-out; max-width: calc(100% - 32px);
}
.undo-bar button { border: 0; background: var(--olive); color: var(--ink); border-radius: 10px; padding: 8px 14px; font-weight: 800; }
