/* ================================================================
   ProfileMenu.css — Profile page and settings
   All values use Momento design tokens from tokens.css
   ================================================================ */

/* ── Profile page background (reference .fc-profile gradient) ─── */
/* min-height subtracts the fixed app bar (same idiom as Pages/CampaignsItemPage.css:11 and
   Components/ItemDetails.css:870). The `, 0px` fallback makes it a no-op below 1025px, where
   FcShopping.js never measures #topbar_large_screen and the var is unset.
   The three padding LONGHANDS zero the wrapper's inline `style="padding:16px"` (reference
   .fc-profile carries no inset — .fc-profile-inner does). An author !important outranks a normal
   inline declaration. Longhands (never the `padding` shorthand) so BottomDrawer.razor:59-66's
   native `padding-bottom: calc(90px + safe-area) !important` tab-bar clearance survives. */
.profile-background {
  /* --fc-profile-tabclear is 0 by default and only becomes the tab bar's height on a native host
     (.page.has-bottomnav, below). Without it this floor reserved a full viewport while
     #main-scroll-container ALSO pays the tab bar as padding-bottom, so the page always scrolled
     that much into empty space under the last button. Same reasoning as --fc-storeloc-tabclear
     on Stores. The web has no bottom nav, so the term stays 0 there. */
  --fc-profile-tabclear: 0px;
  min-height: calc(100dvh - var(--fc-appbar-h, 0px) - var(--fc-profile-tabclear));
  background: linear-gradient(to bottom, var(--color-surface-info-bg) 0%, var(--color-surface-subtle) 100%);
  padding-top: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* FCApp-only: v3.0.2 DELETED the First Name / Last Name rows from the markup; this fork still
   renders them and hides them with this class instead. Same result on screen. Keep the class while
   the markup keeps the rows — remove it from an element to bring that row back. */
.fc-hidden { display: none !important; }

/* The page inset now lives on the container, matching reference .fc-profile-inner's
   `padding: var(--space-2) var(--space-3) var(--space-6)` (16px / 24px / 48px).
   !important is MANDATORY: MudContainer carries Class="pa-0" and MudBlazor's
   `.pa-0 { padding: 0 !important }` is itself important, so it currently beats the element's own
   inline `padding:16px`. `.mud-container` raises this to (1,1,0) to win the important-vs-important
   tie. #loading-mud-container is included so the skeleton state keeps the same inset once the
   wrapper's 16px is gone. */
#profile-mud-container.mud-container,
#loading-mud-container.mud-container {
  padding: var(--space-2) var(--space-2) var(--space-6) !important;
}
/* Side margin = the Momento grid margin (Kelly, 2026-09-29): 16px on the Small grid (402), 32px on the
   Midsized (834) and Large (1440) grids. Was 24px at every width, as in v3.0.2. */
@media (min-width: 834px) {
  #profile-mud-container.mud-container,
  #loading-mud-container.mud-container {
    padding-left: var(--space-4) !important;
    padding-right: var(--space-4) !important;
  }
}

/* ── Card grid + stack geometry (reference .fc-profile-grid / .fc-section / .fc-prow) ────────
   Everything in this block overrides a MudBlazor component default rather than an author rule,
   so each selector is written to out-specify MudBlazor's own class — no !important unless
   MudBlazor's declaration is itself !important (noted per rule). */

/* 16px gutters, not MudGrid Spacing="3"'s 12px — reference .fc-profile-grid gap = var(--space-2).
   Re-states MudBlazor's negative-margin/positive-padding gutter model at the new value.
   #id + .class = (1,1,0) beats .mud-grid-spacing-xs-3 (0,1,0); neither is important. */
#profile-grid.mud-grid-spacing-xs-3 {
  width: calc(100% + var(--space-2));
  margin-left: calc(-1 * var(--space-2));
  margin-top: calc(-1 * var(--space-2));
}
#profile-grid.mud-grid-spacing-xs-3 > .mud-grid-item {
  padding-left: var(--space-2);
  padding-top: var(--space-2);
}

/* Collapse to one column at 768px, not MudBlazor's sm=600px — reference Profile.css:47.
   (1,2,0) beats MudBlazor's .mud-grid-item-sm-6 (0,1,0) inside its @media(min-width:600px), so the
   xs="12" sm="6" attributes can stay exactly as they are. */
@media (max-width: 767px) {
  #profile-grid > .mud-grid-item.mud-grid-item-sm-6 {
    flex-basis: 100%;
    max-width: 100%;
  }
}

/* Card title → first row = 16px. It was 12px (reference .fc-section-title's 4px margin +
   .fc-section's 8px flex gap), but spacing moves in 8px increments with no 12px (Kelly, 2026-09-23).
   16px equals MudBlazor's own .mb-4 (`margin-bottom:16px !important`), so this rule changes nothing
   today; it stays so the value is stated as a token instead of inherited from a utility class. The id
   raises it to (1,1,0) to win the important-vs-important tie if the value ever moves again. */
#text_user_information.mb-4,
#text_settings.mb-4 {
  margin-bottom: var(--space-2) !important;
}

/* Card body rhythm: reference .fc-section-body has NO gap and each .fc-prow/.fc-trow carries
   `padding: var(--space-1) 0`. That yields the same 16px between rows plus an 8px lead-in and
   lead-out that a pure gap model loses. The id (1,0,0) beats MudStack Spacing="4"'s
   .gap-4 (0,1,0), which is not important — so no !important needed.
   `> div` covers the rows that are still MudStack <div>s (E-mail and the toggle rows). Since 2026-09-29
   the Phone Number / Password / Preferred Language rows are <button class="fc-profile-row">, which
   carry the same 8px/0 padding themselves, and the Spanish MudGrid rows no longer exist. (The
   rendered row gap is 8px, not 0: bootstrap's `.gap-2 { gap: .5rem !important }` beats this rule.) */
#user-info-stack,
#settings-stack {
  gap: 0;
}
#user-info-stack > div,
#settings-stack > div {
  padding: var(--space-1) 0;
}

/* Avatar → name gap = 8px (reference .fc-profile-id). Id beats MudStack Spacing="3"'s .gap-3. */
#avatar-name-stack {
  gap: var(--space-1);
}
/* !important on both: these two are set in an inline `style` attribute on the MudText, and only
   an author !important can outrank a normal inline declaration. */
#avatar-initials {
  letter-spacing: normal !important;
  line-height: 1 !important;
}

/* Value → chevron gap = 8px (reference .fc-prow-right). Id beats MudStack's default .gap-3.
   Pairs with the removal of .custom-chevron's own margin-left further down — together they were
   producing 20px. */
/* (2026-09-29) Phone / Password / Preferred Language value stacks are now <span class="fc-profile-row-value">
   inside the row buttons and take their gap from that class (16px — what these rows have always
   rendered, because bootstrap's `.gap-3 { gap: 1rem !important }` beat this 8px). Listing them here
   too would make this id rule win and drop them to 8px, so only the e-mail row stays. */
#email-value-stack {
  gap: var(--space-1);
}

