
.nxo-c {
	display: block;
	box-sizing: border-box;
	max-width: 1280px;
	margin: 0 auto;
	padding: 40px 20px 48px;
	background: var(--nx-bg-canvas);
	color: var(--nx-text-secondary);
	font: 400 14px/1.5 var(--nx-font-sans);
	letter-spacing: normal;
	text-transform: none;
	border-top: 1px solid var(--nx-border-hairline);
}
.nxo-c *, .nxo-c *::before, .nxo-c *::after { box-sizing: border-box; letter-spacing: normal; }
.nxo-c p { margin: 0; }
.nxo-c a { color: var(--nx-text-primary); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--nx-border-hairline-strong); background-image: none; }
.nxo-c a:hover { text-decoration-color: currentColor; }
.nxo-c :is(a, button, input, select, textarea, [tabindex]):focus-visible { outline: 2px solid var(--nx-accent); outline-offset: 2px; }

/* eyebrow with the 24px accent rule (kit §5.6), titles (kit §2.3) */
/* Tokens: aliases of the shared UI package (nexus-observatory-ui, handle nxo-ui). The class names below are Connect's
   own and stay stable; colours, type and motion come from the --nxo-* tokens, which follow html[data-theme] and the
   device. States are never colour alone: positive, caution and critical read as ink with an icon and the word. */
:is(.nxo-c, .nxo-native, .nxo-um, .nxo-auth, .nxo-hub) {
	--nx-bg-canvas: var(--nxo-bg); --nx-bg-surface: var(--nxo-surface); --nx-bg-elevated: var(--nxo-elev); --nx-bg-muted: var(--nxo-muted); --nx-bg-hover: var(--nxo-hover);
	--nx-border-hairline: var(--nxo-hair); --nx-border-hairline-strong: var(--nxo-hair2); --nx-line: var(--nxo-hair2); --nx-line-soft: var(--nxo-hair); --nx-grid: var(--nxo-hair);
	--nx-text-primary: var(--nxo-t1); --nx-text-secondary: var(--nxo-t2); --nx-text-muted: var(--nxo-t3); --nx-text-disabled: var(--nxo-t3);
	--nx-primary-bg: var(--nxo-accent); --nx-primary-ink: var(--nxo-on-accent); --nx-primary-hover: var(--nxo-accent-hot);
	--nx-accent: var(--nxo-accent); --nx-accent-soft: var(--nxo-accent-bg);
	--nx-positive: var(--nxo-t1); --nx-caution: var(--nxo-t1); --nx-critical: var(--nxo-t1);
	--nx-radius: var(--nxo-r); --nx-radius-chip: var(--nxo-rc); --nx-font-sans: var(--nxo-sans); --nx-font-mono: var(--nxo-mono);
	--nx-motion-fast: var(--nxo-dur-fast); --nx-ease-standard: var(--nxo-ease-standard);
}

.nxo-eyebrow { display: flex; align-items: center; gap: 10px; font: 500 11px/1.4 var(--nx-font-mono); letter-spacing: 0.16em !important; text-transform: uppercase; color: var(--nx-text-muted); }
.nxo-c > .nxo-eyebrow::before { content: ""; flex: none; width: 24px; height: 1px; background: var(--nx-accent); }
.nxo-title { margin: 16px 0 20px; font: 500 clamp(30px, 4vw, 40px)/1.1 var(--nx-font-sans); letter-spacing: -0.028em !important; color: var(--nx-text-primary); text-transform: none; }
.nxo-stop { color: var(--nx-accent); }
.nxo-sub { margin: 0 0 8px; font: 500 18px/1.3 var(--nx-font-sans); letter-spacing: -0.02em !important; color: var(--nx-text-primary); text-transform: none; }
.nxo-body { max-width: 68ch; color: var(--nx-text-secondary); }
.nxo-purpose { margin-bottom: 12px; font: 400 12px/1.4 var(--nx-font-mono); color: var(--nx-text-muted); }
.nxo-mono { font-family: var(--nx-font-mono); font-size: 12px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.nxo-ph { display: inline-flex; align-items: center; gap: 6px; padding: 0 6px; border: 1px solid var(--nx-border-hairline-strong); border-radius: var(--nx-radius-chip); font: 500 10.5px/20px var(--nx-font-mono); letter-spacing: 0.08em !important; text-transform: uppercase; color: var(--nx-text-primary); }
.nxo-ph::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--nx-caution); }
.nxo-admin-note { margin: 8px 0 16px; padding: 8px 12px; border: 1px solid var(--nx-border-hairline-strong); border-radius: var(--nx-radius); font: 400 12px/1.4 var(--nx-font-mono); color: var(--nx-text-muted); }

