/* Customer ordering app.
   Mobile first, and deliberately built to look right with no dish photos — a
   new restaurant rarely has 60 good pictures on day one, and a grid of broken
   image boxes is worse than none.

   No web fonts on purpose: a hungry person on a weak connection should not
   wait for a typeface to download before they can read the menu. */

:root {
  --paper: #fbfaf7;
  --surface: #ffffff;
  --ink: #191c1a;
  --muted: #6b7370;
  --line: #e6e4de;
  --veg: #2e7d5b;
  --nonveg: #c0392b;

  /* Overwritten at runtime from the restaurant's own branding. */
  --accent: #b7410e;
  --accent-ink: #ffffff;
  --accent-wash: rgba(183, 65, 14, 0.08);

  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;

  --radius: 12px;
  --tabs-h: 58px;
  --bill-h: 58px;
  --safe: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hidden { display: none !important; }

/* ---------- boot ---------- */

.boot {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--paper);
  z-index: 90;
}
.boot-mark {
  width: 26px; height: 26px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- shell ---------- */

.app { min-height: 100vh; }

#screens {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 16px calc(var(--tabs-h) + var(--bill-h) + var(--safe) + 24px);
}

.screen { animation: screen-in 0.16s ease-out; }
@keyframes screen-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- tab bar ---------- */

