/**
 * Grounding cards — Phase 3, "the money shot".
 *
 * Every card on screen is rendered from a `functionResponse` part that arrived in the *same*
 * HTTP response as the answer paragraph above it. That is the whole pitch: not "our chatbot
 * answered" but "every claim on this screen has a receipt". So the visual language is
 * deliberately documentary rather than chatty — a bordered record with a status, a payload, and
 * a provenance footer, not another speech bubble.
 *
 * The three status colours are shared with chat.css's tokens on purpose, so a green road segment
 * and a green eligible-permit badge mean the same thing to the room:
 *   ok       green      verified, grounded, actionable
 *   caution  amber      qualified — a real hazard the guest should weigh
 *   blocked  red        a hard no, with a cited reason
 *   unknown  champagne  the honesty card ("Atithi will confirm this") — deliberately NOT amber; see
 *                       its own [data-status="unknown"] rule below for why sharing caution's colour
 *                       was the wrong call
 *
 * The `unknown` card gets full design weight, not a footnote. A system visibly declining to guess
 * is the most credible thing you can put in front of a minister, and it is the one thing a generic
 * chatbot demo structurally cannot show.
 */

.cards {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-top: var(--sp-2);
  width: 100%;
}

.card {
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  animation: bubble-in var(--dur) var(--ease) both;
}

.card[data-status="ok"] {
  border-left-color: var(--ok-line);
}

.card[data-status="caution"] {
  border-left-color: var(--warn-line);
  background: color-mix(in srgb, var(--warn-bg) 45%, var(--surface));
}

/*
 * "We don't know" is not a warning, and it had been sharing one.
 *
 * `unknown` sat in the same rule as `caution` — same amber rail, same amber ground — so the honesty
 * card was visually indistinguishable from a road advisory or a sold-out night. Those are hazards
 * the guest should weigh; this is Atithi declining to guess, which is the most trust-building thing
 * the product does and the thing the whole grounding pitch rests on. Rendering it as a fourth
 * shade of caution spent that for nothing.
 *
 * It now takes the CHAMPAGNE rail on near-plain paper: the brand's own accent, which everywhere
 * else in this app marks Atithi speaking about itself (the .prov provenance chip, the hero
 * ornament, the drawer wordmark). Amber stays exclusively for "something is wrong out there".
 * No new hue enters the palette — the distinction is which of the two existing accents is used,
 * and whether the ground is tinted at all.
 */
.card[data-status="unknown"] {
  border-left-color: var(--gold);
  background: color-mix(in srgb, var(--gold) 6%, var(--surface));
}

.card[data-status="blocked"] {
  border-left-color: var(--danger-line);
}

/*
 * THE SKELETON. A tool call still in flight used to leave the transcript unchanged until its card
 * (or the honesty card) simply appeared — the only sign anything was happening lived in a separate
 * progress line, nowhere near where the answer was actually about to land. `.card-skeleton` reuses
 * `.card`/`.card-head`/`.card-body` for its box and spacing (js/cards.js skeletonCard) so it takes
 * up the same footprint the eventual card will, and only its own `.skeleton-bar` children need
 * their own rules below — everything about being a card is inherited, nothing is duplicated.
 *
 * No status colour: a call that has not resolved yet has not earned a verdict, so the left rail
 * stays the neutral hairline every unstated `.card` gets by default.
 */
.card-skeleton .skeleton-bar {
  display: block;
  border-radius: var(--radius-sm);
  background: linear-gradient(
    90deg,
    var(--surface-2) 25%,
    var(--hairline-strong) 50%,
    var(--surface-2) 75%
  );
  background-size: 200% 100%;
  /* --orb-pulse-dur (2.4s, orb.css's "ONE calm breath") in place of a snappier 1.4s: a waiting
     card should breathe at the same restrained pace the mic does, not sweep like a generic
     loading-skeleton library default. Kept on ease-in-out, not orb.css's --ease-out-quart — this
     sweep runs one direction every cycle rather than settling to a rest state, and ease-out-quart's
     hard deceleration would read as a stutter at each loop restart. */
  animation: skeleton-shimmer var(--orb-pulse-dur) ease-in-out infinite;
}

.card-skeleton .skeleton-icon {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  flex-shrink: 0;
}

.card-skeleton .skeleton-title {
  height: 14px;
  width: 55%;
}

.card-skeleton .skeleton-line {
  height: 11px;
  width: 90%;
}

.card-skeleton .skeleton-line--short {
  width: 55%;
}

/* Matches .price-media's own height (daylight.css) — the one renderer this skeleton shape stands
   in for prepends a room photo above its head, so the placeholder reserves that same band. */
.card-skeleton .skeleton-media {
  height: 132px;
  border-radius: 0;
  animation: none;
  background: var(--surface-2);
}

/* Matches .supply-scroller/.mini-card's own geometry — the shape find_places' horizontal scroller
   uses, so the skeleton doesn't change proportions the moment real tiles replace it. */
.card-skeleton .skeleton-carousel {
  display: flex;
  gap: var(--sp-3);
  overflow: hidden;
}

.card-skeleton .skeleton-tile {
  flex: 0 0 234px;
  height: 96px;
  border-radius: var(--radius);
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card-skeleton .skeleton-bar {
    animation: none;
  }
}

.card-head {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--hairline);
}

.card-head .icon {
  color: var(--brand-ink);
}

.card-title {
  margin: 0;
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: var(--lh-tight);
  color: var(--ink);
  min-width: 0;
}

.card-title small {
  display: block;
  font-size: var(--fs-micro);
  font-weight: 400;
  color: var(--ink-faint);
  margin-top: 1px;
}

.card-body {
  padding: var(--sp-3) var(--sp-4) var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  font-size: var(--fs-small);
  color: var(--ink-soft);
}

.card-body > :first-child {
  margin-top: 0;
}

.card-section-label {
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: var(--sp-1);
}

/* The weather card stacks three sections (current/next-hours/coming-days) where every other
 * card has one, so the shared card-body/head/foot rhythm above compounds three times over and
 * reads as oversized in the guest chat pane's fixed phone-width column. `weather-card-body`
 * (set on the weather card's own body div, see js/cards.js) scopes a tighter rhythm to this card
 * only — `:has()` reaches the head/foot without needing extra classes there, since they're
 * plain siblings inside the same `.card`. */
.weather-card-body {
  padding: var(--sp-2) var(--sp-4) 6px;
  gap: 6px;
}

.weather-card-body .card-section-label {
  margin-bottom: 2px;
}

.card:has(.weather-card-body) .card-head {
  padding: var(--sp-2) var(--sp-4);
}

.card:has(.weather-card-body) .card-foot {
  padding: var(--sp-1) var(--sp-4) var(--sp-2);
}

/* -------------------------------------------------------------------------------------------
 * Status pills
 * ----------------------------------------------------------------------------------------- */

.pill {
  margin-left: auto;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px var(--sp-3);
  border-radius: var(--radius-pill);
  border: 1px solid currentColor;
  white-space: nowrap;
}

.pill[data-tone="ok"] {
  background: var(--ok-bg);
  color: var(--ok-ink);
}

.pill[data-tone="caution"] {
  background: var(--warn-bg);
  color: var(--warn-ink);
}

/* Champagne, matching the rail — see the [data-status="unknown"] note above. It shared caution's
   amber, which left the honesty card's own pill arguing with its rail about what kind of card it
   was.

   --brand-ink, NOT --gold-ink: the readable champagne has to change step between themes, and
   --brand-ink is the token that already does it (#a33b21 on cream, #ffb89d on the dark card) and
   the one .prov already uses for exactly this "champagne as a quiet ink" job. --gold-ink is the
   light-theme literal and is never re-stepped, so it measures 2.06:1 on the dark honesty ground —
   found by measuring rather than by reading, having reached for it first. */
.pill[data-tone="unknown"] {
  background: color-mix(in srgb, var(--gold) 14%, transparent);
  color: var(--brand-ink);
}

.pill[data-tone="blocked"] {
  background: var(--danger-bg);
  color: var(--danger-ink);
}

.pill[data-tone="info"] {
  background: var(--info-bg);
  color: var(--info-ink);
}

/* Closed, not failed. A cancelled request and a declined one are different outcomes, and colouring
   the first like the second makes a guest changing their mind look like the hotel refusing. */
.pill[data-tone="muted"] {
  background: var(--surface-2, transparent);
  color: var(--ink-soft);
}

/* -------------------------------------------------------------------------------------------
 * A · Permit card
 * ----------------------------------------------------------------------------------------- */

/* One blocked destination = one loud row. This is the Nathula beat for a foreign national. */
.blocked-row {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  background: var(--danger-bg);
  border: 1px solid var(--danger-line);
  border-radius: var(--radius-sm);
  padding: var(--sp-3);
  color: var(--danger-ink);
}

.blocked-row .icon {
  margin-top: 1px;
  color: var(--danger-ink);
}

.blocked-dest {
  font-weight: 700;
  text-transform: capitalize;
}

/* docs_needed — a real checklist, because that is how a guest uses it. */
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  color: var(--ink);
}

.checklist .icon {
  color: var(--ok-line);
  margin-top: 2px;
}

.reasons {
  margin: 0;
  padding-left: 1.2em;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.reasons li::marker {
  color: var(--brand-ink);
}

/* -------------------------------------------------------------------------------------------
 * B · Road & weather card
 * ----------------------------------------------------------------------------------------- */

.segments {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.segment {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-1) var(--sp-3);
  align-items: center;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline);
  background: var(--surface-2);
}

.segment-note {
  grid-column: 2;
  font-size: var(--fs-small);
  color: var(--ink-soft);
}