/* hairline cell grid (kit §5.3 public grids): 1px gutters, no radius */
.nxo-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--nx-border-hairline); border: 1px solid var(--nx-border-hairline); }
.nxo-grid2 > .nxo-form { margin: 0; padding: 24px; background: var(--nx-bg-canvas); }
@media (max-width: 767px) { .nxo-grid2 { grid-template-columns: 1fr; } }

.nxo-form { margin: 0 0 8px; }
.nxo-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; margin: 16px 0; }
.nxo-grid2 .nxo-fields { grid-template-columns: 1fr; max-width: 480px; }
.nxo-wide { grid-column: 1 / -1; }
@media (max-width: 767px) { .nxo-fields { grid-template-columns: 1fr; } }
.nxo-field { min-width: 0; }
/* fields (kit §5.4): label above, 36px, 5px, hairline-strong, surface; helper / error 12px below */
.nxo-label { display: block; margin-bottom: 6px; font: 500 13px/1.4 var(--nx-font-sans); color: var(--nx-text-primary); text-transform: none; }
.nxo-label small, .nxo-check small { font: 400 12px/1.4 var(--nx-font-sans); color: var(--nx-text-muted); }
.nxo-input {
	display: block; width: 100%; min-height: 36px; padding: 7px 10px; margin: 0;
	border: 1px solid var(--nx-border-hairline-strong); border-radius: var(--nx-radius); background: var(--nx-bg-surface); color: var(--nx-text-primary);
	font: 400 14px/1.4 var(--nx-font-sans); box-shadow: none;
	transition: border-color var(--nx-motion-fast) var(--nx-ease-standard);
}
textarea.nxo-input { min-height: 112px; resize: vertical; }
.nxo-input:hover { border-color: var(--nx-text-muted); }
.nxo-input:focus { outline: none; border-color: var(--nx-accent); box-shadow: 0 0 0 3px var(--nx-accent-soft); }
.nxo-input[aria-invalid="true"] { border-color: var(--nx-critical); }
.nxo-help { margin-top: 6px; font-size: 12px; line-height: 1.45; color: var(--nx-text-muted); }
.nxo-err { margin-top: 6px; font-size: 12px; line-height: 1.4; color: var(--nx-critical); }
.nxo-check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 4px 12px; align-items: start; margin: 16px 0; }
.nxo-check input[type="checkbox"] { width: 24px; height: 24px; margin: 0; accent-color: var(--nx-primary-bg); }
.nxo-check label { font-size: 14px; line-height: 1.5; color: var(--nx-text-secondary); }
.nxo-check .nxo-help, .nxo-check .nxo-err { grid-column: 2; }

/* buttons (kit §5.1): 36px, 5px; primary inverted, secondary hairline-strong, ghost; sentence case */
.nxo-btns, .nxo-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 16px; }
.nxo-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; min-width: 36px; padding: 0 14px;
	border: 1px solid transparent; border-radius: var(--nx-radius); font: 500 14px/1 var(--nx-font-sans); white-space: nowrap;
	text-decoration: none !important; text-transform: none; cursor: pointer; background: transparent; color: var(--nx-text-primary);
	transition: background var(--nx-motion-fast) var(--nx-ease-standard), border-color var(--nx-motion-fast) var(--nx-ease-standard);
}
.nxo-btn[data-size="lg"] { height: 44px; padding: 0 18px; font-size: 15px; }
.nxo-btn[data-variant="primary"] { background: var(--nx-primary-bg); color: var(--nx-primary-ink); }
.nxo-btn[data-variant="primary"]:hover { background: var(--nx-primary-hover); }
.nxo-btn[data-variant="secondary"] { border-color: var(--nx-border-hairline-strong); }
.nxo-btn[data-variant="secondary"]:hover, .nxo-btn[data-variant="ghost"]:hover { background: var(--nx-bg-hover); }
.nxo-btn[data-variant="ghost"] { color: var(--nx-text-secondary); }
.nxo-btn[disabled], .nxo-btn[aria-disabled="true"] { cursor: not-allowed; background: transparent; border-color: var(--nx-border-hairline); color: var(--nx-text-disabled); }

