/* Instrument Sans, self-hosted. It used to come from fonts.googleapis.com,
   which put a third-party DNS lookup, TLS handshake and stylesheet fetch on
   the critical path of every page — including the staff day view, loaded
   over venue wifi at the host stand all evening. This is one variable font
   file per unicode range: the 400/500/600/700 faces Google served were all
   the same file, so `font-weight:400 700` below replaces four @font-face
   blocks with one. Instrument Sans is SIL Open Font Licensed, so shipping it
   from our own origin is allowed. */
@font-face{
  font-family:"Instrument Sans";
  font-style:normal;
  font-weight:400 700;
  font-display:swap;
  src:url(fonts/instrument-sans-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:"Instrument Sans";
  font-style:normal;
  font-weight:400 700;
  font-display:swap;
  src:url(fonts/instrument-sans-latin-ext.woff2) format("woff2");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,
    U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,
    U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* Instrument Sans' companion display face, same foundry, same SIL OFL,
   self-hosted the same way and for the same reason. Used sparingly — see
   .serif below — as the restaurant's voice (venue names, big headings),
   never for interface chrome (controls, labels, numerals stay sans). A
   single weight only; the diner flow has no use for a serif italic or a
   second serif weight. */
@font-face{
  font-family:"Instrument Serif";
  font-style:normal;
  font-weight:400;
  font-display:swap;
  src:url(fonts/instrument-serif-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:"Instrument Serif";
  font-style:normal;
  font-weight:400;
  font-display:swap;
  src:url(fonts/instrument-serif-latin-ext.woff2) format("woff2");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,
    U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,
    U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* --ink/--fg are the brand's own navy-on-cream, inverted: cream text on a
   navy ground here, navy text on a cream ground in :root.diner below. #1B0F48
   was picked, not merely darkened to taste, to match the old #101E1A's
   luminance almost exactly (0.0104 vs 0.0111) — every contrast ratio already
   measured against the old ink (--plan-ink 4.87:1/6.86:1, --plan-line
   3.47:1/4.88:1) survives the hue change intact, because WCAG contrast is
   luminance-only. --brass/--sage/--clay stay their original values: the
   floor plan's own literal colours (a real table, real felt), independent of
   which identity is skinning the chrome around it. --accent stays brass here
   too — the host-stand day view was not asked to change, only its ground. */
/* 2026-09-17 d'sini revamp (Phase 1b): this identity is now staff-only —
   admin moved to the light set below (:root.diner, html[data-scheme="light"])
   — and its ground/text pair was re-valued from the rebrand's navy/cream
   (#1B0F48/#FFF8EF) to the approved dark aubergine (#201C29 ground, #292433
   raised, #F1EBF6 text). The prose comments immediately below this line
   still narrate the navy-era reasoning and cite its old hex values; the
   *structure* they describe (contrast-derived pairs, --brass/--sage/--clay
   as literal plan colours independent of chrome) still holds, only the
   literal ink/fg values they cite are superseded. --accent also changed
   role here: it used to alias --brass (gold), and is now its own literal
   value, #F38563 — the design's dedicated staff action colour — because
   the floor plan's brass must stay brass regardless of which colour serves
   as the chrome's primary action. */
:root{
  --ink:#201C29; --ink-2:#292433; --line:#423A50;
  /* Measured against the new #201C29 ground: 3.05:1 (WCAG luminance),
     clearing the 3:1 floor for a field border. #423A50 alone (--line) is
     only 1.55:1, which is fine for a hairline but not for anything that
     needs to read as a boundary on its own. */
  --line-strong:#6E6480;
  --paper:#F1EEE5; --brass:#C89552; --sage:#7FA08C; --clay:#B0563F;
  --fg:#F1EBF6; --fg-dim:#B6ADBF;
  /* Ink and rule colours on paper -- the reservation card (.rescard) draws
     with these. With pure black behind it --plan-ink measures 4.87:1 and
     --plan-line 3.47:1; on paper, 6.86:1 and 4.88:1. */
  --plan-ink:#565049; --plan-line:#6E6659;
  /* Clay, twice, for the same reason brass is split above. #B0563F is a
     fill and a border — it carries white text on .demobar at 4.90:1, and a
     border only needs 3:1 — but as *text* on this identity's navy it is
     3.5:1, which fails, and .error is body-size text on the screens where
     something has just gone wrong. --clay-text is the same red lightened
     until it clears 4.5:1 on both the page (5.31:1) and a panel (4.89:1).
     Lightening --clay itself was the obvious move and the wrong one: it
     would have dropped .demobar's white text to 3.27:1. */
  --clay-text:#D9705A;
  /* The old floor-plan marker colours, kept because "The room" tiles still
     use them: lime for seats free, orange for seated. */
  --mk-free:#D0F64B;
  --mk-live:#FF4213;
  /* The two ground-specific brasses the diner identity splits (see
     :root.diner). Nothing here needs a second value — brass is already
     legible on ink — but .date::before is written once for both, so both
     names have to resolve on this identity too. */
  --brass-lit:#C89552; --brass-ink:#C89552;
  /* --accent is the staff shell's own primary-action colour, #F38563 —
     safe as text too (6.63:1 on this ground, 5.99:1 on --ink-2), which is
     why --accent-text simply equals it rather than needing a second darker
     stop the way the light identity's orange does. It no longer aliases
     --brass: --brass stays the literal metal the floor plan is drawn with,
     independent of whichever colour is chrome's primary action. */
  --accent:#F38563;
  --accent-text:var(--accent);
  --on-accent:#2A1838;
  --accent-hover:#E8794F;
  --accent-wash:rgba(243,133,99,.14);
  --surface:var(--ink-2);
  --field-bg:rgba(0,0,0,.22);
  --radius:10px;
  --shadow:none;
  /* New semantic tokens (Phase 1b). --soft is the dark identity's own
     "raised" surface — the same value as --ink-2 — used for
     selection/hover backgrounds the way --soft's light counterpart (a
     tinted lavender) is; a flat colour swatch on this ground reads as
     already-raised without needing a second literal. --ok/--warn are
     measured against both --ink and --ink-2: --ok (#4FAE84) clears 4.5:1
     against each (6.13:1 / 5.54:1), and --warn (#E8B855) clears it by a
     wide margin (~9:1). --danger/--danger-text alias the existing
     --clay/--clay-text pair rather than duplicating their values under a
     new name. */
  --soft:var(--ink-2);
  --ok:#4FAE84;
  --ok-bg:rgba(79,174,132,.14);
  --warn:#E8B855;
  --warn-bg:rgba(232,184,85,.14);
  --danger:var(--clay);
  --danger-text:var(--clay-text);
  /* Tells the browser to render its OWN chrome -- the calendar-picker icon
     on <input type=date>, scrollbars, spin buttons -- with the dark palette
     rather than assuming a light page. Nothing here is dark by accident;
     this makes native controls match on purpose. */
  color-scheme: dark;
}

/* ---- The diner-facing identity ------------------------------------------
   Set on <html> by includes/head.php for every page a diner sees; staff and
   admin never carry it. They keep the dark palette deliberately: the day
   view is read at a host stand in a dim dining room mid-service, and a white
   screen is the wrong tool for that room.

   The organising idea is that the page becomes the paper the floor plan is
   drawn on. This product's one real differentiator is that a diner picks
   their own table off a plan, and that plan was already a lit surface
   floating on a dark page — here the whole booking flow is that surface, and
   the plan stops being an island.

   The ground is the brand's own cream (#FFF8EF) and the primary is the
   brand's hot orange (#FF4213) — sampled directly from the logo at
   Logo/dsini.png (untracked; see Plan 7 in the vault). Both reverse an
   earlier call: 2026-08-17 chose a green-cast near-white specifically to
   avoid "the single most predictable choice for this subject" — warm cream.
   That reasoning held only in the absence of a real brand to follow; it does
   not hold against the client's own designed identity, so the override
   stands rather than the rule. The structure that decision actually
   established survives untouched — light diner / dark staff, elevation
   over hairlines, sentence case, the venue band as figure-ground.

   Two contrast problems the raw brand colours don't solve on their own,
   both measured rather than assumed. White text on #FF4213 is 3.48:1, which
   fails a 15px/600 button label (not "large text" under WCAG, which needs
   4.5:1) — so --on-accent is the brand's own navy instead, 5.00:1 on the
   same orange. And #FF4213 itself is only 3.30:1 as body-sized text on
   cream: enough for a graphical object (a button fill, a focus ring, a
   border — the 3:1 threshold) but not for prose or a small label. Rather
   than audit every call site for size and weight, --accent stays
   full-saturation for exactly those graphical roles and every place it
   colours actual text or an icon gets --accent-text instead, a single
   darkened stop (4.90:1 on cream, 5.17:1 on the white card) that is safe at
   any size. Two tokens instead of one, so nobody has to re-derive which
   call sites happen to be large enough. */
/* 2026-09-17 d'sini revamp (Phase 1b): re-valued from the rebrand's cream
   (#FFF8EF ground / #1B0F48 text) to the approved light lavender (#F5F3F8
   ground, #281944 text), and now also set on html[data-scheme="light"] —
   not only :root.diner — so the admin shell gets these values without
   carrying the diner-only class a HelpPagesTest pins the literal substring
   of. Filled light-scheme actions use a deliberately deeper orange and white
   ink: #D83A0D/#FFFFFF measures 4.63:1, clearing the small-text AA threshold
   while being visibly easier to scan than dark text on the brighter logo
   orange. --accent-text remains the proven #CC340F text-safe orange for
   links on pale surfaces. The prose below still narrates the cream-era
   reasoning for the pieces that did not change (why two accent stops
   exist, why brass needed no lighter clay) and remains accurate for those;
   only the literal ink/fg/band values it cites for #1B0F48/#FFF8EF are
   superseded. */
:root.diner, html[data-scheme="light"], .hp-fig{
  --ink:#F5F3F8;
  --ink-2:#FFFFFF;
  --surface:#FFFFFF;
  --line:#E5E0EB;
  /* Measured against white, where most fields/borders actually sit: 3.50:1
     (WCAG luminance), clearing the 3:1 floor. */
  --line-strong:#8F84A3;
  --fg:#281944;
  --fg-dim:#706A7B;
  --accent:#D83A0D;
  --accent-hover:#C9320A;
  --accent-text:#CC340F;
  --on-accent:#FFFFFF;
  --accent-wash:rgba(255,66,19,.08);
  --clay:#C81E45;
  /* This identity needs no lighter text clay — its own is 5.64:1 on white
     already. It has to be restated all the same, or the .error rule (which
     is written once for both) would reach past .diner to the dark
     identity's --clay-text and land at 3.05:1 on cream. Same reasoning as
     --brass-lit/--brass-ink being declared on :root even where one value
     would have done. */
  --clay-text:var(--clay);
  --field-bg:#FFFFFF;
  --radius:12px;
  --shadow:0 1px 2px rgba(40,25,68,.05), 0 8px 24px -16px rgba(40,25,68,.28);
  /* The venue band — see .diner .venuebar — interim only. Rather than a
     deep navy plate now that the diner ground is itself light, the band
     re-points to the white surface, with the ink and its muted twin
     standing in for what were cream-on-navy: --on-band is --fg,
     --on-band-dim is --fg-dim. This holds until Phase 2 rewrites the venue
     header proper; it exists so the venue band's ~19 dependent rules
     (.venuebar/.hero/.brandbar/.greview) render coherently in the meantime
     rather than painting navy-on-navy. */
  --band:var(--ink-2);
  --on-band:var(--fg);
  --on-band-dim:var(--fg-dim);
  /* Brass is retired from the diner identity's chrome (it stays, unchanged,
     as the floor plan's own literal metal — see --brass above). --brass-lit
     used to be the brand's lime, legible at 14:1 against the old navy band
     — now that the band is the white surface, lime is close to invisible,
     so it re-points (interim, alongside --band above) to --brass-ink, the
     same deepened orange already proven at 5.99:1 on white. */
  --brass-lit:var(--brass-ink);
  --brass-ink:#B23A0D;
  /* New semantic tokens (Phase 1b): --soft is the selection/hover
     background; --ok/--warn are measured on both white and the page ground
     (#326952: 6.41:1 on white, 5.81:1 on page; #8A5A12: 5.91:1 on white,
     5.37:1 on page) so they are safe as text, not only as a fill.
     --danger/--danger-text alias the existing --clay/--clay-text pair
     rather than duplicating their values under a new name — see the root
     CLAUDE.md instruction to keep that semantics rather than fork it. */
  --soft:#EAE4F6;
  --ok:#326952;
  --ok-bg:#E4F1EB;
  --warn:#8A5A12;
  --warn-bg:#FBEFDC;
  --danger:var(--clay);
  --danger-text:var(--clay-text);
  color-scheme: light;
}
/* Light-identity component treatment. Everything above is token-driven and
   needed no second copy; these are the places where a light surface wants a
   genuinely different construction rather than different values — elevation
   instead of hairlines, a white card on a tinted ground instead of a darker
   panel on a dark one.

   The type is reset here too, and that is most of the identity shift. The
   dark palette went with a heavy uppercase, wide-tracked setting — the idiom
   of an expensive dining room. A booking utility a diner uses once, quickly,
   on a phone wants the opposite: sentence case, normal tracking, hierarchy
   carried by size and weight. Same typeface, different voice. */
/* ---- The venue band -----------------------------------------------------
   Everything the page knows about the *restaurant* — classification, name,
   address, description, phone, hours, menu, sibling branches — on one deep
   green field; everything about the *booking* on the white card below it.
   That split is the structure: the band answers "who am I booking with",
   the card answers "what am I booking", and a diner never has to work out
   which of the two a given line belongs to.

   It also gives the light identity a front. The card previously opened on a
   white bar against a near-white ground — a 2% difference nobody can see —
   so the elevation this identity is built on had nothing to lift the card
   off. A venue with no hero photo (most of them until a client uploads one)
   got the worst of it: a page whose whole top third was undifferentiated
   white. Now the photo, or the band alone, is the ground the card sits on.

   The green is --band, not --accent: a deeper sibling, so the primary green
   keeps its job as the thing you press.

   No rule along the bottom edge. A brass hairline was tried there and it is
   either invisible (1px, against this much contrast) or reads as a stripe
   around a box (2px) — and either way it spends brass on structure. Brass
   in this identity marks the restaurant's own things: the cuisine line, the
   info icons, the step numerals, the reference on a finished booking. The
   green-to-white cut is separation enough on its own. */
.diner .venuebar{background:var(--band);color:var(--on-band);
  border-top:none;border-bottom:none;padding:36px 24px 32px}
/* The restaurant's own classification, read before its name the way it is on
   a shopfront. Brass because this is the venue describing itself, which is
   the same voice the reference number on a finished booking speaks in — see
   .cardrow.ref. Its own margins, because the global .cuisine pulls itself up
   by -4px to sit under a heading it no longer sits under. */
.diner .venuebar .cuisine{margin:0 0 7px;color:var(--brass-lit);font-size:11.5px;
  letter-spacing:.12em}
/* The one place per page the restaurant's own name gets to be a name rather
   than a label — see the .serif rule above for the CJK-fallback reasoning
   and why this is scoped to .diner only. */
.diner .venuebar .name{font-family:"Instrument Serif","Songti SC","Noto Serif CJK SC",Georgia,serif;
  font-weight:400;font-size:46px;line-height:1.06;letter-spacing:-.012em;text-transform:none;
  /* extras, details and quick book set the name in an <h1>, which brought the
     global h1 20px bottom margin into the band: a blank strip under the name. */
  margin:0}
/* Direct child only, so it reaches the venue's address and not anything a
   nested .sub might carry — the sign-in page's brandline has one, and this
   rule is about the band's own second line. */
.diner .venuebar > .sub{font-size:13.5px;margin-top:7px;color:var(--on-band-dim);
  max-width:52ch}
/* .lede and .infolist both carry negative or heading-relative margins for
   their life on the white card; inside the band they are stacked members of
   one block and state their own. */
.diner .venuebar .lede{margin:12px 0 0;font-size:14px;color:var(--on-band-dim);
  max-width:60ch}
.diner .venuebar .infolist{margin-top:14px;color:var(--on-band-dim);gap:6px 16px}
/* text-decoration-color was a literal cream alpha, assuming the band was
   still the dark navy plate — now that --band is the light surface (see
   :root.diner's own comment), the underline has to darken with it instead
   of staying a near-white tint that vanished against white. color-mix on
   --on-band (== --fg here) keeps it working on whichever ground the band
   ends up on. */
.diner .venuebar .infolist a{color:var(--on-band);
  text-decoration-color:color-mix(in srgb, var(--on-band) 40%, transparent);
  text-underline-offset:3px}
.diner .venuebar .infolist a:hover{text-decoration-color:currentColor}
.diner .venuebar .infolist svg{color:var(--brass-lit)}
.diner .venuebar .branches{margin:14px 0 0;font-size:12.5px;color:var(--on-band-dim)}
.diner .venuebar .branches a{color:var(--on-band)}
/* The global focus ring is the accent green, which all but disappears against
   the band — and the band holds real links (phone, menu, Instagram, sibling
   branches), so this is the one place the ring has to change colour with the
   ground it lands on. */
.diner .venuebar :focus-visible{outline-color:var(--on-band)}
/* The rating and address on one line — same two pieces of content as
   before, just no longer each a paragraph of their own. */
.diner .venuebar .meta{display:flex;flex-wrap:wrap;align-items:center;
  gap:6px 14px;margin-top:10px;font-size:13.5px;color:var(--on-band-dim)}
.diner .venuebar .meta .greview{margin:0}
.diner .venuebar .meta .addr{max-width:40ch}
/* Description and the phone/hours/menu/Instagram list, put away behind a
   tap. Marker drawn by hand rather than the browser's own triangle, so it
   can carry the same 90-degree turn every other disclosure on the diner
   side already animates (see .policies). */
.diner .about{margin-top:14px}
.diner .about summary{cursor:pointer;color:var(--on-band);font-weight:600;
  font-size:13.5px;list-style:none}
.diner .about summary::-webkit-details-marker{display:none}
.diner .about summary::before{content:"";display:inline-block;
  width:0;height:0;margin-right:7px;vertical-align:2px;
  border-style:solid;border-width:4px 0 4px 6px;
  border-color:transparent transparent transparent var(--brass-lit);
  transition:transform .15s}
.diner .about[open] summary::before{transform:rotate(90deg)}
/* The photo's own placeholder and the colour it fades into, so a slow image
   reveals the band rather than a white gap that then turns green. */
.diner .hero{background:var(--band)}
.diner .book.withhero .venuebar{padding-top:20px}

/* The root picker's band. Same field, but what stands on it is the product
   rather than a restaurant — a diner who lands here and taps into a venue
   should not feel the site changed under them. */
.diner .brandbar h1{color:var(--on-band);margin:0}
.diner .brandbar .lede{margin:10px 0 0}
/* The one screen whose subject is the product rather than a restaurant, so
   the wordmark is sized as the subject: larger than the 24px it takes
   everywhere else, and larger than the h1 below it, which here is a sentence
   about what you can do rather than the name of the thing you are on. The
   48px mark beside it (book/index.php) is cap-height to this. */
.diner .brandbar .brandline .nm{color:var(--on-band);font-size:34px}
.diner .brandbar .brandline .sub{color:var(--on-band-dim)}
/* The band's own generous top padding already separates this from the top of
   the page; what the bigger lockup needs is air under it, before the tagline. */
.diner .brandbar .brandline{margin-bottom:22px;gap:14px}
/* Overrides the global a{color:var(--accent)} below: most links in this
   identity are plain inline text (a phone number, "see menu", a sibling
   branch, "book another table") at body size, where the full-saturation
   orange is 3.30:1 — short of the 4.5:1 text needs. --accent-text is the
   same hue, darkened to clear it. Elements that already set their own link
   colour (the venue band's on-band links, .hint, .branches's inherit) are
   untouched by this — it only reaches links that were otherwise falling
   through to the global default. Every classed <a> in the diner templates
   is excluded and handled by its own, more deliberate rule instead: .btn/
   .btn-outline (below), .venuecard (inherits --fg — a card is navigation,
   not a link-coloured sentence), .date (ditto, plus its own [aria-current]
   fill). What is left and actually needs this is the truly bare <a> — "book
   another table", the cancel link, a toggle tab before it is current. */
/* Phase 1b: the admin shell moved onto this same light identity via
   html[data-scheme="light"] rather than the .diner class (see :root.diner's
   own comment), so every rule below that is a genuine light *construction*
   — sentence case instead of tracked caps, a filled/lifted button hover
   instead of the dark identity's transform-only one, enlarged field padding
   — is extended to it here. Left .diner-only: .book/.venuebar/.hero/
   .langtop/.stepnav and the step-heading serif treatment, which are
   genuinely diner-specific rather than "how a light surface is built". */
.diner a:not(.btn):not(.venuecard):not(.date):not([aria-current]),
html[data-scheme="light"] a:not(.btn):not(.venuecard):not(.date):not([aria-current]){color:var(--accent-text)}
.diner label,html[data-scheme="light"] label{font-size:13px;letter-spacing:0;text-transform:none;font-weight:600;
  color:var(--fg);margin:18px 0 7px}
.diner button,.diner .btn,
html[data-scheme="light"] button,html[data-scheme="light"] .btn{letter-spacing:0;text-transform:none;font-size:15px;
  font-weight:600;padding:14px 22px;transition:background .15s,transform .15s,box-shadow .15s}
.diner button:hover,.diner .btn:hover,
html[data-scheme="light"] button:hover,html[data-scheme="light"] .btn:hover{background:var(--accent-hover);
  transform:translateY(-1px);box-shadow:0 4px 12px -4px rgba(40,25,68,.35)}
.diner button:active,.diner .btn:active,
html[data-scheme="light"] button:active,html[data-scheme="light"] .btn:active{transform:translateY(0);box-shadow:none}
.diner .btn.btn-outline:hover,html[data-scheme="light"] .btn.btn-outline:hover{background:var(--accent-wash)}
/* Three more places the base identity colours a button label or a hover
   state with --accent directly, all at sizes below the "large text"
   threshold (18.66px bold / 24px normal) — same problem a{} had above, same
   fix. Borders and fills elsewhere keep the vivid --accent; only the glyph
   or label itself needs the darker stop. .stepbtn stays .diner-only: it is
   the booking flow's party-size stepper, which admin has no equivalent of. */
.diner .btn.btn-outline,html[data-scheme="light"] .btn.btn-outline{color:var(--accent-text)}
.diner .btn-secondary:hover,html[data-scheme="light"] .btn-secondary:hover{color:var(--accent-text)}
.diner .stepbtn:hover{color:var(--accent-text)}
/* assets/app.js already swaps a submitting button's text to data-pending and
   disables it — data-idle (where it stashed the original label) is only
   ever present while that swap is live, so it doubles as the hook for a
   spinner with no JS change. currentColor via a transparent top border, not
   a hardcoded white, so it reads correctly against .btn-outline's accent
   text as well as a filled button's --on-accent. Previously .diner-only,
   which left the dark identity's own submitting buttons with no spinner at
   all — extended to admin's light shell now that a construction rule this
   generic (currentColor, no literal colour) has no reason to be withheld
   from it. */
.diner button[disabled][data-idle]::before,
html[data-scheme="light"] button[disabled][data-idle]::before{content:"";display:inline-block;
  width:13px;height:13px;margin:0 8px -2px 0;border:2px solid currentColor;
  border-top-color:transparent;border-radius:50%;opacity:.85;
  animation:btnspin .6s linear infinite}
@keyframes btnspin{to{transform:rotate(360deg)}}
.diner input,.diner select,.diner textarea,
html[data-scheme="light"] input,html[data-scheme="light"] select,html[data-scheme="light"] textarea{padding:13px 14px}
.diner input::placeholder,.diner textarea::placeholder,
html[data-scheme="light"] input::placeholder,html[data-scheme="light"] textarea::placeholder{color:var(--fg-dim)}
/* The step headings are the only other display-face moment on the white
   card, and they are what the serif is for — the restaurant's voice asking
   the question, the sans answering with controls and labels underneath.
   Phase 2's .booksteps component (see the guest-revamp block further down)
   is the flow's real progress indicator now, on the three pages that carry
   it; h2.step/h1.step here are plain heading style everywhere else in the
   flow (step-quick, step-pay, step-confirmed) and carry no numeral of their
   own — an earlier "01/02/03/04" numbered-span treatment lived here and was
   removed once .booksteps replaced it as the thing that actually counts. */
.diner h2.step{font-family:"Instrument Serif",Georgia,serif;font-weight:400;
  font-size:33px;line-height:1.1;letter-spacing:-.008em;gap:12px;margin:56px 0 20px}
/* The first step opens the card and needs no gap above it — the band is
   already there. h2.step:first-of-type says exactly that, but it is 0-2-1
   and so are both .diner h2.step rules, and the mobile one restates the
   whole `margin` shorthand from further down the file, so it silently won:
   every phone has been opening this card with a dead band of white above
   "Pick a date". Stating it at 0-3-1 puts it beyond source order. */
.diner h2.step:first-of-type{margin-top:0}
/* Every page heading in the flow, not only the two that happened to carry
   .serif in the markup — a product that says "Booking confirmed" in the
   display face and "Cancel this booking?" in the interface face reads as two
   different products. Scoped to .book, which is the diner container; staff
   and admin headings live in .wrap and are not touched. Serif sets smaller
   than sans at the same size, hence 29 against the 26 above. */
.diner .book h1{font-family:"Instrument Serif","Songti SC","Noto Serif CJK SC",Georgia,serif;
  font-weight:400;font-size:29px;letter-spacing:0}
/* The one exception to the rule directly above, and it is scoped as tightly
   as it can be: .brandbar exists on the root picker and nowhere else
   (book/brand.php carries .venuebar without it, because its heading is the
   *brand's* name and belongs in the restaurant's voice like any other).
   Here the heading is the product talking about itself, not a restaurant
   naming itself — and the d'sini logotype is bold rounded lowercase, so the
   product's own voice is the interface face at its heaviest, not the display
   face. Specificity is 0-3-1 deliberately, so this does not depend on
   sitting after the serif rule to win. */
.diner .book .brandbar h1{font-family:"Instrument Sans",-apple-system,sans-serif;
  font-weight:600;font-size:40px;line-height:1.06;letter-spacing:-.022em}
.diner .toggle a,.diner .date em,.diner .sitting em{letter-spacing:.04em}

/* The booking flow as one white card on the tinted ground, rather than a
   column of text bleeding into the page. Edge to edge on a phone, where a
   card with margins just wastes width; a real card from tablet up. */
.diner .book{background:var(--surface)}
@media(min-width:700px){
  /* flex:0 0 auto so the card is the height of its content. <main> grows by
     default, to give the dark identity's short pages something to centre in
     — but a card that stretches is a panel, not a card, and the landing page
     ended up as a white slab with 200px of nothing under the last venue.
     The footer is pushed down by its own auto margin instead.

     2026-09-22: overflow:hidden (clipping a full-bleed .hero's square top
     corners to this same radius — confirmed live, both with and without
     it) also silently breaks position:sticky for anything inside, because
     it makes .book the nearest non-visible-overflow ancestor sticky has to
     measure against, and .book itself never scrolls independently — found
     on step-date.php's own booking-card sidebar, already shipped, not
     something this pass introduced. clip-path draws the identical rounded
     mask without establishing a scroll/clip container, so it clips exactly
     like overflow:hidden did but leaves sticky descendants alone. Keep the
     round() radius equal to border-radius below if either ever changes. */
  .diner .book{flex:0 0 auto;margin-block:28px;border-radius:16px;
    clip-path:inset(0 round 16px);
    box-shadow:var(--shadow);border:1px solid var(--line);min-height:0}
  .diner .book > .pad:only-child{margin-block:0}
}
body > .publicfoot{margin-top:auto}
/* Elevation instead of a border, for the things that are genuinely raised. */
/* The hero's fade exists to sink the photo into whatever it actually meets.
   That used to be the white card; it is now the band, so the photo darkens
   into navy and the two read as one masthead rather than a photo with a
   stripe under it. Fading to the wrong colour is visible as a grey or white
   seam across the bottom of every venue's image, which is why this moved
   twice. */
.diner .hero::after{background:linear-gradient(180deg,
  rgba(27,15,72,0) 52%, var(--band) 100%)}
/* No serif override here any more, deliberately — see .brandline .nm.
   This used to set the wordmark in Instrument Serif on the reasoning that it
   was "a small version of the same restaurant-name moment". With a real
   brand in place that reading is wrong: serif is the *restaurant's* voice in
   this system, and the thing in the band on the root picker is the product
   naming itself, not a venue. It takes the brand's own lowercase bold
   setting in both identities instead. */
.diner .venuecard{box-shadow:var(--shadow)}
.diner .venuecard:hover{border-color:var(--accent)}
.diner .venuecard:hover .shot img{transform:scale(1.03)}
/* Sentence case, like the venue bar. Wide-tracked caps was the dark
   identity's voice, and leaving it here made a venue's name in the picker
   read as a different product from its name on its own page. */
.diner .venuecard .nm{font-family:"Instrument Serif","Songti SC","Noto Serif CJK SC",Georgia,serif;
  font-weight:400;font-size:19px;letter-spacing:0;text-transform:none}
.diner .venuecard .cardbrand{text-transform:none;letter-spacing:0;font-weight:600;color:var(--accent-text)}
.diner .venuecard .addr,.diner .venuecard .desc{font-size:13.5px}
.diner .summary{background:var(--ink);border-color:var(--line)}
.diner .publicfoot{border-top-color:var(--line)}

/* One quiet settle on page load, not a parade of effects — every direct
   child of the content area rises 8px and fades in, staggered by 40ms.
   `backwards` fill keeps a child invisible for its own delay instead of
   flashing full-opacity for one frame first. Capped at six steps: a page
   with a dozen optional notices above the form (step-date.php on a busy
   venue) would otherwise stagger the form itself in half a second after
   the page is already sitting there. Killed entirely below, alongside
   every other transition in the app, for prefers-reduced-motion. */
.diner .pad > *{animation:padIn .32s ease backwards}
.diner .pad > *:nth-child(2){animation-delay:.04s}
.diner .pad > *:nth-child(3){animation-delay:.08s}
.diner .pad > *:nth-child(4){animation-delay:.12s}
.diner .pad > *:nth-child(5){animation-delay:.16s}
.diner .pad > *:nth-child(n+6){animation-delay:.2s}
@keyframes padIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}

*{box-sizing:border-box}
/* Sticky footer. The public sign-in footer sits outside <main>, so on a short
   page — the landing page with no venues, a confirmation — it used to float
   wherever the content happened to stop, halfway up a tall screen. */
body{margin:0;background:var(--ink);color:var(--fg);
  font:16px/1.5 "Instrument Sans","Avenir Next",-apple-system,sans-serif;
  min-height:100svh;display:flex;flex-direction:column}
body > main{flex:1 0 auto}
body > .publicfoot{flex:0 0 auto}
a{color:var(--accent)}
/* The restaurant's voice, used sparingly: a venue name, a page h1, the
   confirmed moment — never a control, a label or a numeral, which all stay
   the sans interface voice above. A venue name can be CJK ("锦亦轩 Jin Yi
   Xuan") — Instrument Serif has no CJK glyphs, so those characters fall
   through to a system serif rather than an interface sans, keeping the
   register (a printed menu, not a UI) even where the display face itself
   can't reach. */
.serif{font-family:"Instrument Serif","Songti SC","Noto Serif CJK SC",Georgia,serif;
  font-weight:400;letter-spacing:0}
/* width:100% is load-bearing, not belt-and-braces. body is a flex column (for
   the sticky footer), and on a flex item `margin:0 auto` in the cross axis
   suppresses the default stretch — so these centre at their *content* width
   and never reach max-width. Without it every page in the app silently
   narrows to whatever its widest line happens to be. */
.wrap{width:100%;max-width:860px;margin:0 auto;padding:32px 20px 80px}

.brandline{display:flex;align-items:center;gap:12px}
/* The front page is an ordinary block, so its brandline needs the margin
   stated; the sign-in page (frontend/src/input.css, #signin .lockup) spaces
   its own copy with flex gap instead. */
.book .brandline{margin-bottom:20px}
.brandline svg{flex:0 0 auto;display:block}
/* The d'sini wordmark. Lowercase and tightly set, in both identities,
   because that is what the logotype is: bold rounded lowercase lettering
   with the apostrophe carried inside the word. The wide-tracked uppercase
   this used to be turned it into "D'SINI", which is a different mark — the
   rule predates the brand existing and was styling a generic product label.
   Not the custom logotype itself — that exists only as the PNG in Logo/,
   with no webfont to set it in — but Instrument Sans at its heaviest is the
   closest honest stand-in and stays consistent with the mark beside it. */
.brandline .nm{font-size:24px;font-weight:700;letter-spacing:-.02em;text-transform:none}
.brandline .sub{font-size:11px;letter-spacing:.1em;text-transform:uppercase;
  color:var(--fg-dim);margin-top:2px}

/* Password field with the reveal button inside it. The button is added by
   assets/app.js, so the padding that makes room for it only matters when it
   is actually there. */
.field{position:relative;display:flex;align-items:center}
.field input{width:100%}
.field.haspeek input{padding-right:72px}
.peek{position:absolute;right:5px;margin:0;background:none;border:1px solid transparent;
  border-radius:2px;color:var(--fg-dim);font:inherit;font-size:10.5px;font-weight:600;
  letter-spacing:.12em;text-transform:uppercase;padding:9px 10px;min-height:38px;cursor:pointer}
.peek:hover{color:var(--accent);border-color:var(--line)}
.capslock{display:flex;gap:8px;align-items:center;margin:8px 0 0;font-size:12px;color:var(--accent)}
/* The `hidden` attribute only hides via the UA stylesheet, which any author
   `display` beats — so setting display:flex above silently made the warning
   permanent. It has to be switched off explicitly. */
.capslock[hidden]{display:none}
.capslock .dot{width:6px;height:6px;border-radius:50%;background:var(--accent);flex:0 0 auto}
h1{font-size:26px;letter-spacing:.02em;margin:0 0 20px}
label{display:block;margin:16px 0 6px;font-size:12px;letter-spacing:.14em;
  text-transform:uppercase;color:var(--fg-dim)}
.req{color:var(--accent-text);text-transform:none;letter-spacing:normal;margin-left:2px}
.opt{text-transform:none;letter-spacing:normal;margin-left:4px;color:var(--fg-dim);font-weight:400}
input,select,textarea{width:100%;background:var(--field-bg);color:var(--fg);
  border:1px solid var(--line-strong);border-radius:var(--radius);padding:11px 12px;font:inherit;
  transition:border-color .15s,background .15s,box-shadow .15s}
.hint{margin:6px 0 0;font-size:13px;color:var(--fg-dim)}
.hint a{color:inherit}
/* A title="" tooltip never reaches a finger — there is no hover on touch.
   Hidden by default (a mouse user already gets the same words on hover from
   the button's own title attribute alongside this), shown as ordinary text
   only under the same pointer:coarse query the 44px touch targets below
   already key off, so it appears exactly where hover stops being possible. */
.touchtip{display:none}
@media(pointer:coarse){
  .touchtip{display:block;margin:4px 0 0;font-size:12px;color:var(--fg-dim)}
}
/* outline:none is safe here rather than a bare a11y regression: the ring it
   would have drawn is replaced by this box-shadow, which is visible against
   both identities' field fill (--field-bg above) the way a 1px outline on a
   dark navy ground was not. */
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--accent);
  box-shadow:0 0 0 3px var(--accent-wash)}
button,.btn{display:inline-block;margin-top:20px;background:var(--accent);color:var(--on-accent);
  border:none;border-radius:var(--radius);padding:13px 20px;font:inherit;font-weight:600;
  letter-spacing:.1em;text-transform:uppercase;font-size:13px;cursor:pointer;text-decoration:none;
  transition:transform .15s,box-shadow .15s}
/* The staff/admin identity had no button feedback at all — .diner button:hover
   below is the only place a lift existed. A transform-only lift (no fill or
   shadow colour) reaches every .btn variant, including .btn-quiet and
   .btn-outline, without touching the background colour rules right below
   that those two depend on to read as secondary rather than loud. */
button:hover,.btn:hover{transform:translateY(-1px)}
button:active,.btn:active{transform:translateY(0)}
/* Same size and weight as .btn, outlined instead of filled — a secondary
   action next to a primary one, not a smaller/quieter one. */
.btn.btn-outline{background:none;border:1px solid var(--accent);color:var(--accent)}
.btn.btn-outline:hover{background:var(--accent-wash)}
/* A form mid-submit. The booking confirm blocks on SMTP before it redirects,
   so without this the diner gets several seconds of a page that looks like
   it ignored them, and taps again. See assets/app.js. */
button[disabled]{opacity:.55;cursor:progress}
.grid{width:100%;border-collapse:collapse;margin-top:20px}
.grid th{text-align:left;font-size:11px;letter-spacing:.16em;text-transform:uppercase;
  color:var(--fg-dim);padding:9px 10px}
/* Was a literal cream alpha — invisible at 8% opacity once this table can
   render on a white admin ground, not only the dark one it was tuned for.
   --line already resolves to the right hairline on both identities. */
.grid td{padding:11px 10px;border-top:1px solid var(--line)}
.grid td a{margin-right:12px}
/* More than one action in a table cell. Each stays its own <form> — they post
   different things — so without this they stack as blocks, and the 20px top
   margin every button carries lands between them. */
.cellacts{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
/* nowrap because these sit in a table that already scrolls sideways on a
   narrow screen: letting "Reset password" wrap to two lines makes a 67px
   button to save horizontal space the scroll container was going to give it
   anyway. */
.cellacts button{margin-top:0;white-space:nowrap}
/* A second action next to a primary one, in a context too tight for the
   full-size .btn-outline the booking flow uses. */
.btn-secondary{background:none;border:1px solid var(--line);color:var(--fg-dim)}
.btn-secondary:hover{border-color:var(--accent);color:var(--accent)}
/* A password shown exactly once. Monospace so an O and a 0 can be told apart
   when it is being read down a phone, and selectable as a unit. */
.onetime{font:14px ui-monospace,Menlo,monospace;letter-spacing:.06em;
  background:rgba(200,149,82,.14);border-radius:2px;padding:2px 6px;
  user-select:all;white-space:nowrap}

/* Visually hidden, still read aloud. For the action column's header, which
   has no visible caption but should not be an unlabelled column either. */
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* Staff and admin pages put eight nav links before their content, and above
   900px that nav is a fixed rail — bypassed with the eyes, still crossed with
   the keyboard, on every page. Hidden until focused, then a real, solid,
   clearly-visible target rather than a faint one. */
.skiplink{position:absolute;left:8px;top:-60px;z-index:100;padding:11px 16px;
  background:var(--accent);color:var(--ink);border-radius:var(--radius);
  font-size:13px;font-weight:700;text-decoration:none;
  transition:top .12s ease}
.skiplink:focus{top:8px;outline:2px solid var(--fg);outline-offset:2px}
@media(prefers-reduced-motion:reduce){.skiplink{transition:none}}

/* An input that IS a table cell's contents — an editable row, where the field
   has to sit flush in the cell rather than in a stacked form. The base input
   rule gives every field a top margin for that stacked case, which inside a
   row shows up as cells of different heights. Named so the intent survives:
   it replaces the style="margin:0" that was being retyped per cell. */
.cellinput{margin:0}
.cellinput-num{width:5em}
/* The slug field on brands.php sits mid-sentence after a literal "/b/", so it
   sizes to its content rather than filling the cell. */
.cellinput-inline{display:inline-block;width:auto}

/* A checkbox and its label on one line. The base `label` rule is uppercase and
   letter-spaced, which is right for a field label above an input and wrong for
   a sentence beside a tickbox — so every checkbox in the app was re-declaring
   the same four overrides inline. This is those four, named once. */
.checkline{display:flex;gap:8px;align-items:center;text-transform:none;letter-spacing:0}
.checkline input{width:auto;margin:0}
/* Guest pages: a tickbox a diner has to find and tap on a phone (the
   duplicate-booking one sits right under its warning) gets a real size and
   a full-height tap row, not the browser's 13px default. */
.diner .checkline{min-height:44px}
.diner .checkline input[type=checkbox]{width:22px;height:22px;flex:none;accent-color:var(--accent)}
/* The weekday tickboxes on sittings.php are a row of seven, so they wrap
   inline rather than each taking a line. */
.checkline-inline{display:inline-flex;margin-right:14px}

/* The dietary and occasion chips on the details form (migration 024). A real
   <fieldset> of real checkboxes — the whole set posts, keyboards through and
   reads out correctly with no script — wearing the look of a tappable chip,
   because eight stacked checkbox rows on a phone is a scroll and a wall, and
   the same eight as chips is one glance. The native box is hidden rather than
   removed so it still owns focus and the checked state; :has() on the label
   is what paints the result, and :focus-within is what keeps the keyboard
   user able to see where they are. */
.chipset{border:none;padding:0;margin:18px 0 0;min-width:0}
.chipset legend{padding:0;margin:0 0 9px;font-size:13px;font-weight:600;color:var(--fg)}
.chips{display:flex;flex-wrap:wrap;gap:8px}
/* .diner label (0-1-1) puts an 18px top and 7px bottom margin on every label,
   and .chip-opt's own `margin:0` below is 0-1-0, so each wrapped row of chips
   was 25px further from the last than the 8px gap says. */
.chips .chip-opt{margin:0}
.chip-opt{display:inline-flex;align-items:center;margin:0;cursor:pointer;
  border:1px solid var(--line);border-radius:999px;padding:9px 14px;
  font-size:14px;font-weight:500;color:var(--fg);text-transform:none;letter-spacing:0;
  transition:border-color .15s,background .15s,color .15s;
  /* 40px tall including the border, so every chip clears a thumb. */
  min-height:40px}
.chip-opt input{position:absolute;opacity:0;width:0;height:0}
.chip-opt:hover{border-color:var(--accent)}
.chip-opt:has(input:checked){border-color:var(--accent);background:var(--accent-wash);color:var(--accent-text)}
.chip-opt:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:2px}
/* A ticked chip says so in a shape as well as a colour, for the same reason
   .date.shut carries a line through it rather than only going grey. */
.chip-opt:has(input:checked) span::before{content:"✓ ";font-weight:700}

/* The add / change a booking panel (includes/staff-booking-panel.php): When,
   How many, Guest, then a summary above Save. Every control is a real input
   or link first and gains behaviour from assets/new-booking.js: the number
   box is the party, the day buttons are links, the sitting cards are radios
   (the native input is hidden, :has() paints the chosen card, and the ring
   follows keyboard focus). */
.bk-panel{max-width:760px;margin-top:8px;background:var(--surface);border:1px solid var(--line);
  border-radius:calc(var(--radius) + 4px);box-shadow:var(--shadow);overflow:hidden}
.bk-step{padding:6px 22px 20px;border-bottom:1px solid var(--line)}
.bk-step h2{margin:16px 0 10px;font-size:12px;letter-spacing:.12em;text-transform:uppercase;
  color:var(--fg-dim);font-weight:600}
.bk-days{display:flex;flex-wrap:wrap;gap:8px;align-items:stretch}
.bk-day,.bk-other-date .datefield{display:inline-block;min-width:92px;width:auto;box-sizing:border-box;
  margin:0;padding:8px 13px;font-size:14px;font-weight:400;line-height:1.3;text-align:left;text-decoration:none;
  text-transform:none;letter-spacing:0;
  color:var(--fg);background:var(--field-bg);border:1px solid var(--line);
  border-radius:var(--radius);cursor:pointer}
.bk-day small{display:block;font-size:11px;color:var(--fg-dim)}
.bk-day:hover,.bk-other-date .datefield:hover{border-color:var(--accent)}
.bk-day[aria-current],.bk-other-date.on .datefield{border-color:var(--fg);background:var(--fg);color:var(--ink)}
.bk-day[aria-current] small{color:var(--ink);opacity:.75}
.bk-other-date{display:inline-flex;flex-direction:column;position:relative}
.bk-other-date input{width:auto}
.bk-other-date .datepopover{position:absolute;top:100%;left:0;z-index:5}
.bk-slots{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:10px;margin-top:12px}
.bk-slot{display:grid;gap:3px;margin:0;padding:10px 12px;cursor:pointer;text-transform:none;letter-spacing:0;
  font-size:14px;color:var(--fg);background:var(--field-bg);border:1px solid var(--line);
  border-radius:var(--radius);position:relative}
.bk-slot input{position:absolute;opacity:0;width:0;height:0}
.bk-slot b{font-size:15px}
.bk-free{font-size:12.5px;font-weight:600;color:var(--ok)}
.bk-tag{font-size:11px;color:var(--fg-dim)}
.bk-slot:hover{border-color:var(--accent)}
.bk-slot:has(input:checked){border-color:var(--accent);background:var(--accent-wash);
  box-shadow:inset 0 0 0 1px var(--accent)}
.bk-slot:has(input:checked) b::before{content:"\2713  ";color:var(--accent-text)}
.bk-slot:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:2px}
.bk-slot.full{opacity:.7}
.bk-slot.full .bk-free{color:var(--danger-text)}
.bk-other .bk-free{color:var(--fg-dim);font-weight:400}
.bk-newsitting{margin-top:12px}
.bk-js .bk-newsitting:not(.on){display:none}
.bk-party{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px}
.bk-stepper{display:inline-flex;align-items:center;border:1px solid var(--line-strong);
  border-radius:var(--radius);background:var(--field-bg)}