/* The traffic light itself. A dot plus a word — never colour alone. */
.light {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 700;
  font-size: var(--fs-micro);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.light::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent);
}

.light[data-state="open"] {
  color: var(--ok-ink);
}

.light[data-state="caution"] {
  color: var(--warn-ink);
}

.light[data-state="closed"] {
  color: var(--danger-ink);
}

.light[data-state="unknown"] {
  color: var(--ink-faint);
}

.weather-tiles {
  display: grid;
  /* 88px (not the old 140px) so the guest chat pane — a fixed phone-width column at every
   * viewport, per layout.css, often well under 350px of usable card width — fits all three
   * current-condition tiles on one row instead of wrapping the third (feels-like/rain-chance)
   * onto a second row and inflating card height. Verified at 88px against 104px, which still
   * wrapped to two columns on a 375px-wide phone. */
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: var(--sp-2);
}

.weather-tile {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 6px;
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.weather-place {
  font-size: var(--fs-micro);
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.weather-temp {
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}

.weather-cond {
  font-size: var(--fs-small);
}

/* The horizontal scroll strip itself. `daylight.css` layers its own visual chrome onto this same
 * class (the in-conversation options carousel's card look) for the guest chat page, but that file
 * is never loaded by manager.html — and without this base rule here, `.supply-scroller` was a
 * plain unstyled div on the Manager Dashboard, so its `.weather-tile` children (each a
 * `display: flex; flex-direction: column` block-level box) stacked one full-width row per
 * hour/day instead of scrolling sideways, ballooning the weather card's height (and, via
 * `.alerts-grid`'s `align-items: stretch`, the Permits card beside it too). Defined here, in the
 * file both pages actually load, so the layout no longer depends on a theme file being present. */
.supply-scroller {
  display: flex;
  gap: var(--sp-2);
  overflow-x: auto;
  scroll-snap-type: x proximity;
}

/* Same tile, reused inside a horizontal forecast strip (`.supply-scroller`, shared with the
 * Places carousel) instead of the `.weather-tiles` grid above — needs a fixed width so tiles
 * read as a uniform, swipeable row rather than shrinking to their text content. Deliberately
 * denser than the current-conditions tile above: this is a glanceable trend strip, not the
 * primary answer, so it drops the condition word (the current-conditions tile and the reply
 * text above the card already say it) and uses a smaller number — the two things that were
 * making the "coming days"/"next hours" rows the tallest part of the whole card. */
.supply-scroller .weather-tile {
  flex: 0 0 84px;
  width: 84px;
  padding: 5px;
  scroll-snap-align: start;
}

.supply-scroller .weather-cond {
  display: none;
}

.supply-scroller .weather-temp {
  font-size: var(--fs-small);
}

/* -------------------------------------------------------------------------------------------
 * C · Price card. Three visually distinct states, because the distinction *is* the pitch:
 *   quote (rows)  ·  honestly sold out (ok + [])  ·  no PMS connected (unknown)
 * ----------------------------------------------------------------------------------------- */

.rate-rows {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.rate-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-3);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.rate-row[data-match="1"] {
  border-color: var(--brand-light);
  background: color-mix(in srgb, var(--brand) 8%, var(--surface));
}

.rate-room {
  font-weight: 600;
  color: var(--ink);
  min-width: 0;
}

.rate-amount {
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.rate-amount small {
  font-size: var(--fs-micro);
  font-weight: 400;
  color: var(--ink-faint);
  margin-left: var(--sp-1);
}

/* -------------------------------------------------------------------------------------------
 * D · KG / POI cards
 * ----------------------------------------------------------------------------------------- */

.poi {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.attr-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-1) var(--sp-3);
  font-size: var(--fs-small);
}

.attr-key {
  color: var(--ink-faint);
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  padding-top: 2px;
}

.attr-val {
  color: var(--ink);
}

.poi-more {
  font-size: var(--fs-micro);
  color: var(--ink-faint);
}

/* -------------------------------------------------------------------------------------------
 * E · The honesty card
 * ----------------------------------------------------------------------------------------- */

/* A limitation, not an alarm: hotel stationery with a thin terracotta edge, a soft info mark and
   one clear way to a human. `.card.honesty-card` (two classes) so it beats glass.css's later
   `.card { border-left: 4px … }` shorthand without reaching for !important. */
.card.honesty-card {
  position: relative;
  isolation: isolate;
  border-left-width: 3px;
  box-shadow: var(--elev-1, var(--shadow-1));
}

/* Two soft curves in the bottom-right corner. Painted in --gold through a mask, so the shape is
   fixed but the colour follows the theme; z-index -1 inside the isolated card keeps them under
   the text and the button. Decorative only. ::before, because glass.css's `.card::after` is every
   card's top sheen. */
.card.honesty-card::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: -1;
  width: min(60%, 220px);
  height: 64px;
  background: var(--gold);
  opacity: 0.08;
  pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 64' preserveAspectRatio='none'%3E%3Cpath fill-opacity='.55' d='M0 64C70 52 120 26 220 6V64Z'/%3E%3Cpath d='M70 64C130 58 175 44 220 32V64Z'/%3E%3C/svg%3E")
    right bottom / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 64' preserveAspectRatio='none'%3E%3Cpath fill-opacity='.55' d='M0 64C70 52 120 26 220 6V64Z'/%3E%3Cpath d='M70 64C130 58 175 44 220 32V64Z'/%3E%3C/svg%3E")
    right bottom / 100% 100% no-repeat;
}

:root[data-theme="dark"] .card.honesty-card::before {
  opacity: 0.12;
}

.honesty-head {
  align-items: center;
  padding: var(--sp-4) var(--sp-4) 0;
  border-bottom: 0;
}

.honesty-badge {
  display: grid;
  place-items: center;
  flex: none;
  width: calc(36px * var(--type-scale, 1));
  height: calc(36px * var(--type-scale, 1));
  border-radius: 50%;
  background: color-mix(in srgb, var(--gold) 14%, transparent);
}

/* The hairline between the mark and the title, as on the reference. A border on the title (not a
   separate element) so it always spans exactly the title's height, one line or three. */
.honesty-title {
  flex: 1;
  padding-left: var(--sp-3);
  border-left: 1px solid color-mix(in srgb, var(--gold) 32%, transparent);
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.honesty-body {
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4) var(--sp-4);
}

.honesty-lead,
.honesty-why {
  margin: 0;
  overflow-wrap: anywhere;
}

.honesty-lead {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink-soft);
}

.honesty-why {
  color: var(--ink-faint);
}

/* "Ask the front desk" — the only route from the honesty card to a human (ISS-09). */
.honesty-ask-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-3);
  margin-top: var(--sp-1);
}

/* The one primary action, filled terracotta. The gradient's lighter top stop is 30% --gold into
   --gold-deep, which keeps --on-brand at ~5:1 across the whole button (AA for body-size text);
   --gold itself would be 2.1:1. Same fill in both themes: deep terracotta reads on the dark card. */
.honesty-ask {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  max-width: 100%;
  min-height: 44px;
  padding: var(--sp-2) var(--sp-4) var(--sp-2) var(--sp-3);
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 30%, var(--gold-deep)), var(--gold-deep));
  color: var(--on-brand, #fff);
  box-shadow: 0 1px 2px rgba(74, 35, 64, 0.12), 0 8px 16px -10px rgba(163, 59, 33, 0.55);
  font: inherit;
  font-weight: 600;
  text-align: start;
  cursor: pointer;
  transition: filter var(--dur, 0.2s) var(--ease, ease), transform var(--dur, 0.2s) var(--ease, ease);
}

/* display:inline-flex outweighs the UA's [hidden] rule; a sent request must take the button away. */
.honesty-ask[hidden] {
  display: none;
}

.honesty-ask .icon {
  color: inherit;
}

.honesty-ask-label {
  min-width: 0;
  overflow-wrap: anywhere;
}

.honesty-ask-arrow {
  transition: transform var(--dur, 0.2s) var(--ease, ease);
}

.honesty-ask:hover:not([disabled]) {
  filter: brightness(1.07);
}

.honesty-ask:hover:not([disabled]) .honesty-ask-arrow {
  transform: translateX(2px);
}

.honesty-ask:active:not([disabled]) {
  transform: translateY(1px);
}

.honesty-ask:focus-visible {
  outline: 2px solid var(--brand-ink);
  outline-offset: 3px;
}

.honesty-ask[disabled] {
  opacity: 0.6;
  cursor: default;
}

.honesty-ask-status {
  min-width: 0;
  font-size: var(--fs-small);
  color: var(--ink-soft);
}

@media (prefers-reduced-motion: reduce) {
  .honesty-ask,
  .honesty-ask-arrow {
    transition: none;
  }

  .honesty-ask:hover:not([disabled]) .honesty-ask-arrow,
  .honesty-ask:active:not([disabled]) {
    transform: none;
  }
}

/* The AtithiVani host, the second door after the front desk (js/cards.js hostLink). */
.honesty-host {
  display: inline-block;
  margin-top: var(--sp-2);
  color: var(--brand-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* -------------------------------------------------------------------------------------------
 * Provenance footer — the chip that makes the receipt citable ("Sikkim permit rules v2026.1").
 * ----------------------------------------------------------------------------------------- */

.card-foot {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4) var(--sp-3);
  border-top: 1px dashed var(--hairline);
}

.prov {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--fs-micro);
  color: var(--ink-faint);
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  padding: 2px var(--sp-3);
}

.prov .icon {
  width: 1em;
  height: 1em;
}

