/* NorthPoint Cafe — Order Ahead
   Tokens are lifted from the brand guide one-pager: Pantone 7716 teal,
   324 light teal, 714 orange, the cream, and Pantone Black C. The dark
   ground is a warm near-black derived from that black rather than a
   neutral grey, so the whole thing sits in the same temperature.

   Orange does exactly one job — the staff discount — per the brand's own
   10% usage weighting. Do not spend it on anything else: an error, a
   closed cafe or a cancelled order is weight, a border and its wording.
   cafe_order/tests_review_frontend.py fails the build if it creeps back.

   Handoff 2 (2026-11-13, community-app-design-review/handoff-2): one look
   across the Community Center app's Home, Cafe and Courts, in the browser
   as well as in the app.
     D11  One teal. Interactive fills are NorthPoint teal #00968F, with
          #1B1816 on it (4.84:1); the brighter teal is gone, and teal is
          never text on dark (mint is). Supersedes DESIGN Errata E3.
     D13  One header row (the lockup, then at most one line of context),
          then the sections. Only the category chips stay pinned.
     D16  One set of shared parts: raised icon tiles with a mint glyph (no
          gradients), pill chips, cream item names in Libre Caslon, 12px
          buttons, the floating docks.
     D17  A ready order is one mint-edged card.
   The register's and Manager's stylesheets are not touched by any of it. */

:root {
  --ink: #171412;
  --surface: #1E1A18;
  --surface-2: #211D1A;
  --raised: #262220;
  --line: #2C2724;
  --line-strong: #37312D;

  --cream: #FFF9EF;
  --body: #C9C0B7;
  --muted: #9E958C;
  /* Was #7E756D: 4.06:1 on --ink and 3.49 on --raised, under AA for the
     11px hints, the placeholders and the 9px slot label it colours. Same
     hue, the smallest lift that clears 4.5:1 on all four grounds (4.53 on
     --raised, the lightest). --ghost stays low on purpose: it only marks
     slots that cannot be chosen. */
  --faint: #918880;
  --ghost: #5C5550;
  /* The edge of an unticked checkbox or radio, which is all there is of
     the control until it is ticked. Was #4A433E: 1.62:1 on --raised, under
     WCAG 1.4.11's 3:1 for a control's boundary. Same hue and saturation,
     the smallest lift that clears 3:1 on all four grounds (3.04 on
     --raised, the lightest). */
  --edge: #766B63;

  --teal: #00968F;        /* brand, and every interactive fill (D11) */
  --mint: #9CDBD9;        /* brand, accent text, the ready card */
  --on-teal: #1B1816;     /* text and glyphs on teal (4.84:1) or mint (11.4:1) */
  --amber: #F68D2E;       /* brand, discounts only */
  --band: #1A1715;        /* the tab bar's ground, a step under --surface */

  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Libre Caslon Text', Georgia, 'Times New Roman', serif;

  --tap: 44px;            /* never smaller, anywhere */
  /* The browser's bottom tab bar without the home indicator's inset: what a
     floating dock clears on a page that has one. */
  --tabbar-h: 67px;
  --r-sm: 12px; --r: 14px; --r-lg: 16px; --r-pill: 999px;
}

* { box-sizing: border-box; }

/* Any class that sets `display` outranks the browser's own
   [hidden]{display:none}, because a class selector beats a UA rule. That
   is how the payment-error box sat open and orange on every checkout with
   nothing wrong. Global, so it cannot bite the next component either. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--cream);
  font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased;
}
a { color: var(--mint); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 6px; }

.shell { max-width: 460px; margin: 0 auto; min-height: 100vh;
         display: flex; flex-direction: column; padding-bottom: 96px; }
/* A page with a floating dock (an item, checkout) keeps its last field
   clear of it: the dock's height, its 10px float and the home indicator. */
.shell:has(.dock), body:has(> .dock) .shell { padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px)); }

/* The masthead (Handoff 2, D13): every tab page starts with this one row,
   in the browser and in the app alike -- the lockup, its mark 38px tall and
   16px in, and at most one line of context at the right (the menu's "Open
   until 8:00 pm"). Courts and the app's Home start the same way, so
   switching tabs in the app moves nothing. Not pinned: it scrolls away.
   The lockup is 3.52:1, so 134px wide; at 320 that leaves 140 for the
   context, and below 360 the context drops to 12px and may wrap to two
   lines rather than push the lockup. */
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 12px;
            min-height: 62px; padding: 0 16px; }
.masthead .logo { height: 38px; width: auto; display: block; flex: none; }
@media (max-width: 359px) {
  .open-until { font-size: 12px; line-height: 16px; }
}

