/*
 * Account screens (Nxo_Auth), 1.3.0.
 * Sign-in and registration: focused chrome (templates/auth.php), one centred card (400 px; 720 px for the account
 * type step) on a full-bleed canvas over a quiet line drawing of the planet's limb. IBM Plex Sans throughout, 600 for
 * headings; Plex Mono only for small labels and codes. 44 px controls, 8 px rhythm, hairline borders. Red is the
 * primary action and the focus ring, nothing else. Tokens come from the nexus-observatory-ui kit (--nxo-*), with
 * fallbacks to the theme's (--nx-*). Light and dark follow data-theme on <html> (or the system without it).
 */
.nxo-auth-page, .nxo-auth, .nxo-hub {
	--a-bg: var(--nxo-bg, var(--nx-bg-canvas));
	--a-surface: var(--nxo-surface, var(--nx-bg-surface));
	--a-hover: var(--nxo-hover, var(--nx-bg-hover));
	--a-hair: var(--nxo-hair, var(--nx-border-hairline));
	--a-hair2: var(--nxo-hair2, var(--nx-border-hairline-strong));
	--a-t1: var(--nxo-t1, var(--nx-text-primary));
	--a-t2: var(--nxo-t2, var(--nx-text-secondary));
	--a-t3: var(--nxo-t3, var(--nx-text-muted));
	--a-ink: var(--nxo-ink);
	--a-accent: var(--nxo-accent, var(--nx-primary-bg));
	--a-accent-hover: var(--nxo-btn-primary-hover, var(--nx-primary-hover));
	--a-on-accent: var(--nxo-on-accent, var(--nx-primary-ink));
	--a-ring: color-mix(in srgb, var(--a-accent) 32%, transparent);
	--a-err: var(--nxo-accent-hot, var(--a-accent));
	--a-ok: var(--nx-positive, var(--a-t1));
	--a-sans: var(--nxo-sans, var(--nx-font-sans));
	--a-mono: var(--nxo-mono, var(--nx-font-mono));
	--a-ease: var(--nxo-ease-standard, cubic-bezier(.2, 0, 0, 1));
	/* Dark: the canvas is the page colour and the card a step up; light reverses it (a white card on a grey canvas). */
	--a-canvas: var(--a-bg);
	--a-card: var(--a-surface);
	--a-field: var(--a-bg);
	--a-shadow: 0 1px 0 rgba(var(--a-ink), .04) inset, 0 32px 64px -32px rgba(var(--nxo-paper), .8);
}
:root[data-theme="light"] :is(.nxo-auth-page, .nxo-auth, .nxo-hub) {
	--a-canvas: var(--a-surface); --a-card: var(--a-bg); --a-field: var(--a-bg); --a-err: var(--nxo-ramp-5, var(--a-accent)); --a-ring: color-mix(in srgb, var(--a-accent) 28%, transparent);
	--a-shadow: 0 1px 2px rgba(var(--a-ink), .04), 0 24px 48px -28px rgba(var(--a-ink), .22);
}
@media (prefers-color-scheme: light) {
	:root:not([data-theme]) :is(.nxo-auth-page, .nxo-auth, .nxo-hub) {
		--a-canvas: var(--a-surface); --a-card: var(--a-bg); --a-field: var(--a-bg); --a-err: var(--nxo-ramp-5, var(--a-accent)); --a-ring: color-mix(in srgb, var(--a-accent) 28%, transparent);
		--a-shadow: 0 1px 2px rgba(var(--a-ink), .04), 0 24px 48px -28px rgba(var(--a-ink), .22);
	}
}
.nxo-auth, .nxo-hub { box-sizing: border-box; font: 400 15px/1.5 var(--a-sans); color: var(--a-t2); }
.nxo-auth *, .nxo-hub *, .nxo-auth *::before, .nxo-hub *::after, .nxo-auth-page * { box-sizing: border-box; }
.nxo-auth [hidden], .nxo-hub [hidden], .nxo-banner[hidden] { display: none !important; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- focused chrome ---------- */
body.nxo-auth-body { margin: 0; background: var(--nxo-surface); }
:root[data-theme="dark"] body.nxo-auth-body { background: var(--nxo-bg); }
.nxo-auth-page { position: relative; isolation: isolate; display: grid; grid-template-rows: auto 1fr auto; min-height: 100vh; min-height: 100svh; overflow-x: clip; background: var(--a-canvas); color: var(--a-t2); font: 400 15px/1.5 var(--a-sans); }
.nxo-skip { position: absolute; z-index: 10; top: 8px; left: 8px; padding: 10px 14px; border-radius: 8px; background: var(--a-t1); color: var(--a-bg); font-weight: 600; text-decoration: none; transform: translateY(-160%); }
.nxo-skip:focus { transform: none; outline: 2px solid var(--a-accent); outline-offset: 2px; }
.nxo-abar { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; padding: 0 16px; }
.nxo-abar__brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font: 600 15px/1 var(--a-sans); letter-spacing: -.01em; color: var(--a-t1); text-decoration: none; }
.nxo-abar__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--a-accent); }
.nxo-abar__r { display: flex; align-items: center; gap: 8px; }
.nxo-abar__back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; justify-content: center; padding: 0 8px; border-radius: 8px; font: 500 14px/1 var(--a-sans); color: var(--a-t2); text-decoration: none; }
.nxo-abar__back:hover { color: var(--a-t1); background: var(--a-hover); box-shadow: inset 0 0 0 1px var(--a-accent); }
.nxo-abar__back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.nxo-abar__back-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nxo-auth-page .nxo-um { display: none !important; } /* the account menu has nothing to add on these pages */
.nxo-auth-page :focus-visible { outline: 2px solid var(--a-accent); outline-offset: 2px; }
.nxo-auth-page__main { position: relative; z-index: 1; display: flex; justify-content: center; align-items: flex-start; min-width: 0; padding: 8px 16px 48px; }
.nxo-afoot { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 16px; padding: 16px; font: 400 12px/1.5 var(--a-sans); color: var(--a-t3); text-align: center; }
.nxo-afoot p { margin: 0; }
.nxo-afoot nav { display: flex; gap: 4px 12px; }
.nxo-afoot a { display: inline-flex; align-items: center; min-height: 24px; color: var(--a-t2); text-decoration: none; }
.nxo-afoot a:hover { color: var(--a-t1); text-decoration: underline; text-decoration-color: var(--a-accent); text-underline-offset: 3px; }
@media (min-width: 560px) {
	.nxo-abar { padding: 0 24px; }
	.nxo-abar__back-t { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
	.nxo-abar__back { padding: 0 12px 0 8px; }
	.nxo-auth-page__main { padding: clamp(16px, 7vh, 88px) 24px 64px; }
}

/* ---------- the limb: a planet's horizon with its graticule, drifting slowly ---------- */
.nxo-limb { position: fixed; z-index: 0; left: 0; right: 0; bottom: 0; height: min(42vh, 420px); color: var(--a-t1); pointer-events: none; }
.nxo-limb svg { display: block; width: 100%; height: 100%; }
.nxo-limb svg * { vector-effect: non-scaling-stroke; }
.nxo-limb__par, .nxo-limb__mer { fill: none; stroke: currentColor; stroke-width: 1; opacity: .09; }
.nxo-limb__edge { fill: none; stroke: currentColor; stroke-width: 1.25; opacity: .32; }
.nxo-limb__grid { transform-box: view-box; transform-origin: 800px 1680px; }
@media (prefers-reduced-motion: no-preference) {
	.nxo-limb__grid { animation: nxo-drift 120s var(--a-ease) infinite alternate; }
	@keyframes nxo-drift { from { transform: rotate(-2.4deg); } to { transform: rotate(2.4deg); } }
}
:root[data-theme="light"] .nxo-limb__par, :root[data-theme="light"] .nxo-limb__mer { opacity: .12; }
/* Phones: the drawing sits under the content at the end of the page, never behind the form. */
@media (max-width: 559px) {
	.nxo-auth-page .nxo-auth { position: static; }
	.nxo-auth-page .nxo-limb { position: absolute; height: 180px; }
	.nxo-auth-page__main { padding-bottom: 120px; }
}

/* ---------- the card ---------- */
.nxo-auth { position: relative; display: flex; justify-content: center; width: 100%; padding: 32px 16px 64px; }
.nxo-auth-page .nxo-auth { padding: 0; }
.nxo-auth__main { position: relative; z-index: 1; display: flex; justify-content: center; width: 100%; }
.nxo-auth__main:focus { outline: none; }
.nxo-auth .nxo-auth__card.nxo-native { width: 100%; max-width: 400px; margin: 0; padding: 0; border: 0; background: transparent; transition: max-width .3s var(--a-ease); }
.nxo-auth .nxo-auth__card:has(.nxo-step[data-step="2"]:not([hidden])) { max-width: 720px; }
.nxo-auth__in { position: relative; }
.nxo-auth__in.is-morphing { overflow: hidden; }
@media (min-width: 560px) {
	.nxo-auth .nxo-auth__card.nxo-native { max-width: 448px; padding: 40px; border: 1px solid var(--a-hair); border-radius: 14px; background: var(--a-card); box-shadow: var(--a-shadow); }
	.nxo-auth .nxo-auth__card:has(.nxo-step[data-step="2"]:not([hidden])) { max-width: 760px; }
}
.nxo-auth__head { margin: 0 0 24px; }
.nxo-auth__h { margin: 0; font: 600 24px/1.2 var(--a-sans); letter-spacing: -.02em; color: var(--a-t1); text-wrap: balance; }
.nxo-auth__h:focus { outline: none; }
.nxo-auth__sub { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: var(--a-t2); }
@media (min-width: 560px) { .nxo-auth__h { font-size: 28px; } }

/* Fields: 44 px, 8 px radius, hairline border, a soft red ring on focus. */
.nxo-auth .nxo-form { margin: 0; padding: 0; background: none; }
.nxo-auth .nxo-fields { display: grid; grid-template-columns: 1fr; gap: 16px; max-width: none; margin: 0 0 24px; }
.nxo-auth .nxo-fields > div { display: grid; gap: 16px; min-width: 0; }
.nxo-auth .nxo-fields > div[data-field] { display: block; }
.nxo-auth .nxo-field { min-width: 0; }
:is(.nxo-auth, .nxo-hub) .nxo-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
:is(.nxo-auth, .nxo-hub) .nxo-label-row .nxo-label { margin: 0; }
:is(.nxo-auth, .nxo-hub) .nxo-label { display: block; margin: 0 0 6px; font: 500 13px/1.4 var(--a-sans); letter-spacing: 0; text-transform: none; color: var(--a-t1); }
:is(.nxo-auth, .nxo-hub) .nxo-label small { font: 400 12px/1.4 var(--a-sans); color: var(--a-t3); }
:is(.nxo-auth, .nxo-hub) .nxo-input { display: block; width: 100%; height: 44px; min-height: 44px; margin: 0; padding: 0 12px; border: 1px solid var(--a-hair2); border-radius: 8px; background: var(--a-field); color: var(--a-t1); font: 400 15px/1 var(--a-sans); box-shadow: none; transition: border-color .15s, box-shadow .15s; }
:is(.nxo-auth, .nxo-hub) .nxo-input::placeholder { color: var(--a-t3); }
:is(.nxo-auth, .nxo-hub) .nxo-input:hover { border-color: var(--a-accent); }
:is(.nxo-auth, .nxo-hub) .nxo-input:focus { outline: none; border-color: var(--a-accent); box-shadow: 0 0 0 3px var(--a-ring); }
:is(.nxo-auth, .nxo-hub) .nxo-input[aria-invalid="true"] { border-color: var(--a-err); }
:is(.nxo-auth, .nxo-hub) .nxo-input:-webkit-autofill { -webkit-text-fill-color: var(--a-t1); box-shadow: 0 0 0 1000px var(--a-field) inset; caret-color: var(--a-t1); }
:is(.nxo-auth, .nxo-hub) .nxo-selwrap { position: relative; }
:is(.nxo-auth, .nxo-hub) .nxo-selwrap select { appearance: none; padding-right: 40px; cursor: pointer; }
:is(.nxo-auth, .nxo-hub) .nxo-selwrap::after { content: ""; position: absolute; top: 17px; right: 16px; width: 7px; height: 7px; border-right: 1.5px solid var(--a-t2); border-bottom: 1.5px solid var(--a-t2); transform: rotate(45deg); pointer-events: none; }
:is(.nxo-auth, .nxo-hub) .nxo-help { margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: var(--a-t3); }
:is(.nxo-auth, .nxo-hub) .nxo-err { margin: 6px 0 0; font-size: 13px; line-height: 1.4; color: var(--a-err); }
:is(.nxo-auth, .nxo-hub) .nxo-check { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 4px 10px; align-items: start; margin: 0; }
:is(.nxo-auth, .nxo-hub) .nxo-check input[type="checkbox"] { appearance: none; display: grid; place-items: center; width: 18px; height: 18px; margin: 2px 0 0; border: 1px solid var(--a-hair2); border-radius: 5px; background: var(--a-field); cursor: pointer; transition: background .15s, border-color .15s; }
:is(.nxo-auth, .nxo-hub) .nxo-check input[type="checkbox"]:hover { border-color: var(--a-accent); }
:is(.nxo-auth, .nxo-hub) .nxo-check input[type="checkbox"]:checked { background: var(--a-t1); border-color: var(--a-t1); }
:is(.nxo-auth, .nxo-hub) .nxo-check input[type="checkbox"]:checked::after { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--a-card); border-bottom: 2px solid var(--a-card); transform: translateY(-1px) rotate(-45deg); }
:is(.nxo-auth, .nxo-hub) .nxo-check input[type="checkbox"]:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--a-ring); border-color: var(--a-accent); }
:is(.nxo-auth, .nxo-hub) .nxo-check input[aria-invalid="true"] { border-color: var(--a-err); }
:is(.nxo-auth, .nxo-hub) .nxo-check label { font-size: 14px; line-height: 1.45; color: var(--a-t2); cursor: pointer; }
.nxo-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Buttons: the primary is the card's width, black on red. */
.nxo-auth .nxo-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.nxo-auth .nxo-acts--stack { flex-direction: column; }
.nxo-auth .nxo-acts--split { justify-content: space-between; margin-top: 24px; }
.nxo-auth .nxo-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border: 1px solid transparent; border-radius: 8px; font: 600 15px/1 var(--a-sans); letter-spacing: -.005em; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .1s; }
.nxo-auth .nxo-btn:active { transform: translateY(1px); }
.nxo-auth .nxo-btn[data-variant="primary"] { flex: 1 1 auto; width: 100%; background: var(--a-accent); color: var(--a-on-accent); }
.nxo-auth .nxo-btn[data-variant="primary"]:hover { background: var(--a-accent-hover); }
.nxo-auth .nxo-acts--split .nxo-btn[data-variant="primary"] { width: auto; flex: 0 1 200px; }
.nxo-auth .nxo-btn[data-variant="secondary"] { width: 100%; background: transparent; border-color: var(--a-hair2); color: var(--a-t1); }
.nxo-auth .nxo-btn[data-variant="secondary"]:hover { background: var(--a-hover); border-color: var(--a-accent); }
.nxo-auth .nxo-btn[data-variant="ghost"] { background: transparent; color: var(--a-t2); }
.nxo-auth .nxo-btn[data-variant="ghost"]:hover { background: var(--a-hover); color: var(--a-t1); box-shadow: inset 0 0 0 1px var(--a-accent); }
.nxo-auth .nxo-btn[disabled]:not([aria-busy]) { cursor: default; opacity: 1; background: transparent; border-color: var(--a-hair); color: var(--a-t3); transform: none; }
.nxo-auth .nxo-btn:focus-visible { outline: 2px solid var(--a-accent); outline-offset: 2px; }
.nxo-btn[aria-busy="true"] { position: relative; color: transparent !important; pointer-events: none; }
.nxo-btn[aria-busy="true"]::after { content: ""; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; border: 2px solid var(--a-on-accent); border-right-color: transparent; border-radius: 50%; animation: nxo-spin .7s linear infinite; }
.nxo-btn:not([data-variant="primary"])[aria-busy="true"]::after { border-color: var(--a-t1); border-right-color: transparent; }
@keyframes nxo-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .nxo-btn[aria-busy="true"]::after { animation-duration: 2s; } .nxo-auth .nxo-btn, .nxo-auth .nxo-auth__card.nxo-native { transition: none; } }

