/*!
 * Apex Account — account.css
 * Dashboard + access (login) shell for /account/*. Loaded only on the account page.
 * Flat stylesheet written from UI-CONTRACT.md §1–§6, §12–§13 and the creator
 * design digest "effective" recipes. Class prefix .apxa-, tokens --apxa-,
 * keyframes apxa-*. Never emits .apx-*.
 *
 * Cascade order: tokens → scoped resets → shell → grid/nav → panel head/hero →
 * shared components → tab bodies → access shell/OTP → states/motion/focus →
 * breakpoints (1160, 1024, 980, 820, 720, 520, 480, 380) → reduced motion.
 */

/* ------------------------------------------------------------------ */
/* 1. Tokens                                                            */
/* ------------------------------------------------------------------ */

#apex-account.apxa-shell {
	--apxa-ink: #f8fbff;
	--apxa-muted: #bdcbe0;
	--apxa-dim: #8393a8;
	--apxa-line: rgba(137, 178, 255, 0.22);
	--apxa-line-strong: rgba(152, 198, 255, 0.38);
	--apxa-cyan: #6bb7ff;
	--apxa-teal: #0a4ed7;
	--apxa-blue: #006cff;
	--apxa-blue-text: #0051c2;
	--apxa-blue-link: #0751b2;
	--apxa-gold: #d8b86a;
	--apxa-gold-ink: #7f5b0b;
	--apxa-red: #ef4444;
	--apxa-green: #22c55e;
	--apxa-white: #ffffff;
	--apxa-ground: #030914;
	--apxa-hero-ground: #071018;
	--apxa-radius: 8px;
	--apxa-shadow: 0 28px 88px rgba(0, 0, 0, 0.36);
	--apxa-inner-glow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
	--apxa-cmd-ink: #061827;
	--apxa-cmd-copy: #14344b;
	--apxa-cmd-line: rgba(54, 89, 118, 0.34);
	--apxa-cmd-card-shadow: 0 24px 70px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.62);
	--apxa-cmd-overlay-soft: linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.68));
	--apxa-cmd-overlay-panel: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.72));
	--apxa-surface: rgba(249, 252, 255, 0.82);
	--apxa-surface-strong: rgba(252, 254, 255, 0.92);
	--apxa-rule: rgba(54, 89, 118, 0.22);
	--apxa-card-shadow: 0 14px 40px rgba(3, 15, 28, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.72);
	--apxa-input-bg: linear-gradient(180deg, rgba(10, 25, 40, 0.96), rgba(5, 17, 30, 0.92));
	--apxa-input-bg-focus: linear-gradient(180deg, rgba(3, 14, 26, 0.92), rgba(8, 24, 40, 0.84));
	--apxa-input-border: rgba(18, 48, 72, 0.42);
	--apxa-autofill: #0b1b2b;
	--apxa-code-bg: linear-gradient(180deg, #0b2135, #061522);
	--apxa-ok-ink: #14532d;
	--apxa-ok-bg: rgba(240, 253, 244, 0.94);
	--apxa-ok-line: rgba(21, 128, 61, 0.24);
	--apxa-ok-bar: #15803d;
	--apxa-warn-ink: #713f12;
	--apxa-warn-bg: rgba(255, 251, 235, 0.94);
	--apxa-warn-line: rgba(161, 98, 7, 0.25);
	--apxa-warn-bar: #a16207;
	--apxa-err-ink: #7f1d1d;
	--apxa-err-bg: rgba(255, 241, 242, 0.94);
	--apxa-err-line: rgba(190, 18, 60, 0.24);
	--apxa-err-bar: #be123c;
	--apxa-info-ink: #12344d;
	--apxa-info-bg: rgba(245, 250, 255, 0.92);
	--apxa-info-line: rgba(31, 111, 229, 0.22);
	--apxa-info-bar: #006cff;
	--apxa-focus-dark: #5b9dff;
	--apxa-focus-light: #0051c2;
	/* Shell geometry: the negative top offset cancels Astra .main-header-bar{margin-bottom:24px}. */
	--apxa-shell-offset: -24px;
	--apxa-shell-fade: 80px;
	--apxa-container: min(1260px, calc(100vw - 36px));
	--apxa-mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* 1.2 Tier colour roles (amendments §18): text = AA on light cards, fill = pill tint, dot = header dot / gems on dark / ladder bars. */
#apex-account.apxa-shell {
	--apxa-tier-bronze-text: #7a4c06;
	--apxa-tier-bronze-fill: rgba(185, 120, 18, 0.14);
	--apxa-tier-bronze-dot: #d9a33f;
	--apxa-tier-silver-text: #4f5b6b;
	--apxa-tier-silver-fill: rgba(138, 151, 168, 0.18);
	--apxa-tier-silver-dot: #c0c7d1;
	--apxa-tier-gold-text: #7f5b0b;
	--apxa-tier-gold-fill: rgba(216, 184, 106, 0.22);
	--apxa-tier-gold-dot: #d8b86a;
	--apxa-tier-platinum-text: #34526d;
	--apxa-tier-platinum-fill: rgba(91, 125, 153, 0.14);
	--apxa-tier-platinum-dot: #e8f3ff;
	--apxa-tier-diamond-text: #0b56a0;
	--apxa-tier-diamond-fill: rgba(19, 121, 202, 0.12);
	--apxa-tier-diamond-dot: #7fd3ff;
	--apxa-tier-onyx-text: #0b0f14;
	--apxa-tier-onyx-fill: rgba(11, 15, 20, 0.10);
	--apxa-tier-onyx-dot: #0b0f14;
	/* 1.1.1 metallic role: pill / gem surfaces. -metal is the gradient, -metal-ink the AA text colour on it
	   (checked against the darkest stop: bronze 4.9:1, silver 6.5:1, gold 4.7:1, platinum 7.9:1, diamond 5.9:1, onyx 4.6:1). */
	--apxa-tier-bronze-metal: linear-gradient(135deg, #f7e2b8 0%, #dcaa4b 48%, #c48a2b 100%);
	--apxa-tier-bronze-metal-ink: #3d2404;
	--apxa-tier-silver-metal: linear-gradient(135deg, #ffffff 0%, #dde3ea 48%, #aeb8c6 100%);
	--apxa-tier-silver-metal-ink: #26313f;
	--apxa-tier-gold-metal: linear-gradient(135deg, #fff4cf 0%, #e6c66f 48%, #c39a33 100%);
	--apxa-tier-gold-metal-ink: #4a3305;
	--apxa-tier-platinum-metal: linear-gradient(135deg, #ffffff 0%, #e6f1fb 48%, #bfd3e6 100%);
	--apxa-tier-platinum-metal-ink: #1f3549;
	--apxa-tier-diamond-metal: linear-gradient(135deg, #f4fbff 0%, #b3e5ff 48%, #6cc3f4 100%);
	--apxa-tier-diamond-metal-ink: #053a66;
	--apxa-tier-onyx-metal: linear-gradient(135deg, #6a7480 0%, #232a33 46%, #07090d 100%);
	--apxa-tier-onyx-metal-ink: #f8fbff;
	/* Generic aliases default to bronze so an unclassed consumer never renders transparent. */
	--apxa-tier-text: var(--apxa-tier-bronze-text);
	--apxa-tier-fill: var(--apxa-tier-bronze-fill);
	--apxa-tier-dot: var(--apxa-tier-bronze-dot);
	--apxa-tier-metal: var(--apxa-tier-bronze-metal);
	--apxa-tier-metal-ink: var(--apxa-tier-bronze-metal-ink);
}

/* Six alias blocks: every tier-coloured element carries .apxa-tier--{slug}; component rules read only the generic aliases. */
#apex-account.apxa-shell.apxa-tier--bronze,
#apex-account.apxa-shell .apxa-tier--bronze {
	--apxa-tier-text: var(--apxa-tier-bronze-text);
	--apxa-tier-fill: var(--apxa-tier-bronze-fill);
	--apxa-tier-dot: var(--apxa-tier-bronze-dot);
	--apxa-tier-metal: var(--apxa-tier-bronze-metal);
	--apxa-tier-metal-ink: var(--apxa-tier-bronze-metal-ink);
}

#apex-account.apxa-shell.apxa-tier--silver,
#apex-account.apxa-shell .apxa-tier--silver {
	--apxa-tier-text: var(--apxa-tier-silver-text);
	--apxa-tier-fill: var(--apxa-tier-silver-fill);
	--apxa-tier-dot: var(--apxa-tier-silver-dot);
	--apxa-tier-metal: var(--apxa-tier-silver-metal);
	--apxa-tier-metal-ink: var(--apxa-tier-silver-metal-ink);
}

#apex-account.apxa-shell.apxa-tier--gold,
#apex-account.apxa-shell .apxa-tier--gold {
	--apxa-tier-text: var(--apxa-tier-gold-text);
	--apxa-tier-fill: var(--apxa-tier-gold-fill);
	--apxa-tier-dot: var(--apxa-tier-gold-dot);
	--apxa-tier-metal: var(--apxa-tier-gold-metal);
	--apxa-tier-metal-ink: var(--apxa-tier-gold-metal-ink);
}

#apex-account.apxa-shell.apxa-tier--platinum,
#apex-account.apxa-shell .apxa-tier--platinum {
	--apxa-tier-text: var(--apxa-tier-platinum-text);
	--apxa-tier-fill: var(--apxa-tier-platinum-fill);
	--apxa-tier-dot: var(--apxa-tier-platinum-dot);
	--apxa-tier-metal: var(--apxa-tier-platinum-metal);
	--apxa-tier-metal-ink: var(--apxa-tier-platinum-metal-ink);
}

#apex-account.apxa-shell.apxa-tier--diamond,
#apex-account.apxa-shell .apxa-tier--diamond {
	--apxa-tier-text: var(--apxa-tier-diamond-text);
	--apxa-tier-fill: var(--apxa-tier-diamond-fill);
	--apxa-tier-dot: var(--apxa-tier-diamond-dot);
	--apxa-tier-metal: var(--apxa-tier-diamond-metal);
	--apxa-tier-metal-ink: var(--apxa-tier-diamond-metal-ink);
}

#apex-account.apxa-shell.apxa-tier--onyx,
#apex-account.apxa-shell .apxa-tier--onyx {
	--apxa-tier-text: var(--apxa-tier-onyx-text);
	--apxa-tier-fill: var(--apxa-tier-onyx-fill);
	--apxa-tier-dot: var(--apxa-tier-onyx-dot);
	--apxa-tier-metal: var(--apxa-tier-onyx-metal);
	--apxa-tier-metal-ink: var(--apxa-tier-onyx-metal-ink);
}

/* Onyx gems/dots always carry the 1px white ring + soft glow (§1.2). */
#apex-account.apxa-shell .apxa-tier--onyx .apxa-gem,
#apex-account.apxa-shell .apxa-tier--onyx.apxa-gem {
	border-radius: 50%;
	box-shadow: 0 0 0 1px #f8fbff, 0 0 12px rgba(248, 251, 255, 0.35);
}

/* 1.3 Artwork tokens: remote media-library URLs (absolute so the local stack renders them too). */
#apex-account.apxa-shell {
	--apxa-img-command-hero: url("https://apexlab.org/wp-content/uploads/2026/06/Creator-Command-Center-Hero.jpg");
	--apxa-img-command-hero-m: url("https://apexlab.org/wp-content/uploads/2026/06/Creator-Command-Center-Hero-1024x576.jpg");
	--apxa-img-mountain-window: url("https://apexlab.org/wp-content/uploads/2026/06/Mountain-Window-Creator-Scene-More-Abstract.jpg");
	--apxa-img-mountain-window-m: url("https://apexlab.org/wp-content/uploads/2026/06/Mountain-Window-Creator-Scene-More-Abstract-768x432.jpg");
	--apxa-img-login-panel: url("https://apexlab.org/wp-content/uploads/2026/06/Login-Panel-Background.jpg");
	--apxa-img-login-panel-m: url("https://apexlab.org/wp-content/uploads/2026/06/Login-Panel-Background-768x432.jpg");
	--apxa-img-secure-access: url("https://apexlab.org/wp-content/uploads/2026/06/Secure-Access-Compliance-Card.jpg");
	--apxa-img-secure-access-m: url("https://apexlab.org/wp-content/uploads/2026/06/Secure-Access-Compliance-Card-768x432.jpg");
	--apxa-img-earnings: url("https://apexlab.org/wp-content/uploads/2026/06/Earnings-Analytics-Surface.jpg");
	--apxa-img-earnings-m: url("https://apexlab.org/wp-content/uploads/2026/06/Earnings-Analytics-Surface-768x432.jpg");
	--apxa-img-tier-ladder: url("https://apexlab.org/wp-content/uploads/2026/06/Tier-Progress-Ladder.jpg");
	--apxa-img-tier-ladder-m: url("https://apexlab.org/wp-content/uploads/2026/06/Tier-Progress-Ladder-768x432.jpg");
	--apxa-img-creator-codes: url("https://apexlab.org/wp-content/uploads/2026/06/Creator-Codes-Card.jpg");
	--apxa-img-creator-codes-m: url("https://apexlab.org/wp-content/uploads/2026/06/Creator-Codes-Card-768x432.jpg");
	--apxa-img-commission-growth: url("https://apexlab.org/wp-content/uploads/2026/06/Commission-Growth-Panel.jpg");
	--apxa-img-commission-growth-m: url("https://apexlab.org/wp-content/uploads/2026/06/Commission-Growth-Panel-768x432.jpg");
	--apxa-img-activity-table: url("https://apexlab.org/wp-content/uploads/2026/06/Activity-Orders-Table.jpg");
	--apxa-img-activity-table-m: url("https://apexlab.org/wp-content/uploads/2026/06/Activity-Orders-Table-768x432.jpg");
	--apxa-img-empty-state: url("https://apexlab.org/wp-content/uploads/2026/06/Dashboard-Empty-State.jpg");
	--apxa-img-empty-state-m: url("https://apexlab.org/wp-content/uploads/2026/06/Dashboard-Empty-State-768x432.jpg");
	--apxa-img-payout-module: url("https://apexlab.org/wp-content/uploads/2026/06/Payout-Requests-Module.jpg");
	--apxa-img-payout-module-m: url("https://apexlab.org/wp-content/uploads/2026/06/Payout-Requests-Module-768x432.jpg");
	--apxa-img-elite-review: url("https://apexlab.org/wp-content/uploads/2026/06/Elite-Review-50-Percent-Card.jpg");
	--apxa-img-elite-review-m: url("https://apexlab.org/wp-content/uploads/2026/06/Elite-Review-50-Percent-Card-768x432.jpg");
	--apxa-img-mobile-card: url("https://apexlab.org/wp-content/uploads/2026/06/Mobile-Dashboard-Card-Background.jpg");
	--apxa-img-mobile-card-m: url("https://apexlab.org/wp-content/uploads/2026/06/Mobile-Dashboard-Card-Background-768x1067.jpg");
	--apxa-img-premium-underlay: url("https://apexlab.org/wp-content/uploads/2026/06/Premium-Container-Underlay.jpg");
	--apxa-img-premium-underlay-m: url("https://apexlab.org/wp-content/uploads/2026/06/Premium-Container-Underlay-768x432.jpg");
	--apxa-img-ice: url("https://apexlab.org/wp-content/uploads/2026/01/apex-laboratory-brand-asset-03.jpeg");
	--apxa-img-hex: url("https://apexlab.org/wp-content/uploads/2026/01/apex-laboratory-brand-asset-02.jpeg");
	/* Responsive artwork indirection: consumers read --apxa-art-*; the ≤720/≤1160 queries repoint these to the -m tokens. */
	--apxa-art-hero: var(--apxa-img-command-hero);
	--apxa-art-mountain: var(--apxa-img-mountain-window);
	--apxa-art-login: var(--apxa-img-login-panel);
	--apxa-art-secure: var(--apxa-img-secure-access);
	--apxa-art-earnings: var(--apxa-img-earnings);
	--apxa-art-ladder: var(--apxa-img-tier-ladder);
	--apxa-art-codes: var(--apxa-img-creator-codes);
	--apxa-art-commission: var(--apxa-img-commission-growth);
	--apxa-art-orders: var(--apxa-img-activity-table);
	--apxa-art-empty: var(--apxa-img-empty-state);
	--apxa-art-payout: var(--apxa-img-payout-module);
	--apxa-art-elite: var(--apxa-img-elite-review);
	--apxa-art-mobile: var(--apxa-img-mobile-card);
}

/* ------------------------------------------------------------------ */
/* 2. Scoped resets (digest §8.4 — every override lives under the shell) */
/* ------------------------------------------------------------------ */

#apex-account.apxa-shell,
#apex-account.apxa-shell *,
#apex-account.apxa-shell *::before,
#apex-account.apxa-shell *::after {
	box-sizing: border-box;
}

#apex-account.apxa-shell,
#apex-account.apxa-shell * {
	letter-spacing: 0;
}

#apex-account.apxa-shell h1,
#apex-account.apxa-shell h2,
#apex-account.apxa-shell h3,
#apex-account.apxa-shell h4,
#apex-account.apxa-shell p {
	margin: 0;
	padding: 0;
	color: inherit;
	font-family: inherit;
}

#apex-account.apxa-shell a {
	color: inherit;
}

#apex-account.apxa-shell ul,
#apex-account.apxa-shell ol {
	list-style: none;
	margin: 0;
	padding: 0;
}

#apex-account.apxa-shell li {
	margin: 0;
}

#apex-account.apxa-shell dl,
#apex-account.apxa-shell dt,
#apex-account.apxa-shell dd,
#apex-account.apxa-shell address,
#apex-account.apxa-shell fieldset,
#apex-account.apxa-shell legend,
#apex-account.apxa-shell figure {
	margin: 0;
	padding: 0;
}

#apex-account.apxa-shell fieldset {
	min-width: 0;
	border: 0;
}

#apex-account.apxa-shell summary {
	list-style: none;
}

#apex-account.apxa-shell summary::-webkit-details-marker,
#apex-account.apxa-shell summary::marker {
	display: none;
	content: "";
}

#apex-account.apxa-shell code {
	background: none;
	padding: 0;
	margin: 0;
	border: 0;
	font: inherit;
	color: inherit;
}

#apex-account.apxa-shell img {
	max-width: 100%;
	height: auto;
}

#apex-account.apxa-shell strong {
	font-weight: 800;
}

#apex-account.apxa-shell em {
	font-style: normal;
}

#apex-account.apxa-shell button,
#apex-account.apxa-shell input,
#apex-account.apxa-shell select,
#apex-account.apxa-shell textarea {
	font-family: inherit;
}

#apex-account.apxa-shell input:-webkit-autofill,
#apex-account.apxa-shell input:-webkit-autofill:hover,
#apex-account.apxa-shell input:-webkit-autofill:focus {
	-webkit-text-fill-color: #f8fbff !important;
	caret-color: #f8fbff;
	box-shadow: inset 0 0 0 1000px var(--apxa-autofill), 0 16px 34px rgba(0, 0, 0, 0.1) !important;
	transition: background-color 9999s ease-in-out 0s;
}

#apex-account.apxa-shell select option {
	background: #f8fbff !important;
	color: #102235 !important;
}

#apex-account.apxa-shell select option:checked {
	background: #1f6fe5 !important;
	color: #ffffff !important;
}

/* Visually hidden (announcer, sr captions) — never display:none. */
#apex-account.apxa-shell .apxa-sr,
#apex-account.apxa-shell .screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* Honeypot — off-screen, never display:none (bots skip hidden fields). */
#apex-account.apxa-shell .apxa-hp {
	position: absolute !important;
	left: -10000px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	opacity: 0;
}

#apex-account.apxa-shell [hidden] {
	display: none !important;
}

/* Icon primitive */
#apex-account.apxa-shell .apxa-ico {
	width: 16px;
	height: 16px;
	flex: 0 0 auto;
	display: inline-block;
	vertical-align: middle;
}

#apex-account.apxa-shell .apxa-ico--18 {
	width: 18px;
	height: 18px;
}

#apex-account.apxa-shell .apxa-ico--22 {
	width: 22px;
	height: 22px;
}

#apex-account.apxa-shell .apxa-ico--30 {
	width: 30px;
	height: 30px;
}

#apex-account.apxa-shell .apxa-flip {
	transform: scaleX(-1);
}

/* ------------------------------------------------------------------ */
/* 3. Shell (dark ground, fixed backdrop, full bleed, footer fade)      */
/* ------------------------------------------------------------------ */