/* ── Press feedback for the Profile click targets ─────────────────────────────────────────────
   Kelly, 2026-08-13: "ALL buttons should have press feedback", starting with My Profile because it
   "was done wrongly".

   PressFeedback.css's catch-all selector (`button:where(:not(…)):active`) begins with the ELEMENT
   selector `button`, so it can only ever reach a real <button>. Until 2026-09-29 these rows were
   MudStack click targets, which render <div>s, so they had NO press response at all.
   v3.0.1's equivalents on this page were real <button>s (Profile.razor:102 delete card, :120 restart,
   :124 sign out), so this is a v3.0.2 regression rather than something inherited.

   NOT included, and not a defect: the Terms & Conditions control. Kelly, 2026-08-13 — "Links are not
   Tertiary buttons", so an inline text link belongs to the link vocabulary (underline + hover colour
   + focus ring), never a button type, and it must not be given button press feedback. v3.0.1 renders
   it as `<button class="fc-profile-terms-link">` (Profile.razor:110); v3.0.2's <MudLink> is the
   CORRECT element and that divergence from v3.0.1 is deliberate. Do not "fix" it.

   The treatment is the catch-all's exactly — scale .99 + brightness .8, instant, no transition —
   so these respond identically to every other button in the app
   instead of inventing a fourth behaviour. Deliberately NOT the Secondary ring: they are not
   bordered secondaries. Only the three rows that actually carry @onclick are listed;
   #email-value-stack is display-only (no handler at ProfileMenu.razor:124-128) and must stay inert.

   `cursor: pointer` is here for the same reason — these had no pointer affordance either, where
   v3.0.1's clickable rows declare it (.fc-prow--click, Profile.css:57).

   DONE 2026-09-29 (Kelly: "match the Momento Design System", row #42): the WHOLE 40px row is now a
   real <button class="fc-profile-row"> (Phone Number, Password, Preferred Language), so it can be
   tapped anywhere, reached with Tab and opened with Enter/Space. Its MudTexts render as <span>
   (HtmlTag="span") because a <p> is invalid inside a <button>. A plain <button> takes the
   catch-all press above (scale .99 + brightness .8), so the value stacks' own :active/cursor rules
   that stood in for it are gone. */
.fc-profile-row {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  flex-direction: row;
  justify-content: space-between;  /* MudBlazor's global `button { justify-content: center }` */
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  margin: 0;
  padding: var(--space-1) 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  text-align: start;
  cursor: pointer;
}
.fc-profile-row-value {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
}

/* Delete Account is a clickable CARD, so it takes the house card press (.fc-card-pressable in
   PressFeedback.css — 2px brand inset ring + 1% shrink), added to its Class in the razor.
   Both of that class's declarations are otherwise DEAD on this element: .profile-card pins
   `box-shadow: none !important` and `.profile-card:hover { transform: none !important }` (both
   below), and on a mouse :hover is still true while :active — so the ring lost to the first and
   the shrink to the second. Restated with !important and an id for (1,2,0), which outranks
   .profile-card:hover's (0,2,0) at equal importance. Scoped to this id so the other .profile-card
   containers stay inert.
   The ring is RED, the card's own destructive #D32F2F, not the house brand blue (Kelly, 2026-09-30:
   "due to the nature of the action"). Its keyboard focus outline is red too (Accessibility.css). */
#delete-account-card.fc-card-pressable:active {
  box-shadow: inset 0 0 0 2px #D32F2F !important;
  transform: scale(0.99) !important;
}

/* iOS scroll smoothness (Profile). .profile-background is the element that carries ALL of the
   page's scrolling content, is forced to min-height:100dvh, AND paints a full-height gradient.
   Inside #main-scroll-container (which is padded by the fixed header height) this both (a) forces
   an always-present overflow of ~header-height that rubber-bands stiffly and (b) re-rasterizes the
   gradient on every scroll frame. Home/Stores scroll smoothly precisely because neither scrolls a
   gradient nor forces 100vh on the scrolled element. Fix: size the wrapper to exactly the visible
   scroll area (no phantom overflow) and lift the gradient onto a viewport-fixed layer so the
   scrolled content is gradient-free. iOS-WebKit-only gate → web + Android unaffected. */
@supports (-webkit-touch-callout: none) {
  .profile-background {
    /* The tab-bar term completes what this block set out to do - "size the wrapper to exactly the
       visible scroll area" - which is the viewport minus the header AND the bottom tab bar. */
    min-height: calc(100dvh - var(--native-header-h, 0px) - var(--fc-profile-tabclear));
    background: none;
    position: relative;
    z-index: 0;
  }
  .profile-background::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(to bottom, var(--color-surface-info-bg) 0%, var(--color-surface-subtle) 100%);
  }
}

/* Native hosts only: MainLayout puts .has-bottomnav on the page wrapper, and app.css pays the tab
   bar as #main-scroll-container's padding-bottom. The floor above has to subtract the same amount
   or the two stack. Covers iOS and Android, phone and tablet, in every orientation. */
.page.has-bottomnav .profile-background {
  --fc-profile-tabclear: calc(56px + var(--fc-tabbar-pad-bottom));
}

/* ── Card hover (global, unchanged for other pages) ─────────── */
.mud-paper {
  transition: all 0.3s ease;
}
.mud-paper:hover {
  transform: translateY(-2px);
  box-shadow: var(--elevation-lg) !important;
}

/* ── Profile cards — Momento (Kelly, 2026-09-29, row #51): solid white, no shadow (elevation None
   for primary experiences), no border (Kelly's pick — like Momento's Item Cards), no hover lift.
   Was v3.0.2's white 95% + a faint 0 15px 15px rgba(0,0,0,.01) shadow. ── */
.profile-card {
  background: var(--color-surface-default) !important;
  box-shadow: none !important;
}
.profile-card:hover {
  transform: none !important;
  box-shadow: none !important;
}
/* Delete Account card is a real <button> (row #42), so it is keyboard-reachable and announced as a
   button. The resets stand in for the MudPaper it replaced; .profile-card still gives the white fill.
   Press = .fc-card-pressable (the catch-all button press skips that class). */
.fc-delcard {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  margin: 0;
  padding: var(--space-2);
  border: 0;
  border-radius: var(--radius-lg);
  font: inherit;
  color: inherit;
  letter-spacing: inherit;   /* a <button> resets it; keeps the chevron's box as it was on the <div> */
  text-align: start;
  cursor: pointer;
}
.mud-switch { margin: 0 !important; }
/* v3 profile avatar has no drop shadow — scope to the profile page (leave other avatars untouched). */
.profile-background .mud-avatar { box-shadow: none; }

/* ── Custom switch ──────────────────────────────────────────── */
.custom-switch-container {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

/* Track 46×24 with 22px travel = reference .fc-switch / .fc-switch-track (Profile.css:66-75). */
.switch-button {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}

.switch-button input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-border-subtle);
  transition: .2s;
  border-radius: var(--radius-full);
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background-color: var(--color-surface-default);
  transition: .2s;
  border-radius: 50%;
}

/* Scoped to .switch-button: these were unscoped element selectors matching ANY
   `input:checked + .slider` in the app. .switch-button/.slider are used only by ProfileMenu.razor,
   so scoping changes nothing here and stops the rules leaking app-wide.
   The focus rule that sat here (a faint 1px red glow on :focus, so on every tap too) is gone:
   toggle focus is Accessibility.css's 2px #4B4B4B border on :focus-visible (Kelly, 2026-09-28). */
.switch-button input:checked + .slider {
  background-color: var(--color-brand-accent);
}

.switch-button input:checked + .slider:before {
  transform: translateX(22px);
}

