@charset "UTF-8";
/**
 * FIT-N-FINE front-end design system.
 *
 * Must stay the very first bytes in the file — @charset is only honoured in
 * position one, and without it a server sending bare `Content-Type: text/css`
 * leaves the browser to guess. Guessing Windows-1252 turned the promo button's
 * arrow into "â†'" on live installs.
 *
 * One coherent dark theme with a violet brand accent. Scoped under
 * body.fnf-app so it never leaks into the theme, and the theme never leaks
 * into us. Layer order: tokens → reset → app shell → components → pages →
 * responsive → print. No overrides layered on top of earlier rules.
 *
 * The neutral ramp is ordered dark → light: gray-25 is the darkest canvas
 * tone and gray-900 is the lightest ink. Step numbers keep their structural
 * role (25/50 = canvas, 100/200 = borders, 400/500 = muted text, 800/900 =
 * headings) so every existing rule that references a step by number stays
 * semantically correct.
 */

/* ==========================================================================
   Tokens
   ========================================================================== */
body.fnf-app {
	/* Brand — violet */
	--fnf-primary-50: #f5f1ff;
	--fnf-primary-100: #ebe3ff;
	--fnf-primary-200: #d7c6ff;
	--fnf-primary-300: #c4a9ff;
	--fnf-primary-400: #a78bfa; /* bright violet — hero fills, active states */
	--fnf-primary-500: #8b5cf6; /* brand violet — buttons, brand block */
	--fnf-primary-600: #7c3aed; /* hover / pressed */
	--fnf-primary-700: #6d28d9;
	--fnf-primary-800: #5b21b6;
	--fnf-primary-900: #4c1d95;

	/* Neutrals — violet-tinted, dark → light */
	--fnf-gray-25: #08070d; /* deepest — page canvas */
	--fnf-gray-50: #0b0a12; /* canvas */
	--fnf-gray-100: #1a1726; /* hairline borders, quiet fills */
	--fnf-gray-200: #241f33; /* borders */
	--fnf-gray-300: #322b45;
	--fnf-gray-400: #8b87a3; /* decorative marks — not for body text */
	--fnf-gray-500: #a7a3bd; /* muted text — clears AA on surface */
	--fnf-gray-600: #c3c0d4;
	--fnf-gray-700: #dedce8;
	--fnf-gray-800: #eeecf5;
	--fnf-gray-900: #f7f6fb; /* ink — headings */

	/* Semantic */
	--fnf-bg: var(--fnf-gray-50);
	--fnf-surface: #14121e; /* elevated card — one step above canvas */
	--fnf-surface-2: #1b1829; /* nested/hover surface */
	--fnf-border: rgba(139, 92, 246, 0.16); /* violet-tinted glow edge */
	--fnf-text: var(--fnf-gray-900);
	--fnf-muted: var(--fnf-gray-500);
	--fnf-primary-fg: #ffffff; /* text on a violet fill */
	--fnf-primary-soft: rgba(139, 92, 246, 0.16); /* quiet violet chip fill */
	--fnf-primary-border: rgba(139, 92, 246, 0.32); /* edge of a violet-tinted panel */
	--fnf-on-accent: #ffffff; /* foreground on any accent/status fill */
	--fnf-focus-ring: rgba(167, 139, 250, 0.45);

	--fnf-success: #22c55e;
	--fnf-success-fg: #6ee7a3;
	--fnf-success-soft: rgba(34, 197, 94, 0.14);
	--fnf-success-border: rgba(34, 197, 94, 0.32);
	--fnf-warning: #f59e0b;
	--fnf-warning-fg: #fbbf5a;
	--fnf-warning-soft: rgba(245, 158, 11, 0.14);
	--fnf-warning-border: rgba(245, 158, 11, 0.32);
	--fnf-danger: #ef4444;
	--fnf-danger-fg: #f98a8a;
	--fnf-danger-hover: #dc2626;
	--fnf-danger-soft: rgba(239, 68, 68, 0.14);
	--fnf-danger-border: rgba(239, 68, 68, 0.32);
	--fnf-info: #3b82f6;
	--fnf-info-fg: #7dabfb;
	--fnf-info-soft: rgba(59, 130, 246, 0.14);
	--fnf-info-border: rgba(59, 130, 246, 0.32);
	--fnf-teal: #14b8a6; /* member status: expired */
	--fnf-teal-soft: rgba(20, 184, 166, 0.14);

	/* Spacing — 4px grid */
	--fnf-sp-1: 4px;
	--fnf-sp-2: 8px;
	--fnf-sp-3: 12px;
	--fnf-sp-4: 16px;
	--fnf-sp-5: 20px;
	--fnf-sp-6: 24px;
	--fnf-sp-7: 32px;
	--fnf-sp-8: 40px;
	--fnf-sp-9: 48px;

	/* Radii */
	--fnf-r-sm: 8px;
	--fnf-r-md: 12px;
	--fnf-r-lg: 16px;
	--fnf-r-full: 999px;

	/* Elevation — black depth + a violet glow so cards lift off the dark canvas */
	--fnf-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
	--fnf-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.45), 0 2px 10px rgba(139, 92, 246, 0.06);
	--fnf-shadow-md: 0 4px 14px rgba(0, 0, 0, 0.5), 0 10px 32px rgba(139, 92, 246, 0.1);
	--fnf-shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.55), 0 28px 64px rgba(139, 92, 246, 0.14);

	/* Type */
	--fnf-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--fnf-font-display: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--fnf-fs-overline: 11px;
	--fnf-fs-caption: 12px;
	--fnf-fs-ui: 13px;
	--fnf-fs-body: 14px;
	--fnf-fs-h3: 16px;
	--fnf-fs-h2: 20px;
	--fnf-fs-h1: 26px;
	--fnf-fs-stat: 28px;
	--fnf-fs-display: 30px;

	/* Motion */
	--fnf-ease: cubic-bezier(0.2, 0.6, 0.2, 1);
	--fnf-t-fast: 160ms;
	--fnf-t-move: 240ms;

	/* Layout */
	--fnf-sidebar-w: 240px;
	--fnf-topbar-h: 68px;

	/* z-index ladder. The scrim sits between the topbar and the sidebar: it must
	   cover the topbar/content it dims, but stay *under* the off-canvas sidebar
	   so the drawer's own nav links stay clickable while it is open. */
	--fnf-z-topbar: 30;
	--fnf-z-overlay: 35;
	--fnf-z-sidebar: 40;
	--fnf-z-dropdown: 50;
	--fnf-z-modal: 60;

	color-scheme: dark;
	background: var(--fnf-bg);
	color: var(--fnf-text);
	font-family: var(--fnf-font);
	font-size: var(--fnf-fs-body);
	line-height: 22px;
	margin: 0;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* ==========================================================================
   Reset (scoped)
   ========================================================================== */
body.fnf-app * {
	box-sizing: border-box;
}
body.fnf-app h1,
body.fnf-app h2,
body.fnf-app h3,
body.fnf-app h4 {
	margin: 0 0 var(--fnf-sp-3);
}
/* Paragraphs and definition lists carry the same trailing rhythm as headings,
   but they have to claim it at ZERO specificity. Listed plainly in the rule
   above, `body.fnf-app p` weighs (0,1,1) and so outranks every single-class
   utility and component that sets a margin on a <p> — .fnf-mt-3, .fnf-mt-6,
   .fnf-mb-0 and .fnf-page-sub all measured as silently dead. That is why the
   element was commented out of it rather than fixed, which in turn dropped
   every paragraph back onto the UA's 14px and handed it a top margin nothing
   else in the system has. :where() contributes no specificity at all, so the
   reset applies to a bare <p> and any class still wins. `dl` was never reset
   at all, which is where .fnf-detail-grid's unowned 14px bottom came from. */
:where(body.fnf-app p, body.fnf-app dl) {
	margin: 0 0 var(--fnf-sp-3);
}
/* A trailing margin is spacing *between* blocks, so the last one in a container
   must not have it — otherwise every panel that happens to end in a paragraph
   or a definition list pads its bottom edge more than its top, and the whole
   card looks like it sagged. Cards, gates, check-in results and the member card
   all ended that way; this is the one rule that keeps them symmetric. */
body.fnf-app :is(h1, h2, h3, h4, p):last-child,
body.fnf-app dd:last-child {
	margin-bottom: 0;
}
body.fnf-app h1 {
	font-family: var(--fnf-font-display);
	font-size: var(--fnf-fs-h1);
	line-height: 34px;
	font-weight: 800;
	letter-spacing: -0.02em;
}
body.fnf-app h2 {
	font-family: var(--fnf-font-display);
	font-size: var(--fnf-fs-h2);
	line-height: 28px;
	font-weight: 700;
	letter-spacing: -0.01em;
}
body.fnf-app h3 {
	font-family: var(--fnf-font-display);
	font-size: var(--fnf-fs-h3);
	line-height: 24px;
	font-weight: 700;
}
body.fnf-app a {
	transition: color var(--fnf-t-fast) var(--fnf-ease);
}
body.fnf-app a:hover {
	color: var(--fnf-gray-900);
}
body.fnf-app img {
	max-width: 100%;
	height: auto;
}


/* Overline — the only uppercase style in the system. */
.fnf-overline {
	font-family: var(--fnf-font);
	font-size: var(--fnf-fs-overline);
	line-height: 16px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--fnf-muted);
}

/* Inline SVG icons (FNF_Template::icon). */
.fnf-icon {
	display: inline-flex;
	width: 20px;
	height: 20px;
	flex: 0 0 auto;
	vertical-align: middle;
}
.fnf-icon svg {
	width: 100%;
	height: 100%;
}
.fnf-icon--sm {
	width: 16px;
	height: 16px;
}

/* ==========================================================================
   App shell (dashboard / portal)
   ========================================================================== */
.fnf-shell {
	display: grid;
	grid-template-columns: var(--fnf-sidebar-w) 1fr;
	min-height: 100vh;
}

/* ---- Sidebar ---- */
.fnf-sidebar {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	width: var(--fnf-sidebar-w);
	background: var(--fnf-surface);
	border-right: 1px solid var(--fnf-border);
	display: flex;
	flex-direction: column;
	z-index: var(--fnf-z-sidebar);
	transition: transform var(--fnf-t-move) var(--fnf-ease);
}
.fnf-sidebar-head {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	padding: var(--fnf-sp-5) var(--fnf-sp-4);
	min-height: 88px;
	border-bottom: 1px solid var(--fnf-border);
}
body.fnf-app .fnf-sidebar-logo {
	height: 46px;
	width: auto;
	max-width: 100%;
	object-fit: contain;
	flex: 0 1 auto;
}
/* The scrolling region is the <nav> wrapper, not .fnf-nav (the <ul> inside it):
   <nav> is the sidebar's flex item, so flex/overflow on the <ul> is inert — the
   <ul> is auto-height and never overflows. min-height:0 is load-bearing too;
   column flex items default to min-height:auto and refuse to shrink below their
   content, which stops overflow-y from ever engaging. */
.fnf-sidebar > nav {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
}
/* Inline padding matches .fnf-sidebar-foot so the active pill's left edge lines
   up with the promo panel beneath it — they are the sidebar's only two visible
   vertical edges. */
.fnf-nav {
	padding: var(--fnf-sp-4);
	list-style: none;
	margin: 0;
}
.fnf-nav li {
	margin: 0 0 2px;
}
.fnf-nav a {
	display: flex;
	align-items: center;
	gap: var(--fnf-sp-3);
	padding: 10px 12px;
	border-radius: var(--fnf-r-md);
	color: var(--fnf-gray-600);
	text-decoration: none;
	font-size: var(--fnf-fs-ui);
	line-height: 20px;
	font-weight: 500;
	transition: background var(--fnf-t-fast) var(--fnf-ease), color var(--fnf-t-fast) var(--fnf-ease);
}
.fnf-nav a:hover {
	background: var(--fnf-gray-100);
	color: var(--fnf-gray-900);
}
.fnf-nav a.is-active {
	background: var(--fnf-primary-500);
	color: var(--fnf-on-accent);
	font-weight: 600;
	box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
}
.fnf-nav a.is-active:hover {
	background: var(--fnf-primary-500);
	color: var(--fnf-on-accent);
}
.fnf-nav-icon {
	width: 20px;
	height: 20px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-size: 16px;
	flex: 0 0 auto;
	color: var(--fnf-gray-400);
}
.fnf-nav a:hover .fnf-nav-icon {
	color: var(--fnf-gray-600);
}
.fnf-nav a.is-active .fnf-nav-icon {
	color: var(--fnf-on-accent);
}
.fnf-nav-count {
	margin-left: auto;
	background: var(--fnf-primary-500);
	color: var(--fnf-on-accent);
	font-size: var(--fnf-fs-overline);
	line-height: 16px;
	font-weight: 600;
	border-radius: var(--fnf-r-full);
	padding: 1px 7px;
	min-width: 20px;
	text-align: center;
}
.fnf-nav a.is-active .fnf-nav-count {
	background: var(--fnf-on-accent);
	color: var(--fnf-primary-600);
}
.fnf-sidebar-foot {
	flex: 0 0 auto;
	padding: var(--fnf-sp-4);
	border-top: 1px solid var(--fnf-border);
}
.fnf-promo-panel {
	position: relative;
	overflow: hidden;
	border-radius: var(--fnf-r-lg);
	border: 1px solid var(--fnf-border);
	padding: var(--fnf-sp-5) var(--fnf-sp-4) var(--fnf-sp-4);
	min-height: 260px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--fnf-sp-2);
	background:
		linear-gradient(to bottom, rgba(11, 10, 18, 0.88) 0%, rgba(11, 10, 18, 0.3) 45%, rgba(11, 10, 18, 0.9) 100%),
		url("../images/sidebar-panel-bg.webp") center 34% / cover no-repeat;
}
.fnf-promo-icon {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: var(--fnf-r-sm);
	background: var(--fnf-primary-500);
	color: var(--fnf-on-accent);
	box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}
.fnf-promo-icon .fnf-icon {
	width: 18px;
	height: 18px;
}
.fnf-promo-title {
	margin: 0;
	font-family: var(--fnf-font-display);
	font-size: var(--fnf-fs-h3);
	line-height: 21px;
	font-weight: 700;
	color: var(--fnf-on-accent);
}
.fnf-promo-sub {
	margin: 0;
	font-size: var(--fnf-fs-caption);
	line-height: 17px;
	color: rgba(255, 255, 255, 0.78);
}
.fnf-promo-btn {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	gap: var(--fnf-sp-2);
	min-height: 34px;
	padding: 7px 14px;
	border-radius: var(--fnf-r-full);
	background: var(--fnf-primary-500);
	color: var(--fnf-on-accent);
	font-size: var(--fnf-fs-caption);
	font-weight: 600;
	text-decoration: none;
	box-shadow: 0 4px 14px rgba(139, 92, 246, 0.38);
	transition: background var(--fnf-t-fast) var(--fnf-ease);
}
/* Escaped, not a literal glyph: a rendered `content` string is the one place an
   encoding slip becomes visible text, so it stays pure ASCII regardless. */