/* Both body classes are honoured: UI contract says `apxa-page`, API contract says `apxa-account-page`. */
html:has(body.apxa-page),
html:has(body.apxa-account-page),
body.apxa-page,
body.apxa-account-page {
	overflow-x: clip;
}

body.apxa-page .site-content,
body.apxa-account-page .site-content,
body.apxa-page #content,
body.apxa-account-page #content {
	padding-top: 0;
}

body.apxa-page .site-content > .ast-container,
body.apxa-account-page .site-content > .ast-container {
	overflow: visible;
}

body.apxa-page .site-content .ast-container > p:empty,
body.apxa-account-page .site-content .ast-container > p:empty {
	display: none;
	margin: 0;
}

#apex-account.apxa-shell {
	position: relative;
	isolation: isolate;
	width: 100vw;
	max-width: 100vw;
	margin: var(--apxa-shell-offset) 0 0 calc(50% - 50vw);
	padding: 0 0 var(--apxa-shell-fade);
	overflow-x: clip;
	color: var(--apxa-ink);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	background:
		linear-gradient(180deg, rgba(3, 8, 15, 0.14), rgba(3, 8, 15, 0.92) 58%, #030914 100%),
		var(--apxa-art-hero) center top / cover fixed no-repeat,
		var(--apxa-ground);
	background-clip: content-box;
}

/* 80px fade from the dark ground into whatever the theme paints beneath (footer band). */
#apex-account.apxa-shell::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: var(--apxa-shell-fade);
	pointer-events: none;
	background: linear-gradient(180deg, #030914, rgba(3, 9, 20, 0.62) 46%, rgba(3, 9, 20, 0));
}

#apex-account.apxa-shell .apxa-shell__inner {
	position: relative;
	width: 100%;
	min-height: calc(100vh + 24px);
}

#apex-account.apxa-shell .apxa-shell__inner--access {
	display: grid;
	align-content: center;
	padding: clamp(32px, 5vw, 72px) 0 clamp(48px, 6vw, 84px);
}

/* Page-level notices sit above the grid, aligned with the content column. */
#apex-account.apxa-shell .apxa-notices {
	display: grid;
	gap: 8px;
	width: var(--apxa-container);
	margin: 0 auto;
	padding-top: 20px;
}

#apex-account.apxa-shell .apxa-notices:empty {
	display: none;
}

/* ------------------------------------------------------------------ */
/* 4. Grid + navigation (one markup, two layouts)                       */
/* ------------------------------------------------------------------ */

#apex-account.apxa-shell .apxa-grid {
	display: grid;
	grid-template-columns: 232px minmax(0, 1fr);
	gap: 24px;
	align-items: start;
	width: var(--apxa-container);
	margin: 0 auto;
	padding: 32px 0 72px;
}

#apex-account.apxa-shell .apxa-content {
	position: relative;
	min-width: 0;
}

/* 4.1 Rail (≥1024px): sticky light frosted card */
#apex-account.apxa-shell .apxa-nav {
	position: sticky;
	top: 24px;
	z-index: 20;
	display: flex;
	flex-direction: column;
	gap: 14px;
	width: 232px;
	min-width: 0;
	padding: 16px 12px;
	border: 1px solid var(--apxa-rule);
	border-radius: var(--apxa-radius);
	background: var(--apxa-surface);
	color: var(--apxa-cmd-ink);
	box-shadow: var(--apxa-card-shadow);
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
	animation: apxa-rise 480ms ease both;
}

#apex-account.apxa-shell .apxa-nav__id {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr);
	gap: 10px;
	align-items: center;
	padding: 4px 4px 14px;
	border-bottom: 1px solid var(--apxa-rule);
}

/* Member block: avatar initial ringed in the member's tier metal, masked identifier, metallic tier pill */
#apex-account.apxa-shell .apxa-avatar {
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 2px solid transparent;
	background: linear-gradient(135deg, #0b2135, #0a4ed7) padding-box, var(--apxa-tier-metal) border-box;
	color: #f8fbff;
	font-size: 16px;
	font-weight: 900;
	line-height: 1;
	text-transform: uppercase;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 18px rgba(3, 28, 57, 0.18);
}

#apex-account.apxa-shell .apxa-nav__who {
	display: grid;
	gap: 5px;
	min-width: 0;
}

#apex-account.apxa-shell .apxa-nav__name {
	display: block;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--apxa-cmd-ink);
	font-size: 14px;
	font-weight: 850;
	line-height: 1.2;
}

#apex-account.apxa-shell .apxa-nav__who .apxa-tier-badge {
	justify-self: start;
	min-height: 26px;
	padding: 3px 10px 3px 7px;
	font-size: 12px;
}

#apex-account.apxa-shell .apxa-nav__list {
	display: grid;
	gap: 4px;
}

#apex-account.apxa-shell .apxa-nav__link {
	position: relative;
	display: grid;
	grid-template-columns: 18px minmax(0, 1fr) auto;
	gap: 11px;
	align-items: center;
	min-height: 44px;
	padding: 10px 12px 10px 14px;
	border-radius: 6px;
	color: var(--apxa-cmd-copy);
	font-size: 13.5px;
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none !important;
	transition: background 160ms ease, color 160ms ease;
}

#apex-account.apxa-shell .apxa-nav__link .apxa-ico {
	width: 18px;
	height: 18px;
	color: var(--apxa-blue-text);
}

#apex-account.apxa-shell .apxa-nav__link:hover {
	background: rgba(0, 108, 255, 0.07);
	color: var(--apxa-cmd-ink);
}

/* Active: light frosted pill, ink text, 3px brand bar on the left edge. */
#apex-account.apxa-shell .apxa-nav__link[aria-current="page"] {
	background: var(--apxa-surface-strong);
	color: var(--apxa-cmd-ink);
	box-shadow: inset 3px 0 0 var(--apxa-blue), 0 8px 20px rgba(3, 28, 57, 0.08);
}

#apex-account.apxa-shell .apxa-nav__label {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

#apex-account.apxa-shell .apxa-nav__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	min-height: 20px;
	padding: 2px 7px;
	border-radius: 999px;
	background: rgba(0, 108, 255, 0.1);
	color: var(--apxa-blue-text);
	font-size: 12px;
	font-weight: 850;
	font-variant-numeric: tabular-nums;
	line-height: 1;
}

#apex-account.apxa-shell .apxa-nav__logout {
	margin: 0;
	padding-top: 12px;
	border-top: 1px solid var(--apxa-rule);
}

#apex-account.apxa-shell .apxa-nav__logout .apxa-btn {
	width: 100%;
}


/* ------------------------------------------------------------------ */
/* 5. Panel, panel head, hero, quick actions, progress                  */
/* ------------------------------------------------------------------ */

#apex-account.apxa-shell .apxa-panel {
	display: grid;
	gap: clamp(20px, 2.2vw, 26px);
	min-width: 0;
	animation: apxa-rise 480ms ease both;
}

/* 1.1.1: the head sits on the brightest band of the backdrop photo, so it gets its own frosted dark band —
   kicker + h1 (800, tight tracking) in white on rgba(3,9,20,.55) + blur, spanning the content width. */
#apex-account.apxa-shell .apxa-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-width: 0;
	padding: clamp(18px, 2.2vw, 24px) clamp(20px, 2.4vw, 28px);
	border: 1px solid rgba(151, 196, 255, 0.16);
	border-radius: var(--apxa-radius);
	background: linear-gradient(135deg, rgba(3, 9, 20, 0.62), rgba(3, 9, 20, 0.5));
	color: #f8fbff;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.07);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
}

#apex-account.apxa-shell .apxa-panel__head > * {
	min-width: 0;
}

#apex-account.apxa-shell .apxa-panel__heading {
	display: grid;
	gap: 8px;
}

#apex-account.apxa-shell .apxa-panel__title {
	color: #f8fbff;
	font-size: clamp(24px, 2.4vw, 32px);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.02em;
	text-shadow: 0 2px 6px rgba(3, 9, 20, 0.9), 0 12px 30px rgba(0, 0, 0, 0.5);
	overflow-wrap: anywhere;
	outline: none;
}

#apex-account.apxa-shell .apxa-panel__lede {
	max-width: 620px;
	color: #e7f2ff;
	font-size: 13.5px;
	font-weight: 650;
	line-height: 1.55;
	text-shadow: 0 1px 2px rgba(3, 9, 20, 0.9), 0 8px 22px rgba(0, 0, 0, 0.4);
}

/* Buttons / pills under the panel lede ("New scheduled order", partner status, builder "Back"). */
#apex-account.apxa-shell .apxa-panel__tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 6px;
}

/* Identity duplicate shown only <1024px (pill-nav layout). */
#apex-account.apxa-shell .apxa-panel__id {
	display: none;
	flex: 0 0 auto;
}

#apex-account.apxa-shell .apxa-panel__head .apxa-pill {
	align-self: center;
}

/* 5.1 Overview hero (dark card, command-hero photo) — eager artwork */
/* The hero sizes to its content: no min-height, and the main column never carries a flex-basis (a basis becomes a
   HEIGHT once the hero stacks into a column ≤980px — that was the dead photo area under the progress bar). */
#apex-account.apxa-shell .apxa-hero {
	position: relative;
	isolation: isolate;
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 24px;
	min-height: 0;
	padding: clamp(24px, 3vw, 36px);
	border: 1px solid rgba(151, 196, 255, 0.24);
	border-radius: var(--apxa-radius);
	background:
		linear-gradient(90deg, rgba(3, 8, 15, 0.95), rgba(3, 8, 15, 0.62) 48%, rgba(3, 8, 15, 0.22)),
		var(--apxa-art-hero) center right / cover no-repeat,
		var(--apxa-hero-ground);
	color: #f8fbff;
	box-shadow: 0 32px 110px rgba(0, 0, 0, 0.38);
	overflow: hidden;
}

#apex-account.apxa-shell .apxa-hero__main {
	flex: 1 1 auto;
	min-width: 0;
	max-width: 640px;
	display: grid;
	align-content: start;
	gap: 14px;
}

#apex-account.apxa-shell .apxa-hero__side {
	flex: 0 1 360px;
	min-width: 280px;
}

#apex-account.apxa-shell .apxa-hero__title {
	color: #f8fbff;
	font-size: clamp(30px, 3.2vw, 44px);
	font-weight: 800;
	line-height: 1.02;
	letter-spacing: -0.02em;
	text-shadow: 0 2px 6px rgba(3, 9, 20, 0.8), 0 18px 42px rgba(0, 0, 0, 0.5);
	overflow-wrap: anywhere;
}

#apex-account.apxa-shell .apxa-hero__lede {
	max-width: 560px;
	color: #e7f2ff;
	font-size: 14.5px;
	font-weight: 650;
	line-height: 1.55;
	text-shadow: 0 1px 2px rgba(3, 9, 20, 0.8), 0 12px 30px rgba(0, 0, 0, 0.5);
}

#apex-account.apxa-shell .apxa-hero__stats {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	margin-top: 2px;
}

#apex-account.apxa-shell .apxa-hero__points {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	color: #e7f2ff;
	font-size: 13px;
	font-weight: 700;
	text-shadow: 0 1px 2px rgba(3, 9, 20, 0.8), 0 8px 22px rgba(0, 0, 0, 0.45);
}

#apex-account.apxa-shell .apxa-hero__points strong {
	color: #f8fbff;
	font-size: 22px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	line-height: 1;
}

/* Quick actions */
#apex-account.apxa-shell .apxa-quick {
	display: grid;
	gap: 8px;
	padding: 10px;
	border: 1px solid rgba(151, 196, 255, 0.18);
	border-radius: var(--apxa-radius);
	background: rgba(3, 10, 18, 0.42);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

#apex-account.apxa-shell .apxa-quick__item {
	position: relative;
	display: grid;
	grid-template-columns: 20px minmax(0, 1fr);
	grid-template-rows: auto auto;
	column-gap: 12px;
	row-gap: 2px;
	align-items: center;
	width: 100%;
	min-height: 54px;
	margin: 0;
	padding: 10px 34px 10px 12px;
	border: 1px solid rgba(248, 251, 255, 0.14);
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.07);
	color: #f8fbff;
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 750;
	line-height: 1.3;
	text-align: left;
	text-decoration: none !important;
	text-transform: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
	transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

/* Trailing chevron: the whole row is the tap target */
#apex-account.apxa-shell .apxa-quick__item::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 16px;
	width: 7px;
	height: 7px;
	margin-top: -4px;
	border-top: 2px solid rgba(188, 220, 255, 0.7);
	border-right: 2px solid rgba(188, 220, 255, 0.7);
	transform: rotate(45deg);
	transition: transform 160ms ease, border-color 160ms ease;
}

#apex-account.apxa-shell .apxa-quick__item.is-disabled::after {
	display: none;
}

#apex-account.apxa-shell .apxa-quick__item .apxa-ico {
	grid-row: 1 / span 2;
	width: 18px;
	height: 18px;
	color: var(--apxa-cyan);
}

#apex-account.apxa-shell .apxa-quick__item > span {
	min-width: 0;
	overflow-wrap: anywhere;
}

#apex-account.apxa-shell .apxa-quick__item > em {
	min-width: 0;
	color: #cddced;
	font-size: 12.5px;
	font-weight: 650;
	font-style: normal;
	overflow-wrap: anywhere;
}

#apex-account.apxa-shell .apxa-quick__item:hover {
	background: rgba(107, 183, 255, 0.14);
	border-color: rgba(151, 196, 255, 0.34);
	color: #f8fbff;
}

#apex-account.apxa-shell .apxa-quick__item:hover::after {
	border-color: #ffffff;
	transform: translateX(2px) rotate(45deg);
}

/* No-JS reorder: the Overview quick action is a submit button inside a tiny POST form (NOTES-render §5).
   `display: contents` keeps the button a direct grid item of .apxa-quick. */
#apex-account.apxa-shell .apxa-quick__form {
	display: contents;
}

/* 5.2 Tier track — ONE segment (Overview hero, dark by default; light variant inside cards / the claim card).
   Gradient fill (tier colour → white-blue) with a one-pass shimmer on load, the current-tier gem riding the fill
   head (left: --apxa-progress-pct, set inline by render) and the next-tier gem parked at the end. */
#apex-account.apxa-shell .apxa-progress {
	--apxa-progress-pct: 0%;
	--apxa-gem-size: 28px;
	display: grid;
	gap: 10px;
	width: 100%;
	max-width: 560px;
	min-width: 0;
}

#apex-account.apxa-shell .apxa-progress__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 0 2px;
}

#apex-account.apxa-shell .apxa-progress__from,
#apex-account.apxa-shell .apxa-progress__to {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
	color: #f8fbff;
	font-size: 12px;
	font-weight: 850;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: 0.7px;
	text-shadow: 0 1px 2px rgba(3, 9, 20, 0.8);
}

#apex-account.apxa-shell .apxa-progress__to {
	color: #cddced;
}

#apex-account.apxa-shell .apxa-progress__track {
	position: relative;
	height: 14px;
	margin: 6px 0;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
	overflow: visible;
}

#apex-account.apxa-shell .apxa-progress__fill {
	position: relative;
	display: block;
	height: 100%;
	max-width: 100%;
	min-width: 14px;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--apxa-tier-dot), #9dcbff 62%, #e8f6ff);
	box-shadow: 0 0 16px color-mix(in srgb, var(--apxa-tier-dot) 60%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.55);
	transform-origin: left center;
	animation: apxa-progress-fill 900ms ease both;
	overflow: hidden;
}

#apex-account.apxa-shell .apxa-progress__fill::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.7) 50%, transparent 70%);
	transform: translateX(-130%);
	animation: apxa-shimmer 1400ms ease-out 900ms 1 both;
}

/* Gems: metallic discs with the tier glyph, ringed so they sit cleanly on either ground */
#apex-account.apxa-shell .apxa-progress__gem {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: grid;
	place-items: center;
	width: var(--apxa-gem-size);
	height: var(--apxa-gem-size);
	border: 2px solid rgba(255, 255, 255, 0.9);
	border-radius: 50%;
	background: var(--apxa-tier-metal);
	color: var(--apxa-tier-metal-ink);
	box-shadow: 0 0 0 3px rgba(3, 9, 20, 0.45), 0 0 18px color-mix(in srgb, var(--apxa-tier-dot) 75%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.7);
	pointer-events: none;
	transform: translate(-50%, -50%);
}

#apex-account.apxa-shell .apxa-progress__gem .apxa-gem {
	width: 14px;
	height: 14px;
	color: inherit;
	box-shadow: none;
}

#apex-account.apxa-shell .apxa-progress__gem--now {
	left: clamp(calc(var(--apxa-gem-size) / 2), var(--apxa-progress-pct), calc(100% - var(--apxa-gem-size) / 2));
	animation: apxa-gem-arrive 900ms ease both;
}

#apex-account.apxa-shell .apxa-progress__gem--next {
	left: 100%;
	border-color: rgba(255, 255, 255, 0.55);
	box-shadow: 0 0 0 3px rgba(3, 9, 20, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.5);
	filter: saturate(0.55);
	opacity: 0.85;
}

#apex-account.apxa-shell .apxa-progress--top .apxa-progress__gem--now {
	left: calc(100% - var(--apxa-gem-size) / 2);
}

#apex-account.apxa-shell .apxa-progress__hint {
	color: #f8fbff;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.4;
	font-variant-numeric: tabular-nums;
	text-shadow: 0 1px 2px rgba(3, 9, 20, 0.8);
}

#apex-account.apxa-shell .apxa-progress__sub {
	margin-top: -6px;
	color: #cddced;
	font-size: 13px;
	font-weight: 650;
	line-height: 1.45;
	text-shadow: 0 1px 2px rgba(3, 9, 20, 0.8);
}

/* Light variant (inside light cards / claim card) */
#apex-account.apxa-shell .apxa-card .apxa-progress__track,
#apex-account.apxa-shell .apxa-progress--light .apxa-progress__track {
	border-color: rgba(54, 89, 118, 0.18);
	background: rgba(8, 26, 42, 0.08);
	box-shadow: inset 0 1px 2px rgba(3, 15, 28, 0.12);
}

#apex-account.apxa-shell .apxa-card .apxa-progress__fill,
#apex-account.apxa-shell .apxa-progress--light .apxa-progress__fill {
	background: linear-gradient(90deg, var(--apxa-tier-dot), #6bb7ff 58%, var(--apxa-blue));
	box-shadow: 0 0 14px rgba(0, 108, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

#apex-account.apxa-shell .apxa-card .apxa-progress__gem,
#apex-account.apxa-shell .apxa-progress--light .apxa-progress__gem {
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 6px 16px rgba(3, 15, 28, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

#apex-account.apxa-shell .apxa-card .apxa-progress__hint,
#apex-account.apxa-shell .apxa-progress--light .apxa-progress__hint,
#apex-account.apxa-shell .apxa-card .apxa-progress__sub,
#apex-account.apxa-shell .apxa-progress--light .apxa-progress__sub {
	color: var(--apxa-cmd-copy);
	text-shadow: none;
}

#apex-account.apxa-shell .apxa-card .apxa-progress__hint,
#apex-account.apxa-shell .apxa-progress--light .apxa-progress__hint {
	color: var(--apxa-cmd-ink);
}

#apex-account.apxa-shell .apxa-card .apxa-progress__from,
#apex-account.apxa-shell .apxa-card .apxa-progress__to,
#apex-account.apxa-shell .apxa-progress--light .apxa-progress__from,
#apex-account.apxa-shell .apxa-progress--light .apxa-progress__to {
	color: var(--apxa-tier-text);
	text-shadow: none;
}

/* ------------------------------------------------------------------ */
/* 6. Cards — light frosted command-center surface + photo underlays    */
/* ------------------------------------------------------------------ */

#apex-account.apxa-shell .apxa-card {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	min-width: 0;
	border: 1px solid var(--apxa-cmd-line);
	border-radius: var(--apxa-radius);
	background: var(--apxa-surface);
	color: var(--apxa-cmd-ink);
	box-shadow: var(--apxa-card-shadow);
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
	padding: clamp(20px, 2.6vw, 28px);
	text-shadow: none;
}

#apex-account.apxa-shell .apxa-card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	border-radius: inherit;
	pointer-events: none;
	background: linear-gradient(135deg, rgba(0, 108, 255, 0.05), transparent 44%);
}

