/* ================================================================
   app.css — Global application styles
   All values use Momento design tokens from tokens.css
   ================================================================ */

html,
body {
  font-family: var(--font-body);
  /* The body/html must NEVER scroll — #main-scroll-container (height:100vh, overflow:auto) is the
     single, intended scroller. A soft-keyboard / viewport resize was scrolling the BODY by roughly
     the header height and never resetting it, which dragged #main-scroll-container (and every page's
     content) up behind the fixed header — the "header stuck under the menu" bug. Locking the body's
     overflow stops that scroll from ever happening. (Verified live via CDP: body.scrollTop drifted to
     ~88px after a keyboard cycle; with this lock it stays 0.) */
  overflow: hidden !important;
  height: 100%;
}

a,
.btn-link {
  color: var(--color-brand-primary);
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem var(--color-surface-default),
              0 0 0 0.25rem var(--color-brand-primary);
}

h1:focus {
  outline: none;
}

/* ── Validation states ──────────────────────────────────────── */
.valid.modified:not([type="checkbox"]) {
  outline: 1px solid var(--color-success);
}

.invalid {
  outline: 1px solid var(--color-error);
}

.validation-message {
  color: var(--color-error);
}

/* ── Error boundary ─────────────────────────────────────────── */
.blazor-error-boundary {
  background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=)
      no-repeat 1rem/1.8rem, #b32121;
  padding: 1rem 1rem 1rem 3.7rem;
  color: var(--color-surface-default);
}

.blazor-error-boundary::after {
  content: "An error has occurred.";
}

.darker-border-checkbox.form-check-input {
  border-color: var(--color-text-disabled);
}

/* ── Branded CTA trio (mudbutton-ui / -grey / -danger) ─────────────────────────
   IMPORTED VERBATIM from v3.0.2 app.css (Kelly, 2026-09-30: "Import ALL Primary, Secondary, and
   Tertiary button rules from v3.0.2 into v3.1"). This replaces v3.1's own pair: a pill
   (radius-full) with 24px side padding, a 104px min-width and no hover, in Helvetica Neue. It put
   a Helvetica Neue Submit beside an Inter Cancel/Delete in the same Profile row (rows #5 and #6).
   v3.0.2's note:
   THE canonical definition — v3.0.1 verbatim (Components/Login.css §"Primary CTA"
   + Pages/Profile.css for -danger). v3.0.1 declares the trio exactly once; do NOT
   re-declare these classes in a component file (that is what let three different
   button looks drift apart). Per-surface tweaks belong on a compound selector
   (e.g. `.fc-signin-sheet .mudbutton-ui`), never on the bare class.
   16px rounded-rect (NOT a pill), heading font, full width. Hover brightens 20%;
   press (darken + shrink) lives in PressFeedback.css and keyboard focus in
   Accessibility.css — one layer each. ── */
.mudbutton-ui,
.mudbutton-grey {
  display: flex; width: 100%; height: 56px; min-height: 56px;
  padding: var(--space-2) var(--space-2);
  justify-content: center; align-items: center; gap: var(--space-1);
  border-radius: var(--radius-lg);
  color: var(--color-surface-default);
  text-align: center; font-family: var(--font-heading);
  font-size: var(--text-action-md-size); font-weight: var(--fw-bold);
  line-height: var(--text-action-md-lh); letter-spacing: 0.2px;
  text-transform: none; border: none;
}
.mudbutton-ui { background: var(--color-brand-accent) !important; color: var(--color-surface-default) !important; }
.mudbutton-ui:hover { filter: brightness(1.2); }
.mudbutton-grey { background: var(--color-text-disabled) !important; color: var(--color-surface-default) !important; }

/* ── Destructive / danger button ─────────────────────────────
   The class was already REFERENCED by this file (the :focus-visible rule below and the
   :active/press rules further down) and by Accessibility.css and PressFeedback.css — but it was
   never DEFINED, so anything carrying it fell back to MudBlazor's filled default: a near-invisible
   rgba(0,0,0,.06) grey with dark grey text, i.e. a destructive CTA that reads as disabled.
   Values copied from v3.0.2's app.css so the two forks match exactly. Nothing else in this fork
   carries the class, so this rule reaches only the Delete Account confirm button. */
.mudbutton-danger {
  display: inline-flex;
  width: auto;
  flex: 1;
  min-width: 0;
  height: 56px;
  justify-content: center;
  align-items: center;
  gap: var(--space-1);
  border-radius: var(--radius-lg);
  /* !important, like .mudbutton-ui's (Kelly, 2026-09-30: "Upon button press it should be 20% darkened").
     Without it MudBlazor's `.mud-button-filled` hover/active/focus fill (rgba(0,0,0,.12)) replaced the red,
     so hover, press and focus turned the button pale grey and the 20% darken applied to the grey. v3.0.2
     has the same defect (Profile audit row #18). The fill now stays red; PressFeedback.css darkens it 20%. */
  background: #D32F2F !important;
  color: var(--color-surface-default);
  border: none;
  font-family: var(--font-heading);
  font-size: var(--text-body-md-size);
  font-weight: var(--fw-bold);
  cursor: pointer;
  transition: filter .12s ease;
}
.mudbutton-danger:hover { filter: brightness(1.2); }   /* all filled buttons brighten 20% on hover */
/* Disabled — the app's disabled Primary look (.mudbutton-grey's colours), no hover or press. Delete Account
   stays disabled until a password is typed (Kelly, 2026-09-30). Two classes + !important beat both the red
   above and MudBlazor's own `.mud-button-filled.mud-button-disabled` palette. */
.mudbutton-danger:disabled,
.mudbutton-danger.mud-button-disabled {
  background: var(--color-text-disabled) !important;
  color: var(--color-surface-default) !important;
  filter: none;
  cursor: not-allowed;
}

/* ── Icon-only buttons — Momento Buttons types 4 & 5 ─────────────────────────────────────────
   IMPORTED VERBATIM from v3.0.2 app.css (Kelly, 2026-09-30, same instruction as the trio above).
   v3.1 had only these types' states (PressFeedback.css transition + press), not the types
   themselves. No v3.1 screen uses them yet. v3.0.2's note:
   Added 2026-07-30. Momento's Buttons page (Figma node 2:2) defines FIVE button types; the two
   icon-only ones had no implementation here at all, so every icon button in the app was a
   hand-rolled one-off (.info-icon-container, .menu-btn, .fc-home-card-wish, .star-container-span,
   21 bare MudIconButtons). This is the shared type they should become.

   ⚠️ ACCESSIBILITY IS PART OF THIS TYPE, NOT OPTIONAL. Momento states it in red on the Buttons
   page: "Must label button function in code for accessibility and legal reasons. WCAG 1.1.1
   (Non-text Content) WCAG 4.1.2 (Name, Role, Value)." An icon-only button has no text node, so
   EVERY instance needs aria-label (or aria-labelledby). CSS cannot enforce it — reviewers must.

   VERIFIED from Figma: corner radius 16 (variable `Standard/Corner Radius/default`, bound directly
   on the icon-only Primary node) and the four square sizes below, read from the symbol dimensions.
   Note icon-only sizes are 56/48/36/24 — NOT the 56/48/40/36 that Text + Icon buttons use.
   NOT VERIFIED: the exact per-state fill/border hexes. The node's bound variables
   (`Pawn Marketplace-Primary #003776`, `Gray 3 #918f8f`, `focus 3`) do not map unambiguously to
   parts, so rather than invent values these reference the app's existing primary/secondary tokens —
   which also means they track whatever the unresolved "is Momento's primary blue or red?" question
   settles on, instead of hard-coding a second answer to it.

   Press comes free from PressFeedback.css's catch-all (darken + 1% shrink) and keyboard focus from
   Accessibility.css's 2px brand outline — these classes are deliberately NOT added to those files'
   exclusion lists. Momento's `focus: 3` suggests a 3px focus ring vs our 2px, but that is one
   app-wide value and not this type's call to change. ── */
.mudbutton-icon,
.mudbutton-icon-outlined {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 56px;                      /* Size=Large */
    height: 56px;
    padding: 0;
    border-radius: var(--radius-lg);  /* Figma: Standard/Corner Radius/default = 16 */
    font-size: 20px;
    line-height: 1;
    text-transform: none;
    cursor: pointer;
}