/* ── Settings grid layout ───────────────────────────────────── */
.settings-label-column {
  display: flex;
  align-items: center;
  padding-right: var(--space-1) !important;
  justify-content: flex-start;
}

.settings-switch-column {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: var(--space-1) !important;
  padding-left: 0 !important;
  flex-shrink: 0;
}

.settings-status-column {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-left: 0 !important;
  flex-shrink: 0;
  width: 60px !important;
}

.switch-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.status-text {
  color: var(--color-text-primary) !important;
  font-family: var(--font-body) !important;
  font-size: var(--text-label-md-size) !important;
  font-weight: var(--fw-normal) !important;
  line-height: var(--text-action-md-lh) !important;
  white-space: nowrap;
  text-align: right;
  width: 100%;
  min-width: 40px;
}

/* On/Off labels (English and, since 2026-09-29, Spanish — one row layout). The markup gives them
   `style="color:#000;font-weight:800"`, which renders 16px/800 black instead of reference
   .fc-trow-state's 14px/400 primary. This restores the reference values from CSS alone — EVERY
   declaration needs !important because it is fighting an inline style attribute, and the ids give
   (1,0,0) so the block also clears .mud-typography-body1's font-size/line-height. (.status-text above
   was the deleted Spanish grid's equivalent and is no longer used.) */
#faceid-status,
#email-notification-status,
#push-notification-status,
#show-tooltips-status {
  color: var(--color-text-primary) !important;
  font-family: var(--font-body) !important;
  font-size: var(--text-label-md-size) !important;
  font-weight: var(--fw-normal) !important;
  line-height: var(--text-body-md-lh) !important;
}

/* Settings / preferences row label = reference .fc-prow-label / .fc-trow-label (Profile.css:56,63):
   body font, 16px, normal, primary. !important because it has to beat MudBlazor's
   .mud-typography-body1. (Was 14px — the Spanish branch's labels read a step smaller than the
   English branch's.) */
.fc-pref-label {
  color: var(--color-text-primary) !important;
  font-family: var(--font-body) !important;
  font-size: var(--text-body-md-size) !important;
  font-weight: var(--fw-normal) !important;
  line-height: var(--text-body-md-lh) !important;
}

/* Grid-column variant — long labels wrap instead of overflowing their cell. */
.fc-pref-label--wrap {
  white-space: normal;
  word-wrap: break-word;
}

/* Row value = reference .fc-prow-value (Profile.css:58): muted token, not a hardcoded #999.
   --color-text-muted is #6A6A6A, is theme-aware, and lifts contrast from ~2.85:1 to ~5.4:1. */
.fc-pref-value {
  color: var(--color-text-muted) !important;
  font-family: var(--font-body) !important;
  font-size: var(--text-label-md-size) !important;
  font-weight: var(--fw-bold) !important;
  line-height: var(--text-action-md-lh) !important;
}

.settings-grid-row {
  width: 100%;
  align-items: center;
  min-height: 48px;
}

.settings-grid-row .mud-grid-item { flex-shrink: 0; }

.settings-label-column .mud-text {
  white-space: normal;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  line-height: 1.4 !important;
  width: 100%;
}

@media (max-width: 600px) {
  .settings-grid-row { align-items: center; }
  .settings-label-column .mud-text {
    font-size: var(--text-label-md-size) !important;
    line-height: 1.3 !important;
  }
  .settings-status-column { width: 50px !important; }
  /* font-size removed 2026-08-04: the reference has no mobile step for row text
     (.fc-trow-state is 14px at every width), and this re-declared the base value anyway. */
  .status-text { min-width: 35px; }
}

.mud-grid-item.settings-label-column,
.mud-grid-item.settings-switch-column,
.mud-grid-item.settings-status-column {
  display: flex !important;
  align-items: center !important;
  min-height: 48px;
}

.mud-grid-item.settings-status-column {
  justify-content: flex-end !important;
}

.settings-grid-row:hover {
  background-color: rgba(0, 0, 0, 0.02);
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease;
}

/* ── Preferences grid layout (Spanish branch) — UNUSED since 2026-09-29 ──
   The Spanish UI now renders the English row layout (Kelly, Momento row #50), so no markup uses
   .preferences-*, .status-text, .switch-container, .fc-pref-label--wrap or .fc-pref-value any more.
   Left in place until Kelly OKs removing them. */
/* No min-height: with the 8px-per-row padding on #settings-stack > div these rows land at 40px,
   matching the English branch and reference .fc-trow (Profile.css:61). A 48px floor made the
   Spanish rows visibly taller than the English ones. */
.preferences-grid-row {
  width: 100%;
  align-items: center;
}

.preferences-label-column {
  display: flex;
  align-items: center;
  padding-right: var(--space-1) !important;
  justify-content: flex-start;
}

.preferences-switch-column {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: var(--space-1) !important;
  flex-shrink: 0;
}

.preferences-status-column {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  width: 60px !important;
}

.mud-grid-item.preferences-label-column,
.mud-grid-item.preferences-switch-column,
.mud-grid-item.preferences-status-column {
  display: flex !important;
  align-items: center !important;
}

.mud-grid-item.preferences-status-column {
  justify-content: flex-end !important;
}

/* ── Profile typography ─────────────────────────────────────── */
/* Page heading — Momento text-heading-xl: Inter Bold 28/32, 0.2px (Kelly, 2026-09-29, row #44).
   Was Extra Bold with -1px tracking (v3.0.2; the Stores title still is). */
.profile_heading_cls {
  color: var(--color-text-primary);
  font-family: var(--font-heading);
  font-size: var(--text-heading-xl-size);
  font-weight: var(--fw-bold);
  line-height: var(--text-heading-xl-lh);
  letter-spacing: 0.2px;
  text-align: left;
}

/* User full name — same token as the page heading (row #44). */
.user_fullname_cls {
  color: var(--color-text-primary);
  font-family: var(--font-heading);
  font-size: var(--text-heading-xl-size);
  font-weight: var(--fw-bold);
  line-height: var(--text-heading-xl-lh);
  letter-spacing: 0.2px;
}

.test_user_info_cls {
  font-family: var(--font-heading);
  font-size: var(--text-heading-md-size);
  font-weight: var(--fw-xbold);
  line-height: var(--text-heading-md-lh);
  color: var(--color-text-primary);
  text-align: left;
}

/* Body text — uses Helvetica Neue per Momento §3 */
/* Row label (English branch) = reference .fc-prow-label. --text-body-md-size is the same 16px
   --text-action-md-size resolved to; the swap is token semantics, not a visual change. */
.all_text_userfullname_cls {
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: var(--text-body-md-size);
  font-weight: var(--fw-normal);
  line-height: var(--text-action-md-lh);
}