/* banners (kit §5.7): elevated surface, hairline-strong border, tone on the leading dot and border only */
.nxo-banner { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; padding: 12px 14px; border: 1px solid var(--nx-border-hairline-strong); border-radius: var(--nx-radius); background: var(--nx-bg-elevated); }
.nxo-banner p { font-size: 14px; color: var(--nx-text-primary); }
.nxo-dot { flex: none; width: 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: var(--nx-text-muted); }
.nxo-banner[data-tone="ok"] .nxo-dot { background: var(--nx-positive); }
.nxo-banner[data-tone="caution"] { border-color: var(--nx-caution); }
.nxo-banner[data-tone="caution"] .nxo-dot { background: var(--nx-caution); }
.nxo-banner[data-tone="error"] { border-color: var(--nx-critical); }
.nxo-banner[data-tone="error"] .nxo-dot { background: var(--nx-critical); }

.nxo-summary { margin: 12px 0; padding: 12px 14px; border: 1px solid var(--nx-critical); border-radius: var(--nx-radius); background: var(--nx-bg-elevated); color: var(--nx-text-primary); }
.nxo-summary:focus { outline: 2px solid var(--nx-accent); outline-offset: 2px; }
.nxo-summary ul { margin: 8px 0 0; padding-left: 18px; }
.nxo-summary li { min-height: 24px; }
.nxo-summary[hidden], .nxo-err[hidden] { display: none; }

.nxo-who { margin: 20px 0 8px; padding-top: 16px; border-top: 1px solid var(--nx-border-hairline); }
.nxo-entity { margin: 8px 0 10px; font-size: 14px; color: var(--nx-text-primary); }
.nxo-dl { margin: 8px 0 0; display: grid; gap: 0; }
.nxo-dl > div { display: grid; grid-template-columns: minmax(120px, 220px) minmax(0, 1fr); gap: 4px 20px; padding: 10px 0; border-bottom: 1px solid var(--nx-border-hairline); }
.nxo-dl dt { font: 500 11px/1.5 var(--nx-font-mono); letter-spacing: 0.16em !important; text-transform: uppercase; color: var(--nx-text-muted); overflow-wrap: anywhere; }
.nxo-dl dd { margin: 0; font-size: 13px; line-height: 1.5; color: var(--nx-text-secondary); }
@media (max-width: 559px) { .nxo-dl > div { grid-template-columns: 1fr; } }

.nxo-steps { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--nx-border-hairline); }
.nxo-steps ol { list-style: none; margin: 8px 0 0; padding: 0; }
.nxo-steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--nx-border-hairline); font-size: 14px; }
.nxo-idx { font: 500 11px/1.9 var(--nx-font-mono); letter-spacing: 0.16em; color: var(--nx-text-muted); }
.nxo-steps strong { color: var(--nx-text-primary); font-weight: 500; }

/* tables (kit §6.3): mono header on the muted well, hairline rows, tabular numbers */
.nxo-table-wrap { overflow-x: auto; margin-top: 12px; border: 1px solid var(--nx-border-hairline); border-radius: var(--nx-radius); }
.nxo-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.nxo-table th { text-align: left; padding: 10px 12px; background: var(--nx-bg-muted); font: 500 11px/1.3 var(--nx-font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--nx-text-muted); border-bottom: 1px solid var(--nx-border-hairline); }
.nxo-table td { padding: 10px 12px; border-bottom: 1px solid var(--nx-border-hairline); vertical-align: top; color: var(--nx-text-secondary); }
.nxo-table tr:last-child td { border-bottom: 0; }
.nxo-inline { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; margin-top: 24px; }
.nxo-inline .nxo-field { flex: 1 1 280px; }
.nxo-inline .nxo-acts { margin-top: 0; padding-bottom: 24px; }

@media (prefers-reduced-motion: reduce) { .nxo-c * { transition: none !important; animation: none !important; } }
@media (forced-colors: active) {
	.nxo-dot, .nxo-c > .nxo-eyebrow::before, .nxo-ph::before { forced-color-adjust: none; background: CanvasText; }
	.nxo-input[aria-invalid="true"], .nxo-banner, .nxo-summary { border: 2px solid CanvasText; }
}