.bk-stepper button{margin:0;width:42px;height:42px;padding:0;font-size:18px;letter-spacing:0;
  background:none;color:var(--fg);border-radius:0}
.bk-stepper button[hidden]{display:none}
.bk-stepper input{width:64px;border:none;background:none;text-align:center;font-size:18px;
  font-weight:600;padding:9px 4px;-moz-appearance:textfield}
.bk-stepper input::-webkit-outer-spin-button,.bk-stepper input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.bk-quick{display:inline-flex;gap:6px}
.bk-quick[hidden]{display:none}
.bk-quick button{margin:0;padding:8px 12px;min-height:40px;font-size:13px;letter-spacing:0;
  background:var(--field-bg);color:var(--fg);border:1px solid var(--line)}
.bk-quick button[aria-pressed="true"]{border-color:var(--fg);font-weight:700}
.bk-fit{margin:0;font-size:13px;font-weight:600;color:var(--ok)}
.bk-fit.bad{color:var(--danger-text)}
.bk-found{margin:8px 0 0;padding:8px 12px;font-size:13px;border-radius:var(--radius);
  background:var(--ok-bg);color:var(--fg)}
.bk-found[hidden]{display:none}
.bk-opt{text-transform:none;letter-spacing:normal;font-weight:400;margin-left:4px}
.bk-email{margin-top:12px}
.bk-email summary{cursor:pointer;color:var(--accent-text);font-weight:600;font-size:13px}
.bk-panel .checkline{margin:14px 22px 0}
.bk-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;
  padding:14px 22px;background:var(--soft);border-top:1px solid var(--line)}
.bk-foot button{margin:0}
.bk-sum{font-size:14px}
#bk-wasrow[hidden]{display:none}
.bk-was{font-size:13px;color:var(--fg-dim);text-decoration:line-through}
.bk-sumnote{font-size:12.5px;color:var(--fg-dim)}
.bk-sumnote[hidden]{display:none}
@media (max-width:520px){
  .bk-step{padding-left:16px;padding-right:16px}
  .bk-foot{padding-left:16px;padding-right:16px}
  .bk-foot button{width:100%}
}

/* A preview of an uploaded image beside its replace form. */
.thumb{max-width:280px;border-radius:4px;display:block;margin-bottom:14px}
/* Admin tables that are not the booking cards below (sittings, closures,
   logins, the message log) keep their columns and scroll sideways instead.
   tabindex makes the scroll container reachable by keyboard, which a
   scrollable region needs to be. */
.tablescroll{overflow-x:auto}
.tablescroll:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.error{color:var(--clay-text);border:1px solid var(--clay);border-radius:var(--radius);padding:10px 12px}
/* Focused by app.js on load so the message is announced and scrolled to,
   rather than sitting silently above the fold the diner already scrolled
   past. The outline is suppressed because focus here is programmatic — the
   red box is already the visible indicator. */
.error:focus{outline:none}
.notice{color:var(--fg-dim);border:1px solid var(--line);border-radius:var(--radius);padding:10px 12px}
/* Standing help copy that explains a field, as opposed to .notice, which is
   the app telling you something about this particular moment. Help had been
   borrowing .notice, so a permanent sentence of instructions arrived inside
   the same bordered box as a warning and read as a problem to solve. No
   border: it is prose next to a control, not an alert. */
.help{margin:6px 0 16px;font-size:13px;line-height:1.5;color:var(--fg-dim);max-width:60ch}
.help a{color:inherit}

/* "Updated 19:42" above a polled list — created by assets/staff.js, never
   rendered server-side, because polling is JS-only and a stale stamp for a
   reader without JS would be worse than none. Quiet while it is true, clay
   the moment it is not: a frozen screen and a quiet screen look identical at
   a host stand, and they mean opposite things. */
.pollstamp{margin:0 0 8px;font-size:11.5px;letter-spacing:.08em;text-transform:uppercase;
  color:var(--fg-dim)}
.pollstamp.stale{color:var(--clay-text)}

/* The demo-venue strip (migration 018). Deliberately the loudest thing on
   the page and pinned above everything, including the hero: its whole job
   is to stop a stranger who found this page from believing they hold a real
   reservation. --clay rather than the accent for the same reason .error
   uses it — this is the one colour in the palette that never means "carry
   on". Sits outside <main>, so no page's layout has to make room for it. */
.demobar{margin:0;padding:10px 16px;background:var(--clay);color:#FFF;
  font-size:13px;font-weight:600;line-height:1.4;text-align:center}

/* Three weights for the things a page says back to you, where there used to
   be one grey .notice for all of them. The distinction is what the reader is
   meant to do: .info is "carry on" (a timed-out session — the most common
   reason anyone reaches the sign-in page, and not a failure); .warn is "this
   is heading somewhere bad" (attempts running out); .bad is "this did not
   work". The icon colours below now come from the semantic --ok/--warn
   tokens rather than the literal sage/brass/accent they used to borrow —
   sage fails as text once this can render on a light ground, and --accent
   now means "the button you press" on both identities, which is the wrong
   voice for a warning icon. The border/background washes stay literal:
   they are low-alpha decorative tints, not text, and read fine on both
   grounds at these opacities. */
.msg{display:flex;gap:9px;align-items:flex-start;border-radius:var(--radius);padding:11px 13px;
  margin:0;font-size:14px}
.msg .ic{flex:0 0 auto;padding-top:2px;font:10px/1.5 ui-monospace,Menlo,monospace;
  letter-spacing:.1em;text-transform:uppercase}
.msg.info{border:1px solid rgba(127,160,140,.45);background:rgba(127,160,140,.1);color:var(--fg)}
.msg.info .ic{color:var(--ok)}
.msg.warn{border:1px solid rgba(200,149,82,.5);background:rgba(200,149,82,.1);color:var(--fg)}
.msg.warn .ic{color:var(--warn)}
.msg.bad{border:1px solid var(--clay);background:rgba(176,86,63,.12);color:var(--fg)}
.msg.bad .ic{color:var(--clay-text)}
/* Focused by app.js when it carries role="alert" — same reasoning as .error. */
.msg:focus{outline:none}
.adminnav{border-bottom:1px solid var(--line);padding:6px 20px;
  display:flex;flex-wrap:wrap;align-items:center;gap:0 4px}
.adminnav a{font-size:14px;font-weight:500;padding:12px 10px;text-decoration:none;
  border-bottom:2px solid transparent;display:inline-flex;align-items:center;gap:9px}
/* Phase 7 nav polish: the mobile toggle button and its wrapped link list.
   #navlinks is display:contents so wrapping the links to give the toggle
   something to control costs the >=900px rail nothing — its children still
   land as direct flex items of .adminnav for that layout's own rules (see
   frontend/src/input.css). [hidden] alone would not hide it: the UA
   stylesheet's [hidden]{display:none} loses to this file's own
   #navlinks{display:contents} on ordinary specificity, the same trap
   .formfield[hidden] and .printbtn[hidden] already guard against a few
   sections up — so the override has to be said again here. */
#navlinks{display:contents}
#navlinks[hidden]{display:none}
.navtoggle{display:none;align-items:center;gap:8px;margin:4px 0;padding:9px 12px;
  border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);
  color:var(--fg);font-size:13px;font-weight:600}
.navtoggle[hidden]{display:none}
.navtoggle svg{width:18px;height:18px;flex:0 0 auto;stroke:currentColor;fill:none;
  stroke-width:1.7;stroke-linecap:round}
/* Unhidden by app.js only below 900px (see its own comment); this is the
   layout for that state once JS has removed the hidden attribute. */
.navtoggle:not([hidden]){display:inline-flex}
/* Hand-drawn, inline, one per item — no icon font, same rule the diner
   pages follow. admin-nav.php carries no glyphs and is unaffected: with no
   <svg> child the gap collapses and the link is what it always was. */
.adminnav a svg{width:16px;height:16px;flex:0 0 auto;fill:none;stroke:currentColor;
  stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;opacity:.7}
.adminnav a[aria-current] svg{opacity:1}
.adminnav a:hover{border-bottom-color:var(--line)}
/* Requests waiting on the Private Rooms link -- the same pill as the day
   view's own .prcount, pushed to the far end of the link. */
.adminnav .navcount{margin-left:auto;min-width:20px;padding:0 6px;border-radius:999px;
  background:var(--accent);color:var(--on-accent);font-size:11px;font-weight:700;
  line-height:18px;text-align:center}
/* Which page you are on. Both navs used to render every link identically,
   so nothing on any screen said where you were. */
.adminnav a[aria-current]{color:var(--fg);border-bottom-color:var(--accent)}
.admincontext{display:flex;align-items:center;gap:18px;padding:10px 20px;border-bottom:1px solid var(--line)}
.admincontext a{color:var(--fg-dim);font-size:13px;font-weight:600;text-decoration:none}
.admincontext a:first-child::before{content:"⌂";margin-right:6px;font-size:14px}
.admincontext a:last-child::before{content:"←";margin-right:6px}
.admincontext a:hover{color:var(--accent-text);text-decoration:underline;text-underline-offset:3px}
.venue-directory{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:16px}
.venue-directory-card{display:flex;flex-direction:column;min-width:0;padding:18px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.venue-directory-card.void{opacity:.7}
.venue-directory-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.venue-directory-head h2{margin:0;font-size:18px;line-height:1.25;letter-spacing:-.01em}
.venue-directory-status{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;font-size:12px;line-height:1.4;white-space:nowrap}
.venue-directory-state,.venue-directory-ready,.venue-directory-todo{display:inline-flex;align-items:center;gap:5px;color:var(--fg-dim);font-weight:600;text-decoration:none}
.venue-directory-state::before,.venue-directory-ready::before,.venue-directory-todo::before{content:"";width:6px;height:6px;border-radius:999px;background:var(--fg-dim)}
.venue-directory-ready{color:var(--ok)}.venue-directory-ready::before{background:var(--ok)}
.venue-directory-todo{color:var(--warn);text-decoration:underline;text-underline-offset:3px}.venue-directory-todo::before{background:var(--warn)}
.venue-directory-gaps{margin:0 0 10px;padding-left:1.2em}
.venue-directory-state.is-paused{color:var(--danger-text)}.venue-directory-state.is-paused::before{background:var(--danger-text)}
.venue-directory-meta{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;margin:18px 0 16px;padding:13px 0;border-block:1px solid var(--line)}
.venue-directory-meta div{min-width:0}.venue-directory-meta dt{margin-bottom:4px;color:var(--fg-dim);font-size:11px;font-weight:500;letter-spacing:0;text-transform:none}
.venue-directory-meta dd{margin:0;overflow-wrap:anywhere;font-size:14px;font-weight:600}.venue-directory-meta dd a{font-weight:600}.venue-directory-meta .btn-quiet{margin:6px 0 0;padding:4px 7px;border-radius:6px;font-size:12px;letter-spacing:0;text-transform:none}
.venue-directory-primary{display:flex;align-items:center;flex-wrap:wrap;gap:14px;margin-top:auto}.venue-directory-primary .btn{margin:0;padding:9px 12px;font-size:14px}.venue-directory-manage{color:var(--accent-text);font-size:13px;font-weight:600;text-decoration:none}.venue-directory-manage:hover{text-decoration:underline;text-underline-offset:3px}
.venue-directory-links{display:flex;flex-wrap:wrap;gap:8px 14px;margin-top:18px;padding-top:14px;border-top:1px solid var(--line)}
.venue-directory-links a{font-size:13px;line-height:1.35;text-underline-offset:3px}
@media (min-width:768px){.admincontext{width:auto;max-width:1080px;margin-left:212px;margin-right:0;padding:20px 20px 0;border-bottom:0}.admincontext + .wrap{padding-top:16px}}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px}