.all_text_right_usernamefull_cls {
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: var(--text-label-md-size);
  font-weight: var(--fw-bold);
  line-height: var(--text-label-md-lh);
  /* no letter-spacing — reference .fc-prow-value (Profile.css:58) declares none */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Link = v3.0.2 (Kelly, 2026-09-30, Profile row #10): 14px, in the system Helvetica v3.0.2 renders.
   v3.0.2 declares no family here, so the link falls to MudBlazor's "Roboto, Helvetica, Arial" and,
   with no Roboto web font loaded there, draws in Helvetica. v3.1 loads Roboto, so the same fallback
   is written out to get the same result. line-height inherits the sentence's 14/18 (row #48), so
   the link no longer makes its line taller (it was 16/24 from 2026-09-29 to 09-30). */
.terms_conditions_cls {
  font-family: Helvetica, Arial, sans-serif;
  font-weight: var(--fw-normal);
  font-size: var(--text-label-md-size);
  line-height: inherit;
  color: var(--color-info) !important;
  text-decoration: underline !important;   /* MudLink defaults to underline-on-hover; force it always (v3) */
  white-space: nowrap;   /* keeps "Terms & Conditions" whole (it split as "Terms | & Conditions" at 402px when 16px) */
}

/* Terms line = reference .fc-profile-terms (Profile.css:93): muted, body font,
   margin var(--space-1) 0 0. !important on colour and margin is required to beat the inline
   `style="color:#666; margin-bottom:16px"` on the MudText; on font-family it is not strictly
   needed (it only has to beat .mud-typography-body1, and this file loads later) but it keeps the
   block uniform. font-size is left to the markup's inline 14px, which already matches. */
#terms-text {
  color: var(--color-text-muted) !important;
  font-family: var(--font-body) !important;
  line-height: var(--text-label-md-lh) !important;   /* Momento text-label-md 14/18 (row #48); was 14/21 */
  margin: var(--space-1) 0 0 !important;
}
/* DELIBERATE DIVERGENCE FROM v3.0.1 (Kelly, 2026-08-04). Profile.css:94-96 hides the terms line
   below 768px, and that was ported here initially. It is now unhidden on purpose: the line carries
   the "By using this application…" notice AND the Terms & Conditions link, and legal copy must not
   disappear on mobile — the primary viewport. Do not "restore parity" by re-adding the hide rule. */

/* Footer block spacing. Both !importants beat MudBlazor's own important spacing utilities
   (verified in MudBlazor 8.13.0: `.mb-8,.my-8{margin-bottom:32px !important}` and
   `.mt-6,.my-6{margin-top:24px !important}`); id + class = (1,2,0) wins the important-vs-important
   tie. This drops 32px of the 64px dead band above Sign Out to 16px — the other 32px is
   .version-text's own margin-bottom in Components/ProfileMenuDrawer.css, which is NOT this file's
   to change. Until that one lands too, the gap reads 48px, not the reference 16px.
   The .mt-6 half brings the delete-card → terms gap from 24px down to 16px. */
#footer-section.mb-8 { margin-bottom: var(--space-2) !important; }
#footer-section.mt-6 { margin-top: var(--space-2) !important; }

/* Sign out button — reference: heading font, destructive red text + red outline (#D32F2F). */
.signout_btn_cls {
  height: 48px;                       /* v3 fc-profile-signout = 48px */
  border-radius: var(--radius-lg);
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  text-transform: none;
  font-size: var(--text-action-md-size);
  /* no letter-spacing — reference .fc-profile-signout (Profile.css:100) declares none */
  line-height: var(--text-action-md-lh);
  color: #D32F2F !important;
  border-color: #D32F2F !important;
}
/* MudButton keeps its own label weight/size (medium/14px), so the root class alone reads thinner
   than v3's bold Sign Out. Force the label to heading/700/16px to match v3 fc-profile-signout. */
.signout_btn_cls .mud-button-label {
  font-family: var(--font-heading) !important;
  font-weight: var(--fw-bold) !important;
  font-size: var(--text-body-md-size) !important;
  text-transform: none !important;
}
.signout_btn_cls .mud-icon-root { color: #D32F2F !important; }
/* Start icon at 16px to match the label (reference .fc-profile-signout's icon inherits the 16px
   font-size). !important is required to beat MudBlazor's
   `.mud-button-icon-size-large > *:first-child { font-size: 22px }` which Size="Size.Large" emits;
   the id gives (1,2,0) and the three selectors cover both DOM shapes MudButton can render
   (icon element as the wrapper itself, or nested inside it). */
#signout_button .mud-button-icon-start,
#signout_button .mud-button-icon-start > *,
#signout_button .mud-icon-root {
  font-size: var(--text-body-md-size) !important;
}

/* Delete Account card text — Momento text-heading-xsm, Inter Bold 18/24, at every width (Kelly,
   2026-09-29, row #47: the card's title). Was 16/28 Bold on phones and 18/28 Extra Bold from 768px
   (v3.0.2); 28 is not a line-height token. Card = 16 + 24 + 16 = 56px (was 60). */
.profile-delcard-text {
  color: #D32F2F;
  font-family: var(--font-heading);
  font-size: var(--text-heading-xsm-size);
  font-weight: var(--fw-bold);
  line-height: var(--text-heading-xsm-lh);
}

/* ── Chevron ────────────────────────────────────────────────── */
/* The real 20px fa-chevron-right glyph, not a rotated 12px CSS border square — reference
   .fc-prow-chev (Profile.css:59) is `<i class="fa-solid fa-chevron-right">` at 20px/primary.
   Same FA6-Pro-via-kit idiom already proven in this file on the modal header icon (see
   .mud-drawer-header-label::before below). No markup change: every <span class="custom-chevron">
   stays as it is. margin-left is gone — the 8px now comes from the value stack's gap, and having
   both produced a doubled 16px. */
.custom-chevron {
  display: inline-block;
  width: auto;
  height: auto;
  border: 0;
  transform: none;
  margin-left: 0;
  flex-shrink: 0;
  color: var(--color-brand-primary);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.custom-chevron::before {
  content: "\f054";                      /* fa-chevron-right (solid) */
  font-family: "Font Awesome 6 Pro";
  font-weight: 900;
}
/* Delete-Account affordance is larger — reference .fc-profile-delcard i (Profile.css:87) = 24px.
   Id + class = (1,1,0) beats the base .custom-chevron (0,1,0); no !important needed. */
#delete-Account-chevron.custom-chevron {
  font-size: 24px;
}

/* ── Native <select> for Preferred Language — Momento Input Field, Large (Kelly, 2026-09-29, rows #36/#37) ──
   56px tall overall: the 1px #000 border is drawn INSIDE (inset box-shadow, as Momento specifies),
   so the select's 16 + 24 + 16 is the whole height. Was a real 1px #121212 border outside it (58 tall).
   Chevron = a 24px icon frame with a 20px glyph, 16px from the edge (was 16px glyph at an off-grid 14);
   text padding-right 48 = 16 edge + 24 icon + 8 gap. Text #121212 (gray-1). */
.fc-native-select { position: relative; width: 100%; background: var(--color-surface-default); border: 0; box-shadow: inset 0 0 0 1px #000000; border-radius: var(--radius-lg); }
.fc-native-select select {
  width: 100%; appearance: none; -webkit-appearance: none;
  background: transparent; border: none; outline: none; border-radius: inherit;
  padding: var(--space-2) var(--space-6) var(--space-2) var(--space-2);
  font-family: var(--font-body); font-size: var(--text-body-md-size);
  color: #121212; line-height: var(--text-body-md-lh); cursor: pointer;
}
/* --fa-display: the Font Awesome kit injects `.fa-solid { display: var(--fa-display, inline-block) }` AFTER
   the app stylesheets, so a plain `display` here loses and the glyph sat 2px high in its frame. */
.fc-native-select-chev { position: absolute; right: var(--space-2); top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--color-text-muted); width: 24px; height: 24px; font-size: 20px; --fa-display: inline-flex; display: inline-flex; align-items: center; justify-content: center; }
/* Focus = v3.0.2's blue ring (Kelly, 2026-09-30, Profile row #11): FocusRing.css's 2px blue inset ring on the
   rounded field, inside its 1px border — the same blue focus as every other Profile field. The field's 1px
   border is an inset shadow here (row #37), so the ring is layered under it.
   v3.0.2 ALSO draws its generic `select:focus-visible` outline (2px blue, 2px out, square). It was copied
   the same day and removed again on Kelly's call: the modal clips its sides and bottom, so all that showed
   was a line across the top of the field. The select itself draws nothing. Profile modal only. */
.custom-bottom-drawer.fc-web-modal .fc-native-select.fc-focus-field:focus-within { box-shadow: inset 0 0 0 1px #000000, inset 0 0 0 3px var(--color-brand-primary); }
.custom-bottom-drawer.fc-web-modal .fc-native-select select:focus-visible { box-shadow: none; outline: none; }

/* ── Accessibility ──────────────────────────────────────────── */
/* Toggle focus lives in Accessibility.css (`.switch-button input:focus-visible + .slider`, 2px
   #4B4B4B — Kelly, 2026-09-28). The rule here was on :focus, so it drew a ring on every tap. */

@media (prefers-contrast: high) {
  .slider { border: 1px solid var(--color-text-primary); }
  /* scoped for the same reason as the base rules above — keep the pair consistent */
  .switch-button input:checked + .slider {
    background-color: var(--color-text-primary);
    border-color: var(--color-text-primary);
  }
}

@media (prefers-reduced-motion: reduce) {
  .slider,
  .slider:before,
  .mud-paper { transition: none; }
  .mud-paper:hover { transform: none; }
}

/* ══ Profile edit modals — reference design (header icon + handle, rounded inputs, Submit/Cancel) ══ */
/* Drag handle at the top-center of the sheet/modal (shown on web + mobile). */
.custom-bottom-drawer.fc-web-modal::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: var(--color-border);
  z-index: 3;
}
/* Header: black circle-exclamation icon before the title; no divider. */
.custom-bottom-drawer.fc-web-modal .mud-drawer-header { align-items: center; padding-top: var(--space-2); }
/* Title 16px below the sheet's top edge and 16px above the content: Momento (Kelly, 2026-09-30,
   Profile row #4). The ✕ is v3.0.2's 40x40 (row #3, app.css); it overhangs the 24px title line by
   8px above and below instead of pushing the title down to v3.0.2's 24/24. Its 20px glyph stays
   centred on the title line. */
.custom-bottom-drawer.fc-web-modal .mud-drawer-header .mud-icon-button {
  margin-top: calc(-1 * var(--space-1));
  margin-bottom: calc(-1 * var(--space-1));
}
.custom-bottom-drawer.fc-web-modal .mud-drawer-header-label {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-heading) !important;
  font-weight: var(--fw-bold) !important;          /* v3 fc-sheet-title = 700 (was xbold/800 → looked large) */
  font-size: var(--text-heading-sm-size) !important;  /* 20px, matches v3 */
  line-height: var(--text-heading-sm-lh) !important;
  color: var(--color-text-primary) !important;
}
.custom-bottom-drawer.fc-web-modal .mud-drawer-header-label::before {
  content: "\f06a";                      /* fa-circle-exclamation (solid) — black circle, white "!" */
  font-family: "Font Awesome 6 Pro";
  font-weight: 900;
  font-size: 20px;
  color: var(--color-text-primary);
  line-height: 1;
  flex-shrink: 0;
}
.custom-bottom-drawer.fc-web-modal .mud-divider { display: none; }

