/*
 * Life Now Core — front-end styles.
 * Mobile-first, scoped to .lnc-root so themes neither break it nor are broken by it.
 * Palette follows the Naber design-system defaults so the products feel related.
 * System font stack only: no third-party font requests on auth pages.
 */

.lnc-root {
	--lnc-bg: #faf9f6;
	--lnc-surface: #ffffff;
	--lnc-border: #e9e6e1;
	--lnc-muted: #f1efea;
	--lnc-text: #1f2937;
	--lnc-text-2: #5b6370;
	--lnc-accent: #4e6b8a;
	--lnc-accent-strong: #3c5570;
	--lnc-accent-soft: #e8eff8;
	--lnc-success: #0f7a55;
	--lnc-success-soft: #e7f6ef;
	--lnc-error: #b42318;
	--lnc-error-soft: #fdecea;
	--lnc-radius: 14px;
	--lnc-radius-sm: 10px;
	--lnc-focus: 0 0 0 3px rgba(78, 107, 138, 0.35);
	--lnc-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	box-sizing: border-box;
	color: var(--lnc-text);
	font-family: var(--lnc-font);
	font-size: 16px;
	line-height: 1.5;
	-webkit-text-size-adjust: 100%;
}

/* Theme resistance: some themes force box-sizing / margins / transforms
   globally (even with !important). Scoped to Core's own markup only. */
.lnc-root,
.lnc-root *,
.lnc-root *::before,
.lnc-root *::after {
	box-sizing: border-box !important;
}

.lnc-root p,
.lnc-root ul,
.lnc-root li,
.lnc-root h1,
.lnc-root h2,
.lnc-root h3,
.lnc-root h4,
.lnc-root h5,
.lnc-root h6,
.lnc-root fieldset,
.lnc-root legend,
.lnc-root main,
.lnc-root header {
	margin: 0;
	padding: 0;
	text-indent: 0;
	border: 0;
	background: none;
	float: none;
}

.lnc-root main,
.lnc-root header,
.lnc-root nav,
.lnc-root section {
	position: static;
	height: auto;
	max-width: none;
	overflow: visible;
	color: inherit;
}

.lnc-root h1,
.lnc-root h2,
.lnc-root h3,
.lnc-root h4,
.lnc-root h5,
.lnc-root h6 {
	font-family: inherit;
	font-style: normal;
	letter-spacing: normal;
	text-transform: none;
	text-align: left;
	color: var(--lnc-text);
}

.lnc-root ul {
	list-style: none;
}

.lnc-root label {
	float: none;
	text-indent: 0;
}

.lnc-root button,
.lnc-root .lnc-button {
	margin: 0;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
}

.lnc-root img {
	border: 0;
	max-width: 100%;
}

.lnc-root a {
	color: var(--lnc-accent);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.lnc-root a:hover {
	color: var(--lnc-accent-strong);
}

.lnc-root :focus-visible {
	outline: none;
	box-shadow: var(--lnc-focus);
	border-radius: 6px;
}

.lnc-sr,
.lnc-root .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;
}

/* ---------- System shell (Core's own pages) ----------
   Core owns the whole document on Sign in / Account. The theme's
   presentation CSS isn't loaded there; these rules also hold if a plugin
   still injects global CSS. */

body.lnc-system {
	margin: 0 !important;
	padding: 0 !important;
	background: #faf9f6 !important;
	color: #1f2937;
}

.lnc-shell {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
	width: 100%;
	max-width: none;
	margin: 0;
	background: var(--lnc-bg);
	text-align: left;
}

.lnc-root .lnc-skip {
	position: absolute;
	left: -10000px;
	top: 8px;
	z-index: 100000;
	padding: 10px 16px;
	color: var(--lnc-text);
	background: var(--lnc-surface);
	border: 1px solid var(--lnc-border);
	border-radius: var(--lnc-radius-sm);
	text-decoration: none;
	font-weight: 600;
}

.lnc-root .lnc-skip:focus {
	left: 16px;
}

.lnc-root .lnc-shell-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 4px 16px;
	width: 100%;
	max-width: 1040px;
	margin: 0 auto;
	padding: 12px 16px;
	position: static;
}

.lnc-root .lnc-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	color: var(--lnc-text);
	font-size: 17px;
	font-weight: 700;
	letter-spacing: -0.01em;
	text-decoration: none;
}

.lnc-root .lnc-brand:hover {
	color: var(--lnc-text);
}

.lnc-root .lnc-brand-wordmark {
	display: block;
	width: auto;
	height: 42px;
	max-width: 240px;
	object-fit: contain;
}

.lnc-root .lnc-brand-monogram {
	display: none;
	width: 42px;
	height: 42px;
	object-fit: contain;
}