/* -------------------------------------------------------------------------------------------
 * F · Routing trail + the rail
 * ----------------------------------------------------------------------------------------- */

.rail-section {
  margin-bottom: var(--sp-5);
}

.rail-heading {
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 var(--sp-3);
}

/* The breadcrumb: OrchestratorAgent -> ConciergeAgent, from `nodeInfo.path`. Deliberately
   subtle — it is a proof detail, not a headline. */
.trail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trail li {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-small);
  color: var(--ink-soft);
  padding: var(--sp-1) 0;
}

.trail li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-light);
  flex-shrink: 0;
}

.trail li + li {
  padding-left: var(--sp-4);
  position: relative;
}

.trail li + li::after {
  content: "";
  position: absolute;
  left: 3px;
  top: -2px;
  height: 10px;
  width: 1px;
  background: var(--hairline-strong);
}

.trail-agent {
  font-weight: 600;
  color: var(--ink);
}

/* A tool-call ledger for the current turn: one line per functionCall, ticked when its
   functionResponse arrives. */
.ledger {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.ledger li {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-small);
  font-family: var(--font-mono);
  color: var(--ink-soft);
}

.ledger .icon {
  flex-shrink: 0;
}

.ledger li[data-state="pending"] {
  opacity: 0.6;
}

.ledger li[data-state="ok"] .icon {
  color: var(--ok-ink);
}

.ledger li[data-state="unknown"] .icon {
  color: var(--warn-ink);
}

/* -------------------------------------------------------------------------------------------
 * The approval card — a confirmation-gated tool waiting on the guest (js/confirm.js).
 *
 * Deliberately not a `.card`. Those are *receipts*: something already looked up, rendered after
 * the fact. This is a decision that has not happened yet and spends the guest's money when it
 * does, so it reads as an interruption — accent rail, warm ground, and the consequence set at
 * body size rather than as fine print.
 * ------------------------------------------------------------------------------------------- */

/* A MODIFIER, not a second card implementation. The shell — surface, border, radius, shadow,
   entrance — comes from `.card`, which this element now also carries (js/confirm.js). What is left
   here is what actually makes it a confirmation: the accent rail, the warm ground, and its own
   padding, since it composes a title/consequence/facts/actions stack directly rather than the
   card-head/card-body/card-foot the grounded cards use. */
.confirm-card {
  width: 100%;
  background: color-mix(in srgb, var(--warn-bg) 55%, var(--surface));
  border-left-color: var(--accent);
  padding: var(--sp-4);
}

.confirm-title {
  font-weight: 650;
  color: var(--ink);
  margin-bottom: var(--sp-2);
}

/* Full body size on purpose: this is the disclosure being consented to, not a footnote. */
.confirm-consequence {
  font-size: var(--fs-small);
  color: var(--ink);
  line-height: 1.5;
}

.confirm-facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px var(--sp-3);
  margin: var(--sp-3) 0 0;
  font-size: var(--fs-small);
}

.confirm-facts dt {
  color: var(--ink-soft);
}

.confirm-facts dd {
  margin: 0;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}

.confirm-btn {
  font: inherit;
  font-size: var(--fs-small);
  border-radius: var(--radius-pill);
  padding: var(--sp-2) var(--sp-4);
  cursor: pointer;
  border: 1px solid var(--hairline-strong);
  background: var(--surface);
  color: var(--ink);
  min-height: 40px; /* a real touch target on a phone at a viewpoint */
}

.confirm-btn.approve {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
}

.confirm-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.confirm-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.confirm-outcome {
  margin-top: var(--sp-3);
  font-size: var(--fs-small);
  color: var(--ink-soft);
}

.confirm-card[data-decided] .confirm-consequence,
.confirm-card[data-decided] .confirm-facts {
  opacity: 0.6;
}

/* -------------------------------------------------------------------------------------------
 * Safety card — the "I feel unsafe" control. Calm, high-legibility, tap-to-call. No motion:
 * a distress moment is the last place for playful animation.
 * ----------------------------------------------------------------------------------------- */

.safety-card {
  border-color: color-mix(in srgb, var(--danger) 40%, var(--hairline));
  border-left: 4px solid var(--danger);
}

.safety-card .card-head .icon {
  color: var(--danger-ink);
}

.safety-reassure {
  margin: 0 0 var(--sp-3);
  color: var(--ink);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

/* The alert status — shown only while/after a request is actually filed (ISS-03). */
.safety-alert {
  margin: 0 0 var(--sp-3);
  color: var(--ink-soft);
  font-size: var(--fs-body);
  font-weight: 600;
}

.safety-calls {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.safety-call {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  min-height: 56px;
  padding: var(--sp-2) var(--sp-3) var(--sp-2) var(--sp-4);
  border-radius: var(--radius);
  border: 1px solid var(--hairline-strong);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.safety-call:hover {
  background: var(--bubble-out);
}

/* Touch has no hover, so the row needs a press state of its own — and a visible focus ring for
   keyboard/switch access, which the pill alone never gave. */
.safety-call:active {
  background: var(--bubble-out);
}

.safety-call:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.safety-call-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.safety-call-label {
  font-weight: 700;
  font-size: var(--fs-small);
  color: var(--ink);
}

.safety-call-number {
  font-size: var(--fs-body);
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* The front-desk row when the hotel has given no number: a line to read, not a button to tap. */
.safety-call-hint {
  font-size: var(--fs-small);
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.safety-call-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  flex-shrink: 0;
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-pill);
  background: var(--ok);
  color: #fff;
  font-weight: 700;
  font-size: var(--fs-small);
}

.safety-call-cta .icon {
  width: 15px;
  height: 15px;
}

/* Emergency (112) reads as urgent; the tourist helpline and front desk stay calm. */
.safety-call[data-tone="emergency"] {
  border-color: color-mix(in srgb, var(--danger) 45%, transparent);
}

.safety-call[data-tone="emergency"] .safety-call-cta {
  background: var(--danger);
}

/* -------------------------------------------------------------------------------------------
 * Operator marketplace — stays / cabs / activities / guides, each with a "Call to book" that
 * routes to the one operator number. Rendered into the #market-panel sheet by js/operators.js.
 * ----------------------------------------------------------------------------------------- */

.op-group {
  margin-top: var(--sp-4);
}

.op-group-label {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin: 0 0 var(--sp-3);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-ink);
}

.op-group-label .icon {
  width: calc(16px * var(--type-scale));
  height: calc(16px * var(--type-scale));
}

.op-group-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hairline);
}

.op-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: var(--sp-3);
}

/* The box. `border`/`box-shadow` here are dead weight, not a real declaration: .op-card is one of
   the panes glass.css's shared "PANE" rule repaints wholesale (background/border/box-shadow/blur),
   and that rule loads after this one at equal specificity, so it wins outright for every property
   they both set. Confirmed by measuring, not by reading — the computed border was --glass-line
   regardless of what this said. Left as the plain, honest values rather than "corrected" to match
   what glass.css actually paints, so a reader diffing this file in isolation isn't shown a false
   promise either way; css/daylight.css's radius override just below is the one property glass.css
   does NOT touch, which is why it is the one real fix in this pass. */
.op-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: var(--sp-4);
  box-shadow: var(--shadow-1);
}

.op-name {
  font-weight: 700;
  font-size: var(--fs-body);
  color: var(--ink);
}

.op-meta {
  font-size: var(--fs-small);
  color: var(--ink-soft);
  margin-top: 2px;
}

.op-route {
  font-size: var(--fs-small);
  color: var(--ink-soft);
  margin-top: 2px;
}

.op-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
}

.op-price {
  font-weight: 700;
  color: var(--brand-ink);
  font-size: var(--fs-small);
  font-variant-numeric: tabular-nums;
}

.op-langs {
  font-size: var(--fs-micro);
  color: var(--ink-soft);
}

.op-permit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-micro);
  font-weight: 600;
  color: var(--warn-ink);
  background: color-mix(in srgb, var(--warn) 14%, transparent);
  padding: 1px var(--sp-2);
  border-radius: var(--radius-pill);
}

.op-permit .icon {
  width: 13px;
  height: 13px;
}

.op-unverified {
  font-size: var(--fs-micro);
  color: var(--ink-faint);
  border: 1px solid var(--hairline-strong);
  padding: 1px var(--sp-2);
  border-radius: var(--radius-pill);
}

.op-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 44px;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: var(--fs-small);
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease);
}

.op-call .icon {
  width: 16px;
  height: 16px;
}

.op-call:hover {
  background: var(--brand-dark);
}

.op-error {
  color: var(--danger-ink);
  margin-top: var(--sp-4);
}

/* -------------------------------------------------------------------------------------------
 * Hotel menu card — in-room dining inside the conversation (js/menu_order.js)
 *
 * A self-contained card, never a page: the hotel as a small header, a welcome with a faint sprig,
 * the menu's sections, then one course's dishes with every course as a tab, a dish, Your order
 * and the confirmation. The dish list scrolls inside the card, so the card keeps one height while
 * the guest browses. Plum for what is chosen and the main action, warm orange for "add", ivory
 * paper, the display serif for headings — built from glass.css's palette, not a new one.
 * ----------------------------------------------------------------------------------------- */