/* Rounded outlined inputs (reference pill-ish radius). */
.custom-bottom-drawer.fc-web-modal .mud-input.mud-input-outlined .mud-input-outlined-border {
  border-radius: var(--radius-lg);
}

/* Actions row: red "Submit Changes" + blue-outlined "Cancel", equal halves. */
.fc-modal-actions {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: var(--space-1);
  width: 100%;
  margin-top: var(--space-2);
}
.fc-modal-actions .mud-button-root {
  border-radius: var(--radius-lg) !important;   /* rounded-rect, not a full pill */
  width: 100%;
  min-width: 0;
  margin: 0;
}
.fc-modal-cancel {
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--color-surface-default);
  border: 1.5px solid var(--color-brand-primary);
  color: var(--color-brand-primary);
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: var(--text-action-md-size);
  line-height: var(--text-action-md-lh);   /* 24: Momento (Kelly, 2026-09-30, Profile row #7). It inherited 20 (phone) / 22.9 (desktop) from v3.1's body. */
  cursor: pointer;
}
/* Hover removed 2026-07-30 — the Secondary type group in PressFeedback.css now owns it (same
   surface-subtle value, declared once for every Secondary). A duplicate here made
   .fc-modal-cancel the only Secondary with two hover rules, so it stopped matching its own type.
   (v3.0.2's note. v3.1 kept the duplicate until 2026-09-30 on the belief that its PressFeedback.css
   had no Secondary group; it has had v3.0.2's full file since 2026-09-23.) */

/* Delete-account confirm: MudBlazor's .mud-button-root uppercases every label, so "Delete Account"
   rendered as "DELETE ACCOUNT" — at 16px bold plus the trash icon that filled the half-width button
   edge to edge. Sentence case is what the resx actually says and what every other CTA in the app
   uses ("Get Directions", "Apply changes"), so the label now fits its button. nowrap keeps it on
   one line if the localised string is longer. (Kelly, 2026-08-20.) */
#button_delete_account_confirm {
  text-transform: none;
  white-space: nowrap;
}

/* v3 parity: all filled action buttons brighten 20% on hover (Submit / Delete). */
.fc-modal-actions .mud-button-root:hover,
.fc-modal-actions .fc-modal-submit:hover { filter: brightness(1.2); }
/* …and darken 20% on press, even while hovered (Kelly, 2026-09-30: "Upon button press it should be 20%
   darkened as I've stated before" — her 2026-07-30 Primary rule). The hover rule above is (0,3,0), so it
   outranked PressFeedback.css's type-level :active darken (0,2,0) and a mouse press BRIGHTENED these two
   buttons instead (v3.0.2 has the same rule). Same specificity, later in the file, so press wins. */
.fc-modal-actions .mud-button-root:active,
.fc-modal-actions .fc-modal-submit:active { filter: brightness(0.8); }

/* Password criteria text stays neutral (reference shows gray); the circle/check icons carry the
   met/unmet state, so the label text should not turn red on its own.
   Size = Momento text-label-md 14/18 (Kelly, 2026-09-29, row #32); was 12/18 (no 12px text token). */
.custom-bottom-drawer.fc-web-modal .password-char-label,
.custom-bottom-drawer.fc-web-modal .password-char-label.pass-error-text {
  color: var(--color-text-secondary) !important;
  font-size: var(--text-label-md-size);
  line-height: var(--text-label-md-lh);
}

/* ── Password rules checklist — Momento (Kelly, 2026-09-29, rows #31/#32) ──
   Each rule is a status ICON, not a button (the icons were MudToggleIconButtons, so tapping
   "1 special character" marked it met, and each added a Tab stop). Same shape as the Create
   Password checklist (.login-req, CommonDrawer.css): 20px circle (Momento Radio Medium), 8px from
   the text, 8px between rules. Default = empty circle with a 1px #D7DBDF border; met = solid
   circle-check in success #2E8B57; not met = solid circle-xmark in failure #D32F2F. Colours are
   literals because tokens.css (report-only) has no Momento success/failure values. */