#apex-account.apxa-shell .apxa-card > * {
	position: relative;
	z-index: 1;
}

#apex-account.apxa-shell .apxa-card p,
#apex-account.apxa-shell .apxa-copy {
	color: var(--apxa-cmd-copy);
	font-size: 14px;
	font-weight: 650;
	line-height: 1.55;
}

#apex-account.apxa-shell .apxa-card--tight {
	padding: 16px;
}

#apex-account.apxa-shell .apxa-card--accent-blue {
	box-shadow: inset 4px 0 0 var(--apxa-blue), 0 18px 52px rgba(3, 28, 57, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

#apex-account.apxa-shell .apxa-card--accent-gold {
	box-shadow: inset 4px 0 0 #b97812, 0 18px 52px rgba(3, 28, 57, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

/* Inner sub-surface (flat white tint, no photo, no blur) */
#apex-account.apxa-shell .apxa-card--sub {
	position: relative;
	min-width: 0;
	padding: 16px;
	border: 1px solid rgba(54, 89, 118, 0.16);
	border-radius: var(--apxa-radius);
	background: rgba(255, 255, 255, 0.64);
	color: var(--apxa-cmd-ink);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76), 0 10px 24px rgba(3, 28, 57, 0.08);
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

#apex-account.apxa-shell .apxa-card__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 16px;
	margin-bottom: 16px;
}

#apex-account.apxa-shell .apxa-card__head > * {
	min-width: 0;
}

#apex-account.apxa-shell .apxa-card__heading {
	display: grid;
	gap: 7px;
}

#apex-account.apxa-shell .apxa-card__tools {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
}

#apex-account.apxa-shell .apxa-card__title {
	color: var(--apxa-cmd-ink);
	font-size: clamp(18px, 1.8vw, 22px);
	font-weight: 700;
	line-height: 1.15;
	overflow-wrap: anywhere;
}

#apex-account.apxa-shell .apxa-card__title .apxa-tier-badge {
	vertical-align: middle;
	position: relative;
	top: -2px;
}

#apex-account.apxa-shell .apxa-card__subtitle,
#apex-account.apxa-shell .apxa-order__number {
	color: var(--apxa-cmd-ink);
	font-size: 15px;
	font-weight: 800;
	line-height: 1.25;
}

#apex-account.apxa-shell .apxa-card__subtitle {
	margin-bottom: 10px;
}

#apex-account.apxa-shell .apxa-card__subtitle + .apxa-address + .apxa-card__subtitle,
#apex-account.apxa-shell .apxa-address + .apxa-card__subtitle,
#apex-account.apxa-shell .apxa-dl + .apxa-card__subtitle,
#apex-account.apxa-shell p + .apxa-card__subtitle {
	margin-top: 16px;
}

#apex-account.apxa-shell .apxa-card__lede,
#apex-account.apxa-shell .apxa-card p.apxa-card__lede {
	color: var(--apxa-cmd-copy);
	font-size: 13.5px;
	font-weight: 650;
	line-height: 1.5;
}

#apex-account.apxa-shell .apxa-card__body {
	display: grid;
	gap: 14px;
}

#apex-account.apxa-shell .apxa-card__foot {
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid rgba(54, 89, 118, 0.16);
}

/* Helper / meta copy inside light cards: always the deep copy ink at ≥ 12.5px (never the light greys) */
#apex-account.apxa-shell .apxa-small {
	font-size: 13px;
	font-weight: 650;
	line-height: 1.5;
}

#apex-account.apxa-shell .apxa-micro {
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1.45;
}

#apex-account.apxa-shell .apxa-card .apxa-small,
#apex-account.apxa-shell .apxa-card .apxa-micro {
	color: var(--apxa-cmd-copy);
}

/* 6.1 Photo underlays. Each modifier sets its tint/fallback/art tokens; the shared rule paints
   tint + solid fallback immediately and adds the photo layer only when .apxa-bg-ready is present
   (or on the eager exceptions). ≤720 the --apxa-art-* tokens are repointed to the -m variants. */
/* 1.1.1: every tint is ≥ .92 white where text sits — the photo reads at the edges, never under the copy. */
#apex-account.apxa-shell .apxa-card--photo-orders {
	--apxa-card-tint: linear-gradient(180deg, rgba(253, 254, 255, 0.95), rgba(240, 247, 252, 0.92));
	--apxa-card-art: var(--apxa-art-orders);
	--apxa-card-fallback: #f6faff;
}

#apex-account.apxa-shell .apxa-card--photo-ladder {
	--apxa-card-tint: linear-gradient(108deg, rgba(253, 254, 255, 0.95), rgba(239, 247, 253, 0.92));
	--apxa-card-art: var(--apxa-art-ladder);
	--apxa-card-fallback: #f6faff;
}

#apex-account.apxa-shell .apxa-card--photo-earnings {
	--apxa-card-tint: linear-gradient(180deg, rgba(252, 254, 255, 0.95), rgba(242, 248, 253, 0.92));
	--apxa-card-art: var(--apxa-art-earnings);
	--apxa-card-fallback: #f7fbff;
}

#apex-account.apxa-shell .apxa-card--photo-codes {
	--apxa-card-tint: linear-gradient(112deg, rgba(253, 254, 255, 0.96), rgba(240, 248, 255, 0.92));
	--apxa-card-art: var(--apxa-art-codes);
	--apxa-card-fallback: #f6faff;
	box-shadow: inset 4px 0 0 var(--apxa-blue), 0 18px 52px rgba(3, 28, 57, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

#apex-account.apxa-shell .apxa-card--photo-commission {
	--apxa-card-tint: linear-gradient(112deg, rgba(255, 254, 250, 0.96), rgba(252, 247, 235, 0.92));
	--apxa-card-art: var(--apxa-art-commission);
	--apxa-card-fallback: #fffaf0;
	box-shadow: inset 4px 0 0 #b97812, 0 18px 52px rgba(3, 28, 57, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

#apex-account.apxa-shell .apxa-card--photo-payout {
	--apxa-card-tint: linear-gradient(105deg, rgba(252, 254, 255, 0.95), rgba(238, 247, 253, 0.92));
	--apxa-card-art: var(--apxa-art-payout);
	--apxa-card-fallback: #f5faff;
}

#apex-account.apxa-shell .apxa-card--photo-secure {
	--apxa-card-tint: linear-gradient(180deg, rgba(253, 254, 255, 0.95), rgba(243, 248, 252, 0.93));
	--apxa-card-art: var(--apxa-art-secure);
	--apxa-card-fallback: #f8fbfe;
}

#apex-account.apxa-shell .apxa-card--photo-empty {
	--apxa-card-tint: linear-gradient(180deg, rgba(253, 254, 255, 0.94), rgba(241, 248, 253, 0.92));
	--apxa-card-art: var(--apxa-art-empty);
	--apxa-card-fallback: #f6faff;
}

#apex-account.apxa-shell .apxa-card--photo-elite {
	--apxa-card-tint: linear-gradient(105deg, rgba(254, 254, 252, 0.95), rgba(248, 243, 231, 0.92));
	--apxa-card-art: var(--apxa-art-elite);
	--apxa-card-fallback: #fbf8f1;
}

#apex-account.apxa-shell .apxa-card--photo-mobile {
	--apxa-card-tint: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.86));
	--apxa-card-art: var(--apxa-art-mobile);
	--apxa-card-fallback: #eef4fa;
}

#apex-account.apxa-shell .apxa-card--photo-orders,
#apex-account.apxa-shell .apxa-card--photo-ladder,
#apex-account.apxa-shell .apxa-card--photo-earnings,
#apex-account.apxa-shell .apxa-card--photo-codes,
#apex-account.apxa-shell .apxa-card--photo-commission,
#apex-account.apxa-shell .apxa-card--photo-payout,
#apex-account.apxa-shell .apxa-card--photo-secure,
#apex-account.apxa-shell .apxa-card--photo-empty,
#apex-account.apxa-shell .apxa-card--photo-elite,
#apex-account.apxa-shell .apxa-card--photo-mobile {
	background-color: var(--apxa-card-fallback);
	background-image: var(--apxa-card-tint);
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}

/* Photo layer: lazily via .apxa-bg-ready; eagerly for the first card in a panel and the access-point cards. */
#apex-account.apxa-shell .apxa-card--photo-orders.apxa-bg-ready,
#apex-account.apxa-shell .apxa-card--photo-ladder.apxa-bg-ready,
#apex-account.apxa-shell .apxa-card--photo-earnings.apxa-bg-ready,
#apex-account.apxa-shell .apxa-card--photo-codes.apxa-bg-ready,
#apex-account.apxa-shell .apxa-card--photo-commission.apxa-bg-ready,
#apex-account.apxa-shell .apxa-card--photo-payout.apxa-bg-ready,
#apex-account.apxa-shell .apxa-card--photo-secure.apxa-bg-ready,
#apex-account.apxa-shell .apxa-card--photo-empty.apxa-bg-ready,
#apex-account.apxa-shell .apxa-card--photo-elite.apxa-bg-ready,
#apex-account.apxa-shell .apxa-card--photo-mobile.apxa-bg-ready,
#apex-account.apxa-shell .apxa-panel > .apxa-card--photo-orders:first-of-type,
#apex-account.apxa-shell .apxa-panel > .apxa-card--photo-ladder:first-of-type,
#apex-account.apxa-shell .apxa-panel > .apxa-card--photo-earnings:first-of-type,
#apex-account.apxa-shell .apxa-panel > .apxa-card--photo-codes:first-of-type,
#apex-account.apxa-shell .apxa-panel > .apxa-card--photo-commission:first-of-type,
#apex-account.apxa-shell .apxa-panel > .apxa-card--photo-payout:first-of-type,
#apex-account.apxa-shell .apxa-panel > .apxa-card--photo-secure:first-of-type,
#apex-account.apxa-shell .apxa-panel > .apxa-card--photo-empty:first-of-type,
#apex-account.apxa-shell .apxa-panel > .apxa-card--photo-elite:first-of-type,
#apex-account.apxa-shell .apxa-access .apxa-card--photo-mobile {
	background-image: var(--apxa-card-tint), var(--apxa-card-art);
}

/* Card grids */
#apex-account.apxa-shell .apxa-cards {
	display: grid;
	gap: clamp(14px, 1.8vw, 20px);
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	align-items: start;
	min-width: 0;
}

#apex-account.apxa-shell .apxa-cards--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

#apex-account.apxa-shell .apxa-cards--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

#apex-account.apxa-shell .apxa-cards > * {
	min-width: 0;
}

/* ------------------------------------------------------------------ */
/* 7. Kicker, pills, tier badge                                          */
/* ------------------------------------------------------------------ */

#apex-account.apxa-shell .apxa-kicker {
	display: inline-flex;
	align-items: center;
	min-height: 20px;
	color: var(--apxa-blue-text);
	font-size: 11.5px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 0.9px;
	text-transform: uppercase;
}

#apex-account.apxa-shell .apxa-kicker::before {
	content: "";
	flex: 0 0 auto;
	width: 24px;
	height: 1px;
	margin-right: 8px;
	background: linear-gradient(90deg, var(--apxa-cyan), var(--apxa-gold));
}

#apex-account.apxa-shell .apxa-kicker--dark {
	color: var(--apxa-cyan);
	text-shadow: 0 1px 2px rgba(3, 9, 20, 0.9), 0 6px 18px rgba(0, 0, 0, 0.55);
}

#apex-account.apxa-shell .apxa-kicker--gold {
	color: var(--apxa-gold-ink);
}

#apex-account.apxa-shell .apxa-pill {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	min-height: 26px;
	padding: 4px 10px;
	border: 1px solid rgba(54, 89, 118, 0.18);
	border-radius: 999px;
	background: rgba(8, 26, 42, 0.1);
	color: #14344b;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	white-space: nowrap;
}

#apex-account.apxa-shell .apxa-pill--ok {
	border-color: rgba(21, 128, 61, 0.22);
	background: rgba(220, 252, 231, 0.82);
	color: #14532d;
}

#apex-account.apxa-shell .apxa-pill--warn,
#apex-account.apxa-shell .apxa-pill--review {
	border-color: rgba(161, 98, 7, 0.22);
	background: rgba(254, 243, 199, 0.82);
	color: #78350f;
}

#apex-account.apxa-shell .apxa-pill--review {
	border-style: dotted;
	border-color: rgba(161, 98, 7, 0.55);
}

#apex-account.apxa-shell .apxa-pill--err {
	border-color: rgba(190, 18, 60, 0.22);
	background: rgba(255, 228, 230, 0.82);
	color: #7f1d1d;
}

#apex-account.apxa-shell .apxa-pill--info {
	border-color: rgba(31, 111, 229, 0.24);
	background: rgba(219, 234, 254, 0.85);
	color: #0b3d91;
}

#apex-account.apxa-shell .apxa-pill--muted {
	border-color: rgba(54, 89, 118, 0.16);
	background: rgba(232, 239, 245, 0.8);
	color: #465e70;
}

/* Pills on the dark hero / panel head */
#apex-account.apxa-shell .apxa-hero .apxa-pill,
#apex-account.apxa-shell .apxa-panel__head .apxa-pill {
	border-color: rgba(248, 251, 255, 0.16);
	background: rgba(255, 255, 255, 0.08);
	color: #bdcbe0;
}

#apex-account.apxa-shell .apxa-hero .apxa-pill--ok,
#apex-account.apxa-shell .apxa-panel__head .apxa-pill--ok {
	background: rgba(34, 197, 94, 0.14);
	color: #bbf7d0;
}

#apex-account.apxa-shell .apxa-hero .apxa-pill--warn,
#apex-account.apxa-shell .apxa-panel__head .apxa-pill--warn {
	background: rgba(214, 169, 58, 0.14);
	color: #fde68a;
}

#apex-account.apxa-shell .apxa-hero .apxa-pill--err,
#apex-account.apxa-shell .apxa-panel__head .apxa-pill--err {
	background: rgba(239, 68, 68, 0.14);
	color: #fecaca;
}

#apex-account.apxa-shell .apxa-hero .apxa-pill--muted,
#apex-account.apxa-shell .apxa-panel__head .apxa-pill--muted {
	background: rgba(255, 255, 255, 0.08);
	color: #cddced;
}

/* Tier badge (reads the generic aliases set by .apxa-tier--{slug}) — 1.1.1: metallic pill per tier, AA metal ink */
#apex-account.apxa-shell .apxa-tier-badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 28px;
	padding: 4px 12px 4px 8px;
	border: 1px solid rgba(255, 255, 255, 0.6);
	border-radius: 999px;
	background: var(--apxa-tier-metal);
	color: var(--apxa-tier-metal-ink);
	font-size: 12px;
	font-weight: 850;
	line-height: 1.2;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	white-space: nowrap;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.28);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -1px 0 rgba(0, 0, 0, 0.12), 0 4px 12px rgba(3, 15, 28, 0.14);
}

#apex-account.apxa-shell .apxa-tier-badge.apxa-tier--onyx {
	border-color: rgba(255, 255, 255, 0.28);
	text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 4px 12px rgba(3, 15, 28, 0.3);
}

#apex-account.apxa-shell .apxa-tier-badge .apxa-gem {
	width: 16px;
	height: 16px;
	color: currentColor;
	box-shadow: none;
	filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.35));
}

#apex-account.apxa-shell .apxa-tier-badge.apxa-tier--onyx .apxa-gem {
	filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.45));
}

#apex-account.apxa-shell .apxa-tier-badge--lg {
	min-height: 38px;
	padding: 7px 16px 7px 11px;
	font-size: 13px;
}

#apex-account.apxa-shell .apxa-tier-badge--lg .apxa-gem {
	width: 20px;
	height: 20px;
}

/* On the dark hero / panel head the same metal, lifted by a deeper shadow */
#apex-account.apxa-shell .apxa-tier-badge--on-dark {
	border-color: rgba(255, 255, 255, 0.5);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -1px 0 rgba(0, 0, 0, 0.12), 0 10px 26px rgba(0, 0, 0, 0.4);
}

/* ------------------------------------------------------------------ */
/* 8. Buttons                                                            */
/* ------------------------------------------------------------------ */

#apex-account.apxa-shell .apxa-btn {
	position: relative;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 44px;
	margin: 0;
	padding: 12px 20px;
	border: 1px solid rgba(5, 16, 29, 0.22);
	border-radius: 6px;
	background: rgba(5, 16, 29, 0.88);
	color: #f8fbff !important;
	font-family: inherit;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	text-decoration: none !important;
	text-shadow: none;
	text-align: center;
	white-space: nowrap;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	box-shadow: var(--apxa-inner-glow);
	transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

#apex-account.apxa-shell .apxa-btn > span {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

#apex-account.apxa-shell .apxa-btn::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(120deg, transparent 0 38%, rgba(255, 255, 255, 0.22) 50%, transparent 62%);
	transform: translateX(-140%);
	transition: transform 520ms ease;
}

#apex-account.apxa-shell .apxa-btn:hover::before,
#apex-account.apxa-shell .apxa-btn:focus-visible::before {
	transform: translateX(140%);
}

#apex-account.apxa-shell .apxa-btn:hover {
	transform: translateY(-1px);
}

#apex-account.apxa-shell .apxa-btn .apxa-ico {
	position: relative;
	z-index: 1;
}

#apex-account.apxa-shell .apxa-btn > span {
	position: relative;
	z-index: 1;
}

/* --primary: white → blue gradient, near-black text */
#apex-account.apxa-shell .apxa-btn--primary {
	border-color: rgba(194, 225, 255, 0.7);
	background: linear-gradient(135deg, #f8fbff, #9dcbff 42%, #006cff);
	color: #020916 !important;
	box-shadow: 0 16px 44px rgba(0, 108, 255, 0.24), var(--apxa-inner-glow);
}

#apex-account.apxa-shell .apxa-btn--primary:hover {
	border-color: rgba(216, 237, 255, 0.88);
	background: linear-gradient(135deg, #ffffff, #bdddff 42%, #2382ff);
}

/* --ghost (default = on light cards): near-black */
#apex-account.apxa-shell .apxa-btn--ghost {
	border-color: rgba(5, 16, 29, 0.22);
	background: rgba(5, 16, 29, 0.88);
	color: #f8fbff !important;
}

#apex-account.apxa-shell .apxa-btn--ghost:hover {
	border-color: rgba(13, 92, 255, 0.4);
	background: #0d5cff;
}

/* --ghost.--on-dark: translucent on the hero / access actions */
#apex-account.apxa-shell .apxa-btn--on-dark,
#apex-account.apxa-shell .apxa-btn--ghost.apxa-btn--on-dark {
	border-color: rgba(248, 251, 255, 0.22);
	background: rgba(3, 10, 18, 0.58);
	color: #f8fbff !important;
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

#apex-account.apxa-shell .apxa-btn--on-dark:hover,
#apex-account.apxa-shell .apxa-btn--ghost.apxa-btn--on-dark:hover {
	border-color: rgba(188, 220, 255, 0.42);
	background: rgba(107, 183, 255, 0.16);
}

/* --danger */
#apex-account.apxa-shell .apxa-btn--danger {
	border-color: rgba(190, 18, 60, 0.3);
	background: rgba(255, 241, 242, 0.85);
	color: #7f1d1d !important;
}

#apex-account.apxa-shell .apxa-btn--danger:hover {
	border-color: rgba(190, 18, 60, 0.5);
	background: #be123c;
	color: #ffffff !important;
}

/* --gold (partner commission / payout) */
#apex-account.apxa-shell .apxa-btn--gold {
	border-color: rgba(121, 80, 11, 0.52);
	background: linear-gradient(135deg, #d9a33f, #b97812);
	color: #201504 !important;
	box-shadow: 0 10px 24px rgba(121, 80, 11, 0.18), var(--apxa-inner-glow);
}

#apex-account.apxa-shell .apxa-btn--gold:hover {
	background: linear-gradient(135deg, #e3b04f, #c98418);
}

/* --sm: same 44px tap height everywhere (rows of small + regular buttons stay aligned), just tighter padding */
#apex-account.apxa-shell .apxa-btn--sm {
	min-height: 44px;
	padding: 10px 14px;
	font-size: 12px;
}

#apex-account.apxa-shell .apxa-btn--block {
	width: 100%;
	min-height: 48px;
}

#apex-account.apxa-shell .apxa-btn--icon {
	width: 44px;
	min-width: 44px;
	height: 44px;
	min-height: 44px;
	padding: 0;
}