/* The floor plan and its markers now live in frontend/src/input.css.

   They moved because they were redesigned, not for tidiness: the markers are
   the one object that *is* this product — a diner picking their own table off
   a plan is the whole differentiator — and they were still drawn in sage and
   brass, a palette that appears nowhere else in d'sini. The plan colours
   below (--paper, --plan-ink, --plan-line) stay here because they belong to
   the drawing; the marker palette is the product's, and is declared with the
   other tokens in :root. */

/* The diner-facing column. 520px is a phone measure, and it was the measure at
   every width — on a 1440px screen the whole booking flow was a strip down the
   middle with 900px of empty ink either side, and the floor plan, the one
   thing that genuinely wants room, got the least of it. It grows in two steps
   below; a form still reads best narrow, so this is not about filling the
   screen, it is about giving the plan and the date strip the width they were
   already asking for.

   flex column + margin-block:auto on the body section is the safe way to
   centre a short page: when the content is taller than the viewport the auto
   margins resolve to zero and it simply flows, where justify-content:center
   would push the top of the content out of reach. */
.book{width:100%;max-width:520px;margin:0 auto;padding-bottom:60px;
  display:flex;flex-direction:column;min-height:100%}
/* :only-child, so this is the landing page and nothing else. A page whose
   whole body is one card reads as dropped in the corner if it sits at the
   top of a 900px screen; a booking step already has a hero or a venue bar
   anchoring the top, and floating its content away from that header looks
   like a bug rather than a composition. */
.book > .pad:only-child{margin-block:auto}

/* The multi-venue root page (book/index.php). Each venue used to be a
   full-width .btn — a stack of brass slabs carrying a name and nothing else,
   which asks a diner to choose between restaurants on the strength of the
   word "Bahtera". The card carries the venue's own hero photo and address
   instead: the same photo that heads its booking page, so the choice is made
   on what the place actually is and arriving there feels continuous. */
.venuelist{list-style:none;margin:22px 0 0;padding:0;display:flex;flex-direction:column;gap:12px}
.venuecard{display:block;background:var(--ink-2);border:1px solid var(--line);
  border-radius:4px;overflow:hidden;text-decoration:none;color:var(--fg);
  transition:border-color .15s,transform .15s}
.venuecard:hover{border-color:var(--accent)}
.venuecard:hover .nm{color:var(--accent-text)}
/* A venue with no photo uploaded yet is a text-only card, not a broken one. */
.venuecard .shot{display:block;aspect-ratio:16/7;overflow:hidden;background:var(--ink)}
.venuecard .shot img{display:block;width:100%;height:100%;object-fit:cover;
  transition:transform .25s ease}
.venuecard .meta{display:block;padding:14px 16px}
.venuecard .cardbrand{display:block;font-size:11px;letter-spacing:.1em;
  text-transform:uppercase;color:var(--fg-dim)}
.venuecard .nm{display:block;font-size:16px;font-weight:700;letter-spacing:.14em;
  text-transform:uppercase;transition:color .15s}
.venuecard .cardcuisine{display:block;font-size:12px;letter-spacing:.04em;
  color:var(--fg-dim);margin-top:3px}
.venuecard .addr{display:block;font-size:13px;color:var(--fg-dim);margin-top:5px}
.venuecard .desc{display:block;font-size:13px;color:var(--fg-dim);margin-top:5px;line-height:1.4}

/* The landing page's own standfirst — one line under the h1 saying what to do
   next. Not .notice, which is a bordered box for things the page is reporting. */
.lede{margin:-8px 0 0;font-size:15px;color:var(--fg-dim)}

/* The rating on a venue card in the picker grid. That grid is where the
   choosing happens and it was four names and four addresses with nothing to
   choose between them. Deepened orange rather than the band's lime: a card
   sits on white, where lime is close to invisible. */
.cardrating{display:flex;align-items:center;gap:6px;margin:2px 0 4px;font-size:13px}
.cardrating .stars{display:inline-flex;gap:1px}
.cardrating .star .bg{fill:var(--line)}
.cardrating .star .fg{fill:var(--brass-ink)}
.cardrating b{font-weight:700;color:var(--fg)}
.cardrating small{color:var(--fg-dim)}

/* ---- The demo tour (includes/demo-tour.php) -----------------------------
   Demo venues only. A contents page for the demo, above the first step,
   because half of what was built is three taps into a funnel and invisible
   until you get there — which is exactly how it came to look missing.

   Clay, matching the demo banner at the top of the same page rather than the
   venue's own accent: both are the product talking about itself on a page
   that otherwise belongs to the restaurant, and they should read as one
   voice. A <details> so it can be folded away by anyone who has read it. */
.demotour{border:1px solid var(--clay-text);border-radius:var(--radius);
  padding:14px 16px;margin:0 0 24px}
.demotour summary{cursor:pointer;font-weight:600;color:var(--clay-text)}
.demotour ul{margin:10px 0 0;padding-left:1.1rem;display:flex;
  flex-direction:column;gap:5px;font-size:14px}
.demotour li::marker{color:var(--clay-text)}
.demotour .hint{margin-top:10px}

/* ---- The in-domain reviews page (migration 028) -------------------------
   Two sources on one page, kept visibly apart because they are not the same
   claim: a Google rating typed in by the venue, and this app's own feedback
   from guests who actually booked. Each gets its own headed block rather
   than being blended into a single average nobody gave. */
.reviewsum{border:1px solid var(--line);border-radius:var(--radius);
  padding:14px 16px;margin:18px 0 0}
.reviewsum .src{margin:0;font-size:11px;font-weight:600;letter-spacing:.12em;
  text-transform:uppercase;color:var(--fg-dim)}
.reviewsum .score{display:flex;align-items:center;flex-wrap:wrap;gap:4px 9px;margin:8px 0 0}
.reviewsum .score b{font-size:20px;font-weight:700}
.reviewsum .gcount{color:var(--fg-dim);font-size:13.5px}
.reviewsum .hint{margin-top:8px}
/* On the white card the stars take the deepened orange rather than the band's
   lime: lime is a 14:1 accent on navy and close to invisible on cream. */
.reviewsum .star .bg{fill:var(--line)}
.reviewsum .star .fg{fill:var(--brass-ink)}

.reviewlist{list-style:none;margin:18px 0 0;padding:0;
  display:flex;flex-direction:column;gap:14px}