.fnf-promo-btn::after {
	content: "\2192";
}
.fnf-promo-btn:hover {
	background: var(--fnf-primary-600);
	color: var(--fnf-on-accent);
}

/* ---- Main column ---- */
.fnf-main {
	grid-column: 2;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

/* ---- Topbar ---- */
/* The bar itself is full-bleed so its bottom rule spans the viewport; the inner
   row carries the same max-width and gutter as .fnf-content. Without the split
   the search and avatar drift away from the content column on a wide monitor —
   at 1920px the avatar sat ~190px right of everything it belongs to. */
.fnf-topbar {
	position: sticky;
	top: 0;
	z-index: var(--fnf-z-topbar);
	height: var(--fnf-topbar-h);
	background: var(--fnf-surface);
	border-bottom: 1px solid var(--fnf-border);
}
.fnf-topbar-inner {
	height: 100%;
	max-width: 1480px;
	margin-inline: auto;
	padding-inline: var(--fnf-sp-6);
	display: flex;
	align-items: center;
	gap: var(--fnf-sp-4);
}
.fnf-topbar-spacer {
	flex: 1 1 auto;
}
.fnf-hamburger {
	display: none;
	background: none;
	border: 1px solid var(--fnf-border);
	border-radius: var(--fnf-r-md);
	width: 40px;
	height: 40px;
	font-size: 16px;
	cursor: pointer;
	color: var(--fnf-gray-700);
	transition: background var(--fnf-t-fast) var(--fnf-ease);
}
.fnf-hamburger:hover {
	background: var(--fnf-gray-100);
}
.fnf-topbar-search {
	flex: 1 1 auto;
	max-width: 400px;
	/* Declared, not left to the input's line-height: it sits in a row with the
	   40px icon buttons and was computing to ~38px. */
	min-height: 40px;
	display: flex;
	align-items: center;
	gap: var(--fnf-sp-2);
	background: var(--fnf-gray-100);
	border: 1px solid transparent;
	border-radius: var(--fnf-r-full);
	padding: 8px 16px;
	color: var(--fnf-gray-400);
	transition: background var(--fnf-t-fast) var(--fnf-ease), border-color var(--fnf-t-fast) var(--fnf-ease), box-shadow var(--fnf-t-fast) var(--fnf-ease);
}
.fnf-topbar-search:focus-within {
	background: var(--fnf-surface-2);
	border-color: var(--fnf-primary-500);
	box-shadow: 0 0 0 3px var(--fnf-focus-ring);
}
.fnf-topbar-search input {
	flex: 1 1 auto;
	border: none;
	background: none;
	outline: none;
	font-family: inherit;
	font-size: var(--fnf-fs-ui);
	color: var(--fnf-text);
	min-width: 0;
}
.fnf-topbar-search input::placeholder {
	color: var(--fnf-gray-400);
}
.fnf-topbar-search input:focus-visible {
	box-shadow: none;
}
.fnf-topbar-actions {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: var(--fnf-sp-3);
}

/* ---- Bell / dropdowns ---- */
.fnf-pop {
	position: relative;
}
.fnf-icon-btn {
	position: relative;
	background: transparent;
	border: 1px solid var(--fnf-border);
	border-radius: var(--fnf-r-full);
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	font-size: 16px;
	cursor: pointer;
	color: var(--fnf-gray-600);
	transition: background var(--fnf-t-fast) var(--fnf-ease), color var(--fnf-t-fast) var(--fnf-ease);
}
.fnf-icon-btn:hover {
	background: var(--fnf-gray-100);
	color: var(--fnf-gray-900);
}
.fnf-bell-badge {
	position: absolute;
	top: -4px;
	right: -4px;
	background: var(--fnf-danger);
	color: var(--fnf-on-accent);
	font-size: 10px;
	font-weight: 600;
	line-height: 1;
	border-radius: var(--fnf-r-full);
	padding: 3px 5px;
	min-width: 16px;
	text-align: center;
	border: 2px solid var(--fnf-surface);
}
.fnf-avatar-btn {
	display: flex;
	align-items: center;
	gap: var(--fnf-sp-2);
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px;
	border-radius: var(--fnf-r-full);
	color: var(--fnf-muted);
}
.fnf-avatar-caret {
	flex: 0 0 auto;
	color: var(--fnf-gray-500);
	transition: transform var(--fnf-t-fast) var(--fnf-ease);
}
.fnf-pop:has([data-fnf-pop-panel].is-open) .fnf-avatar-caret {
	transform: rotate(180deg);
}
.fnf-avatar {
	width: 38px;
	height: 38px;
	border-radius: var(--fnf-r-full);
	object-fit: cover;
	background: var(--fnf-primary-500);
	color: var(--fnf-on-accent);
	display: grid;
	place-items: center;
	font-family: var(--fnf-font-display);
	font-weight: 700;
	font-size: var(--fnf-fs-ui);
	flex: 0 0 auto;
}
.fnf-avatar-meta {
	text-align: left;
	line-height: 1.2;
}
.fnf-avatar-name {
	display: block;
	font-size: var(--fnf-fs-ui);
	font-weight: 600;
	color: var(--fnf-text);
}
.fnf-avatar-role {
	display: block;
	font-size: var(--fnf-fs-caption);
	color: var(--fnf-muted);
}

.fnf-dropdown {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	min-width: 300px;
	background: var(--fnf-surface);
	border: 1px solid var(--fnf-gray-100);
	border-radius: var(--fnf-r-lg);
	box-shadow: var(--fnf-shadow-md);
	z-index: var(--fnf-z-dropdown);
	overflow: hidden;
	display: none;
}
.fnf-dropdown.is-open {
	display: block;
}
.fnf-dropdown--menu {
	min-width: 200px;
}
.fnf-dropdown-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: var(--fnf-sp-3) var(--fnf-sp-4);
	border-bottom: 1px solid var(--fnf-gray-100);
	font-family: var(--fnf-font-display);
	font-weight: 700;
	font-size: var(--fnf-fs-ui);
}
.fnf-notif-list {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 360px;
	overflow-y: auto;
}
.fnf-notif-list li {
	position: relative;
	padding: var(--fnf-sp-3) var(--fnf-sp-4);
	border-bottom: 1px solid var(--fnf-gray-100);
	font-size: var(--fnf-fs-ui);
	line-height: 20px;
}
.fnf-notif-list li:last-child {
	border-bottom: none;
}
/* Extra left inset so the unread dot below has room to sit in — at the shared
   16px padding it left only 4px between the bullet and the first word. */
.fnf-notif-list li.is-unread {
	background: var(--fnf-primary-soft);
	padding-left: var(--fnf-sp-6);
}
.fnf-notif-list li.is-unread::before {
	content: "";
	position: absolute;
	left: 6px;
	top: 50%;
	transform: translateY(-50%);
	width: 6px;
	height: 6px;
	border-radius: var(--fnf-r-full);
	background: var(--fnf-primary-500);
}
.fnf-notif-list a {
	text-decoration: none;
	color: var(--fnf-text);
	display: block;
}
.fnf-notif-time {
	display: block;
	color: var(--fnf-muted);
	font-size: var(--fnf-fs-caption);
	margin-top: 2px;
}
.fnf-menu-list {
	list-style: none;
	margin: 0;
	padding: var(--fnf-sp-2);
}
.fnf-menu-list a,
.fnf-menu-list button {
	display: block;
	width: 100%;
	text-align: left;
	padding: 9px 12px;
	border-radius: var(--fnf-r-sm);
	color: var(--fnf-gray-700);
	text-decoration: none;
	font-size: var(--fnf-fs-ui);
	background: none;
	border: none;
	cursor: pointer;
	font-family: inherit;
	transition: background var(--fnf-t-fast) var(--fnf-ease);
}
.fnf-menu-list a:hover,
.fnf-menu-list button:hover {
	background: var(--fnf-gray-100);
	color: var(--fnf-gray-900);
}

/* Log out posts rather than links, so the form wrapper has to be invisible in
   both places it appears: a row of the avatar dropdown (where
   `.fnf-menu-list button` already styles the control) and the pending/rejected
   gate cards (where it is passed .fnf-btn). */
.fnf-logout-form {
	margin: 0;
	display: contents;
}

/* ---- Content area ---- */
.fnf-content {
	padding: var(--fnf-sp-6);
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
	max-width: 1480px;
	margin-inline: auto;
}
/* The container has bottom padding, so a trailing card margin cannot collapse
   out of it — every page was ending on 48px against 24px at the top. */
.fnf-content > :last-child {
	margin-bottom: 0;
}
.fnf-page-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--fnf-sp-4);
	margin-bottom: var(--fnf-sp-6);
}
.fnf-page-head h1 {
	margin: 0;
}
.fnf-page-head--hero h1 {
	font-size: var(--fnf-fs-display);
	line-height: 38px;
}
.fnf-page-sub {
	color: var(--fnf-muted);
	font-size: var(--fnf-fs-body);
	margin: var(--fnf-sp-1) 0 0;
}

/* ---- Sidebar overlay (mobile) ---- */
.fnf-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.66);
	z-index: var(--fnf-z-overlay);
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--fnf-t-fast) var(--fnf-ease), visibility var(--fnf-t-fast) var(--fnf-ease);
}

/* ---- Request detail modal ---- */
.fnf-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: var(--fnf-z-modal);
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: var(--fnf-sp-6) var(--fnf-sp-4);
	background: rgba(0, 0, 0, 0.66);
	overflow-y: auto;
}
.fnf-modal-overlay[hidden] {
	display: none;
}
.fnf-modal {
	width: 100%;
	max-width: 640px;
	background: var(--fnf-surface);
	border-radius: var(--fnf-r-lg);
	box-shadow: var(--fnf-shadow-lg);
	margin: auto 0;
}
.fnf-modal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--fnf-sp-4);
	padding: var(--fnf-sp-5) var(--fnf-sp-6);
	border-bottom: 1px solid var(--fnf-gray-100);
}
.fnf-modal-head h3 {
	margin: 0;
}
.fnf-modal-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: none;
	background: transparent;
	border-radius: var(--fnf-r-full);
	font-size: 20px;
	line-height: 1;
	color: var(--fnf-muted);
	cursor: pointer;
}
.fnf-modal-close:hover {
	background: var(--fnf-surface-2);
	color: var(--fnf-gray-700);
}
.fnf-modal-body {
	padding: var(--fnf-sp-6);
	max-height: 75vh;
	overflow-y: auto;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.fnf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--fnf-sp-2);
	min-height: 40px;
	padding: 9px 18px;
	border-radius: var(--fnf-r-md);
	border: 1px solid var(--fnf-gray-200);
	background: var(--fnf-surface);
	color: var(--fnf-gray-700);
	text-decoration: none;
	font-family: var(--fnf-font);
	font-size: var(--fnf-fs-ui);
	font-weight: 600;
	cursor: pointer;
	line-height: 20px;
	transition: background var(--fnf-t-fast) var(--fnf-ease), border-color var(--fnf-t-fast) var(--fnf-ease), color var(--fnf-t-fast) var(--fnf-ease), box-shadow var(--fnf-t-fast) var(--fnf-ease);
}
.fnf-btn:hover {
	background: var(--fnf-surface-2);
	border-color: var(--fnf-gray-300);
	color: var(--fnf-gray-900);
}
.fnf-btn:active {
	transform: translateY(1px);
}
.fnf-btn--primary {
	background: var(--fnf-primary-500);
	border-color: var(--fnf-primary-500);
	color: var(--fnf-on-accent);
	box-shadow: 0 4px 14px rgba(139, 92, 246, 0.32);
}
.fnf-btn--primary:hover {
	background: var(--fnf-primary-600);
	border-color: var(--fnf-primary-600);
	color: var(--fnf-on-accent);
}
.fnf-btn--danger {
	background: var(--fnf-danger);
	color: var(--fnf-on-accent);
	border-color: var(--fnf-danger);
}
.fnf-btn--danger:hover {
	background: var(--fnf-danger-hover);
	border-color: var(--fnf-danger-hover);
	color: var(--fnf-on-accent);
}
.fnf-btn--ghost {
	background: transparent;
	border-color: transparent;
	color: var(--fnf-gray-700);
}
.fnf-btn--ghost:hover {
	background: var(--fnf-gray-100);
	border-color: transparent;
}
.fnf-btn--link {
	background: transparent;
	border-color: transparent;
	color: var(--fnf-gray-500);
	padding-left: var(--fnf-sp-2);
	padding-right: var(--fnf-sp-2);
}
.fnf-btn--link:hover {
	background: transparent;
	border-color: transparent;
	color: var(--fnf-gray-900);
}
.fnf-btn--ghost-danger {
	background: transparent;
	border-color: transparent;
	color: var(--fnf-danger);
}
.fnf-btn--ghost-danger:hover {
	background: var(--fnf-danger-soft);
	border-color: transparent;
	color: var(--fnf-danger);
}
.fnf-btn--sm {
	min-height: 32px;
	padding: 5px 12px;
	font-size: var(--fnf-fs-caption);
}
.fnf-btn--block {
	width: 100%;
}
.fnf-link-btn {
	background: none;
	border: none;
	padding: 0;
	color: var(--fnf-danger);
	cursor: pointer;
	font: inherit;
	text-decoration: underline;
}
/* 32px, matching .fnf-btn--sm: the two sit side by side in every table row's
   action cell, and a 2px height difference repeated down a list reads as a
   wobble. The ≤640px block lifts both to the 44px touch target. */
.fnf-icon-action {
	display: inline-grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: var(--fnf-r-sm);
	border: 1px solid var(--fnf-gray-200);
	background: var(--fnf-surface);
	color: var(--fnf-gray-600);
	cursor: pointer;
	text-decoration: none;
	font-size: 15px;
	transition: background var(--fnf-t-fast) var(--fnf-ease), border-color var(--fnf-t-fast) var(--fnf-ease), color var(--fnf-t-fast) var(--fnf-ease);
}
.fnf-icon-action:hover {
	background: var(--fnf-surface-2);
	border-color: var(--fnf-gray-300);
	color: var(--fnf-gray-900);
}
.fnf-icon-action--danger {
	color: var(--fnf-danger);
}
.fnf-icon-action--danger:hover {
	background: var(--fnf-danger-soft);
	border-color: var(--fnf-danger);
	color: var(--fnf-danger);
}

/* ==========================================================================
   Cards & stats
   ========================================================================== */