.tabs {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding-bottom: var(--safe);
  display: flex;
  justify-content: center;
}
.tabs > * { max-width: 140px; }
.tab {
  flex: 1;
  height: var(--tabs-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.01em;
}
.tab svg { width: 21px; height: 21px; stroke-width: 1.7; }
.tab[aria-selected="true"] { color: var(--accent); font-weight: 650; }
.tab .dot {
  position: absolute;
  margin: -18px 0 0 16px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- the bill ---------- */

.bill {
  position: fixed;
  left: 0; right: 0;
  bottom: calc(var(--tabs-h) + var(--safe));
  z-index: 41;
  padding: 0 16px 8px;
  animation: bill-in 0.2s ease-out;
}
@keyframes bill-in { from { transform: translateY(100%); } to { transform: none; } }

.bill-inner {
  max-width: 528px;
  margin: 0 auto;
  height: var(--bill-h);
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 0 16px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}
.bill-left { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.bill-count {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
}
.bill-total {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.bill-go {
  margin-left: auto;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
}
.bill.nudge .bill-inner { animation: nudge 0.24s ease-out; }
@keyframes nudge {
  0% { transform: none; }
  45% { transform: translateY(-5px); }
  100% { transform: none; }
}

/* ---------- home ---------- */

.hero { padding: 26px 0 4px; }
.hero-logo {
  width: 58px; height: 58px;
  border-radius: var(--radius);
  object-fit: cover;
  margin-bottom: 14px;
  display: block;
}
.hero h1 {
  margin: 0;
  font-size: clamp(28px, 8vw, 36px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 800;
}
.hero .tagline { margin: 7px 0 0; color: var(--muted); font-size: 14px; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 600;
}
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--veg); }
.dot-live.shut { background: var(--nonveg); }
.status.shut { color: var(--nonveg); }

.closed-note {
  margin: 12px 0 0;
  padding: 12px 14px;
  background: #fff4e8;
  border: 1px solid #f0d5b4;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.45;
}

/* Fulfilment sits on the home screen, not buried in checkout: choosing how
   you want the food is the first real decision, and hiding it is what made
   people order takeaway when they meant delivery. */
.how { margin-top: 22px; }
.how-label {
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 9px;
}
.how-row { display: flex; gap: 8px; }
.how-btn {
  flex: 1;
  padding: 13px 8px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.how-btn[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-wash);
}
.how-btn[disabled] { opacity: 0.4; cursor: not-allowed; }

.search-jump {
  width: 100%;
  margin-top: 18px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-size: 15px;
  text-align: left;
}

.sec-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 32px 0 14px;
}
.sec-head h2 {
  margin: 0;
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}
.sec-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.sec-head .more { order: 3; }
.sec-head .more {
  margin-left: auto;
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
}

/* Category tiles are built around type, so a restaurant with no photos still
   gets a designed home screen. A photo, when there is one, becomes the
   background rather than the whole tile. */
.cats {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin: 0 -16px;
  padding: 0 16px 4px;
  scrollbar-width: none;
}
.cats::-webkit-scrollbar { display: none; }

.cat {
  position: relative;
  flex: 0 0 148px;
  height: 116px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--accent-wash);
  border: 1px solid var(--line);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 11px;
  text-align: left;
}
.cat img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.cat.has-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 30%, rgba(0, 0, 0, 0.68));
}
.cat-name {
  position: relative;
  z-index: 1;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--accent);
}
.cat.has-photo .cat-name { color: #fff; }
.cat-count {
  position: relative;
  z-index: 1;
  font-family: var(--mono);
  font-size: 11px;
  margin-top: 3px;
  color: var(--muted);
}
.cat.has-photo .cat-count { color: rgba(255, 255, 255, 0.82); }

.info-card {
  margin-top: 30px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.info-row { display: flex; gap: 12px; padding: 7px 0; font-size: 14px; line-height: 1.45; }
.info-row .k {
  font: 600 11px/1.5 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 74px;
}
.info-row a { color: var(--accent); text-decoration: none; font-weight: 600; }

/* ---------- menu ---------- */

.filters {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  padding: 14px 0 10px;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 8px;
}
.search {
  flex: 1;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  min-width: 0;
}
.search:focus { border-color: var(--accent); outline: none; }
.chip {
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 13px;
  white-space: nowrap;
}
.chip[aria-pressed="true"] {
  border-color: var(--veg);
  color: var(--veg);
  background: rgba(46, 125, 91, 0.07);
  font-weight: 600;
}

.group-head {
  margin: 26px 0 2px;
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

/* A card, not a list row. On a phone the card edge is what tells you where one
   dish ends and the next begins — a hairline rule disappears the moment there
   is a photo next to it. */
.dish {
  display: flex;
  gap: 14px;
  padding: 12px;
  margin-bottom: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  align-items: flex-start;
}
.dish.out { opacity: 0.55; }
.dish-body { flex: 1; min-width: 0; padding: 2px 0 2px 2px; }

.dish-mark {
  display: inline-block;
  width: 12px; height: 12px;
  border: 1.5px solid var(--veg);
  border-radius: 2px;
  position: relative;
  vertical-align: -1px;
}
.dish-mark::after {
  content: "";
  position: absolute;
  inset: 2.5px;
  border-radius: 50%;
  background: var(--veg);
}
.dish-mark.nonveg { border-color: var(--nonveg); }
.dish-mark.nonveg::after { background: var(--nonveg); }

.dish h3 { margin: 6px 0 0; font-size: 16px; font-weight: 650; letter-spacing: -0.01em; }
.dish .price {
  margin: 5px 0 0;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 15px;
}
.dish .desc {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dish .flags { margin-top: 7px; display: flex; gap: 6px; flex-wrap: wrap; }
.flag {
  font-size: 11px;
  font-family: var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-wash);
  padding: 3px 6px;
  border-radius: 4px;
}

/* The photo slot collapses entirely when there is no image, rather than
   showing a placeholder box. A clean text menu beats a grid of grey squares.
   With a photo the slot moves to the left and the button sits over its lower
   edge; without one it stays on the right as a plain button. */
.dish-side { flex: none; display: flex; flex-direction: column; align-items: center; }
.dish-side.has-photo {
  order: -1;
  position: relative;
  width: 108px;
  padding-bottom: 10px;
}
.dish-side.no-photo { align-self: center; }
.dish-photo {
  width: 108px; height: 108px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--line);
  display: block;
}
.dish-side.has-photo .add,
.dish-side.has-photo .stepper {
  position: absolute;
  left: 50%;
  bottom: -2px;
  transform: translateX(-50%);
  min-width: 88px;
}

.add {
  border: 1.5px solid var(--accent);
  color: var(--accent);
  background: var(--surface);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 9px 18px;
  border-radius: 8px;
  min-width: 96px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07);
}
.add:hover { background: var(--accent-wash); }
.add[disabled] {
  border-color: var(--line);
  color: var(--muted);
  background: var(--paper);
  cursor: not-allowed;
  box-shadow: none;
}

.stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--accent);
  border-radius: 8px;
  overflow: hidden;
  min-width: 96px;
  background: var(--surface);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07);
}
.stepper button { width: 32px; height: 36px; color: var(--accent); font-size: 18px; font-weight: 700; }
.stepper span {
  flex: 1;
  text-align: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
}