.reviewlist li{border:1px solid var(--line);border-radius:var(--radius);padding:13px 15px}
.rhead{display:flex;align-items:center;flex-wrap:wrap;gap:4px 10px;margin:0}
.rhead .stars{display:inline-flex;gap:1px}
.rhead .star .bg{fill:var(--line)}
.rhead .star .fg{fill:var(--brass-ink)}
.rhead b{font-weight:600}
.rhead time{color:var(--fg-dim);font-size:12.5px}
.rbody{margin:8px 0 0;line-height:1.55}
/* Live Google reviews. The credit's look comes from Google's attribution rules. */
.gmp-attribution{display:block;font-size:14px;font-weight:400;letter-spacing:normal;white-space:nowrap;color:#5e5e5e}
.gauthor{width:28px;height:28px;border-radius:50%}
.glinks{display:flex;flex-wrap:wrap;gap:4px 14px;margin:8px 0 0;font-size:13px}

/* ---- Back and home, at the top of every step (includes/diner-nav.php) ---
   These links used to be single lines at the FOOT of each page — below the
   form, below the fold on a phone, so the way out of a step was behind the
   step itself. Up here they are the first thing under the venue band.

   A row rather than two stacked links, pushed to opposite ends: back is the
   common one and sits where a thumb reaches on the left, home is the rarer,
   more destructive one and sits away from it. justify-content:space-between
   with an empty <span> placeholder keeps home on the right even on the pages
   that have no back link at all. */
.stepnav{display:flex;justify-content:space-between;align-items:center;gap:12px;
  margin:0 0 20px;font-size:13.5px}
/* Outlined, not bare text. These were plain links the colour of every other
   link on the page, and they were repeatedly not found — "where is the home
   and back button" is a question about whether something LOOKS like a button,
   and underlined text does not. A border costs nothing and answers it.

   44px tall including the padding: small targets sitting near other links,
   and a mistap here sends someone somewhere they did not ask to go. */
.stepnav a{display:inline-flex;align-items:center;gap:7px;text-decoration:none;
  padding:0 13px;min-height:44px;box-sizing:border-box;
  border:1px solid var(--line);border-radius:999px;font-weight:600;
  transition:border-color .15s,background .15s,color .15s}
.stepnav a:hover{border-color:var(--accent);background:var(--accent-wash)}
.stepnav svg{flex:0 0 auto}
/* Home stays the quieter of the two — leaving a half-finished booking is not
   what most people on this page came to do — but it is still visibly a
   control, which is the whole point of the border above. */
.diner .stepnav .navhome{color:var(--fg-dim)}
.diner .stepnav .navhome:hover{color:var(--accent-text)}

/* ---- The venue's Google rating (migration 027) --------------------------
   In the band, under the address. Empty stars and the underline both used
   to be a literal cream alpha (rgba(255,248,239,…)), sized for lime-on-navy
   — see :root.diner's own comment on why the band is now the light surface
   and --brass-lit points at --brass-ink instead of the old lime. color-mix
   on --on-band keeps both working wherever the band's ground ends up.

   Not a live figure and not presented as one. See migration 027. */
.greview{display:flex;align-items:center;flex-wrap:wrap;gap:4px 9px;margin:12px 0 0;
  font-size:13.5px;color:var(--on-band-dim)}
.greview .stars{display:inline-flex;gap:1px}
.greview .star .bg{fill:color-mix(in srgb, var(--on-band) 22%, transparent)}
.greview .star .fg{fill:var(--brass-lit)}
.greview b{color:var(--on-band);font-weight:700}
.greview .gcount{color:var(--on-band-dim)}
.greview a{color:var(--on-band);
  text-decoration-color:color-mix(in srgb, var(--on-band) 40%, transparent);
  text-underline-offset:3px}
.greview a:hover{text-decoration-color:currentColor}

/* ---- The pre-order shelf (migration 026) --------------------------------
   A venue's own products, offered between the table and the contact form.
   Rows rather than a grid: these are read one at a time with a decision at
   the end of each, and a two-up grid on a phone would halve the width the
   name and price have to share. */
.shelf{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.itemrow{display:flex;align-items:center;gap:13px;border:1px solid var(--line);
  border-radius:var(--radius);padding:12px}
/* Picked, and saying so in more than a border: the total at the foot moves
   too, but a row you chose four scrolls ago should still look chosen. */
.itemrow.picked{border-color:var(--accent);background:var(--accent-wash)}
.itemshot{flex:0 0 auto;width:64px;height:64px;border-radius:8px;object-fit:cover;
  background:var(--paper)}
/* The drawn stand-in for a venue that has not uploaded a photo yet — most of
   them, at first. Centred in the same 64px square so the row does not change
   shape when a photo arrives. */
.itemshot.placeholder{display:grid;place-items:center;color:var(--brass-ink)}
.itemshot.placeholder svg{width:28px;height:28px}
.iteminfo{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:2px}
.itemname{font-size:15px;font-weight:600}
.iteminfo small{color:var(--fg-dim);font-size:12.5px}
.itemprice{font-size:14px;font-weight:600;color:var(--brass-ink)}
.itemqty{flex:0 0 auto;display:flex;align-items:center;gap:6px}
/* Narrower than the party-size stepper's input, which has a whole row to
   itself — this one shares a line with a photo and a name. Spinners removed
   for the same reason they are on .stepper: the buttons are the control. */
/* [type=number] is there for specificity, not selection: the diner field
   padding rule (13px 14px, `html[data-scheme="light"] input`) outranks a bare
   `.itemqty input`, left ~8px of a 38px box for the digit and clipped it. */
.itemqty input[type=number]{width:38px;text-align:center;padding:8px 2px;font-size:16px;
  font-weight:700;-moz-appearance:textfield}
.itemqty input::-webkit-outer-spin-button,.itemqty input::-webkit-inner-spin-button{
  -webkit-appearance:none;margin:0}
/* The same 38px as the party-size stepper on step-date.php. These were 34px
   and it was a mistake: the two controls sit two taps apart in the same flow,
   are operated the same way, and one of them being smaller reads as a
   different kind of button rather than a tighter layout. */
.itemqty .stepbtn{width:38px;height:38px;font-size:18px}

/* On a phone the photo, the name, the description, the price and a three-part
   stepper do not fit on one line — the name breaks mid-phrase ("Signature /
   egg tarts") and the description runs to three. So below 480px the row
   becomes a small grid: the photo keeps the left column and spans, the text
   gets the full remaining width, and the stepper drops beneath it, right-
   aligned under the price it belongs to. */
@media(max-width:479px){
  .itemrow{display:grid;grid-template-columns:auto 1fr;grid-template-areas:"shot info" "shot qty";
    column-gap:13px;row-gap:8px;align-items:start}
  .itemshot{grid-area:shot;align-self:center}
  .iteminfo{grid-area:info}
  .itemqty{grid-area:qty;justify-content:flex-end}
}
/* The running total, and the one thing on this page that changes as you tap.
   Right-aligned over the button it sits above, so the eye lands on the number
   and then the action. */
.shelftotal{margin:18px 0 0;text-align:right;font-size:15px;font-weight:600}

/* ---- The deposit page (migration 025) -----------------------------------
   Three things a guest has to get right, in the order they do them: scan the
   code, copy the reference into the transfer note, press the button. Each is
   its own block, sized so none of them can be skimmed past, because a
   transfer sent without the reference is one a host cannot match to a
   booking and the whole manual-verification model rests on that one line of
   text arriving intact. */
.qrpanel{border:1px solid var(--line);border-radius:var(--radius);
  padding:18px;margin-top:18px;text-align:center}
.qrlabel{margin:0;font-size:12px;font-weight:600;letter-spacing:.12em;
  text-transform:uppercase;color:var(--fg-dim)}
/* Square, capped, and never wider than the column. The venue uploads whatever
   its bank app exported and the aspect ratio is not ours to trust. */
.qrpanel img{display:block;width:min(240px,72vw);height:auto;aspect-ratio:1;
  object-fit:contain;margin:12px auto 0;background:#FFFFFF;border-radius:6px}
.qrsave{margin:14px auto 0;display:inline-block;width:auto}
.qrsavehint{margin:10px 0 0;font-size:12.5px;line-height:1.45;color:var(--fg-dim)}
.payee{margin:10px 0 0;font-size:12.5px;color:var(--fg-dim);text-align:center}
.reflabel{margin:20px 0 7px;font-size:13px;font-weight:600;color:var(--fg)}
/* The reference, set as the thing to copy: monospace so a 0 cannot be read as
   an O, on the floor plan's own paper so it reads as an object rather than a
   sentence. Selectable text, not an image — the guest is pasting this into a
   banking app. */
.refbox{margin:0;background:var(--paper);color:var(--brass-ink);
  border:1px solid var(--plan-line);border-radius:var(--radius);
  padding:11px 14px;display:flex;align-items:center;justify-content:center;gap:10px;
  font:700 20px/1.2 ui-monospace,Menlo,monospace;letter-spacing:.06em}
.refbox span{user-select:all}
.refbox .copyref{width:36px;height:36px;margin:-6px -6px -6px 0}
.refbox .copyref svg{width:18px;height:18px}
/* The clock, in the accent wash rather than the error clay: a deadline is
   something to act on, not something that has gone wrong. It becomes clay
   only if it passes, and by then the sweep has cancelled the booking and this
   page has redirected to the receipt. */
.deadline{margin-top:18px;background:var(--accent-wash);border-radius:var(--radius);
  padding:12px 14px;font-size:13.5px;color:var(--fg)}
/* The holding state after "I've transferred". */
.badge{display:inline-block;background:var(--accent-wash);color:var(--accent-text);
  font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;
  border-radius:999px;padding:5px 12px;margin-bottom:12px}
/* Perks (promotions). The venue page strip, the tag on a qualifying time, and
   the fine print under a "Your perk" row. Colours come from the accent tokens
   the .badge above uses, so nothing here adds a palette. */
.perks{margin:18px 0 0}
.perks h2{margin:0 0 8px;font-size:12px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--fg-dim)}
.perks ul{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.perks li{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px;font-size:14px}
.perks .perkwhen,.perks .perkfine{flex-basis:100%;font-size:13px;color:var(--fg-dim)}
.perk-tag{display:inline-block;background:var(--accent-wash);color:var(--accent-text);
  font-size:11px;font-weight:600;letter-spacing:.04em;border-radius:999px;padding:2px 8px;
  margin-left:4px;white-space:nowrap;vertical-align:middle}
.perks .perk-tag{margin-left:0}
.perk-tag[hidden]{display:none}
.perkfine{display:block;margin-top:2px;font-size:12px;font-weight:400;line-height:1.4}
.branches{margin:0 0 4px;font-size:13px;color:var(--fg-dim)}
.branches a{color:inherit;text-decoration:underline}
.menulink{margin:8px 0 0;font-size:14px}
.cuisine{margin:-4px 0 0;font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:var(--fg-dim)}
.infolist{list-style:none;margin:8px 0 0;padding:0;font-size:14px;color:var(--fg-dim);
  display:flex;flex-wrap:wrap;gap:4px 14px}
.infolist a{color:inherit}
/* Each row is icon + text, not text alone — a phone number, a set of hours
   and two "opens elsewhere" links used to read as one undifferentiated line
   of dim links; the icon is what lets an eye skim the row instead of
   reading every word. Drawn inline in the markup (see step-date.php), not
   an icon font — one more thing that can't 404 or shift layout while it
   loads. */
.infolist li{display:inline-flex;align-items:center;gap:6px}
.infolist svg{flex:0 0 auto;width:14px;height:14px}
.policies{margin:24px 0 0;font-size:14px;color:var(--fg-dim)}
.policies summary{cursor:pointer;color:var(--fg);font-weight:600}
.policies p{margin:10px 0 0;line-height:1.5}
/* The venue's terms in their new home — above the sittings, where they can
   still change which one a diner picks, rather than collapsed under the form
   where they answered a question already asked. It gets a border here because
   it now sits BETWEEN two numbered steps: without an edge it reads as the
   tail of step 01 or the preamble to step 02 rather than as the restaurant
   interrupting to say something. */
.prenotes{border:1px solid var(--line);border-radius:var(--radius);padding:14px 16px;margin:22px 0 0}
/* A way out for the party the form cannot take, sat under the stepper that
   would otherwise just refuse to count past the cap. The accent wash rather
   than plain .hint grey: this is an offer, and grey fine print under a control
   that has stopped moving is not read as one. */
.bigparty{background:var(--accent-wash);border-radius:var(--radius);
  padding:11px 13px;margin-top:14px;color:var(--fg)}

/* Pure-CSS star picker: markup is deliberately 5,4,3,2,1 (see book/step-
   feedback.php's own comment on why), flipped back to reading order with
   row-reverse, so ":checked ~ label" — which can only select LATER DOM
   siblings — ends up selecting the visually-earlier (lower-numbered) stars,
   which is exactly "light up every star up to and including the one
   clicked". */
.starpick{display:flex;flex-direction:row-reverse;justify-content:flex-end;gap:2px;margin:8px 0 20px}
.starpick input{position:absolute;opacity:0;width:1px;height:1px}
.starpick label{width:auto;margin:0;padding:0 2px;text-transform:none;letter-spacing:0;
  font-size:34px;line-height:1;color:var(--line);cursor:pointer}
.starpick input:checked ~ label,
.starpick label:hover,
.starpick label:hover ~ label{color:var(--brass)}

/* Staff sign-in, on diner-facing pages only — see includes/foot.php. Sits
   outside <main>, so it aligns itself to the same 520px measure .book uses
   rather than inheriting it. Quiet on purpose: it is a staff door on a page
   built for diners, and it should not compete with "Book a table". */
.publicfoot{max-width:520px;margin:44px auto 0;padding:18px 20px 30px;
  border-top:1px solid rgba(255,248,239,.08);text-align:center}
.publicfoot p{margin:0;font-size:12.5px;color:var(--fg-dim)}
.publicfoot p + p{margin-top:8px}
/* The product's signature at the foot of every diner page — see the note in
   includes/foot.php for why it lives here and not in the venue's band. It
   reads at full strength rather than the --fg-dim the rest of this footer
   takes: the staff link below is deliberately quiet because it is a door
   most diners should walk past, but a brand that whispers its own name is
   not signing anything. The mark's colours are its own, fixed. */
.publicfoot .footmark{display:flex;align-items:center;justify-content:center;
  gap:8px;font-size:15px;font-weight:700;letter-spacing:-.02em;color:var(--fg)}
.publicfoot .footmark + p{margin-top:14px}
.publicfoot a{color:var(--fg-dim);text-decoration:underline;text-underline-offset:3px}
.publicfoot a:hover{color:var(--accent-text)}
.langswitch [aria-current]{color:var(--fg);text-decoration:none;font-weight:600}

/* The same switcher, repeated above the fold on diner pages. The footer copy
   is 12.5px and dim at the bottom of every step, which for an audience
   choosing between English, Malay and Chinese is the least findable place it
   could be — a diner should not have to reach the end of the booking form to
   discover the form was available in their own language.
   Kept in the flow above the venue band rather than floated over it: the band
   is sometimes under a hero photo and sometimes not, and a utility strip that
   aligns with the card edge needs no knowledge of which. Right-aligned and
   small, so it reads as page furniture and leaves the band's own hierarchy —
   cuisine, then name — untouched. */
/* width:100% because <body> is a flex column: an item with auto side margins
   shrinks to its content there, so max-width alone would centre the switcher
   on its own text rather than align it to the card edge below. */
.langtop{width:100%;max-width:520px;margin:0 auto;padding:10px 24px 0;text-align:right;
  box-sizing:border-box;font-size:12.5px;color:var(--fg-dim)}
.langtop a{color:var(--fg-dim);text-decoration:underline;text-underline-offset:3px}
.langtop a:hover{color:var(--accent-text)}
.langtop [aria-current]{color:var(--fg);text-decoration:none;font-weight:600}
@media(min-width:700px){
  /* Line up with the card below, which gains its own 28px block margin here. */
  .diner .langtop{padding-top:28px;padding-bottom:0}
}

/* The venue's cover photo, shown above everything else. Absent entirely for a
   venue with no hero_image — the wrapper never gets .withhero and .venuebar
   falls back to its own top border below, unchanged from before this existed. */
.hero{position:relative;width:100%;height:220px;overflow:hidden;background:var(--ink-2)}
.hero img{display:block;width:100%;height:100%;object-fit:cover}
.hero::after{content:"";position:absolute;inset:0;
  background:linear-gradient(180deg, rgba(16,30,26,0) 45%, var(--ink) 100%)}
@media(min-width:640px){ .hero{height:300px} }
.book.withhero .venuebar{border-top:none;padding-top:16px}

.venuebar{padding:22px 20px 18px;border-bottom:1px solid var(--line);border-top:1px solid transparent;
  background:linear-gradient(180deg,rgba(200,149,82,.09),transparent)}
.venuebar .name{font-size:20px;font-weight:700;letter-spacing:.16em;text-transform:uppercase}
.venuebar .sub{font-size:13px;color:var(--fg-dim);margin-top:3px}
.pad{padding:20px}
h2.step{display:flex;align-items:baseline;gap:9px;font-size:20px;font-weight:600;
  letter-spacing:.03em;margin:26px 0 14px}
h2.step:first-of-type{margin-top:0}
/* The diner's card carries a four-step booking rather than a dense staff
   table, and 20px was the same inset on a 375px phone and a 1280px screen.
   The mobile block below keeps it at 20 — a phone needs the width more than
   it needs the margin. */
.diner .pad{padding:30px 32px 34px}
.datepager{display:flex;justify-content:space-between;gap:8px;font-size:13px;
  letter-spacing:.04em;margin-bottom:8px}
/* A control, not a caption: an outlined pill with a 44px tap height. */
.datepager a{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;
  border:1px solid var(--accent);border-radius:999px;text-decoration:none;
  color:var(--accent-text,var(--accent));font-weight:600}
.datepager a:hover{background:var(--accent-wash)}
.jumpdate{display:flex;align-items:center;gap:10px;margin-top:12px}
.jumpdate label{margin:0;flex:0 0 auto}
.jumpdate input{width:auto;flex:0 0 auto;padding:8px 10px}

.codebox{display:flex;align-items:center;gap:10px;margin-top:28px;
  padding-top:20px;border-top:1px solid var(--line)}
.codebox label{margin:0;flex:0 0 auto;font-size:13px;color:var(--fg-dim)}
.codebox input{width:auto;flex:1 1 auto;min-width:0;padding:8px 10px}
.codebox button{margin-top:0;flex:0 0 auto}

.dates{display:flex;gap:8px;overflow-x:auto;padding-bottom:6px;
  scroll-snap-type:x proximity}
.date{flex:0 0 auto;width:56px;padding:9px 0 10px;text-align:center;border-radius:var(--radius);
  border:1px solid var(--line);text-decoration:none;color:var(--fg);
  scroll-snap-align:start}
/* The strip runs fourteen days and regularly crosses a month boundary, where
   "30, 31, 1, 2" said nothing about which month the 1st belongs to. Only the
   first cell of a run carries a label (see step-date.php's $newMonth), but
   the slot is reserved on every cell — otherwise the row after a boundary
   sits a line lower than the row before it. */
.date::before{content:attr(data-mo);display:block;min-height:12px;line-height:12px;
  font-size:9px;font-weight:700;letter-spacing:.12em;color:var(--brass-ink)}
.date[aria-current]::before{color:var(--on-accent)}
.date em{display:block;font-style:normal;font-size:12px;letter-spacing:.08em;
  text-transform:uppercase;color:var(--fg-dim)}
.date b{display:block;font-size:19px;margin-top:2px}
.date[aria-current]{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.date[aria-current] em{color:color-mix(in srgb, var(--on-accent) 66%, transparent)}
/* Unavailable, not invisible. At .26 opacity these were well under any
   contrast floor — a diner could not read which dates were struck through,
   only that something in the strip was faint. The line-through is what says
   "closed"; the colour only needs to say "not this one", and --fg-dim already
   does that legibly (it carries body-adjacent text elsewhere). */
.date.shut{opacity:1;color:var(--fg-dim);border-color:var(--line);text-decoration:line-through}
/* Sold out, which is not the same as closed and must not look like it: a
   struck-through day is over, a dotted one is still worth tapping because the
   waitlist is behind it. The slot is reserved on EVERY cell and only filled on
   the sold-out ones, for exactly the reason .date::before reserves the month
   slot above — otherwise a strip containing one marked day stands taller than
   one that doesn't, and the row jumps as you page through the horizon. */
.date::after{content:"";display:block;width:4px;height:4px;border-radius:50%;
  margin:4px auto 0;background:transparent}
.date.soldout::after{background:var(--accent-text)}
/* On the selected cell the ground is the accent itself, where accent-on-accent
   would disappear. Same swap .date[aria-current]::before makes. */
.date[aria-current].soldout::after{background:var(--on-accent)}
/* The legend's own copy of that dot, so the sentence explaining the mark
   carries the mark. Inline, hence the baseline nudge. */
.fulldot{display:inline-block;width:4px;height:4px;border-radius:50%;
  background:var(--accent-text);vertical-align:middle;margin-right:3px}
.ticket{background:var(--surface);border:1px solid var(--line);
  border-radius:var(--radius);overflow:hidden}
.ticket-top{margin-top:20px;border-radius:var(--radius) var(--radius) 0 0}
.ticket-bottom{border-radius:0 0 var(--radius) var(--radius);margin-top:-1px}
.ticket .row{padding:18px 20px;border-top:1px solid var(--line)}
.ticket .row:first-child{border-top:none}
.ticket .k,.jumpdate label.k{font-size:13px;letter-spacing:.1em;text-transform:uppercase;
  font-weight:700;color:var(--fg-dim);margin:0 0 12px}
/* Quick book's date and guest-count labels are real <label>s that wear the
   same k heading as the sitting row, so all three read as one style. The
   date label sits beside its input, so it carries no bottom margin. */
.ticket .paxlabel.k{margin-top:22px}
.jumpdate label.k{margin:0}
.cta{margin-top:18px}
.cta button{width:100%}
.ticket .stepper{width:fit-content}
.sittings{display:flex;flex-wrap:wrap;gap:8px}
.sitting{display:inline-flex;align-items:baseline;gap:7px;width:auto;
  border:1px solid var(--line);border-radius:999px;padding:10px 16px;
  cursor:pointer;margin:0;text-transform:none;letter-spacing:0}
.sitting input{position:absolute;opacity:0;width:0}
.sitting em{font-style:normal;font-size:12px;letter-spacing:.06em;
  text-transform:uppercase;color:var(--fg-dim)}
.sitting b{font-size:15px}
.sitting:has(input:checked){border-color:var(--accent);background:var(--accent-wash)}
.sitting:has(input:checked) b{color:var(--accent)}
.sitting:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:3px}
/* Still selectable — see step-date.php's own comment on why this is a
   warning, not a disabled state. */
.sitting.full{opacity:.6}
.fulltag{display:block;font-style:normal;font-size:12px;letter-spacing:.04em;
  color:var(--fg-dim);margin-top:4px}
/* The collapsed field assets/app.js inserts before .sittings, and the
   opened-panel look it gives .sittings itself. Both are JS-only additions --
   .sittings keeps its plain wrapped-pill styling above with this file
   blocked, and [hidden] needs stating explicitly because the flex display
   set on .sittings otherwise beats the UA stylesheet's own [hidden] rule
   (see .capslock[hidden] above for the same gotcha). */
.sittingfield{display:flex;align-items:center;justify-content:space-between;width:100%;
  background:var(--field-bg);color:var(--fg);border:1px solid var(--line-strong);
  border-radius:var(--radius);padding:11px 12px;font:inherit;text-align:left;cursor:pointer}
.sittingfield[aria-expanded="true"]{border-color:var(--accent)}
.sittings.sittings-panel{display:block;max-height:220px;overflow-y:auto;margin-top:8px;
  border:1px solid var(--line-strong);border-radius:var(--radius);padding:6px;
  background:var(--field-bg)}
.sittings.sittings-panel .sitting{display:flex;width:auto;border:none;border-radius:8px;
  padding:10px 12px;margin:0 0 2px}
/* Same specificity as .sittings.sittings-panel above, so this has to come
   after it in source order to win -- otherwise a hidden, opened-style panel
   renders open anyway. */
.sittings[hidden]{display:none}
/* The calendar popover assets/app.js inserts before a [data-datepopover]
   date input, and the popover itself. JS-only additions -- the plain
   native date input renders exactly as before with this file blocked.
   The explicit [hidden] rule is the same defensive belt-and-braces the
   .sittings one above documents, in case a later input rule ever sets its
   own display and would otherwise beat the UA stylesheet's default. */
input[data-datepopover][hidden]{display:none}
.datefield{display:flex;align-items:center;justify-content:space-between;width:100%;
  background:var(--field-bg);color:var(--fg);border:1px solid var(--line-strong);
  border-radius:var(--radius);padding:11px 12px;font:inherit;text-align:left;cursor:pointer}
.datepopover{margin-top:8px;width:240px;border:1px solid var(--line-strong);
  border-radius:var(--radius);padding:10px;background:var(--field-bg)}
.datepopover[hidden]{display:none}
.cal-head{display:flex;align-items:center;justify-content:space-between;
  font-size:13px;font-weight:600;margin-bottom:8px}
.cal-nav{background:none;border:none;color:var(--fg-dim);font-size:18px;
  line-height:1;padding:2px 8px;cursor:pointer}
.cal-nav:hover{color:var(--fg)}
.cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;text-align:center}
.cal-dow span{font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--fg-dim)}
.cal-day{background:none;border:none;border-radius:6px;padding:6px 0;
  font-size:13px;color:var(--fg);cursor:pointer}
.cal-day:hover{background:var(--accent-wash)}
.cal-day.sel{background:var(--accent);color:var(--on-accent)}
.paxlabel{margin-top:22px}

/* Party-size stepper. Still a real <input type="number" name="pax">
   underneath — with JS disabled it is a plain number field, typeable and
   arrow-key-adjustable, exactly as it always was. The buttons only enhance
   it; they do not replace it. */
.stepper{display:flex;align-items:center;justify-content:space-between;
  border:1px solid var(--line);border-radius:var(--radius);padding:6px}
.stepper input{width:auto;flex:1;border:none;background:none;text-align:center;
  font-size:23px;font-weight:700;color:var(--fg);padding:8px 4px;
  -moz-appearance:textfield}
.stepper input::-webkit-outer-spin-button,.stepper input::-webkit-inner-spin-button{
  -webkit-appearance:none;margin:0}
.stepper input:focus{outline:none}
.stepbtn{all:unset;box-sizing:border-box;flex:0 0 auto;width:38px;height:38px;
  border-radius:50%;display:grid;place-items:center;cursor:pointer;
  border:1px solid var(--line);color:var(--fg-dim);font-size:19px;line-height:1;
  transition:border-color .15s,color .15s,background .15s}
.stepbtn:hover{border-color:var(--accent);color:var(--accent)}
.stepbtn:active{background:var(--accent-wash)}
.stepbtn:disabled{opacity:.3;cursor:not-allowed;border-color:var(--line);color:var(--fg-dim)}
.toggle{display:flex;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;
  width:fit-content;margin-bottom:14px;flex-wrap:wrap}
.toggle a{padding:11px 15px;font-size:10px;font-weight:600;letter-spacing:.16em;
  text-transform:uppercase;color:var(--fg-dim);text-decoration:none}
.toggle a[aria-current]{background:var(--accent);color:var(--on-accent)}
.summary{border:1px solid var(--line);border-left:2px solid var(--accent);border-radius:var(--radius);
  padding:13px 15px;margin-bottom:20px;display:grid;gap:5px}
.summary div{display:flex;justify-content:space-between;gap:14px;font-size:14px;flex-wrap:wrap}
.summary span{color:var(--fg-dim);font-size:12px;letter-spacing:.08em;text-transform:uppercase}
/* The sum of an itemised list — a deposit plus whatever was pre-ordered
   (migration 026). Ruled off and weighted, because it is the number the guest
   actually types into their banking app and every line above it is working. */
.summary .tot{border-top:1px solid var(--line);padding-top:8px;margin-top:3px;font-weight:700}
.summary .tot span{color:var(--fg);font-weight:600}
.summary .tot b{font-size:17px}
/* includes/booking-card.php — one card, drawn in the same palette as the
   floor plan (--paper/--plan-ink/--plan-line/--brass, none of which the
   .diner theme overrides — see :root's own comment on why), so the card and
   the plan read as the same physical object rather than two different
   design systems on one page. Replaces .summary and .ref on the three
   pages it appears on (step-table, step-details, step-confirmed); .summary
   itself stays — step-cancel.php, step-queue.php and staff/reports.php
   still use it and are out of scope here. */
.rescard{background:var(--paper);color:var(--plan-ink);border:1px solid var(--plan-line);
  border-radius:var(--radius);padding:2px 16px;margin:18px 0}
.rescard.stamped{border-color:var(--brass)}
.cardrow{display:flex;justify-content:space-between;align-items:baseline;gap:14px;
  padding:11px 0;border-bottom:1px solid var(--plan-line)}
.cardrow:last-child{border-bottom:none}
.cardrow span{font-size:12px;letter-spacing:.08em;text-transform:uppercase;opacity:.85}
.cardrow b{font-weight:600;font-size:15px;text-align:right}
/* "Next" or, for an auto-assign venue, "Assigned when you confirm" — a
   fact the card doesn't have yet, not a value, so it reads lighter and
   unbolded rather than competing with the rows that are actually decided.
   .6 composited to 2.8:1 on this paper, which is not a contrast ratio any
   text should sit at, and the fade was carrying the whole decided/pending
   distinction on its own. Now that colour carries it — see the rule below —
   .85 is enough separation and measures 4.8:1. */
.cardrow.pending b{font-weight:400;font-style:italic;opacity:.85}
/* While the booking is still being made, every value the diner has actually
   settled takes the accent, and the ones still ahead stay grey italic. The
   card is the only thing on these pages that says how far along you are, and
   it was saying it in five lines of identical near-black — legible, but you
   had to read it to know. Coloured, it fills up as you go and can be read at
   a glance instead.
   --brass-ink rather than --accent for the same reason as the reference row
   below: the raw orange is 4.47:1 on this paper and this is 15px text, so it
   would be relying on nothing. This measures 5.17:1.
   Excluded once stamped, deliberately. On the confirmed page the reference
   is the one thing that matters and it is already this colour — five more
   orange values above it would leave nothing for it to be. */
.diner .rescard:not(.stamped) .cardrow:not(.pending) b{color:var(--brass-ink)}
/* --brass-ink, not --brass. The reference sits on the paper card, where the
   floor plan's brass measures 2.3:1 — failing even the 3:1 that large text
   is allowed. It was wrong at 19px too; enlarging it to the thing a diner
   holds up at the door is what made it worth measuring. --brass-ink is the
   same metal darkened for a light ground (4.9:1 here) and resolves back to
   plain brass on the staff identity, where the card is dark and brass reads
   fine — which is the whole reason that token pair exists. */
.cardrow.ref b{font-family:ui-monospace,Menlo,monospace;color:var(--brass-ink);
  font-size:30px;letter-spacing:.06em;font-weight:700;line-height:1.1;white-space:nowrap}
/* Value and copy button grouped as the row's one right-hand flex child, so
   .cardrow's existing two-child space-between still holds with a third
   element in play. */
.cardrow.ref{flex-wrap:wrap;row-gap:0}
.cardrow.ref .refval{display:flex;align-items:center;gap:8px;margin-left:auto}
.copyref{all:unset;box-sizing:border-box;flex:0 0 auto;width:44px;height:44px;margin:-7px 0;
  border-radius:50%;display:grid;place-items:center;cursor:pointer;
  color:var(--fg);transition:color .15s,background .15s}
.copyref svg{width:20px;height:20px}
/* The diner's blanket button rule (0-1-1) re-adds 14px/22px padding and an
   accent fill on hover to anything `all:unset` cleared, so restate both here
   at the same weight, later in the file. */
button.copyref{padding:0;font-size:inherit}
button.copyref:hover{color:var(--brass-ink);background:var(--accent-wash);transform:none;box-shadow:none}
.copyref:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.copyref.copied{color:var(--brass-ink)}
.copyref[hidden]{display:none}
/* The one row this page just added, called out once rather than left to
   blend in with rows the diner already knew about — see the padIn stagger
   above for the rest of the page's own entrance, and prefers-reduced-motion
   below for why this and that share a kill switch. */
.cardrow[data-new]{animation:cardStamp .28s cubic-bezier(.34,1.4,.5,1)}
@keyframes cardStamp{from{opacity:0;transform:scale(1.04) translateY(-2px)}to{opacity:1;transform:scale(1) translateY(0)}}
@media(min-width:1000px){
  /* Two grid items, not a row-spanning trick: .cardmain (everything the page
     had before the card existed, now one wrapper) takes column 1 at its
     natural height, .rescard sits beside it in column 2. grid-row:1/-1 on
     .rescard was tried first and doesn't actually work here — with no
     grid-template-rows declared there is no explicit row grid for -1 to
     resolve against, so it does not reliably reach the implicit rows
     .cardmain's own children generate, and the floor plan ended up drawn
     into the sidebar's column instead of beside it. Wrapping avoids the
     ambiguity entirely. */
  .pad:has(.rescard){display:grid;grid-template-columns:1fr 280px;column-gap:32px;align-items:start}
  /* The card is a sidebar spanning the whole column, not an item in row 1.
     Both halves of that matter, and each was its own visible bug:

     Without a definite row it is auto-placed, and the card comes first in
     the DOM (it has to — on a phone it belongs above the form, not under
     it). Sparse packing leaves the cursor in column 2, and an item whose
     column is *earlier* than the cursor's pushes the cursor down a row
     first — so the form, at column 1, could only ever land in row 2, and
     step-details opened on an empty white quadrant.

     Without the span it sits in row 1 alone and makes row 1 as tall as
     itself, which strands anything in the left column that follows: on
     step-confirmed, "Booking confirmed" is one line but its row was card-
     height, so the line under it started 150px lower than the heading.

     20 rows because no page here puts anywhere near that many children in
     .pad, and unoccupied implicit rows are auto-sized to zero — the span
     costs nothing and needs no page to declare how many rows it has.
     grid-row:1/-1 does not work in its place: -1 resolves against the
     explicit row grid, and there isn't one.

     2026-09-22: the card is now wrapped in <details class="cardopen"> on
     the two pre-confirmation steps (the phone collapse below). .cardopen
     is styled directly here rather than dissolved with display:contents —
     that was tried first and, live, a closed native <details> refused to
     paint or hit-test its non-summary children at all regardless of what
     CSS said about them, and even once forced open (JS, below) its
     position:sticky computed against the wrong containing block once its
     DOM parent had display:contents. Both are real engine behaviour, not
     a selector mistake, so the fix is to never flatten the wrapper: it
     stays a real box and takes the sidebar placement itself. */
  .pad:has(.rescard) > *{grid-column:1}
  .pad:has(.rescard) > .rescard,.pad:has(.rescard) > .cardopen{grid-column:2;grid-row:1 / span 20;
    position:sticky;top:24px;margin-top:0}
}
.confirmedActions{display:grid;grid-template-columns:1fr;gap:10px;margin-top:22px}
@media(min-width:520px){.confirmedActions{grid-template-columns:1fr 1fr}}
.confirmedActions .btn{margin-top:0;display:inline-flex;align-items:center;justify-content:center;gap:8px;
  box-sizing:border-box;width:100%;text-align:center}
.confirmedActions .btn svg{flex:0 0 auto;width:15px;height:15px}

.sechead{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;
  flex-wrap:wrap;margin-bottom:18px}
.sechead h1{margin:0}
.sechead .who{font-size:13px;color:var(--fg-dim);margin:3px 0 0}
.daynav{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
/* The date jump box sits inline with Prev/Next, like every other control in
   .daynav — the generic input{width:100%} rule below would otherwise stretch
   it to fill its own <form>, which has no width of its own to fill against. */
.daynavjump{margin:0;display:inline-flex}
.daynavjump input{width:auto}
/* background:none is what lets this sit on a <button> as well as the <a>
   tags it was written for. Every other .btn-quiet in the app is a link,
   which has no background to inherit — a <button> carries the filled accent
   from the base rule above, so without this the quiet style rendered as the
   loudest thing on the page with dim text on orange. A no-op on the links. */
.btn-quiet{border:1px solid var(--line);border-radius:var(--radius);padding:9px 12px;
  font-size:11px;letter-spacing:.12em;text-transform:uppercase;
  background:none;color:var(--fg-dim);text-decoration:none;display:inline-block;
  transition:border-color .15s,color .15s,transform .15s}
.btn-quiet:hover{border-color:var(--accent);color:var(--accent)}
/* Only the light identity needs this: it gives every button a filled hover,
   a lift and a shadow (see .diner button:hover), which is right for the one
   big action a booking step asks for and wrong for a quiet outlined one. The
   dark (staff) identity has no button hover background at all, so
   .btn-quiet's own transparent background already survives there. Same
   carve-out, and the same specificity trick, as .diner .btn.btn-outline:hover
   — extended to html[data-scheme="light"] now that admin shares this
   identity too (Phase 1b). */
.diner button.btn-quiet:hover,html[data-scheme="light"] button.btn-quiet:hover{background:var(--accent-wash);
  transform:none;box-shadow:none}
.btn-quiet[aria-current]{border-color:var(--accent);color:var(--accent);
  background:var(--accent-wash)}
.sitgroup{margin-bottom:26px}
.sitgroup .hd{display:flex;align-items:baseline;gap:12px;padding-bottom:9px;
  border-bottom:1px solid var(--line);flex-wrap:wrap}
.sitgroup .hd .t{font-size:15px;font-weight:600;letter-spacing:.12em;text-transform:uppercase}
.sitgroup .hd .c{font-size:12px;color:var(--fg-dim)}
table.bk td small{color:var(--fg-dim);font-size:12px}
/* The figure a row is anchored by: the star rating on public/staff/reviews.php.
   The mobile card already treats it as the anchor (td.tno below is 17px); this
   is the desktop table catching up with what that layout worked out. */
table.bk .tno{font-weight:700;color:var(--accent);font-size:19px;
  font-variant-numeric:tabular-nums}
/* The star-rating suffix ("4 of 5"): small, dim, not the accent — the rating
   itself is what the host reads first. */
table.bk .tno .roomtag{display:block;font-size:10px;font-weight:600;letter-spacing:.08em;
  text-transform:uppercase;color:var(--fg-dim);margin-top:2px}
/* "· 2 visits" is one phrase and was breaking across two lines mid-way,
   taking the guest's name with it and making every row with history two
   rows tall. */
table.bk td.nm small{white-space:nowrap}
table.bk .ph{font:12.5px ui-monospace,Menlo,monospace;color:var(--fg-dim)}
table.bk .ph a{color:inherit;text-decoration:none}
/* The wa.me link sits on its own line under the number rather than crowding
   onto the same line, which is the wrapping risk the phone number's own
   white-space:nowrap (dropped above, now scoped to just the number) existed
   to avoid in the first place. */
table.bk .ph>a:first-child{white-space:nowrap}
table.bk .ph .walink{display:block;margin-top:2px}
/* Dimming a dead row is not specific to the bookings table — the admin lists
   mark switched-off venues, sittings and logins the same way. The
   strike-through stays on .nm, which only the bookings table has. */
/* Dimmed, not erased. bookingsForDate() keeps cancelled rows on purpose —
   "staff need to see that seats freed up, not have them vanish" — and the
   search screen exists partly to answer "I cancelled that, didn't I?". At .4
   the guest's name composited to 3.6:1 and the status chip to 1.5:1, which
   is not dimmed, it is gone. .55 still reads as clearly secondary next to a
   live row and brings the name to 5.1:1. */
.grid tr.void td{opacity:.55}
.grid tr.void .nm{text-decoration:line-through}
/* Same dimming as .void -- dealt with, no longer where the eye should go --
   but no strikethrough: a departed booking did not fall through, the visit
   happened. Striking the name would tell the room a booking was cancelled
   when it was in fact kept in full. */
.grid tr.done td{opacity:.55}
/* A literal brass alpha, tuned for the dark ground this table used to be
   guaranteed to sit on: 28% brass over a dark surface is a clearly visible
   warm pulse, but the same 28% over white (admin's all-venues view can now
   render this table) barely tints it — a flash that is supposed to catch a
   host's eye disappearing right when a lighter ground makes it easiest to
   miss. html[data-scheme="light"] swaps in a stronger, orange-based pulse
   instead of turning the brass alpha up (which would just make the dark
   version gaudier to fix a problem the dark version doesn't have). */
tr.fresh{animation:flash 2.4s ease}
@keyframes flash{from{background:rgba(200,149,82,.28)}to{background:transparent}}
html[data-scheme="light"] tr.fresh{animation-name:flash-light}
@keyframes flash-light{from{background:rgba(255,66,19,.18)}to{background:transparent}}
/* ---- The board's own controls -------------------------------------------
   Everything below is scoped to #rows, the container assets/staff.js swaps
   wholesale every thirty seconds. .grid/.bk/.chip are shared vocabulary —
   ten other pages draw tables with them — so nothing here reaches past the
   day view.

   The day view's sections (Still to come, Here now, and the folds for Left and
   No-show and cancelled) and the sitting cards that filter them are styled in the
   service board block below (#svc). */

/* Row actions behind a disclosure (the service board's panel, admin/sittings.php's
   menu). A <details> and not a JS menu: nothing inside #rows can hold an event listener across a
   poll, and a native disclosure needs none, gets keyboard and screen-reader
   behaviour for free, and still opens with JS off. */
.rowmenu{position:relative;display:inline-block}
.rowmenu summary{list-style:none;cursor:pointer;width:34px;height:34px;
  border:1px solid var(--line);border-radius:var(--radius);
  display:grid;place-items:center;color:var(--fg-dim);
  font-size:17px;line-height:1;letter-spacing:.06em}
.rowmenu summary::-webkit-details-marker{display:none}
.rowmenu summary:hover{border-color:var(--accent);color:var(--accent)}
.rowmenu[open] summary{border-color:var(--accent);color:var(--accent)}
.rowmenupop{position:absolute;right:0;top:calc(100% + 5px);z-index:5;
  display:flex;flex-direction:column;gap:6px;padding:7px;
  background:var(--surface);border:1px solid var(--line-strong);
  border-radius:var(--radius);box-shadow:0 10px 26px -12px rgba(0,0,0,.55)}
.rowmenupop button{white-space:nowrap;width:100%}
/* A link inside the menu (admin/sittings.php's Edit) navigates rather than
   posting the enclosing form. Styled identically to its button siblings so
   the menu reads as one list of actions, not two kinds. The service board
   restyles the whole menu as a panel (#svc .bdpanel, below). */
.rowmenupop a{white-space:nowrap;width:100%;display:block;text-align:left;
  padding:7px 10px;border-radius:var(--radius);color:var(--fg);
  text-decoration:none}
.rowmenupop a:hover{background:var(--surface-alt,rgba(127,127,127,.12))}
/* On a phone the row is a card and there is width to spare, so the menu
   opens in flow rather than over the row beneath it. */
/* KEEP IN SYNC with the #svc copy in the 721-899px block at the end of this file. */
@media(max-width:720px){
  .rowmenu{display:block}
  .rowmenupop{position:static;box-shadow:none;border:none;padding:6px 0 0;
    flex-direction:row;flex-wrap:wrap}
}

/* Status as a dot and a word, not a word alone. The text is unchanged — it
   is asserted verbatim by the deposit tests — this only gives the eye
   something to catch at a glance across a host stand. */
#rows .chip{display:inline-flex;align-items:center;gap:6px}
#rows .chip::before{content:"";width:7px;height:7px;border-radius:50%;
  background:currentColor;flex:0 0 auto}

/* Arrived here from "Open that day" on the search screen. Holds rather than
   fades: the host has just jumped into a full night's list looking for one
   specific booking, and needs it to stay marked while they read it. */
table.bk tr:target{outline:2px solid var(--accent);outline-offset:-2px;
  background:rgba(200,149,82,.12)}
/* 9.5px was too small for what this is. A chip carries the one fact that
   changes during service — confirmed, seated, no-show — and it is read at a
   glance, across a host stand, in a room lit for dinner. 11px with slightly
   less tracking is the same footprint and a legible one; the tracking pays
   for the size. */
.chip{font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;
  padding:3px 8px;border-radius:2px;border:1px solid currentColor;white-space:nowrap;
  display:inline-block}
/* What the guest told us, on the row the host reads during service
   (migration 024). Small marks rather than another run of grey <small> text:
   the point of moving an allergy out of the notes field was that it stops
   being something to notice and starts being something you see. Clay for the
   kitchen's constraint and sage for the occasion, which is the same pairing
   the status chips use for "something is wrong" against "everything is fine",
   so a host already reads these colours the right way round. */
.guestmarks{display:flex;flex-wrap:wrap;gap:5px;margin-top:5px}
.guestmarks .mark{font-size:11px;font-weight:600;letter-spacing:.02em;
  padding:2px 7px;border-radius:2px;border:1px solid currentColor}
.guestmarks .diet{color:var(--clay-text)}
/* A pre-ordered item on the host's row (migration 026). Brass, because it is
   a thing to hand over rather than a constraint to work around — the same
   voice the accent speaks in, one step quieter. */
.preorder{color:var(--brass)}
/* A staff-authored note (public/staff/history.php#note), told apart from the
   guest's own free-text notes just above it by the same brass a pre-order
   line takes — a fact worth a look, written by a colleague rather than the
   guest. */
.staffnote{color:var(--brass)}
/* Was --sage. Sage measures only ~2.4-2.6:1 as text once this row can
   render on a light (admin) ground, not only the dark staff one it was
   tuned for — --ok is the token this revamp introduced for exactly this
   "good, carry on" meaning, and it clears 4.5:1 on both identities. */
.guestmarks .occ{color:var(--ok)}
/* Same phone or email holding another live booking today (migration 032's
   override work). Was --brass, which fails the same way sage does on a
   light ground; --warn is the "worth a look, not a problem" tone now —
   most of these are a household sharing a number, not a mistake, and red
   would say otherwise before a host has even read it. */
.guestmarks .dup{color:var(--warn)}
/* The Private Room a party is booked into (migration 042). --accent-text, the
   token the rest of the staff board uses for "this is the thing to act on":
   it says where the party goes, not that anything is wrong. */
.guestmarks .privroom{color:var(--accent-text)}
/* A confirmed booking whose sitting started a while ago and has not arrived.
   Clay, the same "worth a look" tone dietary takes — lateness is a
   constraint on the room, not good news like an occasion or a duplicate. */
.guestmarks .late{color:var(--clay-text)}
/* Was --sage/--accent respectively — both failed as text on a light ground
   for the reasons above, and --accent specifically now also means "this is
   the button you press" on both identities (peach on staff, orange on
   guest/admin), which is the wrong voice for "this guest is seated and
   fine". --ok carries that meaning instead, matching the token table's own
   "seated text, light context" role. */
.chip.confirmed{color:var(--ok)}
.chip.seated{color:var(--ok)}
.chip.cancelled,.chip.no_show{color:var(--clay-text)}
/* Neither the calm of a seat still held nor the red of a problem -- departed
   is the ordinary, nothing-to-do end of a visit that went fine, so it takes
   the same muted tone .void rows already read in, not a colour of its own. */
.chip.departed{color:var(--fg-dim)}
/* An outstanding deposit (migration 025), beside the status rather than
   instead of it — the booking is confirmed and holding its seat either way.
   Dim while the clock is running and nobody has done anything, --warn once
   the guest says they have transferred (was --brass — same light-ground
   failure as above), because that is the one that has become the venue's
   move: somebody has to open the bank app and look. */
.chip.deposit{color:var(--fg-dim);margin-left:5px}
.chip.deposit.claimed{color:var(--warn)}
/* --warn, not --sage/--ok: a demo venue is active but deliberately not a
   live client, so it should not wear the "everything is fine" colour any
   more than it should share the venue's own accent. Was --brass. */
.chip.demo{color:var(--warn)}
/* Was --accent, which read fine when the dark identity's own accent was
   brass — now that --accent means "primary action" in a literal button
   sense on both identities, a warning chip needs its own token instead of
   borrowing the one that means "press this". */
.chip.warn{color:var(--warn)}
/* A perk the booking holds (migration 056): amber while it is still to give, green
   once staff have given it. Same tokens as the other chips, so both schemes work. */
.chip.perk{color:var(--warn);background:var(--warn-bg);border-radius:4px;padding:1px 6px}
.chip.perk.given{color:var(--ok);background:var(--ok-bg)}
.perkrow{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:4px 0 0}
/* A chip is sometimes a link (venues.php's "N to do", straight to the first
   gap) — reads as a chip either way, not as underlined link text. */
a.chip{text-decoration:none}

/* Seated / No-show / Cancel. These used to be three identical 10px buttons
   6px apart, and Cancel emails the diner an irreversible cancellation — one
   fat-fingered tap at 19:30 and a party that is about to arrive has been
   told not to come. They are now sized as real targets, the safe action is
   visually separated from the two destructive ones, and both destructive
   ones carry data-confirm (see assets/app.js). */
/* nowrap, because a table column is only as wide as its contents *have* to
   be: let these wrap and the min-content width of the cell is one button, so
   the layout squeezes all three into a stack and every row ends up a
   different height. The mobile card block below turns wrapping back on,
   where there is no column to reserve. */
.rowacts{display:flex;gap:6px;justify-content:flex-end;margin:0;flex-wrap:nowrap}
.rowacts button{margin:0;background:none;border:1px solid var(--line);color:var(--fg-dim);
  border-radius:2px;padding:7px 11px;min-height:36px;font-size:11px;letter-spacing:.1em;
  white-space:nowrap}
/* "Seated" is the affirmative action, and the one pressed most — it carries
   the sage tint standing, not only on hover, so the two destructive buttons
   beside it read as the quiet pair rather than as three equal choices. The
   gap does the rest. */
.rowacts .ok{background:var(--accent);border-color:var(--accent);color:var(--on-accent);
  font-weight:600}
.rowacts .ok:hover{background:var(--accent-hover);border-color:var(--accent-hover)}
.rowacts .danger:hover{color:var(--clay-text);border-color:var(--clay)}
/* A .rowacts on a <form> (reviews.php) makes its buttons the flex items. The
   admin tables (sittings, items) need several separate
   forms in one cell — a POST each, since they are different actions — so
   there .rowacts goes on the <td> and the forms would become the flex items
   instead, each one a block box wrapping its button. display:contents lifts
   the buttons back out to be the flex items themselves, which is what the
   gap and wrap rules above are written against. A <form> has no implicit ARIA
   role to lose here, so nothing is removed from the accessibility tree. */
.rowacts form{display:contents}
/* An <a> that does a row's non-destructive thing (Edit, which only navigates)
   still belongs in the same row of controls, sized and spaced as one. */
.rowacts a{margin:0;background:none;border:1px solid var(--line);color:var(--fg-dim);
  border-radius:2px;padding:7px 11px;min-height:36px;font-size:11px;letter-spacing:.1em;
  white-space:nowrap;display:inline-flex;align-items:center;text-decoration:none}
.rowacts a:hover{border-color:var(--accent);color:var(--accent)}

/* Anything driven by a finger rather than a cursor gets the 44px minimum:
   the host stand runs on a tablet, and the diner books on a phone. Applied
   by input type rather than by viewport, so a small laptop window does not
   get tablet-sized controls it has no use for. */
@media(pointer:coarse){
  .rowacts button,.rowacts a{min-height:44px;padding:11px 14px}
  .btn-quiet{padding:13px 14px}
  .stepbtn{width:44px;height:44px}
  .date{padding:13px 0}
  .grid td a{display:inline-block;padding:8px 0}
  .adminnav a{padding:14px 10px}
  .peek{min-height:44px;padding:12px 12px}
  .field.haspeek input{padding-right:78px}
}

/* Below this the staff bookings table has more columns than a phone has
   room for: six on the day view, eight on the search. Rather than scroll
   sideways through the one screen the host uses all evening, each row
   becomes a card and every cell carries its own inline label from
   data-label. One mechanism for all of them, so an eight-column table and a
   three-column one both reflow without a bespoke layout each.

   Note this drops the table semantics on narrow screens — a cell laid out
   with flex is no longer a table cell to a screen reader. The data-label
   text is generated content, which screen readers do announce, so a row
   reads as "TABLE A1, GUEST ..., PARTY 4" instead of via column headers.
   For a phone that is the better of the two, which is why the headers are
   hidden here rather than kept and visually clipped. */
@media(max-width:720px){
  .wrap{padding:20px 14px 60px}
  /* Five nav items do not fit one phone line, and at the desktop size they
     took three — most of the first screen of every staff page, before a
     single booking. Tightened to wrap into two. */
  .adminnav{padding:2px 12px}
  .adminnav a{font-size:13px;padding:11px 8px;gap:7px}
  .pad{padding:16px}
  .venuebar{padding:18px 16px 14px}
  /* The band carries the venue's whole description on a phone, so every
     value in it is worth a few pixels: at the desktop sizes a wordy venue
     pushed "Pick a date" off the first screen entirely. Restated rather than
     inherited because .diner .venuebar out-specifies the rule above. */
  .diner .venuebar{padding:26px 18px 14px}
  .diner .venuebar .name{font-size:33px}
  .diner .venuebar .sub{font-size:13px;margin-top:6px}
  .diner .venuebar .lede{font-size:13.5px;margin-top:10px}
  .diner .venuebar .infolist{margin-top:12px;font-size:13.5px}
  .diner h2.step{font-size:26px;margin:42px 0 16px}
  /* A phone needs the width more than it needs the inset. */
  .diner .pad{padding:20px 18px 24px}
  h1{font-size:22px}
  .diner .book h1{font-size:25px}
  /* The picker's hero comes down proportionally rather than to the serif
     size — 40 is a desktop figure and would wrap "Book a table" across three
     lines on a 375px phone. */
  .diner .book .brandbar h1{font-size:31px}
  /* The lockup comes down with it, keeping the wordmark above the heading it
     introduces. "d'sini" is six characters and never wraps, so this is about
     proportion to the h1 beside it, not about fitting. */
  .diner .brandbar .brandline .nm{font-size:28px}
  .diner .brandbar .brandline{margin-bottom:18px;gap:11px}
  /* dsiniMark() writes width/height as attributes, which CSS beats — the
     helper takes one size and this is the one screen that wants two. The
     viewBox scales the drawing, so nothing inside it needs to know. */
  .diner .brandbar .brandline svg{width:40px;height:40px}

  /* KEEP IN SYNC: the table.bk card rules below down to `.grid tr.void td` are
     copied, scoped to #svc, into the min-width:721px and max-width:899px block at
     the end of this file (the staff board beside the rail). Change one, change both. */
  table.bk,table.bk tbody{display:block}
  table.bk thead{display:none}
  table.bk tr{display:flex;flex-wrap:wrap;gap:3px 14px;align-items:baseline;
    border:1px solid var(--line);border-radius:4px;padding:11px 13px;margin-bottom:9px}
  table.bk td{display:flex;gap:6px;align-items:baseline;border:none;padding:0}
  table.bk td::before{content:attr(data-label);font-size:10px;letter-spacing:.14em;
    text-transform:uppercase;color:var(--fg-dim);white-space:nowrap}
  /* The guest name is the card's headline — a name does not need to be
     labelled "guest" to be recognised as one. */
  table.bk td.tno::before,table.bk td.nm::before,table.bk td.hd::before,table.bk td.act::before{content:none}

  /* Reading order down the card: name and state on the top line; party and phone under it; actions last. That is not the column
     order in the markup — the status column sits fifth in the table — so
     the cells are ordered explicitly here rather than left to fall where
     the desktop table happens to put them. Anything unclassed (the search
     screen's sitting column) lands in the middle by default. */
  table.bk td{order:5}
  table.bk td.tno{order:1;font-size:17px}
  /* The 55% basis is doing real work, in both directions. Flex assigns
     items to lines using their basis *before* growing or shrinking, so:
     at basis:auto a long guest name measures its full width, fills the top
     line by itself and elbows the status chip down; at basis:0 the name
     reserves nothing, and on the search screen the wide Date and Sitting
     cells claim the line instead, shrinking the name to about 20px — one
     letter per line. 55% is wide enough that only the status chip fits
     beside it, and narrow enough that it always does. Top line is
     [name, status] on every one of these tables. */
  table.bk td.nm,table.bk td.hd{order:2;flex:1 1 55%;min-width:0;overflow-wrap:anywhere;
    font-size:16px;display:block}
  /* display:block, not the flex above: this cell holds a name followed by
     <small> notes, and as flex items those sit side by side instead of the
     note sitting under the name it belongs to. */
  table.bk td.nm small,table.bk td.hd small{display:block;white-space:normal}
  /* Pushed to the end of the top line, which also forces everything after
     it onto the next one — no explicit line breaks needed. No "STATUS"
     label: the chip reads SEATED or CONFIRMED, which is the label. That is
     ~60px of a 375px line back for the guest's name. */
  table.bk td.st{order:3;margin-left:auto}
  table.bk td.st::before{content:none}
  table.bk td.dt{order:4}
  table.bk td.pax{order:6}
  table.bk td.ph{order:7}
  table.bk td.act{order:9;flex:1 1 100%;margin-top:7px}
  /* The admin tables (staff logins, admins, sittings, items, rooms, brands,
     deposits, scheduled jobs) use the same card with two additions. .hd is the
     headline cell, the same job .nm does on a booking, kept as its own class
     because .nm carries desktop styling of its own. .cellfield is a cell that
     holds an input or a form: it takes a whole line, label above the control. */
  table.bk td.cellfield{order:6;flex:1 1 100%;flex-direction:column;align-items:stretch;gap:4px}
  table.bk td.cellfield input:not([type=checkbox]):not([type=radio]){width:100%;max-width:none}
  table.bk td.cellfield .slugfield{display:flex;align-items:center;gap:4px}
  table.bk td.cellfield .slugfield input{flex:1 1 auto;min-width:0}
  table.bk td.cellfield form{margin:0}
  table.bk td.cellfield button{margin-top:8px}
  table.bk td.cellfield .thumb{margin-bottom:8px}
  table.bk td .cellacts,table.bk td.act .cellacts form{min-width:0}
  table.bk td.act .cellacts input{width:100%}
  table.bk td.act .cellacts form:has(input:not([type=hidden])){flex:1 1 100%;display:flex;gap:8px;align-items:center}
  table.bk td.act .cellacts form:has(input:not([type=hidden])) input{flex:1 1 auto;min-width:0}
  table.bk td.act .cellacts form:has(input:not([type=hidden])) button{flex:0 0 auto}
  table.bk td.act .cellacts{flex:1 1 100%}
  table.bk td.act .rowacts,table.bk td.act .bdacts{justify-content:flex-start;flex-wrap:wrap}
  /* A cancelled booking has no actions left, so its cell is empty markup —
     :empty will not match it (the whitespace in the template counts), hence
     :has. Without this every dead row keeps a blank 44px strip. */
  table.bk td.act:not(:has(form)):not(:has(a)):not(:has(button)){display:none}
  .grid tr.void td{opacity:.6}

  .sechead{align-items:flex-start}
  .toggle{width:100%}
  .toggle a{flex:1 1 auto;text-align:center}
  .sittings{grid-template-columns:repeat(auto-fit,minmax(110px,1fr))}
}

/* ---- Desktop ------------------------------------------------------------
   Two steps rather than one, because the things that want width want
   different amounts of it. At tablet size the column widens enough that the
   date strip stops scrolling and the sittings sit two-up. At laptop size the
   floor plan gets real room — it is what the diner is actually reading, and
   at 520px its markers were the size of a fingernail on a 27in screen.

   Deliberately NOT full-bleed: this is a booking form, and a form dragged to
   1400px is worse, not better. The measure stops growing at 780px and the
   page stays centred. */
@media(min-width:700px){
  .book{max-width:660px}
  .pad{padding:26px 28px}
  .venuebar{padding:26px 28px 22px}
  /* Fourteen days fit now, so the horizontal scroller has nothing to scroll.
     Grid rather than a wrapping flex row: flex would let the four days on the
     last row grow to fill it, so the second week's dates came out half as wide
     again as the first week's. Grid keeps every day the same size whatever
     lands on the final row. */
  .dates{display:grid;grid-template-columns:repeat(auto-fill,minmax(64px,1fr));
    overflow-x:visible;padding-bottom:0}
  .date{width:auto}
  /* auto-fill, not auto-fit: a venue with one sitting should get one
     sitting-sized card, not a single 600px slab spanning the column. */
  .sittings{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}
  /* Fields stay a field's width even though the column around them grew.
     Only forms that are purely inputs carry this — the table picker's form
     wraps the floor plan and must have the full measure. */
  .narrowform{max-width:460px}
  /* Same reasoning as .narrowform above: the stepper is a small control, and
     stretching it the full width of a 660px column just to hold a one- or
     two-digit number reads as a bug, not a design. */
  .stepper{max-width:240px}
  .venuelist{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:14px}
  /* The <li> is the grid item and stretches to the row; the <a> inside it
     does not, so a venue with no photo sat as a short card floating in a tall
     row next to one that had a photo. Pass the stretch through to the card,
     and let a photo-less card centre its name in the height it inherits
     rather than leaving the space under it empty. */
  .venuelist li{display:flex}
  .venuecard{flex:1 1 auto;display:flex;flex-direction:column}
  .venuecard:not(:has(.shot)) .meta{margin-block:auto}
}

@media(min-width:1000px){
  .book{max-width:780px}
  .hero{height:340px}
  /* The confirmation's reference is the thing a diner shows at the door and
     screenshots on the way — it can afford to be read across a room. */
  .cardrow.ref b{font-size:34px}
}

@media(prefers-reduced-motion:reduce){
  tr.fresh{animation:none}
  /* Higher specificity than the bare tr.fresh reset above (the light flash
     is scoped to html[data-scheme="light"]), so it needs its own line or
     the kill-switch would lose to the unconditional animation-name set
     outside this media query. */
  html[data-scheme="light"] tr.fresh{animation:none}
  .stepbtn{transition:none}
  .diner .pad > *{animation:none}
  .venuecard .shot img{transition:none}
  .diner .venuecard:hover .shot img{transform:none}
  .diner button,.diner .btn,
  html[data-scheme="light"] button,html[data-scheme="light"] .btn{transition:background .15s}
  .diner button:hover,.diner .btn:hover,
  html[data-scheme="light"] button:hover,html[data-scheme="light"] .btn:hover{transform:none;box-shadow:none}
  .diner button[disabled][data-idle]::before,
  html[data-scheme="light"] button[disabled][data-idle]::before{animation:none;opacity:.55}
  .cardrow[data-new]{animation:none}
}

/* ---- The guides, on paper ---------------------------------------------
   The three help pages (book/help.php, public/staff/help.php,
   public/admin/help.php) are the teaching material, and teaching material
   gets printed and handed over. There is no PDF library here and there is
   not going to be one — this app has zero runtime Composer dependencies —
   so the browser's own print-to-PDF is the generator, and this block is the
   whole of it. What comes out is by definition current, because it is the
   live page.

   Printing is fixed by redefining the tokens rather than by overriding each
   component: the palette is already a single set of names serving two
   identities (:root and :root.diner above), so paper is simply a third set
   of values for the same names. Every rule in this file — .panel, .hint,
   .help, .notice, the chips — then prints correctly having never been told
   about printing. Overriding rule by rule would mean revisiting this block
   every time a component is added.

   Three selectors are listed now, not two: :root.diner (0,1,1 as a class on
   :root) and html[data-scheme="light"] (0,1,1 as an attribute on the html
   element) both outrank a bare :root (0,0,1) — without them the diner guide
   would print its light band at full ink, and since Phase 1b moved admin
   onto the same light identity via the attribute rather than the class
   (see :root.diner's own comment), admin's help page needs the attribute
   selector here too or it would print unaffected by any of this. Staff
   needs no attribute selector of its own: it never carries data-scheme
   other than "dark", which the bare :root entry already reaches. */
@media print{
  :root,:root.diner,html[data-scheme="light"],.hp-fig{
    --ink:#FFF; --ink-2:#FFF; --surface:#FFF; --field-bg:#FFF;
    --fg:#000; --fg-dim:#444; --line:#BBB;
    /* Brass on white is 2.3:1 — fine as a screen accent against ink, unread
       as body text on paper, and a colour ink cartridge is not a thing to
       depend on anyway. Links print as plain black text; the href is not
       recoverable from paper regardless, so colouring it claims an
       affordance the page does not have. */
    --accent:#000; --accent-text:#000; --accent-hover:#000;
    --on-accent:#FFF; --accent-wash:transparent;
    --clay:#000; --clay-text:#000; --brass:#000; --sage:#000;
    /* The Phase 1b semantic tokens print the same way: no colour ink to
       depend on, so status/warning chips fall back to plain black text and
       their washes disappear rather than half-printing a tint. */
    --ok:#000; --ok-bg:transparent; --warn:#000; --warn-bg:transparent;
    --danger:#000; --danger-text:#000; --soft:#FFF;
    /* The diner band goes from a navy plate to an ordinary heading. */
    --band:#FFF; --on-band:#000; --on-band-dim:#444;
    --shadow:none;
    color-scheme:light;
  }

  /* Chrome that cannot survive the trip to paper: navigation nobody can
     tap, a language switcher that switches nothing, and the print button
     itself, which would otherwise appear in its own output. Unconditional
     rather than scoped to .helppage — printing any page in this app is
     better off without them. */
  .skiplink,.langtop,.langswitch,.demobar,.adminnav,.publicfoot,.printbtn{display:none}

  /* The column widths are screen measures — 520px for the diner flow, 860px
     for the back office — and on paper they leave a third of the sheet
     empty. Paper has its own measure, set by @page below.

     The diner identity also draws the flow as a rounded bordered card
     (.diner .book, from 700px up), which on paper is a frame around the
     whole document rather than a card floating on a ground — and its
     overflow:hidden is a real risk of clipped content at a page break. The
     .diner .helppage half of the selector is there to outrank it; a bare
     .helppage carries one class to its two and would lose.

     width:100%, not auto: body is a flex column, and a flex item with
     `margin:0 auto` and an auto width centres at its *content* width rather
     than stretching — the trap already documented on .wrap above, which
     collapses the sheet to whatever the widest line happens to be. */
  .helppage,.diner .helppage{max-width:none;width:100%;padding:0;
    border:none;border-radius:0;overflow:visible;margin-block:0}
  /* With the card gone, the sheet's own margin is the margin. Left as they
     were, the band's 24px and the body's 32px would print the heading and
     the paragraph under it starting at two different places. */
  .helppage .pad,.helppage .venuebar{padding-left:0;padding-right:0}
  @page{margin:14mm}

  /* A heading stranded at the foot of a page, a glossary entry split from
     its own definition, and a numbered step broken mid-instruction are the
     three ways a printed reference goes wrong. Everything else may break
     where it likes — forbidding more than this on a document that runs to
     several pages only pushes the whitespace somewhere worse. */
  .helppage h2,.helppage h3{break-after:avoid}
  .helppage .glossary > div,.helppage .howto li{break-inside:avoid}
}

/* ---- The guides, on screen --------------------------------------------
   Shared by all three help pages. Kept here in app.css rather than in the
   Tailwind source because these are components, not utilities, and because
   app.css needs no build step — see frontend/README.md. */

/* Save as PDF. Rendered hidden and unhidden by app.js, so a reader without
   JavaScript is never offered a button that cannot work — the browser's own
   File → Print reaches the same output either way. Quiet, because it is a
   convenience beside the guide, not the reason anyone opened it. */
.printbtn{margin-top:0}
/* Same trap as .capslock[hidden] above: the hidden attribute is a UA-level
   display:none, and any author `display` beats it — .btn-quiet's
   inline-block would show the button to a reader with JS off, which is the
   one person it must stay hidden from. Switched off explicitly. */
.printbtn[hidden]{display:none}

/* The glossary. A <dl>, because it is literally terms and definitions, with
   each pair wrapped in a <div> — that wrapper is what gives print a single
   unbreakable unit per entry, and it is valid inside a dl. */
.glossary{margin:0}
.glossary > div{margin-bottom:14px;max-width:60ch}
.glossary dt{font-weight:600}
.glossary dd{margin:2px 0 0;color:var(--fg-dim);line-height:1.5}

/* A numbered walkthrough — "do this, then this". The counter is the point,
   so the steps are wide-spaced enough to be followed with a finger on a
   printed sheet. */
.howto{margin:0 0 18px;padding-left:1.2rem;max-width:64ch}
.howto li{margin-bottom:10px;line-height:1.55}
.howto li::marker{color:var(--fg-dim);font-weight:600}

/* One booking's audit trail (public/staff/history.php) -- oldest first, a
   left rule standing in for the thread of time rather than a numbered list,
   since these are events that happened, not steps to follow. */
.timeline{margin:0 0 18px;padding:0;list-style:none;max-width:64ch}
.timeline li{padding:0 0 14px 16px;border-left:2px solid var(--line);margin-left:4px}
.timeline li:last-child{padding-bottom:0}
.timeline time{display:block;font-size:12px;color:var(--fg-dim);font-variant-numeric:tabular-nums}
.timeline p{margin:3px 0 0;line-height:1.5}
.timeline .hint{margin-top:2px}

/* The guides run long, so their headings need to be findable by eye when
   scrolling or flicking through paper. */
.helppage h2{margin:34px 0 10px;font-size:19px;letter-spacing:.01em}
.helppage h3{margin:22px 0 6px;font-size:15px}
.helppage p,.helppage ul:not(.howto),.helppage ol:not(.howto){max-width:64ch}
.helppage .lede{max-width:64ch}

/* ---- The guides: contents list, sections and drawn screens -------------
   Each guide opens with a contents list named by what a reader wants to do
   and then one card per topic. A topic that has a screen leads with a
   picture of it, drawn here in HTML and CSS rather than screenshotted, so it
   is never a version behind the app and costs no image request.

   Every class below is prefixed hp- and owns its look outright. The pictures
   deliberately do NOT reuse the live board or booking form classes: those
   screens are rebuilt often, and a guide that changes shape whenever they do
   is a guide nobody trusts. A picture is a still, not a working screen — it
   is aria-hidden in the markup and the lettered callouts beside it are real
   text, so a screen reader gets the explanation and skips the drawing.

   .hp-fig also carries the light identity's tokens (see the shared selector
   at the top of this file), so a picture always reads as the light screen it
   depicts, even on the venue staff's dark host-stand page. Its callouts
   sit inside the same tokens, which keeps the letter badge one colour
   whether it is drawn on the picture or listed beside it. */
.hp-layout{display:block}
.hp-toc{margin:0 0 20px;padding:12px 14px;background:var(--surface);
  border:1px solid var(--line);border-radius:var(--radius);font-size:13px}
.hp-toc-h{margin:0 0 6px;font-size:11px;font-weight:600;letter-spacing:.12em;
  text-transform:uppercase;color:var(--fg-dim)}
.helppage .hp-toc ol{margin:0;padding:0;list-style:none;max-width:none;columns:2;column-gap:16px}
.hp-toc li{break-inside:avoid}
.helppage .hp-toc a{display:block;padding:6px;border-radius:6px;color:var(--fg);text-decoration:none}
.helppage .hp-toc a:hover{background:var(--soft)}
.helppage h2[id],.helppage h3[id]{scroll-margin-top:16px}
/* The contents list needs room beside it, so it only becomes a sidebar
   where there is some: 1100px, because the staff and admin rail already
   takes 212px of that. The diner column is 520px on a phone and is widened
   only here, for the same reason. */
@media (min-width:1100px){
  .hp-layout{display:grid;grid-template-columns:190px minmax(0,1fr);gap:28px;align-items:start}
  .hp-toc{position:sticky;top:20px;margin:0;max-height:calc(100vh - 40px);overflow:auto}
  .helppage .hp-toc ol{columns:1}
  .book.helppage{max-width:1040px}
}
.hp-sec{min-width:0;margin-bottom:16px;padding:20px 22px;background:var(--surface);
  border:1px solid var(--line);border-radius:14px}
.helppage .hp-sec > h2{margin:0 0 6px}
.hp-lead{margin:0 0 14px;color:var(--fg-dim)}
/* The diner guide already sits on a white card, so its sections are ruled
   apart rather than boxed a second time. */
.book .hp-sec{padding:20px 0 0;background:none;border:0;border-top:1px solid var(--line);border-radius:0}
.book .hp-layout .hp-sec:first-child{border-top:0}

.hp-fig{margin:14px 0 16px;padding:14px;background:var(--ink);color:var(--fg);
  border:1px solid var(--line);border-radius:12px;min-width:0}
.hp-shot{display:grid;gap:10px;min-width:0;font-size:12.5px;line-height:1.4}
.helppage ol.hp-calls{list-style:none;margin:14px 0 0;padding:0;max-width:none;
  display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px 18px;
  font-size:13px;line-height:1.45}
.hp-calls li{display:grid;grid-template-columns:22px 1fr;gap:8px;margin:0}
.hp-n{display:inline-grid;place-items:center;flex:none;width:22px;height:22px;
  border-radius:50%;background:var(--accent);color:var(--on-accent);
  font-size:11px;font-weight:700;font-style:normal;line-height:1}
.hp-n.is-sm{width:18px;height:18px;font-size:10px}

/* A booking row, drawn. */
.hp-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:10px 12px 10px 0;
  background:var(--surface);border:1px solid var(--line);border-radius:10px;overflow:hidden}