/* Disabled stays legible: muted saturation instead of a heavy fade */
#apex-account.apxa-shell .apxa-btn:disabled,
#apex-account.apxa-shell .apxa-btn.is-disabled,
#apex-account.apxa-shell .apxa-btn[aria-disabled="true"],
#apex-account.apxa-shell .apxa-quick__item:disabled,
#apex-account.apxa-shell .apxa-quick__item[aria-disabled="true"] {
	opacity: 0.68;
	filter: saturate(0.35);
	cursor: not-allowed;
	transform: none;
	pointer-events: auto;
	box-shadow: none;
}

#apex-account.apxa-shell .apxa-btn:disabled::before,
#apex-account.apxa-shell .apxa-btn.is-disabled::before,
#apex-account.apxa-shell .apxa-btn[aria-disabled="true"]::before {
	display: none;
}

/* Busy: label hidden, centred spinner */
#apex-account.apxa-shell .apxa-btn.is-busy {
	pointer-events: none;
	transform: none;
}

#apex-account.apxa-shell .apxa-btn.is-busy > span,
#apex-account.apxa-shell .apxa-btn.is-busy > .apxa-ico {
	visibility: hidden;
}

#apex-account.apxa-shell .apxa-btn.is-busy::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 16px;
	height: 16px;
	margin: -8px 0 0 -8px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: apxa-spin 700ms linear infinite;
}

/* Text button / link */
#apex-account.apxa-shell .apxa-link-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	margin: 0;
	padding: 9px 12px;
	border: 1px solid rgba(0, 108, 255, 0.27);
	border-radius: 6px;
	background: rgba(0, 108, 255, 0.075);
	color: var(--apxa-blue-link) !important;
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 850;
	line-height: 1.2;
	text-decoration: none !important;
	text-transform: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	box-shadow: none;
	transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

#apex-account.apxa-shell .apxa-link-btn:hover {
	background: rgba(0, 108, 255, 0.13);
	transform: translateY(-1px);
}

#apex-account.apxa-shell .apxa-link-btn--danger {
	border-color: rgba(190, 18, 60, 0.28);
	background: rgba(190, 18, 60, 0.06);
	color: #be123c !important;
}

#apex-account.apxa-shell .apxa-link-btn--danger:hover {
	background: rgba(190, 18, 60, 0.12);
}

#apex-account.apxa-shell .apxa-link-btn[disabled],
#apex-account.apxa-shell .apxa-link-btn[aria-disabled="true"] {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none;
}

/* Link buttons on the dark ground (panel heads) */
#apex-account.apxa-shell .apxa-panel__head .apxa-link-btn,
#apex-account.apxa-shell .apxa-hero .apxa-link-btn {
	border-color: rgba(151, 196, 255, 0.3);
	background: rgba(3, 10, 18, 0.5);
	color: #dbe9ff !important;
}

#apex-account.apxa-shell .apxa-btn-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

#apex-account.apxa-shell .apxa-btn-row--stack {
	flex-direction: column;
	align-items: stretch;
}

#apex-account.apxa-shell .apxa-btn-row--stack > * {
	width: 100%;
}

/* ------------------------------------------------------------------ */
/* 9. Fields (dark navy inputs; !important beats Astra's global form CSS) */
/* ------------------------------------------------------------------ */

#apex-account.apxa-shell .apxa-form {
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

#apex-account.apxa-shell .apxa-inline-form {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0;
}

#apex-account.apxa-shell .apxa-field {
	display: grid;
	gap: 8px;
	min-width: 0;
	margin: 0;
	color: var(--apxa-cmd-ink);
	font-size: 13px;
	font-weight: 700;
}

#apex-account.apxa-shell .apxa-field__label {
	display: block;
	color: var(--apxa-cmd-ink);
	font-size: 13px;
	font-weight: 850;
	line-height: 1.3;
}

#apex-account.apxa-shell .apxa-field__input,
#apex-account.apxa-shell .apxa-field select.apxa-field__input,
#apex-account.apxa-shell .apxa-field textarea.apxa-field__input {
	display: block;
	width: 100% !important;
	min-height: 54px;
	margin: 0 !important;
	padding: 12px 14px !important;
	border: 1px solid var(--apxa-input-border) !important;
	border-radius: 6px !important;
	background: var(--apxa-input-bg) !important;
	color: #f8fbff !important;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

#apex-account.apxa-shell select.apxa-field__input {
	padding-right: 40px !important;
	background-image: linear-gradient(45deg, transparent 50%, #6bb7ff 50%), linear-gradient(135deg, #6bb7ff 50%, transparent 50%), var(--apxa-input-bg) !important;
	background-position: calc(100% - 20px) calc(50% - 1px), calc(100% - 15px) calc(50% - 1px), 0 0 !important;
	background-size: 5px 5px, 5px 5px, 100% 100% !important;
	background-repeat: no-repeat !important;
	cursor: pointer;
}

#apex-account.apxa-shell textarea.apxa-field__input {
	min-height: 120px;
	resize: vertical;
}

#apex-account.apxa-shell .apxa-field__input::placeholder {
	color: rgba(235, 246, 255, 0.62);
	opacity: 1;
}

#apex-account.apxa-shell .apxa-field__input:focus,
#apex-account.apxa-shell .apxa-field__input:focus-visible {
	border-color: var(--apxa-cyan) !important;
	background: var(--apxa-input-bg-focus) !important;
	box-shadow: 0 0 0 3px rgba(107, 183, 255, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
	outline: none !important;
}

#apex-account.apxa-shell select.apxa-field__input:focus {
	background-image: linear-gradient(45deg, transparent 50%, #6bb7ff 50%), linear-gradient(135deg, #6bb7ff 50%, transparent 50%), var(--apxa-input-bg-focus) !important;
}

#apex-account.apxa-shell .apxa-field__input:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

#apex-account.apxa-shell .apxa-field.has-error .apxa-field__input,
#apex-account.apxa-shell .apxa-field__input[aria-invalid="true"] {
	border-color: rgba(239, 68, 68, 0.75) !important;
}

#apex-account.apxa-shell .apxa-field__help {
	display: block;
	color: var(--apxa-cmd-copy);
	font-size: 13px;
	font-style: normal;
	font-weight: 650;
	line-height: 1.5;
}

/* "(optional)" hint inside a field label. */
#apex-account.apxa-shell .apxa-field__help--inline {
	display: inline;
	margin-left: 4px;
	font-weight: 600;
	text-transform: none;
	letter-spacing: 0;
}

#apex-account.apxa-shell .apxa-field__help.is-ok {
	color: #0f7557;
}

/* Live referral-link preview under the partner code field (the echo target header.js/account.js update). */
#apex-account.apxa-shell .apxa-field__help--preview {
	margin-top: 2px;
	font-weight: 600;
	overflow-wrap: anywhere;
}

#apex-account.apxa-shell .apxa-field__help--preview [data-apxa-code-echo] {
	font-family: var(--apxa-mono);
	font-weight: 800;
}

#apex-account.apxa-shell .apxa-field__help.is-taken {
	color: #be123c;
}

#apex-account.apxa-shell .apxa-field__error {
	display: block;
	color: #be123c;
	font-size: 12.5px;
	font-weight: 750;
	line-height: 1.4;
}

#apex-account.apxa-shell .apxa-field__error:empty {
	display: none;
}

#apex-account.apxa-shell .apxa-form__error,
#apex-account.apxa-shell p.apxa-form__error,
#apex-account.apxa-shell .apxa-card p.apxa-form__error {
	min-height: 0;
	margin: 0;
	color: #be123c;
	font-size: 13px;
	font-weight: 750;
	line-height: 1.45;
}

#apex-account.apxa-shell .apxa-form__error:empty {
	display: none;
}

#apex-account.apxa-shell .apxa-field__input--code {
	font-family: var(--apxa-mono);
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

#apex-account.apxa-shell .apxa-field--inline {
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: 10px;
}

#apex-account.apxa-shell .apxa-field--inline .apxa-field__input {
	min-height: 44px;
	padding: 8px 12px !important;
	font-size: 14px;
}

#apex-account.apxa-shell .apxa-field-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 12px;
}

#apex-account.apxa-shell .apxa-fieldset {
	display: grid;
	gap: 12px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

#apex-account.apxa-shell .apxa-fieldset__legend {
	padding: 0;
	margin-bottom: 4px;
	color: var(--apxa-cmd-ink);
	font-size: 13px;
	font-weight: 850;
}

/* Checkbox row */
#apex-account.apxa-shell .apxa-check {
	display: grid;
	grid-template-columns: 20px minmax(0, 1fr);
	gap: 11px;
	align-items: start;
	align-content: center;
	min-height: 44px;
	margin: 0;
	cursor: pointer;
	color: #29465d;
	font-size: 13px;
	font-weight: 650;
	line-height: 1.55;
}

#apex-account.apxa-shell .apxa-check--small {
	align-items: center;
}

#apex-account.apxa-shell .apxa-check input {
	width: 20px;
	height: 20px;
	margin: 1px 0 0;
	accent-color: var(--apxa-blue);
	cursor: pointer;
	flex: 0 0 auto;
}

#apex-account.apxa-shell .apxa-check a {
	color: var(--apxa-blue-text);
	font-weight: 800;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Switch toggle */
#apex-account.apxa-shell .apxa-toggle {
	position: relative;
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	min-height: 44px;
	margin: 0;
	color: var(--apxa-cmd-ink);
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.45;
	cursor: pointer;
}

#apex-account.apxa-shell .apxa-toggle input {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
	z-index: 1;
}

#apex-account.apxa-shell .apxa-toggle__track {
	position: relative;
	display: block;
	width: 44px;
	height: 24px;
	border-radius: 999px;
	border: 1px solid rgba(54, 89, 118, 0.3);
	background: rgba(8, 26, 42, 0.18);
	transition: background 160ms ease, border-color 160ms ease;
}

#apex-account.apxa-shell .apxa-toggle__track::before {
	content: "";
	position: absolute;
	top: 2px;
	left: 2px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #ffffff;
	box-shadow: 0 2px 6px rgba(3, 15, 28, 0.3);
	transition: transform 160ms ease;
}

#apex-account.apxa-shell .apxa-toggle input:checked + .apxa-toggle__track {
	border-color: rgba(0, 108, 255, 0.6);
	background: var(--apxa-blue);
}

#apex-account.apxa-shell .apxa-toggle input:checked + .apxa-toggle__track::before {
	transform: translateX(20px);
}

#apex-account.apxa-shell .apxa-toggle input:focus-visible + .apxa-toggle__track {
	outline: 3px solid var(--apxa-focus-light);
	outline-offset: 2px;
	box-shadow: 0 0 0 5px #fff;
}

#apex-account.apxa-shell .apxa-toggle.is-busy .apxa-toggle__track {
	opacity: 0.6;
}

#apex-account.apxa-shell .apxa-toggle__text {
	min-width: 0;
}

/* Turnstile wrapper — flexible widget needs ≥300px; card padding shrinks at ≤380 so 320 fits. */
#apex-account.apxa-shell .apxa-turnstile {
	display: grid;
	min-width: 0;
	min-height: 0;
}

#apex-account.apxa-shell .apxa-turnstile:empty {
	display: none;
}

#apex-account.apxa-shell .apxa-turnstile .cf-turnstile {
	width: 100%;
	min-width: 0;
}

#apex-account.apxa-shell .apxa-turnstile iframe {
	max-width: 100%;
}

/* ------------------------------------------------------------------ */
/* 10. Alerts (in cards/forms) and notices (page level)                  */
/* ------------------------------------------------------------------ */

#apex-account.apxa-shell .apxa-alert,
#apex-account.apxa-shell .apxa-notice {
	position: relative;
	display: grid;
	grid-template-columns: 18px minmax(0, 1fr);
	gap: 9px;
	align-items: start;
	margin: 0;
	padding: 12px 14px;
	border: 1px solid var(--apxa-info-line);
	border-left-width: 3px;
	border-left-color: var(--apxa-info-bar);
	border-radius: 6px;
	background: var(--apxa-info-bg);
	color: var(--apxa-info-ink);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.5;
	text-shadow: none;
}

#apex-account.apxa-shell .apxa-alert > .apxa-ico,
#apex-account.apxa-shell .apxa-notice > .apxa-ico {
	width: 18px;
	height: 18px;
	margin-top: 1px;
	color: var(--apxa-info-bar);
}

#apex-account.apxa-shell .apxa-alert p,
#apex-account.apxa-shell .apxa-notice p {
	min-width: 0;
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	overflow-wrap: anywhere;
}

#apex-account.apxa-shell .apxa-alert a,
#apex-account.apxa-shell .apxa-notice a {
	color: inherit;
	font-weight: 850;
	text-decoration: underline;
	text-underline-offset: 2px;
}

#apex-account.apxa-shell .apxa-alert--ok,
#apex-account.apxa-shell .apxa-notice--ok {
	border-color: var(--apxa-ok-line);
	border-left-color: var(--apxa-ok-bar);
	background: var(--apxa-ok-bg);
	color: var(--apxa-ok-ink);
}

#apex-account.apxa-shell .apxa-alert--ok > .apxa-ico,
#apex-account.apxa-shell .apxa-notice--ok > .apxa-ico {
	color: var(--apxa-ok-bar);
}

#apex-account.apxa-shell .apxa-alert--warn,
#apex-account.apxa-shell .apxa-notice--warn {
	border-color: var(--apxa-warn-line);
	border-left-color: var(--apxa-warn-bar);
	background: var(--apxa-warn-bg);
	color: var(--apxa-warn-ink);
}

#apex-account.apxa-shell .apxa-alert--warn > .apxa-ico,
#apex-account.apxa-shell .apxa-notice--warn > .apxa-ico {
	color: var(--apxa-warn-bar);
}

#apex-account.apxa-shell .apxa-alert--error,
#apex-account.apxa-shell .apxa-notice--error {
	border-color: var(--apxa-err-line);
	border-left-color: var(--apxa-err-bar);
	background: var(--apxa-err-bg);
	color: var(--apxa-err-ink);
}

#apex-account.apxa-shell .apxa-alert--error > .apxa-ico,
#apex-account.apxa-shell .apxa-notice--error > .apxa-ico {
	color: var(--apxa-err-bar);
}

/* Alerts without a leading icon (login-card state alerts are plain text) */
#apex-account.apxa-shell .apxa-alert:not(:has(> .apxa-ico)) {
	grid-template-columns: minmax(0, 1fr);
}

/* Page-level notice: shadow + close button */
#apex-account.apxa-shell .apxa-notice {
	grid-template-columns: 18px minmax(0, 1fr) 44px;
	align-items: center;
	box-shadow: 0 10px 28px rgba(3, 15, 28, 0.1);
}

#apex-account.apxa-shell .apxa-notice__close {
	display: inline-grid;
	place-items: center;
	align-self: center;
	width: 44px;
	height: 44px;
	margin: -11px -12px -11px 0;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: inherit;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	box-shadow: none;
	transition: background 160ms ease;
}

#apex-account.apxa-shell .apxa-notice__close:hover {
	background: rgba(8, 26, 42, 0.08);
}

#apex-account.apxa-shell .apxa-notice__close .apxa-ico {
	width: 14px;
	height: 14px;
	color: inherit;
}

/* ------------------------------------------------------------------ */
/* 11. Tables (row mode ≥721; card mode ≤720 lives in the breakpoints)  */
/* ------------------------------------------------------------------ */

#apex-account.apxa-shell .apxa-table-wrap {
	min-width: 0;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
}

#apex-account.apxa-shell .apxa-table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: separate;
	border-spacing: 0 8px;
	color: var(--apxa-cmd-ink);
	font-size: 14px;
	font-weight: 650;
	line-height: 1.4;
}

#apex-account.apxa-shell .apxa-table th,
#apex-account.apxa-shell .apxa-table td {
	padding: 12px 10px;
	border: 0;
	text-align: left;
	vertical-align: middle;
	white-space: nowrap;
	background: transparent;
}

#apex-account.apxa-shell .apxa-table th {
	padding-top: 2px;
	padding-bottom: 2px;
	color: var(--apxa-cmd-copy);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.8px;
	text-transform: uppercase;
}

#apex-account.apxa-shell .apxa-table td {
	color: var(--apxa-cmd-ink);
}

#apex-account.apxa-shell .apxa-table tbody tr {
	background: rgba(255, 255, 255, 0.46);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

#apex-account.apxa-shell .apxa-table tbody td:first-child {
	border-radius: 6px 0 0 6px;
}

#apex-account.apxa-shell .apxa-table tbody td:last-child {
	border-radius: 0 6px 6px 0;
}

#apex-account.apxa-shell .apxa-table a {
	display: inline-block;
	min-width: 44px;
	padding: 14px 10px;
	margin: -14px -10px;
	color: var(--apxa-blue-text);
	font-weight: 800;
	text-align: center;
	text-decoration: underline;
	text-underline-offset: 2px;
}

#apex-account.apxa-shell .apxa-table th.apxa-num,
#apex-account.apxa-shell .apxa-table td.apxa-num {
	text-align: right;
}

#apex-account.apxa-shell .apxa-num {
	font-variant-numeric: tabular-nums;
}

#apex-account.apxa-shell .apxa-pts--plus {
	color: #0f7557;
	font-weight: 850;
}

#apex-account.apxa-shell .apxa-pts--minus {
	color: #be123c;
	font-weight: 850;
}

/* ------------------------------------------------------------------ */
/* 12. Copy group + code values                                          */
/* ------------------------------------------------------------------ */

#apex-account.apxa-shell .apxa-copy-group {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 9px;
	align-items: stretch;
	min-width: 0;
}

#apex-account.apxa-shell .apxa-copy-group .apxa-btn {
	min-width: 118px;
}

#apex-account.apxa-shell .apxa-copy-group--link .apxa-btn {
	min-width: 96px;
	padding-inline: 14px;
}

#apex-account.apxa-shell .apxa-code {
	display: block;
	min-width: 0;
	min-height: 48px;
	margin: 0;
	padding: 11px 13px;
	border: 1px solid rgba(151, 196, 255, 0.3);
	border-radius: 6px;
	background: var(--apxa-code-bg);
	color: #ffffff !important;
	text-shadow: 0 1px 10px rgba(0, 108, 255, 0.12);
	font-family: var(--apxa-mono);
	font-size: clamp(20px, 2.2vw, 30px);
	font-weight: 850;
	line-height: 1.05;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	overflow-wrap: anywhere;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

#apex-account.apxa-shell .apxa-code--link {
	min-height: 44px;
	padding: 12px;
	overflow: hidden;
	font-size: 13px;
	line-height: 20px;
	letter-spacing: 0;
	text-transform: none;
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow-wrap: normal;
}

#apex-account.apxa-shell .apxa-code--inline {
	display: inline-block;
	min-height: 0;
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 13px;
	line-height: 1.3;
	letter-spacing: 0.04em;
	vertical-align: baseline;
}

/* ------------------------------------------------------------------ */
/* 13. Details / accordion                                              */
/* ------------------------------------------------------------------ */

#apex-account.apxa-shell .apxa-details-group {
	display: grid;
	gap: 9px;
}

#apex-account.apxa-shell .apxa-details {
	position: relative;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 1px solid var(--apxa-rule);
	border-radius: var(--apxa-radius);
	background: rgba(249, 252, 255, 0.76);
	color: var(--apxa-cmd-ink);
	box-shadow: 0 10px 30px rgba(3, 15, 28, 0.1);
	overflow: hidden;
	scroll-margin-top: 80px;
}

#apex-account.apxa-shell .apxa-details[open] {
	background: var(--apxa-surface-strong);
}

/* details that are also cards: the summary provides the padding */
#apex-account.apxa-shell .apxa-details.apxa-card {
	padding: 0;
}

#apex-account.apxa-shell .apxa-details__summary {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 52px;
	padding: 13px 52px 13px 16px;
	color: var(--apxa-cmd-ink);
	font-size: 14px;
	font-weight: 850;
	line-height: 1.35;
	list-style: none;
	cursor: pointer;
	transition: background 160ms ease;
}

#apex-account.apxa-shell .apxa-details__summary::-webkit-details-marker {
	display: none;
}