/* Type 4 — icon-only Primary/Filled */
.mudbutton-icon {
    background: var(--color-brand-accent) !important;
    color: var(--color-surface-default) !important;
    border: none;
}
.mudbutton-icon:hover { filter: brightness(1.2); }   /* same hover as .mudbutton-ui */
.mudbutton-icon:disabled {
    background: var(--color-text-disabled) !important;
    cursor: not-allowed;
}

/* Type 5 — icon-only Secondary/Outline */
.mudbutton-icon-outlined {
    background: var(--color-surface-default);
    color: var(--color-brand-primary);
    border: 1.5px solid var(--color-brand-primary);   /* same 1.5px as .fc-modal-cancel */
}
.mudbutton-icon-outlined:hover { background: var(--color-surface-subtle); }
.mudbutton-icon-outlined:disabled {
    border-color: var(--color-border);
    color: var(--color-text-disabled);
    cursor: not-allowed;
}

/* Sizes — Large is the default above. Small/XS drop to the 8px radius
   (Figma variable `Standard/Corner Radius/small`) so the corner stays proportional. */
.mudbutton-icon--md, .mudbutton-icon-outlined--md { width: 48px; height: 48px; font-size: 18px; }
.mudbutton-icon--sm, .mudbutton-icon-outlined--sm { width: 36px; height: 36px; font-size: 16px; border-radius: var(--radius-sm); }
.mudbutton-icon--xs, .mudbutton-icon-outlined--xs { width: 24px; height: 24px; font-size: 12px; border-radius: var(--radius-sm); }

/* ── Tertiary — Momento Buttons type 3 ───────────────────────────────────────────────────────
   PORTED VERBATIM from v3.0.2 app.css (2026-09-29, Kelly: "make sure the button rules exist — if it
   doesn't exist in this version, bring it in from v3.0.2"). v3.1 had only this type's states
   (PressFeedback.css: transition + hover fill); the base rule below was missing. v3.0.2's note:
   Added 2026-07-30. Read from Figma node 2528:177373 (Standard / Tertiary / Default / Large):
   56px tall, 16px padding, 16px radius, NO background and NO border, label #004faa Inter Bold
   16/24 with 0.2px tracking. Every one of those maps to an existing token, so nothing is
   hard-coded. Note this is a TEXT button — Momento's tertiary has no border, unlike v3.0.1's
   `.fc-lm-tertiary` which carried a 1.5px neutral border. Momento wins; v3.0.1 was wrong here.
   Sizes follow the Text + Icon scale (56/48/40/36), NOT the icon-only scale. ── */
.mudbutton-tertiary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    height: 56px;
    min-height: 56px;
    padding: var(--space-2);
    border-radius: var(--radius-lg);
    background: none;
    border: none;
    color: var(--color-brand-primary);
    font-family: var(--font-heading);
    font-size: var(--text-action-md-size);
    font-weight: var(--fw-bold);
    line-height: var(--text-action-md-lh);
    letter-spacing: 0.2px;
    text-transform: none;
    cursor: pointer;
}
.mudbutton-tertiary--md { height: 48px; min-height: 48px; }
.mudbutton-tertiary--sm { height: 40px; min-height: 40px; }
.mudbutton-tertiary--xs { height: 36px; min-height: 36px; }
.mudbutton-tertiary:disabled {
    color: var(--color-text-disabled);
    cursor: not-allowed;
}

/* ── Biometric / outlined button ──────────────────────────────────────────────
   IMPORTED from v3.0.2 app.css (Kelly, 2026-09-30): 16px rounded-rect and the heading font, like
   every other Secondary. v3.1 had it as a Helvetica Neue pill. v3.0.2's note:
   v3.0.2-only component (v3.0.1 has no biometric CTA), so there is no verbatim
   source. Geometry follows the design system's outlined-secondary pattern
   (.fc-modal-cancel / v3.0.1 .fc-sheet-cancel): 56px, radius-lg, heading font.
   Its 2px brand-accent border is its own identity. ── */
.bio-button {
  position: relative;
  width: 100%;
  height: 56px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--color-brand-accent);
  background-color: var(--color-surface-default);
  color: var(--color-brand-accent);
  font-family: var(--font-heading);
  font-size: var(--text-action-md-size);
  font-weight: var(--fw-bold);
  text-transform: none;
  overflow: hidden;
  margin-top: var(--space-1);
}
.bio-button:hover {
  background: var(--color-surface-default);
  color: var(--color-brand-accent);
}

.bio-button-content {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  position: relative;
}

.bio-button-text {
  flex: 1;
  text-align: center;
}

.bio-button .mud-icon {
  position: absolute;
  right: var(--space-2);
  color: var(--color-text-primary) !important;
}

/* ── Bottom drawer (shared base) ────────────────────────────── */
.custom-bottom-drawer {
  position: fixed !important;
  background-color: var(--color-drawer-bg);
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
  overflow: auto;
  overscroll-behavior: contain;
  transition: height 0.3s ease, transform 0.3s ease;
  z-index: 1300;
  margin: 0 !important;
  width: 100%;
  right: 0;
  height: auto;
  max-height: 90vh;
  max-height: 90dvh;
  min-width: 320px;
  gap: var(--space-2);
  /* Momento modal inset: 16px (--space-2) on all four sides, plus the system-navigation-bar inset
     at the bottom so the last content/buttons are never hidden behind the Android nav bar
     (3-button) or the iOS home indicator. --fc-bottom-inset is 0 on web / gesture-nav, so nothing
     extra is added there.
     FIXED 2026-09-30 (Kelly, Profile row #2, v3.0.2's own 2026-07-30 fix): this block also carried
     `padding: 0 !important`, which beat this declaration and both media-query copies below, so
     every sheet computed padding:0 and its buttons sat inside the home-indicator zone. That line
     is gone; the 16px now comes from the sheet, as in v3.0.2, and the content box below is 0. */
  padding: var(--space-2) var(--space-2) calc(var(--space-2) + var(--fc-bottom-inset));
}
/* The inset comes from the sheet above, not from the content (v3.0.2 ItemDetails.css: `.mud-drawer-content
   { padding: 0 }`). Scoped to bottom sheets: the app-wide 16px `.mud-drawer-content` rule in
   ItemDetails.css (row #60) still applies to every other MudDrawer. */
.custom-bottom-drawer .mud-drawer-content {
  padding: 0;
}

/* Pin the action buttons to the bottom of the drawer and bleed past the
   drawer's left/right/bottom padding so the bar's background fills the
   full width edge-to-edge. The matching inner padding keeps the buttons
   positioned the same as if they were inside the drawer's padding box. */
.custom-bottom-drawer #drawer-actions {
  position: sticky;
  bottom: 0;
  background: var(--color-drawer-bg);
  /* Bleed past the drawer's full bottom padding (incl. the nav-bar inset) so the bar background
     reaches the drawer's bottom edge, while the matching inner padding-bottom lifts the buttons
     above the system nav bar. */
  margin: var(--space-2) calc(-1 * var(--space-2)) calc(-1 * (var(--space-2) + var(--fc-bottom-inset)));
  padding: var(--space-2) var(--space-2) calc(var(--space-2) + var(--fc-bottom-inset));
  box-shadow: 0 -8px 12px -8px rgba(0, 0, 0, 0.08);
  z-index: 2;
}

/* ── iOS: never let the fixed tab bar paint over an open bottom sheet ─────────────────────────
   A sheet is z-index 1300 and the tab bar (.custom-tabs-p / .mud-tabs-toolbar) is only 1000, but
   on iOS that comparison never happens: the sheet's stacking context is trapped inside `.page`
   while the tab bar is a LATER SIBLING of `.page`, so WKWebView paints the bar on top and it
   covers whatever sits at the bottom of the sheet — which is exactly where #drawer-actions puts
   the Save/Cancel buttons. Android and web are unaffected either way.

   This was fixed three times as one-offs — .fc-signin-sheet (Login.css), #store-location-drawer
   (StoreLocator.css) and #sort-filter-drawer (below) — each added when QA hit that particular
   sheet. The six Profile drawers (preferred_language / firstname / lastname / phonenumber /
   password / delete-account, all `custom-bottom-drawer fc-web-modal`) were never in that list,
   which is what was reported on 2026-09-10: their action row disappears under the tab bar.
   Keyed on the shared `.custom-bottom-drawer` class instead of a fourth id, so every sheet —
   including sort-by, store-details and any drawer added later — is covered by construction.
   `.mud-tabs-toolbar` is unscoped to match the three existing rules; MudTabs is instantiated
   exactly once in the whole app (BottomDrawer's bottom nav), so it cannot hit in-page tabs.
   Same idea as `html.fc-keyboard-open .custom-tabs-p` in Home.css. */