.hp-stripe{align-self:stretch;flex:none;width:4px;border-radius:4px;background:var(--line-strong)}
.hp-row.is-wait .hp-stripe{background:var(--warn)}
.hp-who{flex:1 1 150px;min-width:0}
.hp-who b{font-size:15px}
.hp-pax{min-width:2ch;font-size:19px;font-weight:600;text-align:center}
.hp-act{display:flex;gap:6px;margin-left:auto}
.hp-tag{display:inline-block;margin:4px 4px 0 0;padding:1px 7px;border:1px solid var(--line);
  border-radius:5px;background:var(--soft);font-size:11.5px}
.hp-tag.is-diet{border-color:var(--danger);color:var(--danger-text)}
.hp-chip{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border:1px solid var(--line);
  border-radius:99px;background:var(--soft);color:var(--fg);font-size:12.5px;font-weight:600;white-space:nowrap}
.hp-chip::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
.hp-chip.is-seat{border-color:var(--ok);background:var(--ok-bg);color:var(--ok)}
.hp-chip.is-wait{border-color:var(--warn);background:var(--warn-bg);color:var(--warn)}
.hp-chip.is-void{border-color:var(--danger);color:var(--danger-text);background:transparent}
.hp-chip.is-left{color:var(--fg-dim);background:var(--ink)}
.hp-btn{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 12px;
  border:1px solid var(--line-strong);border-radius:9px;background:var(--surface);color:var(--fg);
  font-size:13px;font-weight:600;white-space:nowrap}
.hp-btn.is-go{border-color:var(--ok);background:var(--ok);color:#fff}
.hp-btn.is-acc{border-color:var(--accent);background:var(--accent);color:var(--on-accent)}
.hp-btn.is-warn{border-color:var(--danger);color:var(--danger-text)}
.hp-btn.is-more{width:36px;padding:0}

/* The row of sitting cards and the Private Rooms line under it. */
.hp-sits{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px}
.hp-sit{display:grid;gap:5px;padding:9px 11px;background:var(--surface);
  border:1px solid var(--line);border-radius:10px}
.hp-sit.is-next{border-color:var(--fg);box-shadow:inset 0 0 0 1px var(--fg)}
.hp-sit-top{display:flex;justify-content:space-between;gap:6px}
.hp-bar{display:flex;height:8px;border:1px solid var(--line);border-radius:99px;background:var(--ink);overflow:hidden}
.hp-bar i{display:block;height:100%}
.hp-bar .is-seated{background:var(--ok)}
.hp-bar .is-booked{background:var(--line-strong)}
.hp-flag{color:var(--warn);font-weight:600}
.hp-line{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px}
.hp-pill{padding:4px 10px;border:1px solid var(--line);border-radius:9px;background:var(--surface)}
.hp-pill.is-on{border-color:var(--fg);background:var(--soft);box-shadow:inset 0 0 0 1px var(--fg);font-weight:700}
.hp-dim{color:var(--fg-dim)}

/* The add and change booking panel, and the panel that opens from a row. */
.hp-panel{background:var(--surface);border:1px solid var(--line);border-radius:12px;overflow:hidden}
.hp-step{padding:10px 12px;border-bottom:1px solid var(--line)}
.hp-step-h{display:flex;align-items:center;gap:6px;margin:0 0 7px;font-size:10.5px;font-weight:600;
  letter-spacing:.12em;text-transform:uppercase;color:var(--fg-dim)}
.hp-slots{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:6px;margin-top:8px}
.hp-slot{display:grid;gap:2px;padding:7px 10px;border:1px solid var(--line);border-radius:9px;background:var(--surface)}
.hp-slot.is-on{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);font-weight:700}
.hp-free{color:var(--ok);font-weight:600}
.hp-field{display:grid;gap:3px;margin-top:8px}
.hp-in{padding:6px 10px;border:1px solid var(--line-strong);border-radius:8px;background:var(--surface)}
.hp-found{margin-top:6px;padding:6px 10px;border:1px solid var(--ok);border-radius:8px;
  background:var(--ok-bg);color:var(--ok);font-weight:600}
.hp-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;
  padding:10px 12px;background:var(--ink)}
.hp-drawer{max-width:340px;padding:12px 14px;background:var(--surface);
  border:1px solid var(--line);border-radius:12px}
.hp-drawer h3{margin:2px 0 8px;font-size:17px}
.hp-kv{display:grid;grid-template-columns:76px 1fr;gap:3px 10px;margin:0 0 10px}
.hp-kv dt{color:var(--fg-dim)}
.hp-kv dd{margin:0}
.hp-acts{display:grid;gap:6px}
.hp-acts .hp-btn{justify-content:flex-start}
.hp-acts > .hp-line{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
/* An admin table and form, drawn. Columns by grid rather than <table>, so a
   picture has nothing for a screen reader to mistake for real data. */
.hp-tr{display:grid;grid-template-columns:1.2fr .9fr 1.1fr 1.5fr;gap:6px 10px;align-items:center;
  padding:8px 12px;border-bottom:1px solid var(--line)}
.hp-tr.is-head{font-size:10.5px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--fg-dim)}
.hp-two{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px}
.hp-box{display:inline-grid;place-items:center;width:14px;height:14px;margin-right:6px;
  border:1.5px solid var(--line-strong);border-radius:3px;vertical-align:-2px;font-size:10px;line-height:1}
.hp-box.is-on{border-color:var(--fg)}
.hp-box.is-on::after{content:"\2713"}
.hp-box.is-radio{border-radius:50%}
.hp-box.is-radio.is-on::after{content:"\25CF"}
/* Three small screens side by side, or a journey drawn as chips and arrows. */
.hp-steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px}
.hp-mini{display:grid;gap:7px;align-content:start;padding:10px;background:var(--surface);
  border:1px solid var(--line);border-radius:10px}