@media (max-width: 520px) {
	.lnc-root .lnc-brand-wordmark {
		display: none;
	}

	.lnc-root .lnc-brand-monogram {
		display: block;
	}
}

.lnc-root .lnc-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	color: var(--lnc-text-2);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.lnc-root .lnc-back:hover {
	color: var(--lnc-text);
	text-decoration: underline;
}

.lnc-root .lnc-shell-main {
	display: block;
	flex: 1 0 auto;
	width: 100%;
	max-width: 1040px;
	margin: 0 auto;
	padding: 8px 16px 56px;
	outline: none;
}

.lnc-root.lnc-shell-auth .lnc-shell-main {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-top: 12px;
}

/* Account: header lines up with the sidebar + workspace. */
.lnc-root.lnc-shell-account .lnc-shell-bar,
.lnc-root.lnc-shell-account .lnc-shell-main {
	max-width: 1240px;
}

.lnc-shell .lnc-auth {
	width: 100%;
	padding: 0;
}

/* ---------- Auth card ---------- */

.lnc-auth {
	display: flex;
	justify-content: center;
	padding: 8px 0 32px;
}

.lnc-card {
	width: 100%;
	max-width: 440px;
	background: var(--lnc-surface);
	border: 1px solid var(--lnc-border);
	border-radius: var(--lnc-radius);
	padding: 24px 20px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.lnc-card-head {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.lnc-eyebrow {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--lnc-accent);
}

.lnc-root .lnc-title {
	font-size: 24px;
	line-height: 1.25;
	font-weight: 700;
	color: var(--lnc-text);
}

.lnc-lede {
	color: var(--lnc-text-2);
	font-size: 15px;
}

.lnc-switch {
	text-align: center;
	color: var(--lnc-text-2);
	font-size: 15px;
}

/* ---------- Forms ---------- */

.lnc-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.lnc-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.lnc-field-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

.lnc-root label,
.lnc-root legend {
	font-size: 14px;
	font-weight: 600;
	color: var(--lnc-text);
}

.lnc-label-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
}

.lnc-link-quiet {
	font-size: 14px;
	font-weight: 500;
}

.lnc-optional {
	font-weight: 400;
	color: var(--lnc-text-2);
}

.lnc-root input[type="text"],
.lnc-root input[type="email"],
.lnc-root input[type="password"] {
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 10px 14px;
	font: inherit;
	font-size: 16px; /* prevents iOS zoom on focus */
	color: var(--lnc-text);
	background: var(--lnc-surface);
	border: 1px solid #cfcac2;
	border-radius: var(--lnc-radius-sm);
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}

.lnc-root input[type="text"]:focus,
.lnc-root input[type="email"]:focus,
.lnc-root input[type="password"]:focus {
	outline: none;
	border-color: var(--lnc-accent);
	box-shadow: var(--lnc-focus);
}

.lnc-root input[aria-invalid="true"] {
	border-color: var(--lnc-error);
}

.lnc-hint {
	font-size: 13px;
	color: var(--lnc-text-2);
}

.lnc-password {
	position: relative;
}

.lnc-password input {
	padding-right: 76px !important;
}

.lnc-root .lnc-reveal {
	position: absolute;
	top: 2px;
	right: 2px;
	min-height: 44px;
	min-width: 64px;
	padding: 0 12px;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	color: var(--lnc-accent);
	background: transparent;
	border: 0;
	border-radius: 8px;
	cursor: pointer;
}

.lnc-root .lnc-reveal:hover {
	background: var(--lnc-accent-soft);
}

.lnc-check {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	font-weight: 400 !important;
	cursor: pointer;
}

.lnc-check input {
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--lnc-accent);
}

.lnc-check-small {
	min-height: 36px;
	font-size: 14px !important;
}