html:has(.custom-bottom-drawer.drawer-open) .custom-tabs-p,
html:has(.custom-bottom-drawer.drawer-open) .mud-tabs-toolbar {
  display: none !important;
}

@media (max-width: 744px) {
  .custom-bottom-drawer {
    left: 0 !important;
  }
  /* Slide up smoothly from the bottom (the drawer is conditionally rendered, so it mounts already
     open — a CSS entrance animation gives it a smooth transition instead of just appearing). */
  .custom-bottom-drawer.drawer-open {
    padding: var(--space-2) var(--space-2) calc(var(--space-2) + var(--fc-bottom-inset));
    animation: fc-sheet-up 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
}

@media (min-width: 745px) {
  .custom-bottom-drawer {
    left: calc(50% - 359px) !important;
  }
  .custom-bottom-drawer.drawer-open {
    position: fixed !important;
    right: auto !important;
    width: 718px !important;
    overflow: auto !important;
    /* v3.0.2: 16px all round on desktop too — Momento specifies one modal inset, not a wider desktop one.
       This used to be --space-4 (32px) horizontally; the matching #drawer-actions left/right bleed
       override that paired with it was removed, since the base --space-2 bleed now matches. (Both
       were dead while the base rule's `padding: 0 !important` existed; removing that line would
       have switched the 32px on, so they follow v3.0.2 here.) */
    padding: var(--space-2) var(--space-2) calc(var(--space-2) + var(--fc-bottom-inset));
  }
}

/* ── Momento modal layout — every modal in the app (Kelly, 2026-10-01) ──────────────────────────
   Kelly: "The modal should have a higher index than the topheadernav. Nothing about the modal should
   be cut off, the internal content within the CTA button of the modal and the Header should scroll
   after a threshold." Then: all modals. Spec = Momento's Modals component (Figma
   Bz4REaHm6BEeFMM2ZYY20H, node 1820:167866): at most 800px tall, the Header and Button Row stay put,
   and the "Scrollable Content" between them scrolls once it passes 500px. Nothing may reach under
   the status bar either, so on a short phone the body simply scrolls sooner.
   App only: .has-bottomnav is MainLayout's native-host class. The web host is untouched. */

/* 1) Above the header. A sheet declared in a page renders inside #main-scroll-container, and while
      that element is a live iOS scroller nothing inside it paints over #native-sticky-header,
      whatever its z-index (Home.css, "the native header out-paints the scrim"). Freezing it while a
      modal is open (fc-modal-open, set by fcDialogA11y) lets the sheet and its scrim paint over the
      header like any fixed element. Measured on the iPhone 17 Pro with Sort & Filter forced to 800px:
      header over the sheet's title before, sheet over the header after; the page kept its scroll
      position. The photo viewer already does the same (ItemDetails.css, fc-lightbox-open).
      !important beats the inline `overflow-y: auto` on <main>. */
html.fc-modal-open .page.has-bottomnav #main-scroll-container {
  overflow: hidden !important;
}

/* 2) Sheets (MudDrawer .custom-bottom-drawer). The sheet itself no longer scrolls: ProfileMenuDrawer.css
      gives every sheet `overflow-y: auto !important`, so the whole sheet was the scroller and its header
      and buttons scrolled away with the content. */
html:has(.page.has-bottomnav) .custom-bottom-drawer {
  display: flex;
  flex-direction: column;
  overflow: hidden !important;
  max-height: min(800px, calc(100dvh - var(--fc-safe-top)));
}
/* MudBlazor gives .mud-drawer-content `flex: 0 0 auto`, so it could never shrink to the cap. */
html:has(.page.has-bottomnav) .custom-bottom-drawer > .mud-drawer-content {
  flex: 0 1 auto;
  min-height: 0;
}
/* Header, drag handle, dividers and button rows keep their height... */
html:has(.page.has-bottomnav) .custom-bottom-drawer > .mud-drawer-content > * {
  flex-shrink: 0;
}
/* ...and only each sheet's body scrolls, once it passes 500px: .mud-drawer-form = Sign In, Create
   Profile, the three CommonDrawer sheets and the six Profile sheets; .store-drawer-content = the
   store pop-up; .fc-filtermodal-body = Sort & Filter; #sort-options-section = Search Results' Sort By. */
html:has(.page.has-bottomnav) .custom-bottom-drawer :is(.mud-drawer-form, .store-drawer-content, .fc-filtermodal-body, #sort-options-section) {
  flex-shrink: 1;
  min-height: 0;
  max-height: 500px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
/* Wrappers between .mud-drawer-content and a body have to shrink too. Sort & Filter's
   .fc-filtermodal-shell already does (#sort-filter-drawer block below); Sort By's Apply button sits
   inside #sort-by-content, after the options, so it stays put while the options scroll. */
html:has(.page.has-bottomnav) #sort-by-drawer #sort-by-content {
  flex-shrink: 1;
  min-height: 0;
}
/* The store pop-up's action row carries `flex: 1` (StoreLocationDrawer.razor) for the web dialog's
   footer; in the sheet it must keep its own height. */
html:has(.page.has-bottomnav) #store-location-drawer .action-buttons-section {
  flex: 0 0 auto;
}

/* 3) Dialogs (MudDialog: Set Location, Stores Sort By, the confirm / policy / address dialogs, Face ID,
      version update). MudBlazor already keeps TitleContent and DialogActions outside the scrolling
      .mud-dialog-content; this adds the 800px and 500px limits. */
html:has(.page.has-bottomnav) .mud-dialog {
  max-height: min(800px, calc(100dvh - var(--fc-safe-top)));
}
html:has(.page.has-bottomnav) .mud-dialog .mud-dialog-content {
  max-height: 500px;
}

/* 4) The ☰ menu sheet (NativeHeader.razor, a plain div) is the one modal WITHOUT the 500px limit
      (Kelly, 2026-10-07: "fit the entire modal on screen"): it grows to show its whole list, up to the
      800px / screen cap. Only past that cap does the list scroll, so the menu header stays put. */