/* Chevron in a small blue disc so open/closed reads at a glance */
#apex-account.apxa-shell .apxa-details__summary::before {
	content: "";
	position: absolute;
	top: 50%;
	right: 12px;
	width: 26px;
	height: 26px;
	margin-top: -13px;
	border: 1px solid rgba(0, 108, 255, 0.24);
	border-radius: 50%;
	background: rgba(0, 108, 255, 0.08);
	transition: background 160ms ease;
}

#apex-account.apxa-shell .apxa-details__summary::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 21px;
	width: 8px;
	height: 8px;
	margin-top: -6px;
	border-right: 2.5px solid var(--apxa-blue-text);
	border-bottom: 2.5px solid var(--apxa-blue-text);
	transform: rotate(45deg);
	transition: transform 160ms ease, margin 160ms ease;
}

#apex-account.apxa-shell .apxa-details[open] > .apxa-details__summary::after {
	margin-top: -2px;
	transform: rotate(225deg);
}

#apex-account.apxa-shell .apxa-details[open] > .apxa-details__summary::before,
#apex-account.apxa-shell .apxa-details__summary:hover::before {
	background: rgba(0, 108, 255, 0.14);
}

#apex-account.apxa-shell .apxa-details[open] > .apxa-details__summary {
	border-bottom: 1px solid var(--apxa-rule);
	background: rgba(0, 108, 255, 0.045);
}

#apex-account.apxa-shell .apxa-details__summary:hover {
	background: rgba(0, 108, 255, 0.045);
}

#apex-account.apxa-shell .apxa-details__summary > .apxa-ico {
	width: 18px;
	height: 18px;
	color: var(--apxa-blue-text);
}

#apex-account.apxa-shell .apxa-details__summary > span {
	min-width: 0;
}

#apex-account.apxa-shell .apxa-details__meta {
	flex: 0 1 auto;
	margin-left: auto;
	overflow: hidden;
	color: var(--apxa-cmd-copy);
	font-size: 12.5px;
	font-weight: 700;
	text-align: right;
	text-overflow: ellipsis;
	white-space: nowrap;
}

#apex-account.apxa-shell .apxa-details__body {
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 16px;
}

#apex-account.apxa-shell .apxa-details--danger .apxa-details__summary {
	color: #7f1d1d;
}

#apex-account.apxa-shell .apxa-details--danger .apxa-details__summary > .apxa-ico {
	color: #be123c;
}

/* Trusted prose (partner terms) */
#apex-account.apxa-shell .apxa-terms {
	display: block;
	max-height: 320px;
	overflow: auto;
	color: var(--apxa-cmd-copy);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.6;
}

#apex-account.apxa-shell .apxa-terms p {
	margin: 0 0 10px;
	font-weight: 600;
}

#apex-account.apxa-shell .apxa-terms ul,
#apex-account.apxa-shell .apxa-terms ol {
	margin: 0 0 10px 18px;
	padding: 0;
}

#apex-account.apxa-shell .apxa-terms ul {
	list-style: disc;
}

#apex-account.apxa-shell .apxa-terms ol {
	list-style: decimal;
}

#apex-account.apxa-shell .apxa-terms li {
	margin: 0 0 4px;
}

#apex-account.apxa-shell .apxa-terms h3,
#apex-account.apxa-shell .apxa-terms h4 {
	margin: 12px 0 6px;
	color: var(--apxa-cmd-ink);
	font-size: 14px;
	font-weight: 850;
}

#apex-account.apxa-shell .apxa-terms a {
	color: var(--apxa-blue-text);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* ------------------------------------------------------------------ */
/* 14. Empty state                                                       */
/* ------------------------------------------------------------------ */

#apex-account.apxa-shell .apxa-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	grid-column: 1 / -1;
	min-width: 0;
	padding: 30px 24px;
	color: var(--apxa-cmd-ink);
	text-align: center;
}

/* Empty state without card chrome supplied by render: paint the light surface itself. */
#apex-account.apxa-shell .apxa-empty:not(.apxa-card):not(.apxa-empty--inline) {
	border: 1px solid var(--apxa-cmd-line);
	border-radius: var(--apxa-radius);
	background: var(--apxa-surface);
	box-shadow: var(--apxa-card-shadow);
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
}

#apex-account.apxa-shell .apxa-empty > .apxa-ico {
	width: 30px;
	height: 30px;
	color: var(--apxa-blue);
}

#apex-account.apxa-shell .apxa-empty__title {
	color: var(--apxa-cmd-ink);
	font-size: 17px;
	font-weight: 800;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

#apex-account.apxa-shell .apxa-empty p {
	max-width: 48ch;
	color: var(--apxa-cmd-copy);
	font-size: 14px;
	font-weight: 650;
	line-height: 1.55;
}

#apex-account.apxa-shell .apxa-empty .apxa-btn-row {
	justify-content: center;
	margin-top: 4px;
}

#apex-account.apxa-shell .apxa-empty .apxa-micro {
	color: var(--apxa-cmd-copy);
}

#apex-account.apxa-shell .apxa-empty--inline {
	padding: 18px;
	border: 1px dashed rgba(54, 89, 118, 0.3);
	border-radius: var(--apxa-radius);
	background: rgba(255, 255, 255, 0.4);
	box-shadow: none;
}

#apex-account.apxa-shell .apxa-empty--inline > .apxa-ico {
	width: 22px;
	height: 22px;
}

#apex-account.apxa-shell .apxa-empty--inline .apxa-empty__title {
	font-size: 15px;
}

/* ------------------------------------------------------------------ */
/* 15. Line-item thumbnails, order lines, addresses, definition lists    */
/* ------------------------------------------------------------------ */

#apex-account.apxa-shell .apxa-thumbs {
	display: flex;
	align-items: center;
	min-width: 0;
	margin: 0;
	padding: 0 0 0 2px;
	list-style: none;
}

#apex-account.apxa-shell .apxa-thumb {
	position: relative;
	display: inline-grid;
	place-items: center;
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
	margin: 0;
	border: 1px solid var(--apxa-rule);
	border-radius: 6px;
	background: #ffffff;
	overflow: hidden;
	box-shadow: 0 0 0 2px #ffffff, 0 6px 14px rgba(3, 28, 57, 0.12);
}

#apex-account.apxa-shell .apxa-thumb + .apxa-thumb {
	margin-left: -10px;
}

#apex-account.apxa-shell .apxa-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

#apex-account.apxa-shell .apxa-thumb--more {
	background: rgba(0, 108, 255, 0.1);
	color: var(--apxa-blue-text);
	font-size: 12px;
	font-weight: 850;
}

#apex-account.apxa-shell .apxa-lines {
	display: grid;
	gap: 10px;
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
}

#apex-account.apxa-shell .apxa-line {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr) auto;
	gap: 12px;
	align-items: center;
	min-width: 0;
}

#apex-account.apxa-shell .apxa-line__img {
	width: 56px;
	height: 56px;
	border: 1px solid var(--apxa-rule);
	border-radius: 6px;
	background: #ffffff;
	object-fit: cover;
}

#apex-account.apxa-shell .apxa-line__body {
	display: grid;
	gap: 2px;
	min-width: 0;
}

#apex-account.apxa-shell .apxa-line__name {
	color: var(--apxa-cmd-ink);
	font-size: 14px;
	font-weight: 800;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

#apex-account.apxa-shell .apxa-line__meta {
	color: var(--apxa-cmd-copy);
}

#apex-account.apxa-shell .apxa-line__total {
	color: var(--apxa-cmd-ink);
	font-size: 14px;
	font-weight: 800;
	white-space: nowrap;
}

#apex-account.apxa-shell .apxa-address {
	display: block;
	margin: 0 0 4px;
	color: var(--apxa-cmd-copy);
	font-style: normal;
	font-size: 14px;
	font-weight: 650;
	line-height: 1.55;
}

#apex-account.apxa-shell .apxa-dl {
	display: grid;
	gap: 0;
	margin: 0;
	min-width: 0;
}

#apex-account.apxa-shell .apxa-dl > div {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	min-width: 0;
	padding: 8px 0;
	border-bottom: 1px solid rgba(54, 89, 118, 0.12);
}

#apex-account.apxa-shell .apxa-dl > div:last-child {
	border-bottom: 0;
}

#apex-account.apxa-shell .apxa-dl dt {
	min-width: 0;
	margin: 0;
	color: var(--apxa-cmd-copy);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
}

#apex-account.apxa-shell .apxa-dl dd {
	flex: 0 0 auto;
	margin: 0;
	color: var(--apxa-cmd-ink);
	font-size: 14px;
	font-weight: 800;
	line-height: 1.4;
	text-align: right;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

#apex-account.apxa-shell .apxa-dl .apxa-micro {
	color: var(--apxa-cmd-copy);
	font-weight: 700;
}

#apex-account.apxa-shell .apxa-dl__discount dd {
	color: #0f7557;
}

#apex-account.apxa-shell .apxa-dl__total {
	margin-top: 4px;
	padding-top: 12px !important;
	border-top: 1px solid rgba(54, 89, 118, 0.3);
}

#apex-account.apxa-shell .apxa-dl__total dt,
#apex-account.apxa-shell .apxa-dl__total dd {
	color: var(--apxa-cmd-ink);
	font-size: 15px;
	font-weight: 900;
}

#apex-account.apxa-shell .apxa-dl--stack > div {
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	padding: 4px 0;
	border: 0;
}

#apex-account.apxa-shell .apxa-dl--stack dd {
	font-weight: 700;
	text-align: left;
	white-space: normal;
}

/* ------------------------------------------------------------------ */
/* 16. Metric tiles                                                      */
/* ------------------------------------------------------------------ */

#apex-account.apxa-shell .apxa-metrics {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(186px, 1fr));
	gap: 10px;
	align-items: start;
	min-width: 0;
}

#apex-account.apxa-shell .apxa-metric {
	position: relative;
	display: grid;
	grid-template-columns: 36px minmax(0, 1fr);
	gap: 5px 13px;
	align-items: start;
	min-width: 0;
	min-height: 104px;
	padding: 15px;
	border: 1px solid var(--apxa-rule);
	border-radius: var(--apxa-radius);
	background-color: #f7fbff;
	background-image: linear-gradient(180deg, rgba(252, 254, 255, 0.94), rgba(242, 248, 253, 0.91));
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	color: var(--apxa-cmd-ink);
	box-shadow: var(--apxa-card-shadow);
	overflow: hidden;
}

/* The earnings underlay follows the parent card's lazy flag. */
#apex-account.apxa-shell .apxa-bg-ready .apxa-metric,
#apex-account.apxa-shell .apxa-panel > .apxa-card:first-of-type .apxa-metric {
	background-image: linear-gradient(180deg, rgba(252, 254, 255, 0.94), rgba(242, 248, 253, 0.91)), var(--apxa-art-earnings);
}

#apex-account.apxa-shell .apxa-metric__icon {
	display: inline-grid;
	place-items: center;
	grid-column: 1;
	grid-row: 1 / span 3;
	width: 36px;
	height: 36px;
	border: 1px solid rgba(54, 89, 118, 0.22);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.38);
	color: var(--apxa-blue);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

#apex-account.apxa-shell .apxa-metric__icon .apxa-ico {
	width: 15px;
	height: 15px;
}

#apex-account.apxa-shell .apxa-metric__body {
	display: grid;
	grid-column: 2;
	gap: 5px;
	min-width: 0;
}

#apex-account.apxa-shell .apxa-metric__label {
	display: block;
	color: var(--apxa-cmd-copy);
	font-size: 12px;
	font-weight: 900;
	line-height: 1.2;
	letter-spacing: 0.8px;
	text-transform: uppercase;
}

#apex-account.apxa-shell .apxa-metric__value {
	display: block;
	color: var(--apxa-cmd-ink);
	font-size: clamp(21px, 2vw, 27px);
	font-size: clamp(20px, 2.4cqi, 27px); /* container-relative so five tiles never wrap a money value; falls back to the line above */
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
	overflow-wrap: anywhere;
}

#apex-account.apxa-shell .apxa-metric__hint {
	display: block;
	color: var(--apxa-blue-link);
	font-size: 12px;
	font-weight: 800;
	line-height: 1.3;
}

#apex-account.apxa-shell .apxa-metric--gold .apxa-metric__icon {
	border-color: rgba(169, 130, 32, 0.3);
	color: #a98220;
}

/* ------------------------------------------------------------------ */
/* 17. Tier ladder (six equal segments) + mini ladder                    */
/* ------------------------------------------------------------------ */

/* 1.1.1: the ladder shares the tier-track language — gradient fill in the current tier's colour, a metallic
   gem riding the fill head, and each segment led by a metallic gem chip (greyed until reached). */
#apex-account.apxa-shell .apxa-ladder {
	--apxa-progress-pct: 0%;
	--apxa-gem-size: 26px;
	display: grid;
	gap: 18px;
	min-width: 0;
}

#apex-account.apxa-shell .apxa-ladder__track {
	position: relative;
	height: 14px;
	margin: 6px 2px 2px;
	border: 1px solid rgba(54, 89, 118, 0.18);
	border-radius: 999px;
	background: rgba(8, 26, 42, 0.08);
	box-shadow: inset 0 1px 2px rgba(3, 15, 28, 0.12);
	overflow: visible;
}

#apex-account.apxa-shell .apxa-ladder__fill {
	position: relative;
	display: block;
	height: 100%;
	max-width: 100%;
	min-width: 14px;
	border-radius: 999px;
	background: linear-gradient(90deg, #167ca4, var(--apxa-blue) 45%, var(--apxa-tier-dot));
	box-shadow: 0 0 14px rgba(0, 108, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.5);
	transform-origin: left center;
	animation: apxa-progress-fill 900ms ease both;
	overflow: hidden;
}

#apex-account.apxa-shell .apxa-ladder__fill::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.65) 50%, transparent 70%);
	transform: translateX(-130%);
	animation: apxa-shimmer 1400ms ease-out 900ms 1 both;
}

#apex-account.apxa-shell .apxa-ladder__track .apxa-progress__gem {
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 6px 16px rgba(3, 15, 28, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

#apex-account.apxa-shell .apxa-ladder__segs {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

#apex-account.apxa-shell .apxa-ladder__seg {
	position: relative;
	display: grid;
	align-content: start;
	justify-items: start;
	gap: 3px;
	min-width: 0;
	padding: 14px 12px 13px;
	border: 1px solid rgba(54, 89, 118, 0.16);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.62);
	color: var(--apxa-cmd-copy);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
	overflow: hidden;
}

#apex-account.apxa-shell .apxa-ladder__seg::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 4px;
	background: var(--apxa-tier-metal);
	opacity: 0.35;
}

#apex-account.apxa-shell .apxa-ladder__seg.is-reached::before,
#apex-account.apxa-shell .apxa-ladder__seg.is-current::before {
	opacity: 1;
}

/* Gem chip: metallic disc, greyscale until the tier is reached */
#apex-account.apxa-shell .apxa-ladder__seg .apxa-gem,
#apex-account.apxa-shell .apxa-mini-ladder__step .apxa-gem {
	box-sizing: content-box;
	width: 14px;
	height: 14px;
	margin: 2px 0 6px;
	padding: 6px;
	border: 1px solid rgba(255, 255, 255, 0.7);
	border-radius: 50%;
	background: var(--apxa-tier-metal);
	color: var(--apxa-tier-metal-ink);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 4px 10px rgba(3, 15, 28, 0.16);
	filter: grayscale(1) opacity(0.55);
	transition: filter 200ms ease;
}

#apex-account.apxa-shell .apxa-ladder__seg.is-reached .apxa-gem,
#apex-account.apxa-shell .apxa-ladder__seg.is-current .apxa-gem,
#apex-account.apxa-shell .apxa-mini-ladder__step.is-reached .apxa-gem,
#apex-account.apxa-shell .apxa-mini-ladder__step.is-current .apxa-gem,
#apex-account.apxa-shell .apxa-mini-ladder__step[aria-current] .apxa-gem {
	filter: none;
}

#apex-account.apxa-shell .apxa-ladder__seg.is-current .apxa-gem,
#apex-account.apxa-shell .apxa-mini-ladder__step.is-current .apxa-gem,
#apex-account.apxa-shell .apxa-mini-ladder__step[aria-current] .apxa-gem {
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 0 0 3px rgba(0, 108, 255, 0.18), 0 0 16px color-mix(in srgb, var(--apxa-tier-dot) 70%, transparent);
}

#apex-account.apxa-shell .apxa-ladder__seg.is-reached {
	background: rgba(255, 255, 255, 0.8);
}

#apex-account.apxa-shell .apxa-ladder__seg.is-current {
	background: rgba(255, 255, 255, 0.94);
	border-color: rgba(0, 108, 255, 0.5);
	box-shadow: 0 0 0 2px rgba(0, 108, 255, 0.35), 0 14px 32px rgba(3, 15, 28, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

#apex-account.apxa-shell .apxa-ladder__seg.is-next {
	border-style: dashed;
	border-color: rgba(0, 108, 255, 0.35);
}

#apex-account.apxa-shell .apxa-ladder__name {
	color: var(--apxa-cmd-copy);
	font-size: 12px;
	font-weight: 900;
	line-height: 1.2;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}

#apex-account.apxa-shell .apxa-ladder__pct {
	color: var(--apxa-tier-text);
	font-size: 17px;
	font-weight: 900;
	line-height: 1.1;
	letter-spacing: -0.01em;
}

#apex-account.apxa-shell .apxa-ladder__seg.is-current .apxa-ladder__pct {
	color: var(--apxa-cmd-ink);
}

#apex-account.apxa-shell .apxa-ladder__at {
	color: var(--apxa-cmd-copy);
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1.3;
	white-space: nowrap;
}

#apex-account.apxa-shell .apxa-ladder__seg .apxa-pill {
	position: absolute;
	top: 12px;
	right: 10px;
	min-height: 22px;
	padding: 2px 8px;
	font-size: 12px;
}

#apex-account.apxa-shell .apxa-mini-ladder {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

#apex-account.apxa-shell .apxa-mini-ladder__step {
	display: grid;
	align-content: start;
	justify-items: center;
	gap: 2px;
	min-width: 0;
	padding: 12px 6px 11px;
	border: 1px solid rgba(54, 89, 118, 0.16);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.62);
	text-align: center;
}

#apex-account.apxa-shell .apxa-mini-ladder__step > span,
#apex-account.apxa-shell .apxa-mini-ladder__step > strong {
	opacity: 0.6;
}

#apex-account.apxa-shell .apxa-mini-ladder__step.is-reached > span,
#apex-account.apxa-shell .apxa-mini-ladder__step.is-reached > strong,
#apex-account.apxa-shell .apxa-mini-ladder__step.is-current > span,
#apex-account.apxa-shell .apxa-mini-ladder__step.is-current > strong,
#apex-account.apxa-shell .apxa-mini-ladder__step[aria-current] > span,
#apex-account.apxa-shell .apxa-mini-ladder__step[aria-current] > strong {
	opacity: 1;
}

#apex-account.apxa-shell .apxa-mini-ladder__step.is-reached {
	background: rgba(255, 255, 255, 0.8);
}

#apex-account.apxa-shell .apxa-mini-ladder__step.is-current,
#apex-account.apxa-shell .apxa-mini-ladder__step[aria-current] {
	background: rgba(255, 255, 255, 0.94);
	border-color: rgba(0, 108, 255, 0.5);
	box-shadow: 0 0 0 2px rgba(0, 108, 255, 0.35), 0 12px 28px rgba(3, 15, 28, 0.12);
}

#apex-account.apxa-shell .apxa-mini-ladder__step .apxa-gem {
	margin: 0 0 6px;
}

#apex-account.apxa-shell .apxa-mini-ladder__step > span {
	color: var(--apxa-cmd-copy);
	font-size: 12px;
	font-weight: 900;
	line-height: 1.2;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}

#apex-account.apxa-shell .apxa-mini-ladder__step > strong {
	color: var(--apxa-tier-text);
	font-size: 16px;
	font-weight: 900;
	line-height: 1.1;
}

#apex-account.apxa-shell .apxa-mini-ladder__step.is-current > strong,
#apex-account.apxa-shell .apxa-mini-ladder__step[aria-current] > strong {
	color: var(--apxa-cmd-ink);
}

/* ------------------------------------------------------------------ */
/* 18. Steps rail, callout, perks, rate chips, strip, pager, skeleton    */
/* ------------------------------------------------------------------ */

#apex-account.apxa-shell .apxa-steps {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

#apex-account.apxa-shell .apxa-step {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr);
	gap: 12px;
	align-items: start;
	min-width: 0;
}

