/* ============================================================================
   Sanam Platform — ONE F2 design system (platform-wide, LIVE app layer).

   This is the unified stylesheet behind EVERY Sanam surface: the role-aware
   landing, the Sanam (founder/ops) portal, the Supplier portal, the MT /
   regulator view, the buyer storefront, AND the live availability calendar. It
   carries the proven supplier-platform F2 system (originally a separate
   operator.css, now folded in here and deleted — no parallel path) so all
   surfaces feel like ONE Sanam.

   Design law (kept from the wedge demo + the supplier platform):
     * ONE :root token block — a re-skin is a token swap, never a structural edit.
     * Logical CSS properties throughout — a single sheet serves LTR + RTL.
     * Brand = F2 (founder-approved): Cream / Charcoal / Dallah-Copper;
       Marcellus + Hanken Grotesk + Amiri; warm-premium, calm, confident.
     * Copper does the work; the land palette is chart/category only.
     * Negatives in Oud (--danger); alarm-red reserved for destructive systems.
     * Numbers never jitter (tabular-nums); color is never the only signal.
   Spec: 08-shared/cto-mvp-program/02_supplier_ux/design_system.md +
         08-shared/cto-mvp-program/ux/00_journeys_and_ia.md.

   The calendar runs on THIS sheet too (operator.css is deleted); this is the
   single shared shell the whole platform loads — one :root token block.
   ========================================================================== */

:root {
  /* Ground (warm neutrals) */
  --cream: #F4EDE2; --cream-raised: #FBF7EF; --cream-sunk: #EBE2D3; --sand-line: #DED2BE;
  /* Ink (charcoal family). --ink-3 darkened to #6E5E49 so caption/hint/soon-tag
     text clears WCAG AA 4.5:1 on cream AND cream-sunk (was #897760 = 3.7:1). */
  --charcoal: #2B1F16; --ink-2: #5C4B3A; --ink-3: #6E5E49; --ink-line: #C9BAA2; --ink-line-2: #B0996F;
  /* Copper (lead accent) */
  --copper: #B87333; --copper-press: #9A5E28; --copper-tint: #EEDFCB; --copper-ring: rgba(184,115,51,0.45);
  /* Saffron (single secondary accent) */
  --saffron: #C8850A; --saffron-soft: #F2DEA9;
  /* Category / chart (never UI chrome) */
  --sea: #3E6F74; --green: #6F8260; --oud: #7A4B2E; --camel: #C4A882;
  /* Functional states. --ok darkened to #506240 so normal-size pill text clears
     WCAG AA 4.5:1 on --ok-soft (was #5E7350 = 4.1:1). */
  --ok: #506240; --ok-soft: #E0E7D7;
  --warn: #8A5E08; --warn-soft: #F4E4C2;
  /* Negatives in Oud, never red (BRAND law). --danger = Oud deep brick for
     blocked/expired/cancelled/sold-out STATES; --alarm = genuine red, reserved
     ONLY for destructive SYSTEM surfaces. */
  --danger: #7A4B2E; --danger-soft: #ECDDD0; --alarm: #9E3B26; --alarm-soft: #F0D8CF;
  --info: #34616B; --info-soft: #D8E4E3;
  /* Elevation */
  --shadow-1: 0 1px 2px rgba(43,31,22,.06), 0 2px 8px rgba(43,31,22,.06);
  --shadow-2: 0 4px 14px rgba(43,31,22,.10);
  --shadow-3: 0 10px 30px rgba(43,31,22,.16);
  --ring: 0 0 0 3px var(--copper-ring);
  /* Radius */
  --r-chip: 8px; --r-btn: 10px; --r-card: 14px; --r-sheet: 18px;
  --ease: cubic-bezier(.22,1,.36,1);
  /* THE MOTION-TOKEN CONTRACT (UI/UX Round 1) — the F2 (light/public) mirror of
     the base_dusk.css :root tokens, so the warm public face (the buyer storefront)
     reads the SAME shared timing/easing vocabulary regardless of stylesheet load
     order. One hand of motion across every surface + both themes. */
  --mo-fast: 150ms; --mo: 220ms; --mo-slow: 300ms;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --sidebar-w: 244px; --content-max: 1500px;
  /* The fixed mobile bottom tab-bar's height (52px min-height + 6px×2 padding +
     1px top border ≈ 65px). One token so every scroll container can reserve the
     SAME space below the bar (operator P1-3: bottom-tab overlap). */
  --bottomnav-h: 66px;
}

* { box-sizing: border-box; }
/* SHARED full-bleed overflow guard (R3 shared-xcut, root-cause / whole class):
   ALWAYS-ON, not phone-gated. `clip` (NOT `hidden`) so any 50vw full-bleed hero
   (the Paper-Desert client proposal, the upcoming traveller hero) can never spill
   a desktop horizontal scrollbar — and, unlike `overflow:hidden`, `overflow:clip`
   does NOT establish a scroll container, so position:sticky keeps working. This
   supersedes the old phone-only `overflow-x:hidden` net; per-page client_proposal
   `overflow-x:clip` is now redundant-but-harmless. */