/* ---------- orders and account ---------- */

.screen-title {
  margin: 26px 0 16px;
  font-size: 24px;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
  background: var(--surface);
  width: 100%;
  text-align: left;
  display: block;
}
.card[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-wash); }
.card-title { font-weight: 650; font-size: 14.5px; }
.card-meta { color: var(--muted); font-size: 13px; margin-top: 4px; line-height: 1.45; }
.card .far { color: var(--nonveg); font-size: 12.5px; margin-top: 6px; }

.order-card { display: flex; align-items: center; gap: 12px; }
.order-card .no {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.order-card .amt {
  margin-left: auto;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  text-align: right;
}
.state {
  display: inline-block;
  font: 600 10px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 6px;
  border-radius: 4px;
  background: var(--accent-wash);
  color: var(--accent);
  margin-top: 5px;
}
.state.done { background: rgba(46, 125, 91, 0.1); color: var(--veg); }
.state.stopped { background: rgba(192, 57, 43, 0.09); color: var(--nonveg); }

.rows { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.row-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  text-align: left;
}
.row-link:last-child { border-bottom: none; }
.row-link svg { width: 19px; height: 19px; stroke-width: 1.7; color: var(--muted); flex: none; }
.row-link .chev { margin-left: auto; color: var(--line); }
.row-link.danger { color: var(--nonveg); font-weight: 600; }

.you {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 16px;
}
.you-mark {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--accent-wash);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
  flex: none;
}
.you-name { font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.you-sub { color: var(--muted); font-size: 13.5px; margin-top: 2px; font-family: var(--mono); }

.empty { text-align: center; padding: 56px 20px; }
.empty h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -0.02em; }
.empty p { margin: 0 0 18px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }

/* ---------- sign in ---------- */