/* Text actions and links. */
.nxo-auth a { color: var(--a-t1); text-decoration: underline; text-decoration-color: var(--a-hair2); text-underline-offset: 3px; }
.nxo-auth a:hover { text-decoration-color: var(--a-accent); }
.nxo-auth a.nxo-btn { text-decoration: none; }
.nxo-auth .nxo-link { display: inline-flex; align-items: center; min-height: 24px; padding: 0; border: 0; background: none; font: 500 13px/1.4 var(--a-sans); color: var(--a-t1); text-decoration: underline; text-decoration-color: var(--a-hair2); text-underline-offset: 3px; cursor: pointer; }
.nxo-auth .nxo-link:hover { text-decoration-color: var(--a-accent); }
.nxo-auth :focus-visible { outline: 2px solid var(--a-accent); outline-offset: 2px; border-radius: 4px; }
:is(.nxo-auth, .nxo-hub) .nxo-input:focus-visible { outline: none; border-radius: 8px; }

/* The account chip of the second step. */
.nxo-chip { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 12px 6px 6px; border: 1px solid var(--a-hair); border-radius: 999px; background: var(--a-field); }
.nxo-chip__av { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--a-hover); font: 600 13px/1 var(--a-sans); color: var(--a-t1); text-transform: uppercase; }
.nxo-chip__id { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: var(--a-t1); }