.fnf-card {
	background: var(--fnf-surface);
	border: 1px solid var(--fnf-gray-100);
	border-radius: var(--fnf-r-lg);
	box-shadow: var(--fnf-shadow-sm);
	padding: var(--fnf-sp-6);
	margin-bottom: var(--fnf-sp-6);
}
.fnf-card--pad0 {
	padding: 0;
	overflow: hidden;
}
.fnf-card-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--fnf-sp-3);
	margin-bottom: var(--fnf-sp-4);
}
/* Same gutter as .fnf-card's padding. A --pad0 card drops its own padding so a
   table can bleed to the edges, but everything that is not the table still has
   to sit on the page's one content gutter — otherwise a padded card and a table
   card stacked on the same screen disagree about where the left edge is. */
.fnf-card--pad0 > .fnf-card-head {
	padding: var(--fnf-sp-6) var(--fnf-sp-6) 0;
}
.fnf-card-head h3 {
	margin: 0;
}
/* Descriptive line under a card title. Kept out of .fnf-card-head because that
   is a space-between row — prose put in there gets pushed against the right
   edge instead of reading as a subtitle. */
.fnf-card-sub {
	color: var(--fnf-muted);
	font-size: var(--fnf-fs-body);
	margin: 0 0 var(--fnf-sp-4);
}
.fnf-card-head:has(+ .fnf-card-sub) {
	margin-bottom: var(--fnf-sp-1);
}
.fnf-card--pad0 > .fnf-card-sub {
	padding-inline: var(--fnf-sp-6);
}

/* Six fixed columns: the dashboard's stat row is exactly six cards and they
   must stay a single even band. gap stays at 16px rather than the page's 24px
   rhythm — six cards in one row need the density, and the cards' own borders
   already separate them. */
.fnf-stat-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: var(--fnf-sp-4);
	margin-bottom: var(--fnf-sp-6);
}
/* For screens with a handful of stats rather than six. The fixed 6-column track
   left the portal's two cards stranded in the first sixth of the row with four
   empty columns beside them. */
.fnf-stat-grid--compact {
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.fnf-stat-card {
	background: var(--fnf-surface);
	border: 1px solid var(--fnf-gray-100);
	border-radius: var(--fnf-r-lg);
	box-shadow: var(--fnf-shadow-sm);
	padding: var(--fnf-sp-4) var(--fnf-sp-3);
	display: flex;
	align-items: center;
	gap: 10px;
	transition: box-shadow var(--fnf-t-fast) var(--fnf-ease), transform var(--fnf-t-fast) var(--fnf-ease);
}
.fnf-stat-card:hover {
	box-shadow: var(--fnf-shadow-md);
	transform: translateY(-1px);
}
.fnf-stat-icon {
	width: 38px;
	height: 38px;
	border-radius: var(--fnf-r-md);
	background: var(--fnf-primary-500);
	color: var(--fnf-on-accent);
	display: grid;
	place-items: center;
	font-size: 18px;
	flex: 0 0 auto;
	box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}
/* Per-metric tints. The portal already asked for these two in its markup;
   without them every stat icon on the page rendered the same brand violet. */
.fnf-stat-icon--info {
	background: var(--fnf-info);
	box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
.fnf-stat-icon--success {
	background: var(--fnf-success);
	box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}
.fnf-stat-icon .fnf-icon {
	width: 20px;
	height: 20px;
}
.fnf-stat-body {
	min-width: 0;
}
.fnf-stat-value {
	font-family: var(--fnf-font-display);
	font-size: 26px;
	line-height: 32px;
	font-weight: 800;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
	color: var(--fnf-text);
}
.fnf-stat-label {
	margin-top: 1px;
	color: var(--fnf-muted);
	font-size: var(--fnf-fs-caption);
	line-height: 17px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.fnf-stat-label a {
	color: inherit;
	text-decoration: none;
}
.fnf-stat-label a:hover {
	color: var(--fnf-gray-900);
	text-decoration: underline;
}

/* Trend chips (↑ / ↓ vs a real comparison period). */
.fnf-trend {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	margin-top: var(--fnf-sp-1);
	white-space: nowrap;
	max-width: 100%;
	padding: 2px 6px;
	border-radius: var(--fnf-r-full);
	font-size: var(--fnf-fs-overline);
	line-height: 15px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}
.fnf-trend--up {
	background: var(--fnf-success-soft);
	color: var(--fnf-success-fg);
}
.fnf-trend--down {
	background: var(--fnf-danger-soft);
	color: var(--fnf-danger-fg);
}
.fnf-trend--flat {
	background: var(--fnf-gray-100);
	color: var(--fnf-gray-500);
}

/* ==========================================================================
   Charts (dependency-free inline SVG, rendered by fnf.js)
   ========================================================================== */
.fnf-chart-grid {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
	/* Same 24px as the gap between stacked cards, so the chart row reads as
	   part of the page rhythm rather than a tighter island. */
	gap: var(--fnf-sp-6);
	margin-bottom: var(--fnf-sp-6);
	align-items: stretch;
}
.fnf-chart-grid > .fnf-card {
	margin-bottom: 0;
}
.fnf-chart {
	width: 100%;
}
.fnf-chart svg {
	display: block;
	width: 100%;
	height: auto;
}
.fnf-chart-line {
	fill: none;
	stroke: var(--fnf-primary-500);
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.fnf-chart-area {
	fill: rgba(167, 139, 250, 0.18);
	stroke: none;
}
.fnf-chart-dot {
	fill: var(--fnf-surface);
	stroke: var(--fnf-primary-400);
	stroke-width: 2;
}
.fnf-chart-dot.is-peak {
	fill: var(--fnf-primary-400);
	stroke: var(--fnf-on-accent);
	stroke-width: 2.5;
}
.fnf-chart-grid-line {
	stroke: var(--fnf-gray-200);
	stroke-width: 1;
}
.fnf-chart-label {
	fill: var(--fnf-gray-400);
	font-family: var(--fnf-font);
	font-size: 11px;
}
.fnf-chart-value {
	fill: var(--fnf-gray-700);
	font-family: var(--fnf-font);
	font-size: 11px;
	font-weight: 600;
}

/* Donut */
.fnf-donut-wrap {
	display: flex;
	align-items: center;
	gap: var(--fnf-sp-5);
	flex-wrap: wrap;
}
.fnf-donut {
	position: relative;
	width: 148px;
	flex: 0 0 auto;
	margin-inline: auto;
}
.fnf-donut svg {
	display: block;
	width: 100%;
	height: auto;
}
.fnf-donut-track {
	fill: none;
	stroke: var(--fnf-gray-100);
}
.fnf-donut-seg {
	fill: none;
	stroke-linecap: butt;
}
.fnf-donut-seg.is-success,
.fnf-legend-dot.is-success {
	stroke: var(--fnf-success);
	background: var(--fnf-success);
}
.fnf-donut-seg.is-warning,
.fnf-legend-dot.is-warning {
	stroke: var(--fnf-warning);
	background: var(--fnf-warning);
}
.fnf-donut-seg.is-danger,
.fnf-legend-dot.is-danger {
	stroke: var(--fnf-danger);
	background: var(--fnf-danger);
}
.fnf-donut-seg.is-info,
.fnf-legend-dot.is-info {
	stroke: var(--fnf-info);
	background: var(--fnf-info);
}
.fnf-donut-seg.is-teal,
.fnf-legend-dot.is-teal {
	stroke: var(--fnf-teal);
	background: var(--fnf-teal);
}
.fnf-donut-seg.is-primary,
.fnf-legend-dot.is-primary {
	stroke: var(--fnf-primary-500);
	background: var(--fnf-primary-500);
}
.fnf-donut-center {
	position: absolute;
	inset: 0;
	display: grid;
	place-content: center;
	text-align: center;
}
.fnf-donut-total {
	font-family: var(--fnf-font-display);
	font-size: 22px;
	line-height: 26px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}
.fnf-donut-caption {
	font-size: var(--fnf-fs-caption);
	color: var(--fnf-muted);
}
.fnf-legend {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--fnf-sp-2);
	flex: 1 1 140px;
	min-width: 0;
}
.fnf-legend li {
	display: flex;
	align-items: center;
	gap: var(--fnf-sp-2);
	font-size: var(--fnf-fs-ui);
	line-height: 20px;
}
.fnf-legend-dot {
	width: 8px;
	height: 8px;
	border-radius: var(--fnf-r-full);
	flex: 0 0 auto;
}
.fnf-legend-count {
	margin-left: auto;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}
.fnf-legend-pct {
	color: var(--fnf-muted);
	font-variant-numeric: tabular-nums;
}

/* Yellow hero / highlight card (max one per screen). */
.fnf-hero-card {
	background: linear-gradient(150deg, var(--fnf-primary-600) 0%, var(--fnf-primary-800) 55%, var(--fnf-primary-900) 100%);
	border: 1px solid var(--fnf-primary-600);
	border-radius: var(--fnf-r-lg);
	box-shadow: var(--fnf-shadow-md);
	padding: var(--fnf-sp-6);
	color: var(--fnf-on-accent);
	display: flex;
	flex-direction: column;
	gap: var(--fnf-sp-3);
}
.fnf-hero-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--fnf-sp-3);
}
.fnf-hero-card h3 {
	margin: 0;
	color: var(--fnf-on-accent);
}
.fnf-hero-icon {
	flex: 0 0 auto;
	color: var(--fnf-on-accent);
	opacity: 0.85;
}
.fnf-hero-value {
	font-family: var(--fnf-font-display);
	font-size: var(--fnf-fs-display);
	line-height: 38px;
	font-weight: 800;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
}
.fnf-hero-sub {
	font-size: var(--fnf-fs-ui);
	color: rgba(255, 255, 255, 0.76);
	margin: 0;
}
.fnf-hero-card .fnf-chart {
	margin-top: auto;
}
.fnf-hero-card .fnf-chart-line {
	stroke: var(--fnf-on-accent);
	stroke-width: 2.5;
}
.fnf-hero-card .fnf-chart-area {
	fill: rgba(255, 255, 255, 0.22);
}
.fnf-hero-card .fnf-chart-dot,
.fnf-hero-card .fnf-chart-dot.is-peak {
	fill: var(--fnf-primary-500);
	stroke: var(--fnf-on-accent);
}
.fnf-hero-card .fnf-chart-label,
.fnf-hero-card .fnf-chart-value {
	fill: rgba(255, 255, 255, 0.7);
}
.fnf-hero-link.fnf-btn--link {
	align-self: stretch;
	justify-content: center;
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: var(--fnf-r-md);
	color: var(--fnf-on-accent);
	padding: 9px 16px;
	text-decoration: none;
}
.fnf-hero-link.fnf-btn--link:hover {
	background: rgba(255, 255, 255, 0.22);
	color: var(--fnf-on-accent);
	text-decoration: none;
}

/* ==========================================================================
   Lists (activity rows, e.g. latest check-ins)
   ========================================================================== */
.fnf-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.fnf-list li {
	display: flex;
	align-items: center;
	gap: var(--fnf-sp-3);
	padding: var(--fnf-sp-3) var(--fnf-sp-6);
	border-bottom: 1px solid var(--fnf-gray-100);
	font-size: var(--fnf-fs-body);
}
.fnf-list li:last-child {
	border-bottom: none;
}
.fnf-list-avatar {
	width: 36px;
	height: 36px;
	border-radius: var(--fnf-r-full);
	background: var(--fnf-primary-soft);
	color: var(--fnf-primary-300);
	display: grid;
	place-items: center;
	font-family: var(--fnf-font-display);
	font-weight: 700;
	font-size: var(--fnf-fs-ui);
	flex: 0 0 auto;
}
.fnf-list-body {
	min-width: 0;
	flex: 1 1 auto;
}
.fnf-list-title {
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.fnf-list-sub {
	font-size: var(--fnf-fs-caption);
	color: var(--fnf-muted);
}
.fnf-list-meta {
	margin-left: auto;
	flex: 0 0 auto;
	font-size: var(--fnf-fs-ui);
	color: var(--fnf-muted);
	font-variant-numeric: tabular-nums;
}

/* Progress bar (goal / membership days left). */
.fnf-progress {
	width: 100%;
	height: 8px;
	border-radius: var(--fnf-r-full);
	background: var(--fnf-gray-100);
	overflow: hidden;
}
.fnf-progress-bar {
	height: 100%;
	border-radius: var(--fnf-r-full);
	background: var(--fnf-primary-400);
	transition: width var(--fnf-t-move) var(--fnf-ease);
}

/* ==========================================================================
   Tables
   ========================================================================== */
.fnf-table-scroll,
.fnf-table-wrap {
	overflow-x: auto;
}
.fnf-table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--fnf-fs-body);
}
/* Interior columns get a tighter gutter than the table's outer edges. At 24px
   a side on every cell, padding alone was 240px of a 5-column table's 645px —
   37% of its width — which is what pushed ordinary list views into a
   horizontal scroll inside .fnf-split's content column. Only the first and
   last cells need the card's 24px gutter, because they are the two edges that
   have to line up with everything else in the card; the boundaries between
   columns read fine at 12px a side. */
.fnf-table th,
.fnf-table td {
	text-align: left;
	padding: var(--fnf-sp-3);
	border-bottom: 1px solid var(--fnf-gray-100);
	vertical-align: middle;
}
.fnf-table th:first-child,
.fnf-table td:first-child {
	padding-left: var(--fnf-sp-6);
}
.fnf-table th:last-child,
.fnf-table td:last-child {
	padding-right: var(--fnf-sp-6);
}
.fnf-table thead th {
	color: var(--fnf-gray-500);
	font-size: var(--fnf-fs-overline);
	line-height: 16px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 600;
	background: var(--fnf-gray-25);
}
.fnf-table tbody tr {
	transition: background var(--fnf-t-fast) var(--fnf-ease);
}
.fnf-table tbody tr:hover {
	background: var(--fnf-surface-2);
}
.fnf-table tbody tr:last-child td {
	border-bottom: none;
}
.fnf-table tr.is-archived {
	opacity: 0.55;
}
.fnf-row-actions {
	white-space: nowrap;
	display: flex;
	gap: var(--fnf-sp-2);
	align-items: center;
}
.fnf-inline-form {
	display: inline-block;
	margin: 0;
}
.fnf-assign-row td {
	background: var(--fnf-primary-soft);
}
.fnf-cell-strong {
	font-weight: 600;
}
.fnf-cell-num {
	font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Badges
   ========================================================================== */
.fnf-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: var(--fnf-r-full);
	font-size: var(--fnf-fs-caption);
	line-height: 16px;
	font-weight: 600;
}
.fnf-badge::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: var(--fnf-r-full);
	background: currentColor;
	flex: 0 0 auto;
}
.fnf-badge--active,
.fnf-badge--success,
.fnf-badge--fulfilled {
	background: var(--fnf-success-soft);
	color: var(--fnf-success-fg);
}
.fnf-badge--paid {
	background: var(--fnf-info-soft);
	color: var(--fnf-info-fg);
}
.fnf-badge--inactive {
	background: var(--fnf-gray-100);
	color: var(--fnf-gray-500);
}
.fnf-badge--warning,
.fnf-badge--pending,
.fnf-badge--due {
	background: var(--fnf-warning-soft);
	color: var(--fnf-warning-fg);
}
.fnf-badge--danger,
.fnf-badge--cancelled,
.fnf-badge--rejected {
	background: var(--fnf-danger-soft);
	color: var(--fnf-danger-fg);
}
.fnf-badge--info {
	background: var(--fnf-info-soft);
	color: var(--fnf-info-fg);
}
.fnf-badge--goal {
	background: var(--fnf-primary-soft);
	color: var(--fnf-primary-300);
}
.fnf-badge--plain::before {
	display: none;
}
.fnf-muted {
	color: var(--fnf-muted);
}