.lnc-fieldset {
	border: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* Honeypot: off-screen, not display:none (some bots skip hidden fields). */
.lnc-hp {
	position: absolute !important;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------- Buttons ---------- */

.lnc-root .lnc-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 20px;
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	border-radius: 999px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.lnc-root .lnc-button-primary {
	width: 100%;
	color: #fff;
	background: var(--lnc-accent);
}

.lnc-root .lnc-button-primary:hover {
	color: #fff;
	background: var(--lnc-accent-strong);
}

.lnc-root .lnc-button-secondary {
	color: var(--lnc-text);
	background: var(--lnc-surface);
	border-color: var(--lnc-border);
}

.lnc-root .lnc-button-secondary:hover {
	color: var(--lnc-text);
	background: var(--lnc-muted);
}

.lnc-root .lnc-button-small {
	min-height: 40px;
	padding: 0 16px;
	font-size: 14px;
}

.lnc-file {
	position: relative;
	overflow: hidden;
}

.lnc-file input[type="file"] {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}

.lnc-file:focus-within {
	box-shadow: var(--lnc-focus);
}

/* ---------- Alerts ---------- */

.lnc-alert {
	padding: 12px 14px;
	border-radius: var(--lnc-radius-sm);
	font-size: 15px;
	border: 1px solid transparent;
}

.lnc-root .lnc-alert ul {
	list-style: disc;
	padding-left: 20px;
}

.lnc-alert-error {
	color: var(--lnc-error);
	background: var(--lnc-error-soft);
	border-color: #f5c2bd;
}

.lnc-alert-success {
	color: var(--lnc-success);
	background: var(--lnc-success-soft);
	border-color: #bfe5d4;
}

.lnc-alert-info {
	color: var(--lnc-text);
	background: var(--lnc-accent-soft);
}

/* ---------- Avatars ---------- */

.lnc-avatar {
	display: inline-block;
	flex: none;
	border-radius: 50%;
	object-fit: cover;
	background: var(--lnc-muted);
}

.lnc-avatar-initial {
	--lnc-avatar-size: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--lnc-avatar-size);
	height: var(--lnc-avatar-size);
	font-size: calc(var(--lnc-avatar-size) * 0.42);
	font-weight: 700;
	color: var(--lnc-accent-strong, #3c5570);
	background: var(--lnc-accent-soft, #e8eff8);
	line-height: 1;
	font-family: var(--lnc-font, sans-serif);
}

.lnc-avatar-row {
	display: flex;
	align-items: center;
	gap: 16px;
}

.lnc-avatar-preview img,
.lnc-avatar-preview .lnc-avatar {
	width: 72px;
	height: 72px;
}

.lnc-avatar-controls {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	min-width: 0;
}

/* ---------- Account ---------- */

.lnc-account {
	max-width: 760px;
	margin: 0 auto;
	padding: 0 0 40px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.lnc-account-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.lnc-account-identity {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.lnc-account-identity .lnc-avatar {
	width: 56px;
	height: 56px;
}

.lnc-account-name {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.lnc-account-email {
	font-size: 14px;
	color: var(--lnc-text-2);
	overflow-wrap: anywhere;
}

/* ---------- Account dashboard: sidebar + workspace ----------
   Scoped to .lnc-acct (the account page only). Colours reuse the shared
   Naber/Universal CSS tokens when that stylesheet is present, with the
   same approved values as fallbacks; nothing here is global. */

.lnc-acct {
	/* #304F63 softened toward #617681 (approved range). */
	--lnc-acct-side-bg: #3a586b;
	--lnc-acct-side-bg: color-mix(in srgb, var(--naber-icon-ink, #304f63) 80%, var(--naber-settings-muted, #617681));
	--lnc-acct-side-ink: #ffffff;
	--lnc-acct-side-ink-2: rgba(255, 255, 255, 0.78);
	--lnc-acct-side-line: rgba(255, 255, 255, 0.14);
	--lnc-acct-side-hover: rgba(255, 255, 255, 0.08);
	--lnc-acct-side-current: rgba(255, 255, 255, 0.16);
	--lnc-acct-slate: var(--naber-settings-muted, #617681);
	--lnc-acct-line: var(--naber-settings-border, #dce5e8);
	--lnc-acct-tile: var(--naber-icon-tile, #e8eff3);
	--lnc-acct-ink: var(--naber-icon-ink, #304f63);
	--lnc-acct-text: var(--naber-text, #1f2937);
	--lnc-acct-panel: #ffffff;
	--lnc-acct-page: var(--naber-bg, #faf9f6);
	max-width: none;
	display: grid;
	grid-template-columns: 264px minmax(0, 1fr);
	grid-template-areas: "side main";
	align-items: start;
	gap: 24px;
	padding: 16px 0 40px;
}

.lnc-acct-bar,
.lnc-acct-backdrop,
.lnc-root .lnc-acct-close {
	display: none;
}

/* Sidebar */
.lnc-acct-side {
	grid-area: side;
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
	padding: 14px 14px 12px;
	background: var(--lnc-acct-side-bg);
	color: var(--lnc-acct-side-ink);
	border-radius: var(--lnc-radius);
}

/* The official wordmark is dark ink: it sits, unmodified, on a white plate. */
.lnc-acct-brand-plate {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 12px 14px;
	background: #ffffff;
	border-radius: var(--lnc-radius-sm);
}

.lnc-root .lnc-acct-brand {
	display: inline-flex;
	align-items: center;
	min-width: 0;
	min-height: 32px;
	color: var(--lnc-acct-text);
	font-size: 17px;
	font-weight: 700;
	text-decoration: none;
}

.lnc-root .lnc-acct-brand img {
	display: block;
	width: auto;
	height: 26px;
	max-width: 100%;
	object-fit: contain;
}

.lnc-root .lnc-acct-back {
	display: flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	margin: -6px 0;
	padding: 0 10px;
	font-size: 14px;
	font-weight: 600;
	color: var(--lnc-acct-side-ink-2);
	text-decoration: none;
	border-radius: var(--lnc-radius-sm);
}

.lnc-root .lnc-acct-back:hover {
	color: var(--lnc-acct-side-ink);
	background: var(--lnc-acct-side-hover);
}

.lnc-acct-side-head {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 0 6px 16px;
	border-bottom: 1px solid var(--lnc-acct-side-line);
}

.lnc-acct .lnc-account-identity {
	min-width: 0;
}

.lnc-acct .lnc-account-identity .lnc-avatar {
	flex: none;
	width: 48px;
	height: 48px;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
}

.lnc-acct-who {
	min-width: 0;
}

.lnc-acct .lnc-account-name {
	font-size: 16px;
	color: var(--lnc-acct-side-ink);
}

.lnc-acct .lnc-account-email {
	font-size: 13px;
	color: var(--lnc-acct-side-ink-2);
}

.lnc-acct-nav {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.lnc-acct-group ul {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lnc-root .lnc-acct-group-label {
	margin: 0 0 6px;
	padding: 0 10px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--lnc-acct-side-ink-2);
}

.lnc-root .lnc-acct-link,
.lnc-root .lnc-acct-signout {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 44px;
	padding: 6px 10px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.25;
	color: var(--lnc-acct-side-ink-2);
	text-decoration: none;
	border-radius: var(--lnc-radius-sm);
	position: relative;
}

.lnc-root .lnc-acct-link:hover,
.lnc-root .lnc-acct-signout:hover {
	color: var(--lnc-acct-side-ink);
	background: var(--lnc-acct-side-hover);
}

.lnc-root .lnc-acct-link.is-current {
	color: var(--lnc-acct-side-ink);
	background: var(--lnc-acct-side-current);
}

.lnc-root .lnc-acct-link.is-current::before {
	content: "";
	position: absolute;
	left: 0;
	top: 10px;
	bottom: 10px;
	width: 3px;
	border-radius: 3px;
	background: var(--lnc-acct-side-ink);
}

.lnc-acct-icon {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.1);
	color: var(--lnc-acct-side-ink);
}

.lnc-acct-link.is-current .lnc-acct-icon {
	background: var(--lnc-acct-tile);
	color: var(--lnc-acct-ink);
}

.lnc-acct-label {
	min-width: 0;
	overflow-wrap: anywhere;
}

.lnc-acct-side-foot {
	padding-top: 12px;
	border-top: 1px solid var(--lnc-acct-side-line);
}

.lnc-root.lnc-acct :focus-visible {
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 0 0 5px var(--lnc-acct-ink);
}

/* Workspace */
.lnc-acct-main {
	grid-area: main;
	min-width: 0;
	padding: 24px 28px 28px;
	background: var(--lnc-acct-panel);
	border: 1px solid var(--lnc-acct-line);
	border-radius: var(--lnc-radius);
	color: var(--lnc-acct-text);
}

.lnc-acct-main.is-products {
	padding: 24px 28px 28px;
}

.lnc-acct .lnc-section-title {
	padding-bottom: 14px;
	border-bottom: 1px solid var(--lnc-acct-line);
	color: var(--lnc-acct-text);
}

.lnc-acct .lnc-panel {
	border-color: var(--lnc-acct-line);
}

/* Life Now products, inside the dashboard: flat, no decorative art or gradients. */
.lnc-acct .lnc-products-hero {
	grid-template-columns: minmax(0, 1fr);
	min-height: 0;
	padding: 24px;
	background: var(--lnc-acct-tile) !important;
	border-color: var(--lnc-acct-line);
	border-radius: var(--lnc-radius);
}

.lnc-acct .lnc-products-hero-art,
.lnc-acct .lnc-product-card::after {
	display: none;
}

.lnc-acct .lnc-product-card {
	min-height: 0;
	padding: 18px 18px 16px;
	background: var(--lnc-acct-panel);
	border: 1px solid var(--lnc-acct-line);
	border-radius: var(--lnc-radius);
	box-shadow: none;
}

/* My Links (existing markup, presentation only). */
.lnc-acct .mylinks-account > p + p {
	margin-top: 12px;
}

.lnc-acct .mylinks-account .mylinks-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr));
	gap: 14px;
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
}

.lnc-acct .mylinks-account .mylinks-card {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	min-width: 0;
	margin: 0;
	padding: 16px;
	background: var(--lnc-acct-panel);
	border: 1px solid var(--lnc-acct-line);
	border-radius: var(--lnc-radius);
}

.lnc-acct .mylinks-account .mylinks-card > div {
	min-width: 0;
	flex: 1 1 auto;
}

.lnc-acct .mylinks-account .mylinks-qr-thumb {
	flex: none;
	padding: 6px;
	background: #ffffff;
	border: 1px solid var(--lnc-acct-line);
	border-radius: var(--lnc-radius-sm);
}

.lnc-acct .mylinks-account .mylinks-facts dd,
.lnc-acct .mylinks-account .mylinks-facts a {
	overflow-wrap: anywhere;
	word-break: break-word;
}

.lnc-acct .mylinks-account .mylinks-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.lnc-acct .mylinks-account .mylinks-btn {
	min-height: 40px;
}

/* Signed-in dashboard on desktop: full browser width, the sidebar runs the
   full height of the window (and further when the page is taller), the
   workspace fills the rest. Only the signed-in account page has .lnc-shell-full. */
@media (min-width: 861px) {
	.lnc-root.lnc-shell-full .lnc-shell-main {
		display: flex;
		flex-direction: column;
		max-width: none;
		margin: 0;
		padding: 0;
	}

	.lnc-root.lnc-shell-full .lnc-acct {
		flex: 1 0 auto;
		width: 100%;
		margin: 0;
		align-items: stretch;
		gap: 0;
		padding: 0;
	}

	.lnc-root.lnc-shell-full .lnc-acct-side {
		padding: 18px 16px 16px;
		border-radius: 0;
	}

	.lnc-root.lnc-shell-full .lnc-acct-main,
	.lnc-root.lnc-shell-full .lnc-acct-main.is-products {
		padding: 32px clamp(24px, 3.5vw, 56px) 48px;
		border: 0;
		border-radius: 0;
	}
}

/* Phones and narrow tablets: the sidebar becomes a slide-out drawer. */
@media (max-width: 860px) {
	.lnc-acct {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "bar" "side" "main";
		gap: 14px;
	}

	.lnc-acct.is-enhanced {
		grid-template-areas: "bar" "main";
	}

	.lnc-acct.is-enhanced .lnc-acct-bar {
		grid-area: bar;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		min-width: 0;
		padding-top: 8px;
	}

	.lnc-root .lnc-acct-brand.is-bar {
		order: -1;
	}

	.lnc-root .lnc-acct-brand.is-bar img {
		height: 24px;
		max-width: 150px;
	}

	.lnc-root .lnc-acct-menu {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		min-height: 44px;
		padding: 0 14px;
		font: inherit;
		font-size: 15px;
		font-weight: 600;
		color: var(--lnc-acct-ink);
		background: var(--lnc-acct-tile);
		border: 1px solid var(--lnc-acct-line);
		border-radius: var(--lnc-radius-sm);
		cursor: pointer;
	}


	.lnc-acct.is-enhanced .lnc-acct-side {
		position: fixed;
		z-index: 100001;
		top: 0;
		bottom: 0;
		left: 0;
		width: min(86vw, 320px);
		overflow-y: auto;
		overscroll-behavior: contain;
		border-radius: 0 var(--lnc-radius) var(--lnc-radius) 0;
		transform: translateX(-105%);
		visibility: hidden;
	}

	.lnc-acct.is-enhanced.is-ready .lnc-acct-side {
		transition: transform 0.22s ease, visibility 0s linear 0.22s;
	}

	.lnc-acct.is-enhanced.is-open .lnc-acct-side {
		transform: none;
		visibility: visible;
	}

	.lnc-acct.is-enhanced.is-ready.is-open .lnc-acct-side {
		transition: transform 0.22s ease;
	}

	.lnc-acct.is-enhanced.is-open .lnc-acct-backdrop {
		display: block;
		position: fixed;
		z-index: 100000;
		inset: 0;
		background: rgba(31, 41, 55, 0.45);
	}

	.lnc-root.lnc-acct.is-enhanced .lnc-acct-close {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		flex: none;
		width: 44px;
		height: 44px;
		margin: -6px -8px -6px 0;
		padding: 0;
		color: var(--lnc-acct-ink);
		background: transparent;
		border: 0;
		border-radius: var(--lnc-radius-sm);
		cursor: pointer;
	}

	.lnc-acct-main,
	.lnc-acct-main.is-products {
		padding: 18px 16px 22px;
	}

	.lnc-acct .mylinks-account .mylinks-card {
		flex-direction: column;
	}
}

html.lnc-acct-locked,
html.lnc-acct-locked body {
	overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
	.lnc-acct.is-enhanced.is-ready .lnc-acct-side,
	.lnc-acct.is-enhanced.is-ready.is-open .lnc-acct-side {
		transition: none;
	}
}

.lnc-account-section {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.lnc-root .lnc-section-title {
	font-size: 22px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--lnc-text);
}

.lnc-panel {
	background: var(--lnc-surface);
	border: 1px solid var(--lnc-border);
	border-radius: var(--lnc-radius);
	padding: 18px 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.lnc-root .lnc-panel-title {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--lnc-text);
}

.lnc-value {
	overflow-wrap: anywhere;
}

.lnc-account .lnc-form > .lnc-button-primary {
	align-self: flex-start;
	width: auto;
}

.lnc-products {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.lnc-product {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	background: var(--lnc-surface);
	border: 1px solid var(--lnc-border);
	border-radius: var(--lnc-radius);
}

.lnc-product-text {
	min-width: 0;
}

.lnc-product-name {
	font-weight: 700;
}

/* ---------- Account components (e.g. Profile inside a module's shell) ----------
   Shell-neutral: no page width, background or chrome. Fills the host's
   content region. Hosts may adjust the --lnc-* tokens on .lnc-component. */

.lnc-component {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	text-align: left;
}

.lnc-component-head {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.lnc-root .lnc-component-title {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--lnc-text);
}

.lnc-root .lnc-component-lede {
	font-size: 14px;
	color: var(--lnc-text-2);
}

.lnc-root .lnc-component-foot {
	padding-top: 14px;
	border-top: 1px solid var(--lnc-border);
	font-size: 14px;
	color: var(--lnc-text-2);
}

.lnc-root .lnc-field-error {
	font-size: 13px;
	font-weight: 600;
	color: var(--lnc-error);
}

.lnc-root .lnc-file-name:empty {
	display: none;
}

.lnc-form-actions {
	display: flex;
}

.lnc-root .lnc-button-inline {
	width: auto;
}

/* ---------- Account menu ---------- */

.lnc-menu {
	display: inline-block;
	position: relative;
}

.lnc-menu-details {
	position: relative;
}

.lnc-menu-summary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 2px 10px 2px 2px;
	list-style: none;
	cursor: pointer;
	border-radius: 999px;
}

.lnc-menu-summary::-webkit-details-marker {
	display: none;
}

.lnc-menu-summary:hover {
	background: var(--lnc-muted);
}

.lnc-menu-summary .lnc-avatar {
	width: 32px;
	height: 32px;
}

.lnc-menu-name {
	font-size: 15px;
	font-weight: 600;
	max-width: 14ch;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.lnc-menu-list {
	position: absolute;
	right: 0;
	top: calc(100% + 6px);
	z-index: 1000;
	min-width: 180px;
	max-width: calc(100vw - 16px);
	list-style: none;
	padding: 6px !important;
	background: var(--lnc-surface);
	border: 1px solid var(--lnc-border);
	border-radius: var(--lnc-radius-sm);
	box-shadow: 0 8px 24px rgba(31, 41, 55, 0.12);
}

.lnc-menu-list.is-align-left {
	right: auto;
	left: 0;
}

.lnc-root .lnc-menu-list a {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 0 12px;
	color: var(--lnc-text);
	text-decoration: none;
	border-radius: 8px;
}

.lnc-root .lnc-menu-list a:hover {
	background: var(--lnc-muted);
}

/* ---------- Larger screens ---------- */

@media (min-width: 600px) {
	.lnc-auth {
		padding: 24px 0 48px;
	}

	.lnc-card {
		padding: 32px;
	}

	.lnc-root .lnc-title {
		font-size: 26px;
	}

	.lnc-field-row {
		grid-template-columns: 1fr 1fr;
	}

	.lnc-panel {
		padding: 22px 24px;
	}

	.lnc-root .lnc-shell-bar {
		padding: 16px 24px;
	}

	.lnc-root .lnc-shell-main {
		padding: 24px 24px 72px;
	}

	.lnc-root.lnc-shell-auth .lnc-shell-main {
		padding-top: 40px;
	}

	.lnc-root .lnc-section-title {
		font-size: 24px;
	}

	.lnc-component .lnc-form-actions .lnc-button-primary {
		width: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lnc-root .lnc-button {
		transition: none;
	}
}

/* ---------- Account → Life Now products dashboard ---------- */

.lnc-account-section.is-products {
	gap: 0;
}

.lnc-account-section.is-products .lnc-products-dashboard {
	margin-top: 2px;
}

.lnc-products-dashboard {
	display: flex;
	flex-direction: column;
	gap: 26px;
}

.lnc-products-hero {
	position: relative !important;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 170px;
	align-items: center;
	min-height: 220px;
	overflow: hidden !important;
	padding: 34px 36px;
	border: 1px solid #e6e1d8;
	border-radius: 22px;
	background:
		radial-gradient(circle at 84% 18%, rgba(114, 145, 137, 0.16), transparent 34%),
		linear-gradient(135deg, #f7f3eb 0%, #f3f4f1 52%, #edf2f0 100%);
}

.lnc-products-hero-copy {
	position: relative;
	z-index: 2;
	max-width: 560px;
}

.lnc-root .lnc-products-eyebrow,
.lnc-root .lnc-products-kicker {
	margin: 0 0 9px;
	font-size: 11px;
	line-height: 1.2;
	font-weight: 750;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #61726f;
}

.lnc-root .lnc-products-hero-title {
	max-width: 520px;
	font-size: clamp(30px, 4.4vw, 46px);
	line-height: 1.02;
	letter-spacing: -0.045em;
	font-weight: 760;
	color: #172534;
}

.lnc-root .lnc-products-hero-text {
	max-width: 540px;
	margin-top: 16px;
	font-size: 15px;
	line-height: 1.62;
	color: #4f5e66;
}

.lnc-products-hero-art {
	position: relative !important;
	align-self: stretch;
	min-height: 150px;
}

.lnc-products-hero-ring {
	position: absolute;
	display: block;
	border: 1px solid rgba(65, 91, 91, 0.15);
	border-radius: 50%;
}

.lnc-products-hero-ring-one {
	width: 186px;
	height: 186px;
	right: -34px;
	top: -12px;
}

.lnc-products-hero-ring-two {
	width: 118px;
	height: 118px;
	right: 8px;
	top: 24px;
	background: rgba(255, 255, 255, 0.32);
}

.lnc-products-hero-monogram {
	position: absolute;
	right: 40px;
	top: 57px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: -0.04em;
	color: #f8faf9;
	background: #294551;
	box-shadow: 0 12px 30px rgba(39, 61, 69, 0.13);
}

.lnc-products-heading-row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 18px;
}

.lnc-root .lnc-products-title {
	font-size: 25px;
	line-height: 1.15;
	letter-spacing: -0.025em;
	font-weight: 750;
}

.lnc-root .lnc-products-subtitle {
	margin-top: 7px;
	font-size: 14px;
	color: var(--lnc-text-2);
}

.lnc-products-count {
	flex: 0 0 auto;
	padding: 7px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 650;
	color: #56625f;
	background: #f2f0eb;
	border: 1px solid #e7e3dc;
}

.lnc-product-grid {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px !important;
}

.lnc-product-card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 24px;
	min-height: 194px;
	padding: 22px;
	overflow: hidden;
	background: #fff;
	border: 1px solid #e9e5de;
	border-radius: 18px;
	box-shadow: 0 9px 30px rgba(28, 40, 47, 0.035);
}

.lnc-product-card::after {
	content: "";
	position: absolute;
	right: -54px;
	top: -54px;
	width: 150px;
	height: 150px;
	border-radius: 50%;
	background: var(--lnc-product-wash, #f1f3f2);
	pointer-events: none;
}

.lnc-product-card-naber { --lnc-product-ink: #2f6466; --lnc-product-wash: #eaf2f0; }
.lnc-product-card-direct { --lnc-product-ink: #3f6479; --lnc-product-wash: #ecf1f4; }
.lnc-product-card-belong { --lnc-product-ink: #668077; --lnc-product-wash: #eef2ef; }
.lnc-product-card-faithfirst { --lnc-product-ink: #6d687a; --lnc-product-wash: #f1eef3; }
.lnc-product-card-blocks { --lnc-product-ink: #766d62; --lnc-product-wash: #f3f0ec; }
.lnc-product-card-mylife { --lnc-product-ink: #253b4a; --lnc-product-wash: #edf0f2; }
.lnc-product-card-neutral { --lnc-product-ink: #596a6d; --lnc-product-wash: #f0f2f1; }

.lnc-product-card-top {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.lnc-product-mark {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	font-size: 17px;
	font-weight: 780;
	letter-spacing: -0.03em;
	color: #fff;
	background: var(--lnc-product-ink);
	box-shadow: 0 8px 18px rgba(33, 49, 56, 0.08);
}

.lnc-product-copy {
	min-width: 0;
	padding-right: 14px;
}

.lnc-root .lnc-product-card-name {
	font-size: 17px;
	line-height: 1.25;
	font-weight: 760;
	letter-spacing: -0.015em;
}

.lnc-root .lnc-product-card-description {
	margin-top: 5px;
	font-size: 13px;
	line-height: 1.48;
	color: #697179;
}

.lnc-product-card-footer {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-top: 15px;
	border-top: 1px solid #eeebe6;
}

.lnc-product-connected {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 11px;
	font-weight: 650;
	color: #6b7471;
}

.lnc-product-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #7b958b;
}

.lnc-root .lnc-product-open {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 36px;
	padding: 8px 13px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 720;
	line-height: 1;
	text-decoration: none;
	color: #fff;
	background: var(--lnc-product-ink);
	transition: transform 120ms ease, opacity 120ms ease;
}

.lnc-root .lnc-product-open:hover {
	color: #fff;
	opacity: 0.92;
	transform: translateY(-1px);
}

.lnc-products-empty,
.lnc-products-more {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 20px 22px;
	border: 1px solid #e8e4dc;
	border-radius: 18px;
	background: #f7f5f1;
}

.lnc-products-empty-mark,
.lnc-products-more-icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	font-size: 13px;
	font-weight: 800;
	color: #f8faf9;
	background: #526c6c;
}

.lnc-products-more-icon {
	font-size: 17px;
	color: #566c68;
	background: #e8eeeb;
}

.lnc-root .lnc-products-empty h3,
.lnc-root .lnc-products-more h3 {
	font-size: 15px;
	font-weight: 740;
}

.lnc-root .lnc-products-empty p,
.lnc-root .lnc-products-more p {
	margin-top: 3px;
	font-size: 13px;
	line-height: 1.45;
	color: var(--lnc-text-2);
}

@media (max-width: 760px) {
	.lnc-products-hero {
		grid-template-columns: 1fr;
		min-height: 0;
		padding: 28px 24px;
	}

	.lnc-products-hero-art {
		display: none;
	}

	.lnc-products-heading-row {
		align-items: flex-start;
		flex-direction: column;
		gap: 12px;
	}

	.lnc-product-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.lnc-products-dashboard {
		gap: 22px;
	}

	.lnc-products-hero {
		padding: 24px 20px;
		border-radius: 18px;
	}

	.lnc-root .lnc-products-hero-title {
		font-size: 31px;
	}

	.lnc-product-card {
		min-height: 0;
		padding: 18px;
		gap: 20px;
	}

	.lnc-product-card-footer {
		align-items: flex-start;
		flex-direction: column;
	}

	.lnc-root .lnc-product-open {
		width: 100%;
	}
}

/* ---------- 0.2.0-a App confirmation ---------- */

.lnc-root .lnc-connect-person {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 4px 0 16px;
	padding: 12px;
	border: 1px solid var(--lnc-border);
	border-radius: var(--lnc-radius-sm);
	background: var(--lnc-bg);
}

.lnc-root .lnc-connect-avatar {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
}

.lnc-root .lnc-connect-initial {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	background: var(--lnc-accent);
	font-weight: 700;
	font-size: 20px;
}

.lnc-root .lnc-connect-who {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.lnc-root .lnc-connect-label {
	color: var(--lnc-text-2);
	font-size: 13px;
}

.lnc-root .lnc-connect-name {
	font-weight: 600;
	overflow-wrap: anywhere;
}

.lnc-root .lnc-connect-terms {
	margin: 0 0 20px;
	color: var(--lnc-text-2);
	font-size: 15px;
	line-height: 1.5;
}

.lnc-root .lnc-connect-sub {
	overflow-wrap: anywhere;
}

.lnc-root .lnc-connect-form {
	margin: 0 0 12px;
}

.lnc-root .lnc-button-block,
.lnc-root .lnc-connect-cancel {
	width: 100%;
}

.lnc-root .lnc-form .lnc-connect-cancel {
	margin-top: 12px;
}

.lnc-root .lnc-link-button {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 4px;
	color: var(--lnc-accent);
	background: none;
	border: 0;
	font: inherit;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}

.lnc-root .lnc-back-form {
	margin: 0;
}

.lnc-root .lnc-back-form .lnc-back {
	padding: 0;
	background: none;
	border: 0;
	font-family: inherit;
	cursor: pointer;
}

.lnc-root .lnc-connect-ref {
	color: var(--lnc-text-2);
	font-size: 14px;
}

.lnc-root .lnc-connect-home {
	margin: 12px 0 0;
}

/* 0.3.0 embedded sign-in window: the 6-digit code. */
.lnc-root .lnc-pair-code{margin:8px 0 12px;font-size:34px;font-weight:700;letter-spacing:.18em;text-align:center;font-variant-numeric:tabular-nums}
.lnc-root .lnc-pair-warning{font-size:14px}