html:has(.page.has-bottomnav) .custom-drawer.fc-native-menu {
  max-height: min(800px, calc(100dvh - var(--fc-safe-top)));
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
html:has(.page.has-bottomnav) .fc-native-menu .drawer_items {
  flex: 0 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* ── Content padding ─────────────────────────────────────────── */
.overall-padding {
  padding-left: var(--space-2) !important;
  padding-right: var(--space-2) !important;
}

@media (min-width: 403px) and (max-width: 744px) {
  .overall-padding {
    padding-left: var(--space-2) !important;
    padding-right: var(--space-2) !important;
  }
}

@media (min-width: 745px) {
  .overall-padding {
    max-width: 1280px !important;
    margin: 0 auto;
  }
}

/* ── Scroll-to-top FAB ────────────────────────────────────────
   ONE definition for every scroll-to-top in the app, so the button is identical wherever it
   appears (Kelly, 2026-09-22: "the Go to Top button will be 1:1 to the Information Center Go to
   Top button"). Copied from v3.0.2's `.fc-info-fab` (its LegalInformation.razor), which is the
   Information Center button and therefore the reference: a 44px circle in brand accent with a
   20px white arrow, pinned 24px from the right and 88px up.

   It lives here rather than in a page's own <style> block because Topbar renders this button on
   every route — a page-scoped rule only applies while that page is mounted. Tokens, not the
   literals the Information Center's own copy uses (#B50407 / #ffffff), same resolved values.

   NOTE FOR PORTING: v3.0.2 removed the scroll-to-top from Topbar entirely on 2026-08-11, leaving
   the Information Center as the only place it exists. This fork still renders it on every route,
   so this rule makes those match rather than reintroducing v3.0.2's button. */
/* TWO SELECTORS, ONE RULE, AND BOTH ARE NEEDED — do not collapse this to a single class.
   A single `.fc-gototop-fab` (0,1,0) loses to two rules that both target this same element:
     • MudBlazor's `.mud-scroll-to-top.visible { right: 16px; bottom: 16px }` (0,2,0) — higher
       specificity, so it wins however late app.css loads. Measured: the FAB sat at 16/16.
     • Tooltip.css's `[data-tooltip] { position: relative }` (0,1,0) — equal specificity, but
       Tooltip.css is linked AFTER app.css, so source order hands it the win. That one is subtle:
       it only started applying when the tooltip was added to this button, and it knocked the FAB
       out of `position: fixed` into the page flow, where it rendered as an invisible sliver in the
       middle of the document (reported on the Information Center, 2026-09-22).
   Listing the compound selector alongside the plain one raises the whole block to (0,2,0) for the
   MudScrollToTop case while keeping it available to a plain <button class="fc-gototop-fab">.
   `position: fixed` still establishes the containing block the tooltip bubble anchors to, so the
   tooltip keeps working. */
.fc-gototop-fab,
.mud-scroll-to-top.fc-gototop-fab {
  position: fixed;
  right: 24px;
  bottom: 88px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  background: var(--color-brand-accent);
  color: var(--color-surface-default);
  text-decoration: none;
  /* NO SHADOW — Momento Elevation "none": "For all primary experiences or any native items on a
     page such as inputs, chips, buttons, etc. No elevations/shadows will be used." This button is
     a native item, so it takes none. Kelly confirmed 2026-09-22 ("No shadow needed").
     Deliberate divergence from v3.0.2, whose .fc-info-fab carries
     `box-shadow: 0 4px 12px rgba(0,0,0,0.25)`; on this point Momento wins. */
  box-shadow: none;

  /* ── Micro-transition ──────────────────────────────────────────────────────────────────
     200ms ease, the house micro-transition standard (Kelly, 2026-07-30, recorded on the focus
     ring in FocusRing.css: "ease at 200ms").

     WHY IT WAS JARRING: MudScrollToTop swaps a `.visible` / `.invisible` class, and BOTH
     Bootstrap and MudBlazor define those as nothing but `visibility: visible/hidden`
     (Bootstrap's carries !important). `visibility` is a discrete property, so the button was
     appearing fully formed in a single frame with no ramp at all.

     The ramp is therefore carried by opacity and transform, which are continuous, while
     `visibility` stays the thing that actually removes it from hit-testing when hidden.
     Listing `visibility` in the transition as well is what makes the EXIT readable: without it
     the element is hidden instantly and the fade-out is never seen, because the ramp would be
     running on an already-invisible box. Discrete properties flip at the end of their duration,
     so this defers the hide by exactly one 200ms ramp.

     The 6px rise plus a 0.94 scale is a settle, not an entrance animation — enough to read as
     motion at 200ms without drawing the eye away from the content. */
  opacity: 0;
  transform: translateY(6px) scale(0.94);
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms;
}

.fc-gototop-fab.visible,
.mud-scroll-to-top.fc-gototop-fab.visible {
  opacity: 1;
  transform: none;
}

/* House convention — every other animated surface in this project has one of these. */
@media (prefers-reduced-motion: reduce) {
  .fc-gototop-fab,
  .mud-scroll-to-top.fc-gototop-fab {
    transition: none;
    transform: none;
  }
}

.fc-gototop-fab i,
.mud-scroll-to-top.fc-gototop-fab i { font-size: 20px; }

/* App: 16px above the native tab bar (Kelly, 2026-10-07), the same spot as the onboarding dock
   (Onboarding.css). The bar is its 8px top padding + the 64px row of tabs + its bottom padding token
   (Home.css .mud-tabs-tabbar-content, #mobile_tabs .mud-tabs-tabbar-wrapper). v3.0.2's
   `56px + the inset + 16px` assumed a 56px bar and left this button touching v3.1's. */
.has-bottomnav .fc-gototop-fab,
.has-bottomnav .mud-scroll-to-top.fc-gototop-fab {
  bottom: calc(var(--space-1) + 64px + var(--fc-tabbar-pad-bottom) + var(--space-2));
}

/* Web phones: lift Go to Top above the Pawn Loans / Layaway bottom summary drawer, 8px clear of it
   (2026-10-06 transfer). The pages publish the drawer's height as --fc-bottom-drawer-h on <html>
   (PawnLoans.css, Layaway.css). Kept here so every Go to Top rule lives in this one file. */
@media (max-width: 767px) {
  html:has(.fc-lay-drawer, .fc-pawn-summary--list, .fc-pawn-summary--detail) .fc-gototop-fab,
  html:has(.fc-lay-drawer, .fc-pawn-summary--list, .fc-pawn-summary--detail) .mud-scroll-to-top.fc-gototop-fab {
    bottom: calc(var(--fc-bottom-drawer-h, 88px) + var(--fc-bottom-inset) + var(--space-2));
  }
}

/* ── Font size utility ──────────────────────────────────────── */
@media (min-width: 403px) and (max-width: 744px) {
  .font_size_cls {
    font-size: 13px;
  }
}

/* ── Scrollbar utilities ─────────────────────────────────────── */
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.hide-scrollbar::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* ── Safe area (iOS) ─────────────────────────────────────────── */
.status-bar-safe-area {
  display: none;
}

@supports (-webkit-touch-callout: none) {
  /* Edge-to-edge iOS: the old opaque spacer is intentionally inert (base rule keeps it
     display:none) so content extends behind the transparent status bar. Each page's top
     bar fills the status-bar area via the --fc-safe-top token instead. */
  .flex-column,
  .navbar-brand {
    padding-left: env(safe-area-inset-left);
  }

  /* The shared app scroller gets explicit touch momentum + NO overscroll rubber-band so every page
     flings smoothly (not drag-only) and can't bounce past its content. `none` (not `contain`) also
     kills the element's own rubber-band — otherwise, at the bottom of a list, dragging further pulled
     the sticky headers (e.g. the Stores location/List-Map bar) up over the status bar. */
  #main-scroll-container {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: none;
  }
}

/* Unconditional companion to the iOS-only @supports block above (that one targets
   -webkit-touch-callout, so Android WebView / Chromium never received it). Kill the overscroll
   rubber-band on EVERY engine so dragging past a list's end can't bounce the content and pull the
   sticky headers (e.g. the Stores location / List-Map bar) up over the status bar. */
#main-scroll-container {
  overscroll-behavior: none;
}

/* Bottom clearance for the fixed native tab bar only. The TOP clearance is written inline by
   fcNativeHeader._measure() from the header's real height — it used to be floored here at
   `max(--native-header-h, --fc-safe-top + 88px)` with --native-header-h itself pinned to that same
   constant, on the assumption that the native header is always the 88px search row. It is not: each
   page stacks its own rows under it (Stores adds the location bar AND the List/Map toggle), so the
   floor sat well below the real height and page content — the Stores "Stores" heading, for one —
   rendered behind the header. The reference has no floor here either. */
/* The inset term is --fc-tabbar-pad-bottom, the SAME token the tab bar's own bottom padding uses,
   so the clearance always tracks the bar's real height. Spelling out
   `max(--space-3, --fc-bottom-inset)` here instead left 24px of dead space above the bar on Android
   the moment the bar stopped paying it (the nav bar is reserved natively there, so neither box
   should). iOS/web resolve exactly as before. */
/* ── Status-bar scrim ───────────────────────────────────────────────────────────────────────────
   The directional header is the one element that pays --fc-safe-top, so while it is hidden nothing
   covers the status-bar strip and page content scrolls under the clock. This fills it.

   Deliberately a PAGE-LEVEL element, not part of any sticky bar. Every previous attempt made the
   strip some bar's responsibility — the chips bar carried it as a `top` offset term (which shortened
   its travel below the header's and made it visibly separate), then as an upward box-shadow band
   (which under-covers whenever the inset exceeds the bar's height — broken on iOS, fine on Android),
   then as padding on its pinned state (which changed its box mid-scroll). All three put a
   platform-dependent value inside an animation path, so web looked right and the devices did not.
   A fixed scrim has no interaction with any bar's motion at all, and it fixes the strip for EVERY
   page at once rather than per bar.

   height is 0 on web (--fc-safe-top is 0 there), so this renders nothing and web is untouched.
   z-index 10 sits above page CONTENT but BELOW every sticky bar (chips 20, Information Center
   100/101, .fc-item-bar 1000) and below the header (1000/1001).
   It was 999, i.e. ABOVE the chips bar — so when that bar pinned to the top the scrim painted over
   its upper --fc-safe-top and only a sliver of the chip pills showed below it (reported on Android).
   This scrim exists ONLY to stop page content showing under the clock; a bar that reaches the top
   already covers the strip with its own opaque background, so it must never be painted over. */
