/* ============================================================
   Playbook 420 - visual system
   Presentation only: application state and Firebase logic live in /js.
   ============================================================ */
:root {
  --forest-950: #14181b;
  --forest-900: #1b2024;
  --forest-800: #2a3135;
  --forest-700: #2f7d5b;
  --forest-600: #3a9068;
  --sage-500: #6fbf95;
  --sage-300: #b4e0c8;
  --sage-150: #dcefe4;
  --sage-100: #ebf6ef;
  --cream-50: #f6f7f5;
  --sand-100: #eff1ef;
  --sand-200: #e3e7e4;
  --amber-500: #e09a3e;
  --amber-100: #f9ead7;
  --ink: #171b1e;
  --muted: #5a6369; /* AA contrast against the light application canvas. */
  --line: #d9ddda;
  --bg: #f3f4f2;
  --white: #ffffff;
  --heading: var(--forest-950);
  --accent: var(--forest-700);
  --accent-strong: var(--forest-900);
  --accent-soft: var(--sage-100);
  --accent-soft-strong: var(--sage-150);
  --accent-border: var(--sage-300);
  --surface: #ffffff;
  --surface-warm: #f9faf8;
  --surface-soft: #eff1ef;
  --surface-subtle: #e3e7e4;
  --surface-card: rgba(255, 255, 255, .9);
  --surface-card-soft: rgba(255, 255, 255, .82);
  --topbar-bg: rgba(246, 247, 245, .94);
  --control-bg: #ffffff;
  --placeholder: #6b747a; /* AA contrast against white controls. */
  --table-label: #5f686e;
  --table-hover: rgba(235, 246, 239, .7);
  --toast-bg: #14181b;
  --texture-opacity: .035;
  --texture-blend: multiply;
  --red: #b7443b;
  --red-soft: #f9e7e4;
  --green-900: var(--forest-900);
  --green-700: var(--forest-700);
  --green-500: var(--forest-600);
  --green-300: var(--sage-300);
  --green-100: var(--sage-100);
  --amber: var(--amber-500);
  --shadow-xs: 0 1px 2px rgba(20, 24, 27, .05);
  --shadow-sm: 0 8px 24px rgba(20, 24, 27, .07);
  --shadow-md: 0 20px 60px rgba(20, 24, 27, .12);
  --radius-sm: 9px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --ease: 180ms cubic-bezier(.2, .75, .25, 1);

  /* Design System v2 semantic tokens. Existing names remain as compatibility
     aliases while pages migrate in controlled phases. */
  --color-canvas: var(--bg);
  --color-surface: var(--surface);
  --color-surface-soft: var(--surface-soft);
  --color-text: var(--ink);
  --color-text-muted: var(--muted);
  --color-heading: var(--heading);
  --color-border: var(--line);
  --color-action: var(--accent);
  --color-action-strong: var(--accent-strong);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --content-wide: 1440px;
  --content-default: 1240px;
  --control-height: 44px;
  --control-height-large: 52px;
  --focus-ring: 0 0 0 4px rgba(47,125,91,.2);
}

html[data-theme="dark"] {
  --ink: #e9ecea;
  --muted: #a3aca8;
  --line: #2a3135;
  --bg: #111416;
  --heading: #ffffff;
  --accent: #8fd1ae;
  --accent-strong: #b4e0c8;
  --accent-soft: #18271f;
  --accent-soft-strong: #1f3329;
  --accent-border: #3f6b55;
  --surface: #1b2024;
  --surface-warm: #171b1e;
  --surface-soft: #22282c;
  --surface-subtle: #2a3135;
  --surface-card: rgba(27, 32, 36, .94);
  --surface-card-soft: rgba(27, 32, 36, .86);
  --topbar-bg: rgba(17, 20, 22, .94);
  --control-bg: #1f2529;
  --placeholder: #98a19d; /* AA contrast against dark controls. */
  --table-label: #a9b2ae;
  --table-hover: rgba(47, 125, 91, .16);
  --toast-bg: #0b0d0e;
  --red-soft: #3d211f;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .2);
  --shadow-sm: 0 10px 28px rgba(0, 0, 0, .25);
  --shadow-md: 0 24px 70px rgba(0, 0, 0, .36);
  --texture-opacity: .055;
  --texture-blend: screen;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(143, 209, 174, .12), transparent 30rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: var(--texture-opacity);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.72'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: var(--texture-blend);
}
.theme-changing *, .theme-changing *::before, .theme-changing *::after { transition-duration: 180ms !important; }

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: var(--accent); text-decoration: none; }
a, button, input, select { transition: border-color var(--ease), box-shadow var(--ease), background-color var(--ease), color var(--ease), transform var(--ease); }
:focus-visible { outline: 3px solid rgba(47, 125, 91, .45); outline-offset: 2px; }
::selection { color: var(--forest-950); background: var(--sage-300); }

/* Design System v2 primitives */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.ui-stack { display: grid; gap: var(--space-4); }
.ui-stack-sm { display: grid; gap: var(--space-2); }
.ui-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.ui-surface { background: var(--surface-card); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-xs); }
.ui-section { padding: clamp(18px, 3vw, 28px); }
.ui-divider { border: 0; border-top: 1px solid var(--line); }
.table-shell { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-card); box-shadow: var(--shadow-xs); }
.table-shell .stock-table { border: 0; border-radius: 0; box-shadow: none; }
.record-list { display: grid; gap: var(--space-3); }
.record-card { display: grid; gap: var(--space-3); padding: var(--space-4); background: var(--surface-card); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-xs); }
.record-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); }
.record-card__title { margin: 0; color: var(--heading); font-size: 15px; font-weight: 780; }
.record-card__meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.record-card__meta span { color: var(--muted); font-size: 11px; }
.record-card__meta strong { display: block; margin-top: 2px; color: var(--ink); font-size: 13px; }
.ui-state { min-height: 180px; display: grid; place-items: center; padding: var(--space-8); text-align: center; background: linear-gradient(145deg, transparent, var(--accent-soft)); border: 1px dashed var(--line); border-radius: var(--radius-md); }
.ui-state__body { max-width: 440px; }
.ui-state h2, .ui-state h3 { margin: 0; color: var(--heading); font-size: 18px; }
.ui-state p { margin: var(--space-2) 0 0; color: var(--muted); font-size: 13px; }
.ui-state .btn { width: auto; margin-top: var(--space-4); }
.mobile-only { display: none !important; }

/* Top navigation */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(18px, 3vw, 38px);
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  backdrop-filter: blur(14px);
}
.brand {
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--heading);
  font-size: 17px;
  font-weight: 760;
  letter-spacing: -.02em;
}
.brand::before {
  content: "4·20";
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--cream-50);
  background: var(--forest-900);
  border-radius: 12px 12px 12px 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -.02em;
  box-shadow: 0 5px 14px rgba(23, 59, 47, .18);
}
.brand small { color: var(--accent); font-size: inherit; font-weight: 650; }
.brand[data-page] {
  min-width: 0;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 11px;
  row-gap: 1px;
  line-height: 1.15;
}
.brand[data-page]::before { grid-row: 1 / 3; }
.brand[data-page] > span,
.brand[data-page] > small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand[data-page] > span { align-self: end; color: var(--heading); font-size: 15px; font-weight: 800; }
.brand[data-page] > small { align-self: start; color: var(--muted); font-size: 10px; font-weight: 680; letter-spacing: .01em; }
.topbar .meta { color: var(--muted); font-size: 12px; font-weight: 600; }
.topbar .actions { display: flex; align-items: center; gap: 7px; color: var(--ink); }
.topbar .actions > a,
.topbar .actions > button {
  min-height: 44px; /* was 38px: below the 44px touch-target guideline (2026-08-16 a11y audit) */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  color: var(--accent-strong);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}
.topbar .actions > a:hover,
.topbar .actions > button:hover { background: var(--accent-soft); border-color: var(--accent-soft-strong); }
.topbar .actions #logout { color: var(--muted); }
.topbar .actions #logout:hover { color: var(--red); background: var(--red-soft); border-color: transparent; }

/* Appearance switch */
.theme-toggle {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 10px;
  color: var(--accent-strong);
  background: var(--surface-card-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-xs);
  font-size: 12px;
  font-weight: 720;
}
.topbar .actions > .theme-toggle { gap: 7px; padding: 7px 10px; background: var(--surface-card-soft); border-color: var(--line); border-radius: 999px; }
.theme-toggle:hover { color: var(--heading); background: var(--accent-soft); border-color: var(--accent-border); }
.topbar .actions > .theme-toggle:hover { color: var(--heading); background: var(--accent-soft); border-color: var(--accent-border); }
.theme-toggle-icons { width: 17px; height: 17px; display: grid; place-items: center; }
.theme-icon { grid-area: 1 / 1; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: opacity var(--ease), transform var(--ease); }
.theme-icon-sun { opacity: 0; transform: rotate(-35deg) scale(.65); }
.theme-icon-moon { opacity: 1; transform: rotate(0) scale(1); }
html[data-theme="dark"] .theme-icon-sun { opacity: 1; transform: rotate(0) scale(1); }
html[data-theme="dark"] .theme-icon-moon { opacity: 0; transform: rotate(35deg) scale(.65); }
.theme-toggle-floating { position: fixed; top: 20px; right: 20px; z-index: 50; min-width: 82px; backdrop-filter: blur(12px); }