/* Banners: errors, notices, successes. */
:is(.nxo-auth, .nxo-hub) .nxo-banner { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; margin: 0 0 20px; padding: 12px 14px; border: 1px solid var(--a-hair2); border-radius: 8px; background: var(--a-field); }
:is(.nxo-auth, .nxo-hub) .nxo-banner:focus { outline: none; }
:is(.nxo-auth, .nxo-hub) .nxo-banner > p { flex: 1; margin: 0; font-size: 14px; line-height: 1.45; color: var(--a-t1); }
:is(.nxo-auth, .nxo-hub) .nxo-banner > .nxo-dot { flex: none; width: 8px; height: 8px; margin-top: .45em; border-radius: 50%; background: var(--a-t2); }
:is(.nxo-auth, .nxo-hub) .nxo-banner[data-tone="ok"] > .nxo-dot { background: var(--a-ok); }
:is(.nxo-auth, .nxo-hub) .nxo-banner[data-tone="error"] { border-color: var(--a-err); background: color-mix(in srgb, var(--a-accent) 7%, transparent); }
:is(.nxo-auth, .nxo-hub) .nxo-banner[data-tone="error"] > .nxo-dot { background: var(--a-err); }
:is(.nxo-auth, .nxo-hub) .nxo-banner > .nxo-summary { flex-basis: 100%; margin: 0; padding-left: 18px; font-size: 14px; }
@media (prefers-reduced-motion: no-preference) { :is(.nxo-auth, .nxo-hub) .nxo-banner:not([hidden]) { animation: nxo-in .2s var(--a-ease); } @keyframes nxo-in { from { opacity: 0; transform: translateY(-4px); } } }