.signin {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--paper);
  overflow: auto;
  padding: 0 20px calc(28px + var(--safe));
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.signin-inner { width: 100%; max-width: 380px; margin: 0 auto; }
.signin-brand { text-align: center; margin-bottom: 34px; }
.signin-brand img {
  width: 96px; height: 96px;
  object-fit: contain;
  border-radius: var(--radius);
  margin-bottom: 14px;
}
.signin-brand .wordmark {
  font-size: clamp(24px, 7vw, 30px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.signin h2 { margin: 0 0 6px; font-size: 21px; letter-spacing: -0.025em; }
.signin .sub { margin: 0 0 22px; color: var(--muted); font-size: 14px; line-height: 1.5; }

.phone-field {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.phone-field:focus-within { border-color: var(--accent); }
.phone-field .cc {
  padding: 0 12px;
  font-family: var(--mono);
  font-weight: 600;
  color: var(--muted);
  border-right: 1px solid var(--line);
  align-self: stretch;
  display: flex;
  align-items: center;
}
.phone-field input {
  flex: 1;
  padding: 15px 13px;
  border: none;
  background: none;
  font-size: 17px;
  min-width: 0;
}
.phone-field input:focus { outline: none; }

.code-field {
  width: 100%;
  padding: 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-family: var(--mono);
  font-size: 22px;
  letter-spacing: 0.4em;
  text-align: center;
}
.code-field:focus { border-color: var(--accent); outline: none; }

.legal { margin-top: 20px; text-align: center; color: var(--muted); font-size: 12.5px; line-height: 1.6; }

/* ---------- shared bits ---------- */

.field { display: block; margin-bottom: 14px; }
.field span {
  display: block;
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; }

.btn {
  display: block;
  width: 100%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  padding: 15px;
  border-radius: var(--radius);
  font-size: 15.5px;
  text-align: center;
}
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn.quiet { background: var(--surface); color: var(--ink); border: 1px solid var(--line); font-weight: 600; }
.btn.link { background: none; color: var(--accent); font-weight: 650; padding: 12px; }

.note { color: var(--muted); font-size: 13px; line-height: 1.5; }
.error {
  background: #fdecea;
  border: 1px solid #f5c2bd;
  color: #8d2a20;
  padding: 11px 13px;
  border-radius: 8px;
  font-size: 13.5px;
  margin-bottom: 14px;
}

/* ---------- sheets ---------- */

.scrim {
  position: fixed;
  inset: 0;
  background: rgba(20, 24, 22, 0.45);
  z-index: 70;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sheet {
  background: var(--surface);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow: auto;
  border-radius: 18px 18px 0 0;
  padding: 22px 16px calc(22px + var(--safe));
  animation: rise 0.2s ease-out;
}
@keyframes rise { from { transform: translateY(20px); } to { transform: none; } }

.sheet h2 { margin: 0 0 4px; font-size: 20px; letter-spacing: -0.025em; }
.sheet .sub { margin: 0 0 18px; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.sheet h4 {
  margin: 22px 0 10px;
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.opt-group { margin-bottom: 18px; }
.opt-group h4 { margin: 0 0 2px; }
.opt-group .rule { font-size: 12px; color: var(--muted); margin: 0 0 8px; }
.opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.opt input { accent-color: var(--accent); width: 18px; height: 18px; }
.opt .opt-price {
  margin-left: auto;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
}

.pick { display: flex; gap: 8px; margin-bottom: 16px; }
.pick button {
  flex: 1;
  padding: 12px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 600;
}
.pick button[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-wash);
}
.pick button[disabled] { opacity: 0.45; cursor: not-allowed; }

/* ---------- receipt ---------- */

.receipt { font-family: var(--mono); font-size: 13.5px; }
.receipt .line { display: flex; gap: 10px; padding: 7px 0; font-variant-numeric: tabular-nums; }
.receipt .line .name { flex: 1; font-family: var(--sans); }
.receipt .line .name em { display: block; font-style: normal; font-size: 12px; color: var(--muted); }
.receipt .rule { border-top: 1px dashed var(--line); margin: 10px 0; }
.receipt .line.total { font-weight: 700; font-size: 16px; padding-top: 10px; }
.receipt .line.discount { color: var(--veg); }
.receipt .muted { color: var(--muted); }

/* ---------- tracking ---------- */

.track-head { text-align: center; padding: 22px 0 8px; }
.track-head .order-no { font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; color: var(--muted); }
.track-head h2 { margin: 8px 0 4px; font-size: 24px; letter-spacing: -0.03em; }
.track-head .eta { color: var(--muted); font-size: 14px; }

.steps { list-style: none; margin: 26px 0; padding: 0; }
.steps li { display: flex; gap: 14px; padding-bottom: 22px; position: relative; }
.steps li::before {
  content: "";
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--surface);
  flex: none;
  margin-top: 4px;
  z-index: 1;
}
.steps li::after {
  content: "";
  position: absolute;
  left: 5px; top: 15px; bottom: 0;
  width: 1px;
  background: var(--line);
}
.steps li:last-child::after { display: none; }
.steps li.done::before { background: var(--accent); border-color: var(--accent); }
.steps li.done::after { background: var(--accent); }
.steps li.now::before { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-wash); }
.steps .label { font-weight: 600; font-size: 15px; }
.steps li:not(.done):not(.now) .label { color: var(--muted); font-weight: 500; }
.steps .when { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 2px; }

.rider-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 16px;
  background: var(--surface);
}
.rider-card .who { flex: 1; }
.rider-card .who b { display: block; font-size: 15px; }
.rider-card .who span { color: var(--muted); font-size: 13px; font-family: var(--mono); }
.rider-card a {
  padding: 10px 16px;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

/* ---------- toasts ---------- */

.toasts {
  position: fixed;
  left: 16px; right: 16px;
  bottom: calc(var(--tabs-h) + var(--bill-h) + var(--safe) + 16px);
  z-index: 75;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  background: var(--ink);
  color: var(--paper);
  padding: 12px 15px;
  border-radius: 10px;
  font-size: 14px;
  max-width: 528px;
  margin: 0 auto;
  width: 100%;
  line-height: 1.45;
}
.toast.bad { background: var(--nonveg); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