/* hexagon icon chip */
#apex-account.apxa-shell .apxa-step > .apxa-ico {
	display: block;
	width: 40px;
	height: 40px;
	padding: 10px;
	box-sizing: border-box;
	clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%);
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.56), rgba(210, 233, 252, 0.24)), rgba(15, 38, 57, 0.2);
	color: var(--apxa-blue);
}

#apex-account.apxa-shell .apxa-step > div {
	display: grid;
	gap: 3px;
	min-width: 0;
	padding-top: 2px;
}

#apex-account.apxa-shell .apxa-step strong {
	color: var(--apxa-cmd-ink);
	font-size: 15px;
	font-weight: 800;
	line-height: 1.3;
}

#apex-account.apxa-shell .apxa-step span {
	color: var(--apxa-cmd-copy);
	font-size: 13px;
	font-weight: 650;
	line-height: 1.5;
}

#apex-account.apxa-shell .apxa-callout {
	display: grid;
	grid-template-columns: 28px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	margin-top: 16px;
}

#apex-account.apxa-shell .apxa-callout > .apxa-gem {
	width: 28px;
	height: 28px;
	color: var(--apxa-tier-text);
}

#apex-account.apxa-shell .apxa-callout > div {
	display: grid;
	gap: 2px;
	min-width: 0;
}

#apex-account.apxa-shell .apxa-callout strong {
	color: var(--apxa-cmd-ink);
	font-size: 14px;
	font-weight: 800;
	line-height: 1.3;
}

#apex-account.apxa-shell .apxa-callout .apxa-small {
	color: var(--apxa-cmd-copy);
}

#apex-account.apxa-shell .apxa-perks {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

#apex-account.apxa-shell .apxa-perk {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid rgba(54, 89, 118, 0.14);
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.5);
	opacity: 0.72;
}

#apex-account.apxa-shell .apxa-perk.is-reached,
#apex-account.apxa-shell .apxa-perk.is-current {
	opacity: 1;
}

#apex-account.apxa-shell .apxa-perk.is-current {
	border-color: rgba(0, 108, 255, 0.35);
	background: rgba(255, 255, 255, 0.86);
	box-shadow: inset 3px 0 0 var(--apxa-blue);
}

#apex-account.apxa-shell .apxa-perk .apxa-tier-badge {
	min-width: 112px;
	justify-content: flex-start;
}

#apex-account.apxa-shell .apxa-perk__text {
	min-width: 0;
	color: var(--apxa-cmd-copy);
	font-size: 13px;
	font-weight: 650;
	line-height: 1.45;
}

#apex-account.apxa-shell .apxa-rates {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin: 0;
}

#apex-account.apxa-shell .apxa-rates > span {
	display: inline-flex;
	align-items: baseline;
	gap: 4px;
	padding: 6px 9px;
	border: 1px solid rgba(54, 89, 118, 0.16);
	border-radius: 5px;
	background: rgba(8, 26, 42, 0.055);
	color: var(--apxa-cmd-copy);
	font-size: 12.5px;
	font-weight: 750;
	line-height: 1.3;
	white-space: nowrap;
}

#apex-account.apxa-shell .apxa-rates strong {
	color: var(--apxa-cmd-ink);
	font-weight: 900;
}

#apex-account.apxa-shell .apxa-strip {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

#apex-account.apxa-shell .apxa-strip > span {
	position: relative;
	display: block;
	min-width: 0;
	padding-left: 26px;
	color: var(--apxa-cmd-copy);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.45;
}

#apex-account.apxa-shell .apxa-strip > span > .apxa-ico {
	position: absolute;
	top: 1px;
	left: 0;
	color: var(--apxa-blue);
}

#apex-account.apxa-shell .apxa-strip strong {
	color: var(--apxa-cmd-ink);
	font-weight: 850;
}

#apex-account.apxa-shell .apxa-pager {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid rgba(54, 89, 118, 0.16);
}

#apex-account.apxa-shell .apxa-pager__state {
	color: var(--apxa-cmd-copy);
	font-size: 12.5px;
	font-weight: 750;
	text-align: center;
}

/* First/last page: the Newer/Older link is kept for layout but inert. */
#apex-account.apxa-shell .apxa-pager [aria-disabled="true"] {
	opacity: 0.45;
	pointer-events: none;
}

/* Tab fetch in flight: dim the panel and run an indeterminate 2px bar at the top of the content column. */
#apex-account.apxa-shell .apxa-content::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	z-index: 5;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, transparent, var(--apxa-cyan), var(--apxa-blue), transparent);
	background-repeat: no-repeat;
	background-size: 40% 100%;
	opacity: 0;
	pointer-events: none;
	transition: opacity 160ms ease;
}

#apex-account.apxa-shell .apxa-content.is-loading::before {
	opacity: 1;
	animation: apxa-bar 1.1s linear infinite;
}

#apex-account.apxa-shell .apxa-content.is-loading > .apxa-panel {
	opacity: 0.55;
	pointer-events: none;
	transition: opacity 160ms ease;
}

/* ------------------------------------------------------------------ */
/* 19. Orders tab                                                        */
/* ------------------------------------------------------------------ */

#apex-account.apxa-shell .apxa-orders {
	display: grid;
	gap: 12px;
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

#apex-account.apxa-shell .apxa-order {
	position: relative;
	display: grid;
	gap: 12px;
	min-width: 0;
	margin: 0;
	padding: 16px;
	border: 1px solid rgba(54, 89, 118, 0.16);
	border-radius: var(--apxa-radius);
	background: rgba(255, 255, 255, 0.64);
	color: var(--apxa-cmd-ink);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76), 0 10px 24px rgba(3, 28, 57, 0.08);
	transition: background 160ms ease, border-color 160ms ease;
}

#apex-account.apxa-shell .apxa-order.is-open {
	border-color: rgba(0, 108, 255, 0.28);
	background: rgba(255, 255, 255, 0.8);
}

#apex-account.apxa-shell .apxa-order__row {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1fr) auto;
	gap: 14px;
	align-items: center;
	min-width: 0;
}

#apex-account.apxa-shell .apxa-order__id {
	display: grid;
	gap: 2px;
	min-width: 0;
}

#apex-account.apxa-shell .apxa-order__number {
	overflow-wrap: anywhere;
}

#apex-account.apxa-shell .apxa-order__date {
	color: var(--apxa-cmd-copy);
}

#apex-account.apxa-shell .apxa-order__status {
	justify-self: start;
}

#apex-account.apxa-shell .apxa-order__thumbs {
	justify-self: start;
}

#apex-account.apxa-shell .apxa-order__total {
	display: grid;
	gap: 1px;
	justify-items: end;
	text-align: right;
	white-space: nowrap;
}

#apex-account.apxa-shell .apxa-order__total .apxa-micro {
	color: var(--apxa-cmd-copy);
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

#apex-account.apxa-shell .apxa-order__total strong {
	color: var(--apxa-cmd-ink);
	font-size: 16px;
	font-weight: 900;
	line-height: 1.2;
	font-variant-numeric: tabular-nums;
}

#apex-account.apxa-shell .apxa-order__tracking {
	display: grid;
	grid-template-columns: 18px minmax(0, 1fr) auto;
	gap: 12px;
	align-items: center;
	padding: 12px 14px;
	background: rgba(255, 255, 255, 0.7);
}

#apex-account.apxa-shell .apxa-order__tracking > .apxa-ico {
	width: 18px;
	height: 18px;
	color: var(--apxa-blue);
}

#apex-account.apxa-shell .apxa-order__tracking > div {
	min-width: 0;
	color: var(--apxa-cmd-copy);
	font-size: 13px;
	font-weight: 650;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

#apex-account.apxa-shell .apxa-order__tracking strong {
	color: var(--apxa-cmd-ink);
}

#apex-account.apxa-shell .apxa-order__tn {
	color: var(--apxa-cmd-ink);
	font-family: var(--apxa-mono);
	font-size: 12.5px;
	letter-spacing: 0.02em;
}

#apex-account.apxa-shell .apxa-order__late {
	margin: -4px 0 0;
	color: var(--apxa-cmd-copy);
}

#apex-account.apxa-shell .apxa-order__late a {
	color: var(--apxa-blue-text);
	font-weight: 800;
	text-decoration: underline;
	text-underline-offset: 2px;
}

#apex-account.apxa-shell .apxa-order__detail {
	padding-top: 4px;
}

#apex-account.apxa-shell .apxa-order-detail {
	display: grid;
	gap: 14px;
	min-width: 0;
}

#apex-account.apxa-shell .apxa-order-detail .apxa-cards--2 {
	gap: 12px;
}

/* Overview compact list lives in a half-width card: two-row layout above the phone breakpoint */
@media (min-width: 521px) {
	#apex-account.apxa-shell .apxa-orders--compact .apxa-order__row {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 10px 14px;
	}

	#apex-account.apxa-shell .apxa-orders--compact .apxa-order__status {
		justify-self: end;
	}
}

/* Overview compact list: row only */
#apex-account.apxa-shell .apxa-orders--compact .apxa-order {
	gap: 0;
	padding: 12px 14px;
}

#apex-account.apxa-shell .apxa-orders--compact .apxa-order__tracking,
#apex-account.apxa-shell .apxa-orders--compact .apxa-order__late,
#apex-account.apxa-shell .apxa-orders--compact .apxa-order__actions,
#apex-account.apxa-shell .apxa-orders--compact .apxa-order__detail {
	display: none;
}

/* ------------------------------------------------------------------ */
/* 20. Scheduled orders tab (list + builder)                             */
/* ------------------------------------------------------------------ */

#apex-account.apxa-shell .apxa-subs {
	display: grid;
	gap: 12px;
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

#apex-account.apxa-shell .apxa-sub {
	position: relative;
	display: grid;
	gap: 12px;
	min-width: 0;
	margin: 0;
	padding: 16px;
	border: 1px solid rgba(54, 89, 118, 0.16);
	border-radius: var(--apxa-radius);
	background: rgba(255, 255, 255, 0.64);
	color: var(--apxa-cmd-ink);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76), 0 10px 24px rgba(3, 28, 57, 0.08);
}

#apex-account.apxa-shell .apxa-sub--cancelled {
	background: rgba(236, 241, 246, 0.6);
}

#apex-account.apxa-shell .apxa-sub--cancelled .apxa-sub__title {
	color: var(--apxa-cmd-copy);
}

#apex-account.apxa-shell .apxa-sub__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

#apex-account.apxa-shell .apxa-sub__head > div {
	display: grid;
	gap: 3px;
	min-width: 0;
}

#apex-account.apxa-shell .apxa-sub__title {
	color: var(--apxa-cmd-ink);
	font-size: 15px;
	font-weight: 800;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

#apex-account.apxa-shell .apxa-sub__meta {
	color: var(--apxa-cmd-copy);
}

#apex-account.apxa-shell .apxa-sub__status {
	flex: 0 0 auto;
	margin-top: 2px;
}

#apex-account.apxa-shell .apxa-sub__facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin: 0;
}

#apex-account.apxa-shell .apxa-sub__facts > div {
	display: grid;
	gap: 3px;
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid rgba(54, 89, 118, 0.12);
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.5);
}

#apex-account.apxa-shell .apxa-sub__facts dt {
	color: var(--apxa-cmd-copy);
	font-size: 12px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

#apex-account.apxa-shell .apxa-sub__facts dd {
	margin: 0;
	color: var(--apxa-cmd-ink);
	font-size: 14px;
	font-weight: 800;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

#apex-account.apxa-shell .apxa-sub__pause {
	padding-top: 4px;
}

#apex-account.apxa-shell .apxa-sub__pause .apxa-field--inline .apxa-field__input {
	min-width: 180px;
}

#apex-account.apxa-shell .apxa-subs--compact .apxa-sub {
	gap: 8px;
	padding: 12px 14px;
}

#apex-account.apxa-shell .apxa-sub--compact {
	gap: 8px;
	padding: 12px 14px;
}

#apex-account.apxa-shell .apxa-subs--compact .apxa-sub__facts,
#apex-account.apxa-shell .apxa-subs--compact .apxa-sub__actions,
#apex-account.apxa-shell .apxa-subs--compact .apxa-sub__pause,
#apex-account.apxa-shell .apxa-subs--compact .apxa-alert,
#apex-account.apxa-shell .apxa-sub--compact .apxa-sub__facts,
#apex-account.apxa-shell .apxa-sub--compact .apxa-sub__actions,
#apex-account.apxa-shell .apxa-sub--compact .apxa-sub__pause,
#apex-account.apxa-shell .apxa-sub--compact .apxa-alert {
	display: none;
}

#apex-account.apxa-shell .apxa-panel__head .apxa-btn {
	flex: 0 0 auto;
}

/* Builder */
#apex-account.apxa-shell .apxa-builder {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
	gap: 20px;
	align-items: start;
	margin: 0;
	min-width: 0;
}

#apex-account.apxa-shell .apxa-builder__main {
	display: grid;
	gap: clamp(16px, 2vw, 22px);
	min-width: 0;
}

#apex-account.apxa-shell .apxa-builder__side {
	position: sticky;
	top: 24px;
	min-width: 0;
}

#apex-account.apxa-shell .apxa-picker {
	position: relative;
	z-index: 2;
}

#apex-account.apxa-shell .apxa-card:has(.apxa-picker__results:not([hidden])) {
	overflow: visible;
	z-index: 3;
}

#apex-account.apxa-shell .apxa-picker__results {
	position: absolute;
	top: 100%;
	right: 0;
	left: 0;
	z-index: 5;
	max-height: 320px;
	margin: 6px 0 0;
	padding: 6px;
	overflow: auto;
	list-style: none;
	border: 1px solid var(--apxa-rule);
	border-radius: var(--apxa-radius);
	background: var(--apxa-surface-strong);
	box-shadow: 0 24px 60px rgba(3, 15, 28, 0.22);
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
}

#apex-account.apxa-shell .apxa-picker__item {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr) auto;
	gap: 6px 10px;
	align-items: center;
	min-height: 48px;
	margin: 0;
	padding: 6px 8px;
	border-radius: 6px;
	color: var(--apxa-cmd-ink);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	cursor: pointer;
	transition: background 120ms ease;
}

#apex-account.apxa-shell .apxa-picker__item img {
	width: 40px;
	height: 40px;
	border: 1px solid var(--apxa-rule);
	border-radius: 6px;
	background: #ffffff;
	object-fit: cover;
}

#apex-account.apxa-shell .apxa-picker__item:hover,
#apex-account.apxa-shell .apxa-picker__item[aria-selected="true"] {
	background: rgba(0, 108, 255, 0.1);
}

#apex-account.apxa-shell .apxa-picker__name {
	min-width: 0;
	overflow-wrap: anywhere;
}

#apex-account.apxa-shell .apxa-picker__name em {
	margin-left: 4px;
	color: var(--apxa-cmd-copy);
	font-style: normal;
	font-weight: 650;
}

#apex-account.apxa-shell .apxa-picker__price {
	color: var(--apxa-cmd-ink);
	font-weight: 800;
	white-space: nowrap;
}

#apex-account.apxa-shell .apxa-picker__item .apxa-pill {
	grid-column: 2 / -1;
	justify-self: start;
}

#apex-account.apxa-shell .apxa-picker__item--empty {
	grid-template-columns: minmax(0, 1fr);
	color: var(--apxa-cmd-copy);
	font-weight: 650;
	cursor: default;
}

#apex-account.apxa-shell .apxa-builder__items {
	display: grid;
	gap: 10px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

#apex-account.apxa-shell .apxa-builder__items:empty {
	display: none;
}

#apex-account.apxa-shell .apxa-item {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr) auto auto 44px;
	gap: 12px;
	align-items: center;
	min-width: 0;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid rgba(54, 89, 118, 0.14);
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.6);
}

#apex-account.apxa-shell .apxa-item__img {
	width: 48px;
	height: 48px;
	border: 1px solid var(--apxa-rule);
	border-radius: 6px;
	background: #ffffff;
	object-fit: cover;
}

#apex-account.apxa-shell .apxa-item__body {
	display: grid;
	gap: 2px;
	min-width: 0;
}

#apex-account.apxa-shell .apxa-item__name {
	color: var(--apxa-cmd-ink);
	font-size: 14px;
	font-weight: 800;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

#apex-account.apxa-shell .apxa-item__meta {
	color: var(--apxa-cmd-copy);
}

#apex-account.apxa-shell .apxa-item__total {
	min-width: 72px;
	color: var(--apxa-cmd-ink);
	font-size: 14px;
	font-weight: 900;
	text-align: right;
	white-space: nowrap;
}

#apex-account.apxa-shell .apxa-qty {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

#apex-account.apxa-shell .apxa-qty__btn {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(5, 16, 29, 0.22);
	border-radius: 6px;
	background: rgba(5, 16, 29, 0.88);
	color: #f8fbff;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	box-shadow: none;
	transition: background 160ms ease, border-color 160ms ease;
}

#apex-account.apxa-shell .apxa-qty__btn:hover {
	border-color: rgba(13, 92, 255, 0.4);
	background: #0d5cff;
}

#apex-account.apxa-shell .apxa-qty__btn:disabled {
	opacity: 0.48;
	cursor: not-allowed;
}

#apex-account.apxa-shell .apxa-qty__input {
	width: 56px !important;
	min-height: 44px;
	margin: 0 !important;
	padding: 8px 4px !important;
	border: 1px solid var(--apxa-input-border) !important;
	border-radius: 6px !important;
	background: var(--apxa-input-bg) !important;
	color: #f8fbff !important;
	font-family: inherit;
	font-size: 15px;
	font-weight: 800;
	text-align: center;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
	-moz-appearance: textfield;
	appearance: textfield;
}

#apex-account.apxa-shell .apxa-qty__input::-webkit-outer-spin-button,
#apex-account.apxa-shell .apxa-qty__input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

#apex-account.apxa-shell .apxa-qty__input:focus {
	border-color: var(--apxa-cyan) !important;
	box-shadow: 0 0 0 3px rgba(107, 183, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
	outline: none !important;
}

#apex-account.apxa-shell .apxa-choices {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 8px;
	margin: 0 0 14px;
}

#apex-account.apxa-shell .apxa-choice {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid rgba(54, 89, 118, 0.24);
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.6);
	color: var(--apxa-cmd-ink);
	font-size: 13px;
	font-weight: 800;
	line-height: 1.3;
	text-align: center;
	cursor: pointer;
	transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

#apex-account.apxa-shell .apxa-choice input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

#apex-account.apxa-shell .apxa-choice span {
	position: relative;
	z-index: 1;
	pointer-events: none;
}

#apex-account.apxa-shell .apxa-choice input:checked + span {
	color: var(--apxa-blue-text);
}

#apex-account.apxa-shell .apxa-choice:has(input:checked) {
	border-color: var(--apxa-blue);
	background: rgba(0, 108, 255, 0.08);
	box-shadow: 0 0 0 2px rgba(0, 108, 255, 0.15);
}

#apex-account.apxa-shell .apxa-choice:has(input:focus-visible) {
	outline: 3px solid var(--apxa-focus-light);
	outline-offset: 2px;
	box-shadow: 0 0 0 5px #ffffff;
}

#apex-account.apxa-shell .apxa-summary {
	display: grid;
	gap: 14px;
}

#apex-account.apxa-shell .apxa-summary .apxa-card__head {
	margin-bottom: 0;
}

#apex-account.apxa-shell .apxa-summary__dates {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 6px;
	color: var(--apxa-cmd-copy);
}

#apex-account.apxa-shell .apxa-summary__dates .apxa-ico {
	color: var(--apxa-blue);
}

#apex-account.apxa-shell .apxa-summary__dates strong {
	color: var(--apxa-cmd-ink);
}

#apex-account.apxa-shell .apxa-summary__note {
	color: var(--apxa-cmd-copy);
}

#apex-account.apxa-shell [data-apxa-quote].is-stale {
	opacity: 0.6;
	transition: opacity 160ms ease;
}

/* ------------------------------------------------------------------ */
/* 21. Partner tab                                                       */
/* ------------------------------------------------------------------ */

#apex-account.apxa-shell .apxa-partner-code__tool {
	margin-top: 20px;
	padding-top: 18px;
	border-top: 1px solid rgba(54, 89, 118, 0.2);
}

#apex-account.apxa-shell .apxa-tool-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 9px;
}