/* Password: show/hide and strength. */
.nxo-pw { position: relative; }
:is(.nxo-auth, .nxo-hub) .nxo-pw .nxo-input { padding-right: 72px; }
.nxo-pw__toggle { position: absolute; top: 6px; right: 6px; height: 32px; min-width: 56px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: var(--a-t2); font: 500 13px/1 var(--a-sans); cursor: pointer; }
.nxo-pw__toggle:hover { background: var(--a-hover); color: var(--a-t1); box-shadow: inset 0 0 0 1px var(--a-accent); }
.nxo-meter { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 12px; color: var(--a-t3); }
.nxo-meter__bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; flex: 0 0 120px; }
.nxo-meter__bar i { height: 3px; border-radius: 2px; background: var(--a-hair2); transition: background .2s; }
.nxo-meter[data-score="1"] i:nth-child(-n+1), .nxo-meter[data-score="2"] i:nth-child(-n+2) { background: var(--a-t3); }
.nxo-meter[data-score="3"] i:nth-child(-n+3) { background: var(--a-t1); }
.nxo-meter[data-score="4"] i { background: var(--a-ok); }

/* Card foot, alternatives, the recipient line. */
.nxo-auth__foot { margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--a-hair); font-size: 14px; color: var(--a-t2); text-align: center; }
.nxo-auth__or { display: flex; align-items: center; gap: 12px; margin: 20px 0 12px; font-size: 13px; color: var(--a-t3); }
.nxo-auth__or::before, .nxo-auth__or::after { content: ""; flex: 1; height: 1px; background: var(--a-hair); }
.nxo-who { margin: 0; font-size: 12px; line-height: 1.5; color: var(--a-t3); }
.nxo-who a { color: var(--a-t2); }
.nxo-auth .nxo-sheet { margin-top: 16px; padding: 16px; border: 1px solid var(--a-hair); border-radius: 10px; }
.nxo-auth .nxo-body { margin: 0 0 12px; color: var(--a-t2); }
.nxo-auth .nxo-note { margin: 0 0 20px; padding: 12px 14px; border-left: 2px solid var(--a-hair2); font-size: 14px; }