/* ==========================================================================
   Forms
   ========================================================================== */
/* The gap between stacked fields. Every other rule in this section is written
   around this margin existing — .fnf-grid-2 > label cancels it inside a grid,
   and .fnf-form > :last-child drops it on the final field — so with it absent
   the fields sat flush and those two rules became no-ops. */
.fnf-form label {
	display: block;
	margin-bottom: var(--fnf-sp-4);
}
/* Inside a grid the `gap` is the spacing mechanism. Leaving the label margin on
   as well doubled every row gap to 32px and made a trailing grid bottom-heavy,
   so the margin moves from the labels to the grid itself. */
.fnf-grid-2 > label {
	margin-bottom: 0;
}
.fnf-form .fnf-grid-2 {
	margin-bottom: var(--fnf-sp-4);
}
/* The gap between fields is the field's own bottom margin, so the last field in
   a form or fieldset must drop it — otherwise every fieldset padded 16px at the
   top and 32px at the bottom.
   Stays BELOW .fnf-form .fnf-grid-2: both weigh (0,2,0), so source order is what
   decides, and several fieldsets end in a grid rather than a bare label. */
.fnf-form > :last-child,
.fnf-fieldset > :last-child {
	margin-bottom: 0;
}
.fnf-form label > span {
	display: block;
	font-size: var(--fnf-fs-ui);
	line-height: 20px;
	color: var(--fnf-gray-700);
	font-weight: 600;
	margin-bottom: 6px;
}
/* Control skin. EVERY form container must be named here: the stacked .fnf-form,
   the two filter bars, and the bulk-action bar. Each is used standalone in the
   views — a BEM modifier is its own class token, so `.fnf-form` never matches
   `class="fnf-form--inline"` — and a container left off this list drops its
   controls back to the browser's native widget, which paints light-on-dark
   against this palette. That is exactly how .fnf-bulk's select shipped white.
   background-color, not the `background` shorthand: the shorthand would reset
   background-image and clobber the select chevron set further down. */
:is(.fnf-form, .fnf-form--inline, .fnf-filters, .fnf-bulk) :is(
		input[type="text"],
		input[type="email"],
		input[type="tel"],
		input[type="password"],
		input[type="number"],
		input[type="date"],
		input[type="search"],
		input[type="file"],
		select,
		textarea) {
	width: 100%;
	min-height: 40px;
	padding: 9px 12px;
	border: 1px solid var(--fnf-gray-300);
	border-radius: var(--fnf-r-sm);
	font-family: inherit;
	font-size: var(--fnf-fs-body);
	background-color: var(--fnf-surface);
	color: var(--fnf-text);
	transition: border-color var(--fnf-t-fast) var(--fnf-ease), box-shadow var(--fnf-t-fast) var(--fnf-ease);
}
:is(.fnf-form, .fnf-form--inline, .fnf-filters, .fnf-bulk)
:is(input:not([type="checkbox"]), select, textarea):focus {
	outline: none;
	border-color: var(--fnf-primary-500);
	box-shadow: 0 0 0 3px var(--fnf-focus-ring);
}
:is(.fnf-form, .fnf-form--inline, .fnf-filters, .fnf-bulk) ::placeholder {
	color: var(--fnf-gray-400);
	opacity: 1;
}
.fnf-form textarea {
	min-height: 120px;
	resize: vertical;
}

/* Custom chevron. The native select arrow ignores our palette and reads as a
   light-mode control sitting on a dark surface.
   `:is(select[name], select)` matches every select but carries the attribute
   selector's weight, tying the skin above so source order decides. A plain
   `select` here would lose padding-right to the skin's `padding` shorthand and
   the chevron would sit on top of long option labels. */
:is(.fnf-form, .fnf-form--inline, .fnf-filters, .fnf-bulk) :is(select[name], select) {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	padding-right: 36px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a7a3bd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 16px 16px;
	cursor: pointer;
}

/* Native sub-widgets are drawn by the browser, so their tint tracks
   color-scheme rather than our palette. Replace the glyphs outright instead of
   filtering them — body.fnf-app already declares color-scheme: dark, so an
   invert() here would push these back to dark-on-dark. */
:is(.fnf-form, .fnf-form--inline, .fnf-filters, .fnf-bulk) input[type="date"]::-webkit-calendar-picker-indicator {
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a7a3bd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E") center / contain no-repeat;
	opacity: 0.7;
	cursor: pointer;
}
:is(.fnf-form, .fnf-form--inline, .fnf-filters, .fnf-bulk) input[type="date"]::-webkit-calendar-picker-indicator:hover {
	opacity: 1;
}
/* The browser's own autofill affordances — the contact glyph Chromium puts in
   tel/email fields and the credentials key it puts in password fields. They
   are drawn by the UA at the control's inline edge and ignore our padding and
   radius, so on a 40px control they sit half over the bottom-right border and
   read as a mispositioned icon of ours. Removed for the same reason the date
   and search glyphs further up are replaced rather than inherited. ::-ms-reveal
   is Edge's password eye, which lands in the same place. */
:is(.fnf-form, .fnf-form--inline, .fnf-filters, .fnf-bulk) :is(input[type="tel"], input[type="email"], input[type="text"])::-webkit-contacts-auto-fill-button,
:is(.fnf-form, .fnf-form--inline, .fnf-filters, .fnf-bulk) input[type="password"]::-webkit-credentials-auto-fill-button {
	visibility: hidden;
	display: none !important;
	pointer-events: none;
	height: 0;
	width: 0;
	margin: 0;
}
:is(.fnf-form, .fnf-form--inline, .fnf-filters, .fnf-bulk) input[type="password"]::-ms-reveal {
	display: none;
}
:is(.fnf-form, .fnf-form--inline, .fnf-filters, .fnf-bulk) input[type="search"] {
	appearance: none;
	-webkit-appearance: none;
}
:is(.fnf-form, .fnf-form--inline, .fnf-filters, .fnf-bulk) input[type="search"]::-webkit-search-cancel-button {
	appearance: none;
	-webkit-appearance: none;
	width: 14px;
	height: 14px;
	cursor: pointer;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a7a3bd' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center / contain no-repeat;
}
.fnf-grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--fnf-sp-4);
}
.fnf-fieldset {
	border: 1px solid var(--fnf-gray-200);
	border-radius: var(--fnf-r-md);
	padding: var(--fnf-sp-4);
	margin: 0 0 var(--fnf-sp-4);
	/* Load-bearing. Browsers ship `fieldset { min-inline-size: min-content }`
	   in the UA sheet, and unlike almost every other UA default it survives
	   `width: 100%` — the element simply refuses to lay out narrower than its
	   own min-content. Text-only fieldsets never notice, but the signup promo
	   panel holds the product carousel, whose slide reports a ~304px
	   min-content, so that fieldset froze at 338px at EVERY viewport width and
	   hung out of the auth card on any phone. Resetting it is the whole fix;
	   nothing about the carousel itself was wrong. */
	min-inline-size: 0;
}
/* For a section whose content already carries its own frame — the signup product
   carousel is a bordered panel in its own right, and wrapping it in the fieldset
   border too put two nested boxes around a single card. */
.fnf-fieldset--bare {
	border: 0;
	padding: 0;
	/* It gave up the padding that used to hold it off its own border, so it buys
	   the separation back as margin — a frameless section between two framed ones
	   needs the air to read as its own block. */
	margin: var(--fnf-sp-5) 0;
}
.fnf-fieldset legend {
	font-size: var(--fnf-fs-overline);
	line-height: 16px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--fnf-muted);
	padding: 0 6px;
}
.fnf-form label > span.fnf-hint,
.fnf-hint {
	font-size: var(--fnf-fs-caption);
	line-height: 16px;
	color: var(--fnf-muted);
	font-weight: 400;
	margin-top: 6px;
	margin-bottom: 0;
}
/* Two different jobs share this class. Inside a label the hint is attached to
   its own control, so it stays tight against it and owns no bottom margin. As
   its own block between two fields it is a field-level item and has to carry
   the field gap below it as well — without this it sat 16px below the field
   above and flush against the label below, which reads as the helper text
   crowding the next field. :not(:last-child) leaves a trailing hint to the
   container's own last-child reset. */
.fnf-form > p.fnf-hint:not(:last-child),
.fnf-fieldset > p.fnf-hint:not(:last-child) {
	margin-bottom: var(--fnf-sp-4);
}
.fnf-required {
	color: var(--fnf-danger);
}
.fnf-form label.fnf-check,
.fnf-check {
	display: flex;
	align-items: center;
	gap: var(--fnf-sp-2);
}
.fnf-form label.fnf-check > span {
	margin-bottom: 0;
	font-weight: 400;
	color: var(--fnf-gray-600);
}
.fnf-check input {
	width: auto;
	min-height: 0;
}
body.fnf-app input[type="checkbox"],
body.fnf-app input[type="radio"] {
	accent-color: var(--fnf-primary-500);
	width: 18px;
	height: 18px;
}
.fnf-form input[type="file"] {
	padding: 6px 10px;
	color: var(--fnf-muted);
}
.fnf-form input[type="file"]::file-selector-button {
	margin-right: var(--fnf-sp-3);
	padding: 6px 12px;
	border: 1px solid var(--fnf-gray-300);
	border-radius: var(--fnf-r-sm);
	background: var(--fnf-surface-2);
	color: var(--fnf-gray-700);
	font-family: inherit;
	font-size: var(--fnf-fs-ui);
	font-weight: 600;
	cursor: pointer;
}
.fnf-form input[type="file"]::file-selector-button:hover {
	background: var(--fnf-gray-200);
	color: var(--fnf-gray-900);
}

/* Two-column list/form layouts */
.fnf-split {
	display: grid;
	grid-template-columns: minmax(280px, 360px) 1fr;
	gap: var(--fnf-sp-5);
	align-items: start;
}
/* The form column is 360px at its widest, so a two-up grid inside it leaves
   ~148px per field — narrow enough that "One-line description" was being
   truncated inside its own input. It never has room for two columns at any
   viewport width, so it stacks unconditionally rather than at a breakpoint. */
.fnf-split .fnf-grid-2 {
	grid-template-columns: 1fr;
}
.fnf-form--inline {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: var(--fnf-sp-3);
}
.fnf-form--inline label {
	margin-bottom: 0;
}
.fnf-filters {
	display: flex;
	flex-wrap: wrap;
	gap: var(--fnf-sp-3);
	align-items: flex-end;
}
.fnf-filters label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: var(--fnf-fs-ui);
	font-weight: 600;
	color: var(--fnf-gray-700);
	margin: 0;
}
/* Controls in a filter bar shrink-wrap. The shared skin's width:100% is for the
   stacked form, where every control owns a full row; in a flex bar it makes
   each one claim the whole line. Selector shape matches the skin's specificity
   so plain source order decides. */
:is(.fnf-form--inline, .fnf-filters, .fnf-bulk) :is(
		input[type="text"],
		input[type="number"],
		input[type="date"],
		input[type="search"],
		select) {
	width: auto;
	min-width: 0;
	max-width: 100%;
}
:is(.fnf-form--inline, .fnf-filters, .fnf-bulk) :is(input[type="search"], input[type="text"]) {
	width: 220px;
	max-width: 100%;
}
:is(.fnf-form--inline, .fnf-filters, .fnf-bulk) select {
	max-width: 240px;
}
.fnf-count {
	color: var(--fnf-muted);
	font-size: var(--fnf-fs-ui);
	margin: var(--fnf-sp-3) 0;
}
.fnf-empty {
	color: var(--fnf-muted);
	text-align: center;
	padding: var(--fnf-sp-9) var(--fnf-sp-6);
}
.fnf-empty-icon {
	width: 80px;
	height: 80px;
	margin: 0 auto var(--fnf-sp-3);
	font-size: 0;
	display: block;
	background: url("../images/empty-state-dumbbell.svg") center / contain no-repeat;
}
.fnf-empty-title {
	display: block;
	font-family: var(--fnf-font-display);
	font-size: var(--fnf-fs-h3);
	font-weight: 700;
	color: var(--fnf-gray-700);
	margin-bottom: var(--fnf-sp-1);
}

/* ==========================================================================
   Notices
   ========================================================================== */
.fnf-notice {
	padding: var(--fnf-sp-3) var(--fnf-sp-4);
	border-radius: var(--fnf-r-md);
	/* Matches the card rhythm it sits in — a notice is a top-level block. */
	margin-bottom: var(--fnf-sp-6);
	font-size: var(--fnf-fs-ui);
	line-height: 20px;
	border: 1px solid transparent;
}
.fnf-notice--success {
	background: var(--fnf-success-soft);
	color: var(--fnf-success-fg);
	border-color: var(--fnf-success-border);
}
.fnf-notice--error {
	background: var(--fnf-danger-soft);
	color: var(--fnf-danger-fg);
	border-color: var(--fnf-danger-border);
}
.fnf-notice--info {
	background: var(--fnf-info-soft);
	color: var(--fnf-info-fg);
	border-color: var(--fnf-info-border);
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.fnf-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: var(--fnf-sp-1);
	justify-content: center;
	margin-top: var(--fnf-sp-6);
}
.fnf-pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 36px;
	height: 36px;
	padding: 0 var(--fnf-sp-2);
	border: 1px solid var(--fnf-gray-200);
	border-radius: var(--fnf-r-sm);
	color: var(--fnf-gray-700);
	text-decoration: none;
	font-size: var(--fnf-fs-ui);
	font-weight: 500;
	font-variant-numeric: tabular-nums;
	background: var(--fnf-surface);
	transition: background var(--fnf-t-fast) var(--fnf-ease), border-color var(--fnf-t-fast) var(--fnf-ease);
}
.fnf-pagination .page-numbers:hover {
	background: var(--fnf-gray-100);
	color: var(--fnf-gray-900);
}
.fnf-pagination .page-numbers.current {
	background: var(--fnf-primary-500);
	color: var(--fnf-on-accent);
	border-color: var(--fnf-primary-500);
}
.fnf-pagination .page-numbers.dots {
	border: none;
	background: none;
}