#apex-account.apxa-shell .apxa-tool-head h3 {
	color: var(--apxa-cmd-ink);
	font-size: 14px;
	font-weight: 900;
	line-height: 1.2;
}

#apex-account.apxa-shell .apxa-tool-head span {
	color: var(--apxa-cmd-copy);
	font-size: 12px;
	font-weight: 850;
	line-height: 1.2;
	letter-spacing: 0.65px;
	text-transform: uppercase;
}

#apex-account.apxa-shell .apxa-share {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

#apex-account.apxa-shell .apxa-share__sms {
	display: none;
}

#apex-account.apxa-shell .apxa-upgrade {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) auto;
	gap: 14px;
	align-items: center;
}

#apex-account.apxa-shell .apxa-upgrade__icon {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid rgba(169, 130, 32, 0.3);
	border-radius: 50%;
	background: rgba(255, 244, 214, 0.9);
	color: #a98220;
}

#apex-account.apxa-shell .apxa-upgrade__body {
	display: grid;
	gap: 6px;
	min-width: 0;
}

#apex-account.apxa-shell .apxa-upgrade > .apxa-btn {
	justify-self: end;
}

/* ------------------------------------------------------------------ */
/* 22. Access shell (signed-out): mountain photo + frosted login card    */
/* ------------------------------------------------------------------ */

#apex-account.apxa-shell .apxa-access {
	position: relative;
	isolation: isolate;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
	gap: clamp(20px, 3vw, 42px);
	align-items: stretch;
	width: min(1220px, calc(100vw - 36px));
	min-height: clamp(620px, 68vw, 760px);
	margin: 0 auto;
	padding: clamp(22px, 3vw, 38px);
	border: 1px solid rgba(151, 196, 255, 0.2);
	border-radius: var(--apxa-radius);
	background:
		linear-gradient(90deg, rgba(3, 8, 15, 0.94), rgba(3, 8, 15, 0.56) 47%, rgba(3, 8, 15, 0.18)),
		var(--apxa-art-mountain) center / cover no-repeat,
		var(--apxa-hero-ground);
	color: #f8fbff;
	box-shadow: 0 34px 110px rgba(0, 0, 0, 0.42);
	overflow: hidden;
}

#apex-account.apxa-shell .apxa-access__copy {
	display: grid;
	gap: 16px;
	justify-items: center;
	align-content: center;
	min-width: 0;
	padding: clamp(14px, 2vw, 28px);
	text-align: center;
	animation: apxa-rise 680ms ease both;
}

#apex-account.apxa-shell .apxa-access__title {
	max-width: 760px;
	color: #f8fbff;
	font-size: clamp(36px, 4.4vw, 64px);
	font-weight: 700;
	line-height: 0.98;
	text-shadow: 0 18px 42px rgba(0, 0, 0, 0.52);
	overflow-wrap: anywhere;
}

#apex-account.apxa-shell .apxa-access__lede {
	max-width: 660px;
	color: #e7f2ff;
	font-size: 16px;
	font-weight: 650;
	line-height: 1.65;
	text-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

#apex-account.apxa-shell .apxa-access__points {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	width: min(720px, 100%);
	margin-top: 2px;
}

#apex-account.apxa-shell .apxa-card--point {
	display: grid;
	align-content: start;
	justify-items: start;
	gap: 0;
	min-height: 148px;
	padding: 18px;
	border-color: var(--apxa-cmd-line);
	color: var(--apxa-cmd-ink);
	text-align: left;
	box-shadow: var(--apxa-cmd-card-shadow);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
}

#apex-account.apxa-shell .apxa-card--point > .apxa-ico {
	width: 22px;
	height: 22px;
	color: var(--apxa-blue);
}

#apex-account.apxa-shell .apxa-point--pricing > .apxa-ico {
	color: #a98220;
}

#apex-account.apxa-shell .apxa-card--point strong {
	display: block;
	margin-top: 12px;
	color: var(--apxa-cmd-ink);
	font-size: 15px;
	font-weight: 900;
	line-height: 1.15;
}

#apex-account.apxa-shell .apxa-card--point span {
	display: block;
	margin-top: 6px;
	color: var(--apxa-cmd-copy);
	font-size: 12.5px;
	font-weight: 750;
	line-height: 1.45;
}

#apex-account.apxa-shell .apxa-access__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 2px;
}

#apex-account.apxa-shell .apxa-access__actions .apxa-btn {
	min-width: 160px;
}

/* Login card (frosted, photo-backed, eager artwork) */
#apex-account.apxa-shell .apxa-login {
	position: relative;
	z-index: 1;
	align-self: stretch;
	display: grid;
	align-content: center;
	gap: 16px;
	min-width: 0;
	padding: clamp(24px, 3vw, 36px);
	border: 1px solid var(--apxa-cmd-line);
	border-radius: var(--apxa-radius);
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)),
		var(--apxa-art-login) center / cover no-repeat,
		#eef4fa;
	color: var(--apxa-cmd-ink);
	box-shadow: var(--apxa-cmd-card-shadow);
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
	animation: apxa-rise 680ms ease both;
}

#apex-account.apxa-shell .apxa-login__head {
	display: grid;
	gap: 10px;
}

#apex-account.apxa-shell .apxa-login__title {
	color: var(--apxa-cmd-ink);
	font-size: clamp(24px, 2.4vw, 30px);
	font-weight: 700;
	line-height: 1.12;
	overflow-wrap: anywhere;
}

#apex-account.apxa-shell .apxa-login__head p {
	color: var(--apxa-cmd-copy);
	font-size: 14px;
	font-weight: 750;
	line-height: 1.55;
}

#apex-account.apxa-shell .apxa-login__head time {
	color: var(--apxa-cmd-ink);
	font-weight: 850;
}

#apex-account.apxa-shell .apxa-login__masked {
	color: var(--apxa-cmd-ink);
	font-weight: 900;
	overflow-wrap: anywhere;
}

#apex-account.apxa-shell .apxa-login__alerts {
	display: grid;
	gap: 8px;
}

#apex-account.apxa-shell .apxa-login__alerts:empty {
	display: none;
}

#apex-account.apxa-shell .apxa-login .apxa-form {
	gap: 14px;
}

#apex-account.apxa-shell .apxa-login__foot {
	margin-top: 2px;
	color: var(--apxa-cmd-copy);
	text-align: center;
}

#apex-account.apxa-shell .apxa-login__foot a,
#apex-account.apxa-shell .apxa-check a,
#apex-account.apxa-shell .apxa-order__late a {
	display: inline-block;
	padding: 14px 2px;
	margin: -14px -2px;
}

#apex-account.apxa-shell .apxa-login__foot a {
	color: var(--apxa-blue-text);
	font-weight: 800;
	text-decoration: underline;
	text-underline-offset: 2px;
}

#apex-account.apxa-shell .apxa-login__resend {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 2px;
	padding-top: 14px;
	border-top: 1px solid rgba(54, 89, 118, 0.22);
}

#apex-account.apxa-shell .apxa-login__resend .apxa-inline-form {
	display: inline-flex;
}

#apex-account.apxa-shell .apxa-sms-consent {
	flex-basis: 100%;
	min-width: 0;
	margin: 0;
	line-height: 1.6;
}

#apex-account.apxa-shell .apxa-login__resend form[data-apxa-form="resend_phone"] {
	flex: 1 1 100%;
}

/* Emailed one-click skip confirm (`?apxa=skip`): a single primary action under the copy. */
#apex-account.apxa-shell .apxa-form--skip {
	margin-top: 18px;
}

#apex-account.apxa-shell .apxa-form--void {
	margin-top: 4px;
}

#apex-account.apxa-shell .apxa-form--void .apxa-link-btn {
	width: 100%;
}

/* ------------------------------------------------------------------ */
/* 23. OTP — one input over six visual cells                             */
/* ------------------------------------------------------------------ */

#apex-account.apxa-shell .apxa-otp {
	--apxa-otp-cell: 44px;
	--apxa-otp-gap: 8px;
	display: grid;
	gap: 8px;
	min-width: 0;
}

#apex-account.apxa-shell .apxa-otp__label {
	display: block;
	color: var(--apxa-cmd-ink);
	font-size: 13px;
	font-weight: 850;
	line-height: 1.3;
}

#apex-account.apxa-shell .apxa-otp__track {
	position: relative;
	width: calc(6 * var(--apxa-otp-cell) + 5 * var(--apxa-otp-gap));
	max-width: 100%;
	margin: 0 auto;
	border-radius: 6px;
	overflow: hidden;
}

#apex-account.apxa-shell .apxa-otp__cells {
	position: absolute;
	inset: 0;
	display: grid;
	grid-template-columns: repeat(6, var(--apxa-otp-cell));
	gap: var(--apxa-otp-gap);
	pointer-events: none;
}

#apex-account.apxa-shell .apxa-otp__cells i {
	display: block;
	height: 56px;
	border: 1px solid var(--apxa-input-border);
	border-radius: 6px;
	background: var(--apxa-input-bg);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
	transition: border-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

#apex-account.apxa-shell .apxa-otp__cells i.is-filled {
	border-color: rgba(107, 183, 255, 0.55);
}

#apex-account.apxa-shell .apxa-otp__cells i.is-active {
	border-color: var(--apxa-cyan);
	box-shadow: 0 0 0 3px rgba(107, 183, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

#apex-account.apxa-shell .apxa-otp.has-error .apxa-otp__cells i {
	border-color: rgba(239, 68, 68, 0.7);
}

#apex-account.apxa-shell .apxa-otp.is-locked .apxa-otp__cells i {
	opacity: 0.5;
}

#apex-account.apxa-shell .apxa-otp.is-locked .apxa-otp__input {
	opacity: 0.6;
	cursor: not-allowed;
}

#apex-account.apxa-shell .apxa-otp__input {
	position: relative;
	z-index: 1;
	display: block;
	width: 100% !important;
	height: 56px;
	min-height: 56px;
	margin: 0 !important;
	padding: 0 0 0 calc((var(--apxa-otp-cell) - 1ch) / 2) !important;
	border: 0 !important;
	border-radius: 6px;
	background: transparent !important;
	box-shadow: none !important;
	color: #f8fbff !important;
	font-family: var(--apxa-mono);
	font-size: 26px;
	font-weight: 800;
	line-height: 56px;
	letter-spacing: calc(var(--apxa-otp-cell) + var(--apxa-otp-gap) - 1ch);
	text-align: left;
	caret-color: var(--apxa-cyan);
	outline: none !important;
	-webkit-appearance: none;
	appearance: none;
}

#apex-account.apxa-shell .apxa-otp__input::selection {
	background: rgba(107, 183, 255, 0.35);
}

#apex-account.apxa-shell .apxa-otp__track:focus-within {
	outline: 3px solid var(--apxa-focus-light);
	outline-offset: 2px;
	box-shadow: 0 0 0 5px #ffffff;
}

#apex-account.apxa-shell .apxa-otp__hint {
	color: var(--apxa-cmd-copy);
	text-align: center;
}

/* ------------------------------------------------------------------ */
/* 24. State classes, keyframes, focus                                   */
/* ------------------------------------------------------------------ */

@keyframes apxa-rise {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes apxa-progress-fill {
	from {
		transform: scaleX(0);
	}
	to {
		transform: scaleX(1);
	}
}

/* One-pass highlight across the tier-track fill once it has grown in */
@keyframes apxa-shimmer {
	from {
		transform: translateX(-130%);
	}
	to {
		transform: translateX(130%);
	}
}

/* The current-tier gem rides in with the fill */
@keyframes apxa-gem-arrive {
	from {
		opacity: 0;
		transform: translate(-50%, -50%) scale(0.6);
	}
	60% {
		opacity: 1;
	}
	to {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1);
	}
}

@keyframes apxa-spin {
	to {
		transform: rotate(360deg);
	}
}

@keyframes apxa-bar {
	from {
		background-position: -40% 0;
	}
	to {
		background-position: 140% 0;
	}
}

/* Without JS everything stays visible; account.js adds .js to the root on boot. */
#apex-account.apxa-shell.js [data-apxa-nojs-only] {
	display: none !important;
}

#apex-account.apxa-shell .apxa-form.is-busy .apxa-field__input,
#apex-account.apxa-shell form.is-busy .apxa-field__input {
	opacity: 0.85;
}

/* Focus — dark ground (default) */
#apex-account.apxa-shell :is(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
	outline: 2px solid var(--apxa-focus-dark);
	outline-offset: 2px;
	border-radius: 6px;
}

/* Focus — inside light cards, the rail and the login card */
#apex-account.apxa-shell :is(.apxa-card, .apxa-nav, .apxa-login) :is(a, button, summary, [tabindex], input[type="checkbox"], input[type="radio"]):focus-visible {
	outline: 3px solid var(--apxa-focus-light);
	outline-offset: 2px;
	box-shadow: 0 0 0 5px #ffffff;
}

#apex-account.apxa-shell .apxa-details__summary:focus-visible {
	outline-offset: -3px;
	border-radius: var(--apxa-radius);
	box-shadow: none;
}

#apex-account.apxa-shell .apxa-field__input:focus-visible,
#apex-account.apxa-shell .apxa-qty__input:focus-visible,
#apex-account.apxa-shell .apxa-otp__input:focus-visible,
#apex-account.apxa-shell .apxa-choice input:focus-visible,
#apex-account.apxa-shell .apxa-toggle input:focus-visible {
	outline: none !important;
	box-shadow: none;
}

#apex-account.apxa-shell .apxa-field__input:focus-visible {
	box-shadow: 0 0 0 3px rgba(107, 183, 255, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
}

/* Inputs inside light cards and the login card use the light-ground recipe (amendments §18):
   3px #0051c2 outline, 2px offset, 5px white halo so the ring reads against the card, not the dark field. */
#apex-account.apxa-shell :is(.apxa-card, .apxa-login) .apxa-field__input:focus-visible,
#apex-account.apxa-shell :is(.apxa-card, .apxa-login) .apxa-qty__input:focus-visible {
	outline: 3px solid var(--apxa-focus-light) !important;
	outline-offset: 2px !important;
	box-shadow: 0 0 0 5px #ffffff !important;
}

#apex-account.apxa-shell .apxa-panel__title:focus,
#apex-account.apxa-shell .apxa-panel__title:focus-visible {
	outline: none;
	box-shadow: none;
}

/* ------------------------------------------------------------------ */
/* 25. Breakpoints — cascade order 1160 / 1024 / 980 / 820 / 720 / 520 / 480 / 380 */
/* ------------------------------------------------------------------ */

@media (max-width: 1160px) {
	#apex-account.apxa-shell {
		--apxa-art-hero: var(--apxa-img-command-hero-m);
	}

	#apex-account.apxa-shell .apxa-builder {
		grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
	}

	#apex-account.apxa-shell .apxa-cards--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Rail → sticky pill bar; identity moves into the panel head */
@media (max-width: 1023.98px) {
	#apex-account.apxa-shell .apxa-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
		padding-top: 0;
	}

	#apex-account.apxa-shell .apxa-nav {
		position: sticky;
		top: 0;
		z-index: 30;
		display: block;
		width: auto;
		height: 52px;
		margin: 0 -18px;
		padding: 4px 18px;
		border: 0;
		border-bottom: 1px solid rgba(151, 196, 255, 0.14);
		border-radius: 0;
		background: rgba(3, 9, 20, 0.82);
		color: #f8fbff;
		box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
		-webkit-backdrop-filter: blur(14px);
		backdrop-filter: blur(14px);
		animation: none;
	}

	#apex-account.apxa-shell .apxa-nav__id,
	#apex-account.apxa-shell .apxa-nav__logout,
	#apex-account.apxa-shell .apxa-nav__count {
		display: none;
	}

	#apex-account.apxa-shell .apxa-nav__list {
		position: sticky;
		top: 4px;
		z-index: 30;
		display: flex;
		gap: 6px;
		height: 44px;
		padding: 0 2px;
		overflow-x: auto;
		overflow-y: hidden;
		scroll-snap-type: x proximity;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		-webkit-mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
		mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
	}

	#apex-account.apxa-shell .apxa-nav__list::-webkit-scrollbar {
		display: none;
	}

	#apex-account.apxa-shell .apxa-nav__list li {
		flex: 0 0 auto;
		scroll-snap-align: center;
	}

	#apex-account.apxa-shell .apxa-nav__link {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		height: 44px;
		min-height: 44px;
		padding: 0 14px;
		border: 1px solid rgba(248, 251, 255, 0.14);
		border-radius: 999px;
		background: rgba(255, 255, 255, 0.07);
		color: #e7f2ff;
		font-size: 13px;
		white-space: nowrap;
	}

	#apex-account.apxa-shell .apxa-nav__link .apxa-ico {
		width: 16px;
		height: 16px;
		color: var(--apxa-cyan);
	}

	#apex-account.apxa-shell .apxa-nav__link:hover {
		background: rgba(107, 183, 255, 0.16);
		color: #ffffff;
	}

	#apex-account.apxa-shell .apxa-nav__link[aria-current="page"] {
		border-color: rgba(255, 255, 255, 0.7);
		background: var(--apxa-surface-strong);
		color: var(--apxa-cmd-ink);
		box-shadow: inset 0 -3px 0 var(--apxa-blue), 0 8px 20px rgba(0, 0, 0, 0.2);
	}

	#apex-account.apxa-shell .apxa-nav__link[aria-current="page"] .apxa-ico {
		color: var(--apxa-blue-text);
	}

	/* the bar sits on the dark ground now: dark focus recipe */
	#apex-account.apxa-shell .apxa-nav .apxa-nav__link:focus-visible {
		outline: 2px solid var(--apxa-focus-dark);
		outline-offset: 2px;
		box-shadow: none;
	}

	#apex-account.apxa-shell .apxa-panel__id {
		display: flex;
		align-items: center;
	}
}

@media (max-width: 980px) {
	#apex-account.apxa-shell .apxa-access {
		grid-template-columns: minmax(0, 1fr);
		min-height: auto;
	}

	/* Stacked hero: content-sized, vertical gradient keeps the copy on the dark half, photo peeks at the top edge */
	#apex-account.apxa-shell .apxa-hero {
		flex-direction: column;
		align-items: stretch;
		gap: 18px;
		background:
			linear-gradient(180deg, rgba(3, 8, 15, 0.58), rgba(3, 8, 15, 0.9) 42%, rgba(3, 8, 15, 0.96)),
			var(--apxa-art-hero) center top / cover no-repeat,
			var(--apxa-hero-ground);
	}

	#apex-account.apxa-shell .apxa-hero__main {
		flex: 0 0 auto;
		max-width: none;
	}

	#apex-account.apxa-shell .apxa-hero__side {
		flex: 0 0 auto;
		width: 100%;
		min-width: 0;
	}

	#apex-account.apxa-shell .apxa-cards--2 {
		grid-template-columns: minmax(0, 1fr);
	}

	#apex-account.apxa-shell .apxa-builder {
		grid-template-columns: minmax(0, 1fr);
	}

	#apex-account.apxa-shell .apxa-builder__side {
		position: static;
	}
}

@media (max-width: 820px) {
	#apex-account.apxa-shell .apxa-strip {
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
	}

	#apex-account.apxa-shell .apxa-upgrade {
		grid-template-columns: 44px minmax(0, 1fr);
	}

	#apex-account.apxa-shell .apxa-upgrade > .apxa-btn {
		grid-column: 1 / -1;
		justify-self: stretch;
		width: 100%;
	}

	#apex-account.apxa-shell .apxa-share__sms {
		display: inline-flex;
	}

	#apex-account.apxa-shell .apxa-order__row {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 12px 14px;
	}

	#apex-account.apxa-shell .apxa-order__status {
		justify-self: end;
	}
}

