/* site-theme.css: the customer site in the SHARP app's look (14 Oct 2026).
   ────────────────────────────────────────────────────────────────────────────
   Loaded after styles.css by index.html. LOOK ONLY: nothing here changes what
   a button does, what an order costs or who can see what. Every id, class and
   data-attribute script.js relies on is unchanged; this file only restyles
   them, plus the app-style tab bar (.tabbar, site-nav.js) and the journey
   chips (.journey-chips) that index.html adds.

   TOKENS. The app's dark palette (sharp_merged_app lib/design/tokens.ts), the
   same values as Admin shell v2 in styles.css: ink #07060A, surfaces #121017 /
   #1B1822 / #26222F, hairline #2F2A3A, text #F5F3F8 / #B9B3C4 / #8F889C,
   purple #8B3FC4 (fills), lilac #C9A0F2 (text). Font Inter.

   --primary IS LILAC HERE. On ink, purple TEXT is 3.5:1, under AA's 4.5:1, and
   the site colours text with var(--primary) about 120 times (styles.css and
   script.js) against about 40 fills. So --primary becomes the text colour
   (lilac, 9:1 on ink) and every purple FILL is switched to --brand below,
   white on #8B3FC4 being 5.8:1. Admin is untouched: #adminModal/#kitchenModal
   with .ash-on set their own tokens (styles.css), and the admin-only pop-ups
   script.js builds get the original light tokens back at the end of the
   TOKENS block. tests/site-theme.test.js checks every text/surface pair. */