/* ==========================================================================
   Gate (login prompt / pending / rejected)
   ========================================================================== */
.fnf-gate {
	max-width: 460px;
	margin: var(--fnf-sp-9) auto;
	text-align: center;
	background: var(--fnf-surface);
	border: 1px solid var(--fnf-gray-100);
	border-radius: var(--fnf-r-lg);
	box-shadow: var(--fnf-shadow-md);
	padding: var(--fnf-sp-9) var(--fnf-sp-7);
}
.fnf-gate h1 {
	font-size: var(--fnf-fs-display);
	line-height: 38px;
}
.fnf-gate-icon {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	margin: 0 auto var(--fnf-sp-4);
	border-radius: var(--fnf-r-full);
	background: var(--fnf-primary-soft);
	color: var(--fnf-primary-300);
}
.fnf-gate-icon .fnf-icon {
	width: 30px;
	height: 30px;
}
.fnf-gate-actions {
	display: flex;
	gap: var(--fnf-sp-3);
	justify-content: center;
	flex-wrap: wrap;
	margin-top: var(--fnf-sp-5);
}

/* ==========================================================================
   Public pages (auth / check-in) header + footer
   ========================================================================== */
.fnf-public {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	background: var(--fnf-gray-50);
}
/* Centres a 1100px content box the same way .fnf-footer-inner does, so the
   brand and the footer's offer cards share one left edge, while the header's
   background and bottom rule still run full-bleed. The max() floor is the
   system gutter for anything narrower than the column. */
.fnf-public-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--fnf-sp-4);
	padding: var(--fnf-sp-4) max(var(--fnf-sp-6), calc((100% - 1100px) / 2));
	background: var(--fnf-surface);
	border-bottom: 1px solid var(--fnf-border);
}
.fnf-brand {
	display: flex;
	align-items: center;
	gap: var(--fnf-sp-3);
	text-decoration: none;
	color: var(--fnf-text);
}
.fnf-brand:hover {
	color: var(--fnf-text);
}
body.fnf-app .fnf-brand-logo {
	height: 40px;
	width: auto;
	max-width: 220px;
	object-fit: contain;
}
.fnf-public-nav {
	display: flex;
	gap: var(--fnf-sp-3);
}
.fnf-public-main {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--fnf-sp-9) var(--fnf-sp-4);
	background:
		radial-gradient(1100px 520px at 50% -8%, rgba(139, 92, 246, 0.22) 0%, rgba(139, 92, 246, 0) 70%),
		var(--fnf-gray-50);
}

/* ---- Footer offers ---- */
.fnf-footer {
	background: var(--fnf-gray-25);
	color: var(--fnf-gray-600);
	border-top: 1px solid var(--fnf-border);
	/* Inline gutter matches .fnf-public-header's floor so the two 1100px
	   columns line up at every width. */
	padding: var(--fnf-sp-9) var(--fnf-sp-6) var(--fnf-sp-7);
}
.fnf-footer-inner {
	max-width: 1100px;
	margin: 0 auto;
}
.fnf-footer h3 {
	color: var(--fnf-text);
}
.fnf-offer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: var(--fnf-sp-4);
	margin: var(--fnf-sp-6) 0;
}
.fnf-offer-card {
	background: var(--fnf-surface);
	border: 1px solid var(--fnf-border);
	border-radius: var(--fnf-r-lg);
	padding: var(--fnf-sp-6);
}
.fnf-offer-name {
	font-family: var(--fnf-font-display);
	font-weight: 700;
	font-size: var(--fnf-fs-h3);
	margin-bottom: var(--fnf-sp-1);
	color: var(--fnf-text);
}
.fnf-offer-price {
	font-family: var(--fnf-font-display);
	font-size: var(--fnf-fs-h2);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--fnf-primary-400);
}
.fnf-offer-price span {
	font-family: var(--fnf-font);
	font-size: var(--fnf-fs-ui);
	color: var(--fnf-gray-400);
	font-weight: 400;
}
.fnf-offer-desc {
	color: var(--fnf-gray-400);
	font-size: var(--fnf-fs-ui);
	line-height: 20px;
	margin-top: var(--fnf-sp-2);
}
.fnf-footer-meta {
	border-top: 1px solid var(--fnf-border);
	padding-top: var(--fnf-sp-4);
	margin-top: var(--fnf-sp-6);
	color: var(--fnf-gray-400);
	font-size: var(--fnf-fs-ui);
	display: flex;
	flex-wrap: wrap;
	gap: var(--fnf-sp-4);
	justify-content: space-between;
}
.fnf-footer a {
	color: var(--fnf-gray-100);
}
.fnf-footer a:hover {
	color: var(--fnf-primary-400);
}

/* ==========================================================================
   Auth cards
   ========================================================================== */
.fnf-auth-card {
	width: 100%;
	max-width: 420px;
	/* .fnf-public-main is a flex row, so the card is a flex item and its
	   `min-width: auto` would floor it at the min-content of whatever it
	   holds — width: 100% does not override that. */
	min-width: 0;
	background: var(--fnf-surface);
	border: 1px solid var(--fnf-gray-100);
	border-radius: var(--fnf-r-lg);
	box-shadow: var(--fnf-shadow-md);
	padding: var(--fnf-sp-7);
	font-size: 16px;
}
.fnf-auth-card .fnf-form input,
.fnf-auth-card .fnf-form select,
.fnf-auth-card .fnf-form textarea {
	font-size: 16px;
	min-height: 22px;
}
/* Signup only. 640px was sized for a form; the product showcase that now sits
   inside it lays its image and copy out side by side, and at 640 the price,
   the struck MRP and the saving could not share a line. */
.fnf-auth-card--wide {
	max-width: 720px;
}
.fnf-auth-head {
	text-align: center;
	margin-bottom: var(--fnf-sp-6);
}
.fnf-auth-head h1 {
	font-size: var(--fnf-fs-display);
	line-height: 38px;
	margin-bottom: var(--fnf-sp-1);
}
.fnf-auth-head p {
	color: var(--fnf-muted);
	margin: 0;
}
.fnf-auth-switch {
	text-align: center;
	margin-top: var(--fnf-sp-4);
	color: var(--fnf-muted);
	font-size: var(--fnf-fs-ui);
}
.fnf-auth-section {
	margin: var(--fnf-sp-6) 0 var(--fnf-sp-4);
	padding-top: var(--fnf-sp-5);
	border-top: 1px solid var(--fnf-gray-100);
}
.fnf-auth-section:first-of-type {
	margin-top: 0;
	padding-top: 0;
	border-top: none;
}
.fnf-auth-section h3 {
	margin-bottom: var(--fnf-sp-1);
}
.fnf-auth-section-sub {
	color: var(--fnf-muted);
	font-size: var(--fnf-fs-ui);
	margin-bottom: var(--fnf-sp-4);
}
.fnf-photo-preview {
	width: 96px;
	height: 96px;
	border-radius: var(--fnf-r-full);
	object-fit: cover;
	background: var(--fnf-gray-100);
	border: 2px dashed var(--fnf-gray-300);
	display: block;
	margin-bottom: var(--fnf-sp-3);
}

/* ==========================================================================
   Registration summary / cart (signup + approvals + receipt)
   ========================================================================== */
.fnf-summary {
	background: var(--fnf-primary-soft);
	border: 1px solid var(--fnf-primary-border);
	border-radius: var(--fnf-r-md);
	padding: var(--fnf-sp-4);
	margin: var(--fnf-sp-4) 0;
}
.fnf-summary-head {
	font-family: var(--fnf-font-display);
	font-weight: 700;
	font-size: var(--fnf-fs-ui);
	margin-bottom: var(--fnf-sp-3);
	color: var(--fnf-gray-900);
}
.fnf-summary-lines {
	list-style: none;
	margin: 0 0 var(--fnf-sp-3);
	padding: 0;
}
.fnf-summary-lines li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--fnf-sp-3);
	padding: 7px 0;
	border-bottom: 1px solid var(--fnf-border);
	font-size: var(--fnf-fs-ui);
	font-variant-numeric: tabular-nums;
}
.fnf-summary-lines li:last-child {
	border-bottom: none;
}
.fnf-summary-empty {
	color: var(--fnf-muted);
	font-style: italic;
}
.fnf-summary-tag {
	display: inline-block;
	font-size: var(--fnf-fs-overline);
	line-height: 16px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--fnf-primary-300);
	background: var(--fnf-surface);
	border: 1px solid var(--fnf-primary-border);
	border-radius: var(--fnf-r-sm);
	padding: 1px 6px;
	margin-right: 6px;
}
.fnf-summary-total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: var(--fnf-sp-3);
	border-top: 2px solid var(--fnf-primary-border);
	font-size: var(--fnf-fs-body);
}
.fnf-summary-total strong {
	font-family: var(--fnf-font-display);
	font-size: var(--fnf-fs-h3);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--fnf-gray-900);
}

/* ---- Fees acknowledgement ----
   The warning ramp, not the brand violet: this is the one place on the signup
   form that has to read as a caution rather than an offer, and it sits directly
   under the total so the two are never confused for each other. */
.fnf-policy {
	display: flex;
	align-items: flex-start;
	gap: var(--fnf-sp-3);
	padding: var(--fnf-sp-4);
	margin: var(--fnf-sp-4) 0;
	background: var(--fnf-warning-soft);
	border: 1px solid var(--fnf-warning-border);
	border-radius: var(--fnf-r-md);
}
.fnf-policy-icon {
	display: inline-flex;
	flex: none;
	margin-top: 10px;
	color: var(--fnf-warning-fg);
}
.fnf-policy-main {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 var(--fnf-sp-4);
	min-width: 0;
}
/* Wins over the generic .fnf-form label.fnf-check rules: the sentence can wrap
   to two lines, so the box aligns to the first line rather than the block. */
.fnf-form label.fnf-policy-check {
	align-items: flex-start;
	min-height: 40px;
	padding: var(--fnf-sp-2) 0;
	cursor: pointer;
}
.fnf-form label.fnf-policy-check > span {
	color: var(--fnf-gray-900);
	font-size: var(--fnf-fs-body);
	font-weight: 500;
}
.fnf-policy-check input {
	margin-top: 1px;
	flex: none;
}
.fnf-policy-link {
	min-height: 40px;
	padding: 0;
	border: none;
	background: none;
	font-family: inherit;
	font-size: var(--fnf-fs-ui);
	font-weight: 600;
	color: var(--fnf-warning-fg);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
	transition: color var(--fnf-t-fast) var(--fnf-ease);
}
.fnf-policy-link:hover,
.fnf-policy-link:focus-visible {
	color: var(--fnf-gray-900);
}

/* ---- Fees policy modal body ---- */
.fnf-policy-lede {
	margin: 0 0 var(--fnf-sp-5);
	font-size: var(--fnf-fs-body);
	color: var(--fnf-gray-700);
}
.fnf-policy-list {
	list-style: none;
	margin: 0 0 var(--fnf-sp-5);
	padding: 0;
	display: grid;
	gap: var(--fnf-sp-4);
}
.fnf-policy-list li {
	position: relative;
	padding-left: var(--fnf-sp-6);
	font-size: var(--fnf-fs-body);
	line-height: 1.55;
	color: var(--fnf-gray-600);
}
/* A token-coloured dot instead of a list marker — the marker inherits the
   muted body colour and reads as punctuation rather than structure. */
.fnf-policy-list li::before {
	content: "";
	position: absolute;
	left: var(--fnf-sp-2);
	top: 9px;
	width: 6px;
	height: 6px;
	border-radius: var(--fnf-r-full);
	background: var(--fnf-warning);
}
.fnf-policy-list strong {
	display: block;
	margin-bottom: 2px;
	font-family: var(--fnf-font-display);
	font-weight: 700;
	color: var(--fnf-gray-900);
}

/* ---- Signup product promo ----
   A short featured grid, then an opt-in horizontal strip holding everything
   else. Cards reuse the store's .fnf-product-* components; only the framing
   is new. */
.fnf-promo-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--fnf-sp-4);
	flex-wrap: wrap;
	margin-bottom: var(--fnf-sp-5);
}
.fnf-promo-intro {
	display: flex;
	flex-direction: column;
	gap: var(--fnf-sp-1);
	min-width: 0;
}
.fnf-promo-overline {
	font-size: var(--fnf-fs-overline);
	line-height: 16px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--fnf-primary-400);
}
/* Deliberately NOT .fnf-promo-title / .fnf-promo-sub: those belong to the
   sidebar promo panel further up. Sharing the names made the two components
   overwrite each other at equal specificity — the sidebar's h4 inherited this
   20px size against its own 21px line-height, and this lede inherited the
   sidebar's 17px leading at 14px, which is what made the signup copy look
   cramped. Each component owns its own names now. */
.fnf-promo-heading {
	font-family: var(--fnf-font-display);
	font-size: var(--fnf-fs-h2);
	line-height: 28px;
	font-weight: 700;
	color: var(--fnf-gray-900);
}
.fnf-promo-lede {
	font-size: var(--fnf-fs-body);
	line-height: 20px;
	color: var(--fnf-muted);
}