html, body { margin: 0; padding: 0; overflow-x: clip; max-width: 100%; }
body {
  background: var(--cream); color: var(--charcoal);
  font-family: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4 { font-family: "Marcellus", Georgia, serif; font-weight: 400; margin: 0 0 .4em; line-height: 1.2; color: var(--charcoal); }
h1 { font-size: 1.75rem; } h2 { font-size: 1.375rem; } h3 { font-size: 1.125rem; }
p { margin: 0 0 .8em; }
a { color: var(--copper-press); text-decoration: none; }
a:hover { text-decoration: underline; }
.tabular { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.hidden { display: none !important; }

/* SHARED narrow-row-wrap utility (R3 shared-xcut).  PER-FRONT SHEETS: add the
   class `.row-wrap-narrow` to any single-line value row that uses the
   `margin-inline-start:auto` + `white-space:nowrap` pattern (e.g. a reseller
   summary "Label .... 1,234 SAR" row).  On a wide screen it is inert; at <=420px
   it lets the row FLEX-WRAP instead of pushing its trailing value off-screen.
   Use it INSTEAD of fighting overflow on the narrowest phones. */
.row-wrap-narrow { display: flex; align-items: center; }
@media (max-width: 420px) {
  .row-wrap-narrow { flex-wrap: wrap; }
  /* the value that used margin-inline-start:auto drops to a new line, full width,
     and stops forcing nowrap content off the side of the viewport. */
  .row-wrap-narrow > * { white-space: normal; }
  .row-wrap-narrow > [class*="auto"], .row-wrap-narrow > .row-wrap-end { margin-inline-start: 0; }
}

/* RTL: ONE Arabic voice across the whole product — Noto Naskh Arabic (the
   modern, majority voice the Dusk surfaces already use); Amiri kept only as a
   graceful fallback so the Arabic-first product never speaks in two typefaces
   (H3). More air, no letter-spacing. */
[dir="rtl"] body, [dir="rtl"] { font-family: "Noto Naskh Arabic", "Amiri", "Hanken Grotesk", serif; }
[dir="rtl"] .ui-en { display: none; }
[dir="ltr"] .ui-ar { display: none; }
[dir="rtl"] h1,[dir="rtl"] h2,[dir="rtl"] h3 { font-family: "Noto Naskh Arabic", "Amiri", serif; line-height: 1.5; }
[dir="rtl"] .lbl { letter-spacing: normal; }
.ltr-num { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* Inline-icon sizing safety net: a class-less <svg> never flex-stretches. */
svg { width: 1em; height: 1em; }
.org-switch svg, .card svg, .content svg, .week-row svg, .pill svg, .role-card svg, .stat-tile svg, .alert-row svg { flex: none; }

/* Focus: copper ring + real outline so forced-colors never strips it. */
:focus-visible { outline: 2px solid transparent; outline-offset: 2px; box-shadow: var(--ring); border-radius: 6px; }
@media (forced-colors: active) { :focus-visible { outline: 2px solid Highlight; } }

/* Wave-2 #5: SOFT route-entry ring on a programmatically-focused page heading.
   `focusView` moves focus to the H1/H2 on a route/sub-view change (WCAG 2.4.3 /
   4.1.3) so keyboard + SR users land on the new content. The default copper/saffron
   :focus-visible box drew a tight ring around the heading, reading to sighted users
   as a selected/editable FIELD. Here the route-focused heading instead gets a quiet
   leading accent bar + NO box — focus is still announced + visible (the bar + the
   SR focus move), but it no longer looks like a control. Interactive controls (and
   a heading focused any other way) keep the full ring. */
h1.route-focus:focus-visible, h2.route-focus:focus-visible {
  outline: none; box-shadow: none; border-radius: 0;
  position: relative;
}
h1.route-focus:focus-visible::before, h2.route-focus:focus-visible::before {
  content: ""; position: absolute; inset-block: 2px; inset-inline-start: -12px;
  inline-size: 3px; border-radius: 3px; background: var(--copper);
}
@media (forced-colors: active) {
  h1.route-focus:focus-visible::before, h2.route-focus:focus-visible::before { background: Highlight; }
}

/* Skip link (WCAG 2.4.1 Bypass Blocks): off-screen until focused, then it sits
   at the top above the sticky topbar so a keyboard/switch user reaches content
   without tabbing the whole nav. Inherited by every shell surface. */
.skip-link {
  position: absolute; inset-inline-start: 12px; inset-block-start: -60px;
  z-index: 60; background: var(--copper-press); color: #fff;
  padding: 10px 16px; border-radius: var(--r-btn); box-shadow: var(--shadow-2);
  transition: inset-block-start .15s var(--ease);
}
.skip-link:focus { inset-block-start: 12px; text-decoration: none; }
#content:focus { outline: none; } /* heading/region gets the visible ring instead */

/* ---- App shell -------------------------------------------------------------- */
.app { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
.sidebar {
  background: var(--cream-raised); border-inline-end: 1px solid var(--sand-line);
  padding: 18px 14px; display: flex; flex-direction: column; gap: 4px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 16px; }
.hump { width: 26px; height: 15px; background: var(--copper); border-radius: 13px 13px 0 0; flex: none; box-shadow: inset 0 -2px 0 rgba(0,0,0,.08); }
.brand-text { font-family: "Marcellus", serif; font-size: 1.15rem; color: var(--charcoal); }
.brand-text .ar { font-family: "Noto Naskh Arabic", "Amiri", serif; color: var(--copper-press); }
.nav-section { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 14px 10px 6px; }
.nav-link {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border-radius: var(--r-btn); color: var(--ink-2); font-size: .95rem;
  transition: background .2s var(--ease), color .2s var(--ease); min-height: 44px;
}
/* a "soon" nav item is a <button> (honest toast, no dead jump) — reset it to
   read identically to the anchor links. */
button.nav-link { width: 100%; border: 0; background: transparent; font: inherit; text-align: start; cursor: pointer; }
button.nav-link.soon { cursor: default; }
.nav-link:hover { background: var(--copper-tint); color: var(--charcoal); text-decoration: none; }
/* active-nav fill = --copper-press: white on it clears AA 4.5:1 for the normal-
   weight label (white on plain --copper is only 3.79:1). */
.nav-link.active { background: var(--copper-press); color: #fff; }
.nav-link.active svg { stroke: #fff; }
.nav-link svg { width: 20px; height: 20px; stroke: var(--ink-2); flex: none; }
.nav-link.soon { opacity: .62; }
.nav-link .soon-tag { margin-inline-start: auto; font-size: .58rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); background: var(--cream-sunk); border-radius: 5px; padding: 1px 5px; }
.nav-spacer { flex: 1; }
.nav-foot { font-size: .72rem; color: var(--ink-3); padding: 10px; border-top: 1px solid var(--sand-line); margin-top: 8px; }
.nav-portal-switch { display: block; margin-top: 8px; padding: 9px 12px; border: 1px solid var(--ink-line); border-radius: var(--r-btn); color: var(--ink-2); font-size: .82rem; text-align: center; background: transparent; font: inherit; cursor: pointer; }
.nav-portal-switch:hover { border-color: var(--copper); color: var(--charcoal); text-decoration: none; background: var(--copper-tint); }
.nav-portal-switch[aria-busy="true"] { opacity: .65; pointer-events: none; }
/* in the sidebar the switch is a full-width button (it replaced an <a>); in the
   public landing top-bar it stays an inline pill. */
.sidebar .nav-portal-switch { width: 100%; }

/* ---- Top bar ---------------------------------------------------------------- */
.main { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 28px; border-bottom: 1px solid var(--sand-line);
  background: rgba(251,247,239,.85); backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 10;
}
.org-switch { display: flex; align-items: center; gap: 8px; padding: 6px 12px; background: var(--cream-raised); border: 1px solid var(--ink-line); border-radius: var(--r-btn); font-size: .9rem; }
.org-switch .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.org-switch svg { width: 16px; height: 16px; stroke: var(--ink-3); flex: none; }
.org-switch select { border: 0; background: transparent; color: var(--charcoal); font: inherit; cursor: pointer; min-height: 32px; padding-inline-end: 4px; max-width: 14rem; }
.org-switch select:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; border-radius: 6px; }
.topbar-spacer { flex: 1; }
.locale-toggle { display: inline-flex; border: 1px solid var(--ink-line); border-radius: var(--r-btn); overflow: hidden; }
/* AA touch target (Gate-6 uplift): the locale toggle bumped 40 -> 44px (WCAG 2.5.8)
   — it appears on every surface incl. the public register top bar. */
.locale-toggle button { border: 0; background: var(--cream-raised); color: var(--ink-2); padding: 8px 14px; cursor: pointer; min-height: 44px; font: inherit; }
.locale-toggle button.on { background: var(--copper-press); color: #fff; }
.locale-toggle button .ar { font-family: "Noto Naskh Arabic", "Amiri", serif; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--oud); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .9rem; }
button.avatar { border: 0; cursor: pointer; font: inherit; }
button.avatar:hover { filter: brightness(1.08); }

/* A6: the topbar account menu (Sign out everywhere) */
.account-menu { position: relative; display: inline-flex; }
.account-pop { position: absolute; inset-block-start: calc(100% + 8px); inset-inline-end: 0; min-width: 220px;
  background: var(--cream-raised, #fff); border: 1px solid var(--sand-line); border-radius: var(--r-card, 12px);
  box-shadow: 0 14px 40px rgba(40,28,12,.18); padding: 8px; z-index: 40; }
.account-pop-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--sand-line); margin-bottom: 6px; display: flex; flex-direction: column; gap: 2px; }
.account-pop-name { font-weight: 600; color: var(--charcoal, #2a2118); font-size: .9rem; }
.account-pop-sub { font-size: .76rem; }
.account-pop-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 10px; border: 0; background: transparent; border-radius: var(--r-btn, 8px); color: var(--ink-2); font: inherit; font-size: .86rem; text-align: start; cursor: pointer; }
.account-pop-item:hover { background: var(--copper-tint); color: var(--charcoal); text-decoration: none; }
.account-pop-item svg { width: 17px; height: 17px; stroke: currentColor; }
.account-pop-signout { color: var(--danger, #b23a2e); }
.account-pop-signout:hover { background: rgba(178,58,46,.08); color: var(--danger, #b23a2e); }
.topbar-bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--ink-line); background: var(--cream-raised); cursor: pointer; }
.topbar-bell svg { width: 20px; height: 20px; stroke: var(--ink-2); }
.topbar-bell .count { position: absolute; inset-block-start: -2px; inset-inline-end: -2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--copper-press); color: #fff; font-size: .66rem; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }

/* operate-as concierge banner */
.operate-as { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--copper-tint); color: var(--copper-press); border-bottom: 1px solid var(--ink-line-2); padding: 9px 28px; font-size: .88rem; }
.operate-as svg { width: 16px; height: 16px; stroke: var(--copper-press); }
.operate-as strong { color: var(--copper-press); }
.operate-as .exit { margin-inline-start: auto; }

/* truth strip — this surface runs on the real backend + honestly-labelled data */
.demo-strip { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--cream-sunk); color: var(--ink-2); border-bottom: 1px solid var(--sand-line); padding: 6px 28px; font-size: .78rem; }
.demo-strip .pill-illustrative { margin-inline-end: 4px; }
/* FIX D4 — the ONE plain-language legend for the SIM/REAL/ILLUSTRATIVE pills.
   A calm, lower-contrast line in the truth strip that tells a non-technical
   user what the pills MEAN ("Real = live in your account · Simulated = a
   preview …") so the pills annotate rather than read as "is this fake?". It
   sits after the strip copy; on a narrow strip it wraps to its own full-width
   line (a soft hairline above it) so it never crowds the data-mode text. */
.demo-strip-legend { font-size: .76rem; line-height: 1.4; }
@media (max-width: 760px) {
  .demo-strip-legend {
    flex-basis: 100%; margin-top: 4px; padding-top: 4px;
    border-top: 1px solid var(--sand-line);
  }
}

/* ---- Content ---------------------------------------------------------------- */
.content { padding: 26px 36px 96px; max-width: none; width: 100%; margin-inline: auto; }
.page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head .titles { min-width: 0; }
.page-head h1 { margin: 0; }
.page-head .sub { color: var(--ink-2); margin: 4px 0 0; }
.page-head .actions { margin-inline-start: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.section-title { display: flex; align-items: center; gap: 10px; margin: 28px 0 14px; }
.section-title h2 { margin: 0; }
.section-title .pill { margin-inline-start: 2px; }
.unit-tag { font-size: .72rem; color: var(--copper-press); background: var(--copper-tint); border-radius: 6px; padding: 2px 7px; white-space: nowrap; }

/* ---- Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--ink-line-2); border-radius: var(--r-btn);
  padding: 10px 18px; min-height: 44px; cursor: pointer; font: inherit; font-weight: 500;
  background: var(--cream-raised); color: var(--charcoal);
  transition: background var(--mo) var(--ease-out), border-color var(--mo) var(--ease-out), box-shadow var(--mo) var(--ease-out);
}
.btn:hover { background: var(--copper-tint); text-decoration: none; }
.btn svg { width: 18px; height: 18px; stroke: currentColor; }
/* primary-button fill = --copper-press so the normal-weight white label clears
   AA 4.5:1 (white on plain --copper is 3.79:1); hover goes a shade darker. */
.btn-primary { background: var(--copper-press); border-color: var(--copper-press); color: #fff; }
.btn-primary:hover { background: #854F22; border-color: #854F22; }
.btn-primary svg { stroke: #fff; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--copper-tint); }
.btn-sm { padding: 6px 12px; min-height: 36px; font-size: .88rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
/* [hidden] must beat the flex display above. The base .btn sets display:inline-flex,
   which silently overrides the UA [hidden] rule, so any button toggled via el.hidden
   (progressive-disclosure footers — e.g. the add-asset wizard's Back/Next/Create)
   would stay visible. Class-level so NO button anywhere can rely on the bare hidden
   attribute being honoured; matches the standard reset pattern for [hidden]. */
.btn[hidden] { display: none !important; }
.btn .spin { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Cards / panels --------------------------------------------------------- */
.card { background: var(--cream-raised); border: 1px solid var(--sand-line); border-radius: var(--r-card); padding: 20px; box-shadow: var(--shadow-1); }
.card.sunk { background: var(--cream-sunk); box-shadow: none; }
.split-7-5 { display: grid; grid-template-columns: 7fr 5fr; gap: 18px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ============================================================================
   UNIVERSAL HOVER-LIFT on the WORKING card (UI/UX Round 1).
   ----------------------------------------------------------------------------
   The special cards (.role-card / .persona-card / .exp-card / .pool-card) already
   lift on hover, but the BULK working surfaces — .card, .alert-row, .kpi, the
   .stat-tile.stat-link — were inert, so most of the app felt "dead" to the pointer.
   ONE restrained rule gives every CLICKABLE card/row/tile the same quiet 2px lift +
   a deeper shadow on hover. It is SCOPED TO CLICKABLE ONLY — an element that is an
   <a>/<button>, carries [role=button] / [onclick] / tabindex, or opts in with
   .is-clickable / .stat-link — so STATIC display cards stay calm (no twitch on a
   read-only panel). The Dusk copper-glow variant lives in operator_dusk.css's shared
   finish; here is the F2 (light) face. Tokenised timing (--mo). */
.card[role="button"], .card[onclick], .card[tabindex], a.card, button.card, .card.is-clickable,
.alert-row[role="button"], .alert-row[onclick], .alert-row[tabindex], a.alert-row, button.alert-row, .alert-row.is-clickable,
.kpi[role="button"], .kpi[onclick], .kpi[tabindex], a.kpi, button.kpi, .kpi.is-clickable,
.stat-tile.stat-link, a.stat-tile, button.stat-tile, .stat-tile.is-clickable {
  cursor: pointer;
  transition: transform var(--mo) var(--ease-out), box-shadow var(--mo) var(--ease-out), border-color var(--mo) var(--ease-out);
}
.card[role="button"]:hover, .card[onclick]:hover, .card[tabindex]:hover, a.card:hover, button.card:hover, .card.is-clickable:hover,
.alert-row[role="button"]:hover, .alert-row[onclick]:hover, .alert-row[tabindex]:hover, a.alert-row:hover, button.alert-row:hover, .alert-row.is-clickable:hover,
.kpi[role="button"]:hover, .kpi[onclick]:hover, .kpi[tabindex]:hover, a.kpi:hover, button.kpi:hover, .kpi.is-clickable:hover,
.stat-tile.stat-link:hover, a.stat-tile:hover, button.stat-tile:hover, .stat-tile.is-clickable:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: var(--copper);
  text-decoration: none;
}

/* ---- Pills / badges --------------------------------------------------------- */
.pill { display: inline-flex; align-items: center; gap: 5px; border-radius: var(--r-chip); padding: 3px 10px; font-size: .78rem; font-weight: 500; white-space: nowrap; }
.pill svg { width: 13px; height: 13px; }
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-danger { background: var(--danger-soft); color: var(--danger); }
.pill-info { background: var(--info-soft); color: var(--info); }
.pill-neutral { background: var(--cream-sunk); color: var(--ink-2); border: 1px solid var(--sand-line); }
.pill-illustrative { background: var(--cream-sunk); color: var(--ink-2); border: 1px dashed var(--ink-line-2); font-size: .72rem; }
.pill-saffron { background: var(--saffron-soft); color: var(--saffron); }
/* the LOSS pill — a landed-loss count is amber/saffron, NEVER red. Named for
   its intent so the "loss = amber" brand law is encoded in the class itself,
   not borrowed off the danger token (which can be retuned). The Dusk override
   maps it to the oud loss colour (--d-loss). */
.pill-loss { background: var(--saffron-soft); color: var(--saffron); }
/* R4 co-brand badge: "In partnership with <partner>" — Sanam beside the partner,
   never under. Warm copper-tint chip, ridden by every Hawi listing/row. */
.cobrand-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--copper-tint); color: var(--copper-press); border: 1px solid var(--ink-line-2); border-radius: var(--r-chip); padding: 3px 10px; font-size: .78rem; font-weight: 500; white-space: nowrap; }
.cobrand-badge svg { width: 14px; height: 14px; stroke: var(--copper-press); }
.cobrand-vouch { display: inline-block; font-size: .76rem; margin-top: 4px; }
/* the platform honesty vocabulary made first-class (in the pixels) */
.pill-real { background: var(--ok-soft); color: var(--ok); }
.pill-sim { background: var(--info-soft); color: var(--info); }
.pill-coming { background: var(--cream-sunk); color: var(--ink-2); border: 1px dashed var(--ink-line-2); }
/* FIX D4 — QUIETER honesty pills. The REAL/SIM/ILLUSTRATIVE/COMING pills appear
   all over; at full pill weight they competed with the content. ONE central
   rule LIGHTENS them (smaller text, normal weight, a subtle hairline border)
   so they ANNOTATE the data rather than shout. Colour + AA contrast are kept
   (the legend in the truth strip now explains what they mean). Applied here so
   it flows to every surface that uses S.honestyPill / the strip — no per-page
   edit. Text still clears AA on each soft ground (the colour pairs are unchanged). */
.pill-real, .pill-sim, .pill-coming, .pill-illustrative {
  font-size: .72rem; font-weight: 400; padding: 2px 8px;
  border: 1px solid var(--sand-line);
}
.pill-real svg, .pill-sim svg, .pill-coming svg, .pill-illustrative svg { width: 11px; height: 11px; opacity: .85; }
/* keep the COMING/ILLUSTRATIVE dashed hairline (the "not yet real" cue) — just quieter. */
.pill-coming, .pill-illustrative { border-style: dashed; }

/* ---- Forms ------------------------------------------------------------------ */
.field { display: block; margin-bottom: 16px; }
.field > .lbl { display: block; font-size: .85rem; color: var(--ink-2); margin-bottom: 6px; font-weight: 500; }
.field input, .field select { width: 100%; padding: 11px 13px; border: 1px solid var(--ink-line); border-radius: var(--r-btn); background: var(--cream-raised); color: var(--charcoal); font: inherit; min-height: 44px; }
/* G7 UX fix #1: a .field TEXTAREA must size like the input/select (full-width) —
   the rule above omitted textarea, so a compose textarea in a bare .field
   (e.g. buyer "New request") rendered at its ~20-col default. */
.field textarea { width: 100%; box-sizing: border-box; padding: 11px 13px; border: 1px solid var(--ink-line); border-radius: var(--r-btn); background: var(--cream-raised); color: var(--charcoal); font: inherit; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--copper); box-shadow: var(--ring); outline: none; }
.field.err input { border-color: var(--alarm); }
.field-err { display: flex; align-items: center; gap: 6px; color: var(--alarm); font-size: .82rem; margin-top: 6px; }
.field-hint { color: var(--ink-3); font-size: .8rem; margin-top: 5px; }

/* GUEST INFO at booking (Slice C1) — the "Your details" fieldset on the storefront
   pay card. A <fieldset class="field guest-info"> wrapping .field rows; tokens match
   the light default + re-skin under body.dusk (see paper_desert.css). */
.guest-info { border: 1px solid var(--ink-line); border-radius: var(--r-btn); padding: 14px 16px 2px; margin-bottom: 16px; background: var(--cream-raised); }
.guest-info-legend { font-size: .84rem; font-weight: 700; color: var(--ink); padding: 0 6px; }
.guest-info-note { font-size: .82rem; color: var(--ink-2); margin: 0 0 10px; line-height: 1.5; }

/* ---- Shared "Step N of M" progress bar (S.progressBar) ----------------------
   The ONE calm copper funnel bar (Gate-6 review #3: the three near-identical
   register/onboarding/invite bars are consolidated here). Lives in platform.css
   so EVERY funnel surface gets it (the concierge onboarding loads only
   platform.css; the self-serve surfaces also load account.css). The Dusk override
   keeps it on the dark ground. */
.sn-progress { margin: 4px 0 20px; }
.sn-progress-lbl { font-size: .82rem; margin-bottom: 6px; }
.sn-progress-track { height: 6px; background: var(--cream-sunk); border-radius: 999px; overflow: hidden; }
.sn-progress-fill { height: 100%; background: var(--copper); border-radius: 999px; transition: width .25s ease; }
body.dusk .sn-progress-track { background: var(--d-card-3); }
body.dusk .sn-progress-fill { background: var(--d-copper); }
@media (prefers-reduced-motion: reduce) { .sn-progress-fill { transition: none; } }

/* ---- Honesty notes ---------------------------------------------------------- */
.honesty { display: flex; align-items: flex-start; gap: 10px; background: var(--info-soft); border: 1px solid #BCD3D2; border-radius: var(--r-card); padding: 12px 14px; color: var(--info); font-size: .88rem; }
.honesty svg { width: 18px; height: 18px; stroke: var(--info); flex: none; margin-top: 1px; }

/* ---- States ----------------------------------------------------------------- */
.empty { text-align: center; padding: 56px 24px; border: 1px dashed var(--ink-line); border-radius: var(--r-card); background: var(--cream-raised); color: var(--ink-2); }
.empty .ico svg { width: 56px; height: 56px; stroke: var(--camel); }
.empty h3 { color: var(--charcoal); }
.skel { background: linear-gradient(100deg, var(--cream-sunk) 30%, var(--cream-raised) 50%, var(--cream-sunk) 70%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: var(--r-chip); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ============================================================================
   THE SHARED DRAFTING / "AI is composing" STATE (UI/UX Round 1, #5).
   ----------------------------------------------------------------------------
   The self-sufficient styles for S.draftingState(host, msgEn, msgAr) so the
   richer "thinking" state (✦ spark coin + status line + optional skeleton rows)
   renders on ANY surface — not only the reseller builder, whose reseller_builder.css
   .rb-drafting* the helper's markup also carries for back-compat. This is the F2
   (light) face; journey.css carries the Dusk override. Replaces the dead
   ``<span class="spin">`` spinners at the AI front doors. */
.draft-state { display: flex; align-items: center; gap: 9px; margin-top: 10px; padding: 10px 12px; border-radius: var(--r-btn); background: var(--cream-sunk); border: 1px solid var(--sand-line); }
.draft-state .rb-drafting-spark, .draft-state .draft-spark {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 36% 30%, var(--copper-tint), rgba(184,115,51,.14));
  border: 1px solid var(--copper-ring);
}
.draft-state .rb-drafting-spark svg, .draft-state .draft-spark svg { width: 13px; height: 13px; stroke: var(--copper-press); animation: spin 1.1s linear infinite; }
.draft-state .rb-drafting-msg, .draft-state .draft-msg { font-size: .8rem; color: var(--ink-2); font-weight: 600; }
.draft-skel { margin-top: 4px; }
.draft-skel .skel-line { display: block; border-radius: 5px; }
.err-block { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 40px 24px; border: 1px solid var(--alarm); background: var(--alarm-soft); border-radius: var(--r-card); color: var(--alarm); }
.err-block svg { width: 40px; height: 40px; stroke: var(--alarm); }

/* ---- Toast ------------------------------------------------------------------ */
#toasts { position: fixed; inset-block-end: 22px; inset-inline: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 50; pointer-events: none; }
.toast { background: var(--ok); color: #fff; border-radius: var(--r-btn); padding: 12px 20px; box-shadow: var(--shadow-3); animation: rise .22s var(--ease); display: flex; align-items: center; gap: 10px; pointer-events: auto; }
.toast.danger { background: var(--alarm); } .toast.info { background: var(--info); }
.toast svg { width: 18px; height: 18px; stroke: #fff; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---- Stat tiles (cockpit + dashboards) -------------------------------------- */
.tile-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-tile { background: var(--cream-raised); border: 1px solid var(--sand-line); border-radius: var(--r-card); padding: 16px 18px; box-shadow: var(--shadow-1); }
.stat-tile .lbl { font-size: .8rem; color: var(--ink-2); display: block; margin-bottom: 8px; }
.stat-tile .num { font-family: "Marcellus", serif; font-size: 1.9rem; color: var(--charcoal); font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat-tile .delta { font-size: .8rem; color: var(--ink-3); margin-top: 6px; display: inline-flex; align-items: center; gap: 4px; }
.stat-tile .delta svg { width: 14px; height: 14px; }
/* G4 BI: a landed loss (negative take). Oud, never red (BRAND law) — and never
   colour-only: the JS rides an alert icon + an explicit "(loss)" word with it. */
.stat-tile.tile-loss { border-inline-start: 4px solid var(--danger); }
.num-loss { color: var(--danger); }

/* ---- UI R3: the PULSE money tiles DOMINATE ---------------------------------
   In the cockpit Pulse band "is cash healthy" must be the loudest thing. The two
   MONEY tiles lead (a copper top-rule + a larger Marcellus numeral); the COUNT
   tiles (suppliers, bookings) recede (smaller numeral, quieter ground). Scoped to
   .stat-tile so only the band-opted tiles change — every other tile is untouched.
   Both themes covered (the Dusk overrides ride the same modifier, below). */
.stat-tile.money-lead { position: relative; border-color: var(--copper-ring); box-shadow: var(--shadow-1), 0 0 0 1px rgba(184,115,51,.06); }
.stat-tile.money-lead::before {
  content: ""; position: absolute; inset-inline: 0; inset-block-start: 0;
  height: 3px; border-radius: var(--r-card) var(--r-card) 0 0;
  background: linear-gradient(90deg, var(--copper), var(--saffron));
}
.stat-tile.money-lead .num { font-size: 2.35rem; color: var(--copper-press); }
.stat-tile.tile-count { background: var(--cream-sunk); }
.stat-tile.tile-count .num { font-size: 1.55rem; color: var(--ink-1, var(--charcoal)); }
.stat-tile.tile-count .lbl { color: var(--ink-3); }

/* ---- FIX D2: sticky list summary (count + running total) -------------------
   A long flat list (the supplier Earnings statement / Compliance invoices —
   ~100-130 near-identical rows) reads as a wall. S.listSummary() renders this
   pinned header directly above the list: "130 bookings · SAR 206,800 total" /
   "١٣٠ حجزًا · الإجمالي ٢٠٦٬٨٠٠ ر.س". It STICKS just under the sticky topbar so
   the count + sum stay in view while the operator scrolls the wall. Light tokens
   only (day-safe); logical properties for RTL; tabular money never jitters. The
   surface is the F2 supplier portal (light) — not a body.dusk surface — so no
   Dusk override is needed. */
.list-summary {
  position: sticky; top: 64px; z-index: 5;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 0 0 12px; padding: 9px 14px;
  background: var(--cream-sunk); border: 1px solid var(--sand-line);
  border-radius: var(--r-btn); color: var(--ink-2);
  font-size: .88rem; box-shadow: var(--shadow-1);
}
.list-summary .ls-count { font-weight: 600; color: var(--charcoal); }
.list-summary .ls-sep { color: var(--ink-3); }
.list-summary .ls-total { color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* ---- Alerts rail / loss-radar ----------------------------------------------- */
.alert-rail { display: flex; flex-direction: column; gap: 10px; }
.alert-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--sand-line); border-radius: var(--r-card); background: var(--cream-raised); }
.alert-row.warn { border-inline-start: 4px solid var(--warn); }
.alert-row.danger { border-inline-start: 4px solid var(--danger); }
.alert-row.info { border-inline-start: 4px solid var(--info); }
.alert-row .body { flex: 1; min-width: 0; }
.alert-row .head { font-weight: 600; color: var(--charcoal); }
.alert-row .meta { font-size: .82rem; color: var(--ink-2); }
.alert-row svg { width: 20px; height: 20px; flex: none; }
.alert-row.warn svg { stroke: var(--warn); } .alert-row.danger svg { stroke: var(--danger); } .alert-row.info svg { stroke: var(--info); }
.calm-state { text-align: center; padding: 28px; color: var(--ink-2); border: 1px dashed var(--ink-line); border-radius: var(--r-card); }

/* ---- UI R3: SEVERITY-TRIAGED "what needs me" -------------------------------
   The rail's promise is "the one thing to do today". Severity drives weight:
     .lead   — the TOP actionable row: a faint copper wash + a bolder title + the
               CTA promoted to a FILLED saffron button. It reads as "do this".
     .recede — all-clear / static-info rows: smaller, lower-contrast, no left-rail.
               Good news / explainers must never out-shout a live task.
   The colour (danger/warn/info) still carries the kind; losses stay amber, never
   red. The lead wash is copper (the brand's "act here" hue), kind-agnostic, so a
   leading danger row keeps its oud left-rail AND gets the copper wash + filled CTA. */
.alert-row.lead {
  background:
    linear-gradient(0deg, var(--copper-tint), var(--copper-tint)),
    var(--cream-raised);
  background-blend-mode: normal;
  border-color: var(--copper-ring);
  box-shadow: var(--shadow-1), 0 0 0 1px rgba(184,115,51,.05);
  padding: 14px 16px;
}
/* a subtler wash than a full copper-tint fill — a faint overlay over the card. */
.alert-row.lead { background: color-mix(in srgb, var(--copper-tint) 55%, var(--cream-raised)); }
.alert-row.lead .head { font-weight: 700; font-size: 1.02rem; color: var(--charcoal); }
/* the promoted CTA: a FILLED saffron button (the loudest call in the rail). */
.alert-row.lead .alert-cta {
  background: var(--saffron); border-color: var(--saffron); color: #1A130D; font-weight: 700;
}
.alert-row.lead .alert-cta:hover { background: var(--saffron-press, #B5780A); border-color: var(--saffron-press, #B5780A); }
.alert-row.lead .alert-cta svg { stroke: #1A130D; }

/* receded rows: quieter ground, no left-rail, smaller text — they sink. */
.alert-row.recede {
  border-inline-start-width: 1px !important; border-inline-start-color: var(--sand-line) !important;
  background: var(--cream-sunk); padding: 9px 14px; opacity: .92;
}
.alert-row.recede .head { font-weight: 500; font-size: .9rem; color: var(--ink-2); }
.alert-row.recede svg { width: 17px; height: 17px; stroke: var(--ink-3); }
.alert-row.recede .alert-cta { font-size: .82rem; min-height: 32px; padding: 4px 10px; }

/* === Cockpit overrides for the R3 triage — platform.css owns the .alert-row +
   .stat-tile sections, so the themed treatment for the NEW modifiers lives here
   too. The cockpit ALWAYS carries body.dusk.sanam-cockpit; the --d-* tokens flip
   between dark Dusk (operator_dusk.css) and light Paper Desert
   (paper_desert.css's html[data-theme="day"] body.dusk re-tint), so these
   token-driven rules render correctly in BOTH themes from one source. Backgrounds
   use --d-card / --d-copper (token-flipped) — never hardcoded dark — so the day
   face stays on paper. =================================================== */
body.dusk.sanam-cockpit .alert-row.lead {
  background:
    radial-gradient(150% 100% at 100% 0%, rgba(204,146,72,.18), transparent 62%),
    var(--d-card);
  border-color: var(--d-copper-press);
  border-inline-start-width: 3px;  /* a copper rail so "the one thing" leads even on a row with no CTA (e.g. the loss radar) */
  box-shadow: var(--d-shadow, 0 8px 24px rgba(0,0,0,.18)), inset 0 1px 0 rgba(204,146,72,.10);
}
body.dusk.sanam-cockpit .alert-row.lead .head { color: var(--d-cream); }
/* the promoted FILLED CTA — copper-bright fill, near-black ink (AA both themes) */
body.dusk.sanam-cockpit .alert-row.lead .alert-cta {
  background: linear-gradient(180deg, var(--d-copper-press), var(--d-copper)); border-color: var(--d-copper);
  color: var(--d-bg, #1A130D); font-weight: 700;
}
body.dusk.sanam-cockpit .alert-row.lead .alert-cta:hover { filter: brightness(1.06); }
body.dusk.sanam-cockpit .alert-row.lead .alert-cta svg { stroke: var(--d-bg, #1A130D); }
body.dusk.sanam-cockpit .alert-row.recede {
  background: var(--d-card-2, var(--d-card));
  border-inline-start-color: var(--d-line) !important;
}
body.dusk.sanam-cockpit .alert-row.recede .head { color: var(--d-tan); }
body.dusk.sanam-cockpit .alert-row.recede svg { stroke: var(--d-ink); }

/* the Pulse money/count modifiers — token-driven, both themes */
body.dusk.sanam-cockpit .stat-tile.money-lead { border-color: var(--d-copper-press); }
body.dusk.sanam-cockpit .stat-tile.money-lead::before { background: linear-gradient(90deg, var(--d-copper), var(--d-saff)); }
body.dusk.sanam-cockpit .stat-tile.money-lead .num { color: var(--d-copper-lit); font-size: 2.35rem; }
body.dusk.sanam-cockpit .stat-tile.tile-count { background: var(--d-card-2, var(--d-card)); }
body.dusk.sanam-cockpit .stat-tile.tile-count .num { color: var(--d-tan); font-size: 1.55rem; }
body.dusk.sanam-cockpit .stat-tile.tile-count .lbl { color: var(--d-ink); }

/* ---- UI R3: the COMPACT "Operate as" roster (one row per org) --------------
   The full card grid is collapsed to a scannable list — an icon + name + type
   chip + an inline "Operate as ›" — reclaiming vertical weight for the signal
   top. A real <button> (keyboard + SR friendly); the per-row copy is the title/
   aria-label. Both themes; RTL via logical properties + the auto-flipping chevron. */
.operate-roster { display: flex; flex-direction: column; gap: 8px; }
.operate-row {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: start;
  padding: 11px 14px; border: 1px solid var(--sand-line); border-radius: var(--r-card);
  background: var(--cream-raised); color: var(--charcoal); cursor: pointer; font: inherit;
  transition: border-color .2s var(--ease-out, ease), background .2s, transform .2s;
}
.operate-row:hover { border-color: var(--copper); background: var(--copper-tint); }
.operate-row:focus-visible { outline: none; box-shadow: var(--ring); border-color: var(--copper); }
.operate-row .or-ico { display: inline-flex; flex: none; }
.operate-row .or-ico svg { width: 20px; height: 20px; stroke: var(--copper-press); }
.operate-row .or-name { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.operate-row .or-type { flex: none; }
.operate-row .or-go {
  margin-inline-start: auto; flex: none; display: inline-flex; align-items: center; gap: 5px;
  font-size: .86rem; font-weight: 600; color: var(--copper-press);
}
.operate-row .or-go svg { width: 16px; height: 16px; stroke: var(--copper-press); }
[dir="rtl"] .operate-row .or-go svg { transform: scaleX(-1); }
@media (max-width: 560px) {
  .operate-row .or-go span:not(.ar):not([class]) { /* keep the label; nothing to hide */ }
}
@media (prefers-reduced-motion: reduce) { .operate-row { transition: none; } }

/* Dusk roster (cockpit) */
body.dusk.sanam-cockpit .operate-row {
  background: var(--d-card); border-color: var(--d-line-2); color: var(--d-cream);
}
body.dusk.sanam-cockpit .operate-row:hover { border-color: var(--d-copper); background: rgba(184,115,51,.12); }
body.dusk.sanam-cockpit .operate-row:focus-visible { box-shadow: 0 0 0 3px rgba(200,133,10,.55); border-color: var(--d-saff); }
body.dusk.sanam-cockpit .operate-row .or-ico svg,
body.dusk.sanam-cockpit .operate-row .or-go,
body.dusk.sanam-cockpit .operate-row .or-go svg { color: var(--d-copper-lit); stroke: var(--d-copper-lit); }

/* ---- Verification queue (Sanam cockpit) ------------------------------------- */
.queue-list { display: flex; flex-direction: column; gap: 12px; }
.queue-card {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 16px 18px; border: 1px solid var(--sand-line); border-radius: var(--r-card);
  background: var(--cream-raised); box-shadow: var(--shadow-1);
}
.queue-card.blocked { border-inline-start: 4px solid var(--danger); }
.queue-card .qc-main { flex: 1 1 280px; min-width: 0; }
.queue-card .qc-head { display: flex; align-items: center; gap: 8px; font-family: "Marcellus", serif; }
.queue-card .qc-head svg { width: 18px; height: 18px; stroke: var(--ink-2); flex: none; }
.queue-card .qc-head strong { font-weight: 400; color: var(--charcoal); }
.queue-card .qc-meta { font-size: .82rem; margin-top: 4px; }
.queue-card .qc-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.queue-card .qc-action { margin-inline-start: auto; }
[dir="rtl"] .queue-card .qc-head { font-family: "Noto Naskh Arabic", "Amiri", serif; }
@media (max-width: 640px) {
  .queue-card .qc-action { margin-inline-start: 0; width: 100%; }
  .queue-card .qc-action .btn { width: 100%; }
}

/* ---- Calendar (S3 -- the supplier daily hero, integrated into the shell) ----
   Ported from operator.css so the live availability calendar runs on THIS shell
   (one Sanam): the supplier nav + topbar + locale toggle wrap the same proven
   month grid / 'this week' list. R1 adds the "blocked by you" bar segment + the
   block sheet (the offline/external-booking action) on top -- no new invariant. */
.skel-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.skel-cell { min-height: 78px; }
.legend-row { display: flex; gap: 14px; flex-wrap: wrap; font-size: .82rem; color: var(--ink-2); margin: 10px 0 18px; }
.legend-row span { display: inline-flex; align-items: center; gap: 6px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.cal-dow { text-align: center; font-size: .76rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; padding-bottom: 4px; }
.cal-day {
  border: 1px solid var(--sand-line); border-radius: var(--r-chip); background: var(--cream-raised);
  padding: 8px; min-height: 78px; cursor: pointer; text-align: start; position: relative;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
  display: flex; flex-direction: column; gap: 4px; font: inherit; color: inherit;
}
.cal-day:hover { border-color: var(--copper); box-shadow: var(--shadow-1); }
.cal-day .dnum { font-variant-numeric: tabular-nums; font-size: .85rem; color: var(--ink-2); display: inline-flex; align-items: center; gap: 5px; }
.cal-day.today .dnum { color: var(--copper-press); font-weight: 700; }
.cal-day.today .dnum::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--copper); flex: none; }
.cal-day.today .today-tag { font-size: .58rem; letter-spacing: .04em; text-transform: uppercase; color: var(--copper-press); background: var(--copper-tint); border-radius: 5px; padding: 1px 5px; align-self: flex-start; }
.cal-day.past { opacity: .45; cursor: default; }
.cal-day.selected { background: var(--copper-tint); border-color: var(--copper); box-shadow: inset 0 0 0 2px var(--copper); }
.cal-day .cap { font-size: .72rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cal-day.unset .cap { color: var(--ink-3); font-style: italic; }
.cap-bar { height: 6px; border-radius: 3px; background: var(--cream-sunk); overflow: hidden; box-shadow: inset 0 0 0 1px var(--sand-line); display: flex; }
.cap-bar > span { display: block; height: 100%; background: var(--green); }
.cal-day.partial .cap-bar > span { background: var(--copper); }
.cal-day.full .cap-bar > span { background: var(--danger); }
.cal-day.closed { background: var(--cream-sunk); }
.cal-day.closed .cap { color: var(--ink-3); }
.cal-day.blackout { background: repeating-linear-gradient(45deg, var(--cream-sunk), var(--cream-sunk) 6px, var(--cream-raised) 6px, var(--cream-raised) 12px); }
/* WCAG 1.4.1 (use of colour): each day-state must be distinguishable WITHOUT
   colour. The dot carries a distinct SHAPE per status (in addition to hue), so
   "Partly booked" vs "Sold out" and "Closed" vs "Not set" — near-identical by hue
   alone — read apart by silhouette. ONE source: the legend swatches + the day-cell
   corner dots share these classes, so the shape applies to both. The dot is sized
   up slightly (9px) so the shapes are legible. */
/* the dot is a plain inline shape by default (legible in the legend, centered by
   the legend row's inline-flex). ONLY inside a day cell does it become the absolute
   corner dot — so the corner offset never shoves the legend swatch off the text
   baseline. */
.day-dot { width: 9px; height: 9px; border-radius: 50%; box-sizing: border-box; flex: none; }
.cal-day .day-dot { position: absolute; inset-block-start: 7px; inset-inline-end: 7px; }
.dot-open    { background: var(--green);    border-radius: 50%; }                                  /* filled CIRCLE  */
.dot-partial { background: var(--copper);   border-radius: 1px; transform: rotate(45deg); }        /* DIAMOND        */
.dot-full    { background: var(--danger);   border-radius: 1px; }                                   /* filled SQUARE  */
.dot-closed  { background: transparent; border: 2px solid var(--camel); border-radius: 50%; }       /* hollow RING    */
.dot-closed::after { content: ""; position: absolute; inset-block-start: 3px; inset-inline-start: 1px; width: 5px; height: 1.5px; background: var(--camel); }  /* RING + bar (∅) */
.dot-unset   { background: transparent; border: 1.5px dashed var(--ink-line); border-radius: 50%; } /* DASHED ring    */
/* R1: the capacity bar reads the MIX -- Sanam-sold (charcoal) + blocked-by-you
   (copper) + open (track). The "blocked" segment + tag are visually distinct so
   the operator sees "3 the world booked, 3 I sold myself, 6 still open". */
.cap-bar > .seg-sold { background: var(--charcoal); }
.cap-bar > .seg-blocked { background: var(--copper); }
.blocked-tag { font-size: .6rem; color: var(--copper-press); background: var(--copper-tint); border-radius: 5px; padding: 1px 5px; align-self: flex-start; display: inline-flex; align-items: center; gap: 3px; }

/* week list (mobile-first 'this week') */
.week-list { display: flex; flex-direction: column; gap: 8px; }
.week-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--cream-raised); border: 1px solid var(--sand-line); border-radius: var(--r-card); cursor: pointer; text-align: start; font: inherit; color: inherit; width: 100%; }
.week-row:hover { border-color: var(--copper); }
.week-row.selected { border-color: var(--copper); box-shadow: inset 0 0 0 2px var(--copper); background: var(--copper-tint); }
.week-row .wd { width: 64px; flex: none; }
.week-row .wd .d { font-family: "Marcellus", serif; font-size: 1.2rem; }
.week-row .wd .m { font-size: .72rem; color: var(--ink-3); text-transform: uppercase; }
.week-row .wcap { flex: 1; min-width: 0; }
.week-row .wcap .cap-bar { margin-top: 6px; }

/* day editor panel + the R1 block sheet */
.day-panel { position: sticky; top: 84px; align-self: start; }
.day-panel .chiprow { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { border: 1px solid var(--ink-line); background: var(--cream-raised); color: var(--ink-2); border-radius: 999px; padding: 7px 14px; cursor: pointer; font-size: .88rem; min-height: 38px; transition: all .15s var(--ease); }
.chip:hover { border-color: var(--copper); }
.chip.on { background: var(--charcoal); color: var(--cream); border-color: var(--charcoal); }
/* the block stepper (one number, big tap targets, thumb-zone) */
.stepper { display: inline-flex; align-items: center; gap: 0; border: 1px solid var(--ink-line); border-radius: var(--r-btn); overflow: hidden; }
.stepper button { border: 0; background: var(--cream-raised); color: var(--charcoal); width: 46px; height: 46px; font-size: 1.3rem; cursor: pointer; }
.stepper button:hover { background: var(--copper-tint); }
.stepper button[disabled] { opacity: .4; cursor: not-allowed; }
.stepper .val { min-width: 56px; text-align: center; font-family: "Marcellus", serif; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.reopen-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.reopen-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--sand-line); border-radius: var(--r-btn); background: var(--cream-raised); }
.reopen-row .body { flex: 1; min-width: 0; font-size: .86rem; }
.reopen-row .body .meta { color: var(--ink-3); font-size: .78rem; }

/* Time-slot inventory (BUILD B): the per-slot day editor rows reuse .reopen-row's
   shell; .slot-row adds the time label + the per-slot capacity input. */
.slot-row .time { color: var(--charcoal); font-variant-numeric: tabular-nums; }
.slot-cap { padding: 9px 8px; border: 1px solid var(--ink-line); border-radius: var(--r-btn); background: var(--cream-raised); color: var(--charcoal); font: inherit; min-height: 44px; }
.slot-cap:focus { border-color: var(--copper); box-shadow: var(--ring); outline: none; }

/* ---- Mobile bottom tabs ----------------------------------------------------- */
.tabbar { display: none; }

/* ---- LANDING (the role-aware front door) ------------------------------------ */
.landing { min-height: 100vh; display: flex; flex-direction: column; }
.landing-top { display: flex; align-items: center; gap: 12px; padding: 18px 32px; border-bottom: 1px solid var(--sand-line); }
.landing-top .brand { padding: 0; }
.landing-top .spacer { flex: 1; }
.landing-hero { max-width: 940px; width: 100%; margin: 0 auto; padding: 56px 24px 24px; }
.landing-hero h1 { font-size: 2.4rem; max-width: 16ch; line-height: 1.15; }
.landing-hero .lead { font-size: 1.12rem; color: var(--ink-2); max-width: 52ch; }
.role-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 34px 0 22px; max-width: 940px; }
.role-card {
  display: flex; flex-direction: column; gap: 8px; padding: 24px;
  border: 1.5px solid var(--ink-line-2); border-radius: var(--r-card);
  background: var(--cream-raised); box-shadow: var(--shadow-1); color: inherit;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.role-card:hover { border-color: var(--copper); box-shadow: var(--shadow-2); text-decoration: none; transform: translateY(-2px); }
.role-card .rc-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--copper-tint); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.role-card .rc-ico svg { width: 24px; height: 24px; stroke: var(--copper-press); }
.role-card h3 { margin: 0; font-size: 1.25rem; }
.role-card .rc-sub { color: var(--ink-2); font-size: .95rem; }
.role-card .rc-go { margin-top: auto; color: var(--copper-press); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; padding-top: 8px; }
.role-card .rc-go svg { width: 16px; height: 16px; stroke: var(--copper-press); }
.quiet-links { max-width: 940px; display: flex; gap: 22px; flex-wrap: wrap; color: var(--ink-2); font-size: .95rem; padding: 4px 0 26px; }
.trust-strip { max-width: 940px; margin: 0 auto; padding: 18px 24px 48px; border-top: 1px solid var(--sand-line); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; color: var(--ink-2); font-size: .86rem; }
.trust-strip .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-line); }
@media (max-width: 760px) {
  .role-cards { grid-template-columns: 1fr; }
  .landing-hero h1 { font-size: 1.9rem; }
  .landing-top { padding: 14px 18px; }
  .landing-hero { padding: 32px 18px 18px; }
}

/* ---- MT / regulator surface dial (a notch more formal, copper used sparingly) */
.mt .sidebar { background: #FBF8F2; }
.mt .nav-link.active { background: var(--charcoal); color: var(--cream); }
.mt .nav-link.active svg { stroke: var(--cream); }
.mt .assurance { font-family: "Marcellus", serif; font-size: 1.5rem; color: var(--charcoal); line-height: 1.3; }
.data-scope-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--info-soft); color: var(--info); border-radius: var(--r-chip); padding: 4px 10px; font-size: .78rem; }
.data-scope-chip svg { width: 13px; height: 13px; }

/* Onboarding persona cards (the day-1 chooser). Single-operator cards lift on
   hover; the AGGREGATOR card (Hawi, bulk path) is copper-tinted to read DISTINCT
   from the single-operator set (plan 7.4). */
button.persona-card { border: 0; font: inherit; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); }
button.persona-card:hover { border: 1px solid var(--copper); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.aggregator-card { background: var(--copper-tint); border: 1.5px solid var(--ink-line-2); }
.aggregator-card:hover { border-color: var(--copper-press); }

/* R7 acting-role chip (owner / staff / operating) -- the 2-role boundary, visible */
.role-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--cream-raised); color: var(--ink-2); border: 1px solid var(--ink-line); border-radius: var(--r-chip); padding: 4px 10px; font-size: .78rem; white-space: nowrap; }
.role-chip svg { width: 13px; height: 13px; stroke: var(--ink-3); }

/* ---- Buyer storefront dial (most human/alive) ------------------------------- */
/* H2/M5: the buyer storefront — the front door travellers see — now wears the
   shared living-horizon signature + reveal motion, on the warm F2 ground. */
.store-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 360px at 14% -20%, rgba(184,115,51,.16), transparent 60%),
    linear-gradient(135deg, var(--copper-tint), var(--cream-raised));
  border: 1px solid var(--sand-line); border-radius: var(--r-card);
  /* R3 hero-works-harder: tighter padding so the photo-rich grid rises above the
     fold faster. Extra bottom room is kept for the living horizon + the search bar
     that now overlaps the hero's bottom edge (negative-margin pull below). */
  padding: 34px 32px 48px; margin-bottom: 0;
}
.store-hero .store-hero-body { position: relative; z-index: 2; }
.store-hero h1 { font-size: 2.1rem; max-width: 18ch; margin-bottom: .3em; }
.store-hero .lead { margin-bottom: .9em; }
/* pull the search field UP to overlap the hero's bottom edge — it reads as one
   connected "arrive → search" gesture and lifts the grid higher. Raised above the
   living horizon (z-index) so the wave sits behind the bar, never through it. */
#store-search { position: relative; z-index: 3; margin-top: -28px; }
/* the living horizon (two undulating SVG paths) sitting quietly in the hero. */
.f2-horizon { position: absolute; inset-inline: 0; inset-block-end: 14px; width: 100%; height: 56px; pointer-events: none; z-index: 1; }
.f2-horizon .back { filter: drop-shadow(0 0 5px rgba(184,115,51,.20)); opacity: .45; }
.f2-horizon .front { filter: drop-shadow(0 0 6px rgba(184,115,51,.30)); opacity: .8; }
/* THE LIGHT HORIZON BREATHES (UI/UX Round 1) — the warm storefront face gets the
   SAME idle breath as the Dusk ridge: a tiny ~2.5px lift + faint opacity swell on
   a long loop, the two crests offset so the horizon feels alive at rest (it already
   carries the SMIL wave; this adds the settle-then-breathe rest motion). Transform/
   opacity only (compositor-cheap). Gated to no-preference; the reduced-motion block
   below stills it belt-and-braces. */
@media (prefers-reduced-motion: no-preference) {
  .f2-horizon .front { animation: jHorizonBreathF2 9.5s ease-in-out infinite; will-change: transform, opacity; }
  .f2-horizon .back  { animation: jHorizonBreathF2 11.5s ease-in-out infinite -3.2s; will-change: transform, opacity; }
}
@keyframes jHorizonBreathF2 {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -2.5px, 0); }
}

/* ============================================================================
   THE ONE CANONICAL RISE-IN REVEAL ``.rv`` (UI/UX Round 1).
   ----------------------------------------------------------------------------
   The rise-in reveal was re-defined ~4× (here for F2, plus body.dusk in
   operator_dusk.css, sanam_cockpit.css, mt_console.css) with DRIFTING durations
   (.6s / .7s) + a hard-coded easing — so the same gesture played at different
   speeds across surfaces. THIS is the single source of truth: the start state is
   hidden + nudged down; ``body.ready`` (set by S.reveal on EVERY surface, light or
   Dusk) releases it. It reads the motion tokens (--mo-slow + --ease-out) so the
   reveal speed is ONE value app-wide. The per-front dup definitions are deleted by
   the sibling agent; this rule covers both light and Dusk (body.dusk also carries
   ``ready``), so nothing regresses when they go. */
.rv { opacity: 0; transform: translateY(16px); transition: opacity var(--mo-slow) var(--ease-out), transform var(--mo-slow) var(--ease-out); }
body.ready .rv { opacity: 1; transform: none; }

.experience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.exp-card { border: 1px solid var(--sand-line); border-radius: var(--r-card); overflow: hidden; background: var(--cream-raised); box-shadow: var(--shadow-1); transition: box-shadow .2s var(--ease); }
/* a card carrying the reveal needs opacity+transform transitions too (its base
   rule above only animates box-shadow); keep the inline stagger delay working.
   Reads the canonical reveal tokens so it never drifts from the base .rv. */
.exp-card.rv { transition: opacity var(--mo-slow) var(--ease-out), transform var(--mo-slow) var(--ease-out), box-shadow var(--mo) var(--ease-out); }
.exp-card:hover { box-shadow: var(--shadow-2); }
.exp-card .photo { aspect-ratio: 3/2; background: linear-gradient(135deg, var(--camel), var(--cream-sunk)); }
.exp-card .body { padding: 14px 16px; }
.exp-card .price { font-family: "Marcellus", serif; font-size: 1.2rem; color: var(--charcoal); font-variant-numeric: tabular-nums; }
/* the quiet "N options" chip on a multi-option LISTING card (self-drive vs with-
   driver, …) — signals choices inside without shouting. Single-option = no chip. */
.exp-opts-chip {
  display: inline-block; font-family: var(--font-ui, inherit); font-size: .72rem; font-weight: 500;
  color: var(--copper-press); background: var(--copper-tint);
  border: 1px solid var(--ink-line-2); border-radius: var(--r-chip, 999px);
  padding: 1px 8px; vertical-align: middle; white-space: nowrap;
}
@media (max-width: 980px) { .experience-grid { grid-template-columns: 1fr 1fr; } }

/* ---- the OPTION PICKER (Listings->Options, buyer storefront detail) ----------
   A clear, guest-friendly radio list shown in the detail when a listing has >1
   option. Picking a row routes to that option's detail (#exp/<pid>), re-pointing
   the booking module at the chosen option (= a product) — the spine is unchanged. */
.opt-card { border-color: var(--copper); }
.opt-list { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.opt-row {
  display: flex; align-items: center; gap: 12px; color: inherit; cursor: pointer;
  background: var(--cream-raised); border: 1.5px solid var(--sand-line);
  border-radius: 12px; padding: 13px 15px; transition: border-color .15s var(--ease), background .15s var(--ease);
}
.opt-row:hover { border-color: var(--copper); text-decoration: none; background: var(--copper-tint); }
.opt-row:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }
.opt-row.active { border-color: var(--copper-press); background: var(--copper-tint); }
.opt-mark {
  flex: none; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--copper); position: relative; display: inline-block;
}
.opt-row.active .opt-mark::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--copper-press);
}
.opt-body { flex: 1 1 auto; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.opt-label { font-weight: 600; line-height: 1.3; color: var(--charcoal); }
.opt-price { font-family: "Marcellus", serif; font-weight: 600; color: var(--copper-press); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---- Responsive ------------------------------------------------------------- */
@media (max-width: 1080px) { .split-7-5 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }
/* Calendar: swap the dense month grid for the 'this week' list at <=980px. */
@media (max-width: 980px) {
  .tile-row { grid-template-columns: 1fr 1fr; }
  .cal-grid, .skel-grid { display: none; }
  .mobile-week { display: block !important; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  /* operator P1-3 — ONE shared fix for the fixed bottom-tab overlap: reserve the
     bar's height + a breathing gap + the iOS safe-area inset on THE scroll
     container every page renders into (.content / the buyer store), so no content
     (add-listing intro, a booking row, a check-in picker row) can sit under the
     bar. The tabbar is only shown <=860px, so the reserve lives here. */
  .content { padding: 18px 16px calc(var(--bottomnav-h) + 24px + env(safe-area-inset-bottom, 0px)); }
  /* keep the bar itself clear of the home-indicator so the bar never clips either. */
  .tabbar { padding-block-end: calc(6px + env(safe-area-inset-bottom, 0px)); }
  .topbar { padding: 12px 16px; }
  .operate-as, .demo-strip { padding: 8px 16px; }
  .tile-row { grid-template-columns: 1fr 1fr; }
  .experience-grid { grid-template-columns: 1fr; }
  /* 5-tab discipline (2026-06-30): exactly 5 EQUAL-width cells (4 routes + More).
     justify-content stretches them; each cell is flex:1 1 0 + min-width:0 so they
     share the bar evenly. Labels are forced to ONE line (no Arabic wrap) with an
     ellipsis safety-net; the bar height is uniform regardless of label length. */
  .tabbar { display: flex; position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 30; background: var(--cream-raised); border-top: 1px solid var(--sand-line); padding: 6px 4px; justify-content: stretch; }
  .tabbar a, .tabbar button { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 6px 2px; color: var(--ink-3); font-size: .68rem; min-height: 52px; }
  /* single-line label, never wraps (worst-case Arabic) — clip with an ellipsis */
  .tabbar a span, .tabbar button span { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.1; }
  .tabbar button { border: 0; background: transparent; font: inherit; cursor: pointer; }
  .tabbar a.active { color: var(--copper-press); font-weight: 600; }
  .tabbar a svg, .tabbar button svg { width: 22px; height: 22px; stroke: currentColor; flex: none; }
  .tabbar button#nav-more[aria-expanded="true"] { color: var(--copper-press); }
  .page-head .actions { width: 100%; }
  .page-head .actions .btn { flex: 1; }
}

/* ---- H1: the MOBILE NAV DRAWER (the "More" overflow sheet) -------------------
   A slide-up sheet that lists EVERY persona nav item so no route is stranded on
   a phone (the bottom tab-bar only carries the tab:true items). It is a fixed
   overlay opened only via the tab-bar "More" button (which itself only shows
   <=860px), so it never appears on desktop. Logical properties (LTR + RTL),
   44px touch rows, reduced-motion friendly. */
.nav-drawer-backdrop {
  position: fixed; inset: 0; z-index: 40; background: rgba(43,31,22,.46);
  opacity: 0; transition: opacity .22s var(--ease);
}
.nav-drawer-backdrop.open { opacity: 1; }
.nav-drawer {
  position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 41;
  background: var(--cream-raised); border-top: 1px solid var(--sand-line);
  border-start-start-radius: 20px; border-start-end-radius: 20px;
  box-shadow: 0 -18px 44px rgba(43,31,22,.28);
  padding: 8px 14px calc(14px + env(safe-area-inset-bottom, 0px));
  max-height: 78vh; overflow-y: auto;
  transform: translateY(102%); transition: transform .24s cubic-bezier(.2,.8,.2,1);
}
.nav-drawer.open { transform: translateY(0); }
.nav-drawer::before {
  content: ""; display: block; width: 40px; height: 4px; border-radius: 999px;
  background: var(--sand-line); margin: 6px auto 8px;
}
.nav-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 4px 6px; }
.nav-drawer-title { font-family: "Marcellus", serif; font-size: 1.1rem; color: var(--charcoal); }
.nav-drawer-x { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; border-radius: var(--r-btn); color: var(--ink-2); }
.nav-drawer-x:hover { background: var(--cream-sunk); }
.nav-drawer-x svg { width: 22px; height: 22px; stroke: currentColor; }
.nav-drawer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.nav-draw-link {
  display: flex; align-items: center; gap: 10px; min-height: 48px;
  padding: 10px 12px; border-radius: var(--r-btn); color: var(--ink-2);
  border: 1px solid var(--sand-line); background: var(--cream); font: inherit;
  text-align: start; cursor: pointer; transition: border-color .15s var(--ease), background .15s var(--ease), color .15s var(--ease);
}
.nav-draw-link svg { width: 20px; height: 20px; stroke: currentColor; flex: none; }
.nav-draw-link:hover { border-color: var(--copper); color: var(--charcoal); }
.nav-draw-link.active { border-color: var(--copper-press); background: var(--copper-tint); color: var(--copper-press); font-weight: 600; }
.nav-draw-link.soon { opacity: .65; }
.nav-draw-link .soon-tag { margin-inline-start: auto; font-size: .66rem; padding: 2px 7px; border-radius: 999px; background: var(--cream-sunk); color: var(--ink-3); }
.nav-drawer-foot { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--sand-line); }
.nav-drawer-foot .nav-portal-switch { display: inline-flex; }
@media (prefers-reduced-motion: reduce) {
  .nav-drawer, .nav-drawer-backdrop { transition: none; }
}

/* ============================================================================
   STEP 4 — MT VIEW + BUYER STOREFRONT (full surfaces over the G1 shell).
   ============================================================================ */

/* A bare <label> inside a .field (the new MT/storefront forms use <label>
   directly, not the .lbl child) gets the same treatment as .field > .lbl. */
.field > label { display: block; font-size: .85rem; color: var(--ink-2); margin-bottom: 6px; font-weight: 500; }

/* ---- MT: document-grade table (compliance roster + export history) --------- */
.mt-table { border: 1px solid var(--sand-line); border-radius: var(--r-card); overflow: hidden; background: var(--cream-raised); }
.mt-tr { display: grid; grid-template-columns: 1.6fr 1fr .9fr 1.3fr .7fr; gap: 12px; align-items: center; padding: 12px 16px; border-block-start: 1px solid var(--sand-line); }
.mt-tr:first-child { border-block-start: 0; }
.mt-th { background: #FBF8F2; font-size: .78rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.mt-tr span[role="cell"] { font-size: .9rem; min-width: 0; }
.mt-tr .tabular { font-variant-numeric: tabular-nums; }

/* ---- MT: aggregate bars (chart WITH a table-row alternative, a11y) --------- */
.mt-bars { display: flex; flex-direction: column; gap: 10px; }
.mt-bar-row { display: grid; grid-template-columns: 160px 1fr; grid-template-areas: "label track" "meta meta"; gap: 4px 14px; align-items: center; }
.mt-bar-label { grid-area: label; font-size: .9rem; font-weight: 500; }
.mt-bar-track { grid-area: track; background: var(--cream-sunk); border-radius: 999px; block-size: 14px; overflow: hidden; }
.mt-bar-fill { display: block; block-size: 100%; background: linear-gradient(90deg, var(--sea), var(--copper)); border-radius: 999px; }
.mt-bar-meta { grid-area: meta; color: var(--ink-3); font-size: .8rem; padding-inline-start: 174px; }
@media (max-width: 760px) { .mt-bar-meta { padding-inline-start: 0; } .mt-bar-row { grid-template-columns: 1fr; grid-template-areas: "label" "track" "meta"; } }

/* ---- MT: export manifest + bullet lists ------------------------------------ */
.mt-manifest { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; margin-top: 6px; }
.mt-mrow { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-block-end: 1px dashed var(--sand-line); font-size: .88rem; }
.mt-bullets { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.mt-bullets li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-2); }
.mt-bullets li svg { width: 18px; height: 18px; flex: none; margin-top: 1px; stroke: var(--copper); }

/* ---- Storefront: back link + section dial ---------------------------------- */
.store-back { display: inline-flex; align-items: center; gap: 6px; color: var(--copper-press); font-weight: 500; margin-bottom: 14px; }
.store-back svg { width: 18px; height: 18px; transform: scaleX(-1); }
[dir="rtl"] .store-back svg { transform: none; }
.exp-card { display: block; color: inherit; cursor: pointer; }

/* ---- Storefront: real cover images layered over the warm gradient ----------- */
/* The .photo keeps its cream->camel gradient as the placeholder; the <img> sits
   ON it (object-fit cover) so a real (SIM placeholder) photo shows with no flash
   of nothing, and a load failure degrades gracefully back to the gradient. */
.exp-card .photo { position: relative; }
.photo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- Storefront: search + filter bar (G5) ---------------------------------- */
.store-search { background: var(--cream-raised); border: 1px solid var(--sand-line); border-radius: var(--r-card); padding: 16px 18px; margin-bottom: 20px; box-shadow: var(--shadow-1); }
.ss-row { display: flex; gap: 12px; flex-wrap: wrap; }
.ss-field { display: flex; align-items: center; gap: 8px; border: 1px solid var(--ink-line); border-radius: var(--r-btn); background: var(--cream); padding: 0 12px; min-height: 48px; }
.ss-field svg { width: 18px; height: 18px; stroke: var(--ink-3); flex: none; }
.ss-field input { border: 0; background: transparent; font: inherit; color: var(--charcoal); padding: 12px 0; outline: none; min-width: 0; }
.ss-field.ss-q { flex: 1 1 280px; }
.ss-field.ss-q input { width: 100%; }
.ss-field.ss-date { flex: 0 1 200px; }
.ss-field:focus-within { border-color: var(--copper); box-shadow: var(--ring); }
.ss-facets { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.ss-flabel { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; margin-inline-end: 4px; }
.ss-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--ink-line); border-radius: var(--r-chip); background: var(--cream); color: var(--ink-2); font: inherit; font-size: .85rem; padding: 6px 12px; min-height: 36px; cursor: pointer; transition: border-color .15s var(--ease), background .15s var(--ease), color .15s var(--ease); }
.ss-chip:hover { border-color: var(--copper); }
.ss-chip.active { background: var(--copper-tint); border-color: var(--copper-press); color: var(--copper-press); font-weight: 600; }
.ss-chip .ss-n { font-size: .72rem; opacity: .7; font-variant-numeric: tabular-nums; }
.ss-clear { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; border: 0; background: transparent; color: var(--copper-press); font: inherit; font-size: .85rem; cursor: pointer; padding: 4px 0; }
.ss-clear svg { width: 15px; height: 15px; stroke: var(--copper-press); }
@media (max-width: 520px) { .ss-field.ss-date { flex-basis: 100%; } }

/* ---- Storefront: experience detail ---------------------------------------- */
.detail-grid { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.detail-main { display: flex; flex-direction: column; gap: 16px; }
.hero-gallery { position: relative; aspect-ratio: 16/9; border-radius: var(--r-card); overflow: hidden; background: linear-gradient(135deg, var(--camel), var(--cream-sunk), var(--copper-tint)); }
.gal-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-sim { position: absolute; inset-block-start: 10px; inset-inline-end: 10px; display: inline-flex; align-items: center; gap: 6px; background: rgba(244,237,226,.92); border-radius: var(--r-chip); padding: 4px 8px; font-size: .72rem; color: var(--ink-2); }
.gal-thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.gal-thumb { width: 76px; height: 56px; border-radius: var(--r-btn); overflow: hidden; border: 2px solid transparent; background: linear-gradient(135deg, var(--camel), var(--cream-sunk)); cursor: pointer; padding: 0; }
.gal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-thumb.active { border-color: var(--copper-press); box-shadow: var(--ring); }
.gal-thumb:hover { border-color: var(--copper); }
.story-card .story { font-size: 1rem; line-height: 1.65; color: var(--ink-2); margin: 0; }
.os-item .photo-sm { position: relative; overflow: hidden; }
.detail-head h1 { font-size: 1.9rem; margin: 6px 0; }
.detail-head .price-from { font-family: "Marcellus", serif; font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.inc-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.inc-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.inc-list li svg { width: 18px; height: 18px; flex: none; stroke: var(--ok); margin-top: 1px; }
.practicalities { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.prac { display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid var(--sand-line); border-radius: var(--r-btn); background: var(--cream-raised); }
.prac .muted { font-size: .78rem; display: flex; align-items: center; gap: 6px; }
.prac .muted svg { width: 15px; height: 15px; }

/* the booking module (sticky on desktop) */
.booking-module { position: sticky; top: 16px; border: 1px solid var(--ink-line); border-radius: var(--r-card); background: var(--cream-raised); box-shadow: var(--shadow-2); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.bm-price { font-family: "Marcellus", serif; font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.bm-section > label { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--ink-2); font-weight: 500; margin-bottom: 8px; }
/* ---- the REAL-calendar booking grid (R3 traveller-storefront) ----------------
   It must read as a true calendar, not a wall of identical tiles: a S M T W T F S
   weekday header, day tiles laid out in 7-column WEEKS (Sun-start, the KSA/Gulf
   convention) with a leading spacer so the first week aligns under its real
   weekday, a soft month divider, and scarcity shown ONLY when remaining is real
   (<=4) — otherwise a calm "Available" dot. Light "Paper Desert" face; RTL falls
   out of the logical grid + [dir]-swapped letters (no extra rules needed). */
.bm-wdhead { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; margin-bottom: 5px; }
.bm-wdhead span { text-align: center; font-size: .62rem; font-weight: 600; letter-spacing: .02em; color: var(--ink-3); text-transform: uppercase; }
.bm-cal { display: flex; flex-direction: column; gap: 6px; }
/* minmax(0,1fr) lets every column shrink BELOW its content width — without it a
   wide word ("Available") forces the 7th column off the 360px module edge. */
.bm-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.bm-pad { visibility: hidden; }
.bm-month { font-size: .72rem; font-weight: 600; color: var(--copper-press); letter-spacing: .02em; margin: 8px 0 1px; }
.bm-month:first-child { margin-top: 0; }
.bm-day { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; border: 1px solid var(--sand-line); border-radius: var(--r-btn); background: var(--cream); cursor: pointer; min-height: 58px; transition: border-color .15s var(--ease), background .15s var(--ease), box-shadow .15s var(--ease); }
.bm-day:hover:not([disabled]) { border-color: var(--copper); box-shadow: var(--shadow-1); }
.bm-day.selected { border-color: var(--copper); background: var(--copper-tint); box-shadow: var(--ring); }
.bm-day.sold { opacity: .55; cursor: not-allowed; background: var(--danger-soft); }
/* a low-stock day gets a faint saffron edge — the honest scarcity cue (amber,
   never red), reinforced by the "N left" word so colour is never the only signal. */
.bm-day.low:not(.selected) { border-color: var(--saffron); }
.bm-wd { font-size: .58rem; font-weight: 600; letter-spacing: .03em; color: var(--ink-3); text-transform: uppercase; line-height: 1; }
.bm-day.selected .bm-wd { color: var(--copper-press); }
.bm-dd { font-family: "Marcellus", serif; font-size: 1.15rem; line-height: 1.05; }
.bm-rem { font-size: .54rem; color: var(--ink-3); text-align: center; line-height: 1.05; margin-top: 2px; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
/* the calm available state is a centred dot only (the word is too wide for a real
   7-col tile; it lives in the button's accessible name + hover title). */
.bm-rem.bm-avail { display: flex; align-items: center; justify-content: center; min-height: 8px; }
.bm-rem .bm-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); flex: none; }
.bm-day.selected .bm-rem .bm-dot { background: var(--copper-press); }
/* a genuinely low day: the saffron "N left" word (scarcity, amber never red). */
.bm-rem.bm-low { color: var(--warn); font-weight: 700; }  /* amber #8A5E08 — AA on cream + the scarcity-amber-never-red rule */
.bm-day.sold .bm-rem { color: var(--danger); }
.bm-quote { min-height: 1px; }
.bm-total { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-block-start: 1px solid var(--sand-line); font-family: "Marcellus", serif; }
.bm-total strong { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.bm-cancel { display: flex; align-items: center; gap: 6px; color: var(--ok); font-size: .82rem; }
.bm-cancel svg { width: 15px; height: 15px; stroke: var(--ok); }
.bm-reserve { width: 100%; justify-content: center; font-size: 1.05rem; padding: 13px; }
.bm-foot { display: flex; align-items: flex-start; gap: 6px; color: var(--ink-3); font-size: .76rem; margin: 0; }
.bm-foot svg { width: 14px; height: 14px; flex: none; margin-top: 1px; }

/* the MOBILE time-to-reserve summary (R3): a slim "from SAR X · pick a date"
   pill under the gallery that jumps to the live booking module. DESKTOP: hidden
   (the sticky module is right there); it only appears once the module drops to the
   bottom at <=860px. The SAFE variant — an in-flow anchor, not a sticky bar. */
.bm-mobile-summary { display: none; }
@media (max-width: 860px) {
  .bm-mobile-summary {
    display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
    margin: 2px 0 4px; padding: 11px 16px; min-height: 48px;
    border: 1px solid var(--copper-press); border-radius: var(--r-btn);
    background: var(--copper-tint); color: var(--copper-press); cursor: pointer;
    font: inherit; font-weight: 600; box-shadow: var(--shadow-1);
    transition: background var(--mo) var(--ease-out), box-shadow var(--mo) var(--ease-out);
  }
  .bm-mobile-summary:hover { background: #EAD6BC; box-shadow: var(--shadow-2); }
  .bm-mobile-summary .bms-price { font-family: "Marcellus", serif; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
  .bm-mobile-summary .bms-sep { color: var(--ink-line-2); }
  .bm-mobile-summary .bms-cta { display: inline-flex; align-items: center; gap: 6px; }
  .bm-mobile-summary .bms-cta svg { width: 16px; height: 16px; stroke: var(--copper-press); }
}

/* B1 (mobile) — the STICKY BOTTOM BOOK-BAR (storefront, parity with the operator
   /site). At <=640px the booking module drops to the bottom of the content column, so
   a phone visitor must scroll past everything to reach Reserve. This persistent,
   genuinely-tappable (>=44px) bar is pinned to the bottom of the viewport with
   "from SAR X" + a prominent Book button that scrolls to the live booking module (it
   never owns price/availability, so it can't drift). DESKTOP: hidden (the sticky
   module is right there); shown ONLY <=640px. The storefront is the deliberately warm
   public face (body.public-warm), so it stays warm/cream in both themes — matching the
   surrounding .booking-module. dir-aware → mirrors correctly under RTL. */
.store-bookbar { display: none; }
@media (max-width: 640px) {
  .store-bookbar {
    display: block;
    position: fixed; inset: auto 0 0 0; z-index: 60;
    background: var(--cream-raised); border-top: 1px solid var(--ink-line);
    box-shadow: 0 -6px 20px rgba(43,31,22,.14);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .store-bookbar-in {
    max-width: 1100px; margin: 0 auto; padding: 10px 16px;
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
  }
  .store-bookbar-price {
    font-family: "Marcellus", serif; font-size: 1.12rem; font-weight: 600;
    color: var(--charcoal); font-variant-numeric: tabular-nums; white-space: nowrap;
  }
  .store-bookbar-price .sbb-from { font-family: inherit; font-weight: 400; font-size: .82rem; color: var(--ink-2); }
  .store-bookbar-btn {
    flex: 0 0 auto; min-height: 46px; min-width: 44px;
    padding: 12px 24px; font-size: 1rem; font-weight: 600; white-space: nowrap;
  }
  .store-bookbar-btn svg { width: 16px; height: 16px; }
  /* clear the fixed bar so it never covers the last line of the booking module. */
  #store-content .detail-grid { padding-bottom: 76px; }
}

/* the storefront trust strip (overrides the landing-scoped .trust-strip) */
#store-content .trust-strip { max-width: none; margin: 0; padding: 0; border-top: 0; gap: 8px; }

/* ---- Storefront: checkout + payment --------------------------------------- */
.checkout-grid { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.checkout-main { display: flex; flex-direction: column; gap: 16px; }
.checkout-main h1 { font-size: 1.7rem; margin: 0; }
.hold-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; background: var(--copper-tint); border: 1px solid var(--ink-line-2); border-radius: var(--r-btn); padding: 10px 14px; color: var(--copper-press); font-weight: 600; font-variant-numeric: tabular-nums; }
.hold-bar svg { width: 18px; height: 18px; stroke: var(--copper-press); }
.pay-methods { display: flex; flex-direction: column; gap: 8px; margin-bottom: 6px; }
.pay-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border: 1px solid var(--ink-line); border-radius: var(--r-btn); background: var(--cream); color: var(--ink-2); font: inherit; font-weight: 600; min-height: 48px; cursor: pointer; transition: border-color .12s, background .12s; }
.pay-btn:hover { border-color: var(--copper-press); }
.pay-btn svg { width: 18px; height: 18px; }
.pay-btn.active { border-color: var(--copper-press); background: var(--copper-tint); color: var(--copper-press); box-shadow: inset 0 0 0 1px var(--copper-press); }
.pay-btn[disabled] { cursor: not-allowed; opacity: .65; }
.pay-card .field { margin-bottom: 12px; }
.co-pay { width: 100%; justify-content: center; font-size: 1.05rem; padding: 13px; }
.order-summary { position: sticky; top: 16px; border: 1px solid var(--sand-line); border-radius: var(--r-card); background: var(--cream-raised); padding: 18px; }
.order-summary h3 { margin: 0 0 12px; }
.os-item { display: flex; gap: 12px; padding-bottom: 12px; border-block-end: 1px solid var(--sand-line); margin-bottom: 12px; }
.os-item .photo-sm { width: 56px; height: 56px; border-radius: var(--r-btn); background: linear-gradient(135deg, var(--camel), var(--cream-sunk)); flex: none; }
.os-item .muted { font-size: .82rem; }
.os-line { display: flex; justify-content: space-between; font-size: .9rem; padding: 4px 0; }
.os-total { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0 6px; border-block-start: 1px solid var(--sand-line); margin-top: 6px; font-family: "Marcellus", serif; }
.os-total strong { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.os-cancel { display: flex; align-items: center; gap: 6px; color: var(--ok); font-size: .8rem; margin-top: 8px; }
.os-cancel svg { width: 15px; height: 15px; stroke: var(--ok); }
.os-preview { border-block-start: 1px dashed var(--sand-line); margin-top: 12px; padding-top: 4px; }
.os-preview .faint { font-size: .82rem; line-height: 1.5; }

/* ---- Storefront: buyer account (sign-in / my bookings) ------------------- */
.store-account-slot { display: inline-flex; align-items: center; margin-inline-end: 10px; }
.store-acct { display: inline-flex; align-items: center; gap: 6px; color: var(--copper-press); font-weight: 600; font-size: .9rem; padding: 6px 10px; border-radius: var(--r-btn); }
.store-acct:hover { background: var(--copper-tint); }
.store-acct svg { width: 17px; height: 17px; stroke: var(--copper-press); }
.signin-wrap { max-width: 460px; margin: 0 auto; }
.signin-wrap h1 { font-size: 1.8rem; margin: 0 0 6px; }
.mybk-list { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.mybk-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.mybk-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---- Storefront: voucher (the reassurance moment) ------------------------- */
.voucher-wrap { max-width: 560px; margin: 0 auto; text-align: center; padding: 24px 0; }
.voucher-wrap h1 { font-size: 2.2rem; margin: 14px 0 6px; }
.voucher-mark { width: 72px; height: 72px; border-radius: 50%; background: var(--ok-soft); display: inline-flex; align-items: center; justify-content: center; }
.voucher-mark svg { width: 38px; height: 38px; stroke: var(--ok); }
.voucher-card { text-align: start; margin: 22px 0; border: 1px solid var(--sand-line); border-radius: var(--r-card); background: var(--cream-raised); overflow: hidden; }
.vc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; background: var(--copper-tint); border-block-end: 1px solid var(--sand-line); }
.vc-ref { font-family: "Marcellus", serif; font-size: 1.15rem; letter-spacing: .04em; }
.vc-body { padding: 6px 18px 14px; }
.vc-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-block-end: 1px dashed var(--sand-line); font-size: .92rem; }
.vc-row:last-child { border-block-end: 0; }
.vc-voucher { padding: 16px 18px 18px; border-block-start: 1px dashed var(--sand-line); text-align: center; background: var(--cream); }
.vc-token { font-family: "Marcellus", serif; font-size: 1.25rem; letter-spacing: .06em; word-break: break-all; margin: 6px 0; color: var(--copper-press); }
.voucher-ok { background: var(--ok-soft); }
/* Negative buyer moment (hold expired): on-brand Oud, never green/red (BRAND law:
   negatives in --danger = Oud). Mirrors the .voucher-ok pattern; the glyph stroke
   is --danger so colour does the RIGHT job on the one negative state -- green-on-
   brown (the old inheritance) was both off-brand and the weakest contrast pair. */
.voucher-mark.voucher-warn { background: var(--danger-soft); }
.voucher-mark.voucher-warn svg { stroke: var(--danger); }
.confirmed-wrap { text-align: center; }
.confirmed-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 6px; }
.voucher-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
.mybk-h { font-size: 1.05rem; margin: 22px 0 4px; display: flex; align-items: center; gap: 8px; }

@media (max-width: 860px) {
  .detail-grid, .checkout-grid { grid-template-columns: 1fr; }
  .booking-module, .order-summary { position: static; }
  .mt-tr { grid-template-columns: 1fr 1fr; row-gap: 4px; }
  .mt-th { display: none; }
  .practicalities { grid-template-columns: 1fr; }
  /* the week grid keeps its true 7 columns on mobile (a real calendar); the tiles
     simply get narrower — tighten padding/letters so 7 fit cleanly at 390px. */
  .bm-day { min-height: 56px; padding: 6px 1px 5px; }
  .bm-dd { font-size: .98rem; }
  .bm-week, .bm-wdhead { gap: 4px; }
}
/* ---- Phone (<=520px): no horizontal overflow anywhere -----------------------
   The buyer storefront is the front door most travellers see (journeys 2.4/3.4:
   no horizontal scroll at 375). Constrain the ground, soften the hero, let the
   top bar wrap, and drop operator tiles to one-per-row so nothing clips. */
@media (max-width: 520px) {
  /* (phone overflow safety net now lives in the ALWAYS-ON base rule above as
     `overflow-x: clip` — clip doesn't break position:sticky the way hidden did.) */
  .content, #store-content { padding-inline: 14px; }
  /* buyer storefront */
  .store-hero { padding: 28px 18px 44px; }
  .store-hero h1 { font-size: 1.55rem; max-width: none; }
  .f2-horizon { height: 44px; inset-block-end: 10px; }
  .landing-top { padding: 12px 14px; flex-wrap: wrap; }
  .landing-top .brand-text { font-size: 1rem; }
  .experience-grid { grid-template-columns: 1fr; }
  .exp-card .body { padding: 12px 14px; }
  #store-content .trust-strip { gap: 6px; }
  #store-content .trust-strip .pill { font-size: .72rem; }
  /* operator portals: one tile per row so the 2nd tile never clips */
  .tile-row { grid-template-columns: 1fr; }
  /* the truth/demo strip wraps + clamps rather than overflowing */
  .demo-strip { white-space: normal; }
  /* hide the org-switch chip on the public store top bar if present */
  .landing .org-switch { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .skel { background: var(--cream-sunk); }
  .role-card:hover { transform: none; }
  /* the universal clickable hover-lift: keep the recolour, drop the movement. */
  .card.is-clickable:hover, a.card:hover, button.card:hover,
  .alert-row.is-clickable:hover, a.alert-row:hover, button.alert-row:hover,
  .stat-tile.stat-link:hover, a.stat-tile:hover, button.stat-tile:hover { transform: none; }
  .skip-link { transition: none; }
  /* the F2 reveal shows its final state immediately (no rise); the living-horizon
     SMIL is also omitted from the markup in JS (S.f2Horizon), this stills the rest. */
  .rv { opacity: 1 !important; transform: none !important; }
  .f2-horizon animate { display: none; }
}

/* ============================================================================
   PACKAGE BUILDER (R2 — the DMC act): the worktable's new compositions of the
   shared primitives (the step rail, the price waterfall, the KPI summary, the
   bilingual editor split). F2; reuses the calendar + pill + card primitives.
   ============================================================================ */
.chip.is-disabled { opacity: .45; cursor: not-allowed; }
.builder-actions { display: flex; gap: 8px; flex-wrap: wrap; }
/* the intersection summary KPIs */
.kpi-row { display: flex; gap: 12px; flex-wrap: wrap; }
.kpi { background: var(--cream-raised); border: 1px solid var(--sand-line); border-radius: var(--r-chip);
  padding: 10px 14px; min-width: 96px; }
.kpi-val { font-family: var(--font-display, Marcellus), serif; font-size: 1.5rem; color: var(--copper-press);
  font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi-lbl { font-size: .72rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .03em; }
/* the price waterfall + per-channel table */
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th, .tbl td { text-align: start; padding: 8px 10px; border-bottom: 1px solid var(--sand-line); }
.tbl th { font-size: .74rem; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-3); font-weight: 600; }
.tbl td.num, .tbl th.num { text-align: end; font-variant-numeric: tabular-nums; }
.tbl .total-row td { border-top: 2px solid var(--charcoal); border-bottom: 0; }
/* the bilingual editor split + inclusions */
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 720px) { .split-2 { grid-template-columns: 1fr; } }
ul.bullet { margin: 6px 0 0; padding-inline-start: 18px; font-size: .88rem; color: var(--ink-2); }
ul.bullet li { margin: 2px 0; }
/* a small key/value line for the rail */
.kv { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
/* the intersection calendar: a sellable day shows its package count, a closed
   day is dimmed (Oud for not-sellable states, never red — brand law). */
.cal-day.open .cap { color: var(--green); font-weight: 600; }
.cal-day.closed .cap { color: var(--danger); }