.hp-flow{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.hp-flow .hp-go::before{content:"\2192"}
.hp-states{display:grid;grid-template-columns:auto 1fr;gap:10px 14px;align-items:center;margin:0}
.hp-states dt{margin:0}
.hp-states dd{margin:0;line-height:1.5}
@media (max-width:560px){.hp-states{grid-template-columns:1fr;gap:4px}.hp-states dd{margin-bottom:10px}}

/* On paper. Placed after the rules it overrides, not up with the print
   tokens: a print rule of equal specificity that comes earlier in the file
   loses to the screen rule that follows it.

   The contents list is a way around a screen; on paper it is a sidebar
   nobody can tap. The sections lose their cards for the same reason the
   diner .book loses its frame above. A picture stays in one piece, keeps its
   border and its lettered callouts, and never relies on a fill: a browser
   leaves background colours out of a print unless the reader switches them
   on, so every filled control is redrawn as an outline and every badge as a
   ringed letter. */
@media print{
  .hp-toc{display:none}
  .hp-layout{display:block}
  .hp-sec,.book .hp-sec{border:none;border-radius:0;padding:0;background:none}
  .book .hp-sec{border-top:1px solid #BBB;padding-top:16px}
  .hp-fig{break-inside:avoid;border:1px solid #000}
  .hp-n,.hp-n.is-sm{background:#fff;color:#000;border:1.5px solid #000}
  .hp-btn,.hp-btn.is-go,.hp-btn.is-acc{background:#fff;color:#000;border:1px solid #000}
  .hp-chip,.hp-chip.is-seat,.hp-chip.is-wait,.hp-chip.is-void{border:1px solid #000}
}

/* ==========================================================================
   Guest revamp — Phase 2/3 (worktree claude/revamp-guest-phase-6531)
   New component rules only, appended rather than folded into the sections
   above so this stays mergeable against the sibling staff/admin phases
   editing the same file. Nothing above this header was reordered or
   reformatted.

   Covers: the two-column venue page (book/step-date.php) that replaces its
   former single-column .venuebar band with an .identity/.photo/.about
   layout inside .venuegrid, and the .booksteps progress header shared by
   step-date.php, step-extras.php and step-details.php. Every other guest
   page kept its existing .venuebar/.book/.pad treatment from Phase 1 — see
   the implementation report for why only the venue page's own header was
   rebuilt rather than every page's minimal reuse of that band.
   ========================================================================== */

/* The venue page alone gets the wider measure; every other .book page (the
   ticket-style booking steps, confirmations, lifecycle pages) keeps the
   520px column Phase 1 already tuned. It also does NOT want the generic
   .diner .book white-card treatment (background/border/shadow/radius) that
   every other .book page gets from Phase 1 — this page's identity/photo/
   about content sits directly on the page ground; only .bookcard's own
   .ticket-top/.ticket-bottom (unchanged, already stitched into one visual
   card via their shared radius/negative-margin trick) reads as a card.
   clip-path:none too, not just border-radius:0 — the base rule's rounded
   clip-path is an independent property from border-radius (nothing here
   clears it on its own), and this page's own sticky .bookcard sidebar is
   exactly the thing that clip-path rule breaks (see its own comment). */
.diner .book.venuepage{background:transparent;box-shadow:none;border:none;border-radius:0;
  clip-path:none}
.book.venuepage{max-width:520px;padding:20px 20px 40px}
.venuegrid{display:block}
.venuegrid > * + *{margin-top:28px}

@media(min-width:640px){
  .book.venuepage{padding:28px 28px 48px}
}
@media(min-width:768px){
  .book.venuepage{max-width:1180px;padding:36px 32px 56px}
  /* Rows 1-2 hug their content and row 3 takes the slack. Left as three
     auto rows, the spanning .bookcard's extra height was shared across all
     three, opening a gap under the description and another under the
     photo (2026-09-23 review). The photo now lives inside .identity (the
     About card), so row 2 stays empty unless the Private Rooms take it. */
  .venuegrid{display:grid;grid-template-columns:1.2fr 1fr;grid-template-rows:auto auto 1fr;
    column-gap:48px;align-items:start}
  .venuegrid > * + *{margin-top:0}
  /* min-width:0 so a long strip of menu pictures scrolls inside the column
     instead of widening it and pushing the booking box off the screen. */
  .venuegrid .identity{grid-column:1;grid-row:1;min-width:0}
  .venuegrid .about{grid-column:1;grid-row:3;margin-top:24px}
  /* Right column spans every row the left column occupies, exactly the
     reasoning already documented on .pad:has(.rescard) above: without the
     span the card would only be as tall as row 1 and strand the photo/about
     content in a phantom row 2 of its own. */
  .venuegrid .bookcard{grid-column:2;grid-row:1 / span 3;position:sticky;top:24px}
}

/* The name, cuisine and rating line, freed from the retired .venuebar band —
   same serif treatment and same size step-date.php's old .venuebar .name
   carried, kept as its own rule rather than widening that selector so the
   two stay independently editable. */
.diner .identity .name{font-family:"Instrument Serif","Songti SC","Noto Serif CJK SC",Georgia,serif;
  font-weight:400;font-size:46px;line-height:1.06;letter-spacing:-.012em;text-transform:none;margin:0}
/* Cuisine and the Google rating each get their own line under the name
   (Plan 12), rather than sharing one the way the 2026-09-17 mockup had them. */
.identity .meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;margin:10px 0 0;font-size:13.5px}
.identity .meta .cuisine{color:var(--fg-dim);font-weight:600}
.identity .meta .cuisine:not(:last-child){padding-right:10px;border-right:1px solid var(--line)}
/* Unscoped twin of .diner .venuebar .meta .greview — the venue page no
   longer nests this inside the band, so it needs its own light-surface
   colours rather than the on-band tokens (which read fine here too, since
   --on-band is --fg's own interim alias, but naming it directly keeps this
   rule legible without that cross-reference). */
.identity .greview{display:inline-flex;align-items:center;flex-wrap:wrap;gap:4px 9px;margin:0}
.identity .greview .stars{display:inline-flex;gap:1px}
.identity .greview .star .bg{fill:var(--line)}
.identity .greview .star .fg{fill:var(--brass-ink)}
.identity .greview b{color:var(--fg);font-weight:700}
.identity .greview .gcount{color:var(--fg-dim)}
.identity .greview a{color:var(--fg-dim);text-decoration:underline}

/* Facts under the rating (Plan 12): the address on one line with Directions,
   and today's hours with the week one tap away. The address is cut with an
   ellipsis (its full text is in title and in Find us) and Directions never
   wraps off the end of it. */
.identity .vfacts{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:8px;
  font-size:14px;color:var(--fg-dim)}
.identity .vfacts li{display:flex;gap:8px;align-items:flex-start;min-width:0}
.identity .vfacts svg{flex:none;width:15px;height:15px;margin-top:3px}
.identity .vfacts a{color:var(--accent-text);font-weight:600;text-decoration:none;white-space:nowrap}
.identity .vfacts a:hover{text-decoration:underline}
.identity .vaddr{align-items:center}
.identity .vaddr svg{margin-top:0}
.identity .vaddr-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.identity .vhours > div,.identity .vhours > span{flex:1;min-width:0}
.identity .vhours .open{color:var(--ok);font-weight:600}
.identity .vhours .shut{font-weight:600}
.identity .vweek{display:inline}
.identity .vweek summary{display:inline;white-space:nowrap;cursor:pointer;color:var(--accent-text);font-weight:600;list-style:none}
.identity .vweek summary::-webkit-details-marker{display:none}
.identity .vweek summary::after{content:"";display:inline-block;width:6px;height:6px;margin:0 0 2px 6px;
  border:solid currentColor;border-width:0 1.6px 1.6px 0;transform:rotate(45deg);transition:transform .15s}
.identity .vweek[open] summary::after{transform:rotate(-135deg);margin-bottom:-2px}
.identity .vweek .hours-week{margin-top:8px}

/* The About card: the venue's photos on top, swiping through, and the
   description underneath in the page's own colours. Nothing is written over a
   photo, so every one of them shows in full (Plan 13). */
.identity .aboutcard{position:relative;margin:18px 0 0;border-radius:16px;overflow:hidden;
  color:var(--fg);background:var(--surface);border:1px solid var(--line)}
.identity .aboutcard .slides{position:relative;display:flex;aspect-ratio:16/10;overflow-x:auto;
  scroll-snap-type:x mandatory;scrollbar-width:none}
.identity .aboutcard .slides::-webkit-scrollbar{display:none}
.identity .aboutcard .slide{position:relative;display:block;flex:0 0 100%;scroll-snap-align:start}
.identity .aboutcard img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.identity .aboutcard .slidenav{position:absolute;top:10px;right:10px;z-index:2;display:flex;align-items:center;gap:2px;
  border-radius:999px;background:rgba(20,12,30,.72);color:#fff;font-size:12.5px;font-weight:600;line-height:1}
.identity .aboutcard .slidenav[hidden]{display:none}
.identity .aboutcard .slidecount{padding:7px 10px}
.identity .aboutcard .slidenav button{display:none;width:32px;height:32px;min-width:0;min-height:0;margin:0;padding:0;border:0;
  border-radius:50%;background:transparent;color:inherit;font-size:20px;line-height:1;cursor:pointer;box-shadow:none}
.identity .aboutcard .slidenav button:disabled{opacity:.35;cursor:default}
@media (hover:hover){.identity .aboutcard .slidenav button{display:grid;place-items:center}}
.identity .aboutcard .txt{display:grid;gap:8px;padding:16px 18px 18px}
.identity .aboutcard .abt-label{margin:0;font-size:11.5px;font-weight:700;letter-spacing:.1em;
  text-transform:uppercase;color:var(--fg-dim)}
.identity .aboutcard .slogan{margin:0;font-family:"Instrument Serif","Songti SC","Noto Serif CJK SC",Georgia,serif;
  font-size:23px;line-height:1.15}
.identity .aboutcard .body{margin:0;font-size:14px;line-height:1.5;color:var(--fg-dim)}
@media(min-width:768px){
  .identity .aboutcard .slogan{font-size:26px}
  .identity .aboutcard .body{font-size:14.5px}
}

/* Menu pictures: a strip that swipes sideways and snaps picture by picture,
   each one opening the full image. With no pictures but a menu file or link,
   .menutile is one plain row that opens it. */
.identity .menustrip{margin:20px 0 0}
.identity .menustrip .mh{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin:0 0 8px}
.identity .menustrip h2{margin:0;font-size:12px;font-weight:700;letter-spacing:.08em;
  text-transform:uppercase;color:var(--fg-dim)}
.identity .menustrip .mh a{font-size:14px;font-weight:600;color:var(--accent-text)}
.identity .menustrip .pages{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;
  padding-bottom:6px;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
.identity .menustrip .pages a{flex:none;scroll-snap-align:start;border-radius:12px;overflow:hidden;
  border:1px solid var(--line);background:var(--surface);box-shadow:var(--shadow)}
.identity .menustrip .pages img{display:block;height:150px;width:auto;max-width:none}
@media(min-width:768px){
  .identity .menustrip .pages img{height:180px}
}
.identity .menutile{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:20px 0 0;
  padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:var(--surface);
  box-shadow:var(--shadow);text-decoration:none}
.identity .menutile .mt-k{font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--fg-dim)}
.identity .menutile .mt-go{display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:600;color:var(--accent-text)}
.identity .menutile svg{width:14px;height:14px}

/* Menu pictures on the admin Photos page: the thumbnails in a row, each with
   its own Remove button. */
/* The full-screen picture viewer, for the slider and the menu pictures. */
html:has(.lightbox[open]){overflow:hidden}
.lightbox{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;
  background:rgba(14,9,22,.97);color:#fff;overflow:hidden}
.lightbox[open]{display:flex;flex-direction:column}
.lightbox::backdrop{background:rgba(14,9,22,.97)}
.lb-bar{flex:none;display:flex;align-items:center;gap:6px;padding:8px 12px}
.lb-bar button{display:grid;place-items:center;width:44px;height:44px;min-width:0;min-height:0;margin:0;padding:0;border:0;
  border-radius:50%;background:rgba(255,255,255,.12);color:#fff;font-size:24px;line-height:1;cursor:pointer;box-shadow:none}
.lb-bar button:disabled{opacity:.35;cursor:default}
.lb-bar button[hidden]{display:none}
.lb-count{min-width:52px;font-size:14px;font-weight:600;text-align:center}
.lb-bar .lb-close{margin-left:auto}
.lb-rail{flex:1;min-height:0;display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
.lb-rail::-webkit-scrollbar{display:none}
.lb-page{flex:0 0 100%;min-width:0;display:flex;align-items:center;justify-content:center;
  padding:0 8px 12px;scroll-snap-align:start}
.lb-page img{display:block;max-width:100%;max-height:100%;object-fit:contain}

.menuphoto-admin{list-style:none;display:flex;flex-wrap:wrap;gap:12px;margin:0 0 14px;padding:0}
.menuphoto-admin li{display:grid;gap:6px;justify-items:start}
.menuphoto-admin .thumb{height:96px;width:auto;margin:0}

/* "Find us" — the disclosure that carries what the venue page's old single
   .about block used to bundle with the description (the "Before you visit"
   fold is gone: hours and the menu live in .identity now, Instagram moved
   in here). Reuses the .about/.infolist
   treatment already proven on this page (same chevron, same colours) —
   deliberately NOT the on-band tokens, since these now sit on the page
   ground rather than the (retired, for this page) band. */
.about .find-us-list{list-style:none;margin:8px 0 0;padding:0;
  font-size:14px;color:var(--fg-dim);display:flex;flex-direction:column;gap:6px}
.about .find-us-list a{color:inherit}
.about .find-us-list li{display:inline-flex;align-items:center;gap:6px}
.about .find-us-list svg{flex:0 0 auto;width:14px;height:14px}

/* The booking-flow progress header — "Date & time / Extras / Your details /
   Confirmation" — sits at the top of the booking card on step-date.php,
   step-extras.php and step-details.php. Distinct from .stepnav
   (includes/diner-nav.php's back/home bar, pinned by NavAndReviewsTest):
   that is navigation, this is status, and nothing here reuses .stepnav,
   .step or .k so both can appear on the same page without colliding. */
.booksteps{display:flex;align-items:center;gap:6px;margin:0 0 20px;padding:0;
  list-style:none;flex-wrap:wrap}
.booksteps li{display:flex;align-items:center;gap:7px;font-size:12.5px;
  font-weight:600;color:var(--fg-dim)}
.booksteps .num{display:flex;align-items:center;justify-content:center;
  width:22px;height:22px;border-radius:50%;border:1px solid var(--line-strong);
  font-size:12px;font-weight:700;flex:0 0 auto;background:var(--surface)}
.booksteps li[aria-current="step"]{color:var(--fg)}
.booksteps li[aria-current="step"] .num{background:var(--fg);border-color:var(--fg);color:var(--ink-2)}
.booksteps li.done .num{background:var(--ok-bg);border-color:var(--ok);color:var(--ok)}
.booksteps .sep{width:16px;height:1px;background:var(--line);flex:0 0 16px}
@media(max-width:479px){
  .booksteps{gap:4px}
  .booksteps li span:not(.num){display:none}
  .booksteps li[aria-current="step"] span:not(.num){display:inline}
  .booksteps .sep{width:8px;flex-basis:8px}
}

/* ============================================================================
   Staff Phase 4/5 revamp: the pieces new to the day view that live below the
   shared table rules (the Private Rooms on it, the in-page guest search).
   Appended rather than folded into the sections above so this stays a single
   mergeable block.
   ============================================================================ */

/* ============================================================================
   The service board (public/staff/index.php, rows.php): the header, one card
   per sitting, one state and one column of same-size buttons per row, and the
   panel behind the "..." on a row.

   Everything here is scoped to #svc, an id, on purpose. The light identity (a
   d'sini admin looking at a venue's board) restyles EVERY <button> and .btn
   through html[data-scheme="light"] button (padding 14px 22px, 15px text, a
   filled hover) and every link through html[data-scheme="light"] a:not(...)
   -- specificities a plain class cannot beat, which is why the board's buttons
   were oversized there and went to a red blob on hover. An id outranks any
   number of classes, so .bdbtn below states every property it cares about
   and wins in BOTH schemes (light for a d'sini admin, dark for a venue's own
   staff), without forcing anything. The base button rule's 20px top margin is
   reset the same way.
   ============================================================================ */
@media (min-width:920px){
  .wrap:has(#svc){max-width:1180px}
}

/* Buttons: one class, four looks. --b-* carry the look so the resting and hover
   rules are written once. Filled variants darken on hover; plain and warn tint. */
#svc .bdbtn{--b-bg:transparent;--b-fg:var(--fg);--b-bd:var(--line-strong);--b-hover-bg:var(--accent-wash);
  box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:6px;
  min-height:38px;margin:0;padding:0 14px;border:1px solid var(--b-bd);border-radius:9px;
  background:var(--b-bg);color:var(--b-fg);font:inherit;font-size:13.5px;font-weight:600;
  line-height:1.2;letter-spacing:0;text-transform:none;text-decoration:none;white-space:nowrap;
  box-shadow:none;transform:none;filter:none;cursor:pointer;
  transition:background .15s,border-color .15s,color .15s}
#svc .bdbtn:hover{background:var(--b-hover-bg);transform:none;box-shadow:none}
#svc .bdbtn:active{transform:none;box-shadow:none}
#svc .bdbtn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
/* Seat. */
#svc .bdbtn-ok{--b-bg:var(--ok);--b-fg:var(--on-accent);--b-bd:var(--ok);--b-hover-bg:var(--ok)}
#svc .bdbtn-ok:hover{filter:brightness(.92)}
/* Deposit received, and Add a booking: the accent, the one colour that means
   "press this" on both identities. */
#svc .bdbtn-accent,#svc .bdbtn-add{--b-bg:var(--accent);--b-fg:var(--on-accent);--b-bd:var(--accent);--b-hover-bg:var(--accent-hover)}
#svc .bdbtn-accent:hover,#svc .bdbtn-add:hover{border-color:var(--accent-hover)}
/* No-show, Cancel: outlined, in the warning colour, so the destructive pair
   reads as such and never as the loudest thing in the row. */
#svc .bdbtn-warn{--b-fg:var(--clay-text);--b-bd:var(--clay);--b-hover-bg:color-mix(in srgb,var(--clay) 12%,transparent)}
#svc .bdbtn-plain:hover{border-color:var(--accent)}
#svc .bdbtn[disabled]{opacity:.55;cursor:progress}
@media(pointer:coarse){
  #svc .bdbtn{min-height:44px}
}

/* The header: the title, the day bar, the guest search and Add a booking. */
#svc .bdhead{align-items:flex-end;gap:14px 20px}
#svc .bdtools{display:flex;flex-wrap:wrap;align-items:center;gap:10px 12px}
#svc .bdtools .pollstamp{margin:0;flex:1 0 100%;order:9}
#svc .bdday{display:flex;flex-wrap:wrap;align-items:center;gap:2px;padding:3px;
  background:var(--surface);border:1px solid var(--line);border-radius:10px}
#svc .bdday-i{padding:6px 10px;border-radius:7px;font-size:13.5px;line-height:1.3;
  color:var(--fg);text-decoration:none;white-space:nowrap}
#svc .bdday-i:hover{background:var(--accent-wash)}
#svc .bdday-i[aria-current="date"]{background:var(--fg);color:var(--ink);font-weight:600}
#svc .daynavjump{align-items:center;gap:6px;margin:0 2px 0 4px}
#svc .daynavjump label{display:inline;margin:0;font-size:12.5px;font-weight:500;letter-spacing:0;
  text-transform:none;color:var(--fg-dim)}
#svc .daynavjump input{width:auto;min-height:0;padding:5px 8px;border-radius:7px;font-size:13px}
#svc .rowsearch{margin:0}
#svc .rowsearch input{width:200px;max-width:100%;padding:8px 12px;border-radius:9px;font-size:13.5px}

/* One card per sitting, above the list. The bar is seated guests, then the
   rest of the booked seats. "Next" marks the sitting to be working on now. */
#svc .sitcards{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px;margin:0 0 14px}
#svc .sitcard{display:grid;align-content:start;gap:7px;padding:12px 14px;
  background:var(--surface);border:1px solid var(--line);border-radius:12px;
  color:var(--fg);text-decoration:none}
#svc a.sitcard:hover{border-color:var(--accent)}
#svc .sitcard.now{border-color:var(--fg);box-shadow:inset 0 0 0 1px var(--fg)}
#svc .sitcard .top{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
#svc .sitcard .top b{font-size:15px}
#svc .sitcard .badge{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
  background:var(--fg);color:var(--ink);border-radius:5px;padding:1px 6px}
#svc .sitcard .bar{display:flex;height:8px;border-radius:99px;background:var(--line);overflow:hidden}
#svc .sitcard .bar i{display:block;height:100%}
#svc .sitcard .bar .s{background:var(--ok)}
#svc .sitcard .bar .c{background:var(--line-strong)}
#svc .sitcard .fig{font-size:13px;color:var(--fg-dim)}
#svc .sitcard .fig b{color:var(--fg)}
#svc .sitcard .warnline{font-size:12.5px;font-weight:600;color:var(--warn)}
#svc .prnote{margin:0 0 6px;font-size:12px;color:var(--fg-dim)}
/* The jump from a card lands on the sitting's heading, clear of the top edge. */
#svc .sitgroup{scroll-margin-top:12px}
/* A card is a filter: the one that is on says so, and All sittings goes back. */
#svc .sitcard.on{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
#svc .sitcard.all{align-content:center}
/* The four sections (Plan 10): Still to come, Here now, and the folds. A sitting
   sits inside Still to come as a sub-heading row. */
#svc .bdsec{margin:0 0 26px}
#svc .bdsec > h2{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;margin:0 0 8px;font-size:18px}
#svc .bdsec > h2 .c{font-size:13px;font-weight:400;color:var(--fg-dim)}
#svc .bdsec > h2 .bdneeds{font-size:12px;font-weight:700;letter-spacing:.02em}
#svc tr.bdsub th{padding:16px 10px 6px;text-align:left;font-weight:400;border-top:1px solid var(--line);scroll-margin-top:12px}
#svc tr.bdsub:first-child th{border-top:0;padding-top:4px}
#svc tr.bdsub .t{margin-right:12px;font-size:14px;font-weight:600;letter-spacing:.12em;text-transform:uppercase}
#svc tr.bdsub .c{margin-right:12px;font-size:12px;color:var(--fg-dim)}
#svc .bdfold.bdsec{margin:0 0 14px}
@media(max-width:720px){#svc tr.bdsub,#svc tr.bdsub th{display:block;width:100%}#svc table.bk tr.bdsub{border:0;padding:0;margin:8px 0 4px}}

/* A row: a strip of the state's colour on its left edge, matching the words in
   the state column. Set on the first cell, because a <tr> takes no box-shadow
   under border-collapse. On a phone the row is a card and the strip is the
   card's own left border instead (see the max-width:720px block below). */
#svc tr.st-expected{--strip:var(--line-strong)}
#svc tr.st-seated{--strip:var(--ok)}
#svc tr.st-late,#svc tr.st-deposit_due,#svc tr.st-deposit_sent{--strip:var(--warn)}
#svc tr.st-notarrived{--strip:var(--clay-text)}
#svc tr.st-left{--strip:var(--line)}
#svc tr.st-cancelled,#svc tr.st-no_show{--strip:var(--clay)}
#svc table.bk tr[data-state] > td:first-child{box-shadow:inset 4px 0 0 0 var(--strip,transparent);padding-left:16px}
#svc table.bk td.pax{font-size:20px;font-weight:600;text-align:center}
#svc table.bk td.act{width:236px}
/* The state, as a tinted pill: the words are the state, the colour only echoes it. */
#svc td.st .chip{display:inline-flex;align-items:center;gap:6px;border:0;border-radius:99px;
  padding:3px 10px;font-size:12.5px;letter-spacing:0;text-transform:none;
  background:color-mix(in srgb,currentColor 13%,transparent)}
#svc td.st .chip::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor;flex:0 0 auto}
#svc td.st .chip.confirmed{color:var(--fg)}
#svc td.st .chip.late,#svc td.st .chip.deposit{color:var(--warn);margin-left:0}
#svc td.st .chip.notarrived{color:var(--clay-text)}
#svc td.st .chip.seated{color:var(--ok)}
#svc td.st .chip.departed{color:var(--fg-dim)}
#svc td.st .bdsub{display:block;margin-top:4px;font-size:12px;color:var(--fg-dim)}

/* The actions column: the row's own buttons, one size, then the "..." that
   opens the panel. */
#svc .bdacts{display:flex;align-items:center;justify-content:flex-end;gap:6px;margin:0}
#svc .bdacts > .bdbtn{flex:1 1 0;min-width:0;padding:0 10px}
#svc .bdacts > .bdmenu{flex:0 0 auto}
#svc .rowmenu summary{width:40px;height:38px;border:1px solid var(--line-strong);border-radius:9px;
  background:none;color:var(--fg-dim)}
#svc .rowmenu summary:hover,#svc .rowmenu[open] summary{border-color:var(--accent);color:var(--accent)}
/* The panel: the booking's details above every remaining action, in words. */
#svc .bdpanel{position:absolute;right:0;top:calc(100% + 6px);z-index:20;display:block;
  width:min(340px,86vw);padding:16px 16px 14px;background:var(--surface);
  border:1px solid var(--line-strong);border-radius:14px;
  box-shadow:0 20px 40px -20px rgba(0,0,0,.55)}
#svc .bdp-when{margin:0;font-size:12.5px;color:var(--fg-dim)}
#svc .bdp-name{margin:2px 0 10px;font-size:19px;font-weight:600;letter-spacing:-.01em;color:var(--fg)}
#svc .bdp-kv{display:grid;grid-template-columns:78px minmax(0,1fr);gap:5px 10px;margin:0 0 12px;font-size:13.5px}
#svc .bdp-kv dt{color:var(--fg-dim)}
#svc .bdp-kv dd{margin:0;overflow-wrap:anywhere}
#svc .bdp-acts{display:grid;gap:7px;padding-top:12px;border-top:1px solid var(--line)}
#svc .bdp-acts .bdbtn{justify-content:flex-start;width:100%;min-height:40px}
#svc .bdp-hint{margin:10px 0 0;font-size:12.5px;color:var(--fg-dim)}

/* Cancelled, no-show and left bookings, folded away under one line. */
#svc .bdfold{margin:6px 0 0}
#svc .bdfold > summary{display:flex;justify-content:space-between;align-items:center;gap:10px;
  list-style:none;cursor:pointer;padding:10px 4px;font-size:13px;color:var(--fg-dim);
  border-bottom:1px solid var(--line)}
#svc .bdfold > summary::-webkit-details-marker{display:none}
#svc .bdfold-a{color:var(--accent-text);font-weight:600}
#svc .bdfold-hide{display:none}
#svc .bdfold[open] .bdfold-hide{display:inline}
#svc .bdfold[open] .bdfold-show{display:none}
#svc .bdfold table.bk{margin-top:0}
#svc .bdfold thead{display:none}

/* The Restore band after a cancel, a no-show or a Mark left: short, and a
   little raised, like a toast, with the one button that brings the booking back. */
#svc .bdband{align-items:center;margin:0 0 14px;padding:9px 13px;font-size:13.5px;
  box-shadow:0 10px 26px -16px rgba(0,0,0,.55)}

/* A tablet beside the 212px rail leaves 550px and up for the table, and the
   host stand runs on one: tighten the actions column and let the state wrap
   rather than push the row past the edge. */
@media(min-width:900px) and (max-width:1199px){
  #svc table.bk td.act{width:190px}
  #svc .bdacts > .bdbtn{padding:0 6px;font-size:13px}
  #svc td.st .chip{white-space:normal}
  #svc table.bk td.pax{font-size:18px}
}
@media(max-width:720px){
  #svc .bdhead{align-items:stretch}
  #svc .bdtools{flex:1 1 100%}
  #svc .rowsearch{flex:1 1 100%}
  #svc .rowsearch input{width:100%}
  #svc .bdbtn-add{flex:1 1 100%}
  #svc table.bk td.act{width:auto}
  #svc table.bk tr[data-state]{border-left:4px solid var(--strip,var(--line))}
  #svc table.bk tr[data-state] > td:first-child{box-shadow:none;padding-left:0}
  #svc .bdacts{justify-content:flex-start}
  #svc .bdacts > .bdbtn{flex:1 1 0}
  #svc .bdpanel{position:static;width:auto;margin-top:8px;box-shadow:none}
  #svc .bdmenu{flex:0 0 auto}
}