.fnf-product-star {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: var(--fnf-sp-1);
	padding: 2px var(--fnf-sp-2);
	border-radius: var(--fnf-r-full);
	background: var(--fnf-primary-soft);
	border: 1px solid var(--fnf-primary-border);
	color: var(--fnf-primary-300);
	font-size: var(--fnf-fs-overline);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

/* No rule off the top any more: the carousel panel below is a bordered box, so
   a hairline above it would be a second divider between the same two things. */
.fnf-product-browser {
	margin-top: var(--fnf-sp-5);
}
.fnf-product-browser[hidden] {
	display: none;
}

.fnf-chips {
	display: flex;
	flex-wrap: wrap;
	gap: var(--fnf-sp-2);
	margin-bottom: var(--fnf-sp-4);
}
.fnf-chip {
	padding: var(--fnf-sp-1) var(--fnf-sp-3);
	border: 1px solid var(--fnf-gray-300);
	border-radius: var(--fnf-r-full);
	background: transparent;
	color: var(--fnf-gray-600);
	font-family: inherit;
	font-size: var(--fnf-fs-ui);
	font-weight: 600;
	cursor: pointer;
	transition: background var(--fnf-t-fast) var(--fnf-ease), border-color var(--fnf-t-fast) var(--fnf-ease), color var(--fnf-t-fast) var(--fnf-ease);
}
.fnf-chip:hover {
	border-color: var(--fnf-primary-400);
	color: var(--fnf-gray-900);
}
.fnf-chip.is-active {
	background: var(--fnf-primary-soft);
	border-color: var(--fnf-primary-border);
	color: var(--fnf-primary-300);
}

.fnf-browse-empty[hidden] {
	display: none;
}

/* ---- Product carousel — one product per view ----
   The viewport is the whole mechanism: a scroll-snap flex row where each slide
   is exactly 100% wide. Touch swipe, momentum and keyboard scrolling are the
   browser's own, so with JavaScript off this stays a usable horizontal
   scroller — initCarousel() only adds the arrows, dots and counter. */
.fnf-carousel {
	/* The arrows are positioned against this element and sit half outside the
	   panel's left and right edges, so the root has to be the positioning
	   context — and, unlike the panel, must never clip its overflow. */
	position: relative;
	/* Sized to fit half-outside the panel within the auth card's own gutter at
	   EVERY width — 18px of overhang clears the 20px phone padding, so this one
	   value works from a phone up to the 720px signup card without a
	   breakpoint. */
	--fnf-carousel-arrow: 36px;
}
.fnf-carousel-viewport {
	display: flex;
	gap: var(--fnf-sp-4);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	/* A scroll container still reports its content's min-content width to an
	   ancestor sizing itself intrinsically, and it is a flex item wherever the
	   carousel is dropped into a flex row. Both floors are cleared here so the
	   viewport can always be narrower than one slide — the scrolling is the
	   whole point. */
	min-width: 0;
}
.fnf-carousel-viewport::-webkit-scrollbar {
	display: none;
}
/* start, not center: scrollTo() below aligns a slide's left edge to the
   viewport's, and a centre snap would immediately drag it back off. */
.fnf-carousel-viewport > .fnf-product-card {
	flex: 0 0 100%;
	scroll-snap-align: start;
}
/* Filtered-out slides must leave the flow entirely, or they still occupy a
   snap position and the carousel scrolls to an empty frame. */
.fnf-carousel-viewport > .fnf-product-card[hidden] {
	display: none;
}
/* The image sits in its own framed tile beside the copy, so it is squared off
   rather than letterboxed, and capped: an untamed tile in a column this wide
   would push the price below the fold. object-fit keeps the product itself
   whole inside whatever shape the cap leaves. */
.fnf-carousel .fnf-product-img {
	aspect-ratio: 1 / 1;
	max-height: 180px;
	/* The glow behind it is the backdrop now, not the grid tile's flat fill. */
	background: none;
}

/* ---- Showcase panel ----
   The grid's .fnf-product-card is a 220px tile; stretched to the full width of
   the signup panel it read as a small card that got pulled wide. In a showcase
   carousel the panel itself takes over the card chrome and every slide runs
   full-bleed inside it, so the frame belongs to the carousel and the slide owns
   nothing but its content. */
.fnf-carousel--showcase .fnf-carousel-panel {
	background: var(--fnf-surface);
	border: 1px solid var(--fnf-gray-100);
	/* One step above --fnf-r-lg: this panel holds framed tiles of its own, and a
	   card radius read tight around them. */
	border-radius: 20px;
	box-shadow: var(--fnf-shadow-sm);
	overflow: hidden;
	/* The same floor §1.12 cleared off the fieldset, one level in: below 640px
	   the carousel root becomes a flex row (the arrows rejoin the dots), which
	   makes this panel a flex item, and a flex item's automatic minimum size is
	   its min-content — the scrolling viewport's, i.e. one whole slide. Without
	   this the panel hangs out of the auth card on every phone. */
	min-width: 0;
}
.fnf-carousel--showcase .fnf-product-card {
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	gap: var(--fnf-sp-4);
	padding: var(--fnf-sp-5);
}
/* The grid tile's hover-lift has nothing to lift off here — it would translate a
   full-bleed slide inside the panel that clips it. */
.fnf-carousel--showcase .fnf-product-card:hover {
	box-shadow: none;
	transform: none;
}
/* Image and copy are one row; the facts band and the promise below span both
   columns, so they are siblings of this row rather than children of it. The
   tracks are uneven on purpose — the copy carries the name, the price and the
   stepper, and an even split starved all three. */
.fnf-product-top {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
	gap: var(--fnf-sp-4);
	align-items: center;
}

.fnf-product-media {
	position: relative;
	padding: var(--fnf-sp-3);
	border: 1px solid var(--fnf-gray-100);
	border-radius: var(--fnf-r-lg);
	/* A glow rather than a filled panel: the product should read as floating on
	   the card, which a flat --fnf-gray-100 tile behind it cannot do on a dark
	   surface. Raw rgba because the token ramp has no stop this faint. */
	background: radial-gradient(78% 62% at 50% 44%, rgba(139, 92, 246, 0.22) 0%, rgba(139, 92, 246, 0.07) 52%, transparent 76%);
}
/* The placeholder shares .fnf-product-img. */
.fnf-product-media .fnf-product-img .fnf-icon {
	width: 32px;
	height: 32px;
}
/* Over the image the pill is the only thing on a violet field, so it goes solid
   instead of the soft chip fill it uses inline. */
.fnf-product-media .fnf-product-star {
	position: absolute;
	top: var(--fnf-sp-4);
	left: var(--fnf-sp-4);
	z-index: 1;
	padding: var(--fnf-sp-1) var(--fnf-sp-3);
	background: var(--fnf-primary-500);
	border-color: transparent;
	color: var(--fnf-primary-fg);
}

/* Cosmetic and session-only — see initFavourites() in fnf.js for why nothing is
   persisted. Mirrors the featured pill at the opposite corner. */
.fnf-product-fav {
	position: absolute;
	top: var(--fnf-sp-4);
	right: var(--fnf-sp-4);
	z-index: 1;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1px solid transparent;
	border-radius: var(--fnf-r-full);
	background: none;
	color: var(--fnf-gray-600);
	cursor: pointer;
	transition: background var(--fnf-t-fast) var(--fnf-ease), border-color var(--fnf-t-fast) var(--fnf-ease), color var(--fnf-t-fast) var(--fnf-ease);
}
.fnf-product-fav:hover {
	background: var(--fnf-surface-2);
	border-color: var(--fnf-gray-200);
	color: var(--fnf-gray-900);
}
.fnf-product-fav:focus-visible {
	box-shadow: 0 0 0 3px var(--fnf-focus-ring);
}
.fnf-product-fav.is-on {
	color: var(--fnf-primary-400);
}
/* icon() always emits fill="none" on the svg; a stylesheet outranks that
   presentation attribute, so the filled state needs no second path. */
.fnf-product-fav.is-on svg {
	fill: currentColor;
}

.fnf-carousel--showcase .fnf-product-body {
	/* The card owns the gutters now — the body is a grid cell inside them. */
	padding: 0;
	gap: var(--fnf-sp-3);
	justify-content: center;
}
/* The category reads as a tag rather than an overline here: it is the first
   thing in the column, with nothing above it to be an overline to. */
.fnf-carousel--showcase .fnf-product-cat {
	align-self: start;
	padding: 3px var(--fnf-sp-2);
	border-radius: var(--fnf-r-full);
	background: var(--fnf-primary-soft);
	color: var(--fnf-primary-300);
	letter-spacing: 0.08em;
}
.fnf-carousel--showcase .fnf-product-name {
	font-family: var(--fnf-font-display);
	font-size: var(--fnf-fs-h2);
	line-height: 26px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--fnf-gray-900);
	/* The column is as narrow as a phone screen at every breakpoint now (the
	   card never reflows to a single column below it) - a long name has to be
	   able to break mid-word rather than push the column wider than the panel. */
	overflow-wrap: anywhere;
}
.fnf-product-desc {
	font-size: var(--fnf-fs-body);
	line-height: 20px;
	color: var(--fnf-muted);
}

/* Charged price, struck MRP, saving — in that order, because the figure the
   applicant actually pays has to land first. The row wraps as a unit: at the
   narrow end the badge drops to its own line rather than squeezing the price. */
.fnf-product-pricing {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--fnf-sp-2);
}
.fnf-carousel--showcase .fnf-product-price {
	font-size: var(--fnf-fs-h2);
	font-weight: 800;
	letter-spacing: -0.01em;
	color: var(--fnf-primary-400);
	/* Same overflow-wrap safety net as the name, and for the same reason. */
	overflow-wrap: anywhere;
}
/* The <s> element draws the line; nothing here declares a decoration. */
.fnf-product-mrp {
	font-size: var(--fnf-fs-ui);
	font-weight: 500;
	font-variant-numeric: tabular-nums;
	color: var(--fnf-muted);
	text-decoration-thickness: 1px;
}
/* Solid green, not the soft badge fill: this is the one thing on the card that
   has to read from across the panel. --fnf-success itself is too light to carry
   white text at this size, so the badge takes the darker green one step down
   the same hue, which clears AA. */
.fnf-product-off {
	padding: var(--fnf-sp-1) var(--fnf-sp-2);
	border-radius: var(--fnf-r-full);
	background: #15803d;
	color: var(--fnf-on-accent);
	font-size: var(--fnf-fs-caption);
	font-weight: 700;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

/* A tile-sized stepper looks stranded in a panel this wide, and this is the one
   control on the card. 44/56/44 = 144px, on the 4px grid and on the 44px touch
   line rather than past it — this is the same size the stepper takes on a
   phone everywhere else in the app, unified rather than getting its own
   larger scale here. */
.fnf-carousel--showcase .fnf-qty {
	border-radius: var(--fnf-r-full);
	border-color: var(--fnf-gray-200);
	background: var(--fnf-surface-2);
}
.fnf-carousel--showcase .fnf-qty button {
	width: 44px;
	height: 44px;
	background: none;
	font-size: 18px;
	color: var(--fnf-gray-700);
}
.fnf-carousel--showcase .fnf-qty button:hover {
	background: var(--fnf-gray-100);
}
.fnf-carousel--showcase .fnf-qty input[type="number"] {
	width: 56px;
	height: 44px;
	/* The pill is one shape, so its cells are divided by rules rather than gaps —
	   which is also what stops the value drifting into the buttons. */
	border-inline: 1px solid var(--fnf-gray-200);
	font-size: var(--fnf-fs-h3);
	font-weight: 700;
}

/* Brand · category · stock, read straight off the row. Every cell is real
   product data — the card is inside a signup form, so a band of unbacked claims
   is not something it gets to assert. Cells are built in PHP, so a product
   missing a brand simply lays out two columns. */
.fnf-product-facts {
	display: grid;
	/* One equal column per fact, however many PHP emitted — auto-flow sizes to
	   the item count instead of guessing a track template. minmax(0, 1fr), not
	   1fr: a long brand name has to wrap inside its column rather than push the
	   row past the panel. Three columns hold at every width, including a
	   phone's, because the cell itself is small now — see fact-icon below. */
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
	gap: var(--fnf-sp-3);
	padding-top: var(--fnf-sp-4);
	border-top: 1px solid var(--fnf-gray-100);
}
.fnf-product-fact {
	display: flex;
	align-items: center;
	gap: var(--fnf-sp-2);
	min-width: 0;
}
.fnf-product-fact + .fnf-product-fact {
	border-left: 1px solid var(--fnf-gray-100);
	padding-left: var(--fnf-sp-3);
}
/* The ring is the badge, drawn here rather than in the glyph — which is why the
   availability cell uses a bare tick rather than check-badge and its own
   circle, which would have drawn a second ring inside this one. */
.fnf-product-fact-icon {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	border: 1.5px solid var(--fnf-primary-border);
	border-radius: var(--fnf-r-full);
	background: rgba(139, 92, 246, 0.08);
	color: var(--fnf-primary-400);
}
.fnf-product-fact-icon .fnf-icon {
	width: 16px;
	height: 16px;
}
.fnf-product-fact-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.fnf-product-fact-value {
	font-size: var(--fnf-fs-caption);
	line-height: 16px;
	font-weight: 600;
	color: var(--fnf-gray-900);
	overflow-wrap: anywhere;
}
.fnf-product-fact-label {
	font-size: var(--fnf-fs-overline);
	line-height: 14px;
	color: var(--fnf-muted);
}
.fnf-product-fact--warn .fnf-product-fact-icon {
	border-color: var(--fnf-warning-border);
	background: var(--fnf-warning-soft);
	color: var(--fnf-warning-fg);
}

/* Closes the card. It says nothing about the individual product — it is the
   same line on every slide — so it is styled as the panel's own note rather
   than as another fact read off the row. */
.fnf-product-promise {
	display: flex;
	align-items: center;
	gap: var(--fnf-sp-3);
	padding: var(--fnf-sp-4);
	border: 1px solid var(--fnf-primary-border);
	border-radius: var(--fnf-r-lg);
	background: rgba(139, 92, 246, 0.1);
}
.fnf-product-promise-icon {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	border-radius: var(--fnf-r-md);
	background: var(--fnf-primary-soft);
	color: var(--fnf-primary-300);
}
.fnf-product-promise-icon .fnf-icon {
	width: 18px;
	height: 18px;
}
.fnf-product-promise-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.fnf-product-promise-text strong {
	font-size: var(--fnf-fs-body);
	line-height: 20px;
	font-weight: 700;
	color: var(--fnf-gray-900);
}
.fnf-product-promise-text > span {
	font-size: var(--fnf-fs-caption);
	line-height: 16px;
	color: var(--fnf-muted);
}

/* The caption is the panel's footer copy — it describes the whole strip, so it
   must not live inside a slide. Its gutters match the card's above it. */
.fnf-carousel-note {
	margin: 0;
	padding: 0 var(--fnf-sp-5) var(--fnf-sp-4);
	font-size: var(--fnf-fs-caption);
	line-height: 18px;
	color: var(--fnf-muted);
}

/* Dots only: the arrows left this bar for the panel's edges, so what remains is
   a position indicator, centred under the panel. */
.fnf-carousel-ctl {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--fnf-sp-3);
	margin-top: var(--fnf-sp-3);
}
/* `display: flex` and `display: grid` both beat the hidden attribute's UA
   `display: none`, so every element JS hides needs this or hiding it silently
   does nothing. The arrows are hidden one by one now that they are no longer
   children of the bar. */