/* Identifier first: one form, two stages (the script sets data-stage; without it both show). */
.nxo-auth form[data-stage="id"] .nxo-stage-pw { display: none; }
.nxo-auth form[data-stage="pw"] .nxo-stage-id { display: none; }
.nxo-auth form[data-stage="id"] .nxo-stage-id-only { display: flex !important; }
.nxo-auth form[data-stage="all"] [data-nxo-chip] { display: none !important; }
.nxo-auth:not(.is-js) .nxo-view--target:not(:target):not([data-open]) { display: none; }
.nxo-auth:not(.is-js) .nxo-view--target { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--a-hair); }
@media (prefers-reduced-motion: no-preference) {
	.nxo-auth .is-entering { animation: nxo-enter .24s var(--a-ease) both; }
	@keyframes nxo-enter { from { opacity: 0; transform: translateX(8px); } }
	.nxo-auth .is-entering.is-back { animation-name: nxo-back; }
	@keyframes nxo-back { from { opacity: 0; transform: translateX(-8px); } }
}

/* Registration progress: a thin segmented bar. */
.nxo-prog { margin: 0 0 24px; }
.nxo-prog__t { margin: 0 0 8px; font: 400 11px/1.4 var(--a-mono); letter-spacing: .02em; color: var(--a-t3); font-variant-numeric: tabular-nums; }
.nxo-prog__bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 0; list-style: none; }
.nxo-prog__bar li { height: 3px; border-radius: 2px; background: var(--a-hair2); transition: background .3s var(--a-ease); }
.nxo-prog__bar li[data-done="1"], .nxo-prog__bar li[aria-current="step"] { background: var(--a-t1); }