.custom-bottom-drawer.fc-web-modal .password-validation-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.custom-bottom-drawer.fc-web-modal .fc-pw-rule {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.custom-bottom-drawer.fc-web-modal .fc-pw-rule-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  font-size: 20px;
  line-height: 1;
}
.custom-bottom-drawer.fc-web-modal .fc-pw-rule-icon--pending { border: 1px solid #D7DBDF; }
.custom-bottom-drawer.fc-web-modal .fc-pw-rule-icon--met     { color: #2E8B57; }
.custom-bottom-drawer.fc-web-modal .fc-pw-rule-icon--unmet   { color: #D32F2F; }
/* "This password does not meet our criteria" is an error message, so it is failure red, not the
   neutral rule grey (its old inline style="color:red" lost to the grey !important above). */
.custom-bottom-drawer.fc-web-modal #password-criteria-error-text.password-char-label {
  color: #D32F2F !important;
}
/* It sits between the New Password field and the rules: 8px on both sides (row #38's 8px step). */
.custom-bottom-drawer.fc-web-modal #password-criteria-error {
  margin-bottom: var(--space-1);
}

/* ── Profile modal text fields — Momento Input Field, Large (Kelly, 2026-09-29, rows #33/#34/#36) ──
   Text: 16px padding, text-body-md 16/24, #121212 (gray-1); field height stays 56 (16+24+16).
   Was MudBlazor's 18.5px/14px padding, a 19px line-height and #424242.
   Font = v3.0.2 (Kelly, 2026-09-30, Profile row #9): the system Helvetica v3.0.2 renders. v3.0.2
   declares MudBlazor's "Roboto, Helvetica, Arial" but loads no Roboto web font, so it draws in
   Helvetica; v3.1 loads Roboto, so the same fallback is written out to get the same result. */
.custom-bottom-drawer.fc-web-modal .mud-input.mud-input-outlined > input.mud-input-root-outlined {
  font-family: Helvetica, Arial, sans-serif;
  padding: var(--space-2) !important;
  line-height: var(--text-body-md-lh) !important;
  color: #121212 !important;
}
.custom-bottom-drawer.fc-web-modal .mud-input.mud-input-outlined.mud-input-adorned-end > input.mud-input-root-outlined {
  padding-right: 0 !important;
}
/* Eye icon 16px from the field's right edge (was 14): the 48px tap target keeps MudBlazor's −12px
   margin, so the field's own 16px right padding places the glyph at 16. */
.custom-bottom-drawer.fc-web-modal .mud-input.mud-input-outlined.mud-input-adorned-end {
  padding-right: var(--space-2) !important;
}
/* Momento input icon = a 24px frame holding a 20px glyph (row #35 sets the Solid style in markup). */
.custom-bottom-drawer.fc-web-modal .mud-input-adornment .mud-icon-root {
  width: 24px;
  height: 24px;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Error messages (row #34): Momento supporting text = text-label-md 14/18, failure #D32F2F, 8px under
   the field, no indent. Covers both kinds: MudBlazor's own helper text (Phone "required", password
   validation) and the icon + text blocks (.sign-in-error-block). Was 12px in two different reds
   (#F44336 / #E22721), 19px under the field, indented 8px. */
/* MudBlazor also renders an EMPTY error line (helper container > .mud-input-helper-text > empty .me-auto)
   whenever a field is invalid, including when our own icon + text block shows the message. Only a line
   that actually carries text gets the 8px. */
.custom-bottom-drawer.fc-web-modal .mud-input-control-helper-container {
  margin-top: 0 !important;
  padding: 0 !important;
}
.custom-bottom-drawer.fc-web-modal .mud-input-control-helper-container:has(.mud-input-helper-text .me-auto:not(:empty)) {
  margin-top: var(--space-1) !important;
}
.custom-bottom-drawer.fc-web-modal .mud-input-helper-text,
.custom-bottom-drawer.fc-web-modal .sign-in-error-text {
  color: #D32F2F !important;
  font-family: var(--font-body);
  font-size: var(--text-label-md-size) !important;
  font-weight: var(--fw-normal);
  line-height: var(--text-label-md-lh) !important;
  letter-spacing: 0.2px;
}
.custom-bottom-drawer.fc-web-modal .sign-in-error-block {
  gap: var(--space-1);
  margin-top: var(--space-1);
}
.custom-bottom-drawer.fc-web-modal .sign-in-error-block .mud-icon-root {
  color: #D32F2F;
  width: 24px;
  height: 24px;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
/* A field keeps its 16px bottom margin when something follows it in the form (the next field group).
   When an error follows, that margin becomes 0 and the 8px above does the spacing; the 16px then sits
   under the error instead. */
.custom-bottom-drawer.fc-web-modal .mud-input-control:has(+ .sign-in-error-block) .mud-input.mud-input-outlined,
.custom-bottom-drawer.fc-web-modal .mud-input-control:has(.mud-input-helper-text .me-auto:not(:empty)) .mud-input.mud-input-outlined {
  margin-bottom: 0 !important;
}
.custom-bottom-drawer.fc-web-modal .mud-input-control:has(.mud-input-helper-text .me-auto:not(:empty)) {
  margin-bottom: var(--space-2);
}
.custom-bottom-drawer.fc-web-modal .mud-input-control + .sign-in-error-block {
  margin-bottom: var(--space-2);
}
/* New Password and Confirm Password are followed by their rules list 8px below (row #38), so when one of
   them shows an error, 8px — not 16 — sits under the error. */
#password-drawer #new-password-container .mud-input-control:has(.mud-input-helper-text .me-auto:not(:empty)),
#password-drawer #confirm-password-container .mud-input-control:has(.mud-input-helper-text .me-auto:not(:empty)) {
  margin-bottom: var(--space-1);
}
/* Last field → buttons = 16px (Kelly, 2026-09-29, Momento row #21: the button row's own 16px margin-top,
   nothing more). Was 32 in Phone Number, Change Password and Delete Account (the last field group's
   16px bottom margin + the button row's 16px); Preferred Language was already 16. Zeroes whatever the
   last group ends with: the group itself, its field, or the error under it. */
.custom-bottom-drawer.fc-web-modal .mud-drawer-form > div:last-child,
.custom-bottom-drawer.fc-web-modal .mud-drawer-form > div:last-child > .mud-input-control:last-child,
.custom-bottom-drawer.fc-web-modal .mud-drawer-form > div:last-child > .mud-input-control:last-child .mud-input.mud-input-outlined,
.custom-bottom-drawer.fc-web-modal .mud-drawer-form > div:last-child > .sign-in-error-block:last-child {
  margin-bottom: 0 !important;
}

/* Submit Changes button is always red (reference), even before the form is valid — the grey
   "disabled look" (mudbutton-grey) is overridden; validation still runs on click. Targets only the
   edit-modal submit buttons (they carry mudbutton-grey/-ui), never the Delete confirm button. */
.fc-modal-actions .fc-modal-submit.mudbutton-grey,
.fc-modal-actions .fc-modal-submit.mudbutton-ui {
  background-color: var(--color-brand-accent) !important;
  color: var(--color-surface-default) !important;
}
.fc-modal-actions .fc-modal-submit.mudbutton-grey .mud-icon-root,
.fc-modal-actions .fc-modal-submit.mudbutton-ui .mud-icon-root {
  color: var(--color-surface-default) !important;
}

/* ── Profile modal inputs: ONE clean rounded border (fixes the doubled/rectangular red border) ──
   The single visible outline is the rounded <fieldset> .mud-input-outlined-border. */
/* Kill the rectangular red ring app.css stamps on the raw invalid <input>. That app rule's four
   :not([type=…]) guards give it specificity (0,5,1), so we replicate the same selector + the two
   drawer classes to outrank it. Without this the input's square-cornered ring shows behind the
   rounded fieldset border. */
.custom-bottom-drawer.fc-web-modal input:not([type=range]):not([type=checkbox]):not([type=radio]):not([type=search])[aria-invalid="true"],
.custom-bottom-drawer.fc-web-modal input:not([type=range]):not([type=checkbox]):not([type=radio]):not([type=search]).input-error {
  box-shadow: none !important;
  border-color: transparent !important;
}
/* Resting/hover: Momento Input Field Default = 1px #000 inside border (Kelly, 2026-09-29, row #36).
   Was #121212 (v3.0.2). */
.custom-bottom-drawer.fc-web-modal .mud-input.mud-input-outlined .mud-input-outlined-border.mud-input-outlined-border {
  border-color: #000000 !important;
  border-width: 1px !important;
}
/* Focus: the 1px #000 border stays and FocusRing.css's 2px brand-blue inset ring shows inside it — the
   app-wide field focus, and v3.0.2's Profile look (Kelly, 2026-09-30: "the Input Fields within the My Profile
   page should also have the Blue border than the current gray", for emphasis). Momento's 2px #808080
   border (row #36, 2026-09-29) is gone. Matches the Language field above. */
.custom-bottom-drawer.fc-web-modal .mud-input.mud-input-outlined:focus-within .mud-input-outlined-border.mud-input-outlined-border {
  border-color: #000000 !important;
  border-width: 1px !important;
  box-shadow: inset 0 0 0 2px var(--color-brand-primary) !important;
}
/* Error: a single rounded red border, no blue ring — works both resting and focused. */
.custom-bottom-drawer.fc-web-modal .mud-input.mud-input-outlined.mud-input-error .mud-input-outlined-border.mud-input-outlined-border,
.custom-bottom-drawer.fc-web-modal .mud-input.mud-input-outlined.mud-input-error:focus-within .mud-input-outlined-border.mud-input-outlined-border {
  border-color: #D32F2F !important;
  border-width: 2px !important;
  box-shadow: none !important;
}

/* Mobile: shrink the modal action buttons' text so "Submit Changes" / "Delete Account" / "Cancel"
   stay on one line inside the half-width buttons (they wrapped to two lines at the desktop 16px). */
@media (max-width: 600px) {
  .fc-modal-actions .mud-button-root,
  .fc-modal-actions .mud-button-label,
  .fc-modal-cancel {
    font-size: var(--text-label-md-size) !important;
    white-space: nowrap;
  }
}

/* ══ Profile additions from the v3.0.1 transfer (2026-10-06) ═══════════════════════════════════
   The features are v3.0.1's (Pages/Profile.razor + Profile.css:33-43, 121-122, 134-171); the spacing,
   type and card language are v3.1's Profile (Momento 8px scale only). None of these animate (v3.0.1
   had no motion here); press and focus come from the house rules (PressFeedback.css catch-all, the
   generic button outline in Accessibility.css). ══ */

/* ── Linked Accounts card, between #profile-header and #profile-grid ──
   v3.0.1's blue CTA card in Profile's card geometry: 16px padding all round (v3.0.1 had 16/24), radius
   16, no shadow, no hover (v3.1 nav cards have none). Title Inter Bold 18/24 like the Delete Account
   card (v3.0.1 was Extra Bold); title → subtitle gap 0 (v3.0.1 2px); 24px chevron like Delete Account
   (v3.0.1 14px). 16px below it to the grid, matching the header's own 16px above it. Press = the
   catch-all (scale .99 + brightness .8). The resets stand in for the browser/MudBlazor button defaults,
   as on .fc-delcard. */
.fc-profile-linkcard {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  margin: 0 0 var(--space-2);
  padding: var(--space-2) var(--space-3);   /* 1:1 v3.0.1 (16px 24px) */
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--color-brand-primary);
  color: var(--color-surface-default);
  font: inherit;
  letter-spacing: inherit;
  text-align: start;
  cursor: pointer;
}
/* After "Not Me" (or ✕ / Esc / an outside click on "Is this you?"): the whole card turns red and a
   warning triangle joins the chevron (v3.0.1). #D32F2F = v3.1's destructive red (Delete Account). */
.fc-profile-linkcard.fc-profile-linkcard--err { background: #D32F2F; }
/* Icon circle → text = 8px, v3.1's icon↔label tie (Saved nav card, avatar → name); v3.0.1 had 16px. */
.fc-profile-linkcard-left {
  display: flex;
  align-items: center;
  gap: var(--space-2);   /* 1:1 v3.0.1 */
  min-width: 0;
}
/* 40px translucent-white circle with an 18px link glyph (v3.0.1 component sizes). */
.fc-profile-linkcard-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-surface-default);
  font-size: 18px;
}
.fc-profile-linkcard-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;   /* 1:1 v3.0.1 */
  min-width: 0;
  text-align: start;   /* a <button> centres text; keeps a wrapped subtitle left-aligned */
}
.fc-profile-linkcard-title {
  color: var(--color-surface-default);
  font-family: var(--font-heading);
  font-size: var(--text-heading-xsm-size);
  font-weight: var(--fw-xbold);   /* 1:1 v3.0.1 (800) */
  line-height: 1.43;   /* 1:1 v3.0.1 (25.74px) */
}
.fc-profile-linkcard-sub {
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-body);
  font-size: var(--text-label-md-size);
  font-weight: var(--fw-normal);
  line-height: 1.43;   /* 1:1 v3.0.1 (20.02px) */
}
/* WCAG 1.4.3: 75% white on the red card is about 3.4:1, too low for 14px text, so the subtitle goes solid
   white there (about 5.0:1). The blue card keeps 75% (about 5.1:1). The chevron is decorative and keeps 75%. */