html.fc-native-header-hidden .page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--fc-safe-top, 0px);
  background: var(--color-surface-default);
  z-index: 10;
  pointer-events: none;
}

/* ...but ONLY while something is actually parked under the strip. The header hides on any sustained
   scroll-down of more than _DELTA (10px), which is long before the filter row reaches the top — so
   keying the scrim on the header alone turned the safe area white "if i just move some", and white
   is the user's signal that the filter row has PARKED there (reported 2026-09-04).

   `.fc-chips-pinned` is written onto <html> by fcNativeHeader._syncChips() every scroll frame, and
   only while #fc-chips-bar is genuinely pinned. Root class, not :has() — older Android WebViews
   cannot be relied on for it.

   A first attempt also required `.fc-has-chips`, i.e. it only cleared the strip on a page that HAD
   a chips bar. That missed the ordinary case: Home with NO filters applied has no chips bar at all,
   so the strip stayed white on any small scroll — which is exactly what was re-reported. Hence no
   `.fc-has-chips` term here: unless the chips row is pinned, the strip shows whatever is behind it.

   `.fc-page-topbar` (also written by _syncChips) EXEMPTS pages that have a sticky bar of their own
   reaching the top. Do not drop that term: Information Center's `.lgi-static` back bar is 41px tall
   with `padding-top: 8px` — the `--fc-safe-top` padding rule explicitly excludes `.lgi-static` — so
   with the scrim cleared, a 59pt iOS notch leaves the strip from 41 to 59 showing content under the
   clock. Measured; that is why the gate keys on the PAGE having its own bar rather than on whether a
   chips bar exists.

   Once the chips row IS pinned the strip is white from BOTH this scrim and the bar's shadow band. */
html.fc-native-header-hidden:not(.fc-page-topbar):not(.fc-chips-pinned) .page::before {
  background: transparent;
}

.page.has-bottomnav #main-scroll-container {
  padding-bottom: calc(56px + var(--fc-tabbar-pad-bottom));
}

/* ── Inline validation error (Topbar search) ─────────────────── */
.search-validation-error {
  color: var(--color-error);
  font-family: var(--font-body);
  font-size: var(--text-xs-size);
  margin-top: 4px;
}

/* ── Dialog / sheet chrome (ported from reference Nav.css) ──
   Desktop: rounded card + elevation. Mobile (≤600px): every MudDialog renders
   as a bottom sheet — pinned to the bottom, full-width, rounded top corners,
   slide-up entrance. Loaded BEFORE per-modal CSS so modals can override
   (e.g. .fc-sortmodal.mud-dialog max-width). */

/* ── Shared icon button (back buttons, dialog close etc.) ── */
.fc-iconbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-primary);
    font-size: 18px;
}
.fc-iconbtn:hover { background: var(--color-surface-subtle); }

/* ── Dialogs / modals (app-wide, mirrors reference) ── */
.mud-dialog {
    border-radius: var(--radius-lg);
    box-shadow: var(--elevation-lg);
}
/* Dialogs must sit ABOVE the Sign In drawer. That drawer is raised to z-index:2000 (Login.css) to
   beat the app scrim, which is higher than MudBlazor's default dialog layer (~1400) — so a dialog
   opened from the drawer (e.g. the biometric "enable Face ID" prompt) rendered BEHIND it. Lift the
   dialog container above the drawer. `.mud-dialog-container` is dialog-only (drawers use
   `.mud-drawer-overlay`), and the scrim lives inside it, so this raises scrim + dialog together
   without affecting any drawer's own overlay. Stays below the app toast layer (z-index 10000). */
