/* CityFood interface.
   Quiet and structured: neutral surfaces, thin dividers, one accent colour (pepper orange) for the
   main action, green only for good states. Light and dark themes share the same tokens.
   Font: Plus Jakarta Sans (bundled, works offline). */

@font-face {
  font-family: "Jakarta"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/static/jakarta-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
                 U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jakarta"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/static/jakarta-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F,
                 U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- tokens ---------- */
:root {
  color-scheme: light;
  --bg: #F6F5F3;        --surface: #FFFFFF;    --surface-2: #F1EFEC;  --surface-3: #E9E6E2;
  --ink: #1A1714;       --ink-2: #4A4440;      --muted: #78716B;      --line: #E7E3DE;
  --brand: #C2410C;     --brand-hover: #9A3412; --on-brand: #FFFFFF;
  --brand-soft: #FFF1E8; --brand-ink: #9A3412;
  --ok: #15803D;        --ok-soft: #E7F6EC;    --ok-ink: #166534;
  --warn-soft: #FFF6DB; --warn-ink: #7A4A00;
  --info-soft: #EAF1FF; --info-ink: #1D4ED8;
  --danger: #B42318;    --wa: #1A9E50;
  --focus: 0 0 0 3px color-mix(in srgb, var(--brand) 28%, transparent);
  --float: 0 8px 28px -10px rgba(26, 23, 20, .28);
  --r-lg: 16px; --r: 12px; --r-sm: 10px;
  --bar-h: 56px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0E0D0C;        --surface: #181614;    --surface-2: #221F1C;  --surface-3: #2C2825;
  --ink: #F3F0EC;       --ink-2: #D2CCC5;      --muted: #9C958E;      --line: #2D2925;
  --brand: #FF8A4C;     --brand-hover: #FFA370; --on-brand: #1A0E06;
  --brand-soft: #2D1B11; --brand-ink: #FFB78F;
  --ok: #4ADE80;        --ok-soft: #10291A;    --ok-ink: #86EFAC;
  --warn-soft: #2E2410; --warn-ink: #F6C453;
  --info-soft: #14223D; --info-ink: #93B4FF;
  --danger: #F97066;    --wa: #25C266;
  --float: 0 8px 28px -10px rgba(0, 0, 0, .7);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0E0D0C;        --surface: #181614;    --surface-2: #221F1C;  --surface-3: #2C2825;
    --ink: #F3F0EC;       --ink-2: #D2CCC5;      --muted: #9C958E;      --line: #2D2925;
    --brand: #FF8A4C;     --brand-hover: #FFA370; --on-brand: #1A0E06;
    --brand-soft: #2D1B11; --brand-ink: #FFB78F;
    --ok: #4ADE80;        --ok-soft: #10291A;    --ok-ink: #86EFAC;
    --warn-soft: #2E2410; --warn-ink: #F6C453;
    --info-soft: #14223D; --info-ink: #93B4FF;
    --danger: #F97066;    --wa: #25C266;
    --float: 0 8px 28px -10px rgba(0, 0, 0, .7);
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 64px); }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink);
       font: 15px/1.5 "Jakarta", "Segoe UI", system-ui, -apple-system, sans-serif;
       -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
main { max-width: 680px; margin: 0 auto; padding: 20px 16px 48px; }
h1 { font-size: 24px; line-height: 1.25; letter-spacing: -.02em; font-weight: 700; margin: 0; }
h2 { font-size: 16px; line-height: 1.35; font-weight: 700; margin: 0 0 12px; }
h3 { font-size: 15px; font-weight: 600; margin: 0; }
p { margin: 0; }
a { color: var(--brand); text-underline-offset: 3px; }
code { font: 600 15px/1 ui-monospace, Consolas, monospace; background: var(--surface); padding: 3px 8px; border-radius: 6px; }
.lead { color: var(--ink-2); font-size: 16px; margin-top: 6px; }
.meta { color: var(--muted); font-size: 13.5px; }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { flex: none; display: block; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }
main > * + * { margin-top: 16px !important; }