.mo-card,
.req-pay {
  --mo-plum: var(--indigo, #4a2340);
  --mo-on-plum: var(--on-indigo, #fff3ea);
  --mo-heading: var(--indigo, #4a2340);
  --mo-accent: var(--ember, #c2571f); /* #fff7f1 on it: 5.7:1 */
  --mo-on-accent: #fff7f1;
  --mo-accent-ink: var(--brand-ink);
  /* warm hairlines, drawn from the plum — the shared --hairline is a cool teal-grey */
  --mo-line: color-mix(in srgb, var(--mo-plum) 11%, transparent);
  --mo-line-strong: color-mix(in srgb, var(--mo-plum) 20%, transparent);
  --mo-paper: color-mix(in srgb, var(--mo-accent) 2.5%, var(--surface));
  --mo-radius: 12px;
  --mo-radius-sm: 10px;
  --mo-ease: var(--ease-out-quart, cubic-bezier(0.16, 1, 0.3, 1));
}
:root[data-theme="dark"] .mo-card,
:root[data-theme="dark"] .req-pay {
  /* a step lighter than the night surface, so the chosen tab and the main action stand off it */
  --mo-plum: color-mix(in srgb, var(--indigo-lit, #593651) 82%, #ffb89d);
  --mo-heading: var(--ink);
  --mo-accent: var(--vani-lit, #f08c44);
  --mo-on-accent: #2a1226;
}

/* The card's own frame: one hairline all round and a whisper of shadow. The grounding cards' 4px
   status rail is dropped here on purpose — this card is a place to order, not a receipt to weigh,
   and its source is still stated in the footer. */
.card.mo-card[data-status] {
  /* The chat row shrink-wraps its content, so the card asks for its width rather than inheriting
     one: 36rem where the conversation is wide, the whole row on a phone. */
  width: 34rem;
  max-width: 100%;
  border: 1px solid var(--mo-line-strong);
  border-radius: 18px;
  background: var(--mo-paper);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 1px 2px rgba(74, 35, 64, 0.04), 0 12px 28px -24px rgba(74, 35, 64, 0.32);
}
.mo-card .card-body { gap: var(--sp-3); padding: var(--sp-3) var(--sp-4) var(--sp-4); color: var(--ink-soft); }
.mo-card .card-foot { padding-block: 6px; border-top-color: var(--mo-line); }

/* the hotel: a small signature — its mark, its name and what this card is — never a hero */
.mo-card .mo-hotel { gap: 10px; padding: 10px var(--sp-4); border-bottom: 1px solid var(--mo-line); }
.mo-card .mo-hotel .card-title { font-family: var(--font-serif); font-size: 1.12rem; font-weight: 600; line-height: 1.1; color: var(--mo-heading); overflow-wrap: anywhere; }
.mo-card .mo-hotel .card-title small { margin-top: 2px; font-family: var(--font-sans); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }

.mo-menu { container: mo / inline-size; display: grid; gap: var(--sp-3); min-width: 0; }
.mo-view { display: grid; gap: var(--sp-3); min-width: 0; }
.mo-head { display: grid; gap: 2px; }
.mo-title { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600; color: var(--mo-heading); overflow-wrap: anywhere; }
.mo-eyebrow { margin: 0; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mo-accent-ink); overflow-wrap: anywhere; }
.mo-row-sub { font-size: 0.78rem; color: var(--ink-faint); overflow-wrap: anywhere; }
.mo-checking { margin: 0; }
.mo-fine { margin: 0; font-size: 0.8rem; line-height: 1.4; color: var(--ink-faint); } /* 0.8rem floor: fine print is still read */
.mo-notice { display: flex; gap: var(--sp-2); align-items: flex-start; padding: var(--sp-2) var(--sp-3); border-radius: var(--mo-radius-sm); background: var(--warn-bg); color: var(--warn-ink); font-size: var(--fs-small); }
.mo-notice .icon { flex: none; width: 16px; height: 16px; margin-top: 1px; }

/* welcome — the restaurant, one line, and a sprig like the hotel's stationery */
.mo-welcome { position: relative; display: grid; gap: 2px; padding: 2px 4.75rem 0 0; }
.mo-welcome::after {
  content: "";
  position: absolute;
  top: -6px;
  right: -2px;
  width: 4.5rem;
  height: 5.75rem;
  background: var(--mo-heading);
  opacity: 0.18;
  -webkit-mask: url(/brand/botanical-sprig.svg) no-repeat center / contain;
  mask: url(/brand/botanical-sprig.svg) no-repeat center / contain;
  pointer-events: none;
}
.mo-welcome-title { margin: 0; font-family: var(--font-serif); font-size: 1.6rem; font-weight: 600; line-height: 1.08; letter-spacing: -0.005em; color: var(--mo-heading); }
.mo-welcome-line { margin: 2px 0 0; font-size: 0.78rem; color: var(--ink-faint); font-variant-numeric: tabular-nums; }

/* the menu's sections: one quiet row each, the name and the count */
.mo-sections { display: grid; gap: 6px; }
.mo-row { appearance: none; display: flex; align-items: center; gap: var(--sp-3); width: 100%; min-height: 3.5rem; padding: 10px 12px 10px 14px; border: 1px solid var(--mo-line); border-radius: var(--mo-radius); background: var(--surface); font: inherit; color: inherit; text-align: left; cursor: pointer; transition: background-color 0.15s, border-color 0.15s; }
.mo-row:hover { border-color: var(--mo-line-strong); background: color-mix(in srgb, var(--mo-plum) 3%, var(--surface)); }
.mo-row:focus-visible { outline: 2px solid var(--mo-plum); outline-offset: 1px; }
.mo-row-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.mo-row-name { font-weight: 600; font-size: 0.92rem; line-height: 1.25; color: var(--ink); overflow-wrap: anywhere; }
.mo-row-chev { flex: none; width: 15px; height: 15px; color: var(--ink-faint); transition: transform 0.15s; }
.mo-row:hover .mo-row-chev { transform: translateX(2px); }
.mo-badge { flex: none; padding: 1px 8px; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--mo-accent) 16%, var(--surface)); color: var(--mo-accent-ink); font-size: 0.72rem; font-weight: 700; font-variant-numeric: tabular-nums; }
/* The FSSAI marks, so the two differ by SHAPE and not only by colour: veg is a green square with a
   filled circle, non-veg a brown-red square with a filled triangle (point up). The label stays on the
   element (title + aria-label, js/menu_order.js vegMark). */
.mo-veg { flex: none; position: relative; width: 12px; height: 12px; margin-top: 0.22em; border: 1.5px solid currentColor; border-radius: 2px; color: var(--ok-ink); }
.mo-veg::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; background: currentColor; }
.mo-veg[data-tone="nonveg"] { color: var(--danger-ink); }
.mo-veg[data-tone="nonveg"]::after { inset: 1.5px 1px 2px; border-radius: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.mo-veg[data-tone="egg"], .mo-veg[data-tone="mixed"] { color: var(--warn-ink); }

/* the course tabs: the menu's broadest courses, scrolled sideways, never wrapped */
.mo-browse { display: grid; gap: 6px; min-width: 0; }
.mo-tabrow { display: flex; align-items: center; gap: 2px; min-width: 0; margin-right: calc(-1 * var(--sp-4)); }
.mo-iconbtn { appearance: none; position: relative; flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; padding: 0; border: 1px solid var(--mo-line-strong); border-radius: 50%; background: transparent; color: var(--ink-soft); cursor: pointer; transition: background-color 0.15s, color 0.15s; }
.mo-iconbtn::before { content: ""; position: absolute; inset: -6px; } /* a 44px target around a 32px disc */
.mo-iconbtn:hover { background: color-mix(in srgb, var(--mo-plum) 6%, var(--surface)); color: var(--ink); }
.mo-iconbtn:focus-visible { outline: 2px solid var(--mo-plum); outline-offset: 2px; }
.mo-iconbtn .icon { width: 15px; height: 15px; }
.mo-tabs {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 5px;
  padding: 4px var(--sp-4) 4px 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 2rem), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 2rem), transparent);
}
.mo-tabs::-webkit-scrollbar { display: none; }
.mo-tab { appearance: none; flex: none; display: inline-flex; align-items: center; gap: 5px; min-height: 2rem; padding: 0 0.8rem; border: 1px solid var(--mo-line-strong); border-radius: var(--radius-pill); background: transparent; color: var(--ink-soft); font: inherit; font-size: 0.8rem; font-weight: 600; line-height: 1; white-space: nowrap; cursor: pointer; transition: background-color 0.2s var(--mo-ease), border-color 0.2s var(--mo-ease), color 0.2s var(--mo-ease); }
.mo-tab:hover { border-color: color-mix(in srgb, var(--mo-plum) 40%, transparent); color: var(--ink); }
.mo-tab[aria-selected="true"] { border-color: var(--mo-plum); background: var(--mo-plum); color: var(--mo-on-plum); }
.mo-tab:focus-visible { outline: 2px solid var(--mo-accent); outline-offset: 1px; }
.mo-tab-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--mo-accent); }

/* the list scrolls inside the card; each section's name rides along at its top */
.mo-panel { display: grid; gap: var(--sp-3); max-height: min(27rem, 58vh); margin-right: calc(-1 * var(--sp-2)); padding-right: var(--sp-2); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--scroll-thumb, rgba(74, 35, 64, 0.24)) transparent; }
.mo-panel:focus-visible { outline: 2px solid var(--mo-plum); outline-offset: 2px; }
.mo-group { display: grid; gap: 6px; }
.mo-group-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-2); padding: 4px 0; background: var(--mo-paper); }
.mo-group-name { margin: 0; min-width: 0; font-family: var(--font-serif); font-size: 1.08rem; font-weight: 600; line-height: 1.15; color: var(--mo-heading); overflow-wrap: anywhere; }
.mo-group-count { flex: none; font-size: 0.72rem; color: var(--ink-faint); font-variant-numeric: tabular-nums; }

/* a dish */
.mo-dishes { display: grid; gap: 6px; }
/* The + (or − n +) sits in the price row, over the dish's own button, so the name and description
   keep the card's full width instead of wrapping around a column kept free for the control. */