.mud-dialog-container { z-index: 2100 !important; }
/* Reference dialogs are wide (~680px) — widen ours (paired with FullWidth=true). */
.mud-dialog.fc-setloc,
.mud-dialog.fc-acctmodal,
.mud-dialog.fc-paymodal,
.mud-dialog.fc-storeloc,
.mud-dialog.fc-link { max-width: 680px; }
.mud-dialog .mud-dialog-title { font-family: var(--font-heading); padding-bottom: var(--space-1); }
.mud-dialog .mud-dialog-actions { padding: var(--space-2); gap: var(--space-1); }
@media (max-width: 600px) {
    .mud-dialog-container { align-items: flex-end !important; }
    .mud-dialog {
        width: 100%;
        max-width: 100% !important;
        margin: 0 !important;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        border-top-left-radius: var(--radius-xl);
        border-top-right-radius: var(--radius-xl);
        animation: fc-sheet-up 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    /* Bottom-up sheets have square bottom corners (Kelly, 2026-09-23: "On mobile and mobile
       browsers, the bottom corner radii of all bottom-up modals will have 0px corner radius").
       The plain longhands above already do this, but a dialog that sets its own all-corner
       `border-radius: ... !important` beat them and kept rounded bottoms: .store-details-dialog
       (24px) and .store_sort_dialog (16px), both in StoreLocator.css, which loads after this file.
       Two classes (0,2,0) + !important win over any single-class override in either load order.
       Top corners are untouched. */
    .mud-dialog-container .mud-dialog {
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
    }
    @keyframes fc-sheet-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
}

/* ── Modal padding rule (ported from reference Modal.css) ─────────────────────
   ALL modal surfaces use 16px (--space-2) insets — not 24px. MudBlazor defaults
   its dialog title/content/actions to 24px horizontals; this file standardizes
   them. Loaded after per-modal CSS in both hosts. Chrome (radius/border/colors)
   is deliberately NOT set here — see DialogChrome.css. */

.mud-dialog .mud-dialog-title { padding: var(--space-2) var(--space-2) 0 !important; }
.mud-dialog .mud-dialog-content { padding: var(--space-2) !important; }
.mud-dialog .mud-dialog-actions { padding: 0 var(--space-2) var(--space-2) !important; }

/* ── Modal close button — ONE size everywhere ────────────────────────────────────────────────
   IMPORTED VERBATIM from v3.0.2 Components/Modal.css (Kelly, 2026-09-30, Profile row #3, applied
   app-wide as v3.0.2 has it). v3.1 has no Modal.css, and a new stylesheet would need the host
   files, so it lives here with the rest of the ported modal rules. The Sign In and Profile ✕ were
   26x26; Store Details, Sort & Filter and the mega menu were already 40x40. v3.0.2's note:
   Measured 2026-08-11 at 375px: the close X was 26x26 in the Sign In drawer and the Store
   Details drawer (bare <MudIconButton Size="Size.Small">, which just inherits MudBlazor's own
   sizing) but 40x40 in the Sort & Filter modal and the mega menu (.fc-iconbtn). Same control,
   three surfaces, two sizes.

   40px is the value because it is what .fc-iconbtn already renders and what v3.0.1 uses for its
   filter/sort modal close — so the modals that were already right do not move, and only the two
   26px outliers change. It also clears the 24px WCAG 2.5.8 target floor, which 26px barely met.

   Scoped to the HEADER of a drawer/dialog on purpose. `.mud-icon-button` is also what MudBlazor
   renders for input adornments — the password-visibility eye inside the Sign In field is one, at
   48x48 — and that one is sized by the text field it lives in, so it must NOT be caught here.
   `.mud-input-adornment` is a different subtree, so this selector already excludes it. ── */
.mud-drawer-header .mud-icon-button,
.mud-dialog-title .mud-icon-button,
.fc-priority-modal-panel > .mud-icon-button {
    width: 40px;
    height: 40px;
    padding: 0;
    flex-shrink: 0;
}

/* ── Mobile bottom safe-area bump ──────────────────────────────────────────────
   On phones every dialog renders as a bottom sheet pinned to the screen's bottom
   edge (DialogChrome.css @600px). Add an 8px gap below the sheet's last element so
   the action row isn't flush against the device edge / home button. */
@media (max-width: 600px) {
    /* v3.0.2: 16px + device inset (was a flat 8px that stripped the inset entirely). */
    .mud-dialog { padding-bottom: calc(var(--space-2) + var(--fc-bottom-inset)) !important; }
    /* 16 + inset TOTAL, as in v3.0.2 (Kelly, 2026-09-30, Profile row #14, app-wide). v3.0.2 zeroes
       every section's padding (Modal.css) so the sheet's own 16 + inset is the only bottom space;
       here the last section kept its 16px too, so every phone sheet ended 32 + inset above the edge
       (Set Location, the sort sheets, the Face ID prompt). The last section now adds none.
       Desktop is untouched: there the sheet has no padding and the last section's 16px is the inset. */
    .mud-dialog .mud-dialog-actions,
    .mud-dialog .mud-dialog-content:last-child { padding-bottom: 0 !important; }
}

/* ── Full-screen sheet: top safe-area inset ────────────────────────────────────
   A sheet dragged to full screen reaches the top edge; on a native edge-to-edge
   device pad the header down by the top safe-area inset so the drag handle, title
   and close button clear the notch. Native only. */
html.fc-native .mud-dialog.fc-sheet-full .mud-dialog-title {
    padding-top: calc(var(--fc-safe-top) + var(--space-2)) !important;
}

/* ── Modal transitions ────────────────────────────────────────────────────────
   Smooth appearance for every modal surface. Mobile dialog slide-up lives in
   DialogChrome.css (fc-sheet-up @≤600px). Here: the desktop centered-dialog
   entrance, shared keyframes reused by the drawer sheets, and a reduced-motion
   guard. */
@keyframes fc-modal-pop-in    { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
@keyframes fc-modal-slide-up  { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes fc-modal-drawer-in { from { opacity: 0; transform: translate(-50%, -50%) scale(0.96); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }

/* Desktop (>600px): centered dialogs fade + scale in. Mobile keeps its bottom-sheet slide. */
@media (min-width: 601px) {
    .mud-dialog { animation: fc-modal-pop-in 0.2s ease; }
}

/* Accessibility: honour reduced-motion — no modal entrance animation. */
@media (prefers-reduced-motion: reduce) {
    .mud-dialog,
    .custom-bottom-drawer { animation: none !important; }
}

/* ── Shared sheet chrome (scoped: .fc-sheet-*) — ported from reference ─────────
   The pieces of modal/drawer chrome every sheet shares. Responsive presentation
   (mobile bottom sheet / desktop centered card) lives in DialogChrome.css; this
   file holds the shared visual vocabulary. Tokens only. */

/* Drag-handle pill — rendered by Components/SheetHandle.razor in every sheet.
   Canonical values (40×4 pill, border grey). The negative top margin cancels
   the sheet's 16px inset so the handle hugs the top edge (8px) — the handle row
   itself gets no padding; the 16px inset belongs to the content below it. */
.fc-sheet-handle {
    width: 40px;
    height: 4px;
    border-radius: var(--radius-full);
    background: var(--color-border);
    margin: calc(-1 * var(--space-1)) auto var(--space-1);
    flex-shrink: 0;
}

/* ── Step slide transitions (multi-step sheets) ──
   Forward = in from the right, back = in from the left, terminal = plain fade. */
.fc-step { display: flex; flex-direction: column; gap: var(--space-2); }
.fc-step-enter-right { animation: fc-step-in-right 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; }
.fc-step-enter-left  { animation: fc-step-in-left  0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; }
.fc-step-fade-in     { animation: fc-step-fade 0.32s ease forwards; }
@keyframes fc-step-in-right { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fc-step-in-left  { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fc-step-fade     { from { opacity: 0; } to { opacity: 1; } }


/* ── Accessibility layer (ported from reference Accessibility.css) ──
   Cross-cutting by nature: keyboard-focus visibility and error identification
   apply to every interactive control. */

/* ── Keyboard focus visibility ──
   Lives in Accessibility.css only (Momento focus states, Kelly 2026-09-28). The copy that
   used to sit here re-applied the old detached blue outline at a higher specificity than the
   new rules, so it has been removed rather than kept in step. */

/* Focus target for FocusOnNavigate (router moves focus to the page h1).
   Headings are not pointer-interactive — suppress the outline there. */
h1[tabindex="-1"]:focus,
h1[tabindex="-1"]:focus-visible {
    outline: none;
}

/* ── Error identification (WCAG 3.3.1) ──
   Native inputs flagged invalid get a +2px destructive ring. Trigger with
   either `.input-error` or `aria-invalid="true"`; search inputs excluded. */
input:not([type=range]):not([type=checkbox]):not([type=radio]):not([type=search]).input-error,
input:not([type=range]):not([type=checkbox]):not([type=radio]):not([type=search])[aria-invalid="true"],
select.input-error, select[aria-invalid="true"],
textarea.input-error, textarea[aria-invalid="true"] {
    border-color: #D32F2F !important;
    box-shadow: inset 0 0 0 2px #D32F2F !important;
}

/* ── Input focus ring — the single app-wide treatment (ported from reference) ──
   One focus treatment for every form field: a 2px inset brand-blue ring on the
   field/container (box-shadow inset 0 0 0 2px primary).

   Rule 1 — every MudBlazor outlined field, app-wide. The doubled trailing class
   bumps specificity so the ring outranks per-module resting-border rules while
   error-state rules (longer compound selectors) still win.
   Rule 2 — marker class for any styled container that wraps a real input:
   add fc-focus-field to the wrapper. */
.mud-input.mud-input-outlined:focus-within .mud-input-outlined-border.mud-input-outlined-border {
  box-shadow: inset 0 0 0 2px var(--color-brand-primary) !important;
}
.fc-focus-field:focus-within {
  box-shadow: inset 0 0 0 2px var(--color-brand-primary);
}

/* Press feedback (the mudbutton trio's press, the no-drop-shadow rule, the catch-all 1% shrink,
   pressable cards, option-row tints, .fc-btn-outlined): lives ONLY in PressFeedback.css, as in
   v3.0.2. An older partial copy of that file sat here until 2026-09-30 (Kelly: import all of
   v3.0.2's button rules). Its catch-all had a shorter exclusion list, so it still shrank buttons
   v3.0.2 leaves still on press (the List/Map toggle, Item Detail's phone/address links), and its
   .fc-btn-outlined ring was 3.5px against the 2px Kelly ruled on 2026-08-11. */

/* ── Suggested Items "Sort & Filter" bottom sheet (SortAndFilterDrawer) ──────
   Mobile / responsive presentation, restyled to the reference FilterModal /
   FilterPanel design (fc-filter* classes). Scoped to #sort-filter-drawer so the
   ItemListingPage desktop filter sidebar is untouched. */
/* ── iOS fix: keep the Apply changes / Clear Filters row visible ──────────────────
   Two things buried the action row on iOS (Android was unaffected):
   1) The sheet has no bottom:0 anchor of its own — it relies on MudDrawer's transform —
      so on iOS it stretched to ~90dvh and its last row landed at the very bottom of the
      screen. Making the sheet a strict flex column whose body is the ONLY scroller pins
      the action row to the sheet's bottom (above the drawer's home-indicator padding),
      regardless of how tall MudDrawer makes the sheet.
   2) The sheet renders with DisableOverlay="true" and its z-index (1300) is trapped in
      .page's stacking context, while the fixed bottom tab bar (.custom-tabs-p /
      .mud-tabs-toolbar, z-index 1000) is a LATER sibling of .page — so the tab bar paints
      ON TOP of the sheet in the WebView and covered the action row. Hide the tab bar while
      the sheet is open (same idea as html.fc-keyboard-open hiding it for the keyboard). */
#sort-filter-drawer.custom-bottom-drawer {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
#sort-filter-drawer .fc-filtermodal-shell {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}
html:has(#sort-filter-drawer.drawer-open) .custom-tabs-p,
html:has(#sort-filter-drawer.drawer-open) .mud-tabs-toolbar {
    display: none !important;
}
#sort-filter-drawer .fc-filtermodal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-1);
    padding: 4px 0 16px;
    flex-shrink: 0;
}
#sort-filter-drawer .fc-filtermodal-title {
    font-family: var(--font-heading);
    font-size: var(--text-heading-sm-size);
    font-weight: var(--fw-bold);
    color: var(--color-text-primary);
}
#sort-filter-drawer .fc-iconbtn {
    background: var(--color-surface-subtle);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-text-primary);
    font-size: 18px;
    flex-shrink: 0;
}
#sort-filter-drawer .fc-filtermodal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}
#sort-filter-drawer .fc-filter {
    display: flex;
    flex-direction: column;
}

/* Collapsible sections */
#sort-filter-drawer .fc-filter-section {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--color-border);
}
#sort-filter-drawer .fc-filter-section--last { border-bottom: none; }
/* Collapsed-only hairline (reference .fc-filtermodal behaviour): the OPEN section hides its bottom
   border so there's no line around the expanded section. */
#sort-filter-drawer .fc-filter-section--open { border-bottom-color: transparent; }
#sort-filter-drawer .fc-filter-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    padding: 18px 0;
}
#sort-filter-drawer .fc-filter-label {
    font-family: var(--font-body);
    font-size: var(--text-action-md-size);
    line-height: var(--text-action-md-lh);
    font-weight: var(--fw-bold);
    letter-spacing: 0.2px;
    color: var(--color-text-primary);
}
#sort-filter-drawer .fc-filter-chev {
    font-size: 18px;
    color: var(--color-text-primary);
    transition: transform 0.25s ease;
}
#sort-filter-drawer .fc-filter-chev--open { transform: rotate(180deg); }
#sort-filter-drawer .fc-filter-body {
    display: flex;
    flex-direction: column;
    padding-bottom: var(--space-2);
}