/* ---------- top bar ---------- */
.bar { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.bar-inner { max-width: 960px; height: var(--bar-h); margin: 0 auto; padding: 0 8px 0 16px;
             display: flex; align-items: center; gap: 8px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; margin-right: auto;
         color: var(--ink); text-decoration: none; font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.brand img { border-radius: 8px; }
.brand > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand small { margin-left: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.bar-links { display: flex; gap: 4px; }
.bar-links a { padding: 8px 12px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 14px; }
.bar-links a:hover { background: var(--surface-2); }
.bar-links a[aria-current] { color: var(--ink); background: var(--surface-2); }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 10px;
            background: transparent; color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); }
.only-dark { display: none; }
:root[data-theme="dark"] .only-dark { display: block; }
:root[data-theme="dark"] .only-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .only-dark { display: block; }
  :root:not([data-theme="light"]) .only-light { display: none; }
}

/* bottom tabs (phones) */
.tabs { display: none; }
@media (max-width: 720px) {
  .bar-links { display: none; }
  .tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
          background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabs a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 0;
            color: var(--muted); text-decoration: none; font-size: 11.5px; font-weight: 600; }
  .tabs a[aria-current] { color: var(--brand); }
  body.has-tabs { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px;
       border-radius: var(--r); border: 1px solid transparent; font: inherit; font-weight: 600; font-size: 15px;
       text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn.primary { background: var(--brand); color: var(--on-brand); }
.btn.primary:hover { background: var(--brand-hover); }
.btn.secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.secondary:hover { background: var(--surface-2); }
.btn.ghost { background: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.whatsapp { background: var(--wa); color: #fff; }
.btn.lg { height: 52px; font-size: 16px; border-radius: 14px; }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13.5px; }
.btn.full { width: 100%; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.btn:active:not([disabled]) { transform: translateY(1px); }
.text-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.text-btn.danger, .danger { color: var(--danger); }
form, fieldset { margin: 0; }

/* ---------- messages ---------- */
.banner { padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); color: var(--ink-2); font-size: 14px; }
.banner a { color: inherit; font-weight: 700; }
.banner.warn { background: var(--warn-soft); color: var(--warn-ink); }
.banner.ok { background: var(--ok-soft); color: var(--ok-ink); }
.chip { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; flex: none;
        font-size: 12.5px; font-weight: 600; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.chip.new { background: var(--warn-soft); color: var(--warn-ink); }
.chip.accepted { background: var(--info-soft); color: var(--info-ink); }
.chip.ready, .chip.completed { background: var(--ok-soft); color: var(--ok-ink); }
.chip.cancelled { background: var(--surface-2); color: var(--muted); }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.empty .btn { margin-top: 16px; }
.message { text-align: center; padding: 48px 8px; }
.message .lead { margin: 8px 0 20px; }

/* ---------- forms ---------- */
.form > * + * { margin-top: 14px !important; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field small { font-size: 12.5px; color: var(--muted); }
input, select, textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--surface);
       border: 1px solid var(--line); border-radius: var(--r-sm); padding: 11px 12px; min-height: 46px;
       transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--focus); }
input::placeholder, textarea::placeholder { color: var(--muted); }
.form-title { margin: 24px 0 0; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px;
       border: 0; border-radius: var(--r); background: var(--surface-2); }
.seg label { position: relative; margin: 0; }
.seg input { position: absolute; opacity: 0; inset: 0; min-height: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; height: 38px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.seg input:focus-visible + span { box-shadow: var(--focus); }
details.more > summary { cursor: pointer; list-style: none; font-weight: 600; color: var(--ink-2); padding: 4px 0;
                         display: flex; align-items: center; justify-content: space-between; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: ""; width: 8px; height: 8px; border: solid var(--muted); border-width: 0 2px 2px 0;
                                transform: rotate(45deg); margin: -4px 4px 0 0; transition: transform .15s; }
details.more[open] > summary::after { transform: rotate(225deg); margin-top: 4px; }
details.more[open] > summary { margin-bottom: 14px; }
details.more > :not(summary) + * { margin-top: 14px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-btn { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
            font: inherit; font-size: 13.5px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.chip-btn[aria-pressed="true"] { border-color: var(--brand); color: var(--brand-ink); background: var(--brand-soft); }
.photo-pick { display: flex; flex-direction: column; align-items: center; gap: 10px; cursor: pointer; }
.photo-lg { width: 100%; height: 200px; border-radius: var(--r-lg); object-fit: cover; background: var(--surface-2); }
.photo-pick .btn { margin-top: -32px; position: relative; box-shadow: var(--float); }
.switch { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 4px; cursor: pointer;
          font: inherit; font-weight: 600; font-size: 14px; color: var(--muted); }
.switch i { width: 40px; height: 24px; border-radius: 999px; background: var(--surface-3); position: relative; transition: background .15s; flex: none; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
                   background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .15s; }
.switch.on { color: var(--ok); }
.switch.on i { background: var(--ok); }
.switch.on i::after { transform: translateX(16px); }

/* ---------- layout pieces ---------- */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.back { display: inline-flex; align-items: center; gap: 2px; margin-left: -6px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 14px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; }
.panel > * + * { margin-top: 12px; }
.panel h2 { margin: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stack > * + * { margin-top: 10px; }
.list-title { margin: 24px 0 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.list > li { display: flex; align-items: center; gap: 12px; padding-right: 12px; }
.list > li + li { border-top: 1px solid var(--line); }
.row-in { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 12px 0 12px 14px; color: inherit;
          text-decoration: none; background: none; border: 0; font: inherit; text-align: left; cursor: pointer; width: 100%; }
.row-in > .ic:last-child { margin-left: auto; color: var(--muted); }
.row-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.row-text strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.muted-row .row-text strong, .muted-row .thumb { opacity: .5; }
.thumb { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; background: var(--surface-2); }
.actions-list .row-in { padding-right: 0; font-weight: 600; }
.actions-list .row-in.danger { color: var(--danger); }
.actions-list form { flex: 1; }
.seg-links { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: var(--r); }
.seg-links a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 12px;
               border-radius: 9px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; }
.seg-links a[aria-current] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.seg-links.scroll { overflow-x: auto; scrollbar-width: none; }
.seg-links.scroll a { flex: none; }
.count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--brand); color: var(--on-brand);
         font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; }

/* photos and placeholders */
.photo { width: 96px; height: 96px; border-radius: var(--r); object-fit: cover; display: block; background: var(--surface-2); }
.logo { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex: none; background: var(--surface-2); }
.logo.xs { width: 30px; height: 30px; border-radius: 8px; }
.logo.lg { width: 64px; height: 64px; border-radius: 16px; }
.ph { display: grid; place-items: center; color: var(--muted); background: var(--surface-2); }
.ph svg { width: 44%; height: 44%; opacity: .45; }

/* ---------- landing and sign-in ---------- */
.landing { padding: 40px 0 8px; }
.landing h1 { font-size: 34px; line-height: 1.15; letter-spacing: -.03em; max-width: 520px; }
.landing .lead { font-size: 17px; max-width: 520px; margin-top: 12px; }
.landing .actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 24px 0 12px; }
.how { padding-top: 24px; border-top: 1px solid var(--line); margin-top: 40px !important; }
.how ol { list-style: none; margin: 0; padding: 0; counter-reset: how; }
.how li { counter-increment: how; display: grid; grid-template-columns: 32px 1fr; column-gap: 12px; padding: 12px 0; }
.how li::before { content: counter(how); grid-row: span 2; width: 28px; height: 28px; border-radius: 50%;
                  display: grid; place-items: center; background: var(--surface-2); font-weight: 700; font-size: 13px; }
.how li span { color: var(--muted); }
.auth { max-width: 400px; margin: 16px auto 0; }
.auth .lead { margin-bottom: 4px; }
.auth > .banner, .auth > form { margin-top: 20px; }
.alt { margin-top: 18px !important; text-align: center; color: var(--ink-2); }
.alt.meta { margin-top: 8px !important; }

/* ---------- a restaurant's page (customers) ---------- */
.venue { display: flex; align-items: center; gap: 14px; }
.venue > div { min-width: 0; flex: 1; }
.venue h1 { font-size: 22px; }
.venue-about { color: var(--ink-2); }
.facts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--ink-2); font-size: 14px; }
.facts [aria-hidden] { color: var(--muted); }
.state { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.state.on { color: var(--ok); }
.state.on::before { background: var(--ok); }
.cats { position: sticky; top: var(--bar-h); z-index: 10; display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none;
        margin: 16px -16px 0 !important; padding: 0 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
.cats::-webkit-scrollbar { display: none; }
.cats a { flex: none; padding: 12px 0 10px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px;
          border-bottom: 2px solid transparent; }
.cats a[aria-current] { color: var(--ink); border-color: var(--ink); }
.cat { padding-top: 8px; }
.cat h2 { margin: 16px 0 4px; font-size: 18px; }
.dishes { list-style: none; margin: 0; padding: 0; }
.dish { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.dish-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.dish-text h3 { font-size: 16px; }
.dish-text p { color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { margin-top: auto; padding-top: 6px; font-weight: 700; }
.dish-media { position: relative; flex: none; }
.stepper { position: absolute; right: 6px; bottom: 6px; display: flex; align-items: center; height: 36px; border-radius: 999px;
           background: var(--surface); box-shadow: var(--float); }
.stepper input { width: 26px; height: 36px; min-height: 0; padding: 0; border: 0; background: none; box-shadow: none;
                 text-align: center; font-weight: 700; font-size: 15px; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: var(--ink);
                  font: inherit; font-size: 20px; font-weight: 600; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.stepper .plus { color: var(--brand); }
.js .stepper:not(.picked) .minus, .js .stepper:not(.picked) input { display: none; }
.js .stepper:not(.picked) { background: var(--brand); }
.js .stepper:not(.picked) .plus { color: var(--on-brand); }
.cart-bar { position: sticky; bottom: 0; z-index: 15; margin: 0 -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
            background: linear-gradient(to top, var(--bg) 70%, transparent); }
.js .cart-bar { position: fixed; left: 0; right: 0; max-width: 680px; margin: 0 auto; transform: translateY(110%);
                transition: transform .2s ease; }
.js .cart-bar.show { transform: none; }
.cart-bar .btn { justify-content: space-between; box-shadow: var(--float); }
.cart-count { min-width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 14px;
              background: color-mix(in srgb, var(--on-brand) 20%, transparent); }
.powered { text-align: center; color: var(--muted); font-size: 12.5px; padding: 32px 0 80px; }

/* order summaries */
.lines { list-style: none; margin: 0; padding: 0; }
.lines li { display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; padding: 6px 0; }
.lines .qty, .order-items .qty { color: var(--muted); font-weight: 600; }
.line-total { display: flex; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line); font-weight: 700; }
.bank { white-space: pre-wrap; font-weight: 600; background: var(--surface-2); border-radius: var(--r-sm); padding: 12px; }
.order-head { padding-top: 8px; }
.order-head h1 { margin-top: 4px; font-size: 26px; }
.progress { list-style: none; margin: 20px 0 0 !important; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.progress li { padding-top: 10px; border-top: 3px solid var(--surface-3); font-size: 12.5px; font-weight: 600; color: var(--muted); }
.progress li.done { border-color: var(--ok); color: var(--ink); }

/* ---------- restaurant owners ---------- */
.order-list > * + * { margin-top: 12px; }
.order-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; }
.order-card > * + * { margin-top: 10px; }
.order-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.order-top h3 { font-size: 16px; }
.order-items { list-style: none; margin: 0; padding: 0; }
.order-items li { display: grid; grid-template-columns: 30px 1fr; padding: 2px 0; }
.order-note { padding: 8px 12px; border-radius: var(--r-sm); background: var(--warn-soft); color: var(--warn-ink); font-size: 14px; }
.order-sum { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--line); }
.order-sum strong { font-size: 17px; }
.paid-toggle { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px; border-radius: 999px;
               border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.paid-toggle .ic { width: 16px; height: 16px; }
.paid-toggle.is-paid { border-color: transparent; background: var(--ok-soft); color: var(--ok-ink); }
.order-actions { display: flex; justify-content: center; gap: 28px; font-weight: 600; font-size: 14px; }
.order-actions a { color: var(--ink-2); text-decoration: none; }
.checklist { list-style: none; margin: 20px 0 0 !important; padding: 0; background: var(--surface); border: 1px solid var(--line);
             border-radius: var(--r-lg); overflow: hidden; }
.checklist li + li { border-top: 1px solid var(--line); }
.checklist a, .checklist .row-in { display: flex; align-items: center; gap: 12px; padding: 16px; color: var(--ink); text-decoration: none; font-weight: 600; }
.checklist a .ic:last-child { margin-left: auto; color: var(--muted); }
.tick { width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center;
        background: var(--brand); color: var(--on-brand); font-size: 13px; font-weight: 700; }
.tick .ic { width: 16px; height: 16px; }
.checklist .done a { color: var(--muted); }
.checklist .done .tick { background: var(--ok); color: #fff; }
.checklist .locked { opacity: .45; }
.checklist .locked .tick { background: var(--surface-3); color: var(--muted); }
.link-box { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; background: var(--surface);
            border: 1px solid var(--line); border-radius: var(--r-lg); }
.link-text { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.price-line { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.price-line span { font-size: 14px; font-weight: 500; color: var(--muted); }
#plan .btn { margin-top: 12px; }
#plan .inline-form .btn { margin-top: 0; }

/* ---------- admin ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--line);
        border-radius: var(--r-lg); overflow: hidden; }
.kpi { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; color: inherit; text-decoration: none; }
.kpi + .kpi { border-left: 1px solid var(--line); }
.kpi span { font-size: 13px; color: var(--muted); }
.kpi strong { font-size: 22px; letter-spacing: -.02em; }
a.kpi:hover { background: var(--surface-2); }
.search input { background: var(--surface); }
.inline-form { display: flex; gap: 10px; }
.inline-form select { flex: 1; }
.ledger { list-style: none; margin: 0; padding: 0; }
.ledger li { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.ledger li span:last-child { font-weight: 600; }
.facts-list { margin: 0; }
.facts-list div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid var(--line); }
.facts-list div:first-child { border-top: 0; }
.facts-list dt { color: var(--muted); }
.facts-list dd { margin: 0; font-weight: 600; text-align: right; word-break: break-all; }
.venue > .chip { align-self: flex-start; }

@media (max-width: 720px) {
  .landing { padding-top: 16px; }
  .landing h1 { font-size: 28px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi:nth-child(3) { border-left: 0; }
  .kpi:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- inside the CityFood phone app (sizes come from the app) ---------- */
.in-app .bar { padding-top: var(--sat, 0px); }
.in-app .cats { top: calc(var(--bar-h) + var(--sat, 0px)); }
.in-app .tabs { padding-bottom: calc(6px + var(--sab, 0px)); }
.in-app body.has-tabs { padding-bottom: calc(64px + var(--sab, 0px)); }
.in-app .cart-bar { padding-bottom: calc(12px + var(--sab, 0px)); }
/* While typing: room to scroll any box up above the keyboard, and hide bars the keyboard would push around. */
body.typing, .in-app body.kb-open { padding-bottom: 75vh !important; }
body.typing .tabs, body.typing .cart-bar, .in-app body.kb-open .tabs, .in-app body.kb-open .cart-bar { display: none; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.form > .form-title { margin-top: 24px !important; }

/* privacy notice and other long text */
.prose h2 { margin: 24px 0 6px; }
.prose p + p { margin-top: 8px; }
.prose p { color: var(--ink-2); }

/* QR code and the printable poster */
.qr-panel { display: flex; gap: 16px; align-items: center; }
.qr-panel > div:last-child > * + * { margin-top: 8px; }
.qr-box { flex: none; width: 132px; padding: 8px; background: #fff; border-radius: var(--r); border: 1px solid var(--line); }
.qr-box svg { display: block; width: 100%; height: auto; }
.qr-box.big { width: min(78vw, 320px); margin: 20px auto 0; padding: 14px; border-radius: 20px; }
.poster { text-align: center; padding: 24px 16px 28px; background: var(--surface); border: 1px solid var(--line);
          border-radius: 24px; }
.poster .logo { margin: 0 auto 10px; }
.poster h1 { font-size: 26px; }
.poster-call { margin-top: 6px !important; font-size: 20px; font-weight: 700; color: var(--brand); }
.poster-link { margin-top: 14px !important; font-weight: 700; font-size: 16px; word-break: break-all; }
.poster-foot { margin-top: 4px !important; color: var(--muted); font-size: 13px; }
.poster-actions { margin-top: 16px; }
.only-app { display: none; }
.in-app .only-app { display: block; }
.in-app .only-browser { display: none; }
@media (max-width: 420px) { .qr-panel { flex-direction: column; text-align: center; } }
@media print {
  .bar, .tabs, .back, .poster-actions, .banner { display: none !important; }
  body { background: #fff; }
  main { max-width: none; padding: 0; }
  .poster { border: 0; color: #000; }
  .poster-call { color: #000; }
}

/* password with a show/hide button */
.pw { position: relative; display: block; }
.pw input { padding-right: 52px; }
.pw-toggle { position: absolute; top: 0; right: 0; width: 48px; height: 100%; display: grid; place-items: center;
             border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.pw-toggle:hover { color: var(--ink); }
.pw-toggle .pw-hide, .pw-toggle[aria-pressed="true"] .pw-show { display: none; }
.pw-toggle[aria-pressed="true"] .pw-hide { display: block; }