.mo-dish { position: relative; display: block; border: 1px solid var(--mo-line); border-radius: var(--mo-radius); background: var(--surface); transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s; }
.mo-dish:hover { border-color: var(--mo-line-strong); box-shadow: 0 6px 16px -16px rgba(74, 35, 64, 0.45); }
.mo-dish[data-in-cart="1"] { border-color: color-mix(in srgb, var(--mo-accent) 40%, var(--mo-line)); background: color-mix(in srgb, var(--mo-accent) 3.5%, var(--surface)); }
.mo-dish-main { appearance: none; display: flex; align-items: flex-start; gap: var(--sp-3); width: 100%; min-width: 0; padding: 7px; border: 0; border-radius: var(--mo-radius); background: transparent; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.mo-dish-main:focus-visible { outline: 2px solid var(--mo-plum); outline-offset: -2px; }
.mo-dish-text { flex: 1; min-width: 0; display: grid; gap: 2px; padding-top: 1px; }
.mo-dish-name { display: flex; align-items: flex-start; gap: 6px; font-weight: 600; font-size: 0.92rem; line-height: 1.25; color: var(--ink); overflow-wrap: anywhere; }
.mo-dish-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.76rem; line-height: 1.35; color: color-mix(in srgb, var(--ink-soft) 84%, var(--surface)); }
/* the price row is as tall as the + (or − n +) laid over its right end, and no taller */
.mo-dish-foot { display: flex; align-items: center; gap: 8px; min-height: 2rem; margin-top: 2px; padding-right: 2.25rem; }
.mo-dish[data-in-cart="1"] .mo-dish-foot { padding-right: 6.25rem; }
.mo-dish[data-unavailable="1"] .mo-dish-foot { min-height: 0; padding-right: 0; }
.mo-price { font-weight: 700; font-size: 0.92rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.mo-dish-ctl { position: absolute; right: 9px; bottom: 8px; z-index: 1; }
.mo-dish-ctl .mo-step { padding: 1px; }
.mo-dish-ctl .mo-step-btn { width: 1.75rem; height: 1.75rem; font-size: 1rem; }
/* A dish that can't be ordered now stays on the menu, quieter, with the reason in words — no control. */
.mo-dish[data-unavailable="1"] .mo-dish-name,
.mo-dish[data-unavailable="1"] .mo-price { color: var(--ink-soft); }
.mo-unavailable { justify-self: start; display: inline-block; margin-top: 2px; padding: 1px 8px; border-radius: var(--radius-pill); background: var(--danger-bg); color: var(--danger-ink); font-size: 0.75rem; font-weight: 600; overflow-wrap: anywhere; }
.mo-unavailable-lg { margin: 0; padding: 4px 10px; font-size: var(--fs-small); }

/* a dish's marks — leaf (the hotel marked it vegetarian), star (the menu calls it special),
   heart (the menu calls it healthy). Small icons by the price; worded chips on the opened dish. */
.mo-mark { display: inline-grid; place-items: center; width: 1.25rem; height: 1.25rem; border-radius: 50%; }
.mo-mark .icon { width: 13px; height: 13px; }
.mo-mark .icon svg, .mo-mark-tag .icon svg { stroke-width: 2; }
.mo-mark[data-kind="veg"], .mo-mark-tag[data-kind="veg"] { color: var(--ok-ink); }
.mo-mark[data-kind="special"], .mo-mark-tag[data-kind="special"] { color: #c0392b; }
.mo-mark[data-kind="healthy"], .mo-mark-tag[data-kind="healthy"] { color: #c2415d; }
:root[data-theme="dark"] .mo-mark[data-kind="special"], :root[data-theme="dark"] .mo-mark-tag[data-kind="special"] { color: #ff8a7a; }
:root[data-theme="dark"] .mo-mark[data-kind="healthy"], :root[data-theme="dark"] .mo-mark-tag[data-kind="healthy"] { color: #ff9cb0; }
.mo-mark-tag { border-color: color-mix(in srgb, currentColor 30%, transparent); }
.mo-mark-tag .icon { width: 12px; height: 12px; }

/* tiny labels — supporting facts, never navigation */
.mo-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.mo-tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border: 1px solid var(--mo-line-strong); border-radius: var(--radius-pill); background: transparent; font-size: 0.7rem; font-weight: 600; color: var(--ink-soft); }
.mo-tag .mo-veg { width: 10px; height: 10px; margin-top: 0; }
.mo-tag .mo-veg::after { inset: 1.5px; }
.mo-tag-diet[data-tone="veg"] { border-color: color-mix(in srgb, var(--ok-ink) 30%, transparent); color: var(--ok-ink); }
.mo-tag-hotel { border-color: color-mix(in srgb, var(--mo-accent) 35%, transparent); background: color-mix(in srgb, var(--mo-accent) 6%, var(--surface)); color: var(--mo-accent-ink); }

/* + and − n + */
/* + is an outline in a soft apricot, not a filled orange disc: the action is clear without being the
   loudest thing on the dish. It fills faintly under the pointer. */
.mo-plus { appearance: none; position: relative; display: grid; place-items: center; width: 1.875rem; height: 1.875rem; padding: 0; border: 1.5px solid color-mix(in srgb, var(--mo-accent) 62%, transparent); border-radius: 50%; background: color-mix(in srgb, var(--mo-accent) 5%, var(--surface)); color: var(--mo-accent-ink); cursor: pointer; transition: transform 0.12s, background-color 0.15s, border-color 0.15s; }
.mo-plus::before { content: ""; position: absolute; inset: -7px; } /* a 44px target around a 30px disc */
.mo-plus:hover { border-color: var(--mo-accent); background: color-mix(in srgb, var(--mo-accent) 14%, var(--surface)); }
.mo-plus:active { transform: scale(0.92); }
.mo-plus:focus-visible { outline: 2px solid var(--mo-plum); outline-offset: 2px; }
.mo-plus .icon { width: 16px; height: 16px; }
.mo-step { flex: none; display: inline-flex; align-items: center; gap: 2px; padding: 2px; border: 1px solid color-mix(in srgb, var(--mo-accent) 45%, var(--mo-line-strong)); border-radius: var(--radius-pill); background: var(--surface); animation: mo-pop 0.18s var(--mo-ease) both; }
.mo-step-btn { appearance: none; position: relative; width: 2rem; height: 2rem; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--mo-accent-ink); font: inherit; font-size: 1.1rem; font-weight: 700; line-height: 1; cursor: pointer; transition: background-color 0.15s; }
.mo-step-btn::before { content: ""; position: absolute; inset: -6px; } /* a 44px target around a 32px disc */
.mo-step-btn:hover:not(:disabled) { background: color-mix(in srgb, var(--mo-accent) 12%, transparent); }
.mo-step-btn:focus-visible { outline: 2px solid var(--mo-plum); outline-offset: 0; }
.mo-step-btn:disabled { opacity: 0.35; cursor: default; }
.mo-step-n { min-width: 1.4rem; text-align: center; font-weight: 700; font-size: var(--fs-small); color: var(--ink); font-variant-numeric: tabular-nums; }

/* buttons */
.mo-primary, .mo-secondary, .mo-link { appearance: none; font: inherit; cursor: pointer; }
.mo-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 3rem; padding: 0 1.15rem; border: 0; border-radius: var(--radius-pill); background: var(--mo-plum); color: var(--mo-on-plum); font-weight: 700; letter-spacing: 0.01em; box-shadow: 0 8px 18px -14px rgba(42, 18, 38, 0.7); transition: filter 0.15s, transform 0.12s; }
.mo-primary:hover:not(:disabled) { filter: brightness(1.15); }
.mo-primary:active:not(:disabled) { transform: scale(0.985); }
.mo-primary:focus-visible { outline: 2px solid var(--mo-accent); outline-offset: 2px; }
.mo-primary:disabled { opacity: 0.55; cursor: default; }
.mo-primary .icon { width: 18px; height: 18px; }
.mo-primary-sum { font-variant-numeric: tabular-nums; }
.mo-primary-sum::before { content: "·"; margin-right: 8px; opacity: 0.6; }
.mo-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 2.625rem; padding: 0 var(--sp-4); border: 1px solid color-mix(in srgb, var(--mo-accent) 50%, transparent); border-radius: var(--radius-pill); background: transparent; color: var(--mo-accent-ink); font-size: var(--fs-small); font-weight: 700; transition: background-color 0.15s; }
.mo-secondary:hover:not(:disabled) { background: color-mix(in srgb, var(--mo-accent) 7%, transparent); }
.mo-secondary:focus-visible { outline: 2px solid var(--mo-plum); outline-offset: 2px; }
.mo-secondary:disabled { opacity: 0.5; cursor: default; }
.mo-secondary .icon { width: 16px; height: 16px; }
.mo-link { min-height: 2.625rem; padding: 0 var(--sp-2); border: 0; background: none; color: var(--ink-faint); font-size: 0.8rem; font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; }
.mo-link:hover:not(:disabled) { color: var(--ink); }
.mo-link:focus-visible { outline: 2px solid var(--mo-plum); outline-offset: 2px; border-radius: 6px; }
.mo-link:disabled { opacity: 0.5; cursor: default; }
.mo-wide { width: 100%; }

/* sub-header with Back */
.mo-subhead { display: flex; align-items: center; gap: var(--sp-2); min-width: 0; }
.mo-back { appearance: none; display: inline-flex; align-items: center; gap: 2px; max-width: 100%; min-height: 2rem; padding: 0 0.75rem 0 0.4rem; border: 1px solid var(--mo-line-strong); border-radius: var(--radius-pill); background: transparent; color: var(--ink-soft); font: inherit; font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: background-color 0.15s, color 0.15s; }
.mo-back:hover { background: color-mix(in srgb, var(--mo-plum) 6%, var(--surface)); color: var(--ink); }
.mo-back:focus-visible { outline: 2px solid var(--mo-plum); outline-offset: 2px; }
.mo-back span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mo-back .icon { flex: none; width: 15px; height: 15px; }
.mo-backto { justify-self: start; }

/* a dish, opened */
.mo-itemview { display: grid; gap: 10px; }
.mo-detail { display: grid; gap: 8px; }
.mo-detail-top { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; }
.mo-detail-title { flex: 1; min-width: 0; display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); }
.mo-detail-name { margin: 0; min-width: 0; font-family: var(--font-serif); font-size: 1.45rem; font-weight: 600; line-height: 1.1; color: var(--mo-heading); overflow-wrap: anywhere; }
.mo-detail-price { flex: none; font-family: var(--font-serif); font-size: 1.35rem; font-weight: 700; line-height: 1.1; color: var(--mo-heading); font-variant-numeric: lining-nums tabular-nums; }
.mo-detail-desc { margin: -2px 0 0; font-size: 0.84rem; line-height: 1.45; color: var(--ink-soft); }
.mo-variants { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 2px; }
.mo-variant { appearance: none; display: inline-flex; align-items: baseline; gap: 6px; min-height: 2.25rem; padding: 0 0.85rem; border: 1px solid var(--mo-line-strong); border-radius: var(--radius-pill); background: var(--surface); font: inherit; font-size: var(--fs-small); color: var(--ink); cursor: pointer; align-items: center; transition: border-color 0.15s, background-color 0.15s; }
.mo-variant[aria-checked="true"] { border-color: var(--mo-plum); background: color-mix(in srgb, var(--mo-plum) 7%, var(--surface)); box-shadow: inset 0 0 0 1px var(--mo-plum); font-weight: 700; }
.mo-variant:focus-visible { outline: 2px solid var(--mo-accent); outline-offset: 2px; }
.mo-variant-price { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.mo-in-order { display: flex; align-items: center; gap: 6px; margin: 0; font-size: var(--fs-small); font-weight: 600; color: var(--ok-ink); }
.mo-in-order .icon { width: 15px; height: 15px; }
/* quantity, then the action it sizes, directly under it — one block, never two */
.mo-addbar { display: grid; gap: 10px; padding-top: 10px; border-top: 1px solid var(--mo-line); }
.mo-qty { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.mo-qty-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }
.mo-addbar .mo-step-btn { width: 2.25rem; height: 2.25rem; }
.mo-addbar .mo-step-n { min-width: 1.75rem; }

/* the guest's question answered first: just the asked-for dishes or the meal's sections, a clear
   "Sorry — … is sold out right now" when one can't be ordered, and the full menu one tap away */
.mo-focus { display: grid; gap: var(--sp-3); }
.mo-focus-head { display: grid; gap: 2px; }
.mo-focus-label { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 600; line-height: 1.15; color: var(--mo-heading); overflow-wrap: anywhere; }
.mo-sorry { display: flex; gap: var(--sp-2); align-items: flex-start; padding: var(--sp-2) var(--sp-3); border: 1px solid var(--danger-line); border-radius: var(--mo-radius-sm); background: var(--danger-bg); color: var(--danger-ink); font-size: var(--fs-small); font-weight: 600; }
.mo-sorry .icon { flex: none; width: 16px; height: 16px; margin-top: 1px; }

/* Your order */
/* Your order: part of the same card, not a box inside it — a rule above, then hairlines between */
.mo-order { container: mo-order / inline-size; display: grid; gap: 10px; padding-top: var(--sp-3); border-top: 1px solid var(--mo-line-strong); animation: mo-rise 0.22s var(--mo-ease) both; }
.mo-order-head { display: grid; gap: 1px; }
.mo-order-title { margin: 0; font-family: var(--font-serif); font-size: 1.35rem; font-weight: 600; line-height: 1.1; color: var(--mo-heading); }
.mo-order-hint { margin: 0; font-size: 0.76rem; color: var(--ink-faint); }
.mo-lines { list-style: none; margin: 0; padding: 0; display: grid; }
.mo-line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; grid-template-areas: "text step total remove"; align-items: center; gap: var(--sp-2); padding: 9px 0; border-top: 1px solid var(--mo-line); }
.mo-line:first-child { padding-top: 2px; border-top: 0; }
.mo-line .mo-step { padding: 1px; }
.mo-line .mo-step-btn { width: 1.75rem; height: 1.75rem; font-size: 1rem; }
.mo-line .mo-step-btn::before { inset: -8px; } /* still 44px around the smaller 28px disc */
.mo-line-text { grid-area: text; display: grid; gap: 1px; min-width: 0; }
.mo-line > .mo-step { grid-area: step; animation: none; }
.mo-line-name { font-weight: 600; font-size: var(--fs-small); color: var(--ink); overflow-wrap: break-word; }
.mo-line-total { grid-area: total; min-width: 3.4rem; text-align: right; font-weight: 700; font-size: var(--fs-small); color: var(--ink); font-variant-numeric: tabular-nums; }
.mo-remove { grid-area: remove; appearance: none; position: relative; display: grid; place-items: center; width: 2rem; height: 2rem; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink-faint); cursor: pointer; transition: background-color 0.15s, color 0.15s; }
.mo-remove::before { content: ""; position: absolute; inset: -6px; } /* a 44px target around a 32px disc */
.mo-remove .icon { width: 16px; height: 16px; }
.mo-remove:hover:not(:disabled) { background: var(--danger-bg); color: var(--danger-ink); }
.mo-remove:focus-visible { outline: 2px solid var(--mo-plum); outline-offset: 1px; }
/* A narrow card (a phone): the name on the first row, − n +, amount and remove under it. */
@container mo-order (max-width: 25rem) {
  .mo-line { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "text text text" "step total remove"; row-gap: 6px; align-items: start; }
  .mo-line > .mo-step { justify-self: start; }
  .mo-line-total, .mo-remove { align-self: center; }
}
.mo-paynow { display: grid; gap: 6px; margin-top: 4px; }
/* The way the guest picked is no longer offered and the default was picked again — said once, quietly. */
.mo-pay-note { margin: 4px 0 0; font-size: var(--fs-small); color: var(--warn-ink); }
/* Ordering could not be loaded (network / server): an alert with Retry, never "ordering is closed". */
.mo-notice-error { align-items: center; background: var(--danger-bg); color: var(--danger-ink); }
.mo-notice-error > span { flex: 1; }
.mo-notice-retry { flex: none; min-height: 2rem; }
/* Pay now under a held order in "Your requests" — the menu card's own buttons, on the guest's list. */
.req-pay { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.req-pay .mo-primary { min-height: 2.5rem; padding: 0 1rem; font-size: var(--fs-small); }
.req-pay .mo-cancel-error { flex-basis: 100%; margin: 0; text-align: left; }
.mo-paynow-note { margin: 0; padding: 0.7rem 0.75rem; border-radius: var(--mo-radius-sm); background: color-mix(in srgb, var(--mo-plum) 8%, transparent); color: var(--ink); font-size: var(--fs-small); text-align: center; }
.mo-pay { display: grid; gap: 6px; }
.mo-pay-opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 0.6rem 0.75rem; border: 1px solid var(--mo-line-strong); border-radius: var(--mo-radius-sm); background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; }
.mo-pay-opt:disabled { opacity: 0.6; cursor: default; }
.mo-pay-opt[aria-checked="true"] { border-color: var(--mo-plum); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mo-plum) 14%, transparent); }
.mo-pay-opt:focus-visible { outline: 2px solid var(--mo-plum); outline-offset: 2px; }
.mo-pay-dot { flex: none; width: 16px; height: 16px; border: 2px solid var(--mo-line-strong); border-radius: 50%; }
.mo-pay-opt[aria-checked="true"] .mo-pay-dot { border-color: var(--mo-plum); background: radial-gradient(circle, var(--mo-plum) 0 40%, transparent 45%); }
.mo-pay-text { display: grid; gap: 1px; font-size: var(--fs-small); }
.mo-pay-text small { font-size: 0.72rem; color: var(--ink-faint); }
.mo-note { display: flex; align-items: center; gap: 8px; min-height: 2.5rem; padding: 0 0.75rem; border: 1px solid var(--mo-line-strong); border-radius: var(--mo-radius-sm); background: var(--surface); color: var(--ink-faint); cursor: text; transition: border-color 0.15s, box-shadow 0.15s; }
.mo-note:focus-within { border-color: var(--mo-plum); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mo-plum) 14%, transparent); }
.mo-note .icon { flex: none; width: 15px; height: 15px; }
/* NEVER below 16px: iOS Safari zooms the page in on focusing a smaller field (the same guard as
   daylight.css's sign-in fields). */