/* Account types: segmented switch, search, a compact grid. */
.nxo-types__bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.nxo-seg { display: inline-flex; flex: none; gap: 2px; padding: 3px; border: 1px solid var(--a-hair2); border-radius: 10px; background: var(--a-field); }
.nxo-seg__b { height: 36px; padding: 0 14px; border: 0; border-radius: 7px; background: transparent; color: var(--a-t2); font: 500 14px/1 var(--a-sans); cursor: pointer; transition: background .15s, color .15s; }
.nxo-seg__b:hover { color: var(--a-t1); box-shadow: inset 0 0 0 1px var(--a-accent); }
.nxo-seg__b[aria-pressed="true"] { background: var(--a-hover); color: var(--a-t1); box-shadow: 0 0 0 1px var(--a-hair2); }
.nxo-types__search { flex: 1 1 160px; min-width: 0; }
.nxo-types__count:empty { display: none; }
.nxo-types__count { margin: 0 0 8px; }
.nxo-types__set { margin: 0; padding: 0; border: 0; min-width: 0; }
.nxo-types__gh { margin: 16px 0 8px; font-size: 13px; font-weight: 500; color: var(--a-t2); }
.nxo-types.is-seg .nxo-types__gh { display: none; }
.nxo-types.is-seg:not(.is-search) .nxo-types__group:not(.is-on) { display: none; }
.nxo-types__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 8px; }
.nxo-tcard { position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr); grid-template-areas: "ico t" "ico d"; column-gap: 10px; row-gap: 2px; align-content: start; min-height: 72px; padding: 12px; border: 1px solid var(--a-hair2); border-radius: 10px; background: var(--a-field); cursor: pointer; transition: border-color .15s, background .15s; }
.nxo-tcard:hover { border-color: var(--a-accent); }
.nxo-tcard > input[type="radio"] { position: absolute !important; opacity: 0 !important; width: 1px !important; height: 1px !important; margin: 0 !important; }
.nxo-tcard:has(input:checked) { border-color: var(--a-t1); box-shadow: inset 0 0 0 1px var(--a-t1); background: var(--a-hover); }
.nxo-tcard:has(input:focus-visible) { outline: 2px solid var(--a-accent); outline-offset: 2px; }
.nxo-tcard[hidden] { display: none; }
.nxo-ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; color: var(--a-t1); }
.nxo-tcard > .nxo-ico { grid-area: ico; margin-top: 1px; }
.nxo-tcard__t { grid-area: t; font: 600 14px/1.3 var(--a-sans); color: var(--a-t1); }
.nxo-tcard__d { grid-area: d; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12.5px; line-height: 1.4; color: var(--a-t3); }
.nxo-types__fields { margin-top: 20px; margin-bottom: 0 !important; }
.nxo-types__fields:not(:has(> div:not([hidden]))) { display: none; }