/* Home */
.home-shell { max-width: 1220px; margin: 0 auto; padding: 56px clamp(20px, 4vw, 48px) 72px; }
.home-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
}
.eyebrow {
  margin: 0 0 9px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.home-intro h1 { margin: 0; color: var(--heading); font-size: clamp(32px, 5vw, 52px); line-height: 1.04; letter-spacing: -.045em; }
.home-intro .lede { max-width: 540px; margin: 13px 0 0; color: var(--muted); font-size: 16px; }
.system-status {
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 5px;
  padding: 9px 13px;
  color: var(--accent-strong);
  background: var(--surface-card-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.system-status::before { content: ""; width: 8px; height: 8px; background: #4f9d70; border-radius: 50%; box-shadow: 0 0 0 4px rgba(79, 157, 112, .12); }
.workspace-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 15px; }
.workspace-head h2 { margin: 0; color: var(--heading); font-size: 15px; letter-spacing: -.01em; }
.workspace-head span { color: var(--muted); font-size: 12px; }
.tile-group + .tile-group { margin-top: 28px; }
.tile-group h3 { margin: 0 0 12px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.tile {
  position: relative;
  min-height: 176px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 26px;
  overflow: hidden;
  padding: 20px;
  color: var(--ink);
  background: var(--surface-card-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
}
.tile::after { content: ""; position: absolute; inset: auto -22px -35px auto; width: 95px; height: 95px; border: 1px solid var(--accent-soft-strong); border-radius: 50%; opacity: 0; transform: scale(.75); transition: opacity var(--ease), transform var(--ease); }
.tile:hover { color: var(--ink); border-color: var(--accent-border); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.tile:hover::after { opacity: .7; transform: scale(1); }
.tile:active { transform: translateY(-1px); }
.tile.featured { color: var(--cream-50); background: var(--forest-900); border-color: var(--forest-900); box-shadow: 0 10px 28px rgba(23, 59, 47, .15); }
.tile.featured:hover { color: var(--white); background: var(--forest-800); border-color: var(--forest-800); }
.tile .ic {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 12px;
}
.tile .ic svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile.featured .ic { color: var(--cream-50); background: rgba(255,255,255,.11); }
.tile-copy { position: relative; z-index: 1; display: grid; gap: 4px; }
.tile-copy strong { font-size: 16px; font-weight: 760; letter-spacing: -.02em; }
.tile-copy small { color: var(--muted); font-size: 12px; font-weight: 520; line-height: 1.4; }
.tile.featured .tile-copy small { color: rgba(255,255,255,.68); }
.tile-arrow { position: absolute; top: 23px; right: 20px; color: var(--sage-500); font-size: 19px; line-height: 1; transition: transform var(--ease), color var(--ease); }
.tile:hover .tile-arrow { color: var(--accent); transform: translateX(3px); }
.tile.featured .tile-arrow { color: rgba(255,255,255,.45); }
.tile.featured:hover .tile-arrow { color: var(--white); }
.tile.soon { opacity: .5; pointer-events: none; }
.tile.soon::before { content: "Phase 2"; position: absolute; top: 18px; right: 16px; padding: 4px 7px; background: var(--surface-soft); border-radius: 999px; color: var(--muted); font-size: 10px; font-weight: 800; }

/* Authentication */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-page { grid-template-columns: minmax(320px, 460px) minmax(420px, 1fr); gap: 0; padding: 0; background: var(--surface-warm); }
.login-main { width: 100%; display: grid; place-items: center; padding: clamp(32px, 6vw, 72px); }
.login-card { width: min(100%, 390px); padding: 34px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.login-page .login-card { padding: 0; text-align: left; background: transparent; border: none; border-radius: 0; box-shadow: none; }
.login-brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 48px; color: var(--heading); font-size: 17px; font-weight: 780; }
.login-brand::before { content: "4·20"; width: 44px; height: 44px; display: grid; place-items: center; color: var(--cream-50); background: var(--forest-900); border-radius: 14px 14px 14px 5px; font-size: 12px; box-shadow: 0 7px 18px rgba(23,59,47,.18); }
.login-card h1 { margin: 0 0 8px; color: var(--heading); font-size: 31px; line-height: 1.12; letter-spacing: -.035em; }
.login-card h1 small { color: var(--accent); }
.login-card h3 { margin: 0 0 8px; color: var(--heading); font-size: 31px; line-height: 1.12; letter-spacing: -.035em; }
.login-card > p { margin: 0 0 27px; color: var(--muted); font-size: 14px; }
.login-help { width: 100%; min-height: 44px; margin-top: 8px; padding: 8px; color: var(--accent); background: transparent; border: 0; font-size: 13px; font-weight: 720; }
.login-help:hover { color: var(--accent-strong); }
.login-legal { margin: 20px 0 0 !important; padding-top: 18px; border-top: 1px solid var(--line); font-size: 11px !important; line-height: 1.55; }
.login-portal { margin: 12px 0 0 !important; font-size: 11px !important; line-height: 1.55; }
.login-portal a { color: var(--muted); font-weight: 650; text-underline-offset: 3px; }
.login-portal a:hover { color: var(--accent-strong); }
.ok-text { color: var(--accent-strong); }
.field { display: grid; gap: 7px; margin-bottom: 14px; }
.field label { color: var(--ink); font-size: 12px; font-weight: 720; }
.field input { margin-bottom: 0; }
.login-aside { position: relative; min-height: 100vh; overflow: hidden; display: flex; align-items: flex-end; padding: clamp(40px, 7vw, 92px); color: var(--cream-50); background: var(--forest-950); }
.login-aside::before { content: ""; position: absolute; width: 620px; height: 620px; top: -260px; right: -190px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; box-shadow: 0 0 0 92px rgba(255,255,255,.025), 0 0 0 184px rgba(255,255,255,.018); }
.login-aside::after { content: ""; position: absolute; inset: 0; background: linear-gradient(145deg, transparent 48%, rgba(121,169,143,.12)); }
.login-aside-copy { position: relative; z-index: 1; max-width: 570px; }
.login-aside .eyebrow { color: var(--sage-300); }
.login-aside h2 { max-width: 550px; margin: 0; font-size: clamp(38px, 5vw, 70px); line-height: .99; letter-spacing: -.05em; }
.login-aside p { max-width: 450px; margin: 20px 0 0; color: rgba(255,255,255,.65); font-size: 16px; }

/* Form controls */
input, select, textarea {
  width: 100%;
  min-height: 44px;
  margin-bottom: 12px;
  padding: 10px 13px;
  color: var(--ink);
  background: var(--control-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  outline: none;
}
input::placeholder, textarea::placeholder { color: var(--placeholder); }
input:hover, select:hover, textarea:hover { border-color: var(--accent-border); }
input:focus, select:focus, textarea:focus { border-color: var(--forest-600); box-shadow: 0 0 0 4px rgba(52,122,94,.1); }
input[type="checkbox"], input[type="radio"] { min-height: auto; accent-color: var(--forest-700); }
.btn {
  min-height: 44px;
  width: 100%;
  padding: 10px 17px;
  color: var(--white);
  background: var(--forest-700);
  border: 1px solid var(--forest-700);
  border-radius: var(--radius-sm);
  box-shadow: 0 3px 9px rgba(23,59,47,.12);
  font-size: 14px;
  font-weight: 750;
}
.btn:hover:not(:disabled) { background: var(--forest-800); border-color: var(--forest-800); box-shadow: 0 6px 16px rgba(23,59,47,.17); transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled { cursor: not-allowed; opacity: .45; box-shadow: none; }
.btn.secondary { color: var(--accent); background: var(--surface); border-color: var(--accent-border); box-shadow: none; }
.btn.secondary:hover:not(:disabled) { color: var(--accent-strong); background: var(--accent-soft); border-color: var(--accent-border); }
.btn.danger { background: var(--red); border-color: var(--red); }
.btn.wide { width: 100%; }
/* .btn defaults to width:100% (right for its original full-width form-submit use),
   which is why toolbar/inline buttons across the app carry a repeated ad hoc
   style="width:auto" override -- a proper size variant instead (UI review Ticket 6,
   pairs with Ticket 7's inline-style cleanup). Rolled out opportunistically to
   screens touched by this pass, not swept across the whole app in one diff. */
.btn.auto { width: auto; }
.err { min-height: 18px; margin-top: 7px; color: var(--red); font-size: 12px; }

/* POS layout */
.dispense { min-height: calc(100vh - 72px); display: grid; grid-template-columns: minmax(0, 1fr) 370px; }
.pos-main { padding: 28px clamp(20px, 3vw, 36px); }
.searchrow { display: flex; gap: 9px; margin-bottom: 18px; }
.searchrow input { margin-bottom: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.chip { min-height: 36px; padding: 7px 14px; color: var(--accent); background: var(--surface-card-soft); border: 1px solid var(--line); border-radius: 999px; font-size: 12px; font-weight: 720; }
.chip:hover { border-color: var(--accent-border); background: var(--surface); }
.chip.active { color: var(--accent-strong); background: var(--accent-soft-strong); border-color: var(--accent-border); }
/* Sticky section nav - settings.html (UI review Ticket 6, 2026-08-16). Reuses .chips/
   .chip so it reads as the same jump-to component style used elsewhere, just sticky. */
.settings-nav { position: sticky; top: 72px; z-index: 25; padding: 10px 0; margin: 0 0 20px; background: var(--bg); border-bottom: 1px solid var(--line); }
.zone-editor { display: grid; grid-template-columns: minmax(150px, 1fr) 100px 110px minmax(160px, 1fr) auto; gap: 8px; align-items: end; margin-top: 8px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 13px; }
.card { min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 16px; background: var(--surface-card); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-xs); }
.card:hover { border-color: var(--accent-border); box-shadow: var(--shadow-sm); }
.card h4 { margin: 0; color: var(--heading); font-size: 14px; }
.card .tag { width: fit-content; display: inline-block; padding: 3px 8px; color: #835614; background: var(--amber-100); border-radius: 999px; font-size: 10px; font-weight: 800; }
.card .price { color: var(--accent); font-size: 18px; font-weight: 820; }
.card .meta { color: var(--muted); font-size: 11px; }
.card .stock { font-size: 11px; font-weight: 700; }
.card .stock.low { color: var(--red); }
.card .add { margin-top: auto; }

/* Member and cart */
.sidebar { min-width: 0; display: flex; flex-direction: column; padding: 24px; background: var(--surface-warm); border-left: 1px solid var(--line); box-shadow: -12px 0 34px rgba(16,43,34,.035); }
.member { margin-bottom: 16px; padding: 15px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
.member .name { color: var(--heading); font-size: 16px; font-weight: 800; }
.member .num { color: var(--accent); font-weight: 720; }
.member .row { display: flex; justify-content: space-between; gap: 12px; margin-top: 7px; color: var(--muted); font-size: 12px; }
.badge { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; }
.badge.ok { color: var(--accent-strong); background: var(--accent-soft); }
.badge.warn { color: #835614; background: var(--amber-100); }
.badge.bad { color: var(--red); background: var(--red-soft); }

/* Persistent navigation drawer (topbar) - UI review Ticket 2, 2026-08-12 */
.navdrawer { position: relative; display: inline-block; }
/* position:fixed + top/left set inline by toggleNavDrawer() (js/theme.js) - panel is
   portaled to <body>, not a child of .navdrawer, so CSS can't place it relative to the
   button. Fixes the same overflow-clipping bug as the notification bell dropdown: see
   2026-08-16 snag list. */
.navdrawer-panel { z-index: 65; width: min(86vw, 620px); max-height: min(72vh, 560px); overflow-y: auto; padding: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; }
.navdrawer-group { min-width: 0; }
.navdrawer-group h4 { margin: 0 0 6px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.navdrawer-group a { display: block; padding: 7px 8px; margin: 0 -8px; border-radius: 8px; color: var(--ink); font-size: 13px; font-weight: 650; }
.navdrawer-group a:hover { background: var(--accent-soft); color: var(--heading); }
.navdrawer-group a[aria-current="page"] { color: var(--accent-strong); background: var(--accent-soft); }
@media (max-width: 640px) {
  .navdrawer-panel { grid-template-columns: 1fr; width: min(92vw, 360px); }
}
.allow-bar { height: 7px; overflow: hidden; margin-top: 7px; background: var(--surface-subtle); border-radius: 999px; }
.allow-bar > i { display: block; height: 100%; background: var(--forest-600); border-radius: inherit; }
.allow-bar.over > i { background: var(--red); }
/* Revenue trend fallback (P&L I1, 2026-08-16) -- shown only when Chart.js fails to
   load from cdnjs (offline/blocked CDN); js/pnl.js's renderTrend() toggles between
   this and the real #trendChart canvas. */
.trend-bars { display: flex; align-items: flex-end; gap: 4px; height: 140px; padding-top: 10px; }
.trend-bar { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 6px; }
.trend-bar > i { display: block; width: 100%; background: var(--forest-600); border-radius: 3px 3px 0 0; }
.trend-bar > small { margin-top: 4px; color: var(--muted); font-size: 9px; }
/* Live driver map (GPS G2, 2026-08-17) -- js/portal.js's renderDriverMap(). Leaflet
   sizes itself to this element's box, so it needs an explicit height (Leaflet has no
   intrinsic size of its own) and a stable width; overflow:hidden clips its default
   tile edges to the card's own rounded corners. */
/* P&L share bars (2026-08-28): revenue mix read top to bottom, each row a label, a value and
   a proportional track. A bar per row rather than a pie -- comparing lengths against a shared
   baseline is the one comparison people do reliably, and it stays readable at eight rows. */
.pl-share-list { display: grid; gap: 10px; }
.pl-share-row { display: grid; gap: 4px; }
.pl-share-head { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; align-items: baseline; }
.pl-share-head span:first-child { font-weight: 600; }
.pl-share-track { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.pl-share-fill { height: 100%; border-radius: 3px; }
.pl-svg-chart { width: 100%; height: auto; display: block; }

/* Section tabs (2026-08-28): the current nav group, as a tab strip, so pages that are five
   views of one subject read as one area. Scrolls horizontally rather than wrapping -- on a
   till screen a wrapped second row pushes the actual page content below the fold. */
.section-tabs { display: flex; gap: 2px; overflow-x: auto; margin: 0 0 12px; padding: 0 0 2px;
  border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.section-tabs a { flex: 0 0 auto; padding: 9px 14px; text-decoration: none; color: var(--muted);
  font-size: 14px; font-weight: 600; white-space: nowrap; border-bottom: 2px solid transparent; }
.section-tabs a:hover { color: var(--ink); }
.section-tabs a[aria-current="page"] { color: var(--forest-600); border-bottom-color: var(--forest-600); }
@media (max-width: 720px) { .section-tabs a { padding: 8px 11px; font-size: 13px; } }

.driver-map { height: 160px; margin-top: 8px; overflow: hidden; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.driver-map.is-stale { filter: saturate(0.55); }
.driver-map-note { font-size: 12px; margin: 4px 0 0; }
/* Dispatch board map (GPS G4): taller than the single-order driver-map above --
   this one is the primary tool for a manager comparing multiple drivers/orders at
   once, not a small aside next to order text. */
.dispatch-map { height: 320px; margin-top: 12px; overflow: hidden; border-radius: var(--radius-sm); border: 1px solid var(--line); }
/* Leaflet's default .leaflet-div-icon ships a white box + border, meant for text
   labels -- strips it so the inline SVG driver/order shapes render on their own. */
.map-pin-icon { background: transparent; border: none; }
.cart { flex: 1; overflow: auto; margin-bottom: 10px; }
.cart-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.cart-item small { color: var(--muted); }
.cart-item button { color: var(--red); background: none; border: none; font-size: 16px; font-weight: 800; }
.totrow { display: flex; justify-content: space-between; margin: 10px 0; padding-top: 13px; border-top: 1px solid var(--line); color: var(--heading); font-size: 19px; font-weight: 820; }
.pay { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 10px 0; }
.pay button { min-height: 40px; padding: 8px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 12px; font-weight: 700; }
.pay button:hover { border-color: var(--accent-border); }
.pay button.sel { color: var(--accent-strong); background: var(--accent-soft); border-color: var(--forest-600); box-shadow: inset 0 0 0 1px var(--forest-600); }

/* Shared utility and feedback */
.muted { color: var(--muted); font-size: 12px; }
.center { text-align: center; }
.hidden { display: none !important; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; clip-path: inset(50%) !important; }

/* Shared empty state (UI review Ticket 3, 2026-08-16) - js/app.js emptyState() */
.empty-state { display: grid; justify-items: center; gap: 5px; padding: 40px 20px; text-align: center; }
.empty-state-icon { font-size: 26px; opacity: .55; }
.empty-state-title { color: var(--heading); font-size: 14px; font-weight: 700; }
.empty-state-why { max-width: 320px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.empty-state .btn { width: auto; min-height: 38px; margin-top: 8px; padding-inline: 16px; }

/* Mobile checkout sticky bar (UI review Ticket 4, 2026-08-16) - desktop never shows
   it regardless of the .hidden toggle in js/dispense.js; only enabled sub-720px. */
.mobile-cart-bar { display: none; }
.toast { position: fixed; bottom: 24px; left: 50%; z-index: 70; padding: 11px 17px; color: var(--white); background: var(--toast-bg); border-radius: 999px; box-shadow: var(--shadow-md); font-size: 13px; font-weight: 700; opacity: 0; pointer-events: none; transform: translate(-50%, 10px); transition: opacity var(--ease), transform var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.ok { background: var(--forest-700); }
.toast.bad { background: var(--red); }

/* Page tour ("Help with this page") -- js/page-tour.js. z-index 10000+ so it sits above every
   modal (max 500 elsewhere) and the body::before texture overlay (9999). */
.page-tour-trigger {
  position: fixed; right: 22px; bottom: 22px; z-index: 10001;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 700;
  box-shadow: var(--shadow-md); cursor: pointer;
}
.page-tour-trigger:hover { border-color: var(--accent-border); }
.page-tour-trigger.is-active { background: var(--accent); color: var(--white); border-color: var(--accent); }
.page-tour-trigger-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-strong); font-weight: 800;
}
.page-tour-trigger.is-active .page-tour-trigger-icon { background: rgba(255, 255, 255, .22); color: var(--white); }
.page-tour-overlay {
  position: fixed; inset: 0; z-index: 10000; background: transparent;
  opacity: 0; pointer-events: none; transition: opacity var(--ease);
}
.page-tour-overlay.is-open { opacity: 1; pointer-events: auto; }
.page-tour-spotlight {
  position: fixed; z-index: 10000; border-radius: 10px;
  box-shadow: 0 0 0 9999px rgba(8, 17, 31, .58);
  opacity: 0; pointer-events: none; transition: top var(--ease), left var(--ease), width var(--ease), height var(--ease), opacity var(--ease);
}
.page-tour-spotlight.is-open { opacity: 1; }
.page-tour-card {
  position: fixed; z-index: 10002; width: min(320px, calc(100vw - 24px));
  background: var(--surface); color: var(--ink); border-radius: 12px;
  box-shadow: var(--shadow-md); padding: 18px;
  opacity: 0; transform: translateY(6px); pointer-events: none;
  transition: opacity var(--ease), transform var(--ease), top var(--ease), left var(--ease);
}
.page-tour-card.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.page-tour-close {
  position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%;
  border: none; background: transparent; color: var(--muted); font-size: 18px; line-height: 1;
  cursor: pointer;
}
.page-tour-close:hover { background: var(--surface-soft); color: var(--ink); }
.page-tour-title { margin: 0 22px 8px 0; font-size: 15px; font-weight: 800; color: var(--heading); }
.page-tour-body { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.page-tour-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.page-tour-count { font-size: 12px; color: var(--muted); font-weight: 700; }
.page-tour-nav { display: flex; gap: 8px; }

/* App icon cropper (settings.html Club profile panel, js/settings.js) -- the canvas is 512x512
   internally (the crop math and the final upload read the same pixels, no separate render step)
   but displayed small via width/height below; the safe-zone guide is a pure CSS overlay, never
   part of the exported image. */
.app-icon-cropper { margin: 10px 0; }
.app-icon-crop-stage {
  position: relative; width: 180px; height: 180px; border-radius: 12px; overflow: hidden;
  background: var(--surface-soft); border: 1px solid var(--line); touch-action: none;
}
.app-icon-crop-stage canvas { width: 180px; height: 180px; display: block; cursor: grab; }
.app-icon-crop-stage canvas:active { cursor: grabbing; }
.app-icon-safe-zone {
  position: absolute; inset: 14px; border-radius: 50%;
  box-shadow: 0 0 0 999px rgba(8, 17, 31, .35);
  border: 2px dashed rgba(255, 255, 255, .8);
  pointer-events: none;
}
#appIconCurrent { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); }

/* Delivery portal pre-launch countdown (2026-09-12, enlarged same day per feedback) -- js/portal.js's
   mountLaunchCountdown(), same concept and same enlargement as shop.css's .shop-launch-countdown
   (see its own comment for the "larger, full-width, translucent" reasoning) but through this
   app's own theme tokens (portal.html loads css/styles.css, not shop.css). */
.portal-launch-countdown {
  position: sticky; top: 0; z-index: 80;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  width: 100%; padding: 28px 20px; text-align: center;
  background: rgba(15, 27, 45, .82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: var(--white);
}
.portal-launch-countdown-inner { display: flex; align-items: baseline; justify-content: center; gap: 12px; flex-wrap: wrap; }
.portal-launch-countdown-label { margin: 0; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.portal-launch-countdown-clock { margin: 0; font-size: clamp(28px, 5vw, 44px); font-weight: 800; font-variant-numeric: tabular-nums; }

/* Waitlist join form (2026-09-12, js/launch-waitlist.js -- shared with the online shop) */
.launch-waitlist { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; max-width: 420px; }
.launch-waitlist-tagline { margin: 0; font-size: 14px; font-weight: 600; opacity: .95; }
.launch-waitlist-form { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; width: 100%; }
.launch-waitlist-form input {
  flex: 1 1 160px; min-width: 0; min-height: 42px; padding: 0 14px; border-radius: 999px; border: 0;
  font: inherit; font-size: 14px; color: var(--ink); background: var(--white);
}
.launch-waitlist-form button,
.launch-waitlist-form .launch-waitlist-link {
  /* Fixed white-on-dark-green, not theme tokens -- this banner's own background is always the
     same dark translucent fill regardless of the page's light/dark theme (see .portal-launch-
     countdown above), and --accent-strong resolves to --forest-900 in light mode, which would
     print invisible dark-on-dark text if used here. */
  flex: 0 0 auto; min-height: 42px; padding: 0 20px; border-radius: 999px; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; color: var(--forest-900); background: var(--white);
  text-decoration: none; display: inline-flex; align-items: center;
}
.launch-waitlist-status { margin: 0; font-size: 13px; min-height: 16px; }
.launch-waitlist-done { font-weight: 700; }
/* Step two of the two-step waitlist (2026-09-14): optional details, shown only after joining.
   Stacked rather than the join form's wrapping row -- three longer fields side by side on a phone
   collapse to one-per-line anyway, and an address needs the full width to be readable. */
.launch-waitlist-complete { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; }
.launch-waitlist-form-stacked { flex-direction: column; }
.launch-waitlist-form-stacked input { flex: 1 1 auto; width: 100%; }
.launch-waitlist-form-stacked button { width: 100%; }
.launch-waitlist-skip {
  /* Same fixed-colour reasoning as the submit button above -- this sits on the banner's own dark
     translucent fill, not on a themed page surface. */
  background: none; border: 0; padding: 2px 6px; cursor: pointer; font: inherit; font-size: 13px;
  color: var(--white); opacity: .75; text-decoration: underline;
}
.launch-waitlist-skip:hover { opacity: 1; }
.list-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 10px; border-bottom: 1px solid var(--line); border-radius: 7px; cursor: pointer; }
.list-row:hover { background: var(--accent-soft); }

/* Tables and report surfaces */
.reports { max-width: 1240px; margin: 0 auto; padding: 30px clamp(18px, 3vw, 36px) 60px; }
.rep-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.rep-head input[type="date"] { width: auto; margin-bottom: 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 11px; margin-bottom: 20px; }
.kpi { padding: 16px; background: var(--surface-card); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-xs); }
.kpi-label { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.kpi-val { margin: 5px 0; color: var(--heading); font-size: 24px; font-weight: 820; letter-spacing: -.03em; }
.kpi-sub { color: var(--muted); font-size: 10px; }
.rep-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel { margin-bottom: 16px; padding: 18px; background: var(--surface-card); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-xs); }
.panel h3 { margin: 0 0 13px; color: var(--heading); font-size: 15px; letter-spacing: -.01em; }
.pl-svg-chart { width: 100%; display: block; }
.panel input { margin-top: 10px; }
.kv { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.kv:last-child { border-bottom: none; }
.stock-table { width: 100%; overflow: hidden; background: var(--surface-card); border: 1px solid var(--line); border-spacing: 0; border-radius: var(--radius-md); box-shadow: var(--shadow-xs); }
.stock-table th { padding: 12px 13px; color: var(--table-label); background: var(--surface-soft); border-bottom: 1px solid var(--line); text-align: left; font-size: 10px; font-weight: 820; letter-spacing: .07em; text-transform: uppercase; }
.stock-table td { padding: 12px 13px; border-top: 1px solid var(--line); font-size: 13px; vertical-align: middle; }
.stock-table tbody tr:first-child td { border-top: none; }
.stock-table tbody tr:hover td { background: var(--table-hover); }
.warehouse-order-row { cursor: pointer; }
.warehouse-order-row:hover td { background: var(--table-hover); }
.stock-table .actcol { text-align: right; white-space: nowrap; }
.stock-num { color: var(--heading); font-weight: 820; }
.stock-num.low, .lowtag, .neg { color: var(--red); }
.lowtag { font-size: 10px; font-weight: 800; }
.pos { color: var(--accent); font-weight: 750; }
.neg { font-weight: 750; }
/* A third tone between "fine" and "stop": a supplier invoice billing LESS than arrived is worth
   seeing but is not the alarm that being billed for MORE than arrived is. Before this the match
   panel had only pos and neg, so four ordinary "not on this invoice" rows rendered as red faults
   and buried the one case that matters (2026-09-15). */
.warn { color: #8d5a11; font-weight: 750; }
.mini { min-height: 44px; margin-left: 5px; padding: 5px 9px; color: var(--accent); background: var(--surface); border: 1px solid var(--accent-border); border-radius: 7px; font-size: 11px; font-weight: 720; } /* was 32px (2026-08-16 a11y audit) */
.mini:hover { background: var(--accent-soft); border-color: var(--accent-border); }
.mini.danger { color: var(--red); border-color: #e6b0a8; }

/* Playbook 420 public website */
.marketing-page {
  --m-forest: #0f1b2d;
  --m-forest-2: #17253a;
  --m-green: #2f6b6d;
  --m-sage: #8fc9c4;
  --m-cream: #f7fafb;
  --m-paper: #f2f4f5;
  --m-amber: #e09a3e;
  --m-line: rgba(15, 27, 45, .14);
  margin: 0;
  color: var(--m-forest);
  background: var(--m-paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.marketing-page * { box-sizing: border-box; }
.marketing-page a { color: inherit; text-decoration: none; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 200; padding: 10px 14px; color: var(--m-paper) !important; background: var(--m-forest); border-radius: 8px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.marketing-nav { position: absolute; inset: 0 0 auto; z-index: 20; height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 28px; max-width: 1440px; margin: auto; padding: 0 clamp(24px, 5vw, 76px); color: var(--m-cream); }
.marketing-brand { display: inline-flex; align-items: center; gap: 11px; font-size: 15px; font-weight: 800; letter-spacing: -.02em; }
.marketing-brand-mark { width: 38px; height: 38px; display: grid; place-items: center; color: var(--m-forest); background: var(--m-amber); border-radius: 12px 12px 12px 4px; font-size: 10px; letter-spacing: -.03em; box-shadow: 0 7px 18px rgba(0,0,0,.12); }
.marketing-nav nav { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 34px); font-size: 12px; font-weight: 700; }
.marketing-nav nav > a:not(.marketing-cta) { color: rgba(244,239,227,.72); }
.marketing-nav nav > a:not(.marketing-cta):hover { color: var(--m-cream); }
.marketing-cta { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 20px; width: auto; padding: 13px 19px; color: var(--m-forest) !important; background: var(--m-amber); border: 1px solid var(--m-amber); border-radius: 4px; box-shadow: 0 8px 24px rgba(0,0,0,.12); font: inherit; font-size: 13px; font-weight: 850; cursor: pointer; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.marketing-cta:hover { color: var(--m-forest) !important; background: #d7a14f; box-shadow: 0 12px 30px rgba(0,0,0,.18); transform: translateY(-2px); }
.marketing-cta:focus-visible, .marketing-page a:focus-visible, .marketing-page button:focus-visible, .marketing-page input:focus-visible, .marketing-page select:focus-visible { outline: 3px solid var(--m-amber); outline-offset: 3px; }
.marketing-cta-small { min-height: 39px; padding: 8px 14px; font-size: 11px; }
.marketing-hero { position: relative; min-height: 820px; overflow: hidden; display: grid; grid-template-columns: minmax(0, .85fr) minmax(550px, 1.15fr); align-items: center; gap: clamp(30px, 6vw, 100px); padding: 135px max(6vw, calc((100vw - 1320px)/2)) 90px; color: var(--m-cream); background: var(--m-forest); }
.marketing-hero::before { content: ""; position: absolute; width: 720px; height: 720px; top: -330px; left: -240px; border: 1px solid rgba(244,239,227,.08); border-radius: 50%; box-shadow: 0 0 0 96px rgba(244,239,227,.018), 0 0 0 192px rgba(244,239,227,.012); }
.marketing-hero::after { content: ""; position: absolute; inset: 0; opacity: .2; pointer-events: none; background-image: linear-gradient(rgba(143,185,161,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(143,185,161,.09) 1px, transparent 1px); background-size: 84px 84px; mask-image: linear-gradient(to right, black, transparent 55%); }
.hero-copy, .hero-product { position: relative; z-index: 2; }
.marketing-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; color: var(--m-green); font-size: 11px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.marketing-kicker span { width: 24px; height: 1px; background: currentColor; }
.marketing-kicker.light { color: var(--m-sage); }
.marketing-hero .marketing-kicker { color: var(--m-sage); }
.hero-copy h1 { max-width: 690px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(52px, 5.4vw, 86px); font-weight: 500; line-height: .98; letter-spacing: -.052em; text-wrap: balance; }
.hero-lede { max-width: 610px; margin: 27px 0 0; color: rgba(244,239,227,.67); font-size: 16px; line-height: 1.7; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 32px; }
.marketing-text-link { color: var(--m-cream) !important; font-size: 12px; font-weight: 750; }
.marketing-text-link span { margin-left: 8px; color: var(--m-sage); }
.hero-proof { display: grid; grid-template-columns: auto auto 1px auto auto; align-items: center; gap: 8px 12px; width: fit-content; margin-top: 38px; color: rgba(244,239,227,.56); }
.hero-proof span { color: var(--m-cream); font-family: Georgia, "Times New Roman", serif; font-size: 22px; }
.hero-proof small { font-size: 10px; line-height: 1.35; }
.hero-proof i { width: 1px; height: 32px; margin: 0 6px; background: rgba(244,239,227,.18); }
.hero-product { min-width: 0; padding: 26px 18px 34px; }
.product-window { position: relative; min-height: 532px; padding: 24px; color: var(--m-forest); background: var(--m-cream); border: 1px solid rgba(255,255,255,.3); border-radius: 14px; box-shadow: 0 35px 80px rgba(2,15,11,.36); transform: rotate(.7deg); }
.product-window::before { content: ""; position: absolute; inset: -18px 34px auto -18px; height: 70%; z-index: -1; border: 1px solid rgba(143,185,161,.28); border-radius: 14px; }
.product-topline, .product-greeting, .card-title, .product-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.product-topline { padding-bottom: 18px; border-bottom: 1px solid var(--m-line); }
.product-brand { display: flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.product-brand span { width: 28px; height: 28px; display: grid; place-items: center; color: var(--m-cream); background: var(--m-forest); border-radius: 9px 9px 9px 3px; font-size: 7px; }
.live-pill, .period-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; color: var(--m-green); background: rgba(47,116,88,.08); border-radius: 999px; font-size: 8px; font-weight: 800; }
.live-pill i, .product-footer i { width: 6px; height: 6px; background: #4c9a6c; border-radius: 50%; box-shadow: 0 0 0 3px rgba(76,154,108,.13); }
.product-greeting { padding: 20px 0 16px; }
.product-greeting div { display: grid; gap: 4px; }
.product-greeting small, .card-title small, .product-footer, .signal-card small { color: #718078; font-size: 8px; }
.product-greeting strong { font-family: Georgia, "Times New Roman", serif; font-size: 19px; font-weight: 600; }
.period-pill { color: #65746c; background: rgba(16,43,34,.06); }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.metric-grid article { display: grid; gap: 4px; padding: 14px; background: rgba(255,255,255,.53); border: 1px solid var(--m-line); border-radius: 8px; }
.metric-grid span { color: #718078; font-size: 8px; font-weight: 750; }
.metric-grid strong { font-family: Georgia, "Times New Roman", serif; font-size: 20px; }
.metric-grid small { color: #7b857f; font-size: 7px; }
.metric-grid .up { color: var(--m-green); }
.insight-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 10px; margin-top: 10px; }
.insight-grid article { min-width: 0; padding: 15px; background: rgba(255,255,255,.53); border: 1px solid var(--m-line); border-radius: 8px; }
.card-title strong { font-size: 9px; }
.trend-chart { height: 112px; display: flex; align-items: flex-end; gap: 8px; padding: 17px 4px 0; border-bottom: 1px solid var(--m-line); background-image: linear-gradient(rgba(16,43,34,.06) 1px, transparent 1px); background-size: 100% 32px; }
.trend-chart span { flex: 1; background: linear-gradient(to top, var(--m-green), #80a891); border-radius: 3px 3px 0 0; }
.chart-labels { display: flex; justify-content: space-around; padding-top: 7px; color: #859089; font-size: 7px; }
.action-card { display: flex; flex-direction: column; }
.action-icon { width: 33px; height: 33px; display: grid; place-items: center; margin-top: 17px; color: #835614; background: rgba(201,145,60,.16); border-radius: 50%; font-family: Georgia, serif; font-weight: 800; }
.action-card p { margin: 10px 0; font-size: 9px; line-height: 1.45; }
.action-card p span { color: #718078; }
.action-card button { width: fit-content; margin-top: auto; padding: 0; color: var(--m-green); background: none; border: none; font-size: 8px; font-weight: 800; }
.product-footer { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--m-line); }
.product-footer span:first-child { display: flex; align-items: center; gap: 8px; color: var(--m-green); }
.signal-card { position: absolute; z-index: 3; min-width: 150px; display: grid; gap: 4px; padding: 14px 16px; color: var(--m-forest); background: #fffdf8; border: 1px solid rgba(16,43,34,.12); border-radius: 9px; box-shadow: 0 15px 35px rgba(2,15,11,.2); }
.signal-card span { color: #718078; font-size: 8px; font-weight: 700; }
.signal-card strong { font-family: Georgia, serif; font-size: 17px; }
.signal-card-top { top: 3px; right: -22px; transform: rotate(2deg); }
.signal-card-bottom { bottom: 0; left: -12px; transform: rotate(-1.8deg); }
.market-strip { min-height: 108px; display: flex; align-items: center; justify-content: space-between; gap: 34px; padding: 25px max(6vw, calc((100vw - 1320px)/2)); color: #61717f; background: #e7ecef; border-bottom: 1px solid var(--m-line); }
.market-strip p { margin: 0; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.market-strip div { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(13px, 2vw, 28px); color: var(--m-forest); font-family: Georgia, serif; font-size: 17px; }
.market-strip i { width: 4px; height: 4px; background: var(--m-amber); border-radius: 50%; }
.marketing-section { padding: clamp(80px, 10vw, 140px) max(6vw, calc((100vw - 1240px)/2)); }
.section-heading { max-width: 900px; }
.section-heading h2, .control-copy h2, .trial-form-copy h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(38px, 4.5vw, 65px); font-weight: 500; line-height: 1.04; letter-spacing: -.045em; text-wrap: balance; }
.section-heading > p:last-child { max-width: 660px; margin: 22px 0 0; color: #66766e; font-size: 15px; line-height: 1.7; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 68px; background: var(--m-line); border: 1px solid var(--m-line); }
.value-grid article { position: relative; min-height: 390px; display: flex; flex-direction: column; padding: 34px; background: var(--m-paper); }
.value-number { position: absolute; top: 28px; right: 30px; color: #a5aea9; font-family: Georgia, serif; font-size: 12px; }
.value-icon { width: 58px; height: 58px; position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 5px; margin-bottom: 55px; padding: 13px; color: var(--m-green); background: rgba(47,116,88,.08); border-radius: 50%; }
.value-icon-chart i { width: 5px; background: currentColor; border-radius: 2px 2px 0 0; }
.value-icon-chart i:nth-child(1) { height: 11px; opacity: .5; }.value-icon-chart i:nth-child(2) { height: 20px; opacity: .75; }.value-icon-chart i:nth-child(3) { height: 29px; }
.value-icon-stock { display: grid; grid-template-columns: 1fr 1fr; align-content: center; gap: 3px; padding: 15px; }
.value-icon-stock i { height: 11px; border: 1.5px solid currentColor; border-radius: 2px; }
.value-icon-member { align-items: center; }
.value-icon-member i:first-child { width: 12px; height: 12px; position: absolute; top: 13px; border: 2px solid currentColor; border-radius: 50%; }
.value-icon-member i:last-child { width: 28px; height: 15px; position: absolute; bottom: 11px; border: 2px solid currentColor; border-bottom: none; border-radius: 20px 20px 0 0; }
.value-grid h3 { margin: 0; font-family: Georgia, serif; font-size: 24px; font-weight: 600; letter-spacing: -.025em; }
.value-grid p { margin: 16px 0 28px; color: #66766e; font-size: 13px; line-height: 1.7; }
.value-grid small { margin-top: auto; padding-top: 16px; color: var(--m-green); border-top: 1px solid var(--m-line); font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.control-section { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr .8fr; gap: clamp(55px, 9vw, 135px); align-items: center; padding: clamp(90px, 11vw, 150px) max(6vw, calc((100vw - 1240px)/2)); color: var(--m-cream); background: var(--m-forest); }
.control-section::after { content: ""; position: absolute; width: 600px; height: 600px; right: -270px; bottom: -320px; border: 1px solid rgba(244,239,227,.08); border-radius: 50%; box-shadow: 0 0 0 80px rgba(244,239,227,.018); }
.control-copy { position: relative; z-index: 1; }
.control-copy > p:not(.marketing-kicker) { max-width: 580px; margin: 22px 0 0; color: rgba(244,239,227,.62); font-size: 15px; line-height: 1.7; }
.control-copy ul { display: grid; gap: 0; margin: 38px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(244,239,227,.14); }
.control-copy li { display: grid; grid-template-columns: 34px 1fr; gap: 15px; padding: 20px 0; border-bottom: 1px solid rgba(244,239,227,.14); }
.control-copy li > span { width: 26px; height: 26px; display: grid; place-items: center; color: var(--m-forest); background: var(--m-sage); border-radius: 50%; font-size: 11px; font-weight: 900; }
.control-copy li div { display: grid; gap: 5px; }
.control-copy li strong { font-size: 13px; }
.control-copy li small { color: rgba(244,239,227,.55); font-size: 11px; line-height: 1.5; }
.control-console { position: relative; z-index: 1; padding: 29px; color: var(--m-forest); background: var(--m-cream); border-radius: 5px; box-shadow: 0 28px 70px rgba(0,0,0,.28); transform: rotate(1deg); }
.console-head { display: flex; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--m-line); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.console-head small { color: #7b857f; font-size: 8px; }
.console-score { display: grid; grid-template-columns: auto 1fr; gap: 25px; align-items: end; padding: 25px 0 22px; }
.console-score div { display: grid; gap: 4px; }
.console-score small { color: #718078; font-size: 9px; }
.console-score strong { font-family: Georgia, serif; font-size: 38px; font-weight: 500; }
.console-score strong span { color: #9da7a1; font-size: 15px; }
.console-score > i { height: 6px; overflow: hidden; margin-bottom: 10px; background: rgba(16,43,34,.09); border-radius: 99px; }
.console-score > i span { display: block; width: 92%; height: 100%; background: var(--m-green); border-radius: inherit; }
.console-list { border-top: 1px solid var(--m-line); }
.console-list p { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; margin: 0; padding: 16px 0; border-bottom: 1px solid var(--m-line); }
.console-list p > span { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; font-size: 9px; font-weight: 900; }
.console-list .done { color: var(--m-green); background: rgba(47,116,88,.11); }
.console-list .warn { color: #8d5a11; background: rgba(201,145,60,.16); }
.console-list p strong { font-size: 10px; }
.console-list p small { color: #77837c; font-size: 8px; }
.trial-section { background: #e7ecef; }
.section-heading.compact { max-width: 820px; }
.trial-steps { counter-reset: steps; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 65px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--m-line); }
.trial-steps li { position: relative; min-height: 270px; padding: 35px 40px 20px 0; border-right: 1px solid var(--m-line); }
.trial-steps li + li { padding-left: 40px; }
.trial-steps li:last-child { border-right: none; }
.trial-steps span { display: inline-block; margin-bottom: 48px; padding: 6px 9px; color: var(--m-green); background: rgba(47,116,88,.09); border-radius: 999px; font-size: 9px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.trial-steps h3 { margin: 0; font-family: Georgia, serif; font-size: 23px; font-weight: 600; }
.trial-steps p { margin: 13px 0 0; color: #66766e; font-size: 12px; line-height: 1.65; }
.trial-form-section { display: grid; grid-template-columns: .76fr 1.24fr; gap: clamp(60px, 9vw, 130px); align-items: start; padding: clamp(90px, 11vw, 150px) max(6vw, calc((100vw - 1240px)/2)); color: var(--m-cream); background: #0b211a; }
.trial-form-copy { position: sticky; top: 40px; }
.trial-form-copy > p:not(.marketing-kicker) { margin: 22px 0 0; color: rgba(244,239,227,.61); font-size: 14px; line-height: 1.7; }
.trial-includes { display: grid; gap: 0; margin-top: 38px; border-top: 1px solid rgba(244,239,227,.13); }
.trial-includes p { display: flex; align-items: center; gap: 14px; margin: 0; padding: 17px 0; color: rgba(244,239,227,.75); border-bottom: 1px solid rgba(244,239,227,.13); font-size: 11px; }
.trial-includes span { color: var(--m-amber); font-family: Georgia, serif; }
.trial-form { padding: clamp(28px, 4vw, 48px); color: var(--m-forest); background: var(--m-cream); border-radius: 6px; box-shadow: 0 28px 70px rgba(0,0,0,.2); }
.form-head { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 30px; padding-bottom: 19px; border-bottom: 1px solid var(--m-line); }
.form-head span { font-family: Georgia, serif; font-size: 22px; font-weight: 600; }
.form-head small { max-width: 150px; color: #748078; font-size: 8px; line-height: 1.5; text-align: right; }
.trial-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; }
.trial-form label { display: grid; gap: 8px; color: var(--m-forest); font-size: 10px; font-weight: 800; }
.trial-form input, .trial-form select { min-height: 48px; margin: 0; padding: 11px 13px; color: var(--m-forest); background: #ffffff; border: 1px solid rgba(15,27,45,.17); border-radius: 3px; font-size: 12px; }
.trial-form input::placeholder { color: #98a19c; }
.trial-form input:hover, .trial-form select:hover { border-color: rgba(16,43,34,.35); }
.trial-consent { grid-template-columns: 18px 1fr !important; align-items: start; gap: 10px !important; margin-top: 24px; color: #66766e !important; font-weight: 500 !important; line-height: 1.5; }
.trial-consent input { width: 17px; min-height: 17px; margin: 1px 0 0; accent-color: var(--m-green); }
.honeypot { position: absolute; left: -9999px; }
.form-submit { width: 100%; margin-top: 22px; }
.form-submit:disabled { cursor: default; opacity: .72; transform: none; }
.trial-form-status { min-height: 22px; margin-top: 13px; font-size: 11px; line-height: 1.5; }
.trial-form-status.ok { color: var(--m-green); }
.trial-form-status.bad { color: #a43d32; }
.marketing-footer { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 20px 40px; padding: 42px max(6vw, calc((100vw - 1240px)/2)); color: rgba(244,239,227,.6); background: #071712; border-top: 1px solid rgba(244,239,227,.1); }
.footer-brand { color: var(--m-cream) !important; }
.marketing-footer p { margin: 0; font-family: Georgia, serif; font-size: 15px; }
.marketing-footer div { display: flex; gap: 22px; color: var(--m-cream); font-size: 10px; font-weight: 750; }
.marketing-footer small { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid rgba(244,239,227,.1); font-size: 8px; }

@media (max-width: 1060px) {
  .marketing-hero { min-height: auto; grid-template-columns: 1fr; padding-top: 145px; }
  .hero-copy { max-width: 780px; }
  .hero-product { width: min(100%, 760px); margin: 0 auto; }
  .value-grid { grid-template-columns: 1fr; }
  .value-grid article { min-height: 300px; }
  .control-section, .trial-form-section { grid-template-columns: 1fr; }
  .control-console { width: min(100%, 650px); }
  .trial-form-copy { position: static; max-width: 720px; }
}

@media (max-width: 720px) {
  .marketing-nav { height: 72px; padding-inline: 18px; }
  .marketing-nav nav > a:not(.marketing-cta-small) { display: none; }
  .marketing-brand { font-size: 13px; }
  .marketing-brand-mark { width: 34px; height: 34px; }
  .marketing-hero { padding: 115px 19px 70px; }
  .hero-copy h1 { font-size: clamp(45px, 13vw, 64px); }
  .hero-lede { font-size: 14px; }
  .hero-proof { grid-template-columns: auto auto; }
  .hero-proof i { display: none; }
  .hero-product { width: calc(100% + 16px); margin-left: -8px; padding: 12px 0 30px; }
  .product-window { min-height: 0; padding: 15px; transform: none; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-grid article:last-child { grid-column: 1 / -1; }
  .insight-grid { grid-template-columns: 1fr; }
  .signal-card { display: none; }
  .market-strip { align-items: flex-start; flex-direction: column; padding-inline: 20px; }
  .market-strip div { gap: 10px 14px; font-size: 15px; }
  .marketing-section, .control-section, .trial-form-section { padding: 75px 20px; }
  .section-heading h2, .control-copy h2, .trial-form-copy h2 { font-size: 40px; }
  .value-grid { margin-top: 44px; }
  .value-grid article { min-height: 330px; padding: 28px; }
  .trial-steps { grid-template-columns: 1fr; }
  .trial-steps li, .trial-steps li + li { min-height: 0; padding: 28px 0 34px; border-right: none; border-bottom: 1px solid var(--m-line); }
  .trial-steps span { margin-bottom: 24px; }
  .trial-form-grid { grid-template-columns: 1fr; }
  .trial-form { padding: 26px 20px; }
  .form-head { align-items: flex-start; flex-direction: column; }
  .form-head small { text-align: left; }
  .marketing-footer { grid-template-columns: 1fr; padding: 38px 20px; }
  .marketing-footer small { grid-column: 1; }
}

/* Warehouse transfers and replenishment */
.warehouse-location-table { margin-top:var(--space-4); }
.warehouse-transfer-grid {
  display:grid;
  grid-template-columns:minmax(0, .9fr) minmax(0, 1.1fr);
  gap:var(--space-4);
  align-items:start;
  margin-bottom:var(--space-4);
}
.warehouse-control-grid {
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:var(--space-4);
  align-items:start;
  margin-bottom:var(--space-4);
}
.warehouse-reorder-settings {
  display:grid;
  grid-template-columns:repeat(3, minmax(130px, 1fr));
  gap:var(--space-3);
}
.warehouse-reorder-settings label,
.warehouse-inline-check { color:var(--ink); font-size:11px; font-weight:750; }
.warehouse-reorder-settings input { margin:5px 0 0; }
.warehouse-inline-check { min-height:44px; display:flex !important; align-items:center; gap:9px; }
.warehouse-inline-check input { width:18px; min-height:18px; margin:0; }
.warehouse-view-picker { color:var(--ink); font-size:11px; font-weight:750; display:flex; align-items:center; gap:8px; }
.warehouse-view-picker select { min-height:38px; }
.warehouse-coverage-controls {
  display:grid;
  grid-template-columns:repeat(3, minmax(130px, 1fr)) auto;
  gap:var(--space-3);
  align-items:end;
  margin-bottom:var(--space-4);
}
.warehouse-coverage-controls label { color:var(--ink); font-size:11px; font-weight:750; }
.warehouse-coverage-controls input,
.warehouse-coverage-controls select { margin:5px 0 0; }
.warehouse-coverage-note { grid-column:1 / -1; margin:0; }
/* Two lines per cell: the quantity is the number a manager acts on, the days is the judgement.
   tabular-nums so the quantities line up down a column -- the whole point of the grid is scanning
   one product across every location. */
.warehouse-coverage-links { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.coverage-cell { line-height:1.25; }
.coverage-qty { display:block; font-weight:750; font-variant-numeric:tabular-nums; }
.coverage-days { display:block; font-size:11px; opacity:.72; font-variant-numeric:tabular-nums; }
.reconcile-correct { display:flex; flex-direction:column; align-items:flex-end; gap:8px; }
.reconcile-correct-group { display:flex; gap:8px; align-items:center; justify-content:flex-end; flex-wrap:wrap; }
.reconcile-correct-group select { width:150px; margin:0; }
.reconcile-correct-group input { width:110px; margin:0; }
.reorder-priority { display:inline-flex; align-items:center; gap:5px; font-weight:800; }
.reorder-priority.is-urgent { color:var(--red); }
.reorder-priority.is-watch { color:#835614; }
.reorder-priority::before { content:""; width:7px; height:7px; background:currentColor; border-radius:50%; }
.warehouse-transfer-form {
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:var(--space-3);
}
.warehouse-transfer-items {
  display:grid;
  gap:var(--space-2);
  margin:var(--space-3) 0;
}
.warehouse-transfer-item {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:var(--space-3);
  padding:var(--space-2) var(--space-3);
  border:1px solid var(--line);
  border-radius:var(--radius-sm);
  background:var(--surface-soft);
}
#transferWorkspace { min-width:0; }
#transferWorkspace > .panel { margin-top:var(--space-4); }

@media (max-width: 960px) {
  .warehouse-transfer-grid,
  .warehouse-control-grid { grid-template-columns:1fr; }
  .warehouse-reorder-settings,
  .warehouse-coverage-controls { grid-template-columns:1fr; }
}

@media (max-width: 720px) {
  .warehouse-transfer-form { grid-template-columns:1fr; }
  .warehouse-transfer-item { align-items:flex-start; }
}

/* Playbook 420 world-class scroll experience */
.world-site {
  --w-ink: #14181b;
  --w-forest: #1b2024;
  --w-green: #2f7d5b;
  --w-mint: #8fd1ae;
  --w-paper: #f6f7f5;
  --w-cream: #f6f7f5;
  --w-gold: #8fd1ae;
  --w-line: #d9ddda;
  --w-display: Archivo, "Arial Black", "Segoe UI", sans-serif;
  --w-body: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --w-mute: #5a6369;
  overflow-x: clip;
  background: var(--w-paper);
}
.world-site main { overflow: clip; }
.w-progress { position: fixed; inset: 0 0 auto; z-index: 110; height: 2px; background: rgba(255,255,255,.06); }
.w-progress span { display: block; width: 100%; height: 100%; background: var(--w-gold); transform: scaleX(0); transform-origin: left; will-change: transform; }
.w-nav { position: fixed; top: 0; left: 50%; z-index: 100; width: min(100%, 1440px); min-height: 88px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px; padding: 0 clamp(22px, 5vw, 72px); color: var(--w-cream); transform: translateX(-50%); transition: min-height .35s ease, background .35s ease, border-color .35s ease, backdrop-filter .35s ease; }
.w-nav.is-scrolled { min-height: 68px; background: rgba(8,17,31,.82); border-bottom: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(22px) saturate(130%); }
.w-brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; color: inherit !important; font-size: 14px; font-weight: 850; letter-spacing: -.025em; }
.w-brand-mark { width: 38px; height: 38px; display: grid; place-items: center; color: var(--w-ink); background: var(--w-gold); border-radius: 13px 13px 13px 4px; box-shadow: 0 10px 30px rgba(0,0,0,.18); font-size: 9px; letter-spacing: -.03em; }
.w-nav nav { display: flex; align-items: center; gap: 30px; }
.w-nav nav a, .w-signin { color: rgba(255,250,240,.62) !important; font-size: 11px; font-weight: 760; }
.w-nav nav a:hover, .w-signin:hover { color: var(--w-cream) !important; }
.w-nav-actions { display: flex; justify-content: flex-end; align-items: center; gap: 20px; }
.w-menu-toggle { min-height: 40px; display: inline-flex; align-items: center; gap: 10px; padding: 9px 0; color: rgba(255,250,240,.72); background: transparent; border: 0; cursor: pointer; font-size: 10px; font-weight: 800; }
.w-menu-toggle:hover { color: var(--w-cream); }
.w-menu-toggle>i { width: 22px; display: grid; gap: 5px; }
.w-menu-toggle b { width: 100%; height: 1px; display: block; background: currentColor; transition: transform .2s ease; }
.w-menu-toggle b:last-child { width: 70%; justify-self: end; }
.w-menu-layer { position: fixed; inset: 0; z-index: 500; display: grid; grid-template-columns: 1fr minmax(520px,650px); }
.w-menu-layer[hidden] { display: none; }
.w-menu-backdrop { width: 100%; height: 100%; padding: 0; background: rgba(1,11,8,.7); border: 0; cursor: pointer; backdrop-filter: blur(8px); }
.w-menu-panel { min-width: 0; height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; overflow-y: auto; padding: 35px clamp(28px,4vw,55px) 30px; color: var(--w-ink); background: var(--w-paper); box-shadow: -35px 0 100px rgba(0,0,0,.32); }
.w-menu-panel>header { display: flex; align-items: flex-start; justify-content: space-between; gap: 25px; padding-bottom: 24px; border-bottom: 1px solid var(--w-line); }
.w-menu-panel>header div { display: grid; gap: 7px; }
.w-menu-panel>header small { color: var(--w-green); font-size: 8px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.w-menu-panel>header strong { font-family: var(--w-display); font-size: clamp(28px,3vw,38px); font-weight: 500; letter-spacing: -.035em; }
.w-menu-close { min-height: 44px; padding: 0 0 0 20px; color: var(--w-green); background: transparent; border: 0; cursor: pointer; font-size: 9px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.w-menu-panel>nav { display: grid; align-content: start; padding: 15px 0; }
.w-menu-panel>nav>a { min-height: 92px; display: grid; grid-template-columns: 28px 1fr auto; gap: 18px; align-items: center; color: var(--w-ink); border-bottom: 1px solid var(--w-line); transition: padding .2s ease, background .2s ease; }
.w-menu-panel>nav>a:hover,.w-menu-panel>nav>a[aria-current="page"] { padding-inline: 13px; background: rgba(47,116,88,.07); }
.w-menu-panel>nav>a>small { color: var(--w-gold); font-family: var(--w-display); font-size: 11px; }
.w-menu-panel>nav>a>span { display: grid; gap: 5px; }
.w-menu-panel>nav strong { font-family: var(--w-display); font-size: 22px; font-weight: 500; letter-spacing: -.025em; }
.w-menu-panel>nav em { color: #718078; font-size: 9px; font-style: normal; }
.w-menu-panel>nav>a>i { color: var(--w-green); font-size: 13px; font-style: normal; }
.w-menu-panel>footer { display: flex; flex-wrap: wrap; gap: 9px 21px; padding-top: 22px; border-top: 1px solid var(--w-line); }
.w-menu-panel>footer a { min-height: 30px; display: inline-flex; align-items: center; color: #65756d; font-size: 9px; font-weight: 800; }
.w-menu-panel>footer a:hover { color: var(--w-green); }
.w-menu-open { overflow: hidden; }
@media (max-width:760px){.w-nav-actions{gap:11px}.w-nav-actions .w-signin{display:none!important}.w-menu-toggle{min-width:44px;min-height:44px;justify-content:center;padding:8px}.w-menu-toggle>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.w-menu-layer{grid-template-columns:1fr}.w-menu-backdrop{position:absolute;inset:0}.w-menu-panel{position:relative;z-index:1;width:100%;padding:24px 20px calc(24px + env(safe-area-inset-bottom))}.w-menu-panel>nav>a{min-height:82px}.w-menu-panel>nav strong{font-size:20px}.w-menu-panel>footer{gap:7px 18px}}
.w-button { min-height: 52px; display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; width: auto; padding: 13px 17px 13px 20px; color: var(--w-ink) !important; background: var(--w-gold); border: 1px solid var(--w-gold); border-radius: 5px; box-shadow: 0 13px 34px rgba(0,0,0,.18); font-size: 12px; font-weight: 850; transition: transform .25s ease, background .25s ease, box-shadow .25s ease; }
.w-button:hover { color: var(--w-ink) !important; background: #e0aa52; box-shadow: 0 18px 42px rgba(0,0,0,.22); transform: translateY(-3px); }
.w-button-small { min-height: 40px; gap: 15px; padding: 9px 12px 9px 15px; font-size: 10px; }
.w-button:focus-visible, .world-site a:focus-visible, .world-site button:focus-visible, .world-site input:focus-visible, .world-site select:focus-visible { outline: 3px solid var(--w-gold); outline-offset: 4px; }
.w-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; color: var(--w-mint); font-size: 10px; font-weight: 850; letter-spacing: .14em; line-height: 1.5; text-transform: uppercase; }
.w-eyebrow > span { width: 24px; height: 1px; background: currentColor; }
.w-eyebrow.dark { color: var(--w-green); }
.w-hero { position: relative; min-height: max(820px, 100svh); display: grid; grid-template-columns: minmax(0, .91fr) minmax(510px, 1.09fr); align-items: center; gap: clamp(28px, 5vw, 84px); padding: 136px max(5vw, calc((100vw - 1320px)/2)) 92px; color: var(--w-cream); background: var(--w-ink); isolation: isolate; }
.w-hero::before { content: ""; position: absolute; inset: 0; z-index: -3; opacity: .28; background-image: linear-gradient(rgba(143,201,196,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(143,201,196,.1) 1px, transparent 1px); background-size: 90px 90px; mask-image: radial-gradient(circle at 74% 47%, #000 10%, transparent 68%); }
.w-hero-glow { position: absolute; z-index: -2; width: 760px; height: 760px; top: 50%; right: -80px; background: radial-gradient(circle, rgba(79,151,153,.22), rgba(79,151,153,.05) 48%, transparent 70%); border-radius: 50%; transform: translateY(-50%); filter: blur(2px); }
.w-hero-copy { position: relative; z-index: 5; max-width: 700px; }
.w-hero h1 { margin: 0; font-family: var(--w-display); font-size: clamp(54px, 5.8vw, 92px); font-weight: 500; line-height: .94; letter-spacing: -.058em; text-wrap: balance; }
.w-hero h1 em { color: var(--w-mint); font-style: italic; font-weight: 400; }
.w-lede { max-width: 580px; margin: 28px 0 0; color: rgba(255,250,240,.64); font-size: 15px; line-height: 1.75; }
.w-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 25px; margin-top: 32px; }
.w-text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--w-cream) !important; font-size: 11px; font-weight: 780; }
.w-text-link i { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; }
.w-text-link i::before { content: "↓"; font-style: normal; }
.w-text-link.dark { margin-top: 30px; color: var(--w-ink) !important; }
.w-text-link.dark i { border-color: var(--w-line); }
.w-hero-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 25px; margin-top: 48px; padding-top: 23px; border-top: 1px solid rgba(255,255,255,.12); }
.w-hero-facts div { display: grid; gap: 5px; }
.w-hero-facts strong { color: var(--w-cream); font-family: var(--w-display); font-size: 17px; font-weight: 500; }
.w-hero-facts span { color: rgba(255,250,240,.42); font-size: 8px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.w-hero-scene { --pointer-x: 0px; --pointer-y: 0px; position: relative; min-height: 620px; perspective: 1200px; transform: translate3d(var(--pointer-x), var(--pointer-y), 0); transition: transform .65s cubic-bezier(.2,.8,.2,1); }
.w-scene-grid { position: absolute; inset: 9% 4%; border: 1px solid rgba(143,201,196,.12); border-radius: 50%; transform: rotateX(66deg) rotateZ(-10deg); background-image: linear-gradient(rgba(143,201,196,.11) 1px, transparent 1px), linear-gradient(90deg, rgba(143,201,196,.11) 1px, transparent 1px); background-size: 45px 45px; mask-image: radial-gradient(circle, #000, transparent 68%); }
.w-orbit-system { --tilt-x: 0deg; --tilt-y: 0deg; position: absolute; width: 390px; height: 390px; top: 50%; left: 51%; transform-style: preserve-3d; transform: translate(-50%, -50%) rotateX(calc(64deg + var(--tilt-x))) rotateZ(-17deg) rotateY(var(--tilt-y)); transition: transform .55s cubic-bezier(.2,.8,.2,1); }
.w-ring { position: absolute; inset: 0; border: 1px solid rgba(143,201,196,.42); border-radius: 50%; box-shadow: inset 0 0 35px rgba(143,201,196,.04), 0 0 40px rgba(143,201,196,.04); }
.w-ring-one { animation: w-spin 18s linear infinite; }
.w-ring-two { inset: 55px; border-style: dashed; border-color: rgba(224,154,62,.42); animation: w-spin-reverse 13s linear infinite; }
.w-ring-three { inset: 118px; border-color: rgba(143,201,196,.7); animation: w-pulse-ring 4s ease-in-out infinite; }
.w-core { position: absolute; inset: 146px; display: grid; place-items: center; color: var(--w-ink); background: radial-gradient(circle at 35% 30%, #d8eded, #6faaa8 55%, #2f6b6d); border: 1px solid rgba(255,255,255,.35); border-radius: 50%; box-shadow: 0 0 0 12px rgba(143,201,196,.05), 0 0 70px rgba(91,178,178,.36); transform: translateZ(85px) rotateZ(17deg) rotateX(-64deg); transform-style: preserve-3d; }
.w-core::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(255,255,255,.36); border-radius: inherit; }
.w-core span { position: relative; z-index: 2; font-size: 10px; font-weight: 900; }
.w-core i { position: absolute; width: 9px; height: 9px; right: -26px; background: var(--w-gold); border-radius: 50%; box-shadow: 0 0 18px var(--w-gold); }
.w-orbit-dot { position: absolute; width: 9px; height: 9px; background: var(--w-mint); border-radius: 50%; box-shadow: 0 0 18px var(--w-mint); }
.w-dot-one { top: 20px; left: 187px; }.w-dot-two { top: 250px; left: 35px; background: var(--w-gold); }.w-dot-three { right: 20px; top: 180px; }
.w-float-card { position: absolute; z-index: 4; color: var(--w-ink); background: rgba(255,250,240,.93); border: 1px solid rgba(255,255,255,.5); border-radius: 13px; box-shadow: 0 28px 80px rgba(0,0,0,.32); backdrop-filter: blur(18px); transform-style: preserve-3d; }
.w-float-main { width: 270px; top: 70px; right: 20px; padding: 18px; transform: rotateY(-9deg) rotateX(4deg) translateZ(65px); animation: w-float 7s ease-in-out infinite; }
.w-float-main header, .w-float-main footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.w-float-main header { padding-bottom: 13px; border-bottom: 1px solid var(--w-line); font-size: 8px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.w-float-main header i { color: var(--w-green); font-size: 7px; font-style: normal; }
.w-float-main > p { margin: 16px 0 4px; color: #687970; font-size: 8px; }
.w-float-main > strong { font-family: var(--w-display); font-size: 31px; font-weight: 500; }
.w-mini-chart { height: 68px; display: flex; align-items: flex-end; gap: 7px; margin: 10px 0 13px; padding-top: 10px; border-bottom: 1px solid var(--w-line); }
.w-mini-chart span { flex: 1; background: linear-gradient(to top, var(--w-green), var(--w-mint)); border-radius: 3px 3px 0 0; }
.w-mini-chart span:nth-child(1){height:27%}.w-mini-chart span:nth-child(2){height:42%}.w-mini-chart span:nth-child(3){height:37%}.w-mini-chart span:nth-child(4){height:63%}.w-mini-chart span:nth-child(5){height:72%}.w-mini-chart span:nth-child(6){height:93%}
.w-float-main footer { color: #708078; font-size: 7px; }.w-float-main footer b { color: var(--w-green); }
.w-float-stock, .w-float-member { display: grid; gap: 4px; min-width: 165px; padding: 15px 17px; }
.w-float-stock span, .w-float-member span { color: #687970; font-size: 8px; font-weight: 760; }
.w-float-stock strong, .w-float-member strong { font-family: var(--w-display); font-size: 19px; font-weight: 500; }
.w-float-stock small, .w-float-member small { color: #75837c; font-size: 7px; }
.w-float-stock { top: 265px; left: 3px; transform: rotateY(13deg) rotateZ(-2deg) translateZ(90px); animation: w-float 8s 1s ease-in-out infinite reverse; }
.w-float-member { right: 25px; bottom: 92px; transform: rotateY(-8deg) rotateZ(2deg) translateZ(45px); animation: w-float 8.5s .5s ease-in-out infinite; }
.w-scene-caption { position: absolute; left: 42px; bottom: 54px; display: flex; align-items: flex-start; gap: 12px; color: rgba(255,250,240,.45); }
.w-scene-caption span { color: var(--w-gold); font-family: var(--w-display); font-size: 12px; }
.w-scene-caption p { margin: 0; font-size: 8px; line-height: 1.55; text-transform: uppercase; letter-spacing: .08em; }
.w-scroll-cue { position: absolute; bottom: 30px; left: max(5vw, calc((100vw - 1320px)/2)); display: flex; align-items: center; gap: 12px; color: rgba(255,250,240,.42) !important; font-size: 8px; font-weight: 760; letter-spacing: .12em; text-transform: uppercase; }
.w-scroll-cue i { width: 36px; height: 1px; position: relative; overflow: hidden; background: rgba(255,255,255,.15); }
.w-scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--w-gold); transform: translateX(-100%); animation: w-scan 2.2s ease-in-out infinite; }
.w-signal-strip { min-height: 112px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 42px; padding: 25px max(5vw, calc((100vw - 1320px)/2)); color: #5f6f7d; background: #e7ecef; border-bottom: 1px solid var(--w-line); }
.w-signal-strip p, .w-signal-strip small { margin: 0; font-size: 8px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.w-signal-strip div { display: flex; justify-content: center; align-items: center; gap: clamp(14px, 2.3vw, 34px); color: var(--w-ink); font-family: var(--w-display); font-size: 17px; }
.w-signal-strip i { width: 4px; height: 4px; background: var(--w-gold); border-radius: 50%; }
.w-intro, .w-platform, .w-trial { padding: clamp(100px, 12vw, 170px) max(5vw, calc((100vw - 1240px)/2)); }
.w-section-head, .w-trial-head { max-width: 900px; }
.w-section-head h2, .w-story-head h2, .w-platform h2, .w-trial h2, .w-form-copy h2 { margin: 0; color: var(--w-ink); font-family: var(--w-display); font-size: clamp(45px, 5.5vw, 78px); font-weight: 500; line-height: .98; letter-spacing: -.052em; text-wrap: balance; }
.w-section-head > p:last-child, .w-platform-copy > p, .w-trial-head > p:last-child { max-width: 650px; margin: 24px 0 0; color: #66766e; font-size: 14px; line-height: 1.75; }
.w-bento { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin-top: 72px; }
.w-bento-card { position: relative; min-height: 480px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(28px, 3vw, 42px); color: var(--w-ink); background: #f8fafc; border: 1px solid var(--w-line); border-radius: 14px; box-shadow: 0 16px 50px rgba(15,27,45,.06); }
.w-bento-wide { grid-column: 1 / -1; min-height: 420px; display: grid; grid-template-columns: 1fr .75fr; align-items: center; gap: 40px; }
.w-card-index { position: absolute; top: 28px; right: 30px; color: #9aa59f; font-family: var(--w-display); font-size: 12px; }
.w-card-copy { position: relative; z-index: 2; max-width: 570px; }
.w-card-copy small { color: var(--w-green); font-size: 9px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.w-card-copy h3 { max-width: 600px; margin: 14px 0 0; font-family: var(--w-display); font-size: clamp(30px, 3.2vw, 49px); font-weight: 500; line-height: 1.04; letter-spacing: -.04em; }
.w-card-copy p { max-width: 510px; margin: 18px 0 0; color: #68776f; font-size: 13px; line-height: 1.7; }
.w-margin-object { justify-self: center; display: grid; place-items: center; }
.w-margin-ring { position: relative; width: 220px; height: 220px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--w-green) 0 51.8%, #dfe5df 51.8% 100%); box-shadow: 0 24px 55px rgba(12,52,39,.14); transform: rotateX(13deg) rotateY(-13deg); }
.w-margin-ring::before { content: ""; position: absolute; width: 157px; height: 157px; background: var(--w-cream); border-radius: 50%; box-shadow: inset 0 0 28px rgba(15,27,45,.08); }
.w-margin-ring span { position: relative; z-index: 1; font-family: var(--w-display); font-size: 41px; }.w-margin-ring small { font-size: 17px; }
.w-margin-object > p { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; color: #66766e; font-size: 9px; }.w-margin-object > p i { width: 7px; height: 7px; background: var(--w-green); border-radius: 50%; }
.w-ledger-object { display: grid; gap: 9px; margin: 44px 0 0; padding: 24px; background: #e8edf0; border-radius: 10px; transform: perspective(600px) rotateX(6deg) rotateY(-5deg); box-shadow: 18px 25px 35px rgba(15,27,45,.08); }
.w-ledger-object span { height: 8px; background: linear-gradient(90deg, var(--w-green) 0 62%, rgba(15,27,45,.08) 62%); border-radius: 99px; opacity: calc(.45 + var(--n, 0)); }.w-ledger-object span:nth-child(2){width:82%}.w-ledger-object span:nth-child(3){width:91%}.w-ledger-object span:nth-child(4){width:68%}
.w-ledger-object b { margin-top: 12px; color: var(--w-green); font-family: var(--w-display); font-size: 19px; font-weight: 500; }
.w-bento-dark { color: var(--w-cream); background: var(--w-forest); }
.w-bento-dark .w-card-copy h3 { color: var(--w-cream); }.w-bento-dark .w-card-copy p { color: rgba(255,250,240,.58); }.w-bento-dark .w-card-copy small { color: var(--w-mint); }
.w-member-orbits { position: relative; width: 240px; height: 145px; margin: 45px auto 0; transform: rotateX(58deg) rotateZ(-8deg); transform-style: preserve-3d; }
.w-member-orbits i { position: absolute; inset: 0; border: 1px solid rgba(143,201,196,.32); border-radius: 50%; }.w-member-orbits i:nth-child(2){inset:25px 42px}.w-member-orbits i:nth-child(3){inset:49px 83px;border-color:var(--w-gold)}
.w-member-orbits span { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 56px; height: 56px; color: var(--w-ink); background: var(--w-mint); border-radius: 50%; box-shadow: 0 0 50px rgba(143,201,196,.28); font-family: var(--w-display); font-size: 20px; transform: translate(-50%,-50%) translateZ(45px) rotateZ(8deg) rotateX(-58deg); }
.w-story { position: relative; padding: clamp(110px, 13vw, 180px) max(5vw, calc((100vw - 1240px)/2)); color: var(--w-cream); background: var(--w-ink); }
.w-story::before { content: ""; position: absolute; inset: 0; opacity: .25; background-image: linear-gradient(rgba(143,201,196,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(143,201,196,.08) 1px, transparent 1px); background-size: 90px 90px; mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 80%, transparent); }
.w-story-head { position: relative; z-index: 2; max-width: 900px; margin-bottom: 90px; }.w-story-head h2 { color: var(--w-cream); }
.w-story-layout { position: relative; z-index: 2; display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(60px, 10vw, 150px); align-items: start; }
.w-story-steps { padding-bottom: 16vh; }
.w-story-step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; opacity: .24; transition: opacity .5s ease, transform .5s ease; transform: translateX(-12px); }
.w-story-step.is-active { opacity: 1; transform: translateX(0); }
.w-story-step > span { color: var(--w-gold); font-size: 9px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.w-story-step h3 { margin: 20px 0 0; font-family: var(--w-display); font-size: clamp(35px, 4.1vw, 58px); font-weight: 500; line-height: 1; letter-spacing: -.045em; }
.w-story-step > p { margin: 20px 0 0; color: rgba(255,250,240,.58); font-size: 13px; line-height: 1.75; }
.w-story-step ul { display: grid; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; color: rgba(255,250,240,.74); font-size: 10px; }
.w-story-step li { display: flex; align-items: center; gap: 10px; }.w-story-step li::before { content: ""; width: 5px; height: 5px; background: var(--w-mint); border-radius: 50%; }
.w-story-stage { position: sticky; top: 14vh; min-height: 70vh; display: grid; place-items: center; perspective: 1000px; }
.w-stage-halo { position: absolute; width: min(90%, 520px); aspect-ratio: 1; border: 1px solid rgba(143,201,196,.12); border-radius: 50%; box-shadow: 0 0 0 70px rgba(143,201,196,.018), 0 0 0 140px rgba(143,201,196,.012); }
.w-stage-orbit { position: absolute; width: 450px; height: 245px; border: 1px solid rgba(143,201,196,.27); border-radius: 50%; transform: rotateX(68deg) rotateZ(-12deg); animation: w-spin-stage 17s linear infinite; }
.w-stage-orbit::after { content: ""; position: absolute; width: 11px; height: 11px; top: 30px; right: 48px; background: var(--w-gold); border-radius: 50%; box-shadow: 0 0 22px var(--w-gold); }
.w-stage-card { position: absolute; width: min(82%, 430px); min-height: 315px; padding: 30px; color: var(--w-ink); background: rgba(255,250,240,.95); border: 1px solid rgba(255,255,255,.6); border-radius: 14px; box-shadow: 0 40px 100px rgba(0,0,0,.36); backdrop-filter: blur(18px); transform-style: preserve-3d; transition: opacity .7s ease, transform .85s cubic-bezier(.16,1,.3,1), filter .7s ease; }
.w-stage-card header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--w-line); font-size: 8px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.w-stage-card header i { color: var(--w-green); font-size: 7px; font-style: normal; }
.w-stage-card > strong { display: block; margin-top: 24px; font-family: var(--w-display); font-size: 28px; font-weight: 500; line-height: 1.08; }.w-stage-card > small { color:#6d7b74;font-size:8px; }
.w-control-rows { display: grid; margin-top: 24px; }.w-control-rows p { display: grid; grid-template-columns: 8px 1fr auto; gap: 10px; align-items:center; margin:0;padding:13px 0;border-bottom:1px solid var(--w-line);font-size:9px}.w-control-rows i{width:6px;height:6px;background:var(--w-green);border-radius:50%}.w-control-rows b{font-weight:800}
.w-stage-bars { height: 100px; display:flex;align-items:flex-end;gap:9px;margin-top:22px;border-bottom:1px solid var(--w-line)}.w-stage-bars i{flex:1;background:linear-gradient(to top,var(--w-green),var(--w-mint));border-radius:3px 3px 0 0}.w-stage-bars i:nth-child(1){height:31%}.w-stage-bars i:nth-child(2){height:42%}.w-stage-bars i:nth-child(3){height:39%}.w-stage-bars i:nth-child(4){height:58%}.w-stage-bars i:nth-child(5){height:71%}.w-stage-bars i:nth-child(6){height:65%}.w-stage-bars i:nth-child(7){height:91%}
.w-stage-understand footer { display:flex;justify-content:space-between;margin-top:16px;color:#687970;font-size:8px;font-weight:800 }
.w-action-glyph { width:45px;height:45px;display:grid;place-items:center;margin-top:24px;color:#87540e;background:rgba(224,154,62,.18);border-radius:50%;font-family:var(--w-display);font-size:20px }
.w-stage-act p { margin:10px 0 23px;color:#687970;font-size:10px;line-height:1.55 }.w-stage-act button{width:100%;min-height:43px;display:flex;justify-content:space-between;align-items:center;padding:10px 13px;color:var(--w-cream);background:var(--w-green);border:0;border-radius:5px;font-size:9px;font-weight:800}
.w-stage-control { transform: translate3d(-42px, 26px, -90px) rotateY(7deg); opacity: .26; filter: blur(2px); }
.w-stage-understand { transform: translate3d(25px, -16px, -50px) rotateY(-5deg); opacity: .22; filter: blur(2px); }
.w-stage-act { transform: translate3d(60px, 36px, -120px) rotateY(-9deg); opacity: .18; filter: blur(3px); }
.w-story-stage[data-active="control"] .w-stage-control,.w-story-stage[data-active="understand"] .w-stage-understand,.w-story-stage[data-active="act"] .w-stage-act { z-index:3;opacity:1;filter:none;transform:translate3d(0,0,70px) rotateY(0); }
.w-stage-label { position:absolute;right:0;bottom:4%;display:flex;gap:13px;color:rgba(255,250,240,.46)}.w-stage-label span{color:var(--w-gold);font-family:var(--w-display);font-size:12px}.w-stage-label p{margin:0;font-size:8px;line-height:1.5;text-transform:uppercase;letter-spacing:.08em}
.w-platform { display:grid;grid-template-columns:.72fr 1.28fr;gap:clamp(65px,10vw,145px);align-items:start;background:#e7ecef }
.w-platform-copy { position:sticky;top:120px }.w-role-stack { display:grid;border-top:1px solid var(--w-line) }.w-role-stack article{display:grid;grid-template-columns:35px minmax(150px,.7fr) 1fr auto;gap:24px;align-items:center;min-height:145px;padding:25px 0;border-bottom:1px solid var(--w-line);transition:padding .25s ease,background .25s ease}.w-role-stack article:hover{padding-inline:18px;background:rgba(255,250,240,.48)}.w-role-stack article>span{color:var(--w-gold);font-family:var(--w-display);font-size:12px}.w-role-stack article div{display:grid;gap:6px}.w-role-stack small{color:var(--w-green);font-size:8px;font-weight:850;letter-spacing:.1em;text-transform:uppercase}.w-role-stack strong{font-family:var(--w-display);font-size:24px;font-weight:500}.w-role-stack p{margin:0;color:#66766e;font-size:11px;line-height:1.6}.w-role-stack article>i{font-style:normal;color:var(--w-green)}
.w-founders { position:relative;display:grid;grid-template-columns:1.15fr .85fr;gap:clamp(55px,8vw,120px);align-items:center;padding:clamp(100px,12vw,160px) max(5vw,calc((100vw - 1240px)/2));overflow:hidden;color:var(--w-ink);background:var(--w-paper) }
.w-founders::before { content:"";position:absolute;width:520px;height:520px;right:-245px;top:-255px;border:1px solid rgba(15,27,45,.09);border-radius:50%;box-shadow:0 0 0 72px rgba(15,27,45,.022),0 0 0 144px rgba(15,27,45,.014) }
.w-founders-copy,.w-price-card { position:relative;z-index:1 }
.w-founders h2 { max-width:760px;margin:0;font-family:var(--w-display);font-size:clamp(43px,5vw,70px);font-weight:500;line-height:1;letter-spacing:-.05em;text-wrap:balance }
.w-founders-limit { max-width:500px;margin:28px 0 0;color:var(--w-green);font-size:12px;font-weight:820;letter-spacing:.02em;line-height:1.6 }
.w-price-card { padding:clamp(28px,4vw,48px);color:var(--w-cream);background:var(--w-forest);border:1px solid rgba(15,27,45,.16);border-radius:15px;box-shadow:0 36px 90px rgba(15,27,45,.2) }
.w-price-card>small { display:block;color:var(--w-mint);font-size:9px;font-weight:850;letter-spacing:.13em;text-transform:uppercase }
.w-price { display:flex;align-items:baseline;gap:4px;margin:24px 0 5px }
.w-price span { align-self:flex-start;margin-top:13px;color:var(--w-gold);font-family:var(--w-display);font-size:22px }
.w-price strong { color:var(--w-cream);font-family:var(--w-display);font-size:clamp(74px,8vw,104px);font-weight:500;line-height:.84;letter-spacing:-.065em }
.w-price em { margin-left:8px;color:rgba(255,250,240,.54);font-size:10px;font-style:normal;font-weight:750 }
.w-price-card>p:not(.w-price) { margin:21px 0 0;color:rgba(255,250,240,.7);font-size:12px;line-height:1.65 }
.w-price-card>p.w-price-original { margin-top:12px;color:rgba(255,250,240,.66);font-size:12px;font-weight:750;text-decoration:line-through;text-decoration-thickness:1px }
.w-price-card>p.w-price-original[hidden] { display:none }
.w-price-card ul { display:grid;gap:0;margin:30px 0;padding:0;list-style:none;border-top:1px solid rgba(255,255,255,.13) }
.w-price-card li { display:flex;align-items:center;gap:11px;padding:13px 0;color:rgba(255,250,240,.72);border-bottom:1px solid rgba(255,255,255,.13);font-size:10px }
.w-price-card li::before { content:"";width:5px;height:5px;flex:0 0 auto;background:var(--w-gold);border-radius:50% }
.w-price-card .w-button { width:100% }
.w-trial { color:var(--w-cream);background:var(--w-forest) }.w-trial h2{color:var(--w-cream)}.w-trial-head>p:last-child{color:rgba(255,250,240,.58)}
.w-timeline { display:grid;grid-template-columns:repeat(3,1fr);gap:0;margin:75px 0 0;padding:0;list-style:none;border-top:1px solid rgba(255,255,255,.14) }.w-timeline li{position:relative;min-height:325px;padding:28px 42px 20px 0;border-right:1px solid rgba(255,255,255,.14)}.w-timeline li+li{padding-left:42px}.w-timeline li:last-child{border-right:0}.w-timeline li>span{color:var(--w-gold);font-size:8px;font-weight:850;letter-spacing:.11em;text-transform:uppercase}.w-timeline li>i{display:block;width:9px;height:9px;margin:27px 0 48px;background:var(--w-mint);border-radius:50%;box-shadow:0 0 0 7px rgba(143,201,196,.08)}.w-timeline small{color:var(--w-mint);font-size:8px;font-weight:850;letter-spacing:.12em;text-transform:uppercase}.w-timeline h3{margin:12px 0 0;font-family:var(--w-display);font-size:25px;font-weight:500}.w-timeline p{margin:15px 0 0;color:rgba(248,250,252,.55);font-size:11px;line-height:1.7}
.w-form-section { position:relative;display:grid;grid-template-columns:.72fr 1.28fr;gap:clamp(65px,10vw,145px);align-items:start;padding:clamp(110px,13vw,170px) max(5vw,calc((100vw - 1240px)/2));color:var(--w-cream);background:var(--w-ink) }.w-form-section::before{content:"";position:absolute;width:620px;height:620px;left:-330px;bottom:-300px;border:1px solid rgba(143,201,196,.1);border-radius:50%;box-shadow:0 0 0 80px rgba(143,201,196,.018),0 0 0 160px rgba(143,201,196,.012)}
.w-form-copy { position:sticky;top:115px;z-index:1 }.w-form-copy h2{color:var(--w-cream)}.w-form-copy>p:not(.w-eyebrow){margin:23px 0 0;color:rgba(255,250,240,.58);font-size:13px;line-height:1.75}.w-form-points{display:grid;margin-top:40px;border-top:1px solid rgba(255,255,255,.13)}.w-form-points p{display:flex;align-items:center;gap:15px;margin:0;padding:17px 0;color:rgba(255,250,240,.72);border-bottom:1px solid rgba(255,255,255,.13);font-size:10px}.w-form-points span{color:var(--w-gold);font-family:var(--w-display)}
.w-form { position:relative;z-index:1;padding:clamp(28px,4vw,48px);color:var(--w-ink);background:var(--w-paper);border:1px solid rgba(255,255,255,.35);border-radius:15px;box-shadow:0 40px 100px rgba(0,0,0,.3) }.w-form-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:30px;padding-bottom:22px;border-bottom:1px solid var(--w-line)}.w-form-head div{display:grid;gap:5px}.w-form-head small{color:var(--w-green);font-size:8px;font-weight:850;letter-spacing:.12em;text-transform:uppercase}.w-form-head strong{font-family:var(--w-display);font-size:26px;font-weight:500}.w-form-head>span{max-width:150px;color:#75817b;font-size:8px;line-height:1.5;text-align:right}
.w-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:19px 15px}.w-form label{display:grid;gap:8px;color:var(--w-ink);font-size:9px;font-weight:820}.w-form input,.w-form select{min-height:50px;margin:0;padding:11px 13px;color:var(--w-ink);background:#ffffff;border:1px solid rgba(15,27,45,.17);border-radius:5px;font-size:11px}.w-form input::placeholder{color:#8b98a3}.w-form input:hover,.w-form select:hover{border-color:rgba(15,27,45,.38)}.w-consent{grid-template-columns:18px 1fr!important;align-items:start;gap:10px!important;margin-top:24px;color:#5f6f7d!important;font-weight:500!important;line-height:1.55}.w-consent input{width:17px;min-height:17px;margin:1px 0 0;accent-color:var(--w-green)}.w-submit{width:100%;margin-top:22px}.w-submit:disabled{cursor:default;opacity:.68;transform:none}.world-site .trial-form-status{min-height:22px;margin-top:13px;font-size:10px}.world-site .trial-form-status.ok{color:var(--w-green)}.world-site .trial-form-status.bad{color:#a43d32}
.w-consent a { color: var(--w-green); text-decoration: underline; text-underline-offset: 2px; }
.w-footer { display:grid;grid-template-columns:1fr 1fr auto;align-items:center;gap:22px 42px;padding:44px max(5vw,calc((100vw - 1240px)/2));color:rgba(248,250,252,.56);background:#050b14;border-top:1px solid rgba(255,255,255,.08) }.w-footer .w-brand{color:var(--w-cream)!important}.w-footer p{margin:0;font-family:var(--w-display);font-size:14px}.w-footer>div{display:flex;gap:23px;color:var(--w-cream);font-size:9px;font-weight:760}.w-footer>small{grid-column:1/-1;padding-top:20px;border-top:1px solid rgba(255,255,255,.08);font-size:8px}
.reveal { opacity:0;transform:translateY(28px);transition:opacity .85s ease,transform .85s cubic-bezier(.16,1,.3,1) }.reveal.is-visible{opacity:1;transform:translateY(0)}
@keyframes w-spin{to{transform:rotate(360deg)}}@keyframes w-spin-reverse{to{transform:rotate(-360deg)}}@keyframes w-pulse-ring{50%{box-shadow:0 0 45px rgba(143,201,196,.26);transform:scale(1.06)}}@keyframes w-float{50%{margin-top:-11px}}@keyframes w-scan{50%,100%{transform:translateX(100%)}}@keyframes w-spin-stage{to{transform:rotateX(68deg) rotateZ(348deg)}}
@media (max-width:1100px){.w-nav{grid-template-columns:1fr auto}.w-nav nav{display:none}.w-hero{grid-template-columns:1fr;min-height:auto;padding-top:145px}.w-hero-copy{max-width:780px}.w-hero-scene{width:min(100%,760px);margin:0 auto}.w-story-layout{grid-template-columns:1fr}.w-story-steps{padding:0}.w-story-step{min-height:55vh;max-width:650px}.w-story-stage{position:relative;top:auto;min-height:670px;grid-row:1}.w-platform,.w-founders,.w-form-section{grid-template-columns:1fr}.w-platform-copy,.w-form-copy{position:static;max-width:720px}.w-role-stack{margin-top:20px}.w-price-card{width:min(100%,720px)}.w-form{width:min(100%,800px)}}
@media (max-width:760px){.w-nav{min-height:70px;padding:0 18px}.w-nav.is-scrolled{min-height:62px}.w-brand{font-size:12px}.w-brand-mark{width:34px;height:34px}.w-signin{display:none}.w-button-small{min-height:38px}.w-hero{padding:115px 19px 75px}.w-hero h1{font-size:clamp(48px,13.5vw,66px)}.w-lede{font-size:13px}.w-hero-facts{grid-template-columns:1fr 1fr;gap:18px}.w-hero-facts div:last-child{grid-column:1/-1}.w-hero-scene{min-height:540px;margin-top:10px}.w-orbit-system{width:310px;height:310px}.w-ring-two{inset:44px}.w-ring-three{inset:92px}.w-core{inset:115px}.w-float-main{width:225px;right:0;top:50px}.w-float-stock{left:0;top:285px}.w-float-member{right:0;bottom:38px}.w-scene-caption{display:none}.w-scroll-cue{display:none}.w-signal-strip{grid-template-columns:1fr;gap:16px;padding:24px 20px}.w-signal-strip div{justify-content:flex-start;flex-wrap:wrap;gap:10px 14px}.w-signal-strip small{display:none}.w-intro,.w-platform,.w-founders,.w-trial,.w-story,.w-form-section{padding:82px 20px}.w-section-head h2,.w-story-head h2,.w-platform h2,.w-founders h2,.w-trial h2,.w-form-copy h2{font-size:43px}.w-bento{grid-template-columns:1fr;margin-top:48px}.w-bento-card,.w-bento-wide{grid-column:auto;min-height:430px;display:flex}.w-margin-ring{width:165px;height:165px}.w-margin-ring::before{width:118px;height:118px}.w-margin-ring span{font-size:31px}.w-story-head{margin-bottom:45px}.w-story-layout{gap:20px}.w-story-stage{min-height:520px}.w-stage-card{width:94%;min-height:290px;padding:24px}.w-stage-orbit{width:320px;height:190px}.w-stage-label{display:none}.w-story-step{min-height:68vh}.w-role-stack article{grid-template-columns:28px 1fr auto;gap:14px}.w-role-stack article p{grid-column:2/-1}.w-price-card{padding:30px 22px}.w-price strong{font-size:80px}.w-timeline{grid-template-columns:1fr}.w-timeline li,.w-timeline li+li{min-height:0;padding:28px 0 38px;border-right:0;border-bottom:1px solid rgba(255,255,255,.14)}.w-timeline li>i{margin:20px 0 28px}.w-form{padding:28px 20px}.w-form-grid{grid-template-columns:1fr}.w-form-head{align-items:start;flex-direction:column}.w-form-head>span{text-align:left}.w-footer{grid-template-columns:1fr;padding:40px 20px}.w-footer>small{grid-column:1}}
@media (max-width:760px){.w-signin{display:inline-flex;min-height:44px;align-items:center;font-size:10px}.w-button-small{min-height:44px}.w-hero{padding:105px 19px 60px}.w-lede{font-size:14px}.w-hero-scene{min-height:500px}.w-intro,.w-platform,.w-trial,.w-story,.w-form-section{padding:64px 20px}.w-bento{margin-top:38px}.w-bento-card,.w-bento-wide{min-height:360px}.w-story-head{margin-bottom:36px}.w-story-layout{gap:14px}.w-story-stage{min-height:450px}.w-stage-card{min-height:270px}.w-story-step{min-height:54vh}.w-timeline li,.w-timeline li+li{padding:24px 0 30px}.w-timeline li>i{margin:16px 0 22px}.w-form label{font-size:12px}.w-form input,.w-form select{font-size:16px}.w-consent{font-size:12px!important}.w-footer>small{font-size:10px}}

/* Public solution and search landing pages */
.w-solutions,.w-faq { padding: clamp(100px,12vw,160px) max(5vw,calc((100vw - 1240px)/2)); color: var(--w-ink); background: #edf1f3; }
.w-solution-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 12px; margin-top: 58px; }
.w-solution-card { position: relative; min-height: 330px; display: flex; flex-direction: column; padding: 28px; overflow: hidden; color: var(--w-ink); background: rgba(255,250,240,.7); border: 1px solid var(--w-line); border-radius: 12px; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.w-solution-card:nth-child(1),.w-solution-card:nth-child(2),.w-solution-card:nth-child(3) { grid-column: span 2; }
.w-solution-card:nth-child(4),.w-solution-card:nth-child(5) { grid-column: span 3; min-height: 300px; }
.w-solution-card::after { content: ""; position: absolute; right: -74px; bottom: -104px; width: 180px; height: 180px; border: 1px solid rgba(47,116,88,.18); border-radius: 50%; box-shadow: 0 0 0 34px rgba(47,116,88,.035); }
.w-solution-card:hover { z-index: 1; transform: translateY(-5px); border-color: rgba(47,107,109,.42); box-shadow: 0 24px 60px rgba(15,27,45,.1); }
.w-solution-card>span { color: var(--w-gold); font-family: var(--w-display); font-size: 12px; }
.w-solution-card small { margin-top: 36px; color: var(--w-green); font-size: 8px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.w-solution-card h3 { max-width: 390px; margin: 12px 0 0; font-family: var(--w-display); font-size: clamp(24px,2.3vw,34px); font-weight: 500; line-height: 1.05; letter-spacing: -.035em; }
.w-solution-card p { max-width: 460px; margin: 18px 0 30px; color: #64736c; font-size: 11px; line-height: 1.7; }
.w-solution-card b { position: relative; z-index: 1; margin-top: auto; color: var(--w-green); font-size: 9px; letter-spacing: .04em; }
.w-faq { background: var(--w-cream); }
.w-faq-list { max-width: 900px; margin: 55px 0 0 auto; border-top: 1px solid var(--w-line); }
.w-faq-list details { border-bottom: 1px solid var(--w-line); }
.w-faq-list summary { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 20px 2px; cursor: pointer; font-family: var(--w-display); font-size: clamp(19px,2.2vw,27px); list-style: none; }
.w-faq-list summary::-webkit-details-marker { display: none; }
.w-faq-list summary::after { content: "+"; color: var(--w-green); font-family: Arial,sans-serif; font-size: 20px; font-weight: 400; }
.w-faq-list details[open] summary::after { content: "−"; }
.w-faq-list details p { max-width: 720px; margin: -4px 0 26px; color: #5d6d65; font-size: 13px; line-height: 1.75; }

.solution-site { color: var(--w-cream); background: var(--w-forest); }
.solution-site .w-nav { position: sticky; }
.solution-main { overflow: hidden; }
.solution-hero { min-height: 760px; display: grid; grid-template-columns: minmax(0,.9fr) minmax(420px,1.1fr); gap: clamp(60px,9vw,130px); align-items: center; padding: clamp(90px,10vw,145px) max(5vw,calc((100vw - 1240px)/2)); background: radial-gradient(circle at 78% 35%,rgba(143,201,196,.14),transparent 30rem),var(--w-forest); }
.solution-hero-copy { position: relative; z-index: 2; }
.solution-hero h1 { max-width: 740px; margin: 24px 0 26px; font-family: var(--w-display); font-size: clamp(55px,7vw,96px); font-weight: 500; line-height: .94; letter-spacing: -.055em; }
.solution-hero h1 em { color: var(--w-mint); font-weight: inherit; }
.solution-hero-copy>p:not(.w-eyebrow) { max-width: 620px; margin: 0; color: rgba(255,250,240,.65); font-size: 15px; line-height: 1.75; }
.solution-hero-actions { display: flex; flex-wrap: wrap; gap: 15px; align-items: center; margin-top: 34px; }
.solution-scene { position: relative; min-height: 560px; display: grid; place-items: center; perspective: 1000px; }
.solution-orbit { position: absolute; width: min(85%,520px); aspect-ratio: 1; border: 1px solid rgba(143,201,196,.22); border-radius: 50%; box-shadow: 0 0 0 70px rgba(143,201,196,.025),0 0 0 140px rgba(143,201,196,.015); animation: w-spin 24s linear infinite; }
.solution-orbit::after { content: ""; position: absolute; top: 8%; left: 25%; width: 12px; height: 12px; background: var(--w-gold); border-radius: 50%; box-shadow: 0 0 25px var(--w-gold); }
.solution-demo { position: relative; z-index: 1; width: min(90%,480px); padding: 30px; color: var(--w-ink); background: rgba(255,250,240,.96); border: 1px solid rgba(255,255,255,.65); border-radius: 15px; box-shadow: 0 45px 110px rgba(0,0,0,.38); transform: rotateY(-7deg) rotateX(3deg); }
.solution-demo header { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--w-line); color: #67766e; font-size: 8px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.solution-demo header i { color: var(--w-green); font-style: normal; }
.solution-demo>strong { display: block; margin: 26px 0 4px; font-family: var(--w-display); font-size: clamp(34px,5vw,58px); font-weight: 500; letter-spacing: -.045em; }
.solution-demo>small { color: #697870; font-size: 9px; }
.solution-demo-list { display: grid; margin-top: 26px; }
.solution-demo-list p { display: grid; grid-template-columns: 8px 1fr auto; gap: 11px; align-items: center; margin: 0; padding: 14px 0; color: #5a6a62; border-bottom: 1px solid var(--w-line); font-size: 9px; }
.solution-demo-list i { width: 6px; height: 6px; background: var(--w-green); border-radius: 50%; }
.solution-demo-list b { color: var(--w-ink); }
.solution-proof { display: grid; grid-template-columns: repeat(3,1fr); color: var(--w-ink); background: var(--w-paper); }
.solution-proof div { min-height: 150px; display: grid; align-content: center; gap: 8px; padding: 30px max(5vw,calc((100vw - 1240px)/2)); border-right: 1px solid var(--w-line); }
.solution-proof div:first-child { padding-right: 35px; }
.solution-proof div:nth-child(2) { padding-inline: 35px; }
.solution-proof div:last-child { padding-left: 35px; border-right: 0; }
.solution-proof strong { font-family: var(--w-display); font-size: 22px; font-weight: 500; }
.solution-proof span { color: #6c7a73; font-size: 9px; line-height: 1.5; }
.solution-section { padding: clamp(95px,12vw,155px) max(5vw,calc((100vw - 1240px)/2)); color: var(--w-ink); background: var(--w-cream); }
.solution-section.alt { background: #e7ecef; }
.solution-section.dark { color: var(--w-cream); background: var(--w-ink); }
.solution-intro { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(60px,10vw,150px); align-items: start; }
.solution-intro h2 { max-width: 640px; margin: 0; font-family: var(--w-display); font-size: clamp(43px,6vw,75px); font-weight: 500; line-height: .98; letter-spacing: -.05em; }
.solution-intro-copy { max-width: 670px; }
.solution-intro-copy>p { margin: 0; color: #596a61; font-size: 14px; line-height: 1.8; }
.dark .solution-intro-copy>p { color: rgba(255,250,240,.62); }
.solution-feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 70px; }
.solution-feature { min-height: 285px; padding: 28px; background: rgba(255,250,240,.62); border: 1px solid var(--w-line); border-radius: 10px; }
.dark .solution-feature { background: rgba(255,255,255,.025); border-color: rgba(255,255,255,.1); }
.solution-feature>span { color: var(--w-gold); font-family: var(--w-display); font-size: 11px; }
.solution-feature h3 { margin: 45px 0 15px; font-family: var(--w-display); font-size: 27px; font-weight: 500; line-height: 1.08; }
.solution-feature p { margin: 0; color: #607068; font-size: 11px; line-height: 1.7; }
.dark .solution-feature p { color: rgba(255,250,240,.55); }
.solution-process { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 70px; border-top: 1px solid var(--w-line); }
.solution-process article { min-height: 260px; padding: 30px 35px 20px 0; border-right: 1px solid var(--w-line); }
.solution-process article+article { padding-left: 35px; }
.solution-process article:last-child { border-right: 0; }
.solution-process span { color: var(--w-gold); font-size: 9px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.solution-process h3 { margin: 50px 0 15px; font-family: var(--w-display); font-size: 28px; font-weight: 500; }
.solution-process p { margin: 0; color: #607068; font-size: 11px; line-height: 1.7; }
.solution-cta { display: grid; grid-template-columns: 1fr auto; gap: 50px; align-items: end; padding: clamp(80px,10vw,125px) max(5vw,calc((100vw - 1240px)/2)); color: var(--w-cream); background: var(--w-forest); }
.solution-cta h2 { max-width: 800px; margin: 15px 0 0; font-family: var(--w-display); font-size: clamp(44px,6vw,76px); font-weight: 500; line-height: .98; letter-spacing: -.05em; }
.solution-cta .w-button { min-width: 220px; }
@media (max-width:1000px){.w-solution-grid{grid-template-columns:repeat(2,1fr)}.w-solution-card:nth-child(n){grid-column:auto}.solution-hero{grid-template-columns:1fr;padding-top:120px}.solution-hero-copy{max-width:850px}.solution-scene{width:min(100%,720px);margin:0 auto}.solution-intro{grid-template-columns:1fr}.solution-feature-grid{grid-template-columns:1fr 1fr}.solution-cta{grid-template-columns:1fr;align-items:start}.solution-cta .w-button{width:max-content}}
@media (max-width:760px){.w-solutions,.w-faq{padding:64px 20px}.w-solution-grid{grid-template-columns:1fr;margin-top:38px}.w-solution-card:nth-child(n){min-height:300px}.w-faq-list{margin-top:38px}.w-faq-list summary{min-height:70px;font-size:21px}.solution-hero{min-height:auto;padding:105px 20px 60px}.solution-hero h1{font-size:clamp(49px,13vw,68px)}.solution-hero-copy>p:not(.w-eyebrow){font-size:14px}.solution-scene{min-height:460px}.solution-orbit{width:330px}.solution-demo{width:96%;padding:24px;transform:none}.solution-proof{grid-template-columns:1fr}.solution-proof div,.solution-proof div:first-child,.solution-proof div:nth-child(2),.solution-proof div:last-child{min-height:100px;padding:22px 20px;border-right:0;border-bottom:1px solid var(--w-line)}.solution-section{padding:72px 20px}.solution-intro{gap:28px}.solution-intro h2{font-size:43px}.solution-feature-grid{grid-template-columns:1fr;margin-top:42px}.solution-feature{min-height:240px}.solution-process{grid-template-columns:1fr;margin-top:42px}.solution-process article,.solution-process article+article{min-height:0;padding:28px 0;border-right:0;border-bottom:1px solid var(--w-line)}.solution-process h3{margin-top:28px}.solution-cta{padding:72px 20px}.solution-cta .w-button{width:100%}}

/* Public legal pages */
.legal-site { color: var(--w-ink); background: var(--w-cream); }
.legal-site .w-nav { position: sticky; }
.legal-main { max-width: 1180px; margin: 0 auto; padding: clamp(70px, 10vw, 130px) 24px 100px; }
.legal-hero { max-width: 850px; padding-bottom: 50px; border-bottom: 1px solid var(--w-line); }
.legal-hero h1 { max-width: 780px; margin: 18px 0 20px; font-family: var(--w-display); font-size: clamp(48px, 8vw, 86px); font-weight: 500; line-height: .98; letter-spacing: -.05em; }
.legal-hero > p:last-child { max-width: 720px; margin: 0; color: #56665f; font-size: 15px; line-height: 1.75; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 24px; color: #687870; font-size: 11px; font-weight: 700; }
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 720px); justify-content: space-between; gap: 70px; padding-top: 54px; }
.legal-toc { position: sticky; top: 100px; align-self: start; display: grid; gap: 3px; }
.legal-toc strong { margin-bottom: 10px; color: #687870; font-size: 9px; letter-spacing: .15em; text-transform: uppercase; }
.legal-toc a { padding: 8px 10px; margin-left: -10px; color: #52635b; border-radius: 5px; font-size: 12px; font-weight: 700; }
.legal-toc a:hover { color: var(--w-green); background: rgba(47,116,88,.08); }
.legal-copy { min-width: 0; }
.legal-copy section { padding: 0 0 38px; scroll-margin-top: 110px; }
.legal-copy section + section { padding-top: 38px; border-top: 1px solid var(--w-line); }
.legal-copy h2 { margin: 0 0 16px; font-family: var(--w-display); font-size: clamp(25px, 3vw, 34px); font-weight: 550; letter-spacing: -.025em; }
.legal-copy h3 { margin: 24px 0 10px; font-size: 14px; }
.legal-copy p, .legal-copy li { color: #4f6058; font-size: 14px; line-height: 1.8; }
.legal-copy ul, .legal-copy ol { display: grid; gap: 8px; padding-left: 20px; }
.legal-copy a { color: var(--w-green); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.legal-callout { margin: 8px 0 30px; padding: 20px 22px; color: #33473e; background: rgba(47,116,88,.08); border: 1px solid rgba(47,116,88,.2); border-radius: 6px; font-size: 13px; line-height: 1.7; }
.legal-footer { grid-template-columns: 1fr auto; }
.legal-footer div { flex-wrap: wrap; justify-content: flex-end; }
@media (max-width:760px){.legal-main{padding:62px 20px 70px}.legal-hero{padding-bottom:36px}.legal-hero h1{font-size:49px}.legal-layout{grid-template-columns:1fr;gap:34px;padding-top:36px}.legal-toc{position:static;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}.legal-toc strong{grid-column:1/-1}.legal-toc a{min-height:44px;display:flex;align-items:center}.legal-copy section{scroll-margin-top:80px}.legal-footer{grid-template-columns:1fr}.legal-footer div{justify-content:flex-start}}
@media (prefers-reduced-motion:reduce){.world-site *{scroll-behavior:auto!important}.w-ring,.w-stage-orbit,.w-float-card,.w-scroll-cue i::after{animation:none!important}.reveal{opacity:1;transform:none;transition:none}.w-story-step{opacity:1;transform:none}.w-orbit-system,.w-hero-scene{transition:none}}

/* Modal */
.modalwrap { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(12,30,24,.52); backdrop-filter: blur(4px); }
.modalcard { width: min(100%, 400px); max-height: calc(100vh - 40px); overflow: auto; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 28px 80px rgba(12,30,24,.25); }
.modalcard h3 { margin: 0 0 14px; color: var(--heading); font-size: 18px; letter-spacing: -.02em; }
.modalcard label { color: var(--ink); font-size: 12px; font-weight: 650; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* Platform sales operating system */
.admin-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-bottom: 18px; }
.sales-target-hero { display: grid; grid-template-columns: minmax(0, .8fr) minmax(360px, 1.2fr); align-items: center; gap: clamp(24px, 5vw, 72px); margin-bottom: 26px; padding: clamp(22px, 4vw, 38px); color: var(--white); background: linear-gradient(135deg, var(--forest-950), var(--forest-800)); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.sales-target-hero .eyebrow { color: var(--sage-300); }
.sales-target-hero h2 { margin: 3px 0 8px; color: var(--white); font-size: clamp(25px, 3vw, 39px); line-height: 1.06; letter-spacing: -.04em; }
.sales-target-hero p:not(.eyebrow), .sales-target-hero small { color: rgba(255,255,255,.72); }
.sales-target-hero p:not(.eyebrow) { margin: 0; font-size: 13px; }
.target-progress-wrap { min-width: 0; }
.target-progress-label { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 9px; font-size: 13px; font-weight: 780; }
.target-progress { height: 17px; overflow: hidden; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; }
.target-progress span { width: 0; height: 100%; display: block; background: linear-gradient(90deg, var(--sage-300), var(--amber)); border-radius: inherit; transition: width 300ms ease; }
.target-progress-wrap small { display: block; margin-top: 10px; font-size: 11px; line-height: 1.5; }
.sales-scorecard { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 26px; }
.sales-metric { min-width: 0; padding: 16px; background: var(--surface-card); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-xs); }
.sales-metric small { display: block; min-height: 28px; color: var(--muted); font-size: 10px; font-weight: 780; line-height: 1.35; letter-spacing: .04em; text-transform: uppercase; }
.sales-metric strong { display: block; margin-top: 7px; color: var(--heading); font-size: clamp(20px, 2.2vw, 29px); line-height: 1; letter-spacing: -.035em; }
.sales-metric span { display: block; margin-top: 7px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.sales-metric.is-danger { border-color: #e6b0a8; background: var(--red-soft); }
.sales-metric.is-warning { border-color: var(--amber); }
.sales-review-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr); gap: 16px; }
.weekly-targets, .monthly-targets { display: grid; gap: 7px; }
.weekly-target { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.weekly-target:last-child { border-bottom: 0; }
.weekly-target span { color: var(--ink); font-size: 12px; }
.weekly-target strong { color: var(--heading); font-size: 13px; }
.weekly-target.is-met strong { color: var(--accent-strong); }
.monthly-target { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.monthly-target.is-current { border-color: var(--accent); background: var(--accent-soft); }
.monthly-target > strong { color: var(--heading); font-size: 12px; }
.monthly-target div { min-width: 0; }
.monthly-target div strong { display: block; color: var(--ink); font-size: 12px; }
.monthly-target div small { color: var(--muted); font-size: 10px; }
.monthly-target > span { color: var(--muted); font-size: 10px; font-weight: 750; text-align: right; }
.priority-panel { border-top: 3px solid var(--red); }
.priority-list { display: grid; gap: 8px; }
.priority-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 11px 12px; background: var(--surface-card-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.priority-item strong { display: block; color: var(--heading); font-size: 12px; }
.priority-item small { display: block; margin-top: 2px; color: var(--red); font-size: 11px; }
.priority-item > span { color: var(--muted); font-size: 11px; white-space: nowrap; }
.pipeline-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 8px 14px; margin-bottom: 14px; padding: 12px; background: var(--surface-card-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.pipeline-filters > label { display: flex; align-items: center; gap: 7px; color: var(--ink); font-size: 11px; font-weight: 700; }
.pipeline-filters > label:has(select) { display: grid; gap: 4px; }
.pipeline-filters select { min-width: 150px; min-height: 38px; margin: 0; padding-block: 7px; font-size: 12px; }
.pipeline-filters input[type="checkbox"] { width: 17px; min-height: 17px; margin: 0; }
.sales-table-shell { width: 100%; overflow-x: auto; }
.sales-pipeline-table { min-width: 1540px; }
.sales-pipeline-table td { max-width: 190px; vertical-align: top; white-space: normal; }
.sales-pipeline-table td:nth-child(10) { min-width: 180px; }
.sales-pipeline-table .overdue-date { color: var(--red); font-weight: 800; }
.sales-pipeline-table .actcol { min-width: 150px; }
.stage-pill { display: inline-flex; align-items: center; padding: 5px 8px; color: var(--accent-strong); background: var(--accent-soft); border-radius: 999px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.stage-pill.is-lost { color: var(--red); background: var(--red-soft); }
.stage-pill.is-won { color: var(--accent-strong); background: var(--accent-soft-strong); }
.admin-modal { width: min(94vw, 780px); }
.admin-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.admin-form-grid .full { grid-column: 1 / -1; }
.admin-form-grid textarea { min-height: 88px; resize: vertical; }
.target-editor-section { margin-top:18px;padding-top:15px;border-top:1px solid var(--line) }
.target-editor-section h4 { margin:0 0 10px;color:var(--heading);font-size:14px }
.target-editor-row { display:grid;grid-template-columns:minmax(150px,1.4fr) minmax(110px,1fr) minmax(110px,1fr);align-items:end;gap:10px;padding:8px 0;border-bottom:1px solid var(--line) }
.target-editor-row:last-child { border-bottom:0 }
.target-editor-row>strong { align-self:center;color:var(--ink);font-size:12px }
.target-editor-row>div { margin-bottom:0!important }
.admin-check { min-height: 44px; display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.admin-check input { width: 18px; min-height: 18px; margin: 0; }
.activity-history { max-height: 250px; display: grid; gap: 8px; overflow-y: auto; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.activity-history article { padding: 10px 12px; background: var(--surface-card-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.activity-history strong { color: var(--heading); font-size: 11px; }
.activity-history p { margin: 3px 0; color: var(--ink); font-size: 12px; }
.activity-history small { color: var(--muted); font-size: 10px; }
.empty-compact { padding: 18px; color: var(--muted); background: var(--surface-card-soft); border: 1px dashed var(--line); border-radius: var(--radius-sm); font-size: 12px; text-align: center; }

/* Delivery operations */
.ops-page-shell { max-width: 1440px; padding-top: 42px; }
.ops-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 24px; }
.ops-page-head h1,
.delivery-menu-head h1 { margin: 0; color: var(--heading); font-size: clamp(30px, 4vw, 46px); line-height: 1.05; letter-spacing: -.04em; }
.ops-page-head > div > p:last-child,
.delivery-menu-head > p:last-child { max-width: 590px; margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.live-status { min-width: max-content; display: inline-flex; align-items: center; gap: 7px; margin: 0 0 4px; padding: 8px 12px; color: var(--accent-strong); background: var(--accent-soft); border: 1px solid var(--accent-border); border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.section-head h2 { margin: 0; color: var(--heading); font-size: 16px; letter-spacing: -.02em; }
.section-head p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.section-head.compact { margin-bottom: 18px; }
.roster-panel { padding: 16px 18px; }
.roster-panel .section-head { margin-bottom: 8px; }
#roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 320px)); justify-content: start; gap: 6px 18px; }
#roster .kv { min-height: 40px; padding: 6px 0; }
#roster .kv > span:last-child { display: inline-flex; align-items: center; gap: 5px; }
.kanban-board { display: grid; grid-template-columns: repeat(6, minmax(210px, 1fr)); align-items: start; gap: 12px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x proximity; scrollbar-color: var(--accent-border) transparent; scrollbar-gutter: stable; overscroll-behavior-inline: contain; }
.kanban-board::-webkit-scrollbar { height: 9px; }
.kanban-board::-webkit-scrollbar-track { background: var(--surface-soft); border-radius: 999px; }
.kanban-board::-webkit-scrollbar-thumb { background: var(--accent-border); border: 2px solid var(--surface-soft); border-radius: 999px; }
.kanban-board > .panel { min-height: 220px; margin: 0; padding: 14px; background: var(--surface-card-soft); scroll-snap-align: start; }
.kanban-board > .panel > h3 { position: static; margin: -2px -2px 12px !important; padding: 4px 2px 10px; background: var(--surface-card-soft); border-bottom: 1px solid var(--line); }
.kanban-board > .panel > p.muted { min-height: 128px; display: grid; place-items: center; margin: 0; padding: 16px; color: var(--muted); background: linear-gradient(145deg, transparent, var(--accent-soft)); border: 1px dashed var(--line); border-radius: var(--radius-sm); font-size: 0 !important; }
.kanban-board > .panel > p.muted::before { content: "No orders"; font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.kanban-board .card { gap: 7px; margin-bottom: 10px; padding: 13px; background: var(--surface); }
.kanban-board .card .kv { align-items: flex-start; padding: 0 0 9px; }
.kanban-board .card .mini { flex: 1 1 auto; min-height: 44px; margin-left: 0; } /* was 34px (2026-08-16 a11y audit) */

/* Map-first dispatch workspace */
.operator-app-shell { min-height: 100vh; display: grid; grid-template-columns: 246px minmax(0, 1fr); }
.operator-workspace { position: relative; min-width: 0; }
.operator-rail #operatorNavSearch { min-height: 42px; margin: 0 0 12px; padding-inline: 11px; font-size: 12px; }
.operator-rail [hidden] { display: none !important; }
.dispatch-app-shell { min-height: 100vh; display: grid; grid-template-columns: 246px minmax(0, 1fr); }
.dispatch-workspace { position: relative; min-width: 0; }
.dispatch-rail { position: sticky; top: 0; z-index: 35; height: 100vh; min-width: 0; display: flex; flex-direction: column; padding: 0 14px 18px; color: var(--ink); background: var(--surface); border-right: 1px solid var(--line); overflow-y: auto; }
.dispatch-rail-brand { min-height: 58px; display: grid; align-content: center; gap: 1px; margin: 0 -14px 12px; padding: 9px 14px; color: var(--cream-50); background: var(--forest-950); }
.dispatch-rail-brand span { font-size: 14px; font-weight: 820; letter-spacing: -.02em; }
.dispatch-rail-brand small { color: var(--sage-300); font-size: 9px; font-weight: 780; letter-spacing: .12em; text-transform: uppercase; }
.dispatch-search-label { margin: 0 0 5px; color: var(--muted); font-size: 9px; font-weight: 820; letter-spacing: .08em; text-transform: uppercase; }
.dispatch-rail #dispatchSearch { min-height: 42px; margin: 0 0 12px; padding-inline: 11px; font-size: 12px; }
.dispatch-rail-nav { display: grid; gap: 3px; }
.dispatch-rail-group { border-bottom: 1px solid var(--line); }
.dispatch-rail-group summary { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); cursor: pointer; list-style: none; font-size: 9px; font-weight: 820; letter-spacing: .09em; text-transform: uppercase; }
.dispatch-rail-group summary::-webkit-details-marker { display: none; }
.dispatch-rail-group summary::after { content: "+"; color: var(--table-label); font-size: 14px; font-weight: 500; }
.dispatch-rail-group[open] summary::after { content: "−"; }
.dispatch-rail-group > div { display: grid; gap: 2px; padding: 0 0 9px; }
.dispatch-rail-group a { position: relative; min-height: 34px; display: flex; align-items: center; padding: 7px 9px 7px 25px; color: var(--ink); border-radius: 7px; font-size: 12px; font-weight: 650; }
.dispatch-rail-group a::before { content: ""; position: absolute; left: 10px; width: 6px; height: 6px; border: 1px solid var(--accent-border); border-radius: 50%; }
.dispatch-rail-group a:hover { color: var(--heading); background: var(--accent-soft); }
.dispatch-rail-group a[aria-current="page"] { color: var(--heading); background: var(--forest-950); box-shadow: inset 3px 0 var(--amber); }
.dispatch-rail-group a[aria-current="page"]::before { background: var(--amber); border-color: var(--amber); }
.dispatch-rail-footer { display: grid; gap: 7px; margin-top: auto; padding-top: 16px; }
.dispatch-rail-footer span { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.dispatch-rail-footer button { min-height: 38px; color: var(--ink); background: var(--surface-soft); border: 1px solid var(--line); border-radius: 8px; font-size: 11px; font-weight: 750; }
.dispatch-main { width: 100%; max-width: 1500px; margin: 0 auto; padding: 34px clamp(22px, 3vw, 46px) 70px; }
.dispatch-page-head { align-items: center; margin-bottom: 22px; padding-right: 132px; }
.dispatch-page-head h1 { font-size: clamp(28px, 3vw, 38px); }
.dispatch-head-actions { min-width: min(100%, 260px); display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.dispatch-head-actions input { width: min(260px, 34vw); min-height: 42px; }
.dispatch-map-panel { overflow: hidden; margin-bottom: 32px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-xs); }
.dispatch-map-toolbar { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.dispatch-map-toolbar .eyebrow { margin-bottom: 3px; }
.dispatch-map-toolbar h2 { margin: 0; color: var(--heading); font-size: 16px; letter-spacing: -.02em; }
.dispatch-map-stats { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.dispatch-map-stats span { min-height: 38px; display: inline-flex; align-items: baseline; gap: 5px; padding: 9px 11px; color: var(--muted); background: var(--surface-soft); border: 1px solid var(--line); border-radius: 8px; font-size: 10px; white-space: nowrap; }
.dispatch-map-stats strong { color: var(--heading); font-size: 14px; }
.dispatch-map-frame { position: relative; min-height: 360px; background: linear-gradient(145deg, var(--surface-soft), var(--accent-soft)); }
.dispatch-map-frame .dispatch-map { height: 360px; margin: 0; border: 0; border-radius: 0; }
.dispatch-map-empty { position: absolute; inset: 0; display: grid; place-content: center; gap: 5px; padding: 30px; text-align: center; }
.dispatch-map-empty strong { color: var(--heading); font-size: 15px; }
.dispatch-map-empty span { max-width: 430px; color: var(--muted); font-size: 12px; }
.dispatch-map-foot { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 8px 14px; color: var(--muted); border-top: 1px solid var(--line); font-size: 10px; }
.dispatch-map-legend { display: flex; align-items: center; gap: 13px; }
.dispatch-map-legend span { display: inline-flex; align-items: center; gap: 5px; }
.dispatch-map-legend i { width: 9px; height: 9px; display: inline-block; background: var(--accent); border-radius: 50%; }
.dispatch-map-legend .driver-busy { background: #2f5fa3; }
.dispatch-map-legend .order-ready { background: var(--accent); border-radius: 1px; transform: rotate(45deg); }
.dispatch-roster-details { border-top: 1px solid var(--line); }
.dispatch-roster-details summary { min-height: 42px; display: flex; align-items: center; padding: 9px 14px; color: var(--ink); cursor: pointer; font-size: 11px; font-weight: 750; }
.dispatch-roster-details #roster { padding: 0 14px 12px; }
.dispatch-queues { display: grid; gap: 32px; }
.dispatch-queue-section { min-width: 0; }
.dispatch-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 9px; }
.dispatch-section-head .eyebrow { margin-bottom: 2px; }
.dispatch-section-head h2 { margin: 0; color: var(--heading); font-size: 15px; letter-spacing: -.02em; text-transform: uppercase; }
.dispatch-section-head h2 span { color: var(--muted); }
.dispatch-section-head > a { font-size: 11px; font-weight: 750; }
.dispatch-table-shell { width: 100%; overflow-x: auto; background: var(--surface); border: 1px solid var(--line); }
.dispatch-table { min-width: 940px; border: 0; border-radius: 0; box-shadow: none; }
.dispatch-table th { padding-block: 10px; font-size: 9px; }
.dispatch-table td { max-width: 260px; padding-block: 10px; font-size: 12px; white-space: normal; overflow-wrap: anywhere; }
.dispatch-table tr.card { margin: 0; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.dispatch-table td > strong { color: var(--heading); font-size: 12px; }
/* Warehouse section tabs. `view-off` is separate from `hidden` on purpose: a section can be off
   because its tab is not selected, or because its rollout is disabled, and those are independent.
   Using one class for both is how a section ends up hidden for one reason and shown for the
   other. !important because several of these sections carry their own display rules. */
.view-off { display: none !important; }
.warehouse-views { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.warehouse-view-tab {
  padding: 8px 15px; min-height: 40px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--muted); font: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer;
}
.warehouse-view-tab:hover { color: var(--heading); border-color: var(--accent); }
.warehouse-view-tab.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
/* The selected tab is not distinguished by colour alone: aria-current marks it for assistive
   tech, and the weight and border change too, so it survives a monochrome screen. */
.warehouse-view-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.dispatch-cell-sub { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
/* Payment state sits under the order total, so money and whether it arrived read as one fact.
   Colour is not the only signal -- the words differ too ("Paid" / "Awaiting payment" /
   "Collect on delivery") -- because a red-green distinction alone fails the dispatchers most
   likely to be reading this board at speed on a phone. */
.dispatch-cell-sub.pay-bad { color: var(--red); font-weight: 600; }
.dispatch-cell-sub.pay-ok { color: var(--accent); font-weight: 600; }
.dispatch-cell-sub.pay-muted { color: var(--muted); }
.dispatch-driver-select { min-width: 170px; min-height: 38px; padding: 7px 28px 7px 9px; font-size: 11px; }
.dispatch-row-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
/* change-list item 8, Phase 3: the row a Telegram deep link (dispatch.html?orderId=X) scrolled to.
   js/dispatch.js re-applies this on every render() within its deep-link window, with no fixed
   removal timer -- it fades out naturally the next time the board re-renders after that window
   closes, rather than on a clock that starts before anyone has necessarily looked at the screen. */
.dispatch-row-highlight td { background: var(--accent-soft); transition: background-color 3s ease; }
.dispatch-table .mini { min-height: 38px; margin: 0; padding: 8px 10px; font-size: 10px; white-space: nowrap; }
.dispatch-empty-row td { height: 84px; color: var(--muted); text-align: center; }
.dispatch-secondary-queue { padding-bottom: 20px; }

@media (min-width: 1181px) {
  .operator-workspace > .topbar { min-height: 58px; justify-content: flex-end; padding-block: 7px; }
  .operator-workspace > .topbar .brand,
  .operator-workspace > .topbar .actions > a,
  .operator-workspace > .topbar .actions > #who,
  .operator-workspace > .topbar .actions > #logout,
  .operator-workspace > .topbar .navdrawer { display: none; }
  .dispatch-mobile-topbar { position: absolute; top: 17px; right: clamp(22px, 3vw, 46px); z-index: 40; min-height: 42px; padding: 0; background: transparent; border: 0; box-shadow: none; backdrop-filter: none; }
  .dispatch-mobile-topbar .brand,
  .dispatch-mobile-topbar .actions > a,
  .dispatch-mobile-topbar .actions > #who,
  .dispatch-mobile-topbar .actions > #logout,
  .dispatch-mobile-topbar .navdrawer { display: none; }
}

@media (max-width: 1180px) {
  .operator-app-shell { display: block; }
  .operator-rail { display: none; }
  .dispatch-app-shell { display: block; }
  .dispatch-rail { display: none; }
  .dispatch-main { padding-top: 30px; }
  .dispatch-page-head { padding-right: 0; }
}

@media (min-width: 721px) {
  .dispatch-table tr.card { display: table-row; }
}

@media (max-width: 820px) {
  .dispatch-map-toolbar { align-items: flex-start; flex-direction: column; }
  .dispatch-map-stats { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .dispatch-map-stats span { flex: 1 1 130px; }
}

/* Warehouse inventory foundation */
.warehouse-shell { display: grid; gap: 24px; }
.warehouse-shell .ops-page-head { margin-bottom: 0; }
.warehouse-setup { margin: 0; padding: 20px; }
.warehouse-setup-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.warehouse-setup-grid label { color: var(--ink); font-size: 11px; font-weight: 750; }
.warehouse-setup-grid input { margin: 5px 0 0; }
.warehouse-setup-actions { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.warehouse-phase-note { margin: 14px 0 0; padding: 11px 12px; color: var(--muted); background: var(--surface-card-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 12px; line-height: 1.5; }
.warehouse-row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.warehouse-pick-check { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.warehouse-pick-check:last-child { border-bottom: 0; }
.warehouse-page .live-status.is-warning { color: #835614; background: var(--amber-100); border-color: #e2c68e; }
.warehouse-page .stock-table td.pos,
.warehouse-page .stock-table td.neg { font-weight: 750; }

/* Driver workspace */
.driver-shell { max-width: 1160px; }
.presence-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 320px); align-items: center; gap: 22px; margin-bottom: 28px; padding: 18px 20px; background: var(--accent-soft); border: 1px solid var(--accent-border); border-radius: var(--radius-md); }
.presence-panel strong { color: var(--heading); font-size: 15px; }
.presence-panel p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
#presenceToggle { min-height: 48px; margin: 0; }
.driver-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 22px; align-items: start; }
.driver-section { min-width: 0; }
#deliveries > .panel { padding: 20px; }
#deliveries > .panel .kv { padding-top: 0; }
#deliveries > .panel .mini { min-height: 44px; margin-left: 0; padding-inline: 14px; font-size: 12px; } /* was 42px (2026-08-16 a11y audit) */
#cashupPanel { position: sticky; top: 92px; padding: 20px; }
#cashupPanel .btn { min-height: 44px; }

/* Member delivery portal */
.portal-auth { position: relative; min-height: calc(100vh - 72px); isolation: isolate; background: radial-gradient(circle at 50% 10%, var(--accent-soft-strong), transparent 32rem), var(--bg); }
.portal-auth::before { content: ""; position: absolute; z-index: -1; width: min(72vw, 780px); height: min(72vw, 780px); border: 1px solid var(--accent-border); border-radius: 50%; opacity: .28; box-shadow: 0 0 0 70px var(--accent-soft), 0 0 0 140px rgba(121,169,143,.05); }
.portal-auth-card { padding: 38px; text-align: left; }
.portal-auth-card .eyebrow { margin-bottom: 12px; }
.portal-auth-card > p { margin-bottom: 26px; }
.auth-switch { margin: 16px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.auth-switch a { font-weight: 750; }
.consent-control { display: flex; align-items: flex-start; gap: 10px; margin: 10px 0 16px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.consent-control input { width: 18px; min-width: 18px; height: 18px; min-height: 18px; margin: 1px 0 0; }
.portal-page #appView { grid-template-columns: minmax(0, 1fr) 390px; }
.portal-page .pos-main { max-width: 980px; width: 100%; padding-top: 42px; }
.delivery-menu-head { margin-bottom: 18px; }
.delivery-category-nav { position: sticky; top: 72px; z-index: 15; display: flex; gap: 8px; margin: 0 0 22px; padding: 10px 0; overflow-x: auto; background: linear-gradient(90deg, var(--bg) 86%, transparent); scrollbar-width: none; }
.delivery-category-nav::-webkit-scrollbar { display: none; }
.delivery-category-nav .chip { min-height: 40px; margin: 0; white-space: nowrap; }
.delivery-specials { position: relative; display: grid; grid-template-columns: minmax(210px, .72fr) minmax(0, 1.28fr); gap: 24px; overflow: hidden; margin: 0 0 30px; padding: clamp(24px, 4vw, 34px); color: var(--cream-50); background: linear-gradient(135deg, var(--forest-950), var(--forest-800)); border: 1px solid rgba(224,154,62,.5); border-radius: var(--radius-lg); box-shadow: 0 24px 52px rgba(8,17,31,.2); }
.delivery-specials::after { content: ""; position: absolute; width: 260px; height: 260px; right: -130px; top: -150px; border: 1px solid rgba(224,154,62,.25); border-radius: 50%; box-shadow: 0 0 0 48px rgba(224,154,62,.055), 0 0 0 96px rgba(224,154,62,.025); pointer-events: none; }
.delivery-specials-copy { position: relative; z-index: 1; align-self: center; }
.delivery-specials-kicker { margin: 0 0 10px; color: #f1bb6e; font-size: 10px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.delivery-specials h2 { margin: 0; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: clamp(30px, 4vw, 46px); font-weight: 500; line-height: 1; letter-spacing: -.035em; }
.delivery-specials-copy > p:last-child { max-width: 300px; margin: 14px 0 0; color: rgba(248,250,252,.7); font-size: 13px; line-height: 1.55; }
.delivery-specials-products { position: relative; z-index: 1; display: grid; gap: 9px; }
.delivery-specials .delivery-product-card { --heading: #08111f; --ink: #172334; --muted: #566575; --accent: #2f6b6d; --accent-border: #b5d6d3; --surface: #fff; min-height: 86px; color: var(--ink); background: rgba(255,255,255,.96); border-color: rgba(255,255,255,.4); box-shadow: none; }
.delivery-specials .delivery-product-card:hover { border-color: #f1bb6e; }
.delivery-category { scroll-margin-top: 138px; margin: 0 0 30px; }
.delivery-category-head { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-bottom: 12px; padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.delivery-category-head h2 { margin: 0; color: var(--heading); font-size: 20px; letter-spacing: -.025em; }
.delivery-category-head span { color: var(--muted); font-size: 11px; font-weight: 720; }
.delivery-product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.delivery-product-card { min-width: 0; min-height: 112px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 17px; background: var(--surface-card); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-xs); transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease); }
.delivery-product-card:hover { border-color: var(--accent-border); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.delivery-product-card.sold-out { background: var(--surface-soft); box-shadow: none; }
/* Product photos in the delivery portal (2026-09-06) -- products already carry imageUrl
   (change-list item 7, product photos), portal.js just never rendered it. Mirrors shop.js's
   imageOrMonogram() fallback shape so a product with no photo still gets a consistent tile
   instead of a blank gap. */
.delivery-product-media { width: 56px; height: 56px; flex-shrink: 0; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg,#d8decf,#ebe4d5); border-radius: var(--radius-sm); }
.delivery-product-media img { width: 100%; height: 100%; object-fit: cover; }
.delivery-product-monogram { color: rgba(25,76,58,.62); font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-style: italic; }
.delivery-specials .delivery-product-media { width: 44px; height: 44px; }
.delivery-specials .delivery-product-monogram { font-size: 17px; }
.delivery-product-copy { min-width: 0; }
.delivery-product-copy h3 { margin: 0; overflow-wrap: anywhere; color: var(--heading); font-size: 14px; line-height: 1.25; }
.delivery-product-copy p { margin: 6px 0 0; color: var(--muted); font-size: 10px; font-weight: 720; letter-spacing: .03em; text-transform: uppercase; }
.delivery-product-copy > small { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.delivery-discount-badge, .delivery-bundle-label { width: fit-content; display: inline-flex; margin-top: 7px; padding: 4px 7px; color: #71480e; background: var(--amber-100); border: 1px solid rgba(224,154,62,.36); border-radius: 999px; font-size: 8px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.delivery-bundle-label { margin: 0 0 7px; color: var(--accent-strong); background: var(--accent-soft); border-color: var(--accent-border); }
.delivery-sold-out { display: inline-flex; margin-top: 7px; color: var(--red); font-size: 9px; font-weight: 820; letter-spacing: .07em; text-transform: uppercase; }
.delivery-product-action { display: grid; justify-items: end; gap: 7px; }
.delivery-product-action > strong { color: var(--heading); font-size: 14px; white-space: nowrap; }
.delivery-price-stack { display: grid; justify-items: end; gap: 1px; white-space: nowrap; }
.delivery-price-stack del, .cart-item del { color: var(--muted); font-size: 10px; }
.delivery-price-stack strong { color: var(--heading); font-size: 14px; }

/* Delivery progress fills the club's own logo instead of bars (change-list item 2, 2026-09-03)
   -- js/portal.js's orderTimeline(). Only used when this venue has an active logo (customer
   branding on, a logo set); everything else keeps the plain stage bars this replaces, which is
   also what a still-loading logo image falls back to look like (the base layer is see-through
   without an image behind it, same visual weight as an unfilled bar).
   Two identical <img>s stacked on top of each other: the base sits at low opacity as the
   "unfilled" reading, the fill is the same image at full opacity, clipped from the top so only
   its bottom portion shows -- clip-path over a real mask-image needs no vendor prefix and no
   fallback path of its own. The percentage transition is a plain CSS transition, so it already
   obeys this file's existing blanket `prefers-reduced-motion: reduce` rule (transition-duration:
   .01ms) with no separate rule needed here. */
.delivery-logo-progress { position: relative; width: 56px; height: 56px; flex: none; }
.delivery-logo-progress img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.delivery-logo-progress .logo-progress-base { opacity: .22; }
.delivery-logo-progress .logo-progress-fill { clip-path: inset(var(--logo-fill-inset, 100%) 0 0 0); transition: clip-path 500ms ease; }
.delivery-timeline-row { display: flex; align-items: center; gap: 12px; margin: 6px 0; }
.delivery-timeline-row .delivery-timeline-label { min-width: 0; color: var(--muted); font-size: 11px; font-weight: 720; }
.delivery-bundle-card { border-color: rgba(224,154,62,.48) !important; }
.portal-page #menu .mini, .delivery-specials .mini { min-width: 60px; min-height: 40px; margin: 0; }
.order-history-head { margin: 34px 0 14px; }
.order-history-head #notifyToggle { min-height: 38px; margin-left: 0; }
#myOrders { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
#myOrders > .panel { margin: 0 !important; padding: 14px !important; }
.delivery-sidebar { position: sticky; top: 72px; align-self: start; min-height: calc(100vh - 72px); max-height: calc(100vh - 72px); overflow-y: auto; }
.delivery-sidebar label { display: block; margin: 0 0 6px; color: var(--ink); font-size: 11px; font-weight: 750; }
.delivery-sidebar input { margin-bottom: 14px; }
.delivery-sidebar #zonePicker label { margin-top: 2px !important; }
.cart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin: 12px 0 4px; padding-top: 16px; border-top: 1px solid var(--line); }
.cart-head h2 { margin: 0; color: var(--heading); font-size: 16px; }
.cart-head span,
.payment-note { color: var(--muted); font-size: 11px; }
.zone-note { min-height: 18px; margin: 2px 0; }
.cart-savings { margin: 5px 0 8px; color: #8a5812; font-size: 12px; font-weight: 780; }
html[data-theme="dark"] .cart-savings { color: #f1bb6e; }
.promo-code-box { margin: 12px 0 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.promo-code-box > label { display: block; margin-bottom: 5px; font-size: 12px; font-weight: 750; color: var(--heading); }
.promo-code-row { display: flex; gap: 8px; align-items: center; }
.promo-code-row input { min-width: 0; flex: 1; text-transform: uppercase; }
.promo-code-box p { min-height: 16px; margin: 5px 0 0; font-size: 12px; }
/* var(--accent), not var(--green): the latter is declared nowhere in this stylesheet, so the
   message was rendering in inherited body colour. --accent is the token this file already uses
   for a positive value (.pos) and is defined for both themes. */
.promo-code-success { color: var(--accent); font-size: 12px; font-weight: 700; }
.payment-note { margin: 4px 0 12px; }

/* Manager configuration and preview for customer-facing delivery specials. */
.menu-specials-editor { margin-bottom: 24px; padding: clamp(20px, 3vw, 28px); }
.menu-specials-editor-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 26px; margin-bottom: 22px; }
.menu-specials-editor-head h2 { margin: 2px 0 7px; color: var(--heading); font-size: 22px; letter-spacing: -.025em; }
.menu-specials-editor-head > div > p:last-child { max-width: 620px; margin: 0; color: var(--muted); font-size: 13px; }
.menu-specials-toggle { min-width: max-content; display: inline-flex; align-items: center; gap: 9px; padding: 10px 13px; color: var(--accent-strong); background: var(--accent-soft); border: 1px solid var(--accent-border); border-radius: 999px; font-size: 12px; font-weight: 780; }
.menu-specials-toggle input { width: 18px; height: 18px; margin: 0; }
.menu-specials-fields { display: grid; grid-template-columns: minmax(220px, .75fr) minmax(280px, 1.25fr); gap: 16px; }
.menu-specials-fields label { color: var(--ink); font-size: 12px; font-weight: 740; }
.menu-specials-fields input, .menu-specials-fields textarea { margin: 7px 0 0; }
.menu-specials-fields textarea { min-height: 92px; resize: vertical; }
.menu-specials-picker { margin: 16px 0 0; padding: 0; border: 0; }
.menu-specials-picker legend { width: 100%; display: flex; justify-content: space-between; gap: 16px; margin-bottom: 10px; color: var(--heading); font-size: 12px; font-weight: 780; }
.menu-specials-picker legend span { color: var(--muted); font-size: 10px; font-weight: 700; }
.menu-specials-product-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; }
.menu-specials-product { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(105px, .45fr); gap: 12px; align-items: center; padding: 11px 12px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.menu-specials-product:has(input:checked) { background: var(--amber-100); border-color: rgba(224,154,62,.65); }
html[data-theme="dark"] .menu-specials-product:has(input:checked) { background: rgba(224,154,62,.16); }
.product-editor-modal { width: min(760px, calc(100vw - 32px)); }
.product-editor-modal #mBody { max-height: min(68vh, 680px); overflow-y: auto; padding-right: 5px; }
.product-shop-fields { display: grid; gap: 10px; margin-top: 18px; padding: 16px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: var(--radius-md); }
.product-shop-fields-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.product-shop-fields-head strong { color: var(--heading); font-size: 14px; }
.product-shop-fields-head p { max-width: 460px; margin: 4px 0 0; font-size: 11px; line-height: 1.45; }
.product-shop-toggles { flex: 0 0 auto; display: flex; gap: 12px; }
.product-shop-check { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-size: 11px; font-weight: 750; white-space: nowrap; }
.product-shop-check input { width: 17px; height: 17px; margin: 0; }
.product-shop-fields textarea { min-height: 84px; resize: vertical; }
.product-guidance-fields { display:grid; gap:10px; padding:14px; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-sm); }
.product-guidance-fields-head { display:grid; gap:3px; }
.product-guidance-fields-head strong { color:var(--heading); font-size:13px; }
.product-guidance-fields-head p { margin:0; font-size:11px; line-height:1.45; }
.product-guidance-choices { min-width:0; margin:0; padding:0; border:0; }
.product-guidance-choices legend { margin-bottom:6px; color:var(--muted); font-size:12px; }
.product-guidance-choices > div { display:flex; flex-wrap:wrap; gap:8px 12px; }
.product-guidance-choices .product-shop-check { min-height:32px; padding:5px 8px; background:var(--surface-soft); border:1px solid var(--line); border-radius:999px; }
.product-shop-readiness { display: grid; gap: 3px; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.product-shop-readiness strong { color: var(--heading); font-size: 12px; }
.product-shop-readiness span { color: var(--muted); font-size: 11px; line-height: 1.45; }
.product-shop-readiness.is-ready { background: var(--accent-soft); border-color: rgba(85,112,90,.34); }
.product-shop-readiness.is-incomplete { background: var(--amber-100); border-color: rgba(224,154,62,.48); }
.product-shop-image-preview { min-height:82px; display:flex; align-items:center; gap:12px; padding:10px; color:var(--muted); background:var(--surface); border:1px dashed var(--line); border-radius:var(--radius-sm); font-size:11px; }
.product-shop-image-preview img { width:64px; height:64px; object-fit:cover; border-radius:10px; }
.product-shop-image-preview .bad { color:var(--red); }

.menu-specials-product > label { min-width: 0; display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: center; cursor: pointer; }
.menu-specials-product > label input { width: 18px; height: 18px; margin: 0; }
.menu-specials-product span { min-width: 0; display: grid; gap: 2px; }
.menu-specials-product strong { overflow: hidden; color: var(--heading); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.menu-specials-product small { color: var(--muted); font-size: 10px; }
.menu-specials-product .menu-special-price { min-width: 0; margin: 0; }
.menu-specials-fields.is-disabled, .menu-specials-picker.is-disabled { opacity: .52; }
.menu-bundles-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.menu-bundles-head h3 { margin: 0 0 4px; color: var(--heading); font-size: 16px; }
.menu-bundles-head p { margin: 0; color: var(--muted); font-size: 12px; }
.menu-bundle-list { display: grid; gap: 12px; margin-top: 13px; }
.menu-bundle-list.is-disabled { opacity: .52; }
.menu-bundle-empty { margin: 0; padding: 16px; background: var(--surface-soft); border: 1px dashed var(--line); border-radius: var(--radius-sm); text-align: center; }
.menu-bundle-editor { padding: 16px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: var(--radius-md); }
.menu-bundle-editor-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.menu-bundle-editor h4 { margin: 0; color: var(--heading); font-size: 14px; }
.menu-bundle-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(160px, .45fr); gap: 12px; }
.menu-bundle-fields label { color: var(--ink); font-size: 11px; font-weight: 740; }
.menu-bundle-fields .full { grid-column: 1 / -1; }
.menu-bundle-fields input, .menu-bundle-fields textarea { margin: 5px 0 0; }
.menu-bundle-fields textarea { min-height: 74px; resize: vertical; }
.menu-bundle-components-title { margin: 12px 0 8px; color: var(--heading); font-size: 11px; font-weight: 780; }
/* A bundle that saves correctly but can never appear on the shop, because one of its components
   is unpublished. A warning rather than a block: the bundle is valid, still runs on the delivery
   menu, and the product may be about to be published -- refusing the save would be wrong. */
.menu-bundle-warning { margin: 10px 0 0; padding: 9px 12px; color: var(--warn-ink, #8a5a00); font-size: 12px; line-height: 1.45; background: var(--warn-bg, rgba(202,150,62,.12)); border: 1px solid var(--warn-line, rgba(202,150,62,.38)); border-radius: 10px; }
.menu-bundle-components { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 7px; }
.menu-bundle-components label { display: grid; grid-template-columns: minmax(0, 1fr) 58px; gap: 8px; align-items: center; padding: 8px 9px; background: var(--surface-card); border: 1px solid var(--line); border-radius: 7px; color: var(--ink); font-size: 10px; }
.menu-bundle-components label > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-bundle-components small { display: block; color: var(--muted); font-size: 8px; }
.menu-bundle-components input { min-width: 0; min-height: 36px; margin: 0; padding: 6px 7px; }
.menu-specials-actions { display: flex; align-items: center; justify-content: flex-end; gap: 18px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.menu-specials-actions p { flex: 1 1 auto; margin: 0; text-align: right; }
.menu-special-preview { position: relative; overflow: hidden; margin: 0 0 20px; padding: 22px; background: linear-gradient(135deg, var(--forest-950), var(--forest-800)); border: 1px solid rgba(224,154,62,.55); border-radius: var(--radius-md); box-shadow: var(--shadow-md); }
.menu-special-preview-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.menu-special-preview .eyebrow { color: #f1bb6e; }
.menu-special-preview h2 { margin: 3px 0 0; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 30px; font-weight: 500; }
.menu-special-preview-head > span { padding: 7px 10px; color: var(--forest-950); background: var(--amber-500); border-radius: 999px; font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.menu-special-preview-message { max-width: 620px; margin: 8px 0 15px; color: rgba(248,250,252,.7); font-size: 12px; }
.menu-special-preview-products { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 18px; }
.menu-special-preview-products .kv { color: #fff; border-color: rgba(255,255,255,.12); }
.menu-preview-price { display: inline-flex; align-items: baseline; gap: 7px; white-space: nowrap; }
.menu-preview-price del { color: var(--muted); font-size: 10px; }
.menu-special-preview .menu-preview-price del { color: rgba(255,255,255,.5); }
.menu-preview-bundle > span:first-child { display: grid; gap: 2px; }
.menu-preview-bundle small { color: rgba(255,255,255,.62); font-size: 9px; }

@media (max-width: 1040px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .login-page { grid-template-columns: minmax(320px, 420px) 1fr; }
  .login-aside { padding: 50px; }
}

@media (max-width: 900px) {
  .dispense { grid-template-columns: minmax(0, 1fr) 330px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .rep-cols { grid-template-columns: 1fr; }
  .login-page { display: block; }
  .login-main { min-height: 100vh; }
  .login-aside { display: none; }
  .driver-grid { grid-template-columns: 1fr; }
  #cashupPanel { position: static; }
  .portal-page #appView { grid-template-columns: minmax(0, 1fr) 340px; }
  .sales-scorecard { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sales-review-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .topbar { position: sticky; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 64px; padding: 8px 12px; }
  .brand[data-page] { max-width: 150px; grid-template-columns: 36px minmax(0, 1fr); column-gap: 9px; }
  .brand[data-page]::before { width: 36px; height: 36px; border-radius: 11px 11px 11px 4px; }
  .brand[data-page] > span { font-size: 13px; }
  .brand[data-page] > small { font-size: 9px; }
  .topbar .actions { width: auto; min-width: 0; gap: 3px; overflow: visible; }
  .topbar .actions #who, .topbar .actions .meta { display: none; }
  .topbar .actions > a[href="home.html"], .topbar .actions #connBadge { display: none; }
  .topbar .actions > a, .topbar .actions > button { min-width: 44px; padding-inline: 9px; font-size: 12px; }
  .topbar .actions > .theme-toggle { min-width: 44px; width: 44px; padding: 8px; }
  .topbar .theme-toggle-label { display: none; }
  .navdrawer-panel { width: min(calc(100vw - 24px), 620px); max-height: calc(100vh - 82px); }
  .home-shell { padding-top: 38px; }
  input, select, textarea { font-size: 16px; }
  .chip { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding-block: 9px; }
  .settings-nav { top: 64px; margin-inline: -18px; padding-inline: 18px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .settings-nav::-webkit-scrollbar { display: none; }
  .zone-editor { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .zone-editor > div:first-child, .zone-editor > div:nth-child(4), .zone-editor > .btn { grid-column: 1 / -1; }
  .zone-editor > .btn { width: 100%; }
  #zoneList .kv { align-items: flex-start; flex-direction: column; gap: 10px; }
  #zoneList .kv > span:last-child { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  #save { position: sticky; bottom: 12px; z-index: 20; width: 100%; min-height: 52px; box-shadow: var(--shadow-md); }
  .home-intro { align-items: flex-start; flex-direction: column; gap: 18px; margin-bottom: 30px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dispense { display: block; padding-bottom: 76px; }
  .sidebar { min-height: 430px; border-top: 1px solid var(--line); border-left: none; }
  .mobile-cart-bar:not(.hidden) { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: flex; align-items: center; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(12,30,24,.12); }
  .mobile-cart-bar #mobileCartCount { flex: 1 1 auto; }
  .mobile-cart-bar #mobileCartTotal { font-weight: 800; color: var(--heading); }
  .mobile-cart-bar .btn { width: auto; min-height: 52px; padding-inline: 20px; }
  .rep-head { align-items: stretch; flex-direction: column; }
  .rep-head > * { width: 100% !important; }
  .stock-table { display: block; overflow-x: auto; white-space: nowrap; }
  .stock-table[data-mobile-cards] { display: block; overflow: visible; white-space: normal; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
  .stock-table[data-mobile-cards] thead { display: none; }
  .stock-table[data-mobile-cards] tbody { display: grid; gap: 12px; }
  .stock-table[data-mobile-cards] tbody tr { display: grid; gap: 0; padding: 14px 16px; background: var(--surface-card); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-xs); }
  .stock-table[data-mobile-cards] tbody tr:hover td { background: transparent; }
  .stock-table[data-mobile-cards] td { min-width: 0; display: grid; grid-template-columns: minmax(88px, .7fr) minmax(0, 1.3fr); gap: 14px; align-items: start; padding: 8px 0; border: 0; text-align: right; white-space: normal; overflow-wrap: anywhere; }
  .stock-table[data-mobile-cards] td + td { border-top: 1px solid var(--line); }
  .stock-table[data-mobile-cards] td::before { content: attr(data-label); color: var(--table-label); font-size: 10px; font-weight: 820; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
  .stock-table[data-mobile-cards] td[colspan] { display: block; padding: 22px 0; text-align: center; }
  .stock-table[data-mobile-cards] td[colspan]::before { display: none; }
  .stock-table[data-mobile-cards] td.actcol { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding-top: 12px; }
  .stock-table[data-mobile-cards] td.actcol::before { display: none; }
  .stock-table[data-mobile-cards] td .mini { min-height: 44px; margin-left: 0; }
  .ops-page-shell { padding-top: 30px; }
  .ops-page-head { align-items: flex-start; flex-direction: column; gap: 14px; }
  .presence-panel { grid-template-columns: 1fr; gap: 14px; }
  .kanban-board { margin-inline: -18px; padding-inline: 18px; grid-template-columns: repeat(6, minmax(82vw, 1fr)); }
  .kanban-board > .panel { min-height: 240px; }
  .portal-page .pos-main { padding-top: 30px; }
  .delivery-category-nav { top: 64px; margin-inline: -18px; padding-inline: 18px; }
  .delivery-specials { grid-template-columns: 1fr; gap: 20px; padding: 24px 20px; }
  .delivery-specials-copy > p:last-child { max-width: 560px; }
  .delivery-product-grid { grid-template-columns: 1fr; }
  .delivery-category { scroll-margin-top: 132px; }
  .menu-specials-editor-head, .menu-specials-actions { align-items: stretch; flex-direction: column; }
  .product-shop-fields-head { flex-direction: column; }
  .product-shop-toggles { width: 100%; justify-content: space-between; }
  .menu-specials-toggle { width: fit-content; }
  .menu-specials-fields { grid-template-columns: 1fr; }
  .menu-specials-product { grid-template-columns: 1fr; }
  .menu-bundles-head { align-items: stretch; flex-direction: column; }
  .menu-bundles-head .btn { width: 100%; }
  .menu-bundle-fields { grid-template-columns: 1fr; }
  .menu-bundle-fields .full { grid-column: auto; }
  .menu-specials-actions p { text-align: left; }
  .menu-specials-actions .btn { width: 100%; }
  .delivery-sidebar { position: static; max-height: none; min-height: 0; }
  .modalwrap { align-items: flex-end; padding: 0; }
  .modalcard { width: 100%; max-height: min(90dvh, 760px); padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); border-right: 0; border-bottom: 0; border-left: 0; border-radius: 22px 22px 0 0; }
  .admin-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-actions .btn { width: 100%; }
  .sales-target-hero { grid-template-columns: 1fr; gap: 24px; }
  .sales-scorecard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sales-table-shell { overflow: visible; }
  .sales-pipeline-table { min-width: 0; }
  .pipeline-filters { align-items: stretch; }
  .pipeline-filters > label:has(select) { flex: 1 1 140px; }
  .pipeline-filters select { min-width: 0; width: 100%; }
  .priority-item { grid-template-columns: minmax(0, 1fr) auto; }
  .priority-item > span { display: none; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .admin-form-grid .full { grid-column: auto; }
  .target-editor-row { grid-template-columns:1fr 1fr }
  .target-editor-row>strong { grid-column:1/-1 }
  .warehouse-setup-grid { grid-template-columns: 1fr; }
  .warehouse-setup-actions { align-items: stretch; flex-direction: column; }
  .warehouse-setup-actions .btn { width: 100%; }
  .dispatch-main { padding: 24px 14px 56px; }
  .dispatch-page-head { align-items: stretch; gap: 16px; }
  .dispatch-head-actions { min-width: 0; justify-content: stretch; }
  .dispatch-head-actions input { width: 100%; }
  .dispatch-head-actions .live-status { display: none; }
  .dispatch-map-panel { margin-bottom: 26px; }
  .dispatch-map-toolbar { min-height: 0; padding: 14px; }
  .dispatch-map-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .dispatch-map-stats span { min-width: 0; display: grid; align-content: center; padding: 8px; white-space: normal; }
  .dispatch-map-frame { min-height: 260px; }
  .dispatch-map-frame .dispatch-map { height: 260px; }
  .dispatch-map-foot { align-items: flex-start; flex-direction: column; }
  .dispatch-map-legend { flex-wrap: wrap; }
  .dispatch-queues { gap: 26px; }
  .dispatch-section-head { align-items: flex-start; }
  .dispatch-table-shell { overflow: visible; background: transparent; border: 0; }
  .dispatch-table { min-width: 0; }
  .dispatch-table[data-mobile-cards] tbody tr.card { padding: 12px 14px; }
  .dispatch-table[data-mobile-cards] td { grid-template-columns: minmax(88px, .75fr) minmax(0, 1.25fr); text-align: right; }
  .dispatch-table[data-mobile-cards] td > * { justify-self: end; }
  .dispatch-table[data-mobile-cards] td.actcol { justify-content: stretch; }
  .dispatch-table[data-mobile-cards] td.actcol .dispatch-row-actions { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dispatch-table[data-mobile-cards] td.actcol .mini { width: 100%; min-height: 44px; }
  .dispatch-driver-select { width: 100%; max-width: 210px; min-height: 44px; }
  .dispatch-empty-row td { height: auto; }
}

@media (max-width: 460px) {
  .brand[data-page] { max-width: 126px; }
  .topbar .actions #logout { width: 44px; overflow: hidden; padding-inline: 5px; text-overflow: ellipsis; white-space: nowrap; }
  .tiles { grid-template-columns: 1fr; }
  .tile-group + .tile-group { margin-top: 22px; }
  .tile { min-height: 0; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 14px; }
  .tile::after { display: none; }
  .tile .ic { width: 44px; height: 44px; }
  .tile-copy { gap: 2px; }
  .tile-copy strong { font-size: 15px; }
  .tile-copy small { font-size: 11px; }
  .tile-arrow { position: static; }
  .workspace-head span { display: none; }
  .searchrow { flex-direction: column; }
  .searchrow .btn { width: 100% !important; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .login-main, .login-wrap { padding: 24px; }
  .login-card { padding: 25px; }
  .portal-auth-card { padding: 28px 24px; }
  .section-head { align-items: flex-start; }
  .section-head.compact { flex-wrap: wrap; }
  .order-history-head { flex-direction: column; }
  .order-history-head #notifyToggle { width: 100%; }
  #myOrders { grid-template-columns: 1fr; }
  .modal-actions .btn { width: 100% !important; }
  .admin-actions { grid-template-columns: 1fr; }
  .sales-scorecard { grid-template-columns: 1fr 1fr; }
  .sales-metric { padding: 13px; }
  .monthly-target { grid-template-columns: 46px minmax(0, 1fr); }
  .monthly-target > span { grid-column: 2; text-align: left; }
  .priority-item { grid-template-columns: 1fr; }
  .priority-item .mini { width: 100%; margin: 0; }
}

@media (max-width: 350px) {
  .kpis { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Brand bible intake (js/brand-form.js) - onboarding step and brand.html both mount the same
   form, so these styles are shared rather than duplicated per page. The preview deliberately
   sets --shop-* tokens on itself and uses them here, so what a client sees is produced by the
   exact mapping css/shop.css will be handed at render time. */
.brand-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: 22px; align-items: start; }
.brand-fields { display: grid; gap: 14px; min-width: 0; }
.brand-field > label { display: grid; gap: 3px; margin-bottom: 5px; color: var(--ink); font-size: 12px; font-weight: 700; }
.brand-field > label small { font-weight: 500; }
.brand-field select, .brand-field input[type="text"], .brand-field input:not([type]) { margin-bottom: 0; }
.brand-colour-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.brand-swatch { width: 52px; min-height: 40px; padding: 3px; margin: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-card); cursor: pointer; }
.brand-hex { width: 110px; margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: lowercase; }
.brand-hero-preview { width: 100%; max-width: 320px; height: 140px; margin-bottom: 8px; object-fit: cover; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.brand-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.brand-advice { display: grid; gap: 6px; margin-top: 10px; font-size: 11px; line-height: 1.45; }
.brand-advice p { margin: 0; }
.brand-side { position: sticky; top: 12px; min-width: 0; }

.brand-preview { overflow: hidden; background: var(--shop-paper); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-xs); color: var(--shop-ink); font-family: var(--shop-font-body); }
.brand-preview-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; background: var(--shop-paper); border-bottom: 1px solid var(--shop-line); }
.brand-preview-id { min-width: 0; display: flex; align-items: center; gap: 8px; }
.brand-preview-mark { width: 30px; height: 30px; flex: none; display: grid; place-items: center; color: #fff; background: var(--shop-green); border-radius: 50% 50% 50% 6px; font: 800 11px var(--shop-font-heading); }
.brand-preview-logo { width: 30px; height: 30px; flex: none; object-fit: contain; }
.brand-preview-id > span:last-child { min-width: 0; display: grid; }
.brand-preview-id strong { overflow: hidden; font-family: var(--shop-font-heading); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.brand-preview-id small { overflow: hidden; color: var(--shop-muted); font-size: 9px; letter-spacing: .1em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.brand-preview-cart { flex: none; padding: 6px 11px; color: #fff; background: var(--shop-green); border-radius: 999px; font-size: 10px; font-weight: 800; }
.brand-preview-hero { padding: 22px 14px 20px; color: #fff; background: linear-gradient(135deg, var(--shop-green-dark), var(--shop-green)); }
.brand-preview-kicker { margin: 0 0 6px; color: var(--shop-gold); font-size: 9px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.brand-preview-hero h4 { margin: 0; font-family: var(--shop-font-heading); font-size: 21px; font-weight: 400; letter-spacing: -.03em; }
.brand-preview-body { padding: 14px 12px; }
.brand-preview-card { display: grid; gap: 3px; padding: 12px; background: var(--shop-card); border: 1px solid var(--shop-line); border-radius: var(--radius-sm); }
.brand-preview-card strong { font-family: var(--shop-font-heading); font-size: 13px; }
.brand-preview-card small { color: var(--shop-muted); font-size: 10px; }
.brand-preview-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 7px; }
.brand-preview-price { color: var(--shop-gold); font-size: 13px; font-weight: 800; }
.brand-preview-btn { padding: 6px 13px; color: #fff; background: var(--shop-green); border-radius: 999px; font-size: 10px; font-weight: 800; }

@media (max-width: 860px) {
  .brand-layout { grid-template-columns: minmax(0, 1fr); }
  .brand-side { position: static; }
}

/* An offboarded business stays in the platform list on purpose -- its financial history has to
   stay readable -- but it must not look like a live one, or somebody offboards the same club
   twice and wonders why nothing happened. */
.tenant-offboarded td { opacity: .62; }
.tenant-offboarded td:first-child { opacity: 1; }
.tenant-offboarded:hover td { opacity: 1; }

html.brand-pending body.portal-page { visibility: hidden; }

/* Customer branding is opt-in per venuePublic document. These selectors only affect the public
   delivery portal; staff and operator pages continue to use the Playbook design system. */
html.customer-brand-active body.portal-page { font-family:var(--customer-font-body); }
html.customer-brand-active body.portal-page h1,
html.customer-brand-active body.portal-page h2,
html.customer-brand-active body.portal-page .brand > span,
html.customer-brand-active body.portal-page .delivery-specials h2 { font-family:var(--customer-font-heading); }
html.customer-brand-active body.portal-page .topbar { border-bottom-color:var(--line); }
html.customer-brand-logo-active body.portal-page .brand::before {
  content:"";
  background-color:transparent;
  background-image:var(--customer-brand-logo);
  background-position:center;
  background-repeat:no-repeat;
  background-size:contain;
  border-radius:50%;
  box-shadow:none;
}
html.customer-brand-active body.portal-page .portal-auth { background:
  radial-gradient(circle at 50% 10%,var(--accent-soft-strong),transparent 32rem),var(--bg); }
html.customer-brand-active body.portal-page .delivery-specials { background:
  linear-gradient(135deg,var(--forest-950),var(--forest-900)); border-color:color-mix(in srgb,var(--amber-500) 55%,transparent); }
html.customer-brand-active body.portal-page .delivery-specials::after { border-color:color-mix(in srgb,var(--amber-500) 34%,transparent); box-shadow:0 0 0 48px color-mix(in srgb,var(--amber-500) 8%,transparent),0 0 0 96px color-mix(in srgb,var(--amber-500) 4%,transparent); }

/* SouthBound's delivery portal uses the same Canva-derived cream, forest, orange and editorial
   rhythm as its shop. The explicit preset class keeps these structural overrides tenant-only. */
html.customer-brand-active.customer-brand-animation-southbound-leaf body.portal-page::before { opacity:.018; }
html.customer-brand-active.customer-brand-animation-southbound-leaf body.portal-page .topbar {
  min-height:76px; padding-inline:clamp(22px,5.6vw,72px); background:var(--bg); border-bottom:0; box-shadow:none;
}
html.customer-brand-active.customer-brand-animation-southbound-leaf body.portal-page .brand[data-page] > span { font-size:16px; font-weight:600; letter-spacing:.025em; }
html.customer-brand-active.customer-brand-animation-southbound-leaf body.portal-page .brand[data-page] > small { color:var(--muted); font-size:8px; font-weight:700; letter-spacing:.16em; text-transform:uppercase; }
html.customer-brand-active.customer-brand-animation-southbound-leaf body.portal-page .portal-auth { min-height:calc(100vh - 76px); overflow:hidden; background:var(--forest-950); }
html.customer-brand-active.customer-brand-animation-southbound-leaf body.portal-page .portal-auth::before {
  width:min(70vw,760px); height:min(70vw,760px); right:-24vw; bottom:-46vw;
  border-color:color-mix(in srgb,var(--amber-500) 34%,transparent); opacity:.7;
  box-shadow:0 0 0 90px color-mix(in srgb,var(--amber-500) 8%,transparent),0 0 0 180px color-mix(in srgb,var(--amber-500) 4%,transparent);
}
html.customer-brand-active.customer-brand-animation-southbound-leaf body.portal-page .portal-auth-card { padding:42px; background:var(--bg); border:0; border-radius:2px 28px 28px 28px; box-shadow:0 26px 70px rgba(7,24,16,.28); }
html.customer-brand-active.customer-brand-animation-southbound-leaf body.portal-page .portal-auth-card .eyebrow { color:var(--amber-500); }
html.customer-brand-active.customer-brand-animation-southbound-leaf body.portal-page .portal-auth-card h1 { color:var(--heading); font-size:38px; font-weight:500; }
html.customer-brand-active.customer-brand-animation-southbound-leaf body.portal-page .portal-auth-card input,
html.customer-brand-active.customer-brand-animation-southbound-leaf body.portal-page .delivery-sidebar input,
html.customer-brand-active.customer-brand-animation-southbound-leaf body.portal-page .delivery-product-choice-select { border-radius:999px; }
html.customer-brand-active.customer-brand-animation-southbound-leaf body.portal-page .portal-auth-card .btn,
html.customer-brand-active.customer-brand-animation-southbound-leaf body.portal-page #placeBtn { min-height:52px; color:#fff; background:var(--amber-500); border-color:var(--amber-500); border-radius:999px; font-weight:850; }
html.customer-brand-active.customer-brand-animation-southbound-leaf body.portal-page #appView { background:var(--bg); }
html.customer-brand-active.customer-brand-animation-southbound-leaf body.portal-page .delivery-menu-head h1 { color:var(--heading); font-size:52px; font-weight:500; }
html.customer-brand-active.customer-brand-animation-southbound-leaf body.portal-page .delivery-category-nav { background:linear-gradient(90deg,var(--bg) 86%,transparent); }
html.customer-brand-active.customer-brand-animation-southbound-leaf body.portal-page .delivery-product-card { border-color:color-mix(in srgb,var(--heading) 16%,transparent); border-radius:2px 18px 18px 18px; box-shadow:none; }
html.customer-brand-active.customer-brand-animation-southbound-leaf body.portal-page .delivery-product-card:hover { border-color:var(--amber-500); }
html.customer-brand-active.customer-brand-animation-southbound-leaf body.portal-page .delivery-specials { background:var(--forest-950); border-color:var(--amber-500); border-radius:2px 24px 24px 24px; }
html.customer-brand-active.customer-brand-animation-southbound-leaf body.portal-page .delivery-sidebar { background:color-mix(in srgb,var(--bg) 74%,white); border-left-color:color-mix(in srgb,var(--heading) 14%,transparent); }
html.customer-brand-active.customer-brand-animation-southbound-leaf body.portal-page .mobile-cart-bar { background:var(--forest-950); border-top-color:color-mix(in srgb,var(--amber-500) 55%,transparent); }
@media (max-width:720px) {
  html.customer-brand-active.customer-brand-animation-southbound-leaf body.portal-page .topbar { min-height:64px; padding-inline:12px; }
  html.customer-brand-active.customer-brand-animation-southbound-leaf body.portal-page .portal-auth { min-height:calc(100vh - 64px); }
  html.customer-brand-active.customer-brand-animation-southbound-leaf body.portal-page .portal-auth-card { padding:30px 24px; }
  html.customer-brand-active.customer-brand-animation-southbound-leaf body.portal-page .delivery-menu-head h1 { font-size:42px; }
}

/* Sign-up guidance on the delivery portal. Says plainly that there is no email on file and
   therefore no password-reset link, rather than letting a member discover that when locked out. */
.auth-note { margin: 2px 0 10px; color: var(--muted); font-size: 12px; line-height: 1.45; }

/* Delivery payment: EFT works, the other two are shown as coming soon rather than hidden, so a
   customer looking for card or cash sees they are planned. */
.payment-options { display: grid; gap: 6px; margin: 10px 0; }
.payment-option { display: grid; gap: 1px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.payment-option strong { color: var(--ink); font-size: 12px; }
.payment-option small { color: var(--muted); font-size: 11px; }
.payment-option.is-soon { opacity: .6; }
.payment-option.is-soon strong::after { content: " · soon"; color: var(--muted); font-weight: 600; }
/* The reference is the one thing the customer has to keep, so it is given a number's emphasis. */
.order-reference { margin: 6px 0 0; padding: 8px 10px; color: var(--heading); background: var(--accent-soft);
  border: 1px solid var(--accent-border); border-radius: var(--radius-sm); font-size: 14px; font-weight: 750; }
.delivery-product-choice { display:grid; gap:4px; margin-top:8px; color:var(--text-muted); font-size:11px; font-weight:700; }
.delivery-product-choice-select { min-height:40px; width:100%; padding:7px 10px; color:var(--text); background:var(--surface); border:1px solid var(--border); border-radius:8px; font:inherit; }

/* ---- Sample-data mode (sample.html): a banner that never scrolls away, so made-up figures
   can never be mistaken for a club's own. Amber, the same tone as the warn badge. ---- */
.sample-banner { position: sticky; top: 0; z-index: 60; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  padding: 10px clamp(16px, 3vw, 36px); color: #5c3c0c; background: var(--amber-100); border-bottom: 2px solid var(--amber); }
.sample-banner-text { flex: 1 1 260px; font-size: 13px; font-weight: 650; }
.sample-banner .btn { min-height: 40px; }
.sample-section { margin: 0 0 12px; color: var(--heading); font-size: 18px; }
.sample-trend { display: flex; align-items: flex-end; gap: 3px; height: 140px; padding-top: 6px; }
.sample-bar { flex: 1 1 0; min-width: 0; background: var(--accent); border-radius: 3px 3px 0 0; opacity: .85; }
.sample-page .panel h3 small { font-weight: 600; font-size: 12px; margin-left: 6px; }
.sample-exit-panel .btn { width: auto; }
.sample-banner-short { display: none; }
@media (max-width: 600px) {
  .sample-banner { flex-wrap: nowrap; gap: 8px; padding: 8px 16px; }
  .sample-banner-long { display: none; }
  .sample-banner-short { display: inline; flex: 1 1 auto; font-size: 12px; }
  .sample-banner .btn { min-height: 36px; padding: 6px 10px; font-size: 12px; white-space: nowrap; }
}

/* ============================================================
   Public site, 2026 design (playbook-420-preview, 2026-11-16)
   Archivo display + Inter body, dark grey / paper / fern / mint.
   Appended last on purpose: each rule here matches the specificity of
   the world-site rule it replaces, so source order decides.
   The --w-* tokens above carry the palette; this block carries type,
   shape and the index sections (.pb-*).
   ============================================================ */
.world-site { font-family: var(--w-body); }
.world-site :is(h1, h2, h3) { font-family: var(--w-display); font-stretch: 125%; font-weight: 800; letter-spacing: -.01em; line-height: 1.02; }

.w-hero h1, .solution-hero h1, .legal-hero h1, .pb-hero h1 { font-size: clamp(40px, 6.2vw, 76px); font-weight: 800; line-height: 1.02; letter-spacing: -.01em; }
.w-hero h1 em, .solution-hero h1 em { color: var(--w-mint); font-style: normal; font-weight: inherit; }
.w-section-head h2, .w-story-head h2, .w-platform h2, .w-trial h2, .w-form-copy h2, .w-founders h2,
.solution-intro h2, .solution-cta h2, .pb-what h2, .pb-band h2 { font-size: clamp(30px, 4.2vw, 52px); font-weight: 800; line-height: 1.04; letter-spacing: -.01em; }
.w-card-copy h3, .w-story-step h3, .w-solution-card h3, .solution-feature h3, .solution-process h3, .legal-copy h2 { font-size: clamp(20px, 1.9vw, 24px); font-stretch: 112%; font-weight: 800; line-height: 1.15; letter-spacing: 0; }
.w-faq-list summary { min-height: 66px; font-family: var(--w-display); font-size: 19px; font-stretch: 112%; font-weight: 700; }
.w-faq-list details p { color: var(--w-mute); }
.w-menu-panel>header strong { font-size: 26px; font-stretch: 112%; font-weight: 800; letter-spacing: 0; }
.w-menu-panel>nav strong { font-size: 19px; font-stretch: 112%; font-weight: 800; letter-spacing: 0; }
.w-price strong { font-stretch: 125%; font-weight: 800; letter-spacing: -.02em; }
.solution-demo>strong { font-stretch: 125%; font-weight: 800; letter-spacing: -.01em; }
.solution-proof strong { font-size: 19px; font-stretch: 112%; font-weight: 800; }

/* Readable body copy: the old site set most running text at 11-13px. */
.w-faq-list details p, .solution-intro-copy p, .solution-feature p, .solution-process p,
.solution-hero-copy>p:not(.w-eyebrow), .legal-copy p, .legal-copy li, .w-form-copy>p:not(.w-eyebrow),
.w-founders-limit, .w-price-card>p:not(.w-price), .w-price-card li, .solution-proof span, .w-trial-head>p:last-child { font-size: 16px; line-height: 1.6; }

/* Navigation, brand and buttons */
.w-nav.is-scrolled { background: rgba(20, 24, 27, .9); }
.w-brand { font-family: var(--w-display); font-size: 20px; font-stretch: 125%; font-weight: 800; }
.w-brand-mark { width: 34px; height: 34px; color: #fff; background: var(--w-green); border-radius: 9px; box-shadow: none; font: 800 11px var(--w-display); letter-spacing: 0; }
.w-nav nav a { color: rgba(255, 255, 255, .78) !important; font-size: 15px; font-weight: 500; }
.w-nav nav a:hover { color: #fff !important; }
.w-signin { padding: 11px 22px; color: #111 !important; background: #f1f1f1; border-radius: 999px; font-size: 15px; font-weight: 600; }
.w-signin:hover { color: #111 !important; background: #fff; }
.w-button { min-height: 52px; justify-content: center; gap: 12px; padding: 15px 28px; color: #fff !important; background: var(--w-green); border: 1.5px solid var(--w-green); border-radius: 999px; box-shadow: none; font: 600 16px/1.2 var(--w-body); }
.w-button:hover { color: #fff !important; background: #286c4e; box-shadow: 0 12px 28px rgba(0, 0, 0, .18); transform: translateY(-2px); }
.w-button-small { min-height: 44px; padding: 11px 22px; font-size: 15px; }
.pb-ghost { background: transparent; border-color: rgba(255, 255, 255, .35); }
.pb-ghost:hover { background: rgba(255, 255, 255, .08); }
.w-eyebrow { gap: 0; font-size: 16px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.w-eyebrow > span { display: none; }
.w-text-link { font-size: 15px; font-weight: 600; }
/* Mint is the focus ring on dark grounds; on paper it needs the darker fern to stay visible. */
.pb-what :focus-visible, .w-founders :focus-visible, .w-faq :focus-visible, .w-form :focus-visible, .legal-site main :focus-visible { outline-color: var(--w-green) !important; }

/* Sections and form */
.w-founders, .w-form-section { padding-top: clamp(72px, 9vw, 112px); padding-bottom: clamp(72px, 9vw, 112px); }
.w-form { border-radius: 24px; }
.w-form input, .w-form select { min-height: 50px; border-radius: 12px; font-size: 16px; }
.w-footer { background: var(--w-ink); }
.w-footer p { font-family: var(--w-body); }
.w-footer-by a { color: var(--w-cream) !important; text-decoration: underline; text-underline-offset: 3px; }
.w-solution-card>span, .solution-feature>span { color: var(--w-green); }

/* Index: hero */
.pb-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.pb-hero { position: relative; overflow: hidden; color: #fff; background: var(--w-ink); }
.pb-hero .pb-wrap { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; min-height: 700px; padding-top: 88px; }
.pb-hero-copy { position: relative; z-index: 1; padding: 56px 40px 72px 0; }
.pb-kicker { margin: 0 0 22px; color: var(--w-mint); font-size: 16px; font-weight: 600; }
.pb-hero h1 { margin: 0; color: #fff; text-wrap: balance; }
.pb-sub { max-width: 30em; margin: 28px 0 12px; color: #d3d8d6; font-size: 20px; line-height: 1.55; }
.pb-tag { margin: 0 0 36px; color: var(--w-mint); font-size: 20px; font-weight: 600; }
.pb-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.pb-panel { position: absolute; top: 0; right: 0; bottom: 0; width: 44vw; background: var(--w-green); clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%, 0 24%); }
.pb-panel-wrap { position: relative; display: grid; place-items: center; padding: 60px 0; }
.pb-card { position: relative; z-index: 1; width: min(400px, 100%); padding: 26px; background: var(--w-ink); border-radius: 28px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.pb-card-top { display: flex; justify-content: space-between; align-items: baseline; color: #c3cac7; font-size: 15px; font-weight: 600; }
.pb-card-top b { color: #fff; font: 800 20px var(--w-display); font-stretch: 125%; }
.pb-big { margin: 18px 0 2px; font: 800 44px var(--w-display); font-stretch: 125%; }
.pb-lbl { color: #9aa3a0; font-size: 14px; }
.pb-bar { height: 10px; margin-top: 18px; overflow: hidden; background: #2a3135; border-radius: 6px; }
.pb-bar i { display: block; width: 52%; height: 100%; background: var(--w-mint); }
.pb-rows { display: grid; gap: 10px; margin-top: 20px; }
.pb-rw { display: flex; justify-content: space-between; padding: 12px 16px; background: var(--w-forest); border: 1px solid #2a3135; border-radius: 14px; font-size: 15px; }
.pb-rw b { font-weight: 600; }

/* Index: what it does */
.pb-what { padding: 96px 0; color: var(--w-ink); background: var(--w-paper); }
.pb-what h2 { max-width: 14em; margin: 0; }
.pb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 40px; margin-top: 56px; }
.pb-item { padding-top: 24px; border-top: 3px solid var(--w-line); }
.pb-sq { width: 20px; height: 20px; margin-bottom: 22px; background: var(--w-green); border-radius: 5px; }
.pb-item h3 { margin: 0 0 10px; font-size: 21px; font-stretch: 112%; line-height: 1.15; }
.pb-item p { margin: 0 0 14px; color: var(--w-mute); font-size: 16px; line-height: 1.55; }
.pb-item a { color: var(--w-green); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.pb-note { margin: 44px 0 0; color: var(--w-mute); font-size: 16px; }

/* Index: how it starts */
.pb-band { padding: 88px 0; color: #fff; background: var(--w-green); }
.pb-band h2 { margin: 0; }
.pb-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin: 44px 0 0; padding: 0; list-style: none; }
.pb-num { font: 800 84px/1 var(--w-display); font-stretch: 125%; }
.pb-steps h3 { margin: 14px 0 10px; font-size: 22px; font-stretch: 112%; }
.pb-steps p { max-width: 22em; margin: 0; color: #e6f3ec; font-size: 16px; line-height: 1.55; }

@media (max-width: 860px) {
  .pb-hero .pb-wrap { grid-template-columns: 1fr; min-height: 0; padding-top: 70px; }
  .pb-hero-copy { padding: 24px 0 40px; }
  .pb-panel { top: auto; width: 100%; height: 46%; clip-path: polygon(0 14%, 100% 0, 100% 100%, 0 100%); }
  .pb-panel-wrap { padding: 20px 0 56px; }
  .pb-grid, .pb-steps { grid-template-columns: 1fr; }
  .pb-sub, .pb-tag { font-size: 18px; }
  .w-brand { font-size: 17px; }
}

/* Nav CTA sits on the fern panel and the dark scrolled bar: dark grey keeps it visible on both. */
.w-nav .w-button-small { color: #fff !important; background: var(--w-ink); border-color: var(--w-ink); }
.w-nav .w-button-small:hover { background: #000; }
.w-nav.is-scrolled .w-button-small { background: var(--w-green); border-color: var(--w-green); }
.w-nav.is-scrolled .w-button-small:hover { background: #286c4e; }
/* Form and footer small print was 8-9px; 13-14px is the readable floor. */
.w-form label { font-size: 14px; font-weight: 600; }
.w-consent { font-size: 13px !important; }
.w-form-head small { font-size: 12px; letter-spacing: .08em; }
.w-form-head strong { font-stretch: 112%; font-weight: 800; }
.w-form-head>span { max-width: 190px; color: var(--w-mute); font-size: 13px; }
.w-footer>div { flex-wrap: wrap; font-size: 14px; font-weight: 500; }
.w-footer small { font-size: 13px; }
/* Final nav CTA: mint reads on the dark hero, the fern panel and the scrolled bar alike. */
.w-nav .w-button-small, .w-nav.is-scrolled .w-button-small { color: var(--w-ink) !important; background: var(--w-mint); border-color: var(--w-mint); white-space: nowrap; }
.w-nav .w-button-small:hover, .w-nav.is-scrolled .w-button-small:hover { color: var(--w-ink) !important; background: #a9dfc2; }
.w-brand { white-space: nowrap; }
@media (max-width: 480px) { .w-brand { font-size: 15px; } .w-nav .w-button-small { padding: 10px 16px; font-size: 14px; } }
/* Sticky navs (solution and legal pages) kept the fixed nav's left:50% + translateX(-50%), which
   shifts a sticky element half off-screen. Pre-existing on the live site; found 2026-11-16. */
.solution-site .w-nav, .legal-site .w-nav { left: auto; margin: 0 auto; transform: none; }
/* Legal pages are light; their nav text is light. A permanent dark bar keeps it readable (pre-existing). */
.legal-site .w-nav { background: var(--w-ink); }
@media (max-width: 480px) { .w-nav .w-button-small > span { display: none; } .w-nav-actions { gap: 6px; } }

/* ============================================================
   Staff app, 2026 design (phase 2, 2026-11-16)
   The palette lives in the :root and dark tokens at the top of this file;
   this block carries type and shape. Archivo is loaded by js/theme.js on
   staff pages only. Every display rule is scoped away from the public site
   (.world-site) and the club storefronts (.portal-page, .shop-page), which
   keep their own type until phase 3.
   ============================================================ */
:where(body:not(.world-site, .portal-page, .shop-page)) :is(h1, h2) {
  font-family: Archivo, "Arial Black", "Segoe UI", sans-serif;
  font-stretch: 112%;
  font-weight: 800;
  letter-spacing: -.01em;
}
:where(body:not(.world-site, .portal-page, .shop-page)) h1 { font-stretch: 125%; line-height: 1.05; }
.home-intro h1, .login-card h1, .ops-page-head h1, body:not(.portal-page) .delivery-menu-head h1, .dispatch-page-head h1 { letter-spacing: -.01em; }
.eyebrow { color: var(--accent); font-size: 13px; font-weight: 650; letter-spacing: 0; text-transform: none; }

/* Brand: the fern 4·20 mark from the public site */
.brand::before { color: #fff; background: var(--forest-700); border-radius: 10px; box-shadow: none; font-family: Archivo, "Arial Black", sans-serif; font-size: 11px; letter-spacing: 0; }
.brand[data-page] > span { font-family: Archivo, "Arial Black", "Segoe UI", sans-serif; font-stretch: 125%; font-weight: 800; letter-spacing: 0; }

/* Buttons: pill, as on the public site */
.btn { border-radius: 999px; box-shadow: none; font-weight: 650; }
.btn:hover:not(:disabled) { box-shadow: 0 8px 20px rgba(20, 24, 27, .16); }
.mini { border-radius: 999px; }

/* Surfaces */
.tile { border-radius: 20px; }
.tile.featured { box-shadow: 0 14px 34px rgba(20, 24, 27, .22); }
.tile.featured .ic { color: var(--sage-300); }
.tile-copy strong { letter-spacing: -.01em; }
.panel, .card, .ui-surface, .record-card, .table-shell { border-radius: 16px; }

/* Desktop rail: the current page is a dark-grey row with a mint marker.
   Before this, light mode painted --heading (near-black) text on --forest-950 (near-black). */
.dispatch-rail-group a[aria-current="page"] { color: #fff; background: var(--forest-950); box-shadow: inset 3px 0 var(--sage-300); }
.dispatch-rail-group a[aria-current="page"]::before { background: var(--sage-300); border-color: var(--sage-300); }
html[data-theme="dark"] .dispatch-rail-group a[aria-current="page"] { background: var(--accent-soft-strong); }
.dispatch-rail-brand small { color: var(--sage-300); }
.login-brand::before { color: #fff; background: var(--forest-700); border-radius: 11px; box-shadow: none; font-family: Archivo, "Arial Black", sans-serif; letter-spacing: 0; }
.login-brand { font-family: Archivo, "Arial Black", "Segoe UI", sans-serif; font-stretch: 125%; font-weight: 800; }
/* ---- Platform admin sections (2026-11-18) ----------------------------------------------
   Same shape as the Tshana Kitchen admin: a section nav beside one section at a time, chosen
   by the URL hash (js/admin-nav.js). Theme tokens only, so the owner's theme and dark mode
   carry through. Scoped to body.adm420-page. */
.adm420-page .adm420:not(.hidden) { display: grid; gap: 22px; align-items: start; }
.adm420-page [data-adm-tab][hidden] { display: none !important; }
.adm420-page .adm420-main { min-width: 0; }
.adm420-page .adm420-tab { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.adm420-page .adm420-tab > section, .adm420-page .adm420-tab > div { margin: 0; }
.adm420-page .adm420-tools { margin-bottom: 0; }
.adm420-page #admTitle:focus { outline: none; }
.adm420-page #admTitle:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

.adm420-nav { position: sticky; top: 0; z-index: 20; display: flex; gap: 4px; margin: 0 -4px; padding: 6px 4px; overflow-x: auto; background: var(--bg); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.adm420-nav::-webkit-scrollbar { display: none; }
.adm420-nav-head { display: none; }
.adm420-link { position: relative; min-height: 40px; display: inline-flex; flex: 0 0 auto; align-items: center; gap: 9px; padding: 8px 12px; color: var(--muted); border-radius: 8px; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.adm420-link svg { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.adm420-link:hover { color: var(--heading); background: var(--accent-soft); }
.adm420-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.adm420-link[aria-current="page"] { color: var(--heading); background: var(--accent-soft-strong); box-shadow: inset 0 -2px var(--accent); }
.adm420-count { min-width: 22px; margin-left: auto; padding: 2px 7px; color: var(--accent-strong); background: var(--accent-soft); border-radius: 999px; font-size: 11px; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
.adm420-count.warn { color: #835614; background: var(--amber-100); }
.adm420-count.quiet { color: var(--muted); background: var(--surface-soft); }
.adm420-count[hidden] { display: none; }

/* The shared admin layout's four headline tiles (2026-11-18): customers, leads, monthly recurring, health; each links to its section. */
.adm420-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px; }
.adm420-kpi { display: grid; gap: 2px; padding: 14px 16px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-xs); text-decoration: none; transition: border-color .15s ease; }
.adm420-kpi:hover { border-color: var(--accent); }
.adm420-kpi:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.adm420-kpi-label { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.adm420-kpi strong { color: var(--heading); font-size: 26px; font-weight: 820; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.adm420-kpi small { color: var(--muted); font-size: 12px; }
@media (min-width: 1100px) { .adm420-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.adm420-settings { display: grid; gap: 18px; }
.adm420-settings .admin-actions { justify-content: flex-start; margin-bottom: 0; }

@media (min-width: 1024px) {
  .adm420-page .adm420:not(.hidden) { grid-template-columns: 228px minmax(0, 1fr); gap: 32px; }
  .adm420-nav { top: 16px; flex-direction: column; gap: 2px; margin: 0; padding: 0 0 14px; overflow: visible; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-xs); }
  .adm420-nav-head { display: grid; gap: 1px; margin-bottom: 8px; padding: 12px 14px; color: var(--cream-50); background: var(--forest-950); border-radius: 11px 11px 0 0; }
  .adm420-nav-head span { font-size: 14px; font-weight: 820; letter-spacing: -.02em; }
  .adm420-nav-head small { color: var(--sage-300); font-size: 9px; font-weight: 780; letter-spacing: .12em; text-transform: uppercase; }
  .adm420-link { display: flex; margin: 0 8px; }
  .adm420-link[aria-current="page"] { box-shadow: inset 3px 0 var(--accent); }
  .adm420-settings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adm420-settings > section:last-child { grid-column: 1 / -1; max-width: 560px; }
}