/* ── TOKENS ─────────────────────────────────────────────────────────────── */
body {
  --ink: #07060A; --s1: #121017; --s2: #1B1822; --s3: #26222F; --hair: #2F2A3A;
  --text: #F5F3F8; --text2: #B9B3C4; --text3: #8F889C;
  --brand: #8B3FC4; --brand-pressed: #7432A6; --lilac: #C9A0F2; --accent-wash: #2A1B3A;
  --ok: #4ADE80; --warn: #FBBF24; --bad: #F87171;
  --ok-wash: #10261A; --warn-wash: #2B2110; --bad-wash: #2E1416;
  --tabbar-h: 0px;

  --primary: var(--lilac); --primary-dark: var(--brand-pressed); --primary-light: var(--lilac);
  --bg: var(--ink); --bg-alt: var(--ink); --bg-dark: var(--ink);
  --surface: var(--s2); --card: var(--s1);
  --foreground: var(--text); --foreground-dark: var(--text); --muted: var(--text2);
  --border: var(--hair); --success: var(--ok); --error: var(--bad);
  --shadow: none; --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
  --radius: 14px; --radius-lg: 20px;

  color-scheme: dark;
  background: var(--ink); color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
/* Admin-only screens keep the site's original light tokens (until admin
   shell v2 has marked its two modals .ash-on, which set the app's own). */
#adminModal:not(.ash-on), #kitchenModal:not(.ash-on),
#clientAdminModal, #splitOrderModal, #stockEditorModal, #assignClientModal, #rcOverlay {
  --primary: #7B2D8E; --primary-dark: #5E1F6E; --primary-light: #9B4DCA;
  --bg: #ffffff; --bg-alt: #F5F5F5; --bg-dark: #0D0D0D; --surface: #F5F5F5; --card: #ffffff;
  --foreground: #111111; --foreground-dark: #F0F0F0; --muted: #666666; --border: #E0E0E0;
  --success: #22C55E; --error: #EF4444;
  --shadow: 0 2px 12px rgba(0,0,0,0.08); --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 12px; color-scheme: light; color: var(--foreground);
}
::selection { background: var(--brand); color: #fff; }

/* ── FOCUS AND TAP TARGETS (customer surfaces only) ───────────────────────── */
:is(.navbar, .tabbar, .acct-sheet, body > section, .footer, #authModal, #portalModal, #resetPasswordModal,
    #cartDrawer, #floatingCart, #wholesaleModal, #dishLightbox, #paymentModal, #weeklyProgramModal,
    #macroPopup, #macroCalcModal, #checkinModal, #sppPickModal, #sppPlanModal, #sppDayModal, #sppNotice)
  :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible,
#floatingCart:focus-visible, #stickyOrderBtn:focus-visible, #backToTop:focus-visible {
  outline: 2px solid var(--lilac); outline-offset: 2px;
}

/* ── TOP BAR ─────────────────────────────────────────────────────────────── */
.navbar {
  background: rgba(7,6,10,0.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hair);
}
.navbar.scrolled { box-shadow: none; }
.nav-container { height: 64px; padding: 0 20px; }
.nav-logo { display: inline-flex; align-items: center; min-height: 44px; }
.nav-logo-img { height: 40px; border-radius: 10px; background: #fff; padding: 3px; }
.nav-links { gap: 4px; }
.nav-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--text2); font-size: 14px; font-weight: 600; border-radius: 10px;
}
.nav-link:hover { color: var(--text); background: var(--s1); }
.nav-link.active { color: var(--text); box-shadow: inset 0 -2px 0 var(--lilac); border-radius: 0; }
.nav-cta, .nav-link.nav-cta {
  background: var(--brand); color: #fff !important; padding: 0 18px; margin-left: 8px;
  border-radius: 100px; box-shadow: none;
}
.nav-cta:hover, .nav-link.nav-cta:hover { background: var(--brand-pressed); }
.nav-auth { margin-left: 8px; }
.nav-auth .btn-outline-dark { min-height: 44px; }
.nav-user-btn { min-height: 44px; color: var(--text); }
.nav-user-btn:hover { background: var(--s1); }
.nav-user-avatar, .portal-avatar { background: var(--brand); color: #fff; }
.nav-dropdown { background: var(--s2); border: 1px solid var(--hair); border-radius: 14px; overflow: hidden; }
.nav-dropdown-item { min-height: 48px; color: var(--text); }
.nav-dropdown-item:hover { background: var(--s3); }
.nav-dropdown-danger { color: var(--bad); }
.nav-dropdown-danger:hover { background: var(--bad-wash); }
.nav-toggle { min-width: 44px; min-height: 44px; display: none; align-items: center; justify-content: center; flex-direction: column; }
.nav-toggle span { background: var(--text); }

@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    top: 64px; background: var(--s1); border-bottom: 1px solid var(--hair);
    padding: 8px 16px 16px; gap: 2px; align-items: stretch;
    max-height: calc(100dvh - 64px - var(--tabbar-h)); overflow-y: auto;
  }
  .nav-link { min-height: 48px; padding: 0 12px; font-size: 16px; }
  .nav-link.active { box-shadow: none; background: var(--accent-wash); border-radius: 10px; }
  .nav-cta, .nav-link.nav-cta { justify-content: center; margin: 8px 0 0; }
  .nav-auth { margin: 8px 0 0; }
  .nav-auth .btn-outline-dark { width: 100%; justify-content: center; }
}

/* ── BOTTOM TAB BAR (phones; the app's tab bar) ──────────────────────────── */
.tabbar { display: none; }
@media (max-width: 768px) {
  body { --tabbar-h: calc(60px + env(safe-area-inset-bottom)); padding-bottom: var(--tabbar-h); }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1400;
    height: var(--tabbar-h); padding: 0 4px env(safe-area-inset-bottom);
    background: rgba(7,6,10,0.96); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid var(--hair);
  }
  .tabbar-item {
    flex: 1 1 0; min-width: 0; min-height: 56px; margin: 2px 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    background: none; border: 0; border-radius: 12px; cursor: pointer;
    color: var(--text3); font-family: inherit; font-size: 11px; font-weight: 600; line-height: 1.1; letter-spacing: 0.01em; text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }
  .tabbar-item svg { width: 24px; height: 24px; flex: none; }
  .tabbar-item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabbar-item[aria-current="true"], .tabbar-item[aria-current="page"] { color: var(--lilac); }
  .tabbar-item:active { background: var(--s1); }
  /* Things that floated at the bottom sit above the bar. */
  .floating-cart { bottom: calc(var(--tabbar-h) + 16px); right: 16px; }
  /* The tab bar does their jobs on a phone (Meal Prep; Home goes to the top),
     and they covered the order builder's + buttons. */
  #stickyOrderBtn, #backToTop { display: none !important; }
  .cart-drawer { padding-bottom: env(safe-area-inset-bottom); }
}
/* The meals-only view (/?view=meals) keeps Meal Prep and Account only; the
   others carry data-not-meals, which styles.css hides there. */