.fnf-carousel-ctl[hidden],
.fnf-carousel-dots[hidden],
.fnf-carousel-arrow[hidden] {
	display: none;
}
.fnf-carousel-arrow {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	flex: 0 0 auto;
	/* A step brighter than the panel it rides on, in both fill and edge: at
	   --fnf-surface-2 over --fnf-surface the control disappeared into the frame
	   exactly where it overlaps it. */
	border: 1px solid var(--fnf-gray-300);
	border-radius: var(--fnf-r-full);
	background: var(--fnf-gray-100);
	color: var(--fnf-gray-800);
	cursor: pointer;
	transition: background var(--fnf-t-fast) var(--fnf-ease), border-color var(--fnf-t-fast) var(--fnf-ease), color var(--fnf-t-fast) var(--fnf-ease), opacity var(--fnf-t-fast) var(--fnf-ease);
}
/* Sized to the button it sits in — see --fnf-carousel-arrow above. */
.fnf-carousel-arrow .fnf-icon {
	width: 18px;
	height: 18px;
}
.fnf-carousel-arrow:hover:not(:disabled) {
	background: var(--fnf-primary-500);
	border-color: var(--fnf-primary-500);
	color: var(--fnf-primary-fg);
}
.fnf-carousel-arrow:disabled {
	opacity: 0.35;
	cursor: default;
}
/* Centred on the panel's left and right edges — half on the frame, half off it.
   The panel keeps its full width, because nothing is reserved beside it; the
   half that hangs outside lands in the auth card's own 32px gutter, and the
   half inside covers the slide's 32px padding, so the arrow touches neither the
   card's edge nor the card's content. The offset is derived from the size
   rather than typed twice, so one value moves both together. */
.fnf-carousel--showcase .fnf-carousel-arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	width: var(--fnf-carousel-arrow);
	height: var(--fnf-carousel-arrow);
	transform: translateY(-50%);
	box-shadow: var(--fnf-shadow-md);
}
.fnf-carousel--showcase .fnf-carousel-arrow--prev {
	left: calc(var(--fnf-carousel-arrow) / -2);
}
.fnf-carousel--showcase .fnf-carousel-arrow--next {
	right: calc(var(--fnf-carousel-arrow) / -2);
}
.fnf-carousel-dots {
	display: flex;
	align-items: center;
	gap: var(--fnf-sp-2);
}
.fnf-carousel-dot {
	width: 7px;
	height: 7px;
	padding: 0;
	border: none;
	border-radius: var(--fnf-r-full);
	background: var(--fnf-gray-300);
	cursor: pointer;
	transition: background var(--fnf-t-fast) var(--fnf-ease), width var(--fnf-t-fast) var(--fnf-ease);
}
.fnf-carousel-dot.is-active {
	width: 20px;
	background: var(--fnf-primary-400);
}
.fnf-carousel-count {
	font-size: var(--fnf-fs-ui);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: var(--fnf-muted);
	min-width: 60px;
	text-align: center;
}
.fnf-carousel-count[hidden] {
	display: none;
}

/* ==========================================================================
   Member cards (approvals / detail)
   ========================================================================== */
.fnf-member-card {
	display: flex;
	gap: var(--fnf-sp-4);
	align-items: flex-start;
}
.fnf-member-photo {
	width: 72px;
	height: 72px;
	border-radius: var(--fnf-r-md);
	object-fit: cover;
	background: var(--fnf-primary-soft);
	color: var(--fnf-primary-300);
	display: grid;
	place-items: center;
	font-family: var(--fnf-font-display);
	font-weight: 700;
	font-size: var(--fnf-fs-h3);
	flex: 0 0 auto;
}
.fnf-member-meta {
	min-width: 0;
}
.fnf-member-name {
	font-family: var(--fnf-font-display);
	font-weight: 700;
	font-size: var(--fnf-fs-h3);
}
/* Asymmetric by design: rows need more separation than columns because each
   cell is a two-line dt/dd pair. The row gap used to be an accident — a 12px
   gap plus an 8px dd margin — which left it unstated and unadjustable. */
.fnf-detail-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	row-gap: var(--fnf-sp-4);
	column-gap: var(--fnf-sp-3);
	margin-top: var(--fnf-sp-3);
	font-size: var(--fnf-fs-body);
}
.fnf-detail-grid dt {
	color: var(--fnf-muted);
	font-size: var(--fnf-fs-overline);
	line-height: 16px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 2px;
}
.fnf-detail-grid dd {
	margin: 0;
}
.fnf-assign-panel {
	margin-top: var(--fnf-sp-6);
	background: var(--fnf-gray-25);
	border: 1px solid var(--fnf-gray-100);
	border-radius: var(--fnf-r-md);
	padding: var(--fnf-sp-4);
}

/* ==========================================================================
   Store (product grid)
   ========================================================================== */
.fnf-product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: var(--fnf-sp-5);
}
.fnf-product-card {
	background: var(--fnf-surface);
	border: 1px solid var(--fnf-gray-100);
	border-radius: var(--fnf-r-lg);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: var(--fnf-shadow-sm);
	transition: box-shadow var(--fnf-t-fast) var(--fnf-ease), transform var(--fnf-t-fast) var(--fnf-ease);
}
.fnf-product-card:hover {
	box-shadow: var(--fnf-shadow-md);
	transform: translateY(-1px);
}
.fnf-product-img {
	aspect-ratio: 4 / 3;
	background: var(--fnf-gray-100);
	object-fit: contain;
	width: 100%;
	display: grid;
	place-items: center;
	color: var(--fnf-gray-400);
}
.fnf-product-img .fnf-icon {
	width: 32px;
	height: 32px;
}
.fnf-product-body {
	padding: var(--fnf-sp-4);
	display: flex;
	flex-direction: column;
	gap: var(--fnf-sp-2);
	flex: 1 1 auto;
}
.fnf-product-name {
	font-weight: 600;
}
.fnf-product-cat {
	font-size: var(--fnf-fs-overline);
	line-height: 16px;
	font-weight: 600;
	color: var(--fnf-muted);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}
.fnf-product-price {
	font-family: var(--fnf-font-display);
	font-size: var(--fnf-fs-h3);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--fnf-gray-900);
}
.fnf-product-foot {
	margin-top: auto;
	display: flex;
	align-items: center;
	gap: var(--fnf-sp-2);
}
.fnf-qty {
	display: flex;
	align-items: center;
	border: 1px solid var(--fnf-gray-300);
	border-radius: var(--fnf-r-sm);
	overflow: hidden;
}
.fnf-qty button {
	width: 32px;
	height: 36px;
	border: none;
	background: var(--fnf-gray-100);
	cursor: pointer;
	font-size: 15px;
	color: var(--fnf-gray-700);
	transition: background var(--fnf-t-fast) var(--fnf-ease);
}
.fnf-qty button:hover {
	background: var(--fnf-gray-200);
}
/* [type] qualifier is load-bearing: the signup stepper sits inside .fnf-form,
   so a bare `.fnf-qty input` loses to the control skin and the box stretches. */
.fnf-qty input[type="number"] {
	width: 44px;
	min-width: 0;
	min-height: 0;
	height: 36px;
	padding: 0;
	border: none;
	text-align: center;
	font-family: inherit;
	font-size: var(--fnf-fs-ui);
	font-variant-numeric: tabular-nums;
	-moz-appearance: textfield;
	appearance: textfield;
}
.fnf-qty input::-webkit-outer-spin-button,
.fnf-qty input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* ==========================================================================
   Sub-navigation (segmented control)

   Products, Categories and Brands are one area of the app, so they share a
   sidebar tab and switch here instead of claiming three tabs of their own.
   ========================================================================== */
.fnf-subnav {
	display: flex;
	gap: var(--fnf-sp-1);
	padding: var(--fnf-sp-1);
	margin-bottom: var(--fnf-sp-5);
	background: var(--fnf-surface);
	border: 1px solid var(--fnf-gray-100);
	border-radius: var(--fnf-r-md);
	overflow-x: auto;
}
.fnf-subnav-item {
	flex: 0 0 auto;
	padding: var(--fnf-sp-2) var(--fnf-sp-4);
	border-radius: var(--fnf-r-sm);
	color: var(--fnf-muted);
	font-size: var(--fnf-fs-ui);
	font-weight: 600;
	white-space: nowrap;
	text-decoration: none;
	transition: background var(--fnf-t-fast) var(--fnf-ease), color var(--fnf-t-fast) var(--fnf-ease);
}
.fnf-subnav-item:hover {
	background: var(--fnf-surface-2);
	color: var(--fnf-gray-900);
}
.fnf-subnav-item.is-active {
	background: var(--fnf-primary-soft);
	color: var(--fnf-primary-300);
}

/* ==========================================================================
   Plan pricing cards (portal membership)
   ========================================================================== */
.fnf-plan-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: var(--fnf-sp-4);
}
.fnf-plan-card {
	border: 1px solid var(--fnf-gray-200);
	border-radius: var(--fnf-r-md);
	padding: var(--fnf-sp-5);
	transition: border-color var(--fnf-t-fast) var(--fnf-ease), box-shadow var(--fnf-t-fast) var(--fnf-ease);
}
.fnf-plan-card:hover {
	border-color: var(--fnf-primary-400);
	box-shadow: var(--fnf-shadow-sm);
}
.fnf-plan-name {
	font-weight: 600;
	margin-bottom: var(--fnf-sp-1);
}
.fnf-plan-price {
	font-family: var(--fnf-font-display);
	font-size: 22px;
	line-height: 28px;
	font-weight: 800;
	letter-spacing: -0.01em;
	font-variant-numeric: tabular-nums;
	color: var(--fnf-gray-900);
}
.fnf-plan-price span {
	font-family: var(--fnf-font);
	font-size: var(--fnf-fs-caption);
	font-weight: 500;
	color: var(--fnf-muted);
	letter-spacing: 0;
}

/* ==========================================================================
   Selectable plan cards (signup) + the shared discount idiom
   ========================================================================== */
/* The signup plan picker. Deliberately NOT .fnf-plan-card: that one is the
   portal's read-only pricing card and is shared, so a selectable variant gets
   its own names rather than overloading it. */
.fnf-plan-picker {
	border: 0;
	padding: 0;
	margin: 0 0 var(--fnf-sp-4);
	/* Load-bearing, same trap as .fnf-fieldset: the UA sheet's
	   `fieldset { min-inline-size: min-content }` survives `width: 100%`, and a
	   minmax() card grid inside one has exactly the min-content failure mode
	   that froze the product carousel panel at 338px on every phone. */
	min-inline-size: 0;
}
/* `.fnf-fieldset legend` is a DESCENDANT selector, so this nested legend would
   otherwise inherit the 11px uppercase overline and read as a second section
   heading instead of a field label. */
.fnf-fieldset .fnf-plan-picker legend {
	font-size: var(--fnf-fs-ui);
	line-height: 18px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	color: var(--fnf-gray-700);
	padding: 0;
	margin-bottom: var(--fnf-sp-2);
}
.fnf-plan-options {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: var(--fnf-sp-3);
}
.fnf-form .fnf-plan-option {
	display: flex;
	align-items: flex-start;
	gap: var(--fnf-sp-3);
	margin: 0;
	padding: var(--fnf-sp-4);
	border: 1px solid var(--fnf-gray-200);
	border-radius: var(--fnf-r-md);
	background: var(--fnf-surface);
	cursor: pointer;
	transition: border-color var(--fnf-t-fast) var(--fnf-ease),
		background var(--fnf-t-fast) var(--fnf-ease),
		box-shadow var(--fnf-t-fast) var(--fnf-ease);
}
.fnf-form .fnf-plan-option:hover {
	border-color: var(--fnf-primary-400);
	box-shadow: var(--fnf-shadow-sm);
}
/* The radio keeps its 18px accent-color skin from the global rule; it only has
   to stop stretching and sit on the plan name's cap height. The whole label is
   the touch target, so the 44px phone minimum does not apply to the dot - the
   same exemption .fnf-policy-check relies on. */
.fnf-form .fnf-plan-option input[type="radio"] {
	flex: 0 0 auto;
	width: 18px;
	min-height: 0;
	margin: 3px 0 0;
}
.fnf-plan-option-body {
	display: flex;
	flex-direction: column;
	gap: var(--fnf-sp-1);
	min-width: 0; /* long plan names wrap instead of blowing out the grid cell */
}
.fnf-plan-option-head {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--fnf-sp-2);
}
.fnf-plan-option-name {
	font-weight: 600;
	color: var(--fnf-text);
}
.fnf-plan-option-prices {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: var(--fnf-sp-2);
}
.fnf-plan-option-price {
	font-family: var(--fnf-font-display);
	font-size: var(--fnf-fs-h2);
	line-height: 26px;
	font-weight: 800;
	letter-spacing: -0.01em;
	font-variant-numeric: tabular-nums;
	color: var(--fnf-gray-900);
}
.fnf-plan-option-meta {
	font-size: var(--fnf-fs-caption);
	line-height: 16px;
	color: var(--fnf-muted);
}
/* Selected + focus.
   :has() is already the mechanism behind the avatar caret and the card-sub
   margin, so it is an accepted baseline here. Scoping the focus reset behind
   :has(input) is a free guard: a browser that cannot parse :has() drops these
   rules entirely, leaving the stock 3px ring on the radio dot, so focus is
   never invisible - the card simply does not light up. */
.fnf-form .fnf-plan-option:has(input:checked) {
	border-color: var(--fnf-primary-500);
	background: var(--fnf-primary-soft);
}
.fnf-form .fnf-plan-option:has(input:focus-visible) {
	border-color: var(--fnf-primary-500);
	box-shadow: 0 0 0 3px var(--fnf-focus-ring);
}
.fnf-form .fnf-plan-option:has(input) input[type="radio"]:focus {
	box-shadow: none;
}

/* ---- The struck "was" price. Shared by the signup cards, the portal plan
   cards, the footer offers strip and the admin Plans table - one idiom, four
   surfaces. The <s> element supplies the line, so nothing here declares one;
   this is the only place the stylesheet touches strike-through. ---- */
.fnf-price-head {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--fnf-sp-2);
	margin-bottom: 2px;
}
.fnf-price-was {
	color: var(--fnf-muted);
	font-size: var(--fnf-fs-ui);
	font-weight: 500;
	font-variant-numeric: tabular-nums;
	text-decoration-thickness: 1px;
}

/* ==========================================================================
   Diet plan cards
   ========================================================================== */