/* A page's own title row: a back arrow and the page's name. */
.top { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
/* Under the masthead, a tab page's name is a page title (SPEC 2: Libre
   Caslon 28/34), 18px in so it lines up with text inside the cards. */
.masthead ~ .top { padding: 4px 18px 8px; }
.masthead ~ .top .title { font: 700 28px/34px var(--serif); }
.masthead ~ .page-head { padding-top: 4px; }
.back { width: var(--tap); height: var(--tap); margin-left: -10px;
        display: flex; align-items: center; justify-content: center;
        background: none; border: 0; cursor: pointer; color: var(--cream); }
.title { font: 700 20px/1.2 var(--serif); flex: 1; }

/* pickup context bar */
.context { margin: 0 16px 12px; min-height: 52px; border-radius: var(--r);
           background: var(--surface-2); border: 1px solid var(--line-strong);
           display: flex; align-items: center; gap: 10px; padding: 8px 14px; }
.context .who { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.context strong { font-size: 13px; font-weight: 600; }
.context small { font-size: 11px; color: var(--muted); }

/* category chips (SPEC 4.9) */
.chips { display: flex; gap: 8px; padding: 10px 16px; overflow-x: auto;
         scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { min-height: var(--tap); padding: 0 18px; border-radius: var(--r-pill);
        background: var(--surface); border: 1px solid var(--line-strong);
        color: var(--body); font-size: 14px; font-weight: 500;
        display: inline-flex; align-items: center; white-space: nowrap; flex-shrink: 0; }
.chip[aria-current='true'] { background: var(--teal); border-color: var(--teal);
                             color: var(--on-teal); font-weight: 700; }

/* item rows */
.section-head { display: flex; align-items: baseline; justify-content: space-between;
                margin: 8px 18px 10px; }
.section-head h2 { font: 700 22px/28px var(--serif); margin: 0; }
.section-head span { font-size: 13px; color: var(--muted); }

/* --- the menu's pinned row ------------------------------------------
   Only the category strip stays put while the list moves under it, in the
   browser and in the app (Handoff 2, D13): switching category without
   scrolling back up is the whole reason the strip is there. The header and
   the category's own heading used to be pinned too, and the three together
   took a third of a phone's screen (review item 10).

   The strip carries an opaque --ink ground, so the rows pass behind it, and
   a hairline under it only while it is stuck (`.stuck`, set by the menu's
   script): at rest it sits in the page like any other row. */
.chips { position: -webkit-sticky; position: sticky; top: 0; z-index: 11;
         background: var(--ink); border-bottom: 1px solid transparent; }
.chips.stuck { border-bottom-color: var(--line); }
.chips-mark { display: block; height: 0; }
/* "Open until 8:00 pm" in the masthead: the menu says when the cafe stops
   taking orders, and the closed strip below says the rest. */
.open-until { margin-left: auto; font-size: 13px; line-height: 18px; color: var(--body);
              text-align: right; min-width: 0; }

/* A phone on its side has about 375px of height; nothing is pinned there. */
@media (max-height: 520px) {
  .chips { position: static; }
}
.rows { display: flex; flex-direction: column; gap: 10px; padding: 0 16px; }
/* An item row (SPEC 4.14). The <a> takes cream back from `a { color: mint }`:
   item names are cream; the price is the row's one mint. */
.row { display: flex; align-items: center; gap: 12px; min-height: 88px; padding: 12px;
       border-radius: var(--r-lg); background: var(--surface);
       border: 1px solid var(--line); color: var(--cream); }
.row .meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px;
             overflow-wrap: anywhere; }
.row .name { font: 700 17px/22px var(--serif); }
.row .desc { font-size: 13px; color: var(--muted); line-height: 18px;
             display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
             overflow: hidden; }
.row .price { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--mint); }
/* Drawn at 36; the whole 88px row is the link, so the target is the row. */
.row .add { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%;
            background: var(--raised); border: 1px solid var(--line-strong); color: var(--mint);
            display: flex; align-items: center; justify-content: center; }

/* The tile that stands in for a photo -- Clover exposes none over the API.
   The shared icon tile (Handoff 2, D16, SPEC 4.7): raised, an edge, a mint
   glyph, the same on Home and Courts. The gradients that told food from
   drink are gone; the glyph tells them apart now (the `tone` classes the
   template still sets draw nothing). */
.tile { width: 64px; height: 64px; border-radius: var(--r-sm); flex-shrink: 0;
        display: flex; align-items: center; justify-content: center;
        color: var(--mint); background: var(--raised); border: 1px solid var(--line-strong); }
.tile.lg { width: 100%; height: 150px; border-radius: var(--r-lg); }
.tile img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

/* item detail */
.detail { padding: 0 16px; display: flex; flex-direction: column; gap: 22px; }
.detail h1 { font: 700 26px/1.15 var(--serif); margin: 0 0 6px; }
.detail .lede { font-size: 13px; color: var(--muted); line-height: 1.45; margin: 0; }
.detail .from { font-size: 17px; font-weight: 700; color: var(--mint); margin-top: 6px; display: block; }
.group > .label { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.group .label b { font-size: 13px; font-weight: 700; letter-spacing: .3px; }
.group .label span { font-size: 11px; color: var(--muted); }
.opt { min-height: 52px; display: flex; align-items: center; gap: 12px;
       border-bottom: 1px solid var(--line); cursor: pointer; }
.opt:last-child { border-bottom: 0; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .box { width: 20px; height: 20px; flex-shrink: 0; border: 1.5px solid var(--edge); }
.opt .box.radio { border-radius: 10px; }
.opt .box.check { border-radius: 6px; }
.opt input:checked + .box { border-color: var(--teal); background: var(--teal); }
.opt input:checked + .box.radio { background: var(--ink); border-width: 5.5px; }
.opt input:checked + .box.check::after {
  content: ''; display: block; width: 6px; height: 11px; margin: 1px auto;
  border: solid var(--on-teal); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
/* An input hidden with opacity:0 still takes keyboard focus, and the
   global :focus-visible ring is drawn on something nobody can see. So
   every such pattern here (.opt, .pill-choice, .consent) hands the ring to
   the element drawn in the input's place. Teal, never orange. */
.opt input:focus-visible + .box { outline: 2px solid var(--teal); outline-offset: 2px; }
.opt .opt-name { flex: 1; font-size: 14px; color: var(--body); }
.opt input:checked ~ .opt-name { color: var(--cream); font-weight: 500; }
.opt .opt-price { font-size: 13px; font-weight: 600; color: var(--mint); }

textarea.note { width: 100%; min-height: 76px; border-radius: var(--r);
                background: var(--surface); border: 1px solid var(--line);
                padding: 14px; color: var(--cream); resize: vertical; font-size: 13px; }
.hint { font-size: 11px; color: var(--faint); line-height: 1.4; }

/* cart */
.cart-line { border-radius: var(--r-lg); background: var(--surface);
             border: 1px solid var(--line); padding: 14px; }
.cart-line .head { display: flex; align-items: baseline; gap: 10px; }
.cart-line .head .name { flex: 1; font: 700 16px/1.25 var(--serif); }
.cart-line .mods { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.4; }
.cart-line .note { font-size: 12px; color: var(--mint); margin-top: 3px; }
.cart-line .actions { display: flex; align-items: center; gap: 10px; margin-top: 12px; }

.stepper { height: var(--tap); border-radius: var(--r-sm); background: var(--raised);
           display: flex; align-items: center; gap: 2px; padding: 0 4px; }
.stepper button { width: 36px; height: 36px; border: 0; background: none; cursor: pointer;
                  display: flex; align-items: center; justify-content: center; color: var(--muted); }
.stepper button:last-of-type { color: var(--cream); }
.stepper .q { font-size: 14px; font-weight: 700; min-width: 18px; text-align: center; }

.totals { display: flex; flex-direction: column; gap: 11px; padding: 4px 0; }
.totals .t { display: flex; align-items: baseline; }
.totals .t span:first-child { flex: 1; font-size: 13px; color: var(--muted); }
.totals .t span:last-child { font-size: 13px; color: var(--body); font-variant-numeric: tabular-nums; }
.totals .rule { height: 1px; background: var(--line); }
.totals .grand span:first-child { font-size: 16px; font-weight: 700; color: var(--cream); }
/* Sans, not the serif display face. The label beside it is sans, so the
   pair read as two different typefaces arguing rather than one figure. */
.totals .grand span:last-child { font-size: 22px; font-weight: 700; color: var(--cream);
                                 font-variant-numeric: tabular-nums;
                                 letter-spacing: -.01em; }
.totals .disc span { color: var(--amber) !important; }

/* buttons */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px;
       min-height: 48px; padding: 0 18px; border-radius: var(--r-sm); border: 0; width: 100%;
       font-size: 16px; font-weight: 700; cursor: pointer; text-align: center; }
.btn-primary { background: var(--teal); color: var(--on-teal); }
.btn-ghost { background: none; border: 1px solid var(--line-strong); color: var(--cream);
             font-size: 15px; font-weight: 600; }
.btn-dashed { background: none; border: 1px dashed var(--line-strong); color: var(--mint);
              min-height: 50px; font-size: 13px; }
.btn-icon { width: var(--tap); height: var(--tap); border-radius: var(--r-sm); border: 0;
            background: none; color: var(--faint); cursor: pointer;
            display: flex; align-items: center; justify-content: center; }

/* The dock: a bar that floats above the foot of the page (Handoff 2, SPEC
   4.12, CHANGES-CAFE 9) -- inset 16px each side, rounded, on the raised
   ground with an edge, 10px above whatever is under it: the home indicator,
   the browser's bottom tab bar, or in the app the glass tab bar (the app
   puts its bar inside the safe area, so env() clears it). It used to be a
   full-width band that sat on the app's tab bar. */
.dock { position: fixed; left: 16px; right: 16px; z-index: 20;
        bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        max-width: 428px; margin: 0 auto;
        background: var(--raised); border: 1px solid var(--line-strong);
        border-radius: 20px; padding: 12px; }
.with-tabs .dock { bottom: calc(var(--tabbar-h) + 10px + env(safe-area-inset-bottom, 0px)); }
.dock-inner { display: flex; gap: 12px; align-items: center; }
.cartbar { min-height: 54px; border-radius: var(--r-lg); background: var(--teal);
           color: var(--on-teal); display: flex; align-items: center;
           justify-content: space-between; padding: 0 18px; width: 100%; }
.cartbar b { font-size: 15px; font-weight: 700; }
.cartbar span { font-size: 14px; font-weight: 600; }

.msgs { padding: 0 16px 12px; display: flex; flex-direction: column; gap: 8px; }
/* The neutral box is the default because only .error and .success were
   ever styled, and an info or warning message rendered as bare text. */
.msg { border-radius: var(--r-sm); padding: 11px 14px; font-size: 13px;
       background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--body); }
/* Something went wrong, said without orange: cream at weight and a rule
   down the leading edge, the way the register and Manager mark theirs.
   The wording does the rest. */
.msg.error, .msg.warning { color: var(--cream); font-weight: 600;
                           border-left: 3px solid var(--body); }
.msg.success { background: var(--surface); border: 1px solid var(--teal); color: var(--mint); }

.empty { padding: 60px 24px; text-align: center; color: var(--muted); }
.empty h2 { font: 700 22px/1.2 var(--serif); color: var(--cream); margin: 0 0 8px; }

/* --- checkout: day tabs, ASAP card, slot grid --- */
.segmented { height: 48px; border-radius: var(--r); background: var(--surface-2);
             border: 1px solid var(--line); padding: 4px; display: flex; gap: 4px; }
.segmented .seg { flex: 1; border-radius: 11px; display: flex; align-items: center;
                  justify-content: center; font-size: 13px; font-weight: 500;
                  color: var(--muted); }
.segmented .seg.on { background: #35302C; color: var(--cream); font-weight: 700; }

.asap { width: 100%; min-height: 74px; border-radius: var(--r-lg); background: var(--surface);
        border: 1px solid var(--line); display: flex; align-items: center; gap: 14px;
        padding: 0 16px; cursor: pointer; text-align: left; }
.asap.on { border-color: var(--teal); background: var(--surface); }
/* The shared icon tile (SPEC 4.7). */
.asap .bolt { width: 40px; height: 40px; border-radius: var(--r-sm); flex-shrink: 0;
              background: var(--raised); border: 1px solid var(--line-strong); color: var(--mint);
              display: flex; align-items: center; justify-content: center; }
.asap-text { display: flex; flex-direction: column; gap: 2px; }
.asap-text strong { font-size: 14px; font-weight: 600; }
.asap-text small { font-size: 12px; color: var(--muted); }

.slotgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.slot { min-height: 58px; border-radius: 13px; background: var(--surface);
        border: 1px solid var(--line); display: flex; flex-direction: column;
        align-items: center; justify-content: center; gap: 2px; cursor: pointer;
        color: var(--cream); }
.slot .t { font-size: 14px; font-weight: 600; }
.slot .sub { font-size: 9px; color: var(--faint); }
.slot.on { background: var(--teal); border-color: var(--teal); color: var(--on-teal); }
.slot.on .t { font-weight: 700; }
.slot.on .sub { color: var(--on-teal); font-weight: 700; letter-spacing: .5px; }
.slot.off { background: #1A1715; border-color: transparent; color: var(--ghost); cursor: default; }
.slot.off .t { color: var(--ghost); }
.slot.off .sub { color: var(--ghost); font-weight: 700; letter-spacing: .5px; }

/* margin-bottom because on checkout this sits directly above the cart
   summary and read as one merged block on a phone.
   Every checkout blocker and the payment error use this box, and so do
   plain asides ("Slots fill fast"). It was orange, which spent the
   discount's colour on bad news. It stands out by a leading rule and
   cream text instead, and the wording says whether it is a problem. */
.notice { margin-bottom: 14px; border-radius: var(--r); background: var(--surface-2);
          border: 1px solid var(--line-strong); border-left: 3px solid var(--body);
          padding: 13px 14px; display: flex; gap: 11px; font-size: 12px;
          color: var(--cream); line-height: 1.45; }
.notice .ico { color: var(--cream); flex-shrink: 0; margin-top: 1px; display: flex; }
/* Something that went through (a claimed order, "we told the cafe you're
   here"): the surface with a teal edge and mint words, as .msg.success. It
   was a bright-teal tint in inline styles until one teal (Decision CD). */
.notice.good, .panel-card.good { background: var(--surface); border-color: var(--teal); }
.notice.good, .notice.good .ico { color: var(--mint); }

/* The closed notice on the menu, in the row the old "Pickup time not set"
   used to occupy. It has to out-read the ordinary context row, because it
   is telling somebody not to bother rather than describing state. That
   is the leading rule and a heavier headline, not orange. */
.context-closed { border-left: 3px solid var(--body);
                  align-items: flex-start; padding: 12px 14px; }
.context-closed .ico { color: var(--cream); display: flex; margin-top: 1px; }
.context-closed strong { color: var(--cream); font-weight: 700; }
.context-closed .hours { font-size: 12px; }

/* Apple Pay sits above the card fields with a divider between, the
   conventional order: the one-tap route first, typing as the fallback. */
/* Height is CAPPED, not just floored. Clover mounts a cross-origin iframe
   and we cannot see inside it; on a browser where the wallet is
   unavailable it mounted something several hundred pixels tall and
   entirely blank, which pushed the card fields off the screen. A wallet
   button is ~48px in every design guideline either vendor publishes, so
   anything taller is a failure, not a big button. */
/* Clover exposes no styling for the Apple Pay button itself -- its
   appearance is fixed, and only this container is ours. The button is
   black, which on a near-black surface reads as a hole rather than a
   control, so the container carries the edge instead. Not a modification
   of the button: Apple's guidelines are about the asset, not what sits
   behind it.

   Height is CAPPED as well as floored. Clover's default is 40px with a
   64px maximum, and on a browser where the wallet was unavailable it once
   mounted several hundred pixels of nothing and pushed the card fields off
   the screen. 48 clears the 44px touch target and nothing taller is
   legitimate.

   Full width is a choice, not a requirement -- Apple sets a ~100pt
   minimum and no maximum. It matches the card fields and the Pay button
   below, which is the whole argument for it. */
#payment-request-button, #googlepay-button {
    max-height: 48px; overflow: hidden; margin-bottom: 4px;
    border: 1px solid var(--line-strong); border-radius: 8px;
    box-sizing: border-box; }
/* An iframe is inline by default, so it sits on a text baseline and leaves
   room underneath for descenders -- a few pixels of container visible below
   the button, which read as a misaligned border. display:block takes it out
   of inline layout entirely. */
#payment-request-button iframe, #googlepay-button iframe {
    display: block; width: 100%; }
/* Google mounts a 150px iframe and, left alone, centres a ~48px button in
   it -- so the cap above showed 48px of empty chrome and nothing else,
   which is the whole history of this button looking like a black hole.
   An explicit height gives buttonSizeMode:'fill' something to fill, and
   the iframe is pinned to it so the button and its frame stay the same
   size. Apple is deliberately not included: its button has a fixed
   appearance we do not control and it already renders correctly. */
#googlepay-button { height: 48px; }
#googlepay-button iframe { height: 100%; }
#payment-request-button:empty, #googlepay-button:empty { display: none; }
/* Visible but untappable until the details above are filled in. Hiding it
   instead meant a customer who wanted Apple Pay could not find it and had
   no way to learn what would reveal it. */
.wallet-locked { opacity: .4; pointer-events: none; }
#wallet-hint { margin: 6px 0 0; }
/* Google's brand guidelines set a 90x40 floor. Ours is 44 for the touch
   target, which clears it. */
#googlepay-button { min-width: 90px; }
.paydivider { display: flex; align-items: center; gap: 12px; margin: 14px 0 16px;
              color: var(--faint); font-size: 12px; }
.paydivider::before, .paydivider::after {
    content: ''; flex: 1; height: 1px; background: var(--line); }

/* A saved order, or a past one, with its action beside it. The row is not
   a link: the whole point is the button, and a row that is both a link and
   a form is a row where a mis-tap orders something. */
.fav { display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
       min-height: var(--tap); padding: 10px 12px; border-radius: var(--r);
       background: var(--surface); border: 1px solid var(--line); }
.fav .grow { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.fav strong { font-size: 13px; font-weight: 600; }
.fav small { font-size: 11px; color: var(--muted); line-height: 1.35;
             overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fav form { display: flex; }
.fav .fav-go { min-height: 36px; padding: 0 14px; font-size: 13px; }

/* Opening hours, rendered from BusinessHours rows rather than written out
   as prose in a template (Decision R). Used on the closed page and inside
   the checkout notice, so it has to read well on both. */
.hours { list-style: none; margin: 8px 0 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; gap: 16px;
            padding: 3px 0; }
.hours-days { color: var(--muted); }
.hours-time { color: var(--body); white-space: nowrap; }
/* A one-off closure has to out-read the ordinary week sitting above it —
   the whole point is that today is not the usual Monday. Cream rather than
   --amber, which is reserved for discounts. */
.hours-exceptions { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.hours-exceptions .hours-days,
.hours-exceptions .hours-time { color: var(--cream); }

/* --- checkout page --- */
.field { min-height: 56px; border-radius: var(--r); background: var(--surface);
         border: 1px solid var(--line); padding: 0 15px; width: 100%; font-size: 14px; }
.field::placeholder { color: var(--faint); }
.summary-row { min-height: 56px; border-radius: var(--r); background: var(--surface);
               border: 1px solid var(--line); display: flex; align-items: center;
               gap: 12px; padding: 12px 14px; }
.summary-row .grow { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.summary-row strong { font-size: 14px; font-weight: 600; }
.summary-row small { font-size: 11px; color: var(--muted); }
.pill-choice { display: flex; gap: 4px; padding: 4px; height: 52px;
               border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); }
.pill-choice label { flex: 1; border-radius: 11px; display: flex; align-items: center;
                     justify-content: center; gap: 7px; cursor: pointer;
                     font-size: 13px; color: var(--muted); }
.pill-choice input { position: absolute; opacity: 0; pointer-events: none; }
.pill-choice input:checked + label { background: #35302C; color: var(--cream); font-weight: 700; }
/* Inset: the pills sit 4px apart inside their track, and a ring drawn
   outside would run into the neighbouring pill and the track's edge. */
.pill-choice input:focus-visible + label { outline: 2px solid var(--teal); outline-offset: -2px; }
/* Three methods share the width two used to have. The labels are already
   shortened in the template; this buys the rest, and on a narrow phone the
   icons go rather than let a label wrap inside a 52px-tall pill. */
.pill-choice.three-up label { font-size: 12px; gap: 5px; }
@media (max-width: 400px) {
  .pill-choice.three-up label { gap: 0; }
  .pill-choice.three-up label svg { display: none; }
}

/* --- Clover hosted fields ---
   The iframes paint their own light background, so their text must be dark.
   Styling them to match the dark page makes the customer's typing invisible
   — a real bug from Phase 0, not a hypothetical. */
.fieldlabel { display: block; font-size: 10px; letter-spacing: .6px;
              text-transform: uppercase; color: var(--faint);
              margin: 0 0 3px; font-weight: 700; }
/* 44px is the floor, not a preference: it is the minimum touch target, and
   these are the fields somebody taps on a phone with a card in their other
   hand. Shorter would look tidier and be worse. Every other input on this
   page is 56px, so these are already the most compact thing on it. */
.ccfield { height: 44px; border-radius: 8px; border: 1px solid var(--line-strong);
           /* Matches the style object handed to Clover in checkout.html. If
              the iframe ignores `body.background` this stays visible behind
              a transparent frame and the digits are still legible against
              it — so a failure looks like light text on the right colour,
              not text on white. */
           background: var(--surface); padding: 0 8px; overflow: hidden; }
/* Clover may wrap its input, so constrain any descendant, not just a
   direct child — and the container clips regardless. */
.ccfield iframe, .ccfield > div { height: 42px !important; width: 100% !important;
           display: block; border: 0; }
.ccrow { display: flex; gap: 8px; margin-top: 8px; }
.ccrow > div { flex: 1; min-width: 0; }
/* ZIP needs far less room than the other two. */
.ccrow > div:last-child { flex: 0 0 92px; }
#card-fields > .fieldlabel:first-child { margin-top: 0; }
.secure { display: flex; gap: 9px; margin-top: 12px; font-size: 11px;
          color: #7E8E8C; line-height: 1.45; }
.secure .ico { color: #6E8E8B; flex-shrink: 0; margin-top: 1px; display: flex; }

/* --- confirmation --- */
.hero-state { display: flex; flex-direction: column; align-items: center; gap: 12px;
              padding: 4px 0; text-align: center; }
/* Mint for a fact, as the ready card: teal is never a glyph on dark (D11). */
.hero-state .ring { width: 68px; height: 68px; border-radius: 34px;
                    background: var(--surface); border: 1.5px solid var(--mint);
                    color: var(--mint); display: flex; align-items: center;
                    justify-content: center; }
/* Refunded, unconfirmed or declined: not the teal of an order that went
   through, and not orange either. A heavier neutral ring, and the headline
   under it says which. */
.hero-state.cancelled .ring, .hero-state.pending .ring,
.hero-state.failed .ring { background: var(--raised); border: 2.5px solid var(--body);
                              color: var(--cream); }
.hero-state h1 { font: 700 25px/1.15 var(--serif); margin: 0; }
.hero-state .code { display: flex; align-items: center; gap: 8px; }
.hero-state .code span { font-size: 13px; color: var(--muted); }
.hero-state .code b { font-size: 17px; font-weight: 700; letter-spacing: 2px; color: var(--mint); }

.panel-card { border-radius: var(--r-lg); background: var(--surface);
              border: 1px solid var(--line); padding: 16px; }
.pickup-head { display: flex; flex-direction: column; gap: 3px; }
.eyebrow-sm { font-size: 11px; font-weight: 700; letter-spacing: .6px; color: var(--muted); }
.pickup-head strong { font: 700 21px/1.2 var(--serif); }
.pickup-head small { font-size: 12px; color: var(--muted); }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 12px; padding-bottom: 16px; position: relative; }
.timeline li.last { padding-bottom: 0; }
.timeline li:not(.last)::before { content: ''; position: absolute; left: 7px; top: 17px;
                                  bottom: 2px; width: 1.5px; background: var(--line-strong); }
/* Not a control, so not --edge: a step not reached yet keeps a ring as
   quiet as the line joining it, and a reached one says so with a fill and
   a tick beside its words. */
.timeline .dot { width: 15px; height: 15px; border-radius: 8px; flex-shrink: 0;
                 border: 1.5px solid #4A433E; margin-top: 2px; }
.timeline li.done .dot { background: var(--teal); border-color: var(--teal);
                         color: var(--on-teal); display: flex; align-items: center;
                         justify-content: center; }
.timeline strong { display: block; font-size: 13px; font-weight: 600; }
.timeline small { font-size: 11px; color: var(--muted); line-height: 1.4; }
.timeline li:not(.done) strong { color: var(--body); }

.recap { display: flex; gap: 10px; padding: 3px 0; }
.recap .qty { font-size: 12px; color: var(--faint); width: 20px; flex-shrink: 0; }
.recap .what { flex: 1; font-size: 12px; color: var(--body); line-height: 1.4; }
.recap em { color: var(--mint); font-style: normal; }

/* --- forms --- */
.formfield { display: flex; flex-direction: column; gap: 6px; }
.formfield input { min-height: 56px; border-radius: var(--r); background: var(--surface);
                   border: 1px solid var(--line); padding: 0 15px; width: 100%;
                   font-size: 16px; color: var(--cream); }
.formfield input::placeholder { color: var(--faint); }
/* Django marks a field that failed with aria-invalid; the border says so
   to somebody who cannot hear it. Before :focus, so focus still wins. */
.formfield input[aria-invalid='true'] { border-color: var(--body); }
.formfield input:focus { border-color: var(--teal); outline: none; }
/* Weight and a rule, the same mark as .msg.error. Was orange. */
.fielderror { margin: 0; font-size: 12px; font-weight: 600; color: var(--cream);
              border-left: 3px solid var(--body); padding-left: 8px; }
.formfield .hint { margin: 0; }
/* Django's password rules arrive as a <ul> inside the help text. */
.formfield .hint ul { margin: 0; padding-left: 16px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 11px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--mint);
           font-size: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }

/* --- discount code ---
   The staff verify page that shared this section went with Decision I's
   stopgap, once our Clover app read the code instead (discounts/views.py
   qr_png), and its .verify, .kv and .badge-staff rules have gone with it.
   Its "bad" state was full-bleed orange on a stylesheet nothing used. */
.qrcard { width: 268px; border-radius: 26px; background: var(--cream); padding: 24px;
          display: flex; flex-direction: column; align-items: center; gap: 16px; }
.qrcard img { display: block; width: 220px; height: 220px; image-rendering: pixelated; }
.qrrule { width: 100%; height: 1px; background: rgba(23,20,18,.12); }
/* Was #8A7F6E, 3.75:1 on the cream card at 10px. Same hue, 4.51:1. */
.qrtier { font-size: 10px; font-weight: 700; letter-spacing: 1px; color: #7C7263; }
.qrpercent { font: 700 28px/1 var(--serif); color: var(--ink); margin-top: 3px; }
.ttlbar { width: 180px; height: 4px; border-radius: 2px; background: var(--raised); overflow: hidden; }
.ttlbar > div { height: 4px; border-radius: 2px; background: var(--teal); width: 100%;
                transition: width 1s linear; }

/* --- the discount card: the only place orange leads --- */
.discount-card { border-radius: 18px; padding: 18px;
                 background: linear-gradient(140deg, #35251A 0%, #241B16 100%);
                 border: 1px solid rgba(246,141,46,.35); }
.discount-card .tier { display: block; font-size: 10px; font-weight: 700;
                       letter-spacing: .8px; color: var(--amber); }
.discount-card .pct { display: block; font: 700 27px/1 var(--serif); margin: 5px 0; }
.discount-card .blurb { display: block; font-size: 12px; color: #C0AC9A; line-height: 1.4; }

/* --- grouped optional fields (birthday, consent) ---
   A bare <select> and a bare checkbox render as white boxes on this dark
   ground, because only `input` was ever styled. Both are handled here. */
.subform { border: 1px solid var(--line); border-radius: var(--r);
           padding: 14px; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.subform > legend { display: flex; align-items: center; gap: 8px; padding: 0 6px;
                    font-size: 13px; font-weight: 700; color: var(--cream); }
.optional { font-size: 10px; font-weight: 700; letter-spacing: .5px;
            text-transform: uppercase; color: var(--muted);
            border: 1px solid var(--line-strong); border-radius: 4px; padding: 2px 6px; }

.pair { display: flex; gap: 10px; }
.pair > select { flex: 2; }
.pair > input { flex: 1; }

select.field, input.field { min-height: 52px; border-radius: var(--r-sm);
    background: var(--surface); border: 1px solid var(--line);
    color: var(--cream); font-size: 16px; padding: 0 14px; width: 100%; }
select.field {
    /* Native selects ignore most styling until appearance is cleared, which
       is why this one was rendering as a white bar. */
    -webkit-appearance: none; appearance: none; padding-right: 38px;
    background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                      linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%;
    background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
select.field:focus, input.field:focus { border-color: var(--teal); outline: none; }
select.field option { background: var(--surface); color: var(--cream); }

.consent { display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
           min-height: var(--tap); padding: 4px 0; }
.consent input { position: absolute; opacity: 0; pointer-events: none; }
.consent .box { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px;
                border: 1.5px solid var(--edge); border-radius: 6px; }
.consent input:checked + .box { background: var(--teal); border-color: var(--teal); }
.consent input:checked + .box::after { content: ''; display: block; width: 6px; height: 12px;
    margin: 2px auto; border: solid var(--on-teal); border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg); }
.consent input:focus-visible + .box { outline: 2px solid var(--teal); outline-offset: 2px; }
.consent > span:last-child { font-size: 13px; color: var(--body); line-height: 1.45; }

.noted { display: flex; gap: 9px; margin: 0; font-size: 11.5px;
         color: var(--faint); line-height: 1.45; }
.noted svg { flex-shrink: 0; margin-top: 2px; color: var(--muted); }

/* --- an order they already have -------------------------------------
   Sits in the menu's context row, above the closed notice. Built on
   .context so it lines up with the one thing that already lives there,
   but it is an <a>, so the global link colour has to be taken back:
   `a { color: var(--mint) }` would tint the whole row like a link and
   fight the accent below. */
.context-order { color: var(--body); }
.context-order strong { color: var(--cream); }
.context-order .ico { color: var(--muted); display: flex; }
.context-order .go { font-size: 12px; font-weight: 700; color: var(--mint);
                     flex-shrink: 0; padding-left: 4px; }
/* A ready order (Handoff 2, D17, SPEC 4.5): one mint-edged card, the same
   on the menu and on the app's Home -- a check in a mint disc, what is
   ready and where, and View. Mint is "ready" everywhere, the app's tab dot
   included, and only the kitchen can light it: nothing here reads the
   clock. Before it is ready the unlit row above stays as it was. */
.ready-card { display: flex; align-items: center; gap: 12px; margin: 0 16px 4px;
              min-height: 68px; padding: 10px 14px; border-radius: var(--r-lg);
              background: var(--surface); border: 1px solid var(--mint); color: var(--cream); }
.ready-card .disc { width: 32px; height: 32px; flex: none; border-radius: 50%;
                    background: var(--mint); color: var(--on-teal);
                    display: flex; align-items: center; justify-content: center; }
.ready-card .ready-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ready-card strong { font-size: 15px; line-height: 20px; font-weight: 600; }
.ready-card small { font-size: 13px; line-height: 18px; color: var(--body); }
.ready-card .go { font-size: 14px; font-weight: 600; color: var(--mint); flex: none; }

/* --- add to home screen ---------------------------------------------
   Hidden in the markup and revealed by static/js/pwa.js, which is the
   only thing that can tell an installable browser from one holding the
   icon already. */
.install { margin: 0 16px 12px; border-radius: var(--r);
           background: var(--surface-2); border: 1px dashed var(--line-strong);
           display: flex; align-items: center; gap: 10px; padding: 10px 8px 10px 14px; }
.install .ico { color: var(--mint); display: flex; flex-shrink: 0; }
.install .who { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.install strong { font-size: 13px; font-weight: 600; color: var(--cream); }
.install small { font-size: 11px; color: var(--muted); }
.install-add { min-height: 34px; padding: 0 14px; border: 0; border-radius: var(--r-pill);
               background: var(--teal); color: var(--on-teal);
               font-size: 13px; font-weight: 700; cursor: pointer; flex-shrink: 0; }
/* No ✕ in the sprite, and adding one for a single 16px button is not
   worth a symbol. A rotated plus IS an ✕, at any size, in any colour. */
.install-no { width: 34px; height: 34px; flex-shrink: 0; }
.install-no svg { transform: rotate(45deg); }

/* --- the iOS instructions sheet -------------------------------------
   Only Safari sees this. There is no install API on iOS, so the sheet
   describes where the button is instead of pretending to press it. */
.sheet { position: fixed; inset: 0; z-index: 40; background: rgba(10,8,7,.72);
         display: flex; align-items: flex-end; justify-content: center;
         padding: 16px; }
.sheet-card { width: 100%; max-width: 428px; border-radius: var(--r-lg);
              background: var(--raised); border: 1px solid var(--line-strong);
              padding: 20px 18px calc(18px + env(safe-area-inset-bottom, 0px)); }
.sheet-card h2 { font: 700 19px/1.25 var(--serif); color: var(--cream); margin: 0 0 16px; }
.steps { list-style: none; margin: 0 0 18px; padding: 0;
         display: flex; flex-direction: column; gap: 14px; }
.steps li { display: flex; gap: 12px; align-items: flex-start;
            font-size: 13.5px; color: var(--body); line-height: 1.45; }
.steps strong { color: var(--cream); font-weight: 600; }
.stepico { width: 32px; height: 32px; flex-shrink: 0; border-radius: var(--r-sm);
           background: var(--surface); border: 1px solid var(--line);
           color: var(--mint); display: flex; align-items: center; justify-content: center; }

/* Installed to the home screen there is no browser chrome beneath the
   dock; its `bottom` above already adds the home indicator's inset, which
   is zero in a browser tab. */

/* --- the account hub (design_handoff_volunteer_account_hub, 2a) ---
   A short stack: discount card, a volunteer's card, then a list of links.
   The volunteer card's own styles are in volunteers/volunteers.css, which
   the hub loads only for a volunteer. */
.detail.hub { gap: 12px; }
.hub-list { border-radius: var(--r-lg); background: var(--surface);
            border: 1px solid var(--line); margin-top: 10px; overflow: hidden; }
.hub-row { display: flex; align-items: center; gap: 12px; min-height: 56px;
           padding: 10px 14px; color: inherit; text-decoration: none; }
.hub-row + .hub-row { border-top: 1px solid var(--line); }
.hub-row .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hub-row strong { font-size: 14px; font-weight: 600; color: var(--cream); }
.hub-row small { font-size: 11px; color: var(--muted); white-space: nowrap;
                 overflow: hidden; text-overflow: ellipsis; }
.hub-row .chev { transform: rotate(180deg); color: var(--faint); flex-shrink: 0; }
.hub-signout { margin-top: 10px; }

/* ---- Screen-reader only ------------------------------------------------
   A label a screen reader announces and the design does not show: for a
   field whose visible cue is its placeholder or its section heading. A
   placeholder alone is not a label -- it disappears on the first keystroke
   and some readers skip it. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
           overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
           white-space: nowrap; border: 0; }

/* --- the tab bar (design_handoff_cafe_usuals, item 1) -----------------
   Menu · Usuals · Cart · Account, on the pages that extend tab_page.html,
   in a browser. Fixed like the dock, with the home indicator's inset
   below. In the shared look (Handoff 2): the night ground and a hairline,
   muted places and the current one in mint, as the app's own tab bar draws
   it -- no teal block. The Cart tab's badge carries the cart's count. */
.with-tabs .shell { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
.with-tabs .shell:has(.dock) { padding-bottom: calc(var(--tabbar-h) + 112px + env(safe-area-inset-bottom, 0px)); }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
          background: var(--ink); border-top: 1px solid var(--line);
          padding: 6px 8px calc(8px + env(safe-area-inset-bottom, 0px)); }
.tabbar-inner { max-width: 460px; margin: 0 auto; display: flex; }
.tab { flex: 1; min-height: 52px; display: flex; flex-direction: column;
       align-items: center; justify-content: center; gap: 2px;
       color: var(--muted); text-decoration: none; }
.tab-label { font-size: 12px; font-weight: 500; line-height: 16px; }
.tab .pip { position: relative; height: 28px; display: flex; align-items: center; justify-content: center; }
.tab[aria-current='page'] { color: var(--mint); }
.tab[aria-current='page'] .tab-label { font-weight: 600; }
.tab .badge { position: absolute; top: -2px; left: 16px; min-width: 18px; height: 18px;
              padding: 0 5px; border-radius: var(--r-pill); background: var(--cream);
              color: var(--ink); font-size: 11px; font-weight: 700; line-height: 18px;
              text-align: center; }

/* In the Community Center app: the same four as the section control
   (Handoff 2, D13, SPEC 4.2) under the masthead, in place of the bar at
   the foot, which is the app's. A pill track, the current place filled
   teal and bold. Not pinned: it scrolls away with the page. Words only;
   the cart's count after its word. */
.tabbar-top { position: static; z-index: auto; margin: 4px 16px 16px; padding: 0;
              background: none; border: 0; }
.tabbar-top .tabbar-inner { max-width: none; height: 48px; gap: 2px; padding: 4px;
                            border-radius: var(--r-pill);
                            background: var(--surface); border: 1px solid var(--line); }
.tabbar-top .tab { min-height: 0; flex-direction: row-reverse; gap: 6px;
                   border-radius: var(--r-pill); color: var(--body); }
.tabbar-top .tab .pip { height: auto; }
.tabbar-top .tab .pip svg { display: none; }
.tabbar-top .tab .badge { position: static; }
.tabbar-top .tab-label { font-size: 14px; line-height: 1; font-weight: 500; }
.tabbar-top .tab[aria-current='page'] { background: var(--teal); color: var(--on-teal); }
.tabbar-top .tab[aria-current='page'] .tab-label { font-weight: 700; }
/* At 320 each place is about 70px wide; the words fit at 14px, and a site
   with longer words would drop to 13 rather than cut one short. */

/* In the app the foot of the page is the app's glass tab bar, which the
   app puts inside the safe area (northpoint-community CHANGES-APP 3), so the
   page clears it by its inset and no more. */
.in-community-app .shell { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 24px); }
.in-community-app .shell:has(.dock),
body.in-community-app:has(> .dock) .shell { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 112px); }

/* --- a tab page's own heading: "Usuals" and its line under ---------------- */
.page-head { display: flex; align-items: flex-start; gap: 12px; padding: 18px 16px 4px; }
.page-head .grow { flex: 1; min-width: 0; }
.page-head h1 { font: 700 28px/1.15 var(--serif); margin: 0; }
.page-head p { font-size: 14px; color: var(--body); margin: 4px 0 0; }
.pill { min-height: var(--tap); padding: 0 18px; border-radius: var(--r-pill);
        font-size: 14px; font-weight: 700; display: inline-flex; align-items: center;
        justify-content: center; gap: 6px; white-space: nowrap; cursor: pointer;
        border: 0; text-decoration: none; flex-shrink: 0; }
.pill-primary { background: var(--teal); color: var(--on-teal); }
.pill-ghost { background: none; border: 1px solid var(--edge); color: var(--cream); font-weight: 600; }
.textbtn { min-height: var(--tap); padding: 0 4px; background: none; border: 0;
           display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
           color: var(--mint); font-size: 13px; font-weight: 600; }

/* --- the Usuals page (item 2) ---------------------------------------- */
.usuals { display: flex; flex-direction: column; padding-bottom: 8px; }
.usuals .context { margin-top: 12px; }
.section-label { margin: 18px 16px 8px; font-size: 13px; font-weight: 600;
                 letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cards { display: flex; flex-direction: column; gap: 10px; padding: 0 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
        padding: 14px 14px 14px 16px; }
/* Delete my account (Decision CB): what goes, what is kept, as plain lists. */
.delete-list h2 { font-size: 14px; font-weight: 700; color: var(--cream); margin: 0 0 8px; }
.delete-list ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px;
                  font-size: 13px; line-height: 1.45; color: var(--body); }
.delete-list .hint { margin: 8px 0 0; }
.delete-link, .quiet-link { align-self: center; font-size: 13px; color: var(--muted);
                            text-decoration: underline; padding: 10px; }
.delete-link + .quiet-link { margin-top: -12px; }
.app-privacy .card h2, .np-notify .card h2 { font-size: 15px; font-weight: 700; color: var(--cream);
                                              margin: 0 0 6px; }
.app-privacy .card p, .np-notify .card p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--body); }
.app-privacy .card p + p { margin-top: 8px; }
.app-privacy .card ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px;
                        font-size: 14px; line-height: 1.5; color: var(--body); }
.np-notify .card .btn { margin-top: 12px; }
.np-notify .card .hint { margin-top: 8px; font-size: 13px; color: var(--muted); }
.app-privacy a { color: var(--mint); }
.usual { display: flex; align-items: center; gap: 12px; }
.usual .grow, .past .grow { flex: 1; min-width: 0; }
.usual-name { font-size: 16px; font-weight: 600; color: var(--cream); overflow-wrap: anywhere; }
.usual-what { font-size: 13px; line-height: 18px; color: var(--body); margin-top: 2px;
              display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
              overflow: hidden; }
.usual-price { font-size: 13px; font-weight: 600; color: var(--mint); margin-top: 4px; }
.usual form, .past form { display: flex; }
.past { padding-bottom: 8px; }
.past-open { display: block; color: inherit; text-decoration: none; }
.past-head { display: flex; justify-content: space-between; gap: 12px;
             font-size: 13px; color: var(--body); }
.past-head b { color: var(--cream); font-weight: 600; white-space: nowrap; }
.past-what { display: block; font-size: 15px; line-height: 20px; color: var(--cream); margin-top: 4px; }
.past-acts { display: flex; align-items: center; justify-content: space-between; gap: 8px;
             margin-top: 6px; }
.past-acts.end { justify-content: flex-end; }
.saved-mark { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap);
              font-size: 13px; color: var(--mint); }
.footnote { font-size: 13px; line-height: 18px; color: var(--faint); margin: 10px 20px 0; }
.keep { margin: 26px 16px 0; background: var(--raised); border: 1px solid var(--line);
        border-radius: var(--r-lg); padding: 20px 18px; }
.keep .badge-ico { width: 44px; height: 44px; border-radius: var(--r); background: var(--surface);
                   color: var(--mint); display: flex; align-items: center; justify-content: center; }
.keep h2 { margin: 12px 0 0; font-size: 18px; font-weight: 700; }
.keep p { font-size: 14px; line-height: 20px; color: var(--body); margin: 4px 0 0; }
.keep .pair { display: flex; gap: 10px; margin-top: 16px; }
.keep .pair .pill { flex: 1; min-height: 48px; font-size: 15px; }

/* Edit mode (item 3): a handle, then rename and remove, each a full 44px. */
.usual.editing { gap: 2px; padding: 10px 4px; }
.usual.editing.renaming { border-color: var(--edge); flex-wrap: wrap; }
.usual.dragging { opacity: .85; border-color: var(--teal); position: relative; z-index: 2; }
.handle { width: var(--tap); height: var(--tap); flex-shrink: 0; border: 0; background: none;
          color: var(--muted); display: flex; align-items: center; justify-content: center;
          cursor: grab; touch-action: none; border-radius: var(--r-sm); }
.handle:active { cursor: grabbing; }
.rename-form { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rename-form label { font-size: 12px; font-weight: 600; color: var(--body); margin-bottom: 4px; }
.rename-form input { min-height: var(--tap); padding: 0 12px; border-radius: var(--r-sm);
                     border: 1.5px solid var(--teal); background: var(--raised);
                     font-size: 16px; width: 100%; }
.rename-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
/* Move up and Move down: for a screen reader, and anybody without a pointer
   to drag with. Off screen until one of them has focus. */
.moves { display: flex; gap: 6px; }
.moves .pill:not(:focus):not(:focus-within) { position: absolute; width: 1px; height: 1px;
       overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
       padding: 0; border: 0; margin: -1px; }

/* --- a bottom sheet (items 4 and 7): the .sheet overlay, flush to the foot */
.sheet-card.bottom { max-width: 460px; border-radius: 24px 24px 0 0; background: var(--surface);
                     border-width: 1px 0 0; padding: 10px 16px calc(24px + env(safe-area-inset-bottom, 0px)); }
.sheet.flush { padding: 0; }
.grabber { width: 36px; height: 4px; border-radius: 4px; background: var(--line-strong);
           margin: 0 auto 6px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; }
.sheet-head h2 { margin: 0; font: 700 22px/1.25 var(--serif); }
.sheet-head h2:focus { outline: none; }
.sheet-close { margin-right: -8px; color: var(--body); }
.sheet-items { background: var(--raised); border: 1px solid var(--line); border-radius: var(--r);
               padding: 12px 14px; margin-top: 6px; }
.sheet-items div + div { margin-top: 8px; }
.sheet-items strong { display: block; font-size: 15px; font-weight: 600; }
.sheet-items small { display: block; font-size: 13px; line-height: 18px; color: var(--body); }
.sheet-field { display: block; font-size: 13px; font-weight: 600; color: var(--body); margin: 16px 0 6px; }
.sheet-input { width: 100%; min-height: 48px; padding: 0 14px; border-radius: var(--r);
               border: 1.5px solid var(--teal); background: var(--raised); font-size: 16px; }
.sheet-note { font-size: 13px; line-height: 18px; color: var(--body); margin: 10px 0 0; }
.sheet-card .btn-primary { margin-top: 16px; border-radius: var(--r-pill); }
.sheet-card .btn-text { width: 100%; min-height: 48px; margin-top: 4px; background: none; border: 0;
                        color: var(--body); font-size: 15px; font-weight: 600; cursor: pointer;
                        display: flex; align-items: center; justify-content: center; }

/* The cart's own buttons, now that the tab bar has the foot of the page. */
.cart-acts { display: flex; flex-direction: column; gap: 10px; }
.cart-acts .btn { border-radius: var(--r-pill); }

/* --- Check and pay (items 7 to 9) ---------------------------------------
   The checkout as a sheet. It scrolls once the card form opens; the Pay
   button carries the amount, so the total is on screen when it is pressed. */
.pay-sheet { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto;
             overscroll-behavior: contain; }
.pay-sheet .msgs { padding: 6px 0 0; }
.pay-sheet .notice { margin: 8px 0 0; }
.notice.changed { border: 1.5px solid var(--faint); background: var(--raised); color: var(--body); }
.notice.changed strong { display: block; color: var(--cream); font-weight: 700; }
.pay-list { background: var(--raised); border: 1px solid var(--line); border-radius: var(--r);
            margin-top: 10px; }
.pay-line { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px;
            border-bottom: 1px solid var(--line); }
.pay-line .grow, .pay-row .grow { flex: 1; min-width: 0; }
.pay-line strong, .pay-row strong { display: block; font-size: 15px; font-weight: 600; }
.pay-line small, .pay-row small { display: block; font-size: 13px; line-height: 18px; color: var(--body); }
.pay-price { font-size: 15px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pay-row { display: flex; align-items: center; gap: 10px; padding: 4px 6px 4px 14px; }
.pay-row + .pay-row { border-top: 1px solid var(--line); }
.pay-ico { color: var(--mint); display: flex; flex-shrink: 0; }
.pay-row .textbtn { padding: 0 12px; font-size: 14px; }
.pay-totals { padding: 14px 4px 0; }
#stripe-checkout .express { margin-top: 16px; }
/* Apple Pay in the cafe app (Decision CA, js/app-pay.js): Apple's own button,
   drawn by WebKit, white on the dark page as Apple asks. */
.apple-pay-button {
  display: block; width: 100%; height: 50px; margin: 16px 0 0; padding: 0; border: 0;
  -webkit-appearance: -apple-pay-button;
  -apple-pay-button-type: plain; -apple-pay-button-style: white;
  border-radius: var(--r-pill); cursor: pointer;
}
/* An empty Wallet: Apple's "Set up Apple Pay" (Decision CP). */
.apple-pay-set-up { -apple-pay-button-type: set-up; }
.express .apple-pay-button { margin-top: 0; }
.apple-pay-button:disabled { opacity: .4; }
.apple-pay-or { margin: 14px 0 10px; text-align: center; font-size: 13px; color: var(--muted); }
#stripe-checkout #pay-with-card { margin-top: 10px; border-radius: var(--r-pill); }
#stripe-checkout #card-section { margin-top: 16px; }
.pay-sheet #pay { margin-top: 16px; border-radius: var(--r-pill); }
.pay-sheet #pay-error { margin-top: 12px; }