/* Check your inbox. */
.nxo-inbox { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 0 20px; border: 1px solid var(--a-hair2); border-radius: 14px; background: var(--a-field); }
.nxo-inbox svg { width: 28px; height: 28px; fill: none; stroke: var(--a-t1); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.nxo-sentto b { font-weight: 600; color: var(--a-t1); overflow-wrap: anywhere; }
.nxo-auth form[data-nxo-ajax="resend"] .nxo-fields { margin-bottom: 16px; }


/* ---------- account hub ---------- */

.nxo-hub { border-top: 1px solid var(--a-hair); padding: 0 0 64px; }
.nxo-hub__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 32px 16px 24px; border-bottom: 1px solid var(--a-hair); }
.nxo-hub__id { display: flex; align-items: center; gap: 20px; min-width: 0; }
.nxo-hub__id .nxo-unused { position: static; translate: none; aspect-ratio: auto; top: auto; left: auto; flex: none; width: 88px; height: 88px; border: 1px solid var(--a-hair); border-radius: 50%; color: var(--a-t1); }
.nxo-hub__id .nxo-hud__frame, .nxo-hub__id .nxo-hud__labels, .nxo-hub__id .nxo-hud__terrain, .nxo-hub__id .nxo-hud__coord, .nxo-hub__id .nxo-hud__leader { display: none; }
.nxo-hub__kicker { margin: 0 0 4px; font-size: 13px; color: var(--a-t3); }
.nxo-hub__mail { margin: 4px 0 0; font: 400 13px/1.4 var(--a-mono); color: var(--a-t3); overflow-wrap: anywhere; }
.nxo-hub__type { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 14px; color: var(--a-t1); }
.nxo-hub__type .nxo-ico { width: 20px; height: 20px; }
.nxo-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border: 1px solid var(--a-hair2); border-radius: 4px; font: 500 12px/1 var(--a-sans); color: var(--a-t2); }
.nxo-tag[data-tone="ok"] { border-color: var(--a-ok); color: var(--a-t1); }
.nxo-tag[data-tone="info"] { border-color: var(--a-accent); }
.nxo-hub > .nxo-banner { margin: 16px; }
.nxo-hub__body { display: grid; grid-template-columns: 1fr; gap: 0; padding: 0 16px; }
.nxo-hub__nav { position: sticky; top: 0; z-index: 2; margin: 0 -16px; padding: 0 16px; overflow-x: auto; background: var(--a-card); border-bottom: 1px solid var(--a-hair); }
.nxo-hub__nav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; white-space: nowrap; }
.nxo-hub__nav a { display: block; padding: 14px 10px; font-size: 14px; text-decoration: none; color: var(--a-t2); border-bottom: 2px solid transparent; }
.nxo-hub__nav a:hover, .nxo-hub__nav a[aria-current="true"] { color: var(--a-t1); border-bottom-color: var(--a-accent); }
.nxo-hub__sec { padding: 32px 0; border-bottom: 1px solid var(--a-hair); scroll-margin-top: 56px; max-width: 880px; }
.nxo-hub__h { margin: 0 0 12px; font: 600 20px/1.25 var(--a-sans); letter-spacing: -.015em; color: var(--a-t1); }
.nxo-next, .nxo-feat { margin: 8px 0 20px; padding: 0; list-style: none; }
.nxo-next { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 640px) { .nxo-next { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.nxo-next__a { position: relative; display: flex; align-items: center; min-height: 52px; padding: 12px 40px 12px 14px; border: 1px solid var(--a-hair2); border-radius: 5px; text-decoration: none !important; color: var(--a-t1); font-weight: 500; }
.nxo-next__a::after { content: ""; position: absolute; right: 16px; width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); }
.nxo-next__a:hover { border-color: var(--a-accent); }
.nxo-feat li { position: relative; padding: 6px 0 6px 20px; border-bottom: 1px solid var(--a-hair); }
.nxo-feat li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 8px; height: 1px; background: var(--a-t1); }
.nxo-org__name { margin: 0; font: 500 18px/1.3 var(--a-sans); color: var(--a-t1); }
.nxo-inline { display: flex; gap: 8px; align-items: center; }
.nxo-inline .nxo-input { height: 36px; }
.nxo-review { padding: 16px; margin: 0 0 16px; border: 1px solid var(--a-hair2); border-radius: 5px; }
.nxo-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 8px 0; font-size: 14px; }
.nxo-dl dt { color: var(--a-t3); }
.nxo-dl dd { margin: 0; color: var(--a-t1); overflow-wrap: anywhere; }
.nxo-hub .nxo-grid2 { border-radius: 5px; overflow: hidden; }
.nxo-hub .nxo-grid2 > .nxo-form, .nxo-hub .nxo-grid2 > div { margin: 0; padding: 24px; background: var(--a-card); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 1024px) {
	.nxo-hub__head { padding: 48px 48px 32px; }
	.nxo-hub > .nxo-banner { margin: 16px 48px; }
	.nxo-hub__body { grid-template-columns: 220px minmax(0, 1fr); gap: 48px; padding: 0 48px; }
	.nxo-hub__nav { position: sticky; top: 24px; align-self: start; margin: 32px 0 0; padding: 0; border: 0; background: none; }
	.nxo-hub__nav ul { flex-direction: column; white-space: normal; }
	.nxo-hub__nav a { padding: 10px 12px; border-bottom: 0; border-left: 2px solid transparent; }
	.nxo-hub__nav a:hover, .nxo-hub__nav a[aria-current="true"] { border-left-color: var(--a-accent); }
}
.nxo-hub__sec { position: relative; }
.nxo-hub__mono { position: relative; flex: none; display: grid; place-items: center; width: 88px; height: 88px; border: 1px solid var(--a-hair2); font: 400 28px/1 var(--a-mono); letter-spacing: -.02em; color: var(--a-t1); }
.nxo-hub .nxo-btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 16px; border: 1px solid transparent; border-radius: 8px; font: 500 14px/1 var(--a-sans); text-decoration: none; cursor: pointer; }
.nxo-hub .nxo-btn[data-variant="primary"] { background: var(--a-accent); color: var(--a-on-accent); }
.nxo-hub .nxo-btn[data-variant="primary"]:hover { background: var(--a-accent-hover); }
.nxo-hub .nxo-btn[data-variant="secondary"] { background: transparent; border-color: var(--a-hair2); color: var(--a-t1); }
.nxo-hub .nxo-btn[data-variant="ghost"] { background: transparent; color: var(--a-t2); }
.nxo-hub .nxo-btn:is([data-variant="secondary"], [data-variant="ghost"]):hover { background: var(--a-hover); color: var(--a-t1); border-color: var(--a-accent); }
.nxo-hub .nxo-fields { grid-template-columns: 1fr; gap: 16px; margin: 16px 0 8px; }
.nxo-hub { background: var(--a-card); }
.nxo-hub a { color: var(--a-t1); text-decoration: underline; text-decoration-color: var(--a-hair2); text-underline-offset: 3px; }
.nxo-hub a.nxo-btn { text-decoration: none; }
.nxo-hub :focus-visible { outline: 2px solid var(--a-accent); outline-offset: 2px; }
.nxo-hub .nxo-check { margin: 12px 0; }
.nxo-hub .nxo-sheet { margin-top: 16px; border: 1px solid var(--a-hair); border-radius: 8px; }
.nxo-hub .nxo-sheet__sum { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 10px 14px; cursor: pointer; list-style: none; font-weight: 500; color: var(--a-t1); }
.nxo-hub .nxo-sheet__sum::-webkit-details-marker { display: none; }
.nxo-hub .nxo-sheet__body { padding: 0 14px 14px; }
.nxo-hub .nxo-sheet:not(details) { padding: 14px; }
.nxo-hub .nxo-summary { margin: 8px 0 0; padding-left: 18px; font-size: 14px; }
/* The site header is sticky: keep focused and scrolled-to controls clear of it (WCAG 2.4.11). */
html:has(.nxo-hub) { scroll-padding-top: 112px; }
.nxo-hub :is(input, select, textarea, button, a) { scroll-margin-top: 112px; scroll-margin-bottom: 96px; }
.nxo-hub .nxo-hub__nav a { text-decoration: none; }