.mo-note input { flex: 1; min-width: 0; padding: 0.55rem 0; border: 0; background: transparent; font: inherit; font-size: max(16px, var(--fs-small)); color: var(--ink); outline: none; }
.mo-note input::placeholder { color: var(--ink-faint); }
.mo-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; border-top: 1px solid var(--mo-line); font-family: var(--font-serif); font-size: 1.2rem; font-weight: 600; color: var(--mo-heading); }
.mo-total strong { font-size: 1.45rem; font-weight: 700; font-variant-numeric: lining-nums tabular-nums; }
.mo-fail { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-2) var(--sp-3); border-radius: var(--mo-radius-sm); background: var(--danger-bg); }
.mo-fail > div { display: grid; gap: 1px; min-width: 0; font-size: var(--fs-small); color: var(--ink); }
.mo-fail > .icon { flex: none; width: 18px; height: 18px; color: var(--danger-ink); }
.mo-fail strong { color: var(--danger-ink); }
.mo-order-actions { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); }

/* small pill actions — Keep browsing / Clear order, Cancel order / Order something else */
.mo-chip { appearance: none; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 2.125rem; padding: 0 0.85rem; border: 1px solid var(--mo-line-strong); border-radius: var(--radius-pill); background: transparent; color: var(--ink-soft); font: inherit; font-size: 0.8rem; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background-color 0.15s, border-color 0.15s, color 0.15s; }
.mo-chip::before { content: ""; position: absolute; inset: -5px 0; } /* a 44px-tall target */
.mo-chip .icon { flex: none; width: 14px; height: 14px; }
.mo-chip:hover:not(:disabled) { border-color: color-mix(in srgb, var(--mo-plum) 35%, transparent); background: color-mix(in srgb, var(--mo-plum) 4%, transparent); color: var(--ink); }
.mo-chip:focus-visible { outline: 2px solid var(--mo-plum); outline-offset: 2px; }
.mo-chip:disabled { opacity: 0.5; cursor: default; }
.mo-chip-go { border-color: color-mix(in srgb, var(--mo-accent) 50%, transparent); color: var(--mo-accent-ink); }
.mo-chip-go:hover:not(:disabled) { border-color: var(--mo-accent); background: color-mix(in srgb, var(--mo-accent) 7%, transparent); color: var(--mo-accent-ink); }
.mo-chip-quiet { border-color: transparent; color: var(--ink-faint); }
.mo-chip-quiet:hover:not(:disabled) { border-color: transparent; background: var(--danger-bg); color: var(--danger-ink); }
.mo-chip-stop { border-color: color-mix(in srgb, var(--danger-ink) 45%, transparent); color: var(--danger-ink); }
.mo-chip-stop:hover:not(:disabled) { border-color: var(--danger-ink); background: var(--danger-bg); color: var(--danger-ink); }