/* Private Rooms on the day view (migration 042). Two pieces, both reusing
   .chip, the board's buttons and .hint as they are. Named pr*, never "room" (which means
   the dining room's seat board here) and never .privaterooms (the guest
   side's own class, which shares this stylesheet's page).

   1. The requests waiting for an answer (staff/private-room-panel.php): above
      the metric tiles, only while there is one, each a compact card with its
      Accept and Decline beside it (under it on a phone).
   2. The compact grid (staff/private-room-grid.php): one line per room, its
      sittings inline after it, between the filter chips and the list. */
.prwaiting{margin-bottom:18px}
.prwaiting h2{margin:0 0 10px;font-size:15px}
.prcount{display:inline-block;min-width:22px;padding:1px 7px;border-radius:999px;
  background:var(--accent);color:var(--on-accent);font-size:12px;font-weight:700;
  text-align:center;vertical-align:1px}
.prrequest{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;
  gap:8px 16px;margin:0 0 8px;padding:10px 14px;background:var(--ink-2);
  border:1px solid var(--line);border-left:3px solid var(--accent);border-radius:var(--radius)}
.prrequest .prbody{flex:1 1 320px;min-width:0}
.prrequest p{margin:0 0 2px}
.prrequest .prmeta{color:var(--fg-dim);font-size:13px}
.prrequest .prwho .prmeta{margin-left:6px}
.prrequest .prnotes{font-size:14px}
.prrequest .bdacts{margin:0;flex:0 0 auto}

.prgrid{margin:0 0 12px}
.prgrid h2{margin:0 0 3px;font-size:11px;line-height:1.3;letter-spacing:.12em;
  text-transform:uppercase;color:var(--fg-dim)}
.prrooms,.prslots{list-style:none;margin:0;padding:0}
.prroom{display:grid;grid-template-columns:minmax(150px,210px) 1fr;align-items:center;
  gap:0 14px;padding:4px 0;line-height:1.25;border-top:1px solid var(--line)}
.prroom:last-child{border-bottom:1px solid var(--line)}
.prname{grid-column:1;font-weight:600;font-size:13.5px}
.prcap{grid-column:1;font-size:11.5px;color:var(--fg-dim)}
.prslots,.prnone{grid-column:2;grid-row:1 / span 2}
.prslots{display:flex;flex-wrap:wrap;align-items:center;gap:2px 18px}
.prslots li{display:inline-flex;flex-wrap:wrap;align-items:center;gap:0 8px;font-size:13px}
.prslots .chip{padding:1px 7px}
.prsit{color:var(--fg-dim)}
.prheld,.prnone{font-size:12px;color:var(--fg-dim)}
@media(max-width:640px){
  .prroom{grid-template-columns:1fr}
  .prslots,.prnone{grid-column:1;grid-row:auto;margin-top:3px}
}

/* The sechead's own guest search (data-rowsearch, assets/staff.js) -- an
   ordinary field, sized to sit beside the date nav rather than stretch the
   full header width. */
.rowsearch{margin-top:10px}
.rowsearch input{max-width:260px}
/* A row the search has filtered out -- a class rather than removing the row,
   so a poll swap's own re-render (which rebuilds the whole list from scratch)
   just needs this re-applied, not the row re-found and re-hidden by hand. */
tr.searchhidden{display:none}

/* prep.php's print button had no .printbtn class before this -- the
   unconditional ".printbtn{display:none}" print rule a few sections above
   never saw it, so it was the one print button in this app that printed
   itself. This is the fix, paired with .printsheet below for the sheet's own
   print layout (help.php's own pages use .helppage for the same job; prep.php
   gets a lighter-weight twin rather than inheriting the glossary/howto/
   timeline rules that page carries and prep.php has no use for). */
@media print{
  .printsheet{max-width:none;width:100%;padding:0;margin-block:0}
}

/* ==========================================================================
   Booking-flow UX review, 2026-09-22
   One block for the flow-level fixes below. Colour, type and branding are
   approved and frozen — every rule here is hierarchy, size, position or
   structure only, and takes its value from the existing token set.
   ========================================================================== */

/* --- Sparse venue page -----------------------------------------------------
   A venue with no photo, no description and no about-block has nothing for
   .venuegrid's left column beyond .identity — the two-column grid then
   reads as a mostly-empty half beside a tall sticky booking card (bahtera
   was the case found in review). .sparse (emitted by book/step-date.php)
   collapses the grid to one column for exactly this case; the standard
   layout for venues that do fill it is untouched above. The card keeps its
   ordinary column width via a cap rather than stretching to 1180px. */
@media(min-width:768px){
  .venuepage.sparse .venuegrid{display:block;max-width:640px;margin:0 auto}
  .venuepage.sparse .venuegrid > * + *{margin-top:28px}
}

/* --- The details/extras ticket on a phone ----------------------------------
   .rescard above the form is right — it is the diner's context — but
   un-collapsed it is 5-6 rows tall, which puts step-details' first field
   under the fold on a 375px screen before anything has been typed. Below
   the sidebar breakpoint the card becomes a native <details>: a one-line
   summary with a chevron, tapping through to the full rows. At >=1000px
   the summary is hidden outright (below) and the inline script on
   includes/booking-card.php forces the native `open` state on load and on
   every resize that crosses 1000px — see that script's own comment for
   why a CSS-only always-open state isn't possible here. */
@media(max-width:999px){
  .cardopen>summary{list-style:none;display:flex;justify-content:space-between;align-items:center;
    gap:14px;padding:12px 16px;cursor:pointer}
  .cardopen>summary::-webkit-details-marker{display:none}
  .cardopen .cardtitle{font-size:12px;letter-spacing:.08em;text-transform:uppercase;opacity:.85;font-weight:700}
  .cardopen .cardheadline{font-size:14px;font-weight:600;text-align:right}
  .cardopen .cardchev{flex:0 0 auto;width:14px;height:14px;opacity:.6;
    transition:transform .15s}
  .cardopen[open] .cardchev{transform:rotate(180deg)}
  .cardopen .rescard{margin-top:0}
}
@media(min-width:1000px){
  /* .cardopen itself takes the sidebar placement (the sticky rule above)
     and stays a real box — see that rule's own comment for why dissolving
     it with display:contents does not actually work here. The summary is
     a phone-only affordance for a card that is always open at this width,
     so it is hidden in one shot rather than picked apart row by row. */
  .cardopen > summary{display:none}
}

/* --- One convention for the flow's primary action --------------------------
   "Check availability" on step-date was full-width inside .cta while
   "Continue" on step-extras and "Confirm booking" on step-details were
   intrinsic-width and left-aligned — three steps, two kinds of main
   button. Full-width on all three below the sidebar breakpoint (where the
   column is narrow and the button is the page's one job). From 1000px up
   the layout is wide enough that .narrowform's own 460px cap already gives
   a compact button a sane edge; the width rule is withdrawn there so a
   compact button keeps its intrinsic size in the wide layout. */
@media(max-width:999px){
  .book form button[type="submit"]{width:100%}
}

/* ---- The front page (book/index.php) --------------------------------------
   Decision 2026-09-24: "/" always renders, even with one venue live, and is
   d'sini's own page. Decision 2026-09-25: restaurants and shops in groups, a
   field of spots behind the top, the next free times on every card, and a full
   footer. Its header carries the product's lockup (the one page whose subject
   is d'sini, not a restaurant), the venues sit on the light diner ground, and
   the "For restaurants & shops" band at the foot switches to the aubergine the
   staff screen is drawn in — the side of d'sini a business's team works on.
   Boards: design "Final front page", desktop and phone. */
.fp-wrap{width:100%;max-width:1200px;margin:0 auto;padding-inline:20px}
@media(min-width:700px){.fp-wrap{padding-inline:32px}}
@media(min-width:1000px){.fp-wrap{padding-inline:40px}}

.fp-top{position:relative;z-index:1;background:var(--ink-2);border-bottom:1px solid var(--line)}
.fp-top .fp-wrap{min-height:64px;display:flex;align-items:center;justify-content:space-between;gap:16px}
@media(min-width:700px){.fp-top .fp-wrap{min-height:72px}}
.fp-lockup{display:flex;align-items:center;gap:9px;margin:0;font-weight:700;font-size:24px;
  letter-spacing:-.045em;color:var(--fg)}
.fp-nav{display:flex;align-items:center;gap:24px;font-size:13.5px}
/* The two header links live in the footer too, so a phone header is the lockup
   and the language switch only, as drawn. */
.fp-toplink{display:none;font-size:15px;font-weight:600}
@media(min-width:700px){.fp-toplink{display:inline-flex;align-items:center;min-height:44px}}
.fp-lang{margin:0;color:var(--fg-dim);white-space:nowrap}
.fp-lang [aria-current]{color:var(--fg);font-weight:600}
/* The switcher's links are 13px text, which is a small thing to hit with a
   thumb. Padding and an equal negative margin give each 44px of target without
   moving anything. */
.fp-lang a,.ff-lang a{display:inline-block;padding:14px 5px;margin:-14px -5px}

.frontpage{display:flex;flex-direction:column}

/* The intro, under the places: the field of spots behind, the count, the headline
   and the three promises. */
.fp-hero{position:relative;overflow:hidden}
.fp-hero-in{position:relative;display:grid;gap:24px;padding-block:120px 40px}
@media(min-width:860px){.fp-hero-in{align-items:center;padding-block:64px 72px}}
.fp-live{display:flex;align-items:center;gap:8px;margin:0;font-size:12px;font-weight:700;letter-spacing:.14em;
  text-transform:uppercase;color:var(--accent-text)}