/* Accordion open/close animation — mirrors the desktop sidebar (.sidebar-accordion-content).
   Body stays in the DOM (not @if) and animates its height via the grid-rows 0fr→1fr trick,
   so it opens AND closes smoothly. The inner wrapper clips content while it collapses. */
#sort-filter-drawer .fc-filter-anim {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
#sort-filter-drawer .fc-filter-anim--open { grid-template-rows: 1fr; }
#sort-filter-drawer .fc-filter-anim-inner {
    overflow: hidden;
    min-height: 0;
}

/* Sort options — native radio (brand-primary/blue accent) + selected-row highlight */
#sort-filter-drawer .fc-filter-option {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    padding: 10px 8px;
    border-radius: var(--radius-sm);
    margin: 0;
}
#sort-filter-drawer .fc-filter-option--sel { background: var(--color-surface-subtle); }
#sort-filter-drawer .fc-filter-radio {
    accent-color: var(--color-brand-primary);
    width: 22px;
    height: 22px;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
}
#sort-filter-drawer .fc-filter-option-text {
    font-family: var(--font-body);
    font-size: var(--text-label-md-size);
    line-height: var(--text-label-md-lh);
    color: var(--color-text-primary);
}
#sort-filter-drawer .fc-filter-option--sel .fc-filter-option-text { font-weight: var(--fw-bold); }

/* Category / store rows — native checkbox + icon + uppercase name (+ optional count) */
/* Nearby Stores / Categories are their OWN scroller, capped at 260px — the reference's
   `.fc-filter-cats { max-height: 260px; overflow-y: auto; scrollbar-width: thin }` (its Home.css),
   which main was missing. Without the cap, a location with many nearby stores grew the section
   without limit and the SHEET extended instead of the list scrolling in place.
   Works on every platform because it is plain CSS on the list itself: web, web-mobile, iOS and
   Android all render this same drawer.
   `overscroll-behavior: contain` is the one addition on top of the reference: it stops the scroll
   chaining to .fc-filtermodal-body once the list hits either end, which is what keeps the gesture
   inside this div on touch rather than dragging the sheet behind it.
   Scoped to #sort-filter-drawer deliberately: the reference leaves the rule unscoped and then
   switches it back off for its desktop sidebar (`.fc-home-sidebar .fc-filter-cats { max-height:
   none }`). Main needs neither half — `.fc-filter-cats` exists ONLY in SortAndFilterDrawer.razor
   here, since main's desktop filter sidebar is a different class family (.filter-sidebar-desktop /
   .sidebar-filter-row) — so this renders identically and cannot leak into the sidebar. */
#sort-filter-drawer .fc-filter-cats {
    display: flex;
    flex-direction: column;
    max-height: 260px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}
#sort-filter-drawer .fc-filter-cat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: var(--space-2) 4px;
    cursor: pointer;
    margin: 0;
}
#sort-filter-drawer .fc-filter-check {
    accent-color: var(--color-brand-primary);
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
}
#sort-filter-drawer .fc-filter-cat-icon {
    flex-shrink: 0;
    width: 22px;
    text-align: center;
    font-size: 16px;
    color: var(--color-text-muted);
}
#sort-filter-drawer .fc-filter-cat-name {
    font-family: var(--font-body);
    font-size: var(--text-label-md-size);
    font-weight: var(--fw-bold);
    color: var(--color-text-primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.2;
}
#sort-filter-drawer .fc-filter-count {
    margin-left: auto;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: var(--fw-bold);
    color: var(--color-brand-primary);
    background-color: color-mix(in srgb, var(--color-brand-primary) 12%, transparent);
    border-radius: var(--radius-full);
    min-width: 28px;
    text-align: center;
    padding: 3px 8px;
    flex-shrink: 0;
}

/* Price min/max boxes (dual-range slider keeps its existing .dual-range-* styling) */
#sort-filter-drawer .fc-filter-price {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 16px;
}
#sort-filter-drawer .fc-filter-price-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
#sort-filter-drawer .fc-filter-price-cap {
    font-family: var(--font-body);
    font-size: var(--text-xs-size);
    font-weight: var(--fw-bold);
    color: var(--color-text-muted);
}
#sort-filter-drawer .fc-filter-price-box {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 52px;
    padding: 0 var(--space-2);
    background: var(--color-surface-default);
    border: 1.5px solid var(--color-border);
    border-radius: 10px;
}
#sort-filter-drawer .fc-filter-price-dollar {
    color: var(--color-text-muted);
    font-size: var(--text-label-md-size);
    font-family: var(--font-body);
}
#sort-filter-drawer .fc-filter-price-input {
    flex: 1;
    min-width: 0;
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: var(--text-label-md-size);
    color: var(--color-text-primary);
    -moz-appearance: textfield;
}
#sort-filter-drawer .fc-filter-price-sep {
    color: var(--color-text-muted);
    font-size: 18px;
    font-weight: 300;
    padding-bottom: 14px;
}

/* Bottom actions — red "Apply changes" (brand-accent) + blue outlined "Clear Filters" */
#sort-filter-drawer .fc-filtermodal-actions {
    display: flex;
    gap: var(--space-1);
    padding: 16px 0 8px;
    flex-shrink: 0;
    border-top: 1px solid var(--color-border);
    margin-top: 4px;
}
#sort-filter-drawer .fc-filtermodal-apply,
#sort-filter-drawer .fc-filtermodal-clear {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    height: 56px;
    border-radius: var(--radius-lg);
    font-family: var(--font-heading);
    font-size: var(--text-action-md-size);
    font-weight: var(--fw-bold);
    cursor: pointer;
}
#sort-filter-drawer .fc-filtermodal-apply {
    background: var(--color-brand-accent);
    color: var(--color-surface-default);
    border: none;
}
#sort-filter-drawer .fc-filtermodal-clear {
    background: transparent;
    color: var(--color-brand-primary);
    border: 1px solid var(--color-brand-primary);
}

/* ── Toast host (PopupAlert) — centered, top-anchored, downward-growing stack ──────────────
   Replaces the old single overriding popup: multiple toasts stack vertically, each with its
   own auto-dismiss timer. Centered horizontally on every width (fixes drifting right on mobile).
   Lives at the layout root (outside #main-scroll-container) so it stays pinned to the viewport. */