.fc-profile-linkcard--err .fc-profile-linkcard-sub { color: var(--color-surface-default); }
.fc-profile-linkcard-right {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.fc-profile-linkcard-warn {
  color: var(--color-surface-default);
  font-size: 18px;
}
.fc-profile-linkcard-chev {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;   /* 1:1 v3.0.1 */
}

/* ── Customer # line under the name (while an account is linked) ──
   The name and the line stack in one column with no gap (v3.0.1). Momento text-label-md 14/18, muted:
   v3.0.1's 12px would bring back the 12px text Kelly removed from Profile (rows #32/#34). */
.fc-profile-name-block {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.fc-profile-customer {
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: var(--text-label-md-size);
  font-weight: var(--fw-normal);
  line-height: var(--text-label-md-lh);
}

/* ── MILITARY pill on the avatar ──
   MudAvatar clips its children, so the pill is the avatar's sibling inside this relative wrapper.
   Two-class selector so position:absolute holds against any later single-class rule. Geometry snapped to
   the 8px scale: padding 0 8px on a 16px line box, overhanging the avatar by 8px (v3.0.1: 2px 9px, 12px
   line, bottom −7px). No shadow (Momento elevation none). 10px Extra Bold text (Kelly, 2026-10-07: up from
   v3.0.1's 9px; her named size, below Momento's type scale); the 0.6px tracking and 0.5px hairline are v3.0.1's. */
.fc-profile-avatar-wrap {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}
.fc-profile-avatar-wrap .fc-profile-milbadge {
  position: absolute;
  bottom: calc(-1 * var(--space-1));
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  padding: 0 var(--space-1);
  border: 0.5px solid var(--color-surface-default);
  border-radius: var(--radius-full);
  background: var(--color-success);
  color: var(--color-surface-default);
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: var(--fw-xbold);
  line-height: 16px;
  letter-spacing: 0.6px;
  white-space: nowrap;
}

/* ── "Restart onboarding (dev)", mock builds only ──
   v3.0.1's dashed red button, as v3.0.1 shows it: full width, 48px (the same height as Sign Out), 1px
   dashed border, radius 16, bold heading type, icon 8px from the label. Red = v3.0.1's #E22721, 1:1 with
   v3.0.1 (Kelly, 2026-10-06: "the same as the screenshots I've shown you for v3.0.1"). 16px down to Sign
   Out; the footer above already ends 16px above it. */
.fc-profile-restart {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  width: 100%;
  height: 48px;
  margin: 0 0 var(--space-2);
  padding: 0 var(--space-2);
  background: none;
  border: 1px dashed #E22721;
  border-radius: var(--radius-lg);
  color: #E22721;
  font-family: var(--font-heading);
  font-size: var(--text-body-md-size);
  font-weight: var(--fw-bold);
  line-height: var(--text-action-md-lh);
  cursor: pointer;
}

/* ── Delete Account sheet: the linked-accounts notice (always shown) ──
   A second paragraph under "Are you sure…?" in the same .fc-delete-account-warning type (14/18), 8px
   below it (text lines within one block). Lives here with the other Delete Account sheet rules
   (#button_delete_account_confirm above). */
#delete-account-warning-container .fc-delete-account-notice {
  margin-top: var(--space-1);
}

/* ── 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. */
/* Card body rhythm: reference .fc-section-body has NO gap and each .fc-prow/.fc-trow carries
   `padding: var(--space-1) 0`. That yields the same 16px between rows plus an 8px lead-in and
   lead-out that a pure gap model loses. The id (1,0,0) beats MudStack Spacing="4"'s
   .gap-4 (0,1,0), which is not important — so no !important needed.
   `> div` covers both the English MudStack rows and the Spanish MudGrid rows. */
#user-info-stack,
#settings-stack {
  gap: 0;
}
/* Value → chevron gap = 8px (reference .fc-prow-right). Id beats MudStack's default .gap-3.
   Pairs with the removal of .custom-chevron's own margin-left further down — together they were
   producing 20px. */