/* sent — and what happens next */
.mo-placed { display: grid; gap: 12px; animation: mo-rise 0.24s var(--mo-ease) both; }
.mo-placed-head { position: relative; display: grid; justify-items: center; gap: 3px; padding: 4px 2.75rem 0; text-align: center; }
/* the stationery: a sprig either side of the cloche, leaning in toward it */
.mo-placed-head::before,
.mo-placed-head::after {
  content: "";
  position: absolute;
  top: 4px;
  width: 3.25rem;
  height: 4.5rem;
  background: var(--mo-heading);
  opacity: 0.2;
  -webkit-mask: url(/brand/botanical-sprig.svg) no-repeat center / contain;
  mask: url(/brand/botanical-sprig.svg) no-repeat center / contain;
  pointer-events: none;
}
.mo-placed-head::before { left: calc(50% - 6.4rem); transform: scaleX(-1) rotate(-14deg); }
.mo-placed-head::after { right: calc(50% - 6.4rem); transform: rotate(-14deg); }
.mo-placed-mark { position: relative; display: grid; place-items: center; width: 4.25rem; height: 4.25rem; margin-bottom: 6px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--mo-accent) 14%, var(--surface)) 0 62%, color-mix(in srgb, var(--mo-accent) 7%, var(--surface)) 63%); color: var(--mo-accent-ink); }
.mo-placed-mark .icon { width: 30px; height: 30px; }
.mo-placed-mark .icon svg { stroke-width: 1.5; }
/* two small sparkles over the cloche, as on the hotel's card */
.mo-placed-mark::before, .mo-placed-mark::after { content: "\2726"; position: absolute; color: var(--mo-accent); line-height: 1; pointer-events: none; }
.mo-placed-mark::before { top: -6px; right: -2px; font-size: 13px; }
.mo-placed-mark::after { top: 10px; left: -9px; font-size: 8px; opacity: 0.75; }
.mo-placed[data-stage="cancelled"] .mo-placed-mark,
.mo-placed[data-stage="declined"] .mo-placed-mark { background: color-mix(in srgb, var(--mo-plum) 7%, var(--surface)); color: var(--ink-soft); }
.mo-placed[data-stage="cancelled"] .mo-placed-mark::before, .mo-placed[data-stage="cancelled"] .mo-placed-mark::after,
.mo-placed[data-stage="declined"] .mo-placed-mark::before, .mo-placed[data-stage="declined"] .mo-placed-mark::after { display: none; }
.mo-placed[data-stage="cancelled"] .mo-placed-mark .icon, .mo-placed[data-stage="declined"] .mo-placed-mark .icon { width: 22px; height: 22px; }
.mo-placed-title { margin: 0; max-width: 16em; font-family: var(--font-serif); font-size: 1.4rem; font-weight: 600; line-height: 1.12; color: var(--mo-heading); text-wrap: balance; }
.mo-placed-body { margin: 0; font-size: 0.8rem; color: var(--ink-faint); }
.mo-placed-box { display: grid; gap: 2px; padding: 10px 14px 4px; border: 1px solid var(--mo-line); border-radius: var(--mo-radius); background: var(--surface); }
.mo-placed-box .mo-total { padding-top: 0; border-top: 0; font-size: 1.05rem; }
.mo-placed-box .mo-total strong { font-size: 1.3rem; }
.mo-placed-details { border-top: 1px solid var(--mo-line); }
.mo-placed-details summary { display: flex; align-items: center; gap: 6px; min-height: 2.25rem; list-style: none; font-size: 0.8rem; color: var(--ink-soft); cursor: pointer; border-radius: 6px; }
.mo-placed-details summary::-webkit-details-marker { display: none; }
.mo-placed-details summary:focus-visible { outline: 2px solid var(--mo-plum); outline-offset: 2px; }
.mo-placed-more { margin-left: auto; font-weight: 600; color: var(--mo-accent-ink); }
.mo-placed-details summary .icon { width: 14px; height: 14px; color: var(--mo-accent-ink); transition: transform 0.2s; }
.mo-placed-details[open] summary .icon { transform: rotate(180deg); }
.mo-placed-lines { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 4px; }
.mo-placed-lines li { display: flex; justify-content: space-between; gap: var(--sp-2); font-size: 0.8rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.mo-track-wrap { display: grid; gap: 10px; padding: 0 var(--sp-1); }
.mo-track-wrap .mo-eyebrow { color: var(--ink-faint); }
.mo-track { list-style: none; margin: 0; padding: 0; display: grid; }
.mo-track-row { position: relative; display: flex; align-items: flex-start; gap: var(--sp-3); padding-bottom: 14px; }
.mo-track-row:last-child { padding-bottom: 0; }
.mo-track-row::before { content: ""; position: absolute; top: 24px; bottom: 2px; left: 10.5px; width: 1.5px; background: var(--mo-line-strong); transition: background-color 0.3s; }
.mo-track-row[data-state="done"]:has(+ .mo-track-row[data-state="done"])::before { background: var(--mo-plum); }
.mo-track-row:last-child::before { display: none; }
.mo-track-dot { flex: none; position: relative; display: grid; place-items: center; width: 22px; height: 22px; border: 1.5px solid var(--mo-line-strong); border-radius: 50%; background: var(--surface); transition: background-color 0.3s, border-color 0.3s; }
.mo-track-row[data-state="done"] .mo-track-dot { border-color: var(--mo-plum); background: var(--mo-plum); color: var(--mo-on-plum); animation: mo-pop 0.25s var(--mo-ease) both; }
/* the step happening now: a plum ring with a soft pulse */
.mo-track-row[data-state="now"] .mo-track-dot { border-color: var(--mo-plum); }
.mo-track-row[data-state="now"] .mo-track-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mo-plum); animation: mo-pulse 1.6s ease-in-out infinite; }
.mo-track-row[data-state="no"] .mo-track-dot { border-color: var(--danger-ink); background: var(--danger-bg); color: var(--danger-ink); }
.mo-track-dot .icon { width: 13px; height: 13px; }
.mo-track-text { display: grid; gap: 1px; padding-top: 1px; font-size: var(--fs-small); color: var(--ink-faint); }
.mo-track-row[data-state="done"] .mo-track-text, .mo-track-row[data-state="now"] .mo-track-text { font-weight: 600; color: var(--ink); }
.mo-track-row[data-state="no"] .mo-track-text { font-weight: 600; color: var(--danger-ink); }
.mo-track-text small { font-size: var(--fs-micro); font-weight: 400; color: var(--ink-faint); }

/* Cancel order / Order something else — one compact row, centred, never a second card */
.mo-placed-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.mo-ask { flex-basis: 100%; text-align: center; font-size: 0.8rem; font-weight: 600; color: var(--ink); }
.mo-cancel-hint { margin-top: -4px; text-align: center; }
.mo-cancel-error { margin: -2px 0 0; text-align: center; font-size: 0.78rem; font-weight: 600; color: var(--danger-ink); }

/* the bar: how many, how much, and the way into the review. In the flow under the list, not
   sticky: the list scrolls inside the card, so the bar is always just below it — and a sticky bar
   sat over the list's last + buttons and took the guest's tap. */