/* The account sheet the Account tab opens when signed in (site-nav.js). */
.acct-sheet-scrim { position: fixed; inset: 0; z-index: 2100; background: rgba(0,0,0,0.6); }
.acct-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 2101;
  background: var(--s2); border-radius: 20px 20px 0 0; padding: 8px 12px calc(16px + env(safe-area-inset-bottom));
  max-width: 520px; margin: 0 auto;
}
.acct-sheet h2 { font-size: 13px; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: 0.06em; padding: 14px 12px 6px; }
.acct-sheet button {
  display: flex; align-items: center; width: 100%; min-height: 52px; padding: 0 12px;
  background: none; border: 0; border-radius: 12px; color: var(--text); font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1.2; text-align: left; cursor: pointer;
}
.acct-sheet button:hover, .acct-sheet button:active { background: var(--s3); }
.acct-sheet button.danger { color: var(--bad); }
.acct-sheet hr { border: 0; border-top: 1px solid var(--hair); margin: 6px 12px; }

/* ── HERO ────────────────────────────────────────────────────────────────── */
.hero { min-height: min(100vh, 860px); min-height: min(100dvh, 860px); }
.hero-overlay { background: linear-gradient(180deg, rgba(7,6,10,0.55) 0%, rgba(7,6,10,0.78) 60%, #07060A 100%); }
.hero-content { padding: 96px 20px 48px; }
.hero-logo { height: 112px; border-radius: 22px; background: #fff; padding: 10px; }
.hero-title { font-weight: 900; letter-spacing: -0.035em; color: var(--text); }
.hero-subtitle { color: var(--lilac); font-weight: 600; font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; }
.hero-story { color: var(--text); }
.hero-actions .btn { min-height: 52px; }
.btn-outline { border: 1px solid rgba(245,243,248,0.4); color: var(--text); }
.btn-outline:hover { border-color: var(--text); background: rgba(245,243,248,0.08); }

/* ── BUTTONS (customer surfaces; admin keeps its own) ────────────────────── */
:is(.navbar, body > section, .footer, #authModal, #portalModal, #resetPasswordModal, #cartDrawer, #wholesaleModal,
    #paymentModal, #weeklyProgramModal, #macroPopup, #macroCalcModal, #checkinModal, #sppPickModal, #sppPlanModal, #sppDayModal, #sppNotice)
  :is(.btn, .btn-outline-dark) { min-height: 44px; justify-content: center; }
:is(.navbar, body > section, .footer, #authModal, #portalModal, #resetPasswordModal, #cartDrawer, #wholesaleModal,
    #paymentModal, #weeklyProgramModal, #macroPopup, #macroCalcModal, #checkinModal, #sppPickModal, #sppPlanModal, #sppDayModal, #sppNotice)
  .btn-primary { background: var(--brand); color: #fff; }
:is(.navbar, body > section, .footer, #authModal, #portalModal, #resetPasswordModal, #cartDrawer, #wholesaleModal,
    #paymentModal, #weeklyProgramModal, #macroPopup, #macroCalcModal, #checkinModal, #sppPickModal, #sppPlanModal, #sppDayModal, #sppNotice)
  .btn-primary:hover { background: var(--brand-pressed); transform: none; }
:is(.navbar, body > section, .footer, #authModal, #portalModal, #resetPasswordModal, #cartDrawer, #wholesaleModal,
    #paymentModal, #weeklyProgramModal, #macroPopup, #macroCalcModal, #checkinModal, #sppPickModal, #sppPlanModal, #sppDayModal, #sppNotice)
  .btn-outline-dark {
  display: inline-flex; align-items: center; background: var(--s2); color: var(--text);
  border: 1px solid var(--hair); padding: 10px 18px; font-size: 14px;
}
:is(.navbar, body > section, .footer, #authModal, #portalModal, #resetPasswordModal, #cartDrawer, #wholesaleModal,
    #paymentModal, #weeklyProgramModal, #macroPopup, #macroCalcModal, #checkinModal, #sppPickModal, #sppPlanModal, #sppDayModal, #sppNotice)
  .btn-outline-dark:hover { background: var(--s3); border-color: var(--lilac); color: var(--text); }
.btn-sm { font-size: 14px; }
.btn-spotify { color: #07060A; }

/* ── SECTIONS ────────────────────────────────────────────────────────────── */
.section { padding: 72px 0; }
.section-alt, .section-dark { background: var(--ink); color: var(--text); }
body > .section + .section, body > .stats-bar + .section { border-top: 1px solid var(--hair); }
.container { padding: 0 20px; }
.section-header { margin-bottom: 40px; }
.section-title, .section-dark .section-title { color: var(--text); font-weight: 800; letter-spacing: -0.03em; }
.section-subtitle, .section-dark .section-subtitle { color: var(--text2); }
.spp-logo { border-radius: 14px; background: #fff; padding: 6px; }
@media (max-width: 768px) {
  .section { padding: 48px 0; }
  .section-title { font-size: 28px; }
  .section-header { margin-bottom: 28px; }
}

/* Journey chips: the sub-navigation at the top of Coaching and Meal Prep. */
.journey-chips {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 20px 0 0; padding: 0; list-style: none;
}
.journey-chips a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 100px;
  background: var(--s1); color: var(--text); font-size: 14px; font-weight: 600; border: 1px solid var(--hair);
}
.journey-chips a:hover { border-color: var(--lilac); background: var(--accent-wash); }
.journey-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; color: var(--lilac);
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px;
}
@media (max-width: 560px) {
  .journey-chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 16px -20px 0; padding: 0 20px 4px; scrollbar-width: none; }
  .journey-chips::-webkit-scrollbar { display: none; }
  .journey-chips a { flex: none; }
}

/* ── STATS (the app's big numbers) ───────────────────────────────────────── */
.stats-bar { background: var(--ink); padding: 8px 0 40px; }
.stats-grid { gap: 12px; }
.stat-item { background: var(--s1); border-radius: 20px; padding: 18px 12px; }
.stat-number { color: var(--lilac); font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.stat-label { color: var(--text2); }

/* ── CARDS (elevation, not borders) ──────────────────────────────────────── */
.program-card, .merch-card, .session-card, .contact-form-wrapper, .order-info, .book-card,
.delivery-zones-section, .faq-item, .menu-item, .ob-state {
  background: var(--s1); border: 1px solid transparent; box-shadow: none;
}
.program-card { border-radius: 20px; padding: 24px; }
.program-card:hover, .merch-card:hover { transform: none; box-shadow: none; border-color: var(--hair); }
.program-badge, .signed-badge {
  background: var(--accent-wash); color: var(--lilac); letter-spacing: 0.06em;
}
.meta-tag { background: var(--s2); color: var(--text2); }
.program-price, .session-price, .book-price, .merch-price, .portal-order-price { color: var(--text); }
.program-price .price-note { color: var(--text2); }
.coaching-list li::before { color: var(--lilac); }
.program-note { color: var(--text2); font-style: normal; background: var(--s1); border-radius: 14px; padding: 16px 18px; text-align: left; }
.session-card:hover { border-color: var(--hair); }
.delivery-zone-card { background: var(--s2); border-color: transparent; }
.delivery-zones-section { margin: 0 auto; }
.delivery-zones-footer { background: var(--accent-wash); border-color: transparent; }
.menu-item { border-radius: 14px; min-height: 56px; }
.menu-item:hover { border-color: var(--hair); color: var(--text); }
.menu-item.has-photo { border-color: var(--hair); }
.menu-camera { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; opacity: 0.6; }
.menu-item-name { min-height: 44px; display: flex; align-items: center; }
.faq-item { border-radius: 14px; }
.faq-question { min-height: 56px; }

/* Starter (the free program): a lilac-edged card, so it reads as its own door. */
.starter-card { background: var(--s1); border: 1px solid var(--accent-wash); box-shadow: inset 0 0 0 1px rgba(201,160,242,0.18); }
.starter-card .program-name { color: var(--text); }
.starter-card .program-desc, .starter-form .form-group label, .starter-consent { color: var(--text2); }
.starter-consent { min-height: 44px; }
.starter-consent input { width: 20px; height: 20px; accent-color: var(--brand); }
.starter-msg.is-error { color: var(--bad); }
.starter-msg.is-ok { color: var(--ok); }

/* About stays photographic. */
.story-content h3 { color: var(--text); }
.story-content p { color: var(--text2); }
.lift-stat { background: var(--s1); }
.lift-number { color: var(--lilac); }
.lift-name, .quote-section cite { color: var(--text3); }
.quote-section blockquote p { color: var(--text); }

/* ── FORMS (customer surfaces) ───────────────────────────────────────────── */
:is(body > section, #authModal, #portalModal, #resetPasswordModal, #cartDrawer, #wholesaleModal,
    #paymentModal, #weeklyProgramModal, #macroPopup, #macroCalcModal, #checkinModal, #sppPickModal, #sppPlanModal, #sppDayModal)
  :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]), select, textarea) {
  background-color: var(--s2); color: var(--text); border: 1px solid var(--hair); border-radius: 12px; min-height: 44px;
}
:is(body > section, #authModal, #portalModal, #resetPasswordModal, #cartDrawer, #wholesaleModal,
    #paymentModal, #weeklyProgramModal, #macroPopup, #macroCalcModal, #checkinModal, #sppPickModal, #sppPlanModal, #sppDayModal)
  :is(input, select, textarea):focus { border-color: var(--lilac); box-shadow: 0 0 0 3px rgba(201,160,242,0.25); }
:is(body > section, #authModal, #portalModal, #resetPasswordModal, #cartDrawer) ::placeholder { color: var(--text3); opacity: 1; }
:is(body > section, #authModal, #portalModal, #resetPasswordModal, #cartDrawer, #checkinModal, #weeklyProgramModal) input:is([type="checkbox"], [type="radio"]) { accent-color: var(--brand); }
.form-group label { color: var(--text2); }

/* ── ORDER BUILDER (look only; the controls and their ids are untouched) ─── */
.ob-dish { border-bottom-color: var(--hair); }
.ob-stepper button { width: 44px; height: 44px; border-radius: 12px; background: var(--s2); border-color: var(--hair); }
.ob-stepper button:hover:not(:disabled) { border-color: var(--lilac); color: var(--lilac); }
.ob-lineaddon { min-height: 44px; padding: 6px 12px; background: var(--s2); border-color: var(--hair); }
.ob-lineaddon.on { background: var(--accent-wash); border-color: var(--lilac); }
.ob-reduced { min-height: 44px; }
.ob-warn, .ob-state.bad { color: var(--warn); }
.ob-state.bad strong { color: var(--warn); }
.ob-warn { background: var(--warn-wash); }
.ob-grand { color: var(--ok); }
.order-info { border-radius: 20px; }
.order-info-item a { color: var(--lilac); }

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
.footer { background: var(--ink); border-top: 1px solid var(--hair); padding: 48px 0 32px; }
.footer-logo { filter: none; background: #fff; border-radius: 10px; padding: 3px; }
.footer-brand p, .footer-links a, .footer-contact a { color: var(--text2); }
.footer-links h4, .footer-contact h4 { color: var(--text); }
.footer-links a, .footer-contact a { display: flex; align-items: center; min-height: 44px; margin: 0; }
.footer-links a:hover, .footer-contact a:hover { color: var(--lilac); }
.footer-bottom { border-top-color: var(--hair); }
.footer-bottom p, .footer-bottom a { color: var(--text3) !important; }
.footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; }

/* ── CART, MODALS, ACCOUNT ───────────────────────────────────────────────── */
.cart-drawer { background: var(--ink); border-left: 1px solid var(--hair); }
.cart-header { border-bottom-color: var(--hair); }
.cart-close, .modal-close, .auth-modal-close { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--text2); }
.cart-qty-btn { width: 44px; height: 44px; border-radius: 12px; background: var(--s2); border-color: var(--hair); }
.cart-qty-btn:hover:not(:disabled) { border-color: var(--lilac); color: var(--lilac); }
.cart-item { border-bottom-color: var(--hair); }
.cart-item-remove { min-width: 44px; min-height: 44px; }
.floating-cart { background: var(--brand); box-shadow: 0 8px 28px rgba(139,63,196,0.45); }
.floating-cart:hover { background: var(--brand-pressed); }
.cart-count { background: var(--bad); color: #07060A; }
#stickyOrderBtn { background: var(--brand) !important; box-shadow: 0 8px 28px rgba(139,63,196,0.45) !important; min-height: 48px; }
#backToTop { background: var(--s2) !important; }

.auth-modal, .portal-modal, .dish-lightbox { background: var(--s1); border: 1px solid var(--hair); }
.auth-logo img { background: #fff; }
.auth-error { background: var(--bad-wash); border-color: rgba(248,113,113,0.4); color: var(--bad); }
.auth-success { background: var(--ok-wash); border-color: rgba(74,222,128,0.4); color: var(--ok); }
.auth-switch a, .auth-switch button { color: var(--lilac); }
.portal-header { border-bottom-color: var(--hair); }
.portal-welcome { background: var(--s2); }
.portal-tab { min-height: 44px; color: var(--text2); }
.portal-tab.active { color: var(--lilac); border-bottom-color: var(--lilac); }
.portal-order-card { background: var(--s2); border-color: transparent; }
.status-pending { background: var(--warn-wash); color: var(--warn); }
.status-confirmed { background: var(--ok-wash); color: var(--ok); }
.status-complete { background: var(--accent-wash); color: var(--lilac); }
.portal-error { background: var(--bad-wash); border-color: rgba(248,113,113,0.4); color: var(--bad); }
.portal-error p, .portal-error-detail { color: var(--bad) !important; }
.dish-lightbox-close { background: rgba(7,6,10,0.7); }
@media (max-width: 768px) {
  /* Phone: the account and portal open as full sheets, like the app. */
  .portal-modal { width: 100%; max-width: none; max-height: calc(100dvh - 24px); top: auto; bottom: 0; left: 0;
    transform: translateY(16px); border-radius: 20px 20px 0 0; }
  .portal-modal.open { transform: none; }
}

/* ── TEXT COLOURS script.js WRITES INLINE, MADE READABLE ON INK ──────────────
   Written for a white page. Scoped to customer surfaces; admin has its own. A
   style set from JS (el.style.color = '#b45309') is serialised as rgb(), so
   both spellings are matched. */
:is(body > section, #portalModal, #cartDrawer, #wholesaleModal, #paymentModal, #weeklyProgramModal, #macroPopup,
    #macroCalcModal, #checkinModal, #sppPickModal, #sppPlanModal, #sppDayModal, #sppNotice, #authModal)
  :is([style*="color:#b45309"], [style*="color: #b45309"], [style*="color: rgb(180, 83, 9)"]) { color: var(--warn) !important; }
:is(body > section, #portalModal, #cartDrawer, #wholesaleModal, #paymentModal, #weeklyProgramModal, #macroPopup,
    #macroCalcModal, #checkinModal, #sppPickModal, #sppPlanModal, #sppDayModal, #sppNotice, #authModal)
  :is([style*="color:#ef4444"], [style*="color: rgb(239, 68, 68)"], [style*="color:#b91c1c"], [style*="color:#dc2626"]):not([style*="background:#ef4444"]) { color: var(--bad) !important; }
:is(body > section, #portalModal, #cartDrawer, #wholesaleModal, #paymentModal, #weeklyProgramModal, #macroPopup,
    #macroCalcModal, #checkinModal, #sppPickModal, #sppPlanModal, #sppDayModal, #sppNotice, #authModal)
  :is([style*="color:#15803d"], [style*="color:#16a34a"], [style*="color:#166534"]) { color: var(--ok) !important; }
:is(body > section, #portalModal, #cartDrawer, #wholesaleModal, #paymentModal, #weeklyProgramModal, #macroPopup,
    #macroCalcModal, #checkinModal, #sppPickModal, #sppPlanModal, #sppDayModal, #sppNotice, #authModal)
  [style*="color:#a855f7"] { color: var(--lilac) !important; }
/* A purple FILL written inline as var(--primary) stays purple (--primary is
   lilac here) so its white text keeps 5.8:1. */
:is(body > section, #portalModal, #cartDrawer, #wholesaleModal, #paymentModal, #weeklyProgramModal, #macroPopup,
    #macroCalcModal, #checkinModal, #sppPickModal, #sppPlanModal, #sppDayModal, #sppNotice, #authModal, .navbar)
  :is([style*="background:var(--primary)"], [style*="background: var(--primary)"], [style*="background-color:var(--primary)"]) {
  background: var(--brand) !important;
}
:is(body > section, #portalModal, #cartDrawer, #wholesaleModal, #paymentModal, #weeklyProgramModal, #macroPopup,
    #macroCalcModal, #checkinModal, #sppPickModal, #sppPlanModal, #sppDayModal, #sppNotice, #authModal)
  [style*="linear-gradient(135deg,var(--primary)"] { background: var(--brand) !important; }

/* Selected choices drawn with purple washes keep lilac text on a purple wash. */
.fulfill-active, .pickup-gym-selected { background: var(--accent-wash) !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .program-card, .merch-card, .btn, .floating-cart { transition: none; }
}
.footer-links-sub { margin-top: 20px; }

/* ── MY ACCOUNT (14 Oct 2026): the app's list rows ───────────────────────── */
.acct-nav { display: flex; flex-direction: column; background: var(--s2); border-radius: 16px; overflow: hidden; margin: 0 0 20px; }
.acct-row {
  display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 52px; padding: 0 16px;
  background: none; border: 0; border-top: 1px solid var(--hair); color: var(--text); font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.2;
  text-align: left; cursor: pointer; text-decoration: none; margin-top: -1px; /* the first visible row's line is clipped by the box */
}
.acct-row::after { content: "›"; color: var(--text3); font-size: 20px; font-weight: 400; margin-left: 12px; }
.acct-row:hover, .acct-row:active { background: var(--s3); }
.acct-row[hidden] { display: none; }
.session-existing { margin-top: 16px; }
.session-existing[hidden] { display: none !important; }
/* Onboarding: the one next step, above the rows (training-account.js). */
.acct-next { display: flex; flex-direction: column; gap: 4px; padding: 16px; margin: 0 0 16px; border-radius: 16px; background: var(--accent-wash); border: 1px solid var(--brand); color: var(--text); text-decoration: none; }
.acct-next[hidden] { display: none !important; }
.acct-next-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lilac); }
.acct-next strong { font-size: 16px; line-height: 1.3; }
.acct-next-body { font-size: 14px; color: var(--text2); line-height: 1.4; }
.acct-next-go { margin-top: 8px; align-self: flex-start; min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 700; font-size: 15px; }
.acct-section { background: var(--s2); border-radius: 16px; padding: 16px; margin: 0 0 20px; }
.acct-section[hidden] { display: none; }
.acct-section-title { font-size: 13px; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
/* Hidden links stay hidden, whatever display their class gives them. */
.nav-link[hidden], .tabbar-item[hidden], .footer-links a[hidden], .acct-row[hidden] { display: none !important; }
.acct-block { background: var(--s2); border-radius: 16px; padding: 16px; margin: 0 0 20px; }
.acct-block h4 { margin-bottom: 4px; }
.acct-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.acct-danger-zone { margin-top: 24px; }
#portalModal .acct-danger-zone .btn-outline-dark { color: var(--bad); }