@media (max-width: 720px) {
	#apex-account.apxa-shell {
		--apxa-art-hero: var(--apxa-img-command-hero-m);
		--apxa-art-mountain: var(--apxa-img-mountain-window-m);
		--apxa-art-login: var(--apxa-img-login-panel-m);
		--apxa-art-secure: var(--apxa-img-secure-access-m);
		--apxa-art-earnings: var(--apxa-img-earnings-m);
		--apxa-art-ladder: var(--apxa-img-tier-ladder-m);
		--apxa-art-codes: var(--apxa-img-creator-codes-m);
		--apxa-art-commission: var(--apxa-img-commission-growth-m);
		--apxa-art-orders: var(--apxa-img-activity-table-m);
		--apxa-art-empty: var(--apxa-img-empty-state-m);
		--apxa-art-payout: var(--apxa-img-payout-module-m);
		--apxa-art-elite: var(--apxa-img-elite-review-m);
		--apxa-art-mobile: var(--apxa-img-mobile-card-m);
		--apxa-container: min(100% - 16px, 1260px);
		background-attachment: scroll;
	}

	#apex-account.apxa-shell .apxa-shell__inner--access {
		padding: 16px 0 40px;
	}

	#apex-account.apxa-shell .apxa-nav {
		margin: 0 -8px;
		padding: 4px 8px;
	}

	#apex-account.apxa-shell .apxa-grid {
		padding-bottom: 48px;
	}

	#apex-account.apxa-shell .apxa-card {
		padding: 20px;
	}

	#apex-account.apxa-shell .apxa-card--tight {
		padding: 14px 16px;
	}

	#apex-account.apxa-shell .apxa-card__head {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	/* Panel head on phones: kicker + tier pill on the first row, title / lede / tools full width beneath */
	#apex-account.apxa-shell .apxa-panel__head {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas: "kicker id" "title title" "lede lede" "tools tools";
		align-items: center;
		row-gap: 8px;
		column-gap: 12px;
		padding: 18px 20px;
	}

	#apex-account.apxa-shell .apxa-panel__heading {
		display: contents;
	}

	#apex-account.apxa-shell .apxa-panel__heading > .apxa-kicker {
		grid-area: kicker;
	}

	#apex-account.apxa-shell .apxa-panel__head .apxa-panel__title {
		grid-area: title;
		font-size: clamp(24px, 7vw, 30px);
	}

	#apex-account.apxa-shell .apxa-panel__lede {
		grid-area: lede;
	}

	#apex-account.apxa-shell .apxa-panel__tools {
		grid-area: tools;
		margin-top: 2px;
	}

	#apex-account.apxa-shell .apxa-panel__id {
		grid-area: id;
		justify-self: end;
	}

	#apex-account.apxa-shell .apxa-card__tools {
		justify-content: flex-start;
	}

	#apex-account.apxa-shell .apxa-hero {
		gap: 16px;
		padding: 20px;
	}

	#apex-account.apxa-shell .apxa-hero__main {
		gap: 12px;
	}

	#apex-account.apxa-shell .apxa-hero__title {
		font-size: clamp(28px, 8vw, 36px);
	}

	#apex-account.apxa-shell .apxa-quick {
		padding: 8px;
	}


	/* Tables → stacked cards */
	#apex-account.apxa-shell .apxa-table-wrap {
		overflow: visible;
	}

	#apex-account.apxa-shell .apxa-table,
	#apex-account.apxa-shell .apxa-table tbody {
		display: grid;
		gap: 10px;
		border-spacing: 0;
	}

	#apex-account.apxa-shell .apxa-table thead,
	#apex-account.apxa-shell .apxa-table caption {
		display: none;
	}

	#apex-account.apxa-shell .apxa-table tbody tr {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 11px 14px;
		padding: 14px;
		border: 1px solid rgba(54, 89, 118, 0.22);
		border-radius: var(--apxa-radius);
		background: rgba(255, 255, 255, 0.58);
		box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.46), 0 16px 34px rgba(0, 0, 0, 0.08);
	}

	#apex-account.apxa-shell .apxa-table td {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		gap: 5px;
		min-width: 0;
		padding: 0;
		border: 0 !important;
		border-radius: 0;
		font-size: 13px;
		line-height: 1.3;
		text-align: left;
		white-space: normal;
		overflow-wrap: anywhere;
	}

	#apex-account.apxa-shell .apxa-table td::before {
		content: attr(data-label);
		color: var(--apxa-cmd-copy);
		font-size: 12px;
		font-weight: 800;
		line-height: 1;
		letter-spacing: 0.8px;
		text-transform: uppercase;
	}

	#apex-account.apxa-shell .apxa-table td .apxa-pill {
		justify-self: start;
	}

	#apex-account.apxa-shell .apxa-table td:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}

	#apex-account.apxa-shell .apxa-ladder__segs {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}


	/* Access shell: login card first; only the mountain + login panel keep artwork */
	#apex-account.apxa-shell .apxa-access {
		width: min(100% - 16px, 1220px);
		gap: 16px;
		padding: 16px;
	}

	#apex-account.apxa-shell .apxa-access__copy {
		padding: 8px 4px 4px;
	}

	#apex-account.apxa-shell .apxa-access__title {
		font-size: clamp(30px, 8.5vw, 42px);
	}

	#apex-account.apxa-shell .apxa-access__lede {
		max-width: 34ch;
		font-size: 15px;
		line-height: 1.5;
	}

	#apex-account.apxa-shell .apxa-access__points {
		grid-template-columns: minmax(0, 1fr);
	}

	#apex-account.apxa-shell .apxa-card--point {
		min-height: 118px;
		padding: 16px;
	}

	#apex-account.apxa-shell .apxa-access .apxa-card--photo-mobile {
		background-image: var(--apxa-card-tint);
	}

	#apex-account.apxa-shell .apxa-access__actions {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		width: 100%;
	}

	#apex-account.apxa-shell .apxa-access__actions .apxa-btn {
		width: 100%;
	}

	#apex-account.apxa-shell .apxa-login {
		order: -1;
	}

	#apex-account.apxa-shell .apxa-metrics {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	#apex-account.apxa-shell .apxa-details__summary {
		min-height: 50px;
		padding-left: 14px;
	}

	#apex-account.apxa-shell .apxa-line {
		grid-template-columns: 48px minmax(0, 1fr) auto;
	}

	#apex-account.apxa-shell .apxa-line__img {
		width: 48px;
		height: 48px;
	}
}

@media (max-width: 520px) {
	#apex-account.apxa-shell .apxa-card {
		padding: 16px;
	}

	#apex-account.apxa-shell .apxa-alert,
	#apex-account.apxa-shell .apxa-notice {
		padding: 11px 12px;
	}

	#apex-account.apxa-shell .apxa-metrics {
		grid-template-columns: minmax(0, 1fr);
	}

	#apex-account.apxa-shell .apxa-metric {
		min-height: 96px;
	}

	#apex-account.apxa-shell .apxa-copy-group:not(.apxa-copy-group--link) {
		grid-template-columns: minmax(0, 1fr);
	}

	#apex-account.apxa-shell .apxa-copy-group:not(.apxa-copy-group--link) .apxa-btn {
		width: 100%;
	}

	#apex-account.apxa-shell .apxa-copy-group--link .apxa-btn {
		min-width: 92px;
		padding-inline: 12px;
	}

	#apex-account.apxa-shell .apxa-order__row {
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
	}

	#apex-account.apxa-shell .apxa-order__status {
		justify-self: start;
	}

	#apex-account.apxa-shell .apxa-order__total {
		justify-items: start;
		text-align: left;
	}

	#apex-account.apxa-shell .apxa-order__tracking {
		grid-template-columns: 18px minmax(0, 1fr);
	}

	#apex-account.apxa-shell .apxa-order__tracking > .apxa-link-btn {
		grid-column: 2;
		justify-self: start;
	}

	#apex-account.apxa-shell .apxa-btn-row > .apxa-btn,
	#apex-account.apxa-shell .apxa-btn-row > .apxa-inline-form {
		flex: 1 1 calc(50% - 5px);
	}

	/* An odd number of buttons: the last one spans the row instead of leaving a half-width orphan */
	#apex-account.apxa-shell .apxa-btn-row > :is(.apxa-btn, .apxa-inline-form):nth-child(odd of :is(.apxa-btn, .apxa-inline-form)):nth-last-child(1 of :is(.apxa-btn, .apxa-inline-form)) {
		flex-basis: 100%;
	}

	#apex-account.apxa-shell .apxa-btn-row > .apxa-inline-form > .apxa-btn {
		width: 100%;
	}

	#apex-account.apxa-shell .apxa-btn-row > .apxa-link-btn {
		flex: 1 1 100%;
	}

	#apex-account.apxa-shell .apxa-item {
		grid-template-columns: 48px minmax(0, 1fr) minmax(44px, auto);
		gap: 10px 12px;
	}

	#apex-account.apxa-shell .apxa-item__img {
		grid-column: 1;
		grid-row: 1;
	}

	#apex-account.apxa-shell .apxa-item__body {
		grid-column: 2;
		grid-row: 1;
	}

	#apex-account.apxa-shell .apxa-item > .apxa-btn--icon {
		grid-column: 3;
		grid-row: 1;
		justify-self: end;
	}

	#apex-account.apxa-shell .apxa-qty {
		grid-column: 1 / 3;
		grid-row: 2;
	}

	#apex-account.apxa-shell .apxa-item__total {
		grid-column: 3;
		grid-row: 2;
		justify-self: end;
		align-self: center;
	}

	#apex-account.apxa-shell .apxa-field-row {
		grid-template-columns: minmax(0, 1fr);
	}

	#apex-account.apxa-shell .apxa-sub__facts {
		grid-template-columns: minmax(0, 1fr);
	}

	#apex-account.apxa-shell .apxa-sub__head {
		flex-direction: column;
		align-items: flex-start;
	}

	#apex-account.apxa-shell .apxa-mini-ladder {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	#apex-account.apxa-shell .apxa-tool-head {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}

	#apex-account.apxa-shell .apxa-upgrade {
		grid-template-columns: minmax(0, 1fr);
	}

	#apex-account.apxa-shell .apxa-upgrade__icon {
		width: 40px;
		height: 40px;
	}

	#apex-account.apxa-shell .apxa-choices {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	#apex-account.apxa-shell .apxa-perk {
		grid-template-columns: minmax(0, 1fr);
		gap: 8px;
	}

	#apex-account.apxa-shell .apxa-perk .apxa-tier-badge {
		justify-self: start;
		min-width: 0;
	}

	#apex-account.apxa-shell .apxa-login__resend {
		flex-direction: column;
		align-items: stretch;
	}

	#apex-account.apxa-shell .apxa-login__resend form[data-apxa-form="resend_phone"] {
		flex: 0 0 auto;
	}

	#apex-account.apxa-shell .apxa-login__resend .apxa-inline-form,
	#apex-account.apxa-shell .apxa-login__resend .apxa-link-btn {
		width: 100%;
	}

	#apex-account.apxa-shell .apxa-hero__stats {
		gap: 10px;
	}

	#apex-account.apxa-shell .apxa-pager {
		flex-wrap: wrap;
		justify-content: center;
	}

	#apex-account.apxa-shell .apxa-pager__state {
		order: 3;
		flex: 1 1 100%;
	}
}

@media (max-width: 480px) {
	#apex-account.apxa-shell .apxa-otp {
		--apxa-otp-cell: 40px;
		--apxa-otp-gap: 6px;
	}

	#apex-account.apxa-shell .apxa-access {
		padding: 12px;
	}

	#apex-account.apxa-shell .apxa-login {
		padding: 16px;
	}
}

@media (max-width: 380px) {
	#apex-account.apxa-shell .apxa-otp {
		--apxa-otp-cell: 38px;
		--apxa-otp-gap: 6px;
	}

	#apex-account.apxa-shell .apxa-ladder__segs {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	#apex-account.apxa-shell .apxa-rates {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
	}

	#apex-account.apxa-shell .apxa-rates > span {
		justify-content: center;
	}

	#apex-account.apxa-shell .apxa-login {
		padding: 16px;
	}

	#apex-account.apxa-shell .apxa-card {
		padding: 16px;
	}

	#apex-account.apxa-shell .apxa-panel__head {
		padding: 16px;
	}

	#apex-account.apxa-shell .apxa-hero {
		padding: 18px 16px;
	}

	#apex-account.apxa-shell .apxa-btn {
		padding-inline: 14px;
	}

	#apex-account.apxa-shell .apxa-order,
	#apex-account.apxa-shell .apxa-sub {
		padding: 14px;
	}
}

/* 320px floor: the six cells must fit inside card padding (login 16 + access 12) and stay ≥ 36px wide */
@media (max-width: 340px) {
	#apex-account.apxa-shell .apxa-otp {
		--apxa-otp-cell: 36px;
		--apxa-otp-gap: 4px;
	}

	#apex-account.apxa-shell .apxa-otp__input {
		font-size: 24px;
	}
}

/* Touch (or any phone-width viewport): every small button reaches 44px */
@media (pointer: coarse), (max-width: 480px) {
	#apex-account.apxa-shell .apxa-btn--sm {
		min-height: 44px;
	}

	#apex-account.apxa-shell .apxa-details__summary {
		min-height: 52px;
	}
}

/* ------------------------------------------------------------------ */
/* 26. Reduced motion                                                    */
/* ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
	#apex-account.apxa-shell,
	#apex-account.apxa-shell *,
	#apex-account.apxa-shell *::before,
	#apex-account.apxa-shell *::after {
		animation-duration: 1ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 1ms !important;
		scroll-behavior: auto !important;
	}

	#apex-account.apxa-shell {
		background-attachment: scroll !important;
	}

	#apex-account.apxa-shell .apxa-btn::before {
		display: none;
	}
}

/* ------------------------------------------------------------------ */
/* 27. Half-width cards: container queries (progressive; without support
   the <=720 media rules still apply and tables scroll inside .apxa-table-wrap) */
/* ------------------------------------------------------------------ */

#apex-account.apxa-shell .apxa-card {
	container-type: inline-size;
	container-name: apxa-card;
}

/* Cards narrower than 600px (two-up grids on 1024-1366 desktops): six-across ladders wrap
   to two rows of three, tables use card mode. */
@container apxa-card (max-width: 600px) {
	#apex-account.apxa-shell .apxa-mini-ladder,
	#apex-account.apxa-shell .apxa-ladder__segs {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	#apex-account.apxa-shell .apxa-table-wrap {
		overflow: visible;
	}

	#apex-account.apxa-shell .apxa-table,
	#apex-account.apxa-shell .apxa-table tbody {
		display: grid;
		gap: 10px;
		border-spacing: 0;
	}

	#apex-account.apxa-shell .apxa-table thead,
	#apex-account.apxa-shell .apxa-table caption {
		display: none;
	}

	#apex-account.apxa-shell .apxa-table tbody tr {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 11px 14px;
		padding: 14px;
		border: 1px solid rgba(54, 89, 118, 0.22);
		border-radius: var(--apxa-radius);
		background: rgba(255, 255, 255, 0.58);
		box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.46), 0 16px 34px rgba(0, 0, 0, 0.08);
	}

	#apex-account.apxa-shell .apxa-table td {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		gap: 5px;
		min-width: 0;
		padding: 0;
		border: 0 !important;
		border-radius: 0;
		font-size: 13px;
		line-height: 1.3;
		text-align: left;
		white-space: normal;
		overflow-wrap: anywhere;
	}

	#apex-account.apxa-shell .apxa-table td::before {
		content: attr(data-label);
		color: var(--apxa-cmd-copy);
		font-size: 12px;
		font-weight: 800;
		line-height: 1;
		letter-spacing: 0.8px;
		text-transform: uppercase;
	}

	#apex-account.apxa-shell .apxa-table td .apxa-pill {
		justify-self: start;
	}

	#apex-account.apxa-shell .apxa-table td:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}

	#apex-account.apxa-shell .apxa-table a {
		padding: 14px 0;
		margin: -14px 0;
	}
}

/* Builder item rows in a narrow products card: qty + total drop to a second row */
@container apxa-card (max-width: 520px) {
	#apex-account.apxa-shell .apxa-item {
		grid-template-columns: 48px minmax(0, 1fr) minmax(44px, auto);
		gap: 10px 12px;
	}

	#apex-account.apxa-shell .apxa-item__img {
		grid-column: 1;
		grid-row: 1;
	}

	#apex-account.apxa-shell .apxa-item__body {
		grid-column: 2;
		grid-row: 1;
	}

	#apex-account.apxa-shell .apxa-item > .apxa-btn--icon {
		grid-column: 3;
		grid-row: 1;
		justify-self: end;
	}

	#apex-account.apxa-shell .apxa-qty {
		grid-column: 1 / 3;
		grid-row: 2;
	}

	#apex-account.apxa-shell .apxa-item__total {
		grid-column: 3;
		grid-row: 2;
		justify-self: end;
		align-self: center;
	}

	#apex-account.apxa-shell .apxa-metrics {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@container apxa-card (max-width: 400px) {
	#apex-account.apxa-shell .apxa-metrics {
		grid-template-columns: minmax(0, 1fr);
	}

	#apex-account.apxa-shell .apxa-order__row {
		grid-template-columns: minmax(0, 1fr);
	}

	#apex-account.apxa-shell .apxa-order__status,
	#apex-account.apxa-shell .apxa-orders--compact .apxa-order__status {
		justify-self: start;
	}

	#apex-account.apxa-shell .apxa-order__total {
		justify-items: start;
		text-align: left;
	}

	#apex-account.apxa-shell .apxa-copy-group:not(.apxa-copy-group--link) {
		grid-template-columns: minmax(0, 1fr);
	}

	#apex-account.apxa-shell .apxa-copy-group:not(.apxa-copy-group--link) .apxa-btn {
		width: 100%;
	}

	#apex-account.apxa-shell .apxa-mini-ladder,
	#apex-account.apxa-shell .apxa-ladder__segs {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ------------------------------------------------------------------ */
/* 27. Phone sign-in (PHONE-LOGIN.md §7–§8): method panels + switch,     */
/*     tel input, "Add your email" strip, unavailable quick actions      */
/* ------------------------------------------------------------------ */

#apex-account.apxa-shell .apxa-login__method {
	display: grid;
	gap: 16px;
	min-width: 0;
}

#apex-account.apxa-shell .apxa-login__method[hidden] {
	display: none;
}

#apex-account.apxa-shell .apxa-login__switch {
	margin: -4px 0 0;
	text-align: center;
}

#apex-account.apxa-shell .apxa-login__switch .apxa-link-btn {
	max-width: 100%;
	min-height: 44px;
}

/* Small ghost link-button: no fill until hover, keeps the 44px hit box */
#apex-account.apxa-shell .apxa-link-btn--ghost {
	border-color: transparent;
	background: transparent;
	font-size: 12.5px;
}

#apex-account.apxa-shell .apxa-link-btn--ghost:hover {
	border-color: rgba(0, 108, 255, 0.27);
	background: rgba(0, 108, 255, 0.075);
	transform: none;
}

#apex-account.apxa-shell .apxa-field__input[type="tel"] {
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.02em;
}

/* Overview: compact "Add your email" card for phone-only members (above the hero) */
#apex-account.apxa-shell .apxa-strip--needs-email {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin-bottom: 18px;
	border-left: 4px solid var(--apxa-blue);
}

#apex-account.apxa-shell .apxa-strip--needs-email > .apxa-ico {
	flex: 0 0 auto;
	color: var(--apxa-blue);
}

#apex-account.apxa-shell .apxa-strip--needs-email .apxa-strip__text {
	display: grid;
	flex: 1 1 220px;
	gap: 2px;
	min-width: 0;
}

#apex-account.apxa-shell .apxa-strip--needs-email .apxa-strip__text strong {
	color: var(--apxa-cmd-ink);
	font-size: 14px;
	font-weight: 900;
	line-height: 1.3;
}

#apex-account.apxa-shell .apxa-strip--needs-email .apxa-strip__text span {
	color: var(--apxa-cmd-copy);
	font-size: 12.5px;
	font-weight: 750;
	line-height: 1.5;
}

#apex-account.apxa-shell .apxa-strip--needs-email .apxa-btn {
	flex: 0 0 auto;
}

/* Quick action that needs an email first (reason on the second line) — dimmed but still readable */
#apex-account.apxa-shell .apxa-quick__item.is-disabled {
	opacity: 0.72;
	cursor: not-allowed;
	background: rgba(255, 255, 255, 0.04);
	border-style: dashed;
}

#apex-account.apxa-shell .apxa-quick__item.is-disabled .apxa-ico {
	color: #8fb4dc;
}

#apex-account.apxa-shell .apxa-quick__item.is-disabled:hover {
	transform: none;
}

/* Settings: the email section asks for attention while no address is on file */
#apex-account.apxa-shell .apxa-details--attention > .apxa-details__summary > .apxa-ico {
	color: var(--apxa-blue);
}

@media (max-width: 480px) {
	#apex-account.apxa-shell .apxa-strip--needs-email {
		align-items: flex-start;
	}

	#apex-account.apxa-shell .apxa-strip--needs-email .apxa-btn {
		width: 100%;
	}
}