.fnf-diet-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: var(--fnf-sp-5);
}
.fnf-diet-card {
	background: var(--fnf-surface);
	border: 1px solid var(--fnf-gray-100);
	border-radius: var(--fnf-r-lg);
	padding: var(--fnf-sp-6);
	box-shadow: var(--fnf-shadow-sm);
}
.fnf-diet-content {
	margin-top: var(--fnf-sp-3);
	font-size: var(--fnf-fs-body);
	color: var(--fnf-gray-700);
}
.fnf-diet-content ul {
	padding-left: 18px;
}
.fnf-diet-content--clamp {
	display: -webkit-box;
	-webkit-line-clamp: 4;
	line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ==========================================================================
   Check-in landing
   ========================================================================== */
.fnf-checkin {
	max-width: 480px;
	margin: 0 auto;
	text-align: center;
}
.fnf-checkin-card {
	border: 1px solid var(--fnf-gray-100);
	border-radius: var(--fnf-r-lg);
	padding: var(--fnf-sp-8) var(--fnf-sp-6);
	background: var(--fnf-surface);
	box-shadow: var(--fnf-shadow-md);
}
.fnf-checkin-icon {
	width: 64px;
	height: 64px;
	margin: 0 auto var(--fnf-sp-4);
	border-radius: var(--fnf-r-full);
	display: grid;
	place-items: center;
	background: var(--fnf-primary-soft);
	color: var(--fnf-primary-300);
}
.fnf-checkin-icon .fnf-icon {
	width: 30px;
	height: 30px;
}
.fnf-checkin-card--success .fnf-checkin-icon {
	background: var(--fnf-success-soft);
	color: var(--fnf-success);
}
.fnf-checkin-card--error .fnf-checkin-icon {
	background: var(--fnf-danger-soft);
	color: var(--fnf-danger);
}
.fnf-checkin-name {
	font-family: var(--fnf-font-display);
	font-size: var(--fnf-fs-h2);
	font-weight: 700;
	margin: var(--fnf-sp-1) 0;
}
.fnf-checkin-when strong {
	font-family: var(--fnf-font-display);
	font-size: var(--fnf-fs-h3);
	font-variant-numeric: tabular-nums;
}
.fnf-checkin-plan,
.fnf-checkin-msg {
	color: var(--fnf-muted);
}
.fnf-checkin-history {
	margin-top: var(--fnf-sp-6);
	text-align: left;
}
.fnf-checkin-history h3 {
	font-family: var(--fnf-font);
	font-size: var(--fnf-fs-overline);
	line-height: 16px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--fnf-muted);
}
.fnf-checkin-history ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.fnf-checkin-history li {
	display: flex;
	justify-content: space-between;
	padding: 10px 4px;
	border-bottom: 1px solid var(--fnf-gray-100);
	font-variant-numeric: tabular-nums;
}
.fnf-checkin-history li:last-child {
	border-bottom: none;
}
.fnf-history-time {
	color: var(--fnf-muted);
	font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   QR poster
   ========================================================================== */
/*
 * Branded poster (fit_qr.webp, 1254x1254). The live QR canvas is overlaid on
 * the poster's white panel, centered inside the violet corner brackets
 * (brackets: x 389-871, y 414-893 → QR square 440px at 410,433.5).
 */
.fnf-qr-poster {
	position: relative;
	max-width: 560px;
	margin: var(--fnf-sp-4) auto;
}
.fnf-qr-poster-bg {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--fnf-r-lg);
}
.fnf-qr-canvas {
	position: absolute;
	left: 32.695%;
	top: 34.569%;
	width: 35.088%;
	height: 35.088%;
	/* Intentionally literal white: this is the QR quiet zone. Theming it breaks scannability. */
	background: #fff;
}
.fnf-qr-canvas img,
.fnf-qr-canvas canvas {
	display: block;
	width: 100% !important;
	height: 100% !important;
}
.fnf-qr-actions {
	display: flex;
	gap: var(--fnf-sp-3);
	justify-content: center;
	align-items: center;
	margin: var(--fnf-sp-6) 0;
}
.fnf-qr-url {
	text-align: center;
	font-size: var(--fnf-fs-ui);
	color: var(--fnf-muted);
	word-break: break-all;
}
.fnf-qr-url code {
	background: var(--fnf-gray-100);
	padding: 2px 6px;
	border-radius: var(--fnf-r-sm);
}

/* ==========================================================================
   Utilities (replacing inline styles in views)
   ========================================================================== */
.fnf-mt-2 { margin-top: var(--fnf-sp-2); }
.fnf-mt-3 { margin-top: var(--fnf-sp-3); }
.fnf-mt-4 { margin-top: var(--fnf-sp-4); }
.fnf-mt-5 { margin-top: var(--fnf-sp-5); }
.fnf-mt-6 { margin-top: var(--fnf-sp-6); }
.fnf-mb-0 { margin-bottom: 0; }
.fnf-ml-1 { margin-left: var(--fnf-sp-1); }
.fnf-mx-auto { margin-inline: auto; }
.fnf-items-start { align-items: start; }
.fnf-text-center { text-align: center; }
.fnf-text-right { text-align: right; }
.fnf-text-sm { font-size: var(--fnf-fs-ui); line-height: 20px; }
.fnf-text-xs { font-size: var(--fnf-fs-caption); line-height: 16px; }
.fnf-strong { font-weight: 600; }

/* ==========================================================================
   Bulk actions
   ========================================================================== */
/* A real panel, not three loose controls: the bar sits directly above a bordered
   table, so without a surface of its own it reads as unstyled leftovers. */
.fnf-bulk {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--fnf-sp-3);
	/* No margin of its own: the .fnf-card-pad-x wrapper it always sits in owns
	   the surrounding space. Stacking both gave 28px above and 32px below. */
	margin: 0;
	padding: var(--fnf-sp-3);
	border: 1px solid var(--fnf-gray-200);
	border-radius: var(--fnf-r-md);
	background-color: var(--fnf-surface-2);
	transition: border-color var(--fnf-t-fast) var(--fnf-ease),
		background-color var(--fnf-t-fast) var(--fnf-ease);
}
/* Rows selected. The bar picks up the accent so a pending destructive action is
   obvious, without shifting layout. `is-active` is toggled from fnf.js sync(). */
.fnf-bulk.is-active {
	border-color: var(--fnf-primary-border);
	background-color: var(--fnf-primary-soft);
}
.fnf-bulk-count {
	font-size: var(--fnf-fs-ui);
	font-weight: 600;
	color: var(--fnf-muted);
	font-variant-numeric: tabular-nums;
	/* Holds its width across "None selected" → "9 selected" so the controls
	   beside it never jump as rows are ticked. */
	min-width: 9ch;
	transition: color var(--fnf-t-fast) var(--fnf-ease);
}
.fnf-bulk.is-active .fnf-bulk-count {
	color: var(--fnf-text);
}
.fnf-bulk-op {
	display: flex;
	margin: 0;
}
.fnf-bulk [data-fnf-bulk-apply][disabled] {
	opacity: 0.5;
	cursor: not-allowed;
}
/* Checkbox column: sized to the control so it never steals width from data. */
.fnf-col-check {
	width: 1%;
	white-space: nowrap;
}
body.fnf-app .fnf-bulk-check {
	margin: 0;
	vertical-align: middle;
	cursor: pointer;
}
.fnf-icon-action--restore {
	color: var(--fnf-success-fg);
}
.fnf-icon-action--restore:hover {
	background: var(--fnf-success-soft);
	border-color: var(--fnf-success-border);
	color: var(--fnf-success-fg);
}

/* Screen-reader-only label (bulk select, etc.). */
.fnf-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Visually-hidden honeypot field (anti-spam). */
.fnf-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Component variants that replace one-off inline styles. */
.fnf-card--narrow { max-width: 720px; }
.fnf-card--pad0 .fnf-count { padding: var(--fnf-sp-4) var(--fnf-sp-6) 0; margin: 0; }
/* Puts a single non-table block (bulk bar, pagination, a hint) back on the card
   gutter. It owns the space below it too, so whatever it wraps can zero its own
   margins and the two can never double up. */
.fnf-card-pad-x { padding: 0 var(--fnf-sp-6) var(--fnf-sp-6); }
.fnf-check > span { margin: 0; }
/* Bottom-aligns a bare checkbox with the labelled control beside it in a grid
   row. Matching the control's 40px height and sitting flush to the row's bottom
   edge lines the two up exactly — the old approach was a 16px margin nudge that
   only happened to land close. */
.fnf-check--end { align-self: end; min-height: 40px; }
.fnf-photo-preview--square { border-radius: var(--fnf-r-md); }
body.fnf-app .fnf-photo-preview--logo {
	width: auto;
	max-width: 260px;
	height: 72px;
	border-radius: var(--fnf-r-md);
	object-fit: contain;
	padding: var(--fnf-sp-2);
}
.fnf-logo-picker {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--fnf-sp-3);
}
.fnf-logo-picker input[type="file"] {
	flex: 1 1 200px;
	min-width: 0;
}
.fnf-summary--plain { border: none; background: none; padding: 0; margin: 0; }
.fnf-stat-value--sm { font-size: var(--fnf-fs-h2); line-height: 28px; }
.fnf-textarea-tall { min-height: 180px; }
.fnf-public-main--tall { min-height: 70vh; }
.fnf-offer-grid--flush { margin: 0; }
.fnf-total-row td {
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
/* :not(--compact) throughout: the compact grid is auto-fit, so it already
   reflows on its own and a fixed column count here would override it. */
@media (max-width: 1400px) {
	.fnf-stat-grid:not(.fnf-stat-grid--compact) {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 1200px) {
	.fnf-chart-grid {
		grid-template-columns: 1fr 1fr;
	}
	.fnf-chart-grid > :first-child {
		grid-column: 1 / -1;
	}
}

@media (max-width: 1024px) {
	.fnf-shell {
		grid-template-columns: 1fr;
	}
	.fnf-sidebar {
		transform: translateX(-100%);
		box-shadow: var(--fnf-shadow-lg);
		border-right: none;
	}
	.fnf-shell.is-sidebar-open .fnf-sidebar {
		transform: translateX(0);
	}
	.fnf-shell.is-sidebar-open .fnf-overlay {
		opacity: 1;
		visibility: visible;
	}
	.fnf-main {
		grid-column: 1;
	}
	.fnf-hamburger {
		display: grid;
		place-items: center;
	}
}

@media (max-width: 782px) {
	/* WP admin bar height changes below 782px. */
	body.fnf-app.admin-bar .fnf-sidebar,
	body.fnf-app.admin-bar .fnf-topbar {
		top: 46px;
	}
}
@media (min-width: 783px) {
	body.fnf-app.admin-bar .fnf-sidebar,
	body.fnf-app.admin-bar .fnf-topbar {
		top: 32px;
	}
	body.fnf-app.admin-bar .fnf-sidebar {
		height: calc(100vh - 32px);
	}
}

@media (max-width: 640px) {
	.fnf-content {
		padding: var(--fnf-sp-4);
	}
	/* Desktop gutters were being carried onto phones unchanged: at 360px the
	   signup card alone spent 48px a side on padding. Everything that owns a
	   content edge drops one step on the ramp. */
	.fnf-card,
	.fnf-hero-card,
	.fnf-diet-card,
	.fnf-offer-card {
		padding: var(--fnf-sp-4);
	}
	.fnf-card--pad0 > .fnf-card-head,
	.fnf-card--pad0 > .fnf-card-sub,
	.fnf-card--pad0 .fnf-count,
	.fnf-card-pad-x,
	.fnf-list li,
	.fnf-empty {
		padding-inline: var(--fnf-sp-4);
	}
	.fnf-card-pad-x {
		padding-bottom: var(--fnf-sp-4);
	}
	
	.fnf-table th,
	.fnf-table td {
		padding: var(--fnf-sp-2) var(--fnf-sp-3);
	}
	
	.fnf-table th:first-child,
	.fnf-table td:first-child {
		padding-left: var(--fnf-sp-4);
	}
	.fnf-table th:last-child,
	.fnf-table td:last-child {
		padding-right: var(--fnf-sp-4);
	}
	.fnf-auth-card {
		padding: var(--fnf-sp-5);
	}
	.fnf-gate {
		padding: var(--fnf-sp-7) var(--fnf-sp-5);
		margin-block: var(--fnf-sp-6);
	}
	.fnf-checkin-card {
		padding: var(--fnf-sp-6) var(--fnf-sp-5);
	}
	.fnf-public-main {
		padding: var(--fnf-sp-6) var(--fnf-sp-4);
	}
	.fnf-stat-grid:not(.fnf-stat-grid--compact) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.fnf-split,
	.fnf-grid-2,
	.fnf-chart-grid {
		grid-template-columns: 1fr;
	}
	.fnf-chart-grid > :first-child {
		grid-column: auto;
	}
	.fnf-promo-head {
		flex-direction: column;
		align-items: stretch;
	}
	.fnf-topbar-inner {
		padding-inline: var(--fnf-sp-4);
		gap: var(--fnf-sp-2);
	}
	.fnf-topbar-search {
		max-width: none;
		min-height: 44px;
	}
	.fnf-avatar-meta,
	.fnf-avatar-caret {
		display: none;
	}
	/* Filter bars stack full-width on phones — side-by-side controls otherwise
	   shrink below a usable tap target. */
	.fnf-form--inline,
	.fnf-filters {
		width: 100%;
	}
	.fnf-filters label,
	.fnf-form--inline label {
		width: 100%;
	}
	:is(.fnf-form--inline, .fnf-filters, .fnf-bulk) :is(
			input[type="text"],
			input[type="number"],
			input[type="date"],
			input[type="search"],
			select) {
		width: 100%;
		max-width: none;
	}
	:is(.fnf-form--inline, .fnf-filters, .fnf-bulk) .fnf-btn {
		width: 100%;
	}
	.fnf-dropdown {
		position: fixed;
		right: var(--fnf-sp-4);
		top: calc(var(--fnf-topbar-h) + 8px);
		min-width: 0;
		max-width: 40%;
	}
	span.fnf-product-fact {
		flex-direction: column;
		text-align: center;
	}
	

	body.fnf-app.admin-bar .fnf-dropdown {
		top: calc(var(--fnf-topbar-h) + 46px + 8px);
	}
	.fnf-btn,
	.fnf-icon-btn,
	.fnf-icon-action {
		min-height: 44px;
	}

	:is(.fnf-form, .fnf-form--inline, .fnf-filters, .fnf-bulk) :is(
			input[type="text"],
			input[type="email"],
			input[type="tel"],
			input[type="password"],
			input[type="number"],
			input[type="date"],
			input[type="search"],
			select,
			textarea) {
		min-height: 44px;
	}

	.fnf-qty button {
		width: 44px;
		height: 44px;
	}
	.fnf-qty input[type="number"] {
		height: 44px;
	}

	.fnf-product-fav {
		width: 44px;
		height: 44px;
	}
	.fnf-icon-btn {
		width: 44px;
		height: 44px;
	}
	.fnf-icon-action {
		width: 44px;
		height: 44px;
	}
	.fnf-carousel--showcase .fnf-carousel-arrow {
		top: 25%;
	}
	.fnf-product-top {
		display: flex;
		flex-direction: column;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.fnf-app *,
	body.fnf-app *::before,
	body.fnf-app *::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}

/* ==========================================================================
   Print (QR poster only)
   ========================================================================== */
@media print {
	body.fnf-app * {
		visibility: hidden;
	}
	#fnf-qr-print,
	#fnf-qr-print * {
		visibility: visible;
	}
	#fnf-qr-print {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
	}
	.no-print,
	.fnf-sidebar,
	.fnf-topbar,
	.fnf-notice {
		display: none !important;
	}
	.fnf-qr-poster {
		max-width: 160mm;
	}
	.fnf-qr-poster-bg {
		border-radius: 0;
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}
}