.mo-cartbar { display: flex; align-items: center; gap: var(--sp-3); padding: 6px 6px 6px var(--sp-4); border-radius: var(--radius-pill); background: var(--mo-plum); color: var(--mo-on-plum); box-shadow: 0 12px 26px -14px rgba(42, 18, 38, 0.6); animation: mo-rise 0.22s var(--mo-ease) both; }
.mo-cartbar-text { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--sp-2); font-size: var(--fs-small); }
.mo-cartbar-text strong { font-size: var(--fs-body); }
.mo-cartbar-btn { appearance: none; flex: none; display: inline-flex; align-items: center; gap: 4px; min-height: 2.5rem; padding: 0 0.8rem 0 1.1rem; border: 0; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--mo-accent) 22%, #fff7f1); color: #4a2340; font: inherit; font-weight: 700; cursor: pointer; transition: background-color 0.15s; }
.mo-cartbar-btn:hover { background: color-mix(in srgb, var(--mo-accent) 32%, #fff7f1); }
.mo-cartbar-btn:focus-visible { outline: 2px solid var(--mo-on-plum); outline-offset: 2px; }
.mo-cartbar-btn .icon { width: 16px; height: 16px; }

/* motion: only where it tells the guest something changed */
.mo-enter { animation: mo-fade 0.2s var(--mo-ease) both; }
@keyframes mo-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes mo-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes mo-pop { from { transform: scale(0.9); opacity: 0.4; } to { transform: none; opacity: 1; } }
@keyframes mo-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.75); } }
@media (prefers-reduced-motion: reduce) {
  .mo-card *, .mo-card *::before, .mo-card *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 380px) {
  .mo-card .card-body { padding-inline: var(--sp-3); }
  .mo-tabrow { margin-right: calc(-1 * var(--sp-3)); }
  .mo-welcome-title { font-size: 1.45rem; }
}

/* -------------------------------------------------------------------------------------------
 * Arrival briefing (js/welcome_briefing.js) — the first thing a new guest reads.
 *
 * A welcome, not a notice: the band wears the header's plum and the range silhouette (the same
 * --header-bg and --hero-range the app's own chrome uses), the greeting is set in the display serif,
 * and everything under it is calm reference — small titled sections with one glyph each, the stay as
 * chips, the weather as one large number. Colour is reserved for meaning: a red dot is a reported
 * closure, amber is caution, green is a person's "open", grey is "no report".
 * ----------------------------------------------------------------------------------------- */

.welcome-brief-row {
  /* The card is the row; no bubble padding, full width of the log column. */
  width: 100%;
}

.welcome-brief {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--card-face, var(--surface));
  border: 1px solid var(--hairline);
  box-shadow: var(--lift);
}

.wb-hero {
  position: relative;
  padding: var(--sp-4) var(--sp-4) calc(var(--sp-4) + 28px);
  background: var(--hero-range) bottom / 100% 46px no-repeat, var(--header-bg, var(--accent));
  color: var(--header-ink, #fff);
}

.wb-eyebrow {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--header-ink-soft, rgba(255, 255, 255, 0.8));
}

.wb-title {
  margin-top: var(--sp-1);
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 600;
  line-height: 1.1;
}

.wb-lede {
  margin: var(--sp-2) 0 0;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--header-ink-soft, rgba(255, 255, 255, 0.85));
}

.wb-body {
  padding: var(--sp-3) var(--sp-4) var(--sp-4);
}

.wb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: calc(-1 * var(--sp-1));
}

.wb-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: var(--brand-wash);
  color: var(--ink);
  font-size: 0.8rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}

.wb-chip .icon {
  width: 14px;
  height: 14px;
  color: var(--brand);
}

.wb-chip-link {
  font-weight: 600;
  border: 1px solid var(--brand-wash-strong);
}

.wb-section {
  margin-top: var(--sp-4);
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--ink);
}

.wb-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 var(--sp-2);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.wb-section-title .icon {
  width: 16px;
  height: 16px;
  color: var(--brand);
}

.wb-now {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.wb-temp {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
}

.wb-now-text {
  display: flex;
  flex-direction: column;
}

.wb-condition {
  font-weight: 600;
}

.wb-wear,
.wb-note,
.wb-source {
  color: var(--ink-soft);
}

.wb-note {
  margin: var(--sp-1) 0 0;
}

.wb-source {
  margin: 2px 0 0;
  font-size: 0.78rem;
}

.wb-road {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 6px 0;
}

.wb-road + .wb-road {
  border-top: 1px solid var(--hairline);
}

.wb-road-text {
  display: flex;
  flex-direction: column;
}

.wb-road-name {
  font-weight: 600;
}

.wb-dot {
  flex: none;
  width: 9px;
  height: 9px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--ink-faint);
}

.wb-road.sev-closed .wb-dot { background: var(--danger, #b3261e); }
.wb-road.sev-caution .wb-dot { background: var(--warn, #c98a12); }
.wb-road.sev-open .wb-dot { background: var(--ok, var(--pine)); }
.wb-road.sev-closed .wb-road-name { color: var(--danger-ink); }

.wb-places,
.wb-asks,
.wb-host-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
}

.wb-tips {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wb-tip {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 6px 0;
}

.wb-tip .icon {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: var(--brand);
}

.wb-tip[hidden] {
  display: none;
}

.wb-host-section {
  padding: var(--sp-3);
  border-radius: var(--radius);
  background: var(--brand-wash);
}

.wb-host {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.wb-avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--header-bg, var(--accent));
  color: var(--header-ink, #fff);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
}

.wb-host-name {
  font-weight: 650;
  font-size: 1rem;
}

.wb-ask,
.wb-place,
.wb-host-btn,
.wb-close,
.wb-link {
  font: inherit;
  font-size: var(--fs-small);
  cursor: pointer;
}

.wb-ask,
.wb-place {
  min-height: 40px;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline-strong);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
}

.wb-place {
  border-color: var(--brand-wash-strong);
  background: var(--brand-wash);
}

.wb-host-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: var(--on-brand, #fff);
  font-weight: 600;
  text-decoration: none;
}

.wb-host-btn .icon {
  width: 16px;
  height: 16px;
}

.wb-link {
  margin-top: var(--sp-1);
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--brand-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wb-close {
  display: block;
  width: 100%;
  margin-top: var(--sp-4);
  min-height: 44px;
  border-radius: var(--radius-pill);
  border: 0;
  background: var(--header-bg, var(--accent));
  color: var(--header-ink, var(--accent-ink));
  font-weight: 650;
}

.wb-ask:focus-visible,
.wb-place:focus-visible,
.wb-host-btn:focus-visible,
.wb-close:focus-visible,
.wb-link:focus-visible,
.wb-chip-link:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* =============================================================================================
 * "READY FOR THE HILLS" — the trip card and the readiness card (js/trip.js).
 *
 * The trip card IS a guided card (.pref-card.guided-card, css/daylight.css); only its "Not now"
 * sits outside it. The readiness card wears the same paper (.pref-card) and adds a list: one line
 * per sourced rule, the trip leg as a small serif heading, official links as quiet underlined text.
 * ------------------------------------------------------------------------------------------- */
.trip-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 100%;
}
.trip-wrap > .pref-card {
  align-self: stretch;
}
.trip-not-now {
  margin-top: 2px;
}
.ready-section + .ready-section {
  margin-top: var(--sp-3, 12px);
}
.ready-leg {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--violet-deep);
}
.ready-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.ready-item {
  padding: 9px 11px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--surface);
}
/* The one line that is about safety, not comfort: the CDC red flags. Marked by its edge, not by
   alarm colour — it is a thing to know, not a warning sign. */
.ready-item.ready-health {
  border-left: 3px solid var(--violet-deep);
}
.ready-text {
  margin: 0;
  font-size: var(--fs-small);
  line-height: 1.45;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.ready-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 6px;
}
.ready-link {
  font-size: var(--fs-tiny, 0.72rem);
  font-weight: 600;
  color: var(--violet-deep);
  text-underline-offset: 3px;
}
.ready-actions {
  margin-top: var(--sp-3, 12px);
}
.ready-meal {
  width: 100%;
}
.ready-form {
  margin-top: var(--sp-3, 12px);
  padding-top: var(--sp-3, 12px);
  border-top: 1px solid var(--hairline);
}
.ready-stepper {
  align-items: center;
}
.ready-count {
  min-width: 2ch;
  text-align: center;
  font-weight: 700;
}
.ready-link:focus-visible,
.trip-not-now:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* "On the way" (js/on_the_way.js): four big tiles — games, travel prep, running late, the road —
 * then whichever card a tile opens, inside the same paper. Big targets: it is used in a moving car. */
.way-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-2, 8px);
  margin-top: var(--sp-2, 8px);
}
.way-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-height: 96px;
  padding: 12px;
  border: 1px solid var(--hairline-strong);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.way-tile .icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--lavender, var(--brand-wash));
  color: var(--brand-ink, var(--brand));
}
.way-tile .icon svg { width: 20px; height: 20px; }
.way-tile-games { background: var(--indigo, var(--surface)); color: var(--on-indigo, var(--ink)); border-color: transparent; }
.way-tile-games .way-tile-desc { color: inherit; opacity: 0.85; }
.way-tile-text { display: flex; flex-direction: column; gap: 2px; }
.way-tile-name { font-weight: 700; }
.way-tile-desc { color: var(--ink-soft); font-size: 0.85em; line-height: 1.3; }
.way-panel:empty { display: none; }
.way-panel { margin-top: var(--sp-3, 12px); }
.way-panel > .pref-card { box-shadow: none; }
.way-chips .pref-chip { min-height: 44px; }
.way-or { display: flex; align-items: center; gap: 8px; }
.way-time { max-width: 9em; }
.way-fallback-links { display: flex; gap: 8px; flex-wrap: wrap; }
.way-fallback-links .pref-chip { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.way-src { color: var(--ink-faint); font-size: 0.85em; }