.fc-toast-host {
    position: fixed;
    top: calc(48px + var(--fc-safe-top));
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);   /* 8px between stacked toasts: Momento and v3.0.2 (Kelly, 2026-09-30, Profile row #15). Was 16. */
    width: max-content;
    max-width: 95vw;
    pointer-events: none;
}
.fc-toast-card {
    display: flex;
    align-items: center;
    gap: 16px;
    width: max-content;
    min-width: min(75vw, 480px);
    max-width: min(92vw, 760px);
    padding: 16px;
    background: var(--color-surface-default);
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
    animation: fc-toast-in 0.25s ease forwards;
}
@keyframes fc-toast-in {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
/* Reference-style toast icon: a single colored circle glyph (fa-circle-info/-check/-exclamation).
   The white symbol is the glyph's knockout showing the card behind it — matches the design. */
.fc-toast-card-icon {
    flex: 0 0 auto;
    font-size: 20px;   /* matches reference .fc-toast-icon */
    line-height: 1;
    align-self: center;
}
.fc-toast-card-icon--success { color: #0D8728; } /* green */
.fc-toast-card-icon--error   { color: #E22721; } /* red */
.fc-toast-card-icon--warning { color: #FF9800; } /* orange */
.fc-toast-card-icon--info    { color: var(--color-brand-primary); } /* brand blue (#004FAA) */
.fc-toast-card-msg {
    flex: 1 1 auto;
    font-family: var(--font-body);
    font-size: var(--text-body-md-size);
    font-weight: var(--fw-normal);
    line-height: 24px;
    letter-spacing: 0.2px;
    color: var(--color-text-primary);
    overflow-wrap: break-word;
}
.fc-toast-card-close {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #F5F5F5;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #000;
    align-self: flex-start;
    padding: 0;
}
.fc-toast-card-close i { font-size: 14px; }
@media (max-width: 600px) {
    .fc-toast-host { width: 90vw; }
    .fc-toast-card { width: 100%; min-width: 0; max-width: 100%; }
}

/* ── Profile edit drawers → centered popup modals on WEB (reference parity) ─────────────
   The base .custom-bottom-drawer already centers horizontally on web (718px, left:50%−359px)
   and sits at the bottom as a sheet. For the profile edit drawers (marked .fc-web-modal) we lift
   them to the vertical centre with all-corner radius + elevation so they read as popup dialogs.
   Mobile (<745px) is untouched — they stay bottom sheets. */
@media (min-width: 745px) {
  .custom-bottom-drawer.fc-web-modal.drawer-open {
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    height: auto !important;
    max-height: 88vh !important;
    border-radius: var(--radius-xl) !important;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.28) !important;
    /* Smooth fade-in (opacity only, so the translateY(-50%) centering is preserved). */
    animation: fc-modal-fade-in 0.2s ease;
  }
}
@keyframes fc-modal-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ── Item cards' right-click menu (web; Kelly, 2026-09-28) ─────────────────────────────────────────────
   One "Open in New Tab" row, built at the pointer by fcItemMenu (ScrollPositionHelper.js). Tokens only, on
   the 8px grid: 8px above and below the row, 16px sides, 8px between icon and label, a 40px row, 8px corners
   (Momento Standard theme). Label in Helvetica Neue per the Momento Typography page (action/label text), Font
   Awesome Solid icon (ruling 1). The script also sets position and z-index inline, so placement survives a
   stale copy of this file. [hidden] must be restated: `display` here would otherwise override the attribute. */
.fc-item-menu {
  position: fixed;
  z-index: 10000;
  min-width: 200px;
  padding: var(--space-1) 0;
  background: var(--color-surface-default);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--elevation-md);
}

.fc-item-menu[hidden] {
  display: none;
}

.fc-item-menu-item {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  width: 100%;
  min-height: var(--space-5);
  padding: 0 var(--space-2);
  border: 0;
  background: none;
  font-family: var(--font-body);
  font-size: var(--text-body-md-size);
  line-height: var(--text-body-md-lh);
  color: var(--color-text-primary);
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

.fc-item-menu-item:hover,
.fc-item-menu-item:focus-visible {
  background: var(--color-surface-subtle);
}

/* Own-colour 2px edge, like every other focused control (Accessibility.css, 2026-09-28). */
.fc-item-menu-item:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -2px;
}

.fc-item-menu-item i {
  width: var(--space-2);
  font-size: var(--space-2);
  text-align: center;
}

/* ── KEPT FROM MAIN ──────────────────────────────────────────────
   Rules 3.2 does not have. Appended after its stylesheet so they still win on equal
   specificity, exactly as they did before the import. */
.mudbutton-grey:hover {
  background: var(--color-text-disabled);
  color: var(--color-surface-default);
}
/* ── Accessibility layer (ported from reference Accessibility.css) ──
   Cross-cutting by nature: keyboard-focus visibility and error identification
   apply to every interactive control. */

/* ── Keyboard focus visibility ──
   Brand CTAs mirror :active on :focus-visible so keyboard users get the same
   feedback as pointer users; every other interactive element gets a
   token-based outline. */
.mudbutton-ui:focus-visible,
.mudbutton-danger:focus-visible,
.mudbutton-grey:focus-visible {
    filter: brightness(0.8);
    outline: none;
}
/* .fc-btn-outlined excluded like the CTAs — its keyboard treatment is the
   press ring (PressFeedback.css), not the generic outline. */
button:not(.mudbutton-ui):not(.mudbutton-danger):not(.mudbutton-grey):not(.fc-btn-outlined):focus-visible,
a:focus-visible,
[role="button"]:focus-visible,
select:focus-visible,
input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
    outline: 2px solid var(--color-brand-primary);
    outline-offset: 2px;
}
/* ── Press feedback layer (ported from reference PressFeedback.css) ──
   Cross-cutting shared file: press feedback is one pattern app-wide, so it
   lives in one layer. Loaded AFTER component CSS in both hosts so its
   transition/press rules win the cascade.
   Press curve: cubic-bezier(.36,.07,.19,.97) (reference button curve). */

/* ── Branded CTAs (mudbutton trio) ── */
.mudbutton-ui, .mudbutton-danger, .mudbutton-grey {
    transition: filter .12s ease, transform .12s cubic-bezier(.36, .07, .19, .97);
}
.mudbutton-ui:active, .mudbutton-danger:active, .mudbutton-grey:active {
    filter: brightness(0.8);
    transform: scale(0.99);
    outline: none;
}
/* ── Project rule: NO drop-shadow on any button ──
   MudBlazor's Filled buttons ship a default Material elevation drop-shadow —
   strip it on every MudButton, in every state. Keyboard focus uses outline/filter
   (Accessibility.css), never box-shadow, so accessibility is unaffected. */
.mud-button-root,
.mud-button-root:hover,
.mud-button-root:active,
.mud-button-root:focus,
.mud-button-root:focus-visible {
    box-shadow: none !important;
}
/* ── Catch-all: every other button shrinks 1% on press. :where() keeps
   specificity at (0,1,1) so any component's own :active rule overrides cleanly. */
button:where(:not(.mudbutton-ui):not(.mudbutton-danger):not(.mudbutton-grey):not(.fc-card-pressable):not(.fc-pay-chip):not(.fc-bottomnav-tab)):active {
    transform: scale(0.99);
}
/* Item-gallery arrows centre themselves with translateY(-50%) — compose the
   press scale with it so the button doesn't jump to the top on press. */
.fc-item-nav:active { transform: translateY(-50%) scale(0.99); }
/* ── Pressable cards ──
   Opt-in class for clickable card surfaces (store cards, item thumbnails):
   press shows a 2px brand inset ring + 1% shrink. */
.fc-card-pressable {
    transition: box-shadow .12s ease, transform .12s cubic-bezier(.36, .07, .19, .97);
}
.fc-card-pressable:active {
    box-shadow: inset 0 0 0 2px var(--color-brand-primary);
    transform: scale(0.99);
    outline: none;
}
/* ── Option-row press tint (sort & filter sheets) ──
   Radio/checkbox rows darken while pressed. The tint inherits each row's radius. */
.fc-sortmodal-opt, .fc-ssort-opt, .fc-filter-option, .fc-lm-option {
    position: relative;
}
.fc-sortmodal-opt::before, .fc-ssort-opt::before, .fc-filter-option::before, .fc-lm-option::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: transparent;
    pointer-events: none;
    transition: background 0.15s ease;
}
.fc-sortmodal-opt:hover::before, .fc-ssort-opt:hover::before, .fc-filter-option:hover::before, .fc-lm-option:hover::before {
    background: rgba(0, 0, 0, 0.10);
}
.fc-sortmodal-opt:active::before, .fc-ssort-opt:active::before, .fc-filter-option:active::before, .fc-lm-option:active::before {
    background: rgba(0, 0, 0, 0.18);
}
/* ── Outlined/secondary buttons ──
   Opt-in marker class for bordered secondary buttons: press (and keyboard focus)
   draws a 3.5px currentColor inset ring over the resting border — an inset
   shadow, not a real border-width change, so nothing shifts. currentColor picks
   up each button's own accent (blue/red/green). */
.fc-btn-outlined {
    transition: box-shadow .12s ease, transform .12s cubic-bezier(.36, .07, .19, .97);
}
.fc-btn-outlined:active,
.fc-btn-outlined:focus-visible {
    box-shadow: inset 0 0 0 3.5px currentColor;
    outline: none;
}