#email-value-stack,
#phone-value-stack,
#password-value-stack,
#preferrredlanguage-value-stack {
  gap: var(--space-1);
}
/* ── Press feedback for the click targets that are NOT <button>s ──────────────────────────────
   Kelly, 2026-08-13: "ALL buttons should have press feedback", starting with My Profile because it
   "was done wrongly".

   PressFeedback.css's catch-all selector begins with the ELEMENT selector `button`
   (PressFeedback.css:237), so it can only ever reach a real <button>. These rows are MudStack
   click targets, which render <div>s, so they had NO press response at all — not a weak one, none.
   v3.0.1's equivalents on this page were real <button>s (Profile.razor:102 delete card, :120 restart,
   :124 sign out), so this is a v3.0.2 regression rather than something inherited.

   NOT included, and not a defect: the Terms & Conditions control. Kelly, 2026-08-13 — "Links are not
   Tertiary buttons", so an inline text link belongs to the link vocabulary (underline + hover colour
   + focus ring), never a button type, and it must not be given button press feedback. v3.0.1 renders
   it as `<button class="fc-profile-terms-link">` (Profile.razor:110); v3.0.2's <MudLink> is the
   CORRECT element and that divergence from v3.0.1 is deliberate. Do not "fix" it.

   The treatment is the catch-all's exactly — scale .99 + brightness .8, instant, no transition
   (PressFeedback.css:237-240) — so these respond identically to every other button in the app
   instead of inventing a fourth behaviour. Deliberately NOT the Secondary ring: they are not
   bordered secondaries. Only the three rows that actually carry @onclick are listed;
   #email-value-stack is display-only (no handler at ProfileMenu.razor:124-128) and must stay inert.

   `cursor: pointer` is here for the same reason — these had no pointer affordance either, where
   v3.0.1's clickable rows declare it (.fc-prow--click, Profile.css:57).

   STILL OPEN, needs a markup change rather than CSS: they remain <div>s, so they are not keyboard
   focusable and screen readers do not announce them as buttons. The conversion is not a one-liner —
   each row's value is a <MudText>, which renders a <p>, and a <p> is invalid inside a <button>, so
   the MudText has to become a <span> in the same edit. Left for a pass that can be verified live
   (this page needs a signed-in session). */
#phone-value-stack,
#password-value-stack,
#preferrredlanguage-value-stack {
  cursor: pointer;
}
#phone-value-stack:active,
#password-value-stack:active,
#preferrredlanguage-value-stack:active {
  transform: scale(0.99);
  filter: brightness(0.8);
}
/* Delete Account is a clickable CARD, so it takes the house card press (.fc-card-pressable,
   PressFeedback.css:288-295 — 2px brand inset ring + 1% shrink), added to its Class in the razor.
   Both of that class's declarations are otherwise DEAD on this element: .profile-card pins
   `box-shadow: … !important` (line 143) and `.profile-card:hover { transform: none !important }
`
   (line 146), and on a mouse :hover is still true while :active — so the ring lost to the first and
   the shrink to the second. Restated with !important and an id for (1,2,0), which outranks
   .profile-card:hover's (0,2,0) at equal importance. Scoped to this id so the other .profile-card
   containers stay inert. */
#delete-account-card.fc-card-pressable:active {
  box-shadow: inset 0 0 0 2px var(--color-brand-primary) !important;
  transform: scale(0.99) !important;
}
.switch-button input:focus + .slider {
  box-shadow: 0 0 1px var(--color-brand-accent);
}
.fc-native-select-chev { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--color-text-muted); font-size: 16px; }
/* ── Accessibility ──────────────────────────────────────────── */
/* Same selector as the box-shadow rule in the switch section above (they were different selectors
   until that one was scoped); they set different properties, so neither overrides the other. */
.switch-button input:focus + .slider {
  outline: 2px solid var(--color-brand-dark);
  outline-offset: 2px;
}
/* FCApp KEEPS THIS RULE. v3.0.2 deletes it because its PressFeedback.css (392 lines) declares a
   Secondary type group that owns Secondary hover for every bordered button at once. This fork's
   PressFeedback.css is the earlier 101-line generation with no such group, so deleting the rule
   here left .fc-modal-cancel with NO hover at all. Written as :hover:not(:active) to match the
   v3.0.2 semantics it stands in for — hover fill is suppressed while the button is pressed. */
.fc-modal-cancel:hover:not(:active) { background: var(--color-surface-subtle); }