.fp-live i{flex:none;width:8px;height:8px;border-radius:50%;background:#2F9E6B}
/* The product speaking, so bold sans rather than the restaurant's serif
   (decision 2026-08-21, product voice is bold sans). It is below the places now
   (Plan 12), an h2 under the page's hidden h1. */
.fp-hero-text h2{margin:12px 0 0;max-width:540px;font-family:"Instrument Sans","Avenir Next",-apple-system,sans-serif;
  font-size:32px;line-height:1.04;letter-spacing:-.03em;font-weight:700;text-transform:none;
  text-wrap:balance;color:var(--fg)}
@media(min-width:860px){.fp-hero-text h2{margin-top:14px;font-size:48px;line-height:1.02}}
.fp-lede{margin:14px 0 0;font-size:16px;line-height:1.5;color:var(--fg-dim);max-width:520px;text-wrap:pretty}
@media(min-width:860px){.fp-lede{margin-top:18px;font-size:18px}}
.fp-promises{display:flex;flex-direction:column;gap:8px;margin:18px 0 0;padding:0;list-style:none;
  font-size:14px;font-weight:600}
@media(min-width:860px){.fp-promises{flex-direction:row;flex-wrap:wrap;gap:10px 22px;margin-top:22px}}
.fp-promises li{display:flex;align-items:center;gap:8px}
.fp-promises svg{flex:none;color:var(--ok)}

/* The field of spots, seen from above: outline is empty, faint navy is taken,
   lime is free, orange is being booked this second, and the d'sini mark is
   yours. The states are classes on the spans (public/assets/spots.js moves
   them). Faded by a mask so it is gone before it reaches the headline. Two
   grids, drawn by the server, because a phone shows fewer and smaller spots. */
.fp-fieldmask{position:absolute;inset:0;pointer-events:none;
  -webkit-mask-image:radial-gradient(ellipse 80% 42% at 82% 8%,#000 32%,transparent 78%);
  mask-image:radial-gradient(ellipse 80% 42% at 82% 8%,#000 32%,transparent 78%)}
@media(min-width:860px){
  .fp-fieldmask{-webkit-mask-image:radial-gradient(ellipse 56% 100% at 86% 34%,#000 38%,transparent 80%);
    mask-image:radial-gradient(ellipse 56% 100% at 86% 34%,#000 38%,transparent 80%)}
}
.fp-field{--spot-outline:#D9D0E6;position:absolute;display:grid;transform:rotate(-8deg);transform-origin:70% 30%}
.fp-field-sm{top:-70px;right:-46px;grid-template-columns:repeat(9,30px);gap:12px}
.fp-field-lg{display:none;top:-150px;right:-70px;grid-template-columns:repeat(11,56px);gap:22px}
@media(min-width:860px){.fp-field-sm{display:none}.fp-field-lg{display:grid}}
.fp-field span{display:block;box-sizing:border-box;aspect-ratio:1;border:1.5px solid var(--spot-outline);
  border-radius:34%;transition:background-color .6s ease,border-color .6s ease}
.fp-field .t{background:rgba(40,25,68,.10);border-color:transparent}
.fp-field .f{background:var(--mk-free,#D0F64B);border-color:transparent}
.fp-field .b{background:var(--mk-live,#FF4213);border-color:transparent}
.fp-field .y{border-color:transparent}
.fp-field svg{display:block;width:100%;height:100%}
.fp-field .pop{animation:fpSpotPop .5s cubic-bezier(.3,1.6,.5,1)}
@keyframes fpSpotPop{0%{transform:scale(1)}40%{transform:scale(1.18)}100%{transform:scale(1)}}
@media(prefers-reduced-motion:reduce){.fp-field span{transition:none;animation:none}}

/* Book again, above the places. */
.fp-again{display:flex;flex-direction:column;gap:12px;padding:18px;background:var(--ink-2);
  border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow)}
@media(min-width:860px){.fp-again{padding:22px}}
.fp-again > *{margin:0}
.fp-again-eyebrow{font-size:11.5px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--accent-text)}
.fp-again-who{display:flex;align-items:center;gap:14px}
.fp-again-shot{flex:none;width:56px;height:56px;border-radius:12px;overflow:hidden;background:var(--tint,var(--soft))}
.fp-again-shot img{display:block;width:100%;height:100%;object-fit:cover}
.fp-again h2{margin:0;font-family:"Instrument Serif","Songti SC","Noto Serif CJK SC",Georgia,serif;
  font-size:26px;font-weight:400;line-height:1.05;letter-spacing:0;text-transform:none;color:var(--fg)}
.fp-again-who p{margin:4px 0 0;font-size:13.5px;color:var(--fg-dim)}
.fp-again-go{display:flex;align-items:center;justify-content:center;gap:10px;min-height:48px;margin:0}
.fp-again-note{display:flex;flex-wrap:wrap;align-items:center;gap:0 6px;font-size:12.5px;color:var(--fg-dim)}
/* "Not you?" is a button, because it posts, drawn as the link it reads as. The
   selector carries enough weight to beat the light identity's button hover. */
.frontpage .fp-again-note button.fp-forget{margin:0;padding:0 4px;min-height:44px;background:none;border:0;
  border-radius:6px;box-shadow:none;transform:none;color:var(--accent-text);font:inherit;font-size:12.5px;
  font-weight:600;letter-spacing:0;text-transform:none;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.frontpage .fp-again-note button.fp-forget:hover{background:none;box-shadow:none;transform:none;color:var(--accent-hover)}

/* Ask d'sini (Plan 13): a round d'sini mark in the bottom-right corner opens
   a chat panel above it. On a phone the panel fills the screen. */
.ask-fab{position:fixed;right:20px;bottom:20px;z-index:60;display:flex;align-items:center;gap:8px;
  height:52px;margin:0;padding:0 20px 0 13px;border:0;border-radius:999px;
  background:#281944;color:#fff;font:inherit;font-size:15px;font-weight:600;letter-spacing:0;text-transform:none;
  box-shadow:0 6px 24px -6px rgba(40,25,68,.6);cursor:pointer;transition:transform .15s ease}
  /* Fixed navy with the words beside the mark, so it reads as a chat button
     and not as one more of the page's own spots of the mark. */
.ask-fab:hover{transform:translateY(-2px);background:#281944;color:#fff;box-shadow:0 10px 28px -8px rgba(40,25,68,.6)}
.ask-fab[hidden]{display:none}
.ask-fab svg{display:block;flex:none}
.fp-ask{position:fixed;right:20px;bottom:96px;z-index:61;display:flex;flex-direction:column;
  width:380px;max-width:calc(100vw - 40px);height:min(600px, calc(100vh - 120px));
  background:var(--ink-2);border:1px solid var(--line);border-radius:18px;
  box-shadow:0 18px 48px -12px rgba(40,25,68,.45);overflow:hidden}
.fp-ask[hidden]{display:none}
.fp-ask-head{display:flex;align-items:center;gap:10px;padding:12px 10px 12px 16px;border-bottom:1px solid var(--line)}
.fp-ask-head svg{flex:none}
.fp-ask h2{flex:1;margin:0;font-family:"Instrument Serif","Songti SC","Noto Serif CJK SC",Georgia,serif;
  font-size:24px;font-weight:400;line-height:1.05;letter-spacing:0;text-transform:none;color:var(--fg)}
.fp-ask .fp-ask-close{flex:none;width:40px;height:40px;min-height:0;margin:0;padding:0;border:0;border-radius:50%;
  background:none;box-shadow:none;transform:none;color:var(--fg-dim);font:inherit;font-size:26px;line-height:1;cursor:pointer}
.fp-ask .fp-ask-close:hover{background:var(--soft);color:var(--fg);transform:none;box-shadow:none}
.fp-ask-body{flex:1;display:flex;flex-direction:column;gap:10px;padding:16px;overflow-y:auto;overscroll-behavior:contain}
.fp-ask-log{display:flex;flex-direction:column;gap:10px;min-width:0}
.fp-ask-log:empty{display:none}
.fp-ask-msg{margin:0;max-width:88%;padding:10px 14px;border-radius:14px;font-size:15px;line-height:1.45;white-space:pre-wrap}
.fp-ask-msg.me{align-self:flex-end;background:var(--accent-wash);color:var(--fg)}
.fp-ask-msg.ai{align-self:flex-start;background:var(--ink);border:1px solid var(--line);color:var(--fg)}
.fp-ask-msg.wait{color:var(--fg-dim)}
.fp-ask-places{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;align-self:stretch;min-width:0}
.fp-ask-place{display:flex;align-items:center;gap:12px;padding:10px;border:1px solid var(--line);border-radius:12px;
  background:var(--ink);color:var(--fg);text-decoration:none}
.fp-ask-place:hover{border-color:var(--accent)}
.fp-ask-place img,.fp-ask-place .noimg{flex:none;width:48px;height:48px;border-radius:10px;object-fit:cover;background:var(--soft)}
.fp-ask-place > span:nth-child(2){flex:1;min-width:0}
.fp-ask-place b{display:block;font-size:15px}
.fp-ask-place small{display:block;font-size:12.5px;color:var(--fg-dim);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fp-ask-place .go{flex:none;font-size:13px;font-weight:600;color:var(--accent-text);white-space:nowrap}
.fp-ask-try{display:flex;flex-direction:column;align-items:flex-end;gap:8px;margin-top:auto}
.fp-ask-try[hidden]{display:none}
.fp-ask .fp-ask-chip{margin:0;min-height:40px;padding:0 14px;border:1px solid var(--accent);border-radius:999px;
  background:none;box-shadow:none;transform:none;color:var(--accent-text);font:inherit;font-size:13.5px;font-weight:600;
  letter-spacing:0;text-transform:none;cursor:pointer}
.fp-ask .fp-ask-chip:hover{background:var(--accent-wash);box-shadow:none;transform:none}
.fp-ask-form{display:flex;gap:8px;margin:0;padding:12px 12px 6px;border-top:1px solid var(--line)}
.fp-ask .fp-ask-form input{flex:1;min-width:0;height:46px;margin:0;padding:0 14px;font-size:16px}
.fp-ask-form .btn{flex:none;min-height:46px;margin:0}
.fp-ask-note{margin:0;padding:0 14px 12px;font-size:11.5px;color:var(--fg-dim)}
.fp-ask .fp-ask-reset{flex:none;margin:0;padding:0 6px;min-height:32px;background:none;border:0;box-shadow:none;transform:none;
  color:var(--accent-text);font:inherit;font-size:13px;font-weight:600;letter-spacing:0;text-transform:none;
  text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.fp-ask .fp-ask-reset[hidden]{display:none}
@media(max-width:600px){
  .ask-fab{right:16px;bottom:16px;height:48px;padding:0 16px 0 11px;font-size:14px}
  .fp-ask{inset:0;width:auto;max-width:none;height:auto;border:0;border-radius:0}
  html.ask-open,html.ask-open body{overflow:hidden}
  html.ask-open .ask-fab{display:none}
}

/* The listing. The page opens on it (Plan 12): Book again if there is one, then
   the search bar when there are three places or more, then each group as a
   heading with its count and its places. */
.fp-places{flex:1 0 auto;padding-top:20px;padding-bottom:56px}
@media(min-width:860px){.fp-places{padding-top:32px}}
/* Filtering hides places with the hidden attribute, which the display rules
   below would otherwise outvote. */
.fp-places [hidden]{display:none !important}
.fp-places > .fp-again{margin-bottom:28px}
@media(min-width:860px){.fp-places > .fp-again{max-width:560px}}
.fp-groups{display:grid;gap:32px}
@media(min-width:860px){.fp-groups{gap:36px}}
/* One of each: the two groups sit side by side rather than leave a page of
   empty space beside two lone cards. */
@media(min-width:860px){.fp-pair{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:start}}
.fp-group{display:flex;flex-direction:column;gap:14px;min-width:0}
.fp-ghead{display:flex;align-items:center;gap:10px}
.fp-ghead h2{margin:0;font-size:19px;font-weight:700;letter-spacing:0;text-transform:none;color:var(--fg)}
@media(min-width:860px){.fp-ghead h2{font-size:22px;letter-spacing:-.01em}}
.fp-count{padding:2px 10px;background:var(--soft);border-radius:999px;font-size:13px;font-weight:700;color:var(--fg)}

/* Search and the All / Restaurants / Shops switch. They stay under the top of
   the screen while the list scrolls. The bar is hidden until fp-filter.js shows
   it, since without the script it would do nothing. */
.fp-tools{position:sticky;top:0;z-index:2;display:grid;gap:10px;margin-bottom:20px;padding:10px 0;background:var(--ink)}
@media(min-width:700px){.fp-tools{grid-template-columns:minmax(0,420px) auto;justify-content:space-between;align-items:center}}
.fp-search{position:relative}
.fp-search svg{position:absolute;left:14px;top:50%;translate:0 -50%;color:var(--fg-dim);pointer-events:none}
.frontpage .fp-search input{width:100%;height:48px;margin:0;padding:0 14px 0 42px;font-size:16px;
  border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--fg)}
.fp-seg{display:flex;flex-wrap:wrap;gap:8px}
.frontpage .fp-seg button{margin:0;min-height:44px;padding:0 16px;border:1px solid var(--line);border-radius:999px;
  background:var(--surface);color:var(--fg);font:inherit;font-size:14px;font-weight:600;letter-spacing:0;
  text-transform:none;transform:none;box-shadow:none}
.frontpage .fp-seg button:hover{background:var(--surface);border-color:var(--accent);transform:none}
.frontpage .fp-seg button[aria-pressed="true"],.frontpage .fp-seg button[aria-pressed="true"]:hover{
  background:var(--fg);border-color:var(--fg);color:var(--surface)}
.fp-nomatch{margin:0 0 20px;padding:24px 16px;text-align:center;font-size:15px;color:var(--fg-dim)}

/* The "Next free" chips, on every card and on the Book again card. Each is a
   link, at the 44px a thumb needs, and sits over the card's own link. */
.fp-next{display:flex;flex-direction:column;gap:6px;position:relative;z-index:1}
.fp-next-h{margin:0;font-size:12px;font-weight:600;color:var(--fg-dim)}
.fp-chips{display:flex;flex-wrap:wrap;gap:8px}
.fp-chip{display:inline-flex;align-items:center;min-height:44px;padding:0 13px;background:var(--ink-2);
  border:1px solid var(--line);border-radius:999px;font-size:14px;font-weight:600;text-decoration:none;
  transition:border-color .15s,background-color .15s}
.fp-chip:hover{border-color:var(--accent);background:var(--accent-wash)}

/* No venue live. */
.fp-empty{display:flex;gap:14px;align-items:flex-start;max-width:680px;margin:0;background:var(--ink-2);
  border:1px solid var(--line);border-radius:14px;padding:20px 22px;box-shadow:var(--shadow);
  font-size:15px;line-height:1.55;color:var(--fg-dim)}
.fp-empty svg{flex:none;margin-top:1px}

/* One or two places in a group: a card each. One column on a phone, and from
   there as many 290px-and-wider columns as fit, so a place on its own is one
   card's width, not a banner. Restaurants and shops are the same card. */
.fp-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,290px),1fr));gap:16px}
@media(min-width:700px){.fp-grid{gap:20px}}
.fp-card{position:relative;display:flex;flex-direction:column;min-width:0;overflow:hidden;background:var(--surface);
  border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);transition:transform .15s,border-color .15s}
.fp-card:hover{transform:translateY(-2px);border-color:var(--line-strong)}
.fp-tint-fnb{--tint:var(--soft)}
.fp-tint-shop{--tint:#E3EEE7}
.fp-cbody{display:flex;flex-direction:column;gap:6px;flex:1 1 auto;padding:18px}
.fp-cbody > *{margin:0}
.fp-ceyebrow,.fp-cbrand,.fp-cfacts span,.fp-rcuisine,.fp-raddr,.fp-rhours{min-width:0;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap}
.fp-ceyebrow{font-size:11.5px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--accent-text)}
.fp-cbrand{font-size:12.5px;font-weight:600;color:var(--brass-ink)}
.fp-cname{font-family:"Instrument Serif","Songti SC","Noto Serif CJK SC",Georgia,serif;font-size:30px;font-weight:400;
  line-height:1.05;letter-spacing:0;text-transform:none;text-wrap:balance;color:var(--fg)}
/* The address is one line, cut with an ellipsis, and the whole of it is in the
   title. Hours are one line too. */
.fp-cfacts{list-style:none;margin:2px 0 0;padding:0;display:grid;gap:4px;font-size:13.5px;line-height:1.4;color:var(--fg-dim)}
.fp-cfacts li{display:flex;align-items:flex-start;gap:8px;min-width:0}
.fp-cfacts svg{flex:none;margin-top:2px}
.fp-open{font-weight:600;color:var(--ok)}
.fp-cphoto{margin:8px 0 4px;aspect-ratio:16/9;overflow:hidden;border-radius:12px;background:var(--tint,var(--soft))}
.fp-cphoto img{display:block;width:100%;height:100%;object-fit:cover}
/* The Book button is the card's one link. It is a .btn, whose hover lifts it
   with a transform, and a transform would make the button the box its own
   stretched ::after is measured from: hovering anywhere on the card would
   shrink the link to the button and un-hover it. So it stays put. */
.fp-card .fp-cgo,.fp-card .fp-cgo:hover,.fp-card .fp-cgo:active{transform:none}
.fp-card .fp-cgo{display:flex;align-items:center;justify-content:center;gap:10px;min-height:48px;margin-top:auto}
.fp-card .fp-next{margin-top:4px;margin-bottom:6px}
/* The whole card is this one link: its ::after is stretched over the card. The
   chips sit above it as links of their own (.fp-next has a z-index), and nothing
   else is raised, so a tap anywhere else lands on the link. */
.fp-cgo::after{content:"";position:absolute;inset:0}
/* The link's own ring would only wrap its words, so where :has() is understood
   the card or row wears it instead. Elsewhere the link keeps the ordinary ring. */
@supports selector(:has(*)){
  .fp-card:has(.fp-cgo:focus-visible),.fp-row:has(.fp-cgo:focus-visible){outline:2px solid var(--accent);outline-offset:3px}
  .fp-cgo:focus-visible{outline:none}
}
.fp-cgo svg{transition:transform .15s}
.fp-card:hover .fp-cgo svg{transform:translateX(3px)}
@media(prefers-reduced-motion:reduce){
  .fp-card,.fp-chip,.fp-cgo svg{transition:none}
  .fp-card:hover{transform:none}
  .fp-card:hover .fp-cgo svg{transform:none}
}

/* Three places or more in a group: a list, one row each. A 76px rounded photo,
   then the name, the rating and cuisine, the address, today's hours and the
   first free time, every line on one line. Two columns from 1000px. */
.fp-list{display:grid;gap:10px}
@media(min-width:1000px){.fp-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}}
.fp-row{position:relative;display:grid;grid-template-columns:76px minmax(0,1fr);gap:12px;align-items:center;min-width:0;
  padding:10px;background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);
  transition:border-color .15s}
.fp-row:hover{border-color:var(--line-strong)}
.fp-rphoto{width:76px;height:76px;overflow:hidden;border-radius:10px;background:var(--tint,var(--soft))}
.fp-rphoto img{display:block;width:100%;height:100%;object-fit:cover}
.fp-rbody{min-width:0}
.fp-rbody p{margin:2px 0 0;font-size:12.5px;line-height:1.35;color:var(--fg-dim)}
.fp-rname{margin:0;font-family:"Instrument Serif","Songti SC","Noto Serif CJK SC",Georgia,serif;font-size:20px;
  font-weight:400;line-height:1.15;letter-spacing:0;text-transform:none;color:var(--fg);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fp-rbody .cardrating{font-size:12.5px;margin:2px 0 0}
.fp-rbody .cardrating .star{width:13px;height:13px}
.fp-rbody .cardrating .fp-rcuisine::before{content:"·";margin-right:6px}
.fp-rmeta{display:flex;align-items:center;gap:6px;min-width:0}
.fp-row .fp-next{margin-top:6px;align-items:flex-start}
/* The chip is a small pill whose hit area is still 44px tall. */
.fp-row .fp-chip{position:relative;min-height:32px;padding:0 10px;font-size:12.5px;color:var(--accent-text)}
.fp-row .fp-chip::before{content:"";position:absolute;inset:-6px 0}

/* The card grid's own header/details split (includes/venue-cards.php), and the
   line that says where a card goes. Used by the brand page, /b/<brand>, which
   lists one brand's branches; the front page draws its own cards above. */
.venuecard .cardhead{display:block;padding:14px 16px 0}
.venuecard .cardhead + .meta{padding-top:4px}
.venuecard .cardgo{display:flex;align-items:center;gap:8px;margin-top:10px;font-size:14px;font-weight:600;
  color:var(--accent-text)}
.venuecard .cardgo svg{transition:transform .15s}
.venuecard:hover .cardgo svg{transform:translateX(3px)}

/* The code box, quieter than a venue: a label, a field, and what a code is. */
.frontpage .fp-code{display:grid;gap:8px;margin-top:36px;padding-top:24px}
.frontpage .fp-code label{margin:0;font-size:14px;font-weight:600;color:var(--fg)}
.fp-coderow{display:flex;gap:8px}
.frontpage .fp-coderow input{flex:1 1 auto;width:auto;min-width:0;height:46px;padding:0 14px;font-size:16px}
.frontpage .fp-coderow button{margin-top:0;height:46px;padding:0 20px;background:var(--fg);color:#fff}
.frontpage .fp-coderow button:hover{background:#3B2A5E}
.fp-hint{margin:0;font-size:13px;color:var(--fg-dim)}
@media(min-width:760px){
  .frontpage .fp-code{grid-template-columns:auto minmax(0,420px);justify-content:start;align-items:center;column-gap:18px}
  .fp-hint{grid-column:2}
}

/* For restaurants & shops, in the staff identity's colours (the :root dark set
   is overridden by the light scheme here, so they are restated literally). */
.fp-for{--for-ground:#201C29;--for-line:#423A50;--for-fg:#F1EBF6;--for-dim:#B6ADBF;--for-act:#F38563;
  background:var(--for-ground);color:var(--for-fg)}
.fp-for-in{display:grid;gap:36px;padding-block:56px}
@media(min-width:900px){.fp-for-in{grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);column-gap:72px;
  padding-block:88px;align-items:start}}
.fp-eyebrow{margin:0;font-size:12px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--for-act)}
.fp-for h2{margin:12px 0 0;font-family:"Instrument Sans","Avenir Next",-apple-system,sans-serif;font-size:32px;
  line-height:1.08;letter-spacing:-.03em;font-weight:600;text-transform:none;text-wrap:balance;color:var(--for-fg)}
@media(min-width:900px){.fp-for h2{font-size:42px}}
.fp-for-lede{margin:16px 0 0;font-size:16px;line-height:1.55;color:var(--for-dim);max-width:46ch}
.fp-for-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:26px}
.fp-for .btn{margin-top:0;display:inline-flex;align-items:center;gap:10px;min-height:48px}
.fp-for .btn.fp-btn-main{background:var(--for-act);color:var(--for-ground)}
.fp-for .btn.fp-btn-main:hover{background:#F69C7F}
.fp-for .btn.fp-btn-line{background:none;border:1px solid #6E6480;color:var(--for-fg)}
.fp-for .btn.fp-btn-line:hover{background:none;border-color:var(--for-fg)}
@media(max-width:520px){.fp-for-actions .btn{flex:1 1 100%;justify-content:center}}
.fp-for-note{margin:12px 0 0;font-size:13px;color:var(--for-dim)}
.fp-for-list{margin:0;display:grid;border-top:1px solid var(--for-line)}
@media(min-width:560px){.fp-for-list{grid-template-columns:1fr 1fr;column-gap:32px}}
.fp-for-list div{padding:18px 0 20px;border-bottom:1px solid var(--for-line)}
.fp-for-list dt{display:flex;align-items:center;gap:10px;font-size:16px;font-weight:600}
/* The staff screen's own marker: a lime squircle is a free spot there. */
.fp-for-list dt::before{content:"";flex:none;width:10px;height:10px;border-radius:34%;background:#D0F64B}
.fp-for-list dd{margin:5px 0 0;padding-left:20px;font-size:14px;line-height:1.5;color:var(--for-dim)}
.fp-for :focus-visible{outline-color:var(--for-fg)}

/* The full footer (includes/foot.php, $fullFooter): the product's own ground,
   a shade darker than the band above it. Four columns from 860px, and on a phone
   the brand on its own, the two link lists side by side, then Contact. The link
   colours need the light scheme's own link selector at full weight to win. */
.fullfoot{max-width:none;width:100%;margin:0;padding:0;background:#1A1722;border-top:0;text-align:left}
body > .fullfoot{margin-top:0}
.fullfoot .fp-wrap{padding-block:40px 28px}
@media(min-width:860px){.fullfoot .fp-wrap{padding-block:56px 28px}}
.ff-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 16px}
.ff-brand,.ff-contact{grid-column:1/-1}
@media(min-width:860px){
  .ff-cols{grid-template-columns:1.5fr;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:40px}
  .ff-brand,.ff-contact{grid-column:auto}
}
.fullfoot p{margin:0;font-size:14px;color:#B6ADBF}
.fullfoot p + p{margin-top:0}
.ff-brand{display:flex;flex-direction:column;gap:10px}
@media(min-width:860px){.ff-brand{gap:12px}}
.fullfoot .ff-lockup{display:flex;align-items:center;gap:9px;font-size:20px;font-weight:700;letter-spacing:-.02em;color:#F1EBF6}
.fullfoot .ff-tag{font-family:"Instrument Serif",Georgia,serif;font-size:24px;line-height:1.1;color:#F1EBF6}
@media(min-width:860px){.fullfoot .ff-tag{font-size:26px}}
.ff-blurb{max-width:34ch;line-height:1.55}
.fullfoot .ff-lang{margin-top:2px;font-size:14px}
.fullfoot .ff-lang [aria-current]{color:#F1EBF6;font-weight:700}
.fullfoot h2{margin:0 0 6px;font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#F38563}
.fullfoot ul{list-style:none;margin:0;padding:0}
.fullfoot li a{display:flex;align-items:center;min-height:44px;font-size:15px;line-height:1.3}
html[data-scheme="light"] .fullfoot a:not(.btn):not(.venuecard):not(.date):not([aria-current]){
  color:#E9E4EF;text-decoration:none}
html[data-scheme="light"] .fullfoot a:not(.btn):not(.venuecard):not(.date):not([aria-current]):hover{
  text-decoration:underline}
html[data-scheme="light"] .fullfoot .ff-lang a:not(.btn):not(.venuecard):not(.date):not([aria-current]){
  color:#F38563}
.fullfoot :focus-visible{outline-color:#F1EBF6}
.fullfoot .ff-contact p{font-size:14.5px;line-height:1.75}
.ff-bar{margin-top:32px;padding-top:18px;border-top:1px solid #332D3D}
@media(min-width:860px){.ff-bar{margin-top:44px;padding-top:20px}}
.fullfoot .ff-bar p{font-size:13px}
@media print{.fp-top,.fp-fieldmask,.fp-for{display:none}}

/* ---- Admin on a phone (PR10a, audit Oct 2026) ---------------------------
   44px hit areas on every control an admin or a host taps, under the same
   pointer:coarse query the rest of the app uses, and the phone menu and the
   venue Archive button. The admin tables themselves reflow in the
   max-width:720px block above (table.bk .hd and .cellfield). */
@media(pointer:coarse){
  .checkline{min-height:44px}
  .checkline input[type=checkbox]{width:22px;height:22px;flex:none;accent-color:var(--accent)}
  .admincontext a{display:inline-flex;align-items:center;min-height:44px}
  .venue-directory-links a,.venue-directory-manage,.venue-directory-todo,
  .venue-directory-meta dd a,.venue-directory-meta .btn-quiet{display:inline-flex;align-items:center;min-height:44px}
  .venue-directory-primary .btn{min-height:44px;display:inline-flex;align-items:center}
  .rowmenu summary,#svc .rowmenu summary{width:44px;height:44px}
  #svc .bdday-i{display:inline-flex;align-items:center;min-height:44px;padding:0 12px}
  #svc .daynavjump input{min-height:44px}
  table.bk .ph a,.walink{display:inline-flex;align-items:center;min-height:44px}
  .rangepresets a{display:inline-flex;align-items:center;min-height:44px;padding:0 16px}
  .btn-quiet,.btn.btn-quiet{min-height:44px;display:inline-flex;align-items:center}
  .navtoggle{min-height:44px}
  #navlinks .navvenue select{min-height:44px}
  .grid td.act a:not(.btn-quiet):not(.btn),.grid td.ph a{display:inline-flex;align-items:center;min-height:44px;padding:0}
  .chip-opt,.bk-quick button{min-height:44px}
  .cellacts button,.cellacts input{min-height:44px}
  #svc .bdp-acts .bdbtn{min-height:44px}
  #svc .rowsearch input{min-height:44px}
  .toggle a,.sectiontabs a,.venuetabs a{display:inline-flex;align-items:center;justify-content:center;min-height:44px}
  .saveacts button,.saveacts .btn,.saveacts .btn.btn-sm{min-height:44px}
  .foldsection summary,#svc .bdfold summary{min-height:44px;display:flex;align-items:center}
  .rowacts a,.btn-quiet{min-width:44px;justify-content:center}
  .venue-directory-gaps a{display:inline-flex;align-items:center;min-height:44px}
  .checkline input[type=radio]{width:22px;height:22px;flex:none;accent-color:var(--accent)}
  #svc .bdday-i,.venue-directory-links a,.venue-directory-meta dd a,.venue-directory-todo,table.bk .ph a{min-width:44px;justify-content:center}
  .venue-directory-todo,.venue-directory-meta dd a{display:inline-flex;align-items:center;min-height:44px}
}

/* The phone menu keeps its section headings and opens as its own block, not
   as more flex items squeezed into the strip beside the logo. */
@media(max-width:767px){
  #navlinks:not([hidden]){display:block;flex:1 1 100%;order:9;margin-top:6px;padding:4px 0 10px;
    border-top:1px solid var(--line)}
  #navlinks .navgroup{display:block;margin:12px 8px 2px;font-size:11px;font-weight:600;
    letter-spacing:.09em;text-transform:uppercase;color:var(--fg-dim)}
  #navlinks .navgroup:first-child{margin-top:4px}
  #navlinks a{display:flex;width:100%;padding:12px 8px;border-bottom:0}
  #navlinks a[aria-current]{background:var(--accent-wash);border-radius:var(--radius)}
}

/* Archive is the one destructive control on the venue form. On a phone the
   in-tab copy is hidden and a quiet copy sits under the Save bar, so the red
   button is no longer the loudest thing under Demo. */
.archive-below{display:none}
@media(max-width:720px){
  .archive-here{display:none}
  .archive-below{display:block;margin:18px 0 0}
  .archive-below button.danger{margin:0;background:none;color:var(--fg-dim);border:1px solid var(--line)}
}

/* ---- The staff board on a phone and a tablet (PR11b, audit Oct 2026) -----
   The guests are what a host came for, and they used to start 1,100 to 1,700px
   down, behind four tiles, a stacked card per sitting and the Private Rooms
   lines. Below 1100px: the tiles become one slim row, the sitting cards one
   swipeable strip (scroll-snap, the tapped card still filters), and the Private
   Rooms fold behind one line. Everything is still there. 1100px and up is
   untouched. */
.guestmarks .label{color:var(--fg)}
/* Wide: the summary is only the old heading, not a control. */
.prgrid > summary{display:block;list-style:none;pointer-events:none;cursor:default}
.prgrid > summary::-webkit-details-marker{display:none}
.prgrid .prsum,.prgrid .prfold-a{display:none}
@media(max-width:1099px){
  #svc .daystats{grid-template-columns:repeat(auto-fit,minmax(68px,1fr));gap:6px;margin-bottom:10px}
  #svc .daystats .stat{padding:7px 10px}
  #svc .daystats dt{font-size:9.5px;letter-spacing:.1em}
  #svc .daystats dd{margin-top:3px;font-size:20px}
  #svc .daystats dd small{font-size:11px}
  #svc .sitcards{display:flex;gap:8px;margin:0 -2px 10px;padding:2px 2px 8px;overflow-x:auto;
    scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
  #svc .sitcard{flex:0 0 min(74%,250px);scroll-snap-align:start;gap:5px;padding:9px 12px}
  #svc .sitcard.all{flex:0 0 auto;min-width:112px}
  #svc .sitcard .top b{font-size:14px}
  #svc .sitcard .fig{font-size:12.5px}
  .prgrid{margin-bottom:8px}
  .prgrid > summary{display:flex;pointer-events:auto;align-items:center;gap:10px;list-style:none;cursor:pointer;
    min-height:40px;padding:4px 2px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
  .prgrid > summary::-webkit-details-marker{display:none}
  .prgrid > summary h2{margin:0}
  .prgrid .prsum{display:inline;font-size:12px;color:var(--fg-dim)}
  .prgrid .prfold-a{display:inline;margin-left:auto;color:var(--accent-text);font-size:13px;font-weight:600}
  .prgrid .prfold-hide,.prgrid[open] .prfold-show{display:none}
  .prgrid[open] .prfold-hide{display:inline}
  .prgrid[open] > summary{border-bottom:0}
}
@media(max-width:720px){
  #svc .bdbtn-add{flex:1 1 0}
  #svc .bdtools > a.bdbtn-plain{flex:0 0 auto}
}

/* The board as cards on a tablet that has the rail (768 to 899px). The content
   column there is 556px to 687px, too narrow for five columns, so the staff board
   reuses the phone's card rows. Same rules as the max-width:720px block above,
   scoped to #svc so no other table moves. KEEP IN SYNC with the table.bk card
   rules and the .rowmenu rules in the max-width:720px blocks above. */
@media(min-width:721px) and (max-width:899px){
  #svc .rowmenu{display:block}
  #svc .rowmenupop{position:static;box-shadow:none;border:none;padding:6px 0 0;
    flex-direction:row;flex-wrap:wrap}
  #svc table.bk,#svc table.bk tbody{display:block}
  #svc table.bk thead{display:none}
  #svc table.bk tr{display:flex;flex-wrap:wrap;gap:3px 14px;align-items:baseline;
    border:1px solid var(--line);border-radius:4px;padding:11px 13px;margin-bottom:9px}
  #svc table.bk td{display:flex;gap:6px;align-items:baseline;border:none;padding:0}
  #svc table.bk td::before{content:attr(data-label);font-size:10px;letter-spacing:.14em;
    text-transform:uppercase;color:var(--fg-dim);white-space:nowrap}
  #svc table.bk td.tno::before,#svc table.bk td.nm::before,#svc table.bk td.hd::before,#svc table.bk td.act::before{content:none}
  #svc table.bk td{order:5}
  #svc table.bk td.tno{order:1;font-size:17px}
  #svc table.bk td.nm,#svc table.bk td.hd{order:2;flex:1 1 55%;min-width:0;overflow-wrap:anywhere;
    font-size:16px;display:block}
  #svc table.bk td.nm small,#svc table.bk td.hd small{display:block;white-space:normal}
  #svc table.bk td.st{order:3;margin-left:auto}
  #svc table.bk td.st::before{content:none}
  #svc table.bk td.dt{order:4}
  #svc table.bk td.pax{order:6}
  #svc table.bk td.ph{order:7}
  #svc table.bk td.act{order:9;flex:1 1 100%;margin-top:7px}
  #svc table.bk td.cellfield{order:6;flex:1 1 100%;flex-direction:column;align-items:stretch;gap:4px}
  #svc table.bk td.cellfield input:not([type=checkbox]):not([type=radio]){width:100%;max-width:none}
  #svc table.bk td.cellfield .slugfield{display:flex;align-items:center;gap:4px}
  #svc table.bk td.cellfield .slugfield input{flex:1 1 auto;min-width:0}
  #svc table.bk td.cellfield form{margin:0}
  #svc table.bk td.cellfield button{margin-top:8px}
  #svc table.bk td.cellfield .thumb{margin-bottom:8px}
  #svc table.bk td .cellacts,#svc table.bk td.act .cellacts form{min-width:0}
  #svc table.bk td.act .cellacts input{width:100%}
  #svc table.bk td.act .cellacts form:has(input:not([type=hidden])){flex:1 1 100%;display:flex;gap:8px;align-items:center}
  #svc table.bk td.act .cellacts form:has(input:not([type=hidden])) input{flex:1 1 auto;min-width:0}
  #svc table.bk td.act .cellacts form:has(input:not([type=hidden])) button{flex:0 0 auto}
  #svc table.bk td.act .cellacts{flex:1 1 100%}
  #svc table.bk td.act .rowacts,#svc table.bk td.act .bdacts{justify-content:flex-start;flex-wrap:wrap}
  #svc table.bk td.act:not(:has(form)):not(:has(a)):not(:has(button)){display:none}
  #svc .grid tr.void td{opacity:.6}
  #svc tr.bdsub,#svc tr.bdsub th{display:block;width:100%}#svc table.bk tr.bdsub{border:0;padding:0;margin:8px 0 4px}

  #svc table.bk td.act{width:auto}
  #svc table.bk tr[data-state]{border-left:4px solid var(--strip,var(--line))}
  #svc table.bk tr[data-state] > td:first-child{box-shadow:none;padding-left:0}
  #svc .bdacts{justify-content:flex-start}
  #svc .bdacts > .bdbtn{flex:1 1 0}
  #svc .bdpanel{position:static;width:auto;margin-top:8px;box-shadow:none}
  #svc .bdmenu{flex:0 0 auto}
  #svc .bdacts{flex-direction:row;flex-wrap:wrap;align-items:flex-start}
  #svc .bdmenu[open]{flex:1 1 100%}
}

/* 768 to 899px: the banner sits in the content column, not behind the rail, and
   the date bar stays on one line (the "Pick a date" label is spoken, not drawn). */
@media(min-width:768px) and (max-width:899px){
  #svc .bdday{flex-wrap:nowrap}
  #svc .daynavjump label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  #svc .bdday-i{padding:6px 8px}
}
/* Only on pages that have the rail: the diner's demo banner has none beside it. */
@media(min-width:768px){body:has(.adminnav) .demobar{margin-left:212px}}

/* ---- Admin | Service desk switch (includes/desk-switch.php) --------------
   The two sides of the app have different menus and a different ground, so a
   DRS admin moves between them with a two-part switch at the top of the rail
   rather than a link that looks like one more admin tab. The selected half is
   a raised pill on a quiet track. app.js fades the page across, and the pill
   carries a view-transition-name so it slides from one half to the other.
   The selectors carry .adminnav because tailwind.css loads after this file
   and styles every .adminnav a as a rail item. */
.deskswitch{display:flex;gap:2px;padding:3px;margin:4px 0 6px;border:1px solid var(--line);
  border-radius:calc(var(--radius) + 3px);background:color-mix(in srgb,var(--fg) 6%,transparent)}
.adminnav .deskswitch a,.adminnav .deskswitch .on{flex:1 1 0;display:flex;align-items:center;
  justify-content:center;min-height:34px;margin:0;padding:6px 8px;border:0;border-radius:var(--radius);
  font-size:13px;font-weight:600;line-height:1.2;text-align:center;text-decoration:none;white-space:nowrap}
.adminnav .deskswitch a{color:var(--fg-dim);background:none}
.adminnav .deskswitch a:hover{color:var(--fg);background:color-mix(in srgb,var(--fg) 6%,transparent)}
.adminnav .deskswitch .on{color:var(--fg);background:var(--surface);
  box-shadow:0 1px 2px rgba(0,0,0,.12),0 0 0 1px var(--line);view-transition-name:desk-thumb}
@media(pointer:coarse){.adminnav .deskswitch a,.adminnav .deskswitch .on{min-height:44px}}
@media(max-width:767px){#navlinks .deskswitch{margin:4px 0 8px}}

/* Crossing from admin to the service desk or back is a change of place, so
   the page fades across instead of cutting. Every other navigation is skipped
   by app.js (pageswap), so moving around inside one side stays instant. */
@media(prefers-reduced-motion:no-preference){
  @view-transition{navigation:auto}
  ::view-transition-group(desk-thumb){animation-duration:.3s;animation-timing-function:cubic-bezier(.2,.8,.2,1)}
  ::view-transition-old(root),::view-transition-new(root){animation-duration:.25s}
}

/* ---- Plan 12 PR 4: the booking box on the venue page ---------------------
   "Book a table · Step 1 of 3", then Guests, Date and Time in one ticket, the
   venue's terms, and a bar with the picks and one Book button. The bar is
   fixed to the foot of a phone's screen and sits inline at the foot of the
   card from 768px, where the card is a sticky column beside the venue. */
.bookhead{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0 0 12px}
.bookhead h2{margin:0;font-size:22px;font-weight:700;line-height:1.2;color:var(--fg);
  letter-spacing:0;text-transform:none}
.bookhead p{margin:0;flex:none;font-size:13px;font-weight:600;color:var(--fg-dim)}
.modeswitch + .bookhead{margin-top:18px}
.bookticket{margin-top:0;border-radius:var(--radius)}
.bookticket .stepper{width:220px;max-width:100%}
.bookticket .stepper input{flex:1 1 0;min-width:0;width:0}
/* The calendar chip at the end of the strip: same cell, an icon for a number. */
.date.calchip b{display:grid;place-items:center;min-height:24px;color:var(--accent-text)}
.date.calchip em{color:var(--accent-text)}
/* The date input the chip opens. It has to be rendered for showPicker() to
   anchor the browser's picker to it, so it is shrunk, not display:none. */
.calinput{position:absolute;width:1px;height:1px;padding:0;border:0;opacity:0;pointer-events:none}
/* The time: a plain select with the script off; with it, the - / + stepper
   wraps the same select, which stays the control a screen reader and a long
   jump (tap the time, pick from the list) use. */
.timepick select{width:auto;min-width:10ch;font-size:17px;font-weight:600}
.timepick[hidden],.stepper[hidden],.chips[hidden],.chip[hidden]{display:none}
/* Guests and time as buttons (Plan 13). Tap targets of 44px. */
.chips{display:flex;flex-wrap:wrap;gap:8px}
.timechips{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.chip{all:unset;box-sizing:border-box;min-width:44px;height:44px;padding:0 12px;white-space:nowrap;
  display:inline-grid;place-items:center;border:1px solid var(--line);border-radius:12px;
  font-size:16px;font-weight:600;color:var(--fg);cursor:pointer;
  transition:border-color .15s,background .15s}
.chip:hover{border-color:var(--accent)}
.chip:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.chip[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.morechip{color:var(--accent-text);font-size:14px;grid-column:1 / -1}
.paxchips .chip{width:52px;padding:0}
.timechips .chip{padding:0 4px;font-size:15px;white-space:nowrap}
.timepick.timestep{display:flex;width:220px;max-width:100%}
.timepick.timestep select{flex:1 1 0;min-width:0;width:0;border:none;background:none;box-shadow:none;
  padding:8px 4px;font-size:21px;font-weight:700;text-align:center;text-align-last:center;
  -webkit-appearance:none;appearance:none;cursor:pointer;font-variant-numeric:tabular-nums}
.timepick.timestep select:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:8px}
.timepick .stepbtn[hidden]{display:none}
.waitlinks{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 0}
.waitlinks .btn{margin-top:0}
.findlink{text-align:center;margin-top:16px}

.bookbar{position:fixed;left:0;right:0;bottom:0;z-index:20;display:grid;
  grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;
  padding:10px 16px calc(12px + env(safe-area-inset-bottom,0px));background:var(--surface);
  border-top:1px solid var(--line);box-shadow:0 -8px 24px -16px rgba(40,25,68,.35)}
.bookbar .sum{margin:0;display:grid;gap:2px;min-width:0;font-variant-numeric:tabular-nums}
.bookbar .sum b,.bookbar .sum span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bookbar .sum b{font-size:15px;color:var(--fg)}
.bookbar .sum span{font-size:14px;color:var(--fg-dim)}
.book .bookbar button[type="submit"]{width:auto;min-width:132px;margin:0;padding:14px 22px;
  font-size:16px;border-radius:12px}
.book .bookbar button[type="submit"]:disabled{opacity:.45;cursor:not-allowed;transform:none;box-shadow:none}
/* Room under the fixed bar, so the last of the page is not hidden behind it,
   and a field that takes focus is scrolled clear of it too. */
body:has(.bookbar){padding-bottom:calc(84px + env(safe-area-inset-bottom,0px))}
@media(max-width:767px){
  html:has(.bookbar){scroll-padding-bottom:calc(90px + env(safe-area-inset-bottom,0px))}
}
@media(min-width:768px){
  .bookbar{position:static;margin-top:18px;padding:14px 16px;border:1px solid var(--line);
    border-radius:var(--radius);box-shadow:none}
  body:has(.bookbar){padding-bottom:0}
}

/* Plan 14 phase 2: manager */
.promo-code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.04em}
#promo-code-fields[hidden]{display:none}

/* Plan 14 phase 2: staff */
.perkcode{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px;font-weight:700;letter-spacing:.04em;padding:1px 6px;border:1px dashed var(--warn);border-radius:4px;user-select:all;-webkit-user-select:all;cursor:copy}

/* Plan 14 phase 2: guest */
.vanish{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.voucherbox{margin:14px 0 4px}
.voucherbox>summary{cursor:pointer;color:var(--fg-dim);font-size:15px;padding:6px 0;width:fit-content}
.voucherbox[open]>summary{margin-bottom:6px}
.voucherrow{display:flex;gap:8px;align-items:stretch}
.voucherrow input{flex:1;min-width:0;text-transform:uppercase}
.voucherbtn{width:auto;margin:0;padding:10px 18px;flex:none}
.voucherbtn.alt{margin-top:8px;background:transparent;color:var(--fg);border:1px solid var(--line);box-shadow:none}
.vouchercut{display:block;width:auto;margin:8px 0 0;padding:0;background:none;border:0;box-shadow:none;
  color:var(--fg-dim);font-size:14px;text-decoration:underline;cursor:pointer}
.voucherok{margin:8px 0 0;font-weight:600}
.voucherleft{font-weight:400;color:var(--fg-dim);margin-left:8px}

/* Plan 14 phase 3: manager */
#codes{width:100%;font-family:ui-monospace,Menlo,Consolas,monospace;letter-spacing:.04em}
#promo-shared-code[hidden]{display:none}

/* Plan 14 phase 3: walkin */
.walkin-code{margin:.5rem 0 1rem}
.walkin-code summary{cursor:pointer;font-size:.9rem;color:var(--muted,#555)}
.walkin-code input{max-width:16rem;text-transform:uppercase}

/* Plan 14 phase 4: the perk tag on a front-page card */
.fp-perk{margin:6px 0 0;line-height:1}
.fp-perk .perk-tag{margin-left:0}

/* Sign out is a POST (public/admin/logout.php), so the nav item is a button.
   It has to read as the links around it, in both the top strip and the rail. */
.adminnav .signoutform{display:contents}
.adminnav .signoutform button{display:inline-flex;align-items:center;gap:9px;margin:0;width:auto;
  background:none;color:inherit;border:0;border-bottom:2px solid transparent;border-radius:0;box-shadow:none;
  font:inherit;font-size:14px;font-weight:500;letter-spacing:normal;text-transform:none;
  padding:12px 10px;text-align:left;cursor:pointer;text-decoration:none}
.adminnav .signoutform button:hover{transform:none;background:none;border-bottom-color:var(--line)}
@media(min-width:768px){
  .adminnav .signoutform button{border-bottom:0;border-left:2px solid transparent;
    border-radius:0 var(--radius) var(--radius) 0;padding:11px 12px}
  .adminnav .signoutform button:hover{border-left-color:var(--line);
    background:color-mix(in srgb,var(--fg) 6%,transparent)}
}
