/* landing_v2 — portable styling. Scoped to .landing-root; theme sets --lp-* vars. */

.ui-root {
	--lp-primary: #1b365d;
	--lp-primary-soft: #e8eef7;
	--lp-accent: #f5a623;
	--lp-text: #0f172a;
	--lp-text-muted: #9aa690;
	--lp-surface: #ffffff;
	--lp-surface-page: #fafaf8;
	--lp-surface-muted: #edeee7;
	--lp-border: #e0e0e0;
	--lp-success: #16a34a;
	--lp-danger: #d98686;

	--lp-radius: 1.5rem;
	--lp-shadow: 0 10px 30px rgba(27, 54, 93, 0.06);
	--lp-shadow-card: 0 6px 20px rgba(27, 54, 93, 0.08);
	--lp-shadow-input: 0 0 0 1px rgba(27, 54, 93, 0.1);

	--lp-rounded-sm: 0.25rem;
	--lp-rounded-md: 0.5rem;
	--lp-rounded-lg: 1rem;
	--lp-rounded-xl: 1.5rem;
	--lp-rounded-2xl: 2rem;
	--lp-rounded-3xl: 2.5rem;
	--lp-rounded-full: 9999px;

	--lp-container: 80rem;


		/* 8px base grid */
	--lp-space-1: 0.25rem;   /* 4px  */
	--lp-space-2: 0.5rem;    /* 8px  */
	--lp-space-3: 0.75rem;   /* 12px */
	--lp-space-4: 1rem;      /* 16px */
	--lp-space-5: 1.25rem;   /* 20px */
	--lp-space-6: 1.5rem;    /* 24px */
	--lp-space-8: 2rem;      /* 32px */
	--lp-space-10: 2.5rem;   /* 40px */
	--lp-space-12: 3rem;     /* 48px */
	--lp-space-16: 4rem;     /* 64px */
	--lp-space-24: 6rem;     /* 96px */

	--lp-space-32: 8rem;    /* 128px — extend your scale */
	--lp-space-48: 12rem;   /* 192px */
	--lp-space-64: 16rem;   /* 256px — optional between sm/md */
	--lp-space-80: 20rem;   /* 320px */
	--lp-space-96: 24rem;   /* 384px */
	--lp-space-112: 28rem;   /* 448px */
	--lp-space-128: 32rem;   /* 512px */
	--lp-space-144: 36rem;   /* 576px */
	--lp-space-160: 40rem;   /* 640px */
	--lp-space-176: 44rem;   /* 704px */
	--lp-space-192: 48rem;   /* 768px */
	--lp-space-208: 52rem;   /* 832px */	



	/* semantic aliases */
	--lp-gap: var(--lp-space-4);
	--lp-gap-lg: var(--lp-space-8);
	--lp-gutter: var(--lp-space-6);
	--lp-section-py: var(--lp-space-16);

	/* anchor: body = 16px */
	--lp-text-2xs:   0.625rem;    /* 10px — tiny */
	--lp-text-xs:   0.75rem;    /* 12px — eyebrow, caption */
	--lp-text-sm:   0.875rem;   /* 14px — label, muted, btn, input */
	--lp-text-base: 1rem;       /* 16px — body */
	--lp-text-md:   1.125rem;   /* 18px — subheadline */
	--lp-text-lg:   1.25rem;    /* 20px — small titles */
	--lp-text-xl:   1.5rem;     /* 24px — section title (mobile) */
	--lp-text-2xl:  1.875rem;   /* 30px */
	--lp-text-3xl:  2.25rem;    /* 36px — section title (desktop) */
	--lp-text-4xl:  2.75rem;    /* 44px — hero (desktop) */

	/* line heights — pair with role, not arbitrary */
	--lp-leading-tight:  1.15;
	--lp-leading-snug:   1.25;
	--lp-leading-normal: 1.5;
	--lp-leading-relaxed: 1.6;

	--lp-z-index-base: 0;
	--lp-z-index-callout: 1;
	--lp-z-index-nav: 2;
	--lp-z-index-drawer: 100;
	--lp-z-index-modal: 200;
	--lp-z-index-overlay: 500;


	color: var(--lp-text);
	font-family: inherit;
	line-height: 1.5;
	width: 100%;


	
	.doughnut-chart {
		width: 200px;
		height: 200px;
		border-radius: 50%;
		mask: radial-gradient(circle, transparent 55%, black 56%);
		-webkit-mask: radial-gradient(circle, transparent 55%, black 56%);
	  }
	
	.cursor-pointer { cursor: pointer; }
	.cursor-default { cursor: default; }
	.cursor-not-allowed { cursor: not-allowed; }
	.cursor-help { cursor: help; }
	.cursor-move { cursor: move; }
	.cursor-text { cursor: text; }
	.cursor-wait { cursor: wait; }
	.cursor-progress { cursor: progress; }
	.cursor-crosshair { cursor: crosshair; }
	
	.drawer-root-right {
		position: fixed;
		top: 0;
		right: 0;
		width: 500px;
		max-width: 100%;
		height: 100vh;
		z-index: var(--lp-z-index-drawer);
		background-color: var(--lp-surface);
		overflow-x: hidden;
		overflow-y: auto;
		scrollbar-width: thin;
		scrollbar-color: var(--lp-text-muted) var(--lp-surface);

		transition: transform 0.3s ease-in-out;
	}

	.drawer-root-left {
		position: fixed;
		top: 0;
		left: 0;
		width: 500px;
		max-width: 100%;
		height: 100vh;
		z-index: var(--lp-z-index-drawer);
		background-color: var(--lp-surface);
		overflow-x: hidden;
		overflow-y: auto;
		scrollbar-width: thin;
		scrollbar-color: var(--lp-text-muted) var(--lp-surface);

		transition: transform 0.3s ease-in-out;
	}


	.modal-root {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		z-index: 500;
		background-color: rgba(0, 0, 0, 0.5);
	}

	.modal-content {
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		background-color: var(--lp-surface);
		padding: var(--lp-space-4);
		border-radius: var(--lp-rounded-lg);
		max-height: 100vh;
	}

	.opacity-soft { opacity: 0.82; }

	.backdrop-blur {
		-webkit-backdrop-filter: blur(8px);
		backdrop-filter: blur(8px);
	}

	.max-w-compact { max-width: min(8.5rem, 30vw); }

	.relative { position: relative; }
	.absolute { position: absolute; }

	.shadow-card { box-shadow: var(--lp-shadow-card); }

	.eyebrow {
		margin: 0;
		font-size: var(--lp-text-xs);

		font-weight: 600;
		letter-spacing: 0.08em;
		text-transform: uppercase;
		color: var(--lp-text-muted);
	}

	.headline {
		margin: 0;
		font-size: clamp(var(--lp-text-2xl), 4vw, var(--lp-text-4xl));
		line-height: var(--lp-leading-tight);
		font-weight: 700;
		letter-spacing: -0.02em;
		color: var(--lp-primary);
	}

	.section-title {
		margin: 0;
		font-size: clamp(1.5rem, 3vw, 2.25rem);
		font-weight: 700;
		line-height: 1.2;
		color: var(--lp-primary);
	}

	.subheadline {
		margin: 0;
		font-size: var(--lp-text-md);
		line-height: var(--lp-leading-relaxed);
		color: var(--lp-text-muted);
		max-width: 42rem;
	}


	
	.body { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--lp-text); }
	.muted { margin: 0; font-size: 0.875rem; line-height: 1.6; color: var(--lp-text-muted); }

	.btn,
	.btn-primary,
	.btn-soft,
	.btn-secondary,
	.btn-ghost,
	.btn-danger,
	.btn-submit,
	.btn-brand,
	.btn-cancel {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 0.5rem;
		box-sizing: border-box;
		min-height: 2.75rem;
		padding: 0.7rem 1.25rem;
		border: 1px solid transparent;
		border-radius: var(--lp-rounded-full);
		font-family: inherit;
		font-size: var(--lp-text-sm);
		font-weight: 600;
		line-height: 1.1;
		text-decoration: none;
		cursor: pointer;
		transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.1s;
	}

	.btn:focus-visible,
	.btn-primary:focus-visible,
	.btn-soft:focus-visible,
	.btn-secondary:focus-visible,
	.btn-ghost:focus-visible,
	.btn-danger:focus-visible,
	.btn-submit:focus-visible,
	.btn-brand:focus-visible,
	.btn-cancel:focus-visible {
		outline: none;
		box-shadow: 0 0 0 3px var(--lp-primary-soft);
	}

	.btn:disabled,
	.btn-primary:disabled,
	.btn-soft:disabled,
	.btn-secondary:disabled,
	.btn-ghost:disabled,
	.btn-danger:disabled,
	.btn-submit:disabled,
	.btn-brand:disabled,
	.btn-cancel:disabled {
		opacity: 0.55;
		cursor: not-allowed;
		pointer-events: none;
	}

	.btn {
		background: var(--lp-surface-muted);
		color: var(--lp-text);
		border-color: var(--lp-border);
	}
	.btn:hover { background: var(--lp-surface-page); }

	.btn-primary,
	.btn-brand,
	.btn-submit {
		background: var(--lp-primary);
		color: white;
		border-color: var(--lp-primary);
		box-shadow: 0 4px 14px rgba(27, 54, 93, 0.15);
	}
	.btn-primary:hover,
	.btn-brand:hover,
	.btn-submit:hover {
		background: #234a7a;
		box-shadow: 0 6px 18px rgba(27, 54, 93, 0.2);
	}
	.btn-primary:active,
	.btn-brand:active,
	.btn-submit:active { transform: scale(0.98); }

	.btn-soft,
	.btn-secondary {
		width: 100%;
		min-height: 2.75rem;
		padding: 0.7rem 1.25rem;
		background: var(--lp-surface);
		color: var(--lp-primary);
		border-color: var(--lp-border);
		border-width: 1px;
		border-radius: var(--lp-rounded-full);
		transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
	}
	.btn-soft:hover,
	.btn-secondary:hover {
		background: var(--lp-primary-soft);
		border-color: var(--lp-primary);
	}
	.btn-soft:active,
	.btn-secondary:active { transform: scale(0.99); }
	.btn-soft.is-selected,
	.btn-secondary.is-selected {
		background: var(--lp-primary-soft);
		border-color: var(--lp-primary);
	}

	.btn-ghost {
		background: transparent;
		color: var(--lp-primary);
	}
	.btn-ghost:hover { background: var(--lp-primary-soft); }

	.btn-danger {
		background: var(--lp-danger);
		color: white;
		border-color: var(--lp-danger);
	}
	.btn-danger:hover { opacity: 0.9; }

	.btn-cancel {
		background: transparent;
		color: var(--lp-text-muted);
		border-color: var(--lp-border);
	}
	.btn-cancel:hover { background: var(--lp-surface-page); }

	.btn-close {
		width: 24px;
		height: 24px;
		background: none;
		border: none;
		cursor: pointer;
		transition: background 0.2s ease-in-out;
		border-radius: var(--lp-rounded-md);
	}
	.btn-close:hover { background: var(--lp-border); }

	.btn-action {
		background: none;
		border: 1px solid var(--lp-border);
		cursor: pointer;
		padding: 2px;
		display: flex;
		align-items: center;
		justify-content: center;
		transition: background 0.2s ease-in-out;
		border-radius: var(--lp-rounded-md);
	}

	.btn-success {
		background: var(--lp-success);
		color: var(--lp-surface);
	}
	.btn-success:hover { background: var(--lp-success-soft); }

	.list-element {
		transition: background 0.2s ease-in-out;
	}
	.list-element:hover {
		background: var(--lp-primary-soft);
	}
	.list-element:active {
		font-weight: 700;
	}
	.list-element:focus-visible {
		outline: none;
		box-shadow: 0 0 0 3px var(--lp-primary-soft);
	}
	.list-element.is-selected {		
		background: var(--lp-primary-soft);
	}


	.label {
		font-size: 0.875rem;
		font-weight: 700;
		line-height: 1.2;
		color: var(--lp-text);
	}
	.success {
		margin: 0;
		font-size: 0.875rem;
	
		line-height: 1.2;	
		color: var(--lp-success);
		text-align: left;
	}
	.error {
		margin: 0;
		font-size: 0.875rem;

		line-height: 1.2;	
		color: var(--lp-danger);
		text-align: left;
	}
	.input-text {
		width: 100%;
		box-sizing: border-box;
		padding: var(--lp-space-3) var(--lp-space-4);  /* 12px 16px */
		min-height: 2.75rem;                            /* 44px */
		border: 1px solid var(--lp-border);
		border-radius: var(--lp-rounded-md);
		font-size: 1rem;                                /* 16px — no iOS zoom */
		line-height: 1.5;
		color: var(--lp-text);
		/* background: var(--lp-surface-page); */
		outline: none;
	  }

	  .input-text.compact {
		min-height: 2rem;
		padding: var(--lp-space-1) var(--lp-space-2);
		font-size: var(--lp-text-sm);
	  }

	.input-text:hover {
		border: 1px solid var(--lp-text-muted);
	}
	.input-text:focus-visible {
		border: 1px solid var(--lp-text-muted);
		box-shadow:   
			0 0 0 3px var(--lp-primary-soft);  /* focus ring */
	}

	.input-text.adming {
		background: var(--lp-surface-page);
	}

	/* general utilities */
	.max-w-112 { max-width: var(--lp-space-112); }
	.tracking-wide { letter-spacing: 0.08em; }
	.tracking-widest { letter-spacing: 0.4em; }

	.link {
		background: none;
		border: none;
		padding: 0;
		cursor: pointer;
		font: inherit;
		font-size: var(--lp-text-sm);
		font-weight: 500;
		color: var(--lp-primary);
		text-decoration: underline;
	}

	.notice {
		padding: var(--lp-space-4);
		border: 1px solid var(--lp-border);
		border-radius: var(--lp-rounded-lg);
		background: var(--lp-surface-page);
		font-size: var(--lp-text-sm);
		line-height: var(--lp-leading-relaxed);
	}

	.warning {
		padding: var(--lp-space-4);
		border: 1px solid var(--lp-danger);
		border-radius: var(--lp-rounded-lg);
		background: #fef2f2;
		color: var(--lp-danger);
		font-size: var(--lp-text-sm);
		line-height: var(--lp-leading-relaxed);
	}

	.section { padding-block: var(--lp-section-py); background: var(--lp-surface-page); }
	.section--white { background: var(--lp-surface); }
	.section--muted { background: var(--lp-surface-muted); }

	.container {
		box-sizing: border-box;
		width: 100%;
		max-width: var(--lp-container);
		margin-inline: auto;
		padding-inline: var(--lp-gutter);
	}
	
	.media {
		overflow: hidden;
		/* aspect-ratio: 4 / 3;  optional fixed crop box */
	  }
	  .media img {
		display: block;
		width: 100%;
		height: auto;
		object-fit: cover;
		object-position: 50% 40%;  /* from focal data */
	  }

	/* ── navbar ─────────────────────────────────────────── */
	.nav-shell {
		width: 100%;
		transition: background 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
	}

	.nav-top {
		background: var(--lp-surface-page);
		border-bottom: 1px solid transparent;
	}

	.nav-scrolled {
		background: rgba(255, 255, 255, 0.92);
		border-bottom: 1px solid rgba(15, 23, 42, 0.06);
		box-shadow: 0 1px 0 rgba(27, 54, 93, 0.04), 0 8px 32px rgba(27, 54, 93, 0.06);
		-webkit-backdrop-filter: blur(16px);
		backdrop-filter: blur(16px);
	}

	.nav-bar {
		display: grid;
		grid-template-columns: auto 1fr auto;
		align-items: center;
		gap: var(--lp-space-4);
		height: 4.25rem;
	}

	.nav-brand-text {
		display: none;
		min-width: 0;
	}

	.nav-link {
		position: relative;
		background: none;
		border: none;
		cursor: pointer;
		font-size: 0.9375rem;
		font-weight: 500;
		color: rgba(15, 23, 42, 0.72);
		transition: color 0.2s ease;
		padding: 0.25rem 0;
	}

	.nav-link:hover {
		color: var(--lp-primary);
	}

	.nav-link::after {
		content: '';
		position: absolute;
		left: 50%;
		bottom: -2px;
		width: 0;
		height: 2px;
		background: var(--lp-primary);
		border-radius: 1px;
		transition: width 0.25s ease, left 0.25s ease;
	}

	.nav-link:hover::after {
		left: 0;
		width: 100%;
	}

	.nav-cta,
	.nav-cta-compact {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 0.5rem;
		border: none;
		cursor: pointer;
		font-weight: 600;
		color: white;
		background: var(--lp-primary);
		border-radius: var(--lp-rounded-full);
		transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
	}

	.nav-cta {
		font-size: 0.9375rem;
		padding: 0.625rem 1.25rem;
		box-shadow: 0 4px 14px rgba(27, 54, 93, 0.18);
	}

	.nav-cta:hover,
	.nav-cta-compact:hover {
		background: var(--lp-accent);
		box-shadow: 0 6px 20px rgba(245, 166, 35, 0.25);
	}

	.nav-cta:active {
		transform: scale(0.98);
	}

	.nav-cta-compact {
		font-size: 0.8125rem;
		padding: 0.5rem 0.875rem;
		box-shadow: none;
	}

	.nav-icon-btn {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 2.5rem;
		height: 2.5rem;
		border: none;
		background: none;
		border-radius: var(--lp-rounded-full);
		color: var(--lp-text);
		cursor: pointer;
		transition: background 0.2s;
	}

	.nav-icon-btn:hover {
		background: rgba(232, 238, 247, 0.8);
	}

	.nav-account {
		display: flex;
		align-items: center;
		gap: 0.5rem;
		padding: 0.25rem 0.5rem 0.25rem 0.25rem;
		border: none;
		background: none;
		border-radius: var(--lp-rounded-full);
		cursor: pointer;
		transition: background 0.2s;
	}

	.nav-account:hover {
		background: rgba(232, 238, 247, 0.6);
	}

	.nav-chevron {
		display: inline-block;
		font-size: 0.625rem;
		color: var(--lp-text-muted);
		transition: transform 0.2s ease;
	}

	.nav-chevron-open {
		transform: rotate(180deg);
	}

	.nav-avatar {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 2rem;
		height: 2rem;
		border-radius: var(--lp-rounded-full);
		background: var(--lp-primary);
		color: white;
		font-size: 0.75rem;
		font-weight: 600;
		flex-shrink: 0;
	}

	.nav-dropdown {
		position: absolute;
		right: 0;
		top: calc(100% + 0.5rem);
		z-index: 50;
		width: 13.5rem;
		padding: 0.375rem;
		background: var(--lp-surface);
		border: 1px solid rgba(15, 23, 42, 0.08);
		border-radius: var(--lp-radius);
		box-shadow: 0 16px 48px rgba(27, 54, 93, 0.12);
	}

	.nav-dropdown-header {
		padding: 0.625rem 0.75rem;
		margin-bottom: 0.25rem;
		border-bottom: 1px solid rgba(15, 23, 42, 0.06);
	}

	.nav-dropdown-item {
		display: flex;
		align-items: center;
		width: 100%;
		padding: 0.625rem 0.75rem;
		font-size: 0.875rem;
		font-weight: 500;
		color: var(--lp-text);
		border: none;
		background: none;
		border-radius: 0.625rem;
		text-align: left;
		cursor: pointer;
		transition: background 0.15s;
	}

	.nav-dropdown-item:hover {
		background: rgba(232, 238, 247, 0.65);
	}

	.nav-dropdown-item-danger {
		color: var(--lp-danger);
	}

	.nav-dropdown-item-danger:hover {
		background: #fef2f2;
	}

	.nav-mobile-shell {
		position: fixed;
		inset: 4.25rem 0 0 0;
		z-index: 400;
		display: flex;
		flex-direction: column;
		width: 100%;
		background: var(--lp-surface-page);
	}

	.mobile-nav-item {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		padding: 1rem 0;
		font-size: 1.125rem;
		font-weight: 500;
		color: var(--lp-text);
		border: none;
		background: none;
		border-bottom: 1px solid rgba(15, 23, 42, 0.06);
		text-align: left;
		cursor: pointer;
		transition: color 0.2s;
	}

	.mobile-nav-item:hover {
		color: var(--lp-primary);
	}

	.mobile-nav-item:last-child {
		border-bottom: none;
	}

	.mobile-account-item {
		width: 100%;
		padding: 0.75rem 0;
		font-size: 1rem;
		font-weight: 500;
		color: var(--lp-text);
		border: none;
		background: none;
		text-align: left;
		cursor: pointer;
		transition: color 0.2s;
	}

	.mobile-account-item:hover {
		color: var(--lp-primary);
	}

	.nav-mobile-footer {
		background: var(--lp-surface);
		border-top: 1px solid var(--lp-border);
		padding: var(--lp-space-6) 0;
	}
	
	
	
	
	
	.stack { display: flex; flex-direction: column;  }
	.row { display: flex; flex-direction: row; align-items: center; }
	.flex-1 { flex: 1 1 0%; min-height: 0; }
	.wrap { flex-wrap: wrap; }
	.center { text-align: center; }
	.left { text-align: left; }




	.m-0 { margin: 0; }
	.text-2xs { font-size: var(--lp-text-2xs); }
	.text-xs { font-size: var(--lp-text-xs); }
	.text-sm { font-size: var(--lp-text-sm); }
	.text-base { font-size: var(--lp-text-base); }
	.text-md { font-size: var(--lp-text-md); }
	.text-lg { font-size: var(--lp-text-lg); }
	.text-xl { font-size: var(--lp-text-xl); }
	.text-2xl { font-size: var(--lp-text-2xl); }
	.text-3xl { font-size: var(--lp-text-3xl); }
	.text-4xl { font-size: var(--lp-text-4xl); }

	.font-medium { font-weight: 500; }
	.font-semibold { font-weight: 600; }
	.font-bold { font-weight: 700; }
	.font-black { font-weight: 800; }

	.text-primary { color: var(--lp-primary); }
	.text-muted { color: var(--lp-text-muted); }
	.text-danger { color: var(--lp-danger); }
	.text-success { color: var(--lp-success); }
	.text-left { text-align: left; }


	.leading-tight { line-height: var(--lp-leading-tight); }
	.leading-snug { line-height: var(--lp-leading-snug); }
	.leading-relaxed { line-height: var(--lp-leading-relaxed); }

	.tracking-tight { letter-spacing: -0.02em; }
	.uppercase { text-transform: uppercase; }

	.h0 { height: 0; }
	.h-auto { height: auto; }
	.h-full { height: 100%; }
	.h-screen { height: 100vh; }

	.scroll-y { overflow-y: auto; min-height: 0px; }
	.scroll-x { overflow-x: auto; min-width: 0px; }

	.fixed { position: fixed; }
	.inset-x-0 { left: 0; right: 0; }
	.left-0 { left: 0; }
	.inset-0 { inset: 0; }
	.inset-1 { inset: var(--lp-space-1); }
	.inset-2 { inset: var(--lp-space-2); }
	.inset-3 { inset: var(--lp-space-3); }
	.inset-4 { inset: var(--lp-space-4); }
	.inset-5 { inset: var(--lp-space-5); }
	.inset-6 { inset: var(--lp-space-6); }
	.inset-8 { inset: var(--lp-space-8); }
	.inset-10 { inset: var(--lp-space-10); }

	.max-w-full { max-width: 100%; }
	.max-w-screen { max-width: 100vw; }
	.max-w-md { max-width: 768px; }
	.max-w-lg { max-width: 1024px; }
	.max-w-xl { max-width: 1280px; }
	.max-w-2xl { max-width: 1536px; }
	.max-w-3xl { max-width: 1920px; }
	.max-w-4xl { max-width: 2560px; }
	.max-w-5xl { max-width: 3840px; }

	.max-h-1 { max-height: var(--lp-space-1); }
	.max-h-2 { max-height: var(--lp-space-2); }
	.max-h-3 { max-height: var(--lp-space-3); }
	.max-h-4 { max-height: var(--lp-space-4); }
	.max-h-5 { max-height: var(--lp-space-5); }
	.max-h-6 { max-height: var(--lp-space-6); }
	.max-h-8 { max-height: var(--lp-space-8); }
	.max-h-10 { max-height: var(--lp-space-10); }
	.max-h-12 { max-height: var(--lp-space-12); }
	.max-h-16 { max-height: var(--lp-space-16); }
	.max-h-24 { max-height: var(--lp-space-24); }

	.max-h-screen { max-height: 100vh; }
	.max-h-full { max-height: 100%; }
	.max-h-auto { max-height: auto; }
	.max-h-fit { max-height: fit-content; }
	.max-h-max { max-height: max-content; }
	.max-h-min { max-height: min-content; }

	.max-h-lg { max-height: 20rem; }
	.max-h-xl { max-height: 30rem; }
	.max-h-2xl { max-height: 40rem; }
	.max-h-3xl { max-height: 50rem; }
	.max-h-4xl { max-height: 60rem; }
	.max-h-5xl { max-height: 70rem; }
	.max-h-6xl { max-height: 80rem; }
	.max-h-7xl { max-height: 90rem; }
	.max-h-8xl { max-height: 100rem; }

	.min-h-0 { min-height: 0; }
	.min-h-screen { min-height: 100vh; }
	.min-h-full { min-height: 100%; }
	.min-h-auto { min-height: auto; }
	.min-h-fit { min-height: fit-content; }
	.min-h-max { min-height: max-content; }
	.min-h-min { min-height: min-content; }
	.min-w-0 { min-width: 0; }
	.min-w-48 { min-width: 12rem; }

	.truncate {
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.pre-wrap { white-space: pre-wrap; overflow-wrap: anywhere; }

	.shrink-0 { flex-shrink: 0; }
	.object-contain { object-fit: contain; }
	
	.w-full { width: 100%; }
	.w-screen { width: 100vw; }
	.w-auto { width: auto; }
	.w-fit { width: fit-content; }
	.w-max { width: max-content; }
	.w-min { width: min-content; }


	.w-1 { width: var(--lp-space-1); }
	.w-2 { width: var(--lp-space-2); }
	.w-4 { width: var(--lp-space-4); }
	.w-6 { width: var(--lp-space-6); }
	.w-8 { width: var(--lp-space-8); }
	.w-10 { width: var(--lp-space-10); }
	.w-12 { width: var(--lp-space-12); }
	.w-16 { width: var(--lp-space-16); }
	.w-24 { width: var(--lp-space-24); }
	.w-32 { width: var(--lp-space-32); }
	.w-40 { width: var(--lp-space-40); }
	.w-48 { width: var(--lp-space-48); }
	.w-56 { width: var(--lp-space-56); }
	.w-64 { width: var(--lp-space-64); }
	.w-72 { width: var(--lp-space-72); }

	


	.w-10pct { width: 10pct; }
	.w-20pct { width: 20%; }
	.w-30pct { width: 30%; }
	.w-40pct { width: 40%; }
	.w-50pct { width: 50%; }
	.w-60pct { width: 60%; }
	.w-70pct { width: 70%; }
	.w-80pct { width: 80%; }
	.w-90pct { width: 90%; }

	.p-1 { padding: var(--lp-space-1); }
	.p-2  { padding: var(--lp-space-2); }
	.p-3  { padding: var(--lp-space-3); }
	.p-4  { padding: var(--lp-space-4); }
	.p-6  { padding: var(--lp-space-6); }
	.p-8  { padding: var(--lp-space-8); }

	.px-1 { padding-inline: var(--lp-space-1); }
	.px-2 { padding-inline: var(--lp-space-2); }
	.px-3 { padding-inline: var(--lp-space-3); }
	.px-4 { padding-inline: var(--lp-space-4); }
	.px-5 { padding-inline: var(--lp-space-5); }
	.px-6 { padding-inline: var(--lp-space-6); }
	.px-7 { padding-inline: var(--lp-space-7); }
	.px-8 { padding-inline: var(--lp-space-8); }
	.px-10 { padding-inline: var(--lp-space-10); }

	.py-1 { padding-block: var(--lp-space-1); }
	.py-2 { padding-block: var(--lp-space-2); }
	.py-4 { padding-block: var(--lp-space-4); }
	.py-6 { padding-block: var(--lp-space-6); }

	.pt-0 { padding-top: 0; }
	.pt-1 { padding-top: var(--lp-space-1); }
	.pt-2 { padding-top: var(--lp-space-2); }
	.pt-3 { padding-top: var(--lp-space-3); }
	.pt-4  { padding-top: var(--lp-space-4); }
	.pt-5 { padding-top: var(--lp-space-5); }
	.pt-6 { padding-top: var(--lp-space-6); }
	.pt-7 { padding-top: var(--lp-space-7); }
	.pt-8 { padding-top: var(--lp-space-8); }
	.pt-10 { padding-top: var(--lp-space-10); }
	.pt-12 { padding-top: var(--lp-space-12); }
	.pt-16 { padding-top: var(--lp-space-16); }


	.mt-1 { margin-top: var(--lp-space-1); }
	.mt-2 { margin-top: var(--lp-space-2); }
	.ml-2 { margin-left: var(--lp-space-2); }
	.pt-nav { padding-top: 4.25rem; }
	.mt-4 { margin-top: var(--lp-space-4); }
	.mt-6 { margin-top: var(--lp-space-6); }
	.mt-8 { margin-top: var(--lp-space-8); }
	.mb-4 { margin-bottom: var(--lp-space-4); }
	.mt-10 { margin-top: var(--lp-space-10); }
	.mt-12 { margin-top: var(--lp-space-12); }
	.mt-16 { margin-top: var(--lp-space-16); }
	.mt-24 { margin-top: var(--lp-space-24); }
	/* gap */

	.gap-0 { gap: 0; }
	.gap-1 { gap: var(--lp-space-1); }
	.gap-2 { gap: var(--lp-space-2); }
	.gap-3 { gap: var(--lp-space-3); }
	.gap-4 { gap: var(--lp-space-4); }
	.gap-6 { gap: var(--lp-space-6); }
	.gap-8 { gap: var(--lp-space-8); }
	.gap-10 { gap: var(--lp-space-10); }
	.gap-12 { gap: var(--lp-space-12); }
	.gap-16 { gap: var(--lp-space-16); }
	.gap-24 { gap: var(--lp-space-24); }

	.rounded-sm { border-radius: var(--lp-rounded-sm); }
	.rounded-md { border-radius: var(--lp-rounded-md); }
	.rounded-lg { border-radius: var(--lp-rounded-lg); }
	.rounded-xl { border-radius: var(--lp-rounded-xl); }
	.rounded-2xl { border-radius: var(--lp-rounded-2xl); }
	.rounded-3xl { border-radius: var(--lp-rounded-3xl); }
	.rounded-full { border-radius: var(--lp-rounded-full); }


	.align-top { vertical-align: top; }
	.align-middle { vertical-align: middle; }
	.align-bottom { vertical-align: bottom; }

	.text-left { text-align: left; }
	.text-center { text-align: center; }
	.text-right { text-align: right; }


	.border   { border: 1px solid var(--lp-border); border-width: 1px; }
	.border-2 { border-width: 2px; }
	.border-3 { border-width: 3px; }
	.border-4 { border-width: 4px; }
	.border-5 { border-width: 5px; }
	.border-6 { border-width: 6px; }

	.border-b { border-bottom: 1px solid var(--lp-border); }
	.border-b-2 { border-bottom-width: 2px; }
	.border-b-3 { border-bottom-width: 3px; }
	.border-b-4 { border-bottom-width: 4px; }
	.border-b-5 { border-bottom-width: 5px; }
	.border-b-6 { border-bottom-width: 6px; }
	.border-top { border-top: 1px solid var(--lp-border); }
	.border-t-2 { border-top-width: 2px; }
	.border-t-3 { border-top-width: 3px; }
	.border-t-4 { border-top-width: 4px; }
	.border-t-5 { border-top-width: 5px; }
	.border-t-6 { border-top-width: 6px; }
	.border-top-3 { border-top-width: 3px; }
	.border-top-4 { border-top-width: 4px; }
	.border-top-5 { border-top-width: 5px; }
	.border-top-6 { border-top-width: 6px; }
	.border-left { border-left: 1px solid var(--lp-border); }
	.border-right { border-right: 1px solid var(--lp-border); }
	.border-none { border: none; }

	.border-primary { border-color: var(--lp-primary); }
	.border-accent { border-color: var(--lp-accent); }
	.border-success { border-color: var(--lp-success); }
	.border-danger { border-color: var(--lp-danger); }
	.border-warning { border-color: var(--lp-warning); }
	.border-info { border-color: var(--lp-info); }
	.border-light { border-color: var(--lp-light); }
	.border-dark { border-color: var(--lp-dark); }
	.border-surface { border-color: var(--lp-surface); }
	.border-surface-muted { border-color: var(--lp-surface-muted); }
	.border-surface-page { border-color: var(--lp-surface-page); }
	.border-transparent { border: none; }

	.border-dashed { border-style: dashed; }
	.border-dotted { border-style: dotted; }
	.border-double { border-style: double; }
	.border-groove { border-style: groove; }
	.border-ridge { border-style: ridge; }
	.border-inset { border-style: inset; }
	.border-outset { border-style: outset; }
	.border-hidden { border-style: hidden; }
	.border-none { border: none; }


	.items-top { align-items: start; }
	.items-center { align-items: center; }
	.items-bottom { align-items: end; }

	.justify-start { justify-content: start; }
	.justify-center { justify-content: center; }
	.justify-end { justify-content: end; }
	.justify-between { justify-content: space-between; }

	.self-start { align-self: start; }
	.self-center { align-self: center; }
	.self-end { align-self: end; }


	.mx-auto { margin-inline: auto; }
	.my-auto { margin-block: auto; }

	.bg-primary { background-color: var(--lp-primary); }
	.bg-accent { background-color: var(--lp-accent); }
	.bg-success { background-color: var(--lp-success); }
	.bg-danger { background-color: var(--lp-danger); }
	.bg-warning { background-color: var(--lp-warning); }
	.bg-info { background-color: var(--lp-info); }
	.bg-surface-muted { background-color: var(--lp-surface-muted); }
	.bg-surface { background-color: var(--lp-surface); }
	.bg-surface-page { background-color: var(--lp-surface-page); }
	.bg-transparent { background-color: transparent; }
	.bg-primary-soft { background-color: var(--lp-primary-soft); }
	.bg-glass {
		background-color: color-mix(in srgb, var(--lp-surface) 78%, transparent);
	}
	.bg-text-muted { background-color: var(--lp-text-muted); }

	.border-collapse {
		border-collapse: collapse;
	  }



	
	

	.block { width: 100%; }
	.hidden { display: none; }
	.overflow-hidden { overflow: hidden; }
	.overflow-x-auto { overflow-x: auto; }
	.overflow-y-auto { overflow-y: auto; }

	.col-start-3 { grid-column-start: 3; }
	.grid { display: grid;  }
	.two-col { display: grid;  }
	.three-col { display: grid;  }
	
	.rows-0 { grid-template-rows: 0fr; }
	.rows-1 { grid-template-rows: 1fr; }
	.rows-2 { grid-template-rows: 1fr 1fr; }
	.rows-3 { grid-template-rows: repeat(3, 1fr); }
	.rows-4 { grid-template-rows: repeat(4, 1fr); }
	.rows-5 { grid-template-rows: repeat(5, 1fr); }
	.rows-6 { grid-template-rows: repeat(6, 1fr); }
	.rows-7 { grid-template-rows: repeat(7, 1fr); }
	.rows-8 { grid-template-rows: repeat(8, 1fr); }
	.rows-9 { grid-template-rows: repeat(9, 1fr); }

	.cols-1 { grid-template-columns: 1fr; }
	.cols-2 { grid-template-columns: 1fr 1fr; }
	.cols-3 { grid-template-columns: repeat(3, 1fr); }
	.cols-4 { grid-template-columns: repeat(4, 1fr); }
	.cols-5 { grid-template-columns: repeat(5, 1fr); }
	.cols-6 { grid-template-columns: repeat(6, 1fr); }
	.cols-7 { grid-template-columns: repeat(7, 1fr); }
	.cols-8 { grid-template-columns: repeat(8, 1fr); }
	.cols-9 { grid-template-columns: repeat(9, 1fr); }

	.cols-6040 { grid-template-columns: 6fr 4fr; }
	.cols-4060 { grid-template-columns: 4fr 6fr; }


	.card {
		border-radius: var(--lp-radius);
		background: var(--lp-surface);
		box-shadow: var(--lp-shadow);
		padding: 1.5rem;
	}

	/* ── dashboards ─────────────────────────────────────── */
	.kpi-grid {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--lp-space-3);
	}
	.kpi-card {
		background: var(--lp-surface);
		border: 1px solid var(--lp-border);
		border-radius: var(--lp-rounded-lg);
		padding: var(--lp-space-4);
	}
	.kpi-label {
		font-size: var(--lp-text-2xs);
		font-weight: 700;
		letter-spacing: 0.08em;
		text-transform: uppercase;
		color: var(--lp-text-muted);
	}
	.kpi-value {
		margin-top: var(--lp-space-2);
		font-size: var(--lp-text-2xl);
		font-weight: 700;
		color: var(--lp-primary);
	}
	.data-table {
		width: 100%;
		border-collapse: collapse;
		font-size: var(--lp-text-xs);
	}
	.data-table th {
		padding: var(--lp-space-2);
		text-align: left;
		font-size: var(--lp-text-2xs);
		font-weight: 700;
		letter-spacing: 0.06em;
		text-transform: uppercase;
		color: var(--lp-text-muted);
		border-bottom: 1px solid var(--lp-border);
		white-space: nowrap;
	}
	.data-table td {
		padding: var(--lp-space-2);
		border-bottom: 1px solid var(--lp-border);
	}
	.data-table tbody tr:hover { background: var(--lp-surface-page); }
	.bar-track {
		height: 0.5rem;
		width: 100%;
		overflow: hidden;
		border-radius: var(--lp-rounded-full);
		background: var(--lp-surface-muted);
	}
	.bar-fill {
		height: 100%;
		border-radius: var(--lp-rounded-full);
		background: var(--lp-primary);
	}
	.bar-chart {
		display: flex;
		align-items: flex-end;
		gap: var(--lp-space-1);
		height: var(--lp-space-40);
	}
	.bar-col {
		display: flex;
		flex: 1;
		min-width: 0;
		flex-direction: column;
		align-items: center;
		justify-content: flex-end;
		gap: var(--lp-space-1);
	}
	.bar-pair {
		display: flex;
		height: 80%;
		width: 100%;
		align-items: flex-end;
		justify-content: center;
		gap: 2px;
	}
	.bar-start { width: 45%; border-radius: 3px 3px 0 0; background: color-mix(in srgb, var(--lp-primary) 35%, white); }
	.bar-complete { width: 45%; border-radius: 3px 3px 0 0; background: var(--lp-primary); }

	.list-item {
		display: flex;
		flex-direction: column;
		gap: 2px;
		width: 100%;
		padding: var(--lp-space-2) var(--lp-space-3);
		text-align: left;
		border: 1px solid transparent;
		border-radius: var(--lp-rounded-md);
		background: transparent;
		cursor: pointer;
	}
	.list-item:hover { background: var(--lp-surface-page); }
	.list-item-title { font-size: var(--lp-text-sm); font-weight: 600; color: var(--lp-text); }
	.list-item-meta { font-size: var(--lp-text-2xs); color: var(--lp-text-muted); }

	/* ── draggable list ─────────────────────────────────── */
	.drag-row { position: relative; }
	.drag-row.is-dragging { opacity: 0.5; }
	.drag-row.is-over { background: var(--lp-surface-muted); border-radius: var(--lp-rounded-md); }
	.drag-handle { touch-action: none; cursor: grab; }

	@media (min-width: 1024px) {
		.kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	}

	.popover {
		width: 20rem;
		max-width: calc(100vw - var(--lp-space-4));
		max-height: calc(100vh - var(--lp-space-4));
		overflow: hidden;
		padding: var(--lp-space-3);
		background: var(--lp-surface);
		border: 1px solid var(--lp-border);
		border-radius: var(--lp-rounded-lg);
		box-shadow: var(--lp-shadow-card);
	}

	.popover > :not(.popover-preview) {
		flex-shrink: 0;
	}

	.popover textarea {
		max-height: 8rem;
		overflow-y: auto;
	}

	.popover-preview {
		flex: 1 1 auto;
		min-height: 0;
		overflow-y: auto;
		overscroll-behavior: contain;
		padding: var(--lp-space-2);
		border: 1px solid var(--lp-border);
		border-radius: var(--lp-rounded-md);
		background: var(--lp-surface-page);
	}

	.context-menu {
		min-width: 12rem;
		max-width: 20rem;
		max-height: calc(100vh - var(--lp-space-4));
		overflow-y: auto;
		overscroll-behavior: contain;
		padding: var(--lp-space-1);
		background: var(--lp-surface);
		border: 1px solid var(--lp-border);
		border-radius: var(--lp-rounded-md);
		box-shadow: var(--lp-shadow-card);
	}

	.menu-item {
		display: flex;
		align-items: center;
		gap: var(--lp-space-2);
		width: 100%;
		padding: var(--lp-space-2) var(--lp-space-3);
		border: none;
		background: none;
		border-radius: var(--lp-rounded-sm);
		font-size: var(--lp-text-sm);
		color: var(--lp-text);
		text-align: left;
		cursor: pointer;
		transition: background 0.15s ease;
	}
	.menu-item:hover { background: var(--lp-surface-muted); }
	.menu-item-danger { color: var(--lp-danger); }
	.menu-item-danger:hover { background: #fef2f2; }

	.hover-bg-surface:hover {
		background-color: var(--lp-surface);
	}
	.hover-bg-surface-muted:hover {
		background-color: var(--lp-surface-muted);
	}
	.hover-bg-surface-page:hover {
		background-color: var(--lp-surface-page);
	}
	.hover-bg-surface-accent:hover {
		background-color: var(--lp-accent);
	}

	.hover-opacity-10:hover { opacity: 0.1; }
	.hover-opacity-20:hover { opacity: 0.2; }
	.hover-opacity-30:hover { opacity: 0.3; }
	.hover-opacity-40:hover { opacity: 0.4; }
	.hover-opacity-50:hover { opacity: 0.5; }
	.hover-opacity-60:hover { opacity: 0.6; }
	.hover-opacity-70:hover { opacity: 0.7; }
	.hover-opacity-80:hover { opacity: 0.8; }
	.hover-opacity-90:hover { opacity: 0.9; }
	.hover-opacity-100:hover { opacity: 1; }



	.top-0 { top: 0; }
	.top-full { top: 100%; }
	.top-nav { top: 4.25rem; }
	.top-1 { top: var(--lp-space-1); }
	.top-2 { top: var(--lp-space-2); }
	.top-4 { top: var(--lp-space-4); }
	.top-6 { top: var(--lp-space-6); }
	.top-8 { top: var(--lp-space-8); }
	.top-10 { top: var(--lp-space-10); }
	.top-12 { top: var(--lp-space-12); }

	.bottom-0 { bottom: 0; }
	.bottom-1 { bottom: var(--lp-space-1); }
	.bottom-2 { bottom: var(--lp-space-2); }
	.bottom-4 { bottom: var(--lp-space-4); }
	.bottom-6 { bottom: var(--lp-space-6); }
	.bottom-8 { bottom: var(--lp-space-8); }
	.bottom-10 { bottom: var(--lp-space-10); }
	.bottom-12 { bottom: var(--lp-space-12); }

	.right-0 { right: 0; }
	.right-1 { right: var(--lp-space-1); }
	.right-2 { right: var(--lp-space-2); }
	.right-4 { right: var(--lp-space-4); }
	.right-6 { right: var(--lp-space-6); }
	.right-8 { right: var(--lp-space-8); }
	.right-10 { right: var(--lp-space-10); }
	.right-12 { right: var(--lp-space-12); }

	.h-0 { height: 0; }
	.h-1 { height: var(--lp-space-1); }
	.h-2 { height: var(--lp-space-2); }
	.h-4 { height: var(--lp-space-4); }
	.h-6 { height: var(--lp-space-6); }
	.h-8 { height: var(--lp-space-8); }
	.h-10 { height: var(--lp-space-10); }
	.h-12 { height: var(--lp-space-12); }
	.h-nav { height: 4.25rem; }
	.h-16 { height: var(--lp-space-16); }
	.h-24 { height: var(--lp-space-24); }
	.h-32 { height: var(--lp-space-32); }
	.h-40 { height: var(--lp-space-40); }
	.h-48 { height: var(--lp-space-48); }
	.h-56 { height: var(--lp-space-56); }
	.h-64 { height: var(--lp-space-64); }
	.h-72 { height: var(--lp-space-72); }

	.panel-s  { max-height: var(--lp-space-32); overflow-y: auto; min-height: 0; }
	.panel-m  { max-height: var(--lp-space-80); overflow-y: auto; min-height: 0; }
	.panel-l  { max-height: min(70vh, 36rem); overflow-y: auto; min-height: 0; }
	.panel-xl { max-height: min(85vh, 42rem); overflow-y: auto; min-height: 0; }

	.z-base { z-index: var(--lp-z-index-base); }
	.z-callout { z-index: 1; }
	.z-nav { z-index: var(--lp-z-index-nav); }
	.z-drawer { z-index: var(--lp-z-index-drawer); }
	.z-modal { z-index: var(--lp-z-index-modal); }
	.z-overlay { z-index: var(--lp-z-index-overlay); }

	.z-1 { z-index: 50; }
	.z-2 { z-index: 100; }
	.z-3 { z-index: 200; }
	.z-4 { z-index: 300; }
	.z-4 { z-index: 400; }
	.z-5 { z-index: 500; }
	.z-6 { z-index: 600; }
	.z-7 { z-index: 700; }
	.z-8 { z-index: 800; }
	.z-9 { z-index: 900; }
	.z-10 { z-index: 1000; }

	.cursor-default, .cursor-default * { cursor: default; }
	.cursor-grab, .cursor-grab * { cursor: grab; }
	.cursor-grabbing, .cursor-grabbing * { cursor: grabbing; }
	.cursor-crosshair, .cursor-crosshair * { cursor: crosshair; }
	.cursor-move, .cursor-move * { cursor: move; }
	.cursor-n, .cursor-n * { cursor: n-resize; }
	.cursor-e, .cursor-e * { cursor: e-resize; }
	.cursor-s, .cursor-s * { cursor: s-resize; }
	.cursor-w, .cursor-w * { cursor: w-resize; }
	.cursor-nw, .cursor-nw * { cursor: nw-resize; }
	.cursor-ne, .cursor-ne * { cursor: ne-resize; }
	.cursor-se, .cursor-se * { cursor: se-resize; }
	.cursor-sw, .cursor-sw * { cursor: sw-resize; }

	
	@media (min-width: 640px) {
		.sm-block { display: block; }
		.sm-hidden { display: none; }
		.nav-brand-text { display: block; }
	}

	@media (min-width: 768px) {
		.section { padding-block: 6rem; }
		.container { padding-inline: 2rem; }
		.hero-split { grid-template-columns: 1fr 1fr; }
		.md-hidden { display: none; }
		.md-block { display: block; }
		.md-inline { display: inline; }
		.md-flex { display: flex; }
		.md-row { display: flex; flex-direction: row; }
		.md-col { display: flex; flex-direction: column; }
		.md-grid { display: grid; }
		.md-cols-1 { grid-template-columns: 1fr; }
		.md-cols-2 { grid-template-columns: 1fr 1fr; }
		.md-cols-3 { grid-template-columns: repeat(3, 1fr); }
		.md-cols-4 { grid-template-columns: repeat(4, 1fr); }
		.md-cols-5 { grid-template-columns: repeat(5, 1fr); }
		.md-cols-6 { grid-template-columns: repeat(6, 1fr); }

		.md-opacity-full { opacity: 1; }
		.md-bg-surface { background-color: var(--lp-surface); }
		.md-backdrop-none {
			-webkit-backdrop-filter: none;
			backdrop-filter: none;
		}
		.md-max-w-card { max-width: 13rem; }

	}

	@media (min-width: 1024px) {
		.nav-bar {
			grid-template-columns: 1fr auto 1fr;
		}
		.two-col { grid-template-columns: 1fr 1fr; }
		.three-col { grid-template-columns: repeat(3, 1fr); }
		
		.lg-block { display: block; }
		.lg-inline { display: inline; }
		.lg-flex { display: flex; }
		.lg-grid { display: grid; }
		.lg-hidden { display: none; }

		.lg-cols-1 { grid-template-columns: 1fr; }
		.lg-cols-2 { grid-template-columns: 1fr 1fr; }
		.lg-cols-3 { grid-template-columns: repeat(3, 1fr); }
		.lg-cols-4 { grid-template-columns: repeat(4, 1fr); }
		.lg-cols-5 { grid-template-columns: repeat(5, 1fr); }
		.lg-cols-6 { grid-template-columns: repeat(6, 1fr); }
		.lg-cols-7 { grid-template-columns: repeat(7, 1fr); }
		.lg-cols-8 { grid-template-columns: repeat(8, 1fr); }
		.lg-cols-9 { grid-template-columns: repeat(9, 1fr); }
	}
}

/* Responsive production workspaces */
@media (max-width: 900px) {
	.marketing-studio .row {
		flex-wrap: wrap;
	}
	.marketing-side {
		top: auto !important;
		right: 12px !important;
		bottom: 12px !important;
		left: 12px !important;
		width: auto !important;
		max-height: 70vh !important;
	}
	.marketing-side.is-hidden {
		transform: translateY(calc(100% + 1.5rem));
	}
	.marketing-studio .canvas-col {
		flex: 1 1 100% !important;
		width: 100% !important;
	}
	.longform-layout {
		flex-direction: column;
	}
	.longform-ideas,
	.longform-documents {
		flex: 1 1 100% !important;
		width: 100% !important;
		max-width: none !important;
		min-width: 0 !important;
	}
	.longform-document {
		min-width: 0;
	}
}



/* merged from spine.css */
/* Compatibility layer for the Tailwind-era classes used by the landing templates.
   ui.css stays byte-identical to safely; everything missing goes here. */

/* --- custom theme colors --- */
.bg-safely-accent { background-color: var(--lp-accent); }
.bg-safely-success { background-color: var(--lp-success); }
.bg-sensera-bg { background-color: var(--lp-surface-muted); }
.text-safely-primary { color: var(--lp-primary); }
.text-safely-text { color: var(--lp-text); }
.text-sensera-subtle { color: var(--lp-text-muted); }

[class~="bg-sensera-bg/40"] {
    background-color: color-mix(in srgb, var(--lp-surface-muted) 40%, transparent);
}
[class~="bg-sensera-border/80"] {
    background-color: color-mix(in srgb, var(--lp-border) 80%, transparent);
}

/* --- radius / shadow / layout --- */
.rounded-safely-2xl { border-radius: 1.5rem; }
.shadow-safely-soft { box-shadow: var(--lp-shadow); }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.h-3 { height: 0.75rem; }
.w-3 { width: 0.75rem; }

ol, ul { list-style: none; margin: 0; padding: 0; }
[class~="min-h-[2.5rem]"] { min-height: 2.5rem; }
[class~="min-h-[3.5rem]"] { min-height: 3.5rem; }
[class~="mt-1.5"] { margin-top: 0.375rem; }
[class~="w-0.5"] { width: 0.125rem; }
.pb-8 { padding-bottom: 2rem; }

/* Tailwind-style ring */
.ring-white { --tw-ring-color: #fff; }
.ring-4 { box-shadow: 0 0 0 4px var(--tw-ring-color, #fff); }

/* --- responsive utilities (top-level, so they win over nested rules) --- */
@media (min-width: 640px) {
    [class~="sm:mt-12"] { margin-top: 3rem; }
    [class~="sm:p-8"] { padding: 2rem; }
    [class~="sm:text-xl"] { font-size: 1.25rem; line-height: 1.75rem; }
    .ui-root .nav-brand-text { display: flex; flex-direction: column; gap: 0; }
}

@media (min-width: 768px) {
    .ui-root .md-flex { display: flex; }
    .ui-root .md-block { display: block; }
    .ui-root .md-hidden { display: none; }
}

@media (min-width: 1024px) {
    .ui-root .lg-flex { display: flex; }
    .ui-root .lg-hidden { display: none; }
    [class~="lg:grid-cols-2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    [class~="lg:gap-12"] { gap: 3rem; }
}

@media (max-width: 1023px) {
    .ui-root .lg-flex { display: none; }
}


/* --- base resets that Tailwind preflight used to provide --- */
.ui-root a { color: inherit; text-decoration: none; }
.ui-root a.nav-link { display: block; }
.nav-root { position: relative; }
.items-start { align-items: flex-start; }

/* --- drag handle (compat layer because ui.css stays byte-identical) --- */
.ui-root .drag-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    min-height: 1.5rem;
    padding: 0.15rem;
    border-radius: var(--lp-rounded-md, 8px);
    color: var(--lp-text-muted);
    transition: background 0.15s, color 0.15s;
}
.ui-root .drag-handle:hover {
    background: var(--lp-surface-muted);
    color: var(--lp-text);
}
.ui-root .drag-handle svg { pointer-events: none; }

/* --- admin table editor --- */
.admin-table-wrap {
    width: 100%;
    overflow: auto;
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-rounded-md, 8px);
    max-height: 62vh;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
    min-width: max-content;
}
.admin-table th,
.admin-table td {
    border-bottom: 1px solid var(--lp-border);
    padding: 0.35rem 0.45rem;
    text-align: left;
    vertical-align: top;
}
.admin-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--lp-surface-muted);
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
}
.admin-table tr:hover td { background: color-mix(in srgb, var(--lp-surface-page) 70%, transparent); }
.admin-table tr.dirty td { background: color-mix(in srgb, var(--lp-accent) 10%, transparent); }
.admin-table input,
.admin-table select,
.admin-table textarea {
    width: 100%;
    min-width: 8rem;
    box-sizing: border-box;
    font-size: 0.72rem;
}
.admin-table textarea { min-height: 4rem; resize: vertical; }
.admin-table .admin-slot { color: var(--lp-text-muted); white-space: nowrap; }
.admin-table .admin-actions { white-space: nowrap; }
.admin-table .admin-value { max-width: 24rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-table .admin-json { min-width: 16rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.admin-table .admin-dropdown {
    width: 100%;
    min-width: 8rem;
    justify-content: flex-start;
    gap: 0.25rem;
}
.admin-table .admin-dropdown::after {
    content: '▾';
    margin-left: auto;
    font-size: 0.7rem;
    color: var(--lp-text-muted);
}
.admin-table .admin-dropdown > div:first-child {
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.admin-pager { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }

/* --- cookie consent --- */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 4.75rem;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    max-width: 64rem;
    margin: 0 auto;
    padding: 1rem;
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-rounded-lg, 12px);
    background: var(--lp-surface);
    box-shadow: var(--lp-shadow);
}
.cookie-settings-btn {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 70;
    padding: 0.35rem 0.7rem;
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-rounded-full, 999px);
    background: var(--lp-surface);
    color: var(--lp-text-muted);
    font-size: 0.7rem;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(27, 54, 93, 0.08);
}
.cookie-settings-btn:hover { color: var(--lp-text); }
.cookie-modal { max-width: 34rem; }
.cookie-choice {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.2rem 0.7rem;
    align-items: start;
    padding: 0.75rem;
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-rounded-md, 8px);
}
.cookie-choice input { margin-top: 0.25rem; }
.cookie-choice > span:nth-child(2) { font-weight: 600; }
.cookie-choice > span:nth-child(3) { grid-column: 2; }

/* --- blog --- */
.blog-page {
    width: 100%;
    max-width: 72rem;
    margin: 0 auto;
    padding: 2.5rem 1rem 5rem;
}
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 768px) {
    .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.blog-card {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    color: inherit;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.blog-card:hover { transform: translateY(-2px); box-shadow: var(--lp-shadow); }
.blog-card h2 { margin: 0; font-size: 1.15rem; }
.blog-card p { margin: 0; }
.blog-read-more {
    margin-top: auto;
    padding-top: 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--lp-text-muted);
}
.blog-article {
    width: 100%;
    max-width: 48rem;
    margin: 0 auto;
    padding: 2.5rem 1rem 5rem;
}
.blog-article h1 { margin: 0 0 0.75rem; }
.blog-article .blog-excerpt { font-size: 1.05rem; line-height: 1.6; color: var(--lp-text-muted); }
.blog-article .blog-body { margin-top: 2rem; }
.blog-body .max-w-xl { max-width: 100%; margin: 0; }
.blog-body [data-editor="true"] {
    border: 0;
    padding: 0;
    background: transparent;
}
.blog-body [data-block-wrapper="true"] {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--lp-text);
}
.blog-article .blog-footer { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--lp-border); }
.blog-share { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }


/* --- nav underline constrained to the label text --- */
.ui-root .nav-link:has(.nav-link-text)::after { content: none; }
.nav-link-text {
    position: relative;
    display: inline-block;
}
.nav-link-text::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--lp-primary);
    border-radius: 1px;
    transition: width 0.25s ease, left 0.25s ease;
}
.nav-link:hover .nav-link-text::after,
.nav-link.active .nav-link-text::after {
    left: 0;
    width: 100%;
}

/* --- checkout --- */
.checkout-page {
    width: 100%;
    max-width: 52rem;
    margin: 0 auto;
    padding: 1rem 1rem 5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.checkout-card { padding: 1.25rem; }
.checkout-bundle-name { margin: 0; font-size: 1.1rem; font-weight: 700; }
.checkout-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0;
    font-size: 0.9rem;
}
.checkout-line-name { font-weight: 500; }
.checkout-line-price { display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; justify-content: flex-end; }
.checkout-price-old { color: var(--lp-text-muted); text-decoration: line-through; font-size: 0.8rem; }
.checkout-discount-badge {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    padding: 0.15rem 0.4rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--lp-success) 14%, transparent);
    color: color-mix(in srgb, var(--lp-success) 70%, #123);
    font-size: 0.65rem;
    font-weight: 800;
    white-space: nowrap;
}
.checkout-extra { border-top: 1px solid var(--lp-border); padding-top: 0.6rem; }
.checkout-totals { border-top: 1px solid var(--lp-border); padding-top: 0.6rem; }
.checkout-total-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: 0.9rem; }
.checkout-total-row-main { font-size: 1rem; padding-top: 0.2rem; }
.checkout-savings {
    align-self: flex-end;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--lp-success) 13%, transparent);
    color: color-mix(in srgb, var(--lp-success) 65%, #123);
    font-size: 0.8rem;
    font-weight: 700;
}
.checkout-upsell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.9rem 1rem;
    border: 1px solid color-mix(in srgb, var(--lp-primary) 25%, transparent);
    border-radius: var(--lp-rounded-lg, 12px);
    background: color-mix(in srgb, var(--lp-primary) 6%, var(--lp-surface));
}
.checkout-upsell-soft {
    border-color: var(--lp-border);
    background: var(--lp-surface-muted);
}
.checkout-upsell-label { margin: 0; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lp-primary); }
.checkout-upsell-name { margin: 0.15rem 0 0; font-weight: 700; }
.checkout-upsell-price { margin: 0; font-weight: 700; color: var(--lp-primary); }
.checkout-addon {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.75rem;
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-rounded-md, 8px);
    background: var(--lp-surface);
}
.checkout-addon-image { width: 2.75rem; height: 2.75rem; border-radius: 6px; object-fit: cover; }
.checkout-addon-name { font-weight: 600; }
.checkout-addon-price { color: var(--lp-primary); font-size: 0.82rem; font-weight: 600; }
.checkout-qty-btn {
    width: 1.9rem;
    height: 1.9rem;
    border: 1px solid var(--lp-border);
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
    font-size: 1rem;
}
.checkout-qty-btn:hover { background: var(--lp-surface-muted); }
.checkout-qty { min-width: 1.1rem; text-align: center; font-weight: 600; }
.checkout-added {
    padding: 0.3rem 0.55rem;
    border: 1px solid color-mix(in srgb, var(--lp-success) 28%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--lp-success) 10%, transparent);
    color: color-mix(in srgb, var(--lp-success) 65%, #123);
    font-size: 0.75rem;
    font-weight: 700;
}
.checkout-remove {
    border: 0;
    background: transparent;
    color: var(--lp-text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    padding: 0.1rem 0.25rem;
}
.checkout-remove:hover { color: var(--lp-danger, #b91c1c); }
.checkout-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.checkout-referral { display: flex; align-items: center; gap: 0.5rem; }
.checkout-referral > :first-child { flex: 1; }
.checkout-pay { font-size: 1rem; padding: 0.9rem 1.25rem; }
.checkout-start-price { margin: 0.5rem 0; font-size: 2rem; font-weight: 800; color: var(--lp-primary); }
@media (max-width: 640px) {
    .checkout-two-col { grid-template-columns: 1fr; }
    .checkout-page { padding-inline: 0.75rem; }
}

/* --- missing Tailwind-era utilities used by the quiz/lead modal --- */
.max-w-sm { max-width: 24rem; }
.max-w-xs { max-width: 20rem; }
.h-9 { height: 2.25rem; }
.w-9 { width: 2.25rem; }
.py-3 { padding-block: 0.75rem; }
.opacity-100 { opacity: 1; }
.border-primary-muted {
    border-color: color-mix(in srgb, var(--lp-primary) 22%, var(--lp-border));
}
.object-center { object-position: center; }
.text-error { color: var(--lp-danger); }
.title {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}
.modal-root {
    box-sizing: border-box;
    padding: 1rem;
}

/* --- Tailwind preflight basics --- */
*, *::before, *::after { box-sizing: border-box; }
button, input, optgroup, select, textarea { font: inherit; }
img, video { max-width: 100%; height: auto; }

/* --- remaining landing/quiz utilities --- */
.bg-surface-card { background-color: var(--lp-surface); }
.border-bottom { border-bottom: 1px solid var(--lp-border); }
.flex-wrap { flex-wrap: wrap; }
.grid-cols-1 { grid-template-columns: minmax(0, 1fr); }
.mt-3 { margin-top: var(--lp-space-3); }
.py-10 { padding-block: var(--lp-space-10); }
.py-12 { padding-block: var(--lp-space-12); }

@media (min-width: 640px) {
    [class~="sm:px-6"] { padding-inline: var(--lp-space-6); }
    [class~="sm:py-12"] { padding-block: var(--lp-space-12); }
    [class~="sm:px-10"] { padding-inline: var(--lp-space-10); }
    [class~="sm:py-10"] { padding-block: var(--lp-space-10); }
}

/* --- remaining utility gaps found by the page audit --- */
.items-end { align-items: flex-end; }
.shadow { box-shadow: var(--lp-shadow); }
.m-2 { margin: var(--lp-space-2); }
.icon { display: inline-block; vertical-align: middle; }
.te-image, .te-slide { display: block; max-width: 100%; }


/* --- Tailwind preflight margins: ui.css did not reset these --- */
p, h1, h2, h3, h4, h5, h6, blockquote, figure, pre { margin: 0; }

/* Match Tailwind's text-xs/text-sm line heights, while keeping explicit leading utilities. */
.text-xs { line-height: 1rem; }
.text-sm { line-height: 1.25rem; }
.text-sm.leading-relaxed, .text-xs.leading-relaxed { line-height: var(--lp-leading-relaxed); }

/* --- landing builder / editor utilities --- */
.bg-black { background-color: #000; }
.bg-black.bg-opacity-50 { background-color: rgba(0, 0, 0, 0.5); }
.border-gray { border-color: #d1d5db; }
.border-l { border-left: 1px solid var(--lp-border); }
.cursor-col-resize, .cursor-col-resize * { cursor: col-resize; }
.drop-area {
    min-height: 2.75rem;
    padding: 0.6rem 0.75rem;
    border: 1px dashed var(--lp-border);
    border-radius: var(--lp-rounded-md, 8px);
}
.justify-left { justify-content: flex-start; }
.p-12 { padding: var(--lp-space-12); }
.w-0 { width: 0; }
.landing-preview-mount { width: 100%; display: block; }
.landing-root { display: block; width: 100%; }
.ui-root.overflow-hidden, body.overflow-hidden { overflow: hidden; }

/* --- navigation layering + motion (ui.css stays frozen) ------------------ */
/* Dialogs use --lp-z-index-modal (200). Keep the navbar below them so a
   modal is never trapped under the header; the menu panel itself may use the
   modal layer because it starts below the header. */
.ui-root .nav-top {
    z-index: 90;
}
.ui-root .nav-mobile-shell {
    z-index: var(--lp-z-index-modal);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-0.5rem);
    transition:
        opacity 0.18s ease,
        transform 0.18s ease,
        visibility 0s linear 0.18s;
}
.ui-root .nav-mobile-shell.nav-mobile-shell-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition:
        opacity 0.18s ease,
        transform 0.18s ease,
        visibility 0s;
}
@media (prefers-reduced-motion: reduce) {
    .ui-root .nav-mobile-shell,
    .ui-root .nav-mobile-shell.nav-mobile-shell-open {
        transform: none;
        transition: none;
    }
}

.ui-root .nav-dropdown:not(.hidden) {
    animation: nav-dropdown-in 0.14s ease-out;
}
@keyframes nav-dropdown-in {
    from { opacity: 0; transform: translateY(-0.25rem); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- admin shell: anchor the left bar to the content, not the viewport --- */
.admin-shell-nav {
    position: sticky;
    top: 5rem;
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
    background: var(--lp-surface);
    scrollbar-width: thin;
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-rounded-lg);
    box-shadow: var(--lp-shadow-card);
    padding: var(--lp-space-3);
    transition: width 0.2s ease, flex-basis 0.2s ease, opacity 0.2s ease,
        margin 0.2s ease, padding 0.2s ease, border-width 0.2s ease;
}
.admin-shell-nav.admin-shell-nav-collapsed {
    width: 0 !important;
    flex: 0 0 0 !important;
    padding: 0 !important;
    border-width: 0 !important;
    opacity: 0;
    overflow: hidden;
    margin-right: -1rem;
}
.admin-shell-nav .nav-link {
    padding: 0.35rem 0.5rem;
    border-radius: var(--lp-rounded-md, 8px);
    transition: background 0.15s ease, color 0.15s ease;
}
.admin-shell-nav .nav-link:hover {
    background: color-mix(in srgb, var(--lp-primary) 8%, transparent);
    color: var(--lp-primary);
}
.admin-shell-nav .nav-link.is-active {
    background: color-mix(in srgb, var(--lp-primary) 12%, transparent);
    color: var(--lp-primary);
    font-weight: 600;
}

@media (max-width: 900px) {
    .admin-shell {
        flex-direction: column;
    }
    .admin-shell-nav {
        position: static;
        width: 100% !important;
        flex: none !important;
        max-height: none;
    }
}

/* --- quiz / result compatibility ---------------------------------------- */
/* The quiz modules came from the Tailwind build. Keep their class names but
   map them to the shared --lp-* tokens instead of shipping Tailwind. */
.bg-white { background-color: var(--lp-surface); }
.text-white { color: #fff; }
.bg-sensera-background { background-color: var(--lp-surface-page); }
.text-safely-subtle { color: var(--lp-text-muted); }
.text-safely-accent { color: var(--lp-accent); }
.text-safely-danger { color: var(--lp-danger); }
.border { border: 1px solid var(--lp-border); }
.border-safely-border { border-color: var(--lp-border); }
.border-safely-primary { border-color: var(--lp-primary); }
.border-safely-accent { border-color: var(--lp-accent); }
.border-safely-subtle { border-color: var(--lp-text-muted); }
.rounded-safely-pill { border-radius: 999px; }
.rounded-safely-xl { border-radius: 1.25rem; }
.rounded-safely-lg { border-radius: 0.75rem; }
.shadow-safely-card { box-shadow: var(--lp-shadow-card); }
.shadow-sm { box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08); }

[class~="border-safely-border/40"] { border-color: color-mix(in srgb, var(--lp-border) 40%, transparent); }
[class~="border-safely-border/50"] { border-color: color-mix(in srgb, var(--lp-border) 50%, transparent); }
[class~="border-safely-border/60"] { border-color: color-mix(in srgb, var(--lp-border) 60%, transparent); }
[class~="border-safely-border/70"] { border-color: color-mix(in srgb, var(--lp-border) 70%, transparent); }
[class~="border-safely-border/80"] { border-color: color-mix(in srgb, var(--lp-border) 80%, transparent); }
[class~="border-safely-accent/30"] { border-color: color-mix(in srgb, var(--lp-accent) 30%, transparent); }
[class~="border-safely-accent/50"] { border-color: color-mix(in srgb, var(--lp-accent) 50%, transparent); }
[class~="border-safely-primary/35"] { border-color: color-mix(in srgb, var(--lp-primary) 35%, transparent); }
[class~="border-safely-primary/40"] { border-color: color-mix(in srgb, var(--lp-primary) 40%, transparent); }
[class~="bg-safely-accent/5"] { background-color: color-mix(in srgb, var(--lp-accent) 5%, transparent); }
[class~="bg-safely-accent/10"] { background-color: color-mix(in srgb, var(--lp-accent) 10%, transparent); }
[class~="bg-safely-accent/15"] { background-color: color-mix(in srgb, var(--lp-accent) 15%, transparent); }
[class~="bg-safely-primary/10"] { background-color: color-mix(in srgb, var(--lp-primary) 10%, transparent); }
[class~="min-h-[100dvh]"] { min-height: 100dvh; }
[class~="hover:bg-safely-accent/10"]:hover { background-color: color-mix(in srgb, var(--lp-accent) 10%, transparent); }
[class~="hover:bg-safely-accent/90"]:hover { background-color: color-mix(in srgb, var(--lp-accent) 90%, #000); }
[class~="hover:bg-sensera-background"]:hover { background-color: var(--lp-surface-page); }
[class~="hover:border-safely-primary/35"]:hover { border-color: color-mix(in srgb, var(--lp-primary) 35%, transparent); }
[class~="hover:border-safely-primary/40"]:hover { border-color: color-mix(in srgb, var(--lp-primary) 40%, transparent); }
[class~="hover:border-safely-accent/50"]:hover { border-color: color-mix(in srgb, var(--lp-accent) 50%, transparent); }
[class~="focus:ring-safely-primary/10"]:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--lp-primary) 10%, transparent); }

.quiz-page { padding: 0 !important; }

.quiz-result-page {
    width: 100%;
    max-width: 56rem;
    margin: 0 auto;
    padding: 2rem 1rem 5rem;
}
.quiz-result-page .max-w-3xl { max-width: 100%; }
@media (min-width: 640px) {
    .quiz-result-page { padding-inline: 1.5rem; }
}

/* --- shell / forms polish ------------------------------------------------ */
.max-w-112 { max-width: 28rem; }
.ui-root .btn-soft:not(.w-full),
.ui-root .btn-secondary:not(.w-full) {
    width: auto;
}
.btn-block { width: 100%; }
.form-shell {
    width: 100%;
    max-height: min(80dvh, 44rem);
    overflow-y: auto;
    padding-right: 0.25rem;
}
.form-actions {
    position: sticky;
    bottom: 0;
    background: var(--lp-surface);
    padding-top: 0.75rem;
    padding-bottom: 0.25rem;
    border-top: 1px solid var(--lp-border);
}
.table-scroll { width: 100%; overflow-x: auto; }

/* --- reporting table ---------------------------------------------------- */
.report-table-toolbar { gap: 0.5rem; }
.report-table-search input { min-width: 16rem; }
.report-table-status { font-size: 0.75rem; }
.report-table-sort {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    font-weight: 700;
    color: var(--lp-text);
    cursor: pointer;
    white-space: nowrap;
}
.report-table-sort:hover { color: var(--lp-primary); }
.report-table-actions-menu { position: absolute; z-index: var(--lp-z-index-modal); min-width: 10rem; }
.report-table td,
.report-table th { vertical-align: middle; }

/* --- analytics dashboard ------------------------------------------------ */
.analytics-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 12rem;
    padding-top: 0.5rem;
}
.analytics-bar-col {
    display: flex;
    flex: 1 1 0;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    height: 100%;
}
.analytics-bar-pair {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    width: 100%;
    height: 100%;
}
.analytics-bar-view,
.analytics-bar-convert {
    width: 50%;
    max-width: 12px;
    border-radius: 3px 3px 0 0;
    min-height: 2px;
}
.analytics-bar-view { background: color-mix(in srgb, var(--lp-primary) 45%, transparent); }
.analytics-bar-convert { background: var(--lp-accent); }
.analytics-bar-label { font-size: 0.55rem; color: var(--lp-text-muted); }
.analytics-page .kpi-grid { grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); }

/* --- admin shell: compact top row + mobile nav toggle ------------------ */
.admin-shell-head { width: 100%; }
.admin-nav-toggle { display: inline-flex; }
@media (max-width: 900px) {
    .admin-shell-nav { display: none; }
    .admin-shell-nav.admin-shell-nav-open { display: flex; }
}

/* --- admin proofreader ------------------------------------------------- */
.proof-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}
.proof-textarea {
    width: 100%;
    min-height: 26rem;
    resize: vertical;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.82rem;
    line-height: 1.6;
}
.proof-preview {
    min-height: 26rem;
    font-size: 0.92rem;
    line-height: 1.7;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.proof-preview-hidden .proof-mark {
    background: transparent !important;
    color: inherit;
}
.proof-mark {
    position: relative;
    padding: 0 0.08em;
    border-radius: 0.2em;
    background: color-mix(in srgb, var(--lp-accent) 28%, transparent);
    text-decoration: underline dotted color-mix(in srgb, var(--lp-accent) 80%, #000);
    cursor: pointer;
}
.proof-mark[data-severity="claim"] { background: color-mix(in srgb, #ef4444 20%, transparent); }
.proof-mark[data-severity="tone"] { background: color-mix(in srgb, #8b5cf6 18%, transparent); }
.proof-mark[data-severity="grammar"] { background: color-mix(in srgb, #0ea5e9 18%, transparent); }
.proof-mark.is-active {
    outline: 2px solid var(--lp-primary);
    outline-offset: 1px;
}
.proof-mark:hover::after,
.proof-mark:focus::after {
    content: attr(data-tip);
    position: absolute;
    left: 0;
    bottom: calc(100% + 0.35rem);
    z-index: var(--lp-z-index-modal);
    width: max-content;
    max-width: 22rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-rounded-md, 8px);
    background: var(--lp-surface);
    color: var(--lp-text);
    box-shadow: var(--lp-shadow);
    font-size: 0.75rem;
    line-height: 1.5;
    white-space: normal;
    text-decoration: none;
    pointer-events: none;
}
.proof-suggestion {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-rounded-md, 8px);
    background: var(--lp-surface);
    text-align: left;
    cursor: pointer;
}
.proof-suggestion:hover,
.proof-suggestion.is-active { border-color: var(--lp-primary); background: var(--lp-surface-page); }
.proof-severity {
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    background: var(--lp-surface-muted);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.proof-severity-claim { background: color-mix(in srgb, #ef4444 18%, transparent); color: #991b1b; }
.proof-severity-tone { background: color-mix(in srgb, #8b5cf6 18%, transparent); color: #5b21b6; }
.proof-severity-grammar { background: color-mix(in srgb, #0ea5e9 18%, transparent); color: #075985; }
@media (max-width: 900px) {
    .proof-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .admin-shell {
        display: block;
        padding: 12px !important;
        overflow-x: clip;
    }
    .admin-shell-main {
        width: 100%;
        min-width: 0;
    }
    .admin-shell-nav {
        position: fixed !important;
        top: 64px;
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: auto !important;
        max-height: none;
        z-index: 3000;
        box-shadow: var(--lp-shadow);
    }
    .admin-shell-nav:not(.admin-shell-nav-open) {
        display: none;
    }
}

.max-w-prose { max-width: 720px; }
.pb-16 { padding-bottom: 4rem; }
[data-editor="true"]:focus,
[data-editor="true"]:focus-visible {
	border: 0 !important;
	outline: 0 !important;
	box-shadow: none !important;
}

/* Command-line dropdown */
.command-menu {
	position: relative;
	width: 100%;
	min-width: 0;
}
.command-menu-input {
	width: 100%;
}
.command-menu-list {
	position: absolute;
	z-index: var(--lp-z-index-modal, 900);
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	max-height: min(320px, 50vh);
	overflow: auto;
	padding: 4px;
	background: var(--lp-surface);
	border: 1px solid var(--lp-border);
	border-radius: var(--lp-rounded-lg);
	box-shadow: var(--lp-shadow-card);
}
.command-menu-list.hidden {
	display: none;
}
.command-menu-item {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 6px 8px;
	border-radius: var(--lp-rounded-md);
	cursor: pointer;
	font-size: var(--lp-text-sm);
	line-height: 1.3;
}
.command-menu-item:hover,
.command-menu-item.is-active {
	background: var(--lp-primary-soft);
}
.command-menu-hint {
	color: var(--lp-text-muted);
	font-size: var(--lp-text-2xs);
}
.command-menu-empty {
	padding: 8px;
	color: var(--lp-text-muted);
	font-size: var(--lp-text-2xs);
}

[data-texteditor-chrome] {
	gap: 4px;
}
[data-texteditor-chrome] .row {
	gap: 4px;
}
[data-texteditor-chrome] .btn-action {
	min-height: 22px;
	height: 22px;
	padding: 0 6px;
	font-size: 0.7rem;
	line-height: 1;
}
[data-texteditor-chrome] .input-text {
	min-height: 22px;
	height: 22px;
	padding: 0 6px;
	font-size: 0.7rem;
}
[data-texteditor-chrome] .command-menu {
	min-width: 160px;
}

/* Compact controls (content + quiz studio) */
.compact-ui .btn,
.compact-ui .btn-primary,
.compact-ui .btn-soft,
.compact-ui .btn-secondary,
.compact-ui .btn-ghost,
.compact-ui .btn-danger,
.compact-ui .btn-submit,
.compact-ui .btn-brand,
.compact-ui .btn-cancel,
.compact-ui .btn-action {
	min-height: 1.9rem;
	padding: 0.2rem 0.5rem;
	border-radius: var(--lp-rounded-md);
	font-size: 0.7rem;
	line-height: 1.15;
	box-shadow: none;
}
.compact-ui .btn-primary,
.compact-ui .btn-brand,
.compact-ui .btn-submit {
	box-shadow: none;
}

/* --- strategy ---------------------------------------------------------- */
/* Editorial, high-contrast practice room. Scoped to .st-* so the rest of the
   product (checkout, landing, blog) is untouched. */
.st-shell {
    width: 100%;
    max-width: 78rem;
    margin: 0 auto;
    padding: 2rem 1rem 6rem;
    color: #16211c;
}
.st-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
}
.st-brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; letter-spacing: -0.02em; }
.st-mark {
    width: 2rem; height: 2rem; border-radius: 0.55rem;
    display: grid; place-items: center;
    background: #16211c; color: #f5e9c9; font-size: 0.8rem; font-weight: 800;
}
.st-tabs { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.st-tab {
    padding: 0.45rem 0.8rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600;
    color: #54615a; text-decoration: none; border: 1px solid transparent;
}
.st-tab:hover { background: #eef2ec; color: #16211c; }
.st-tab[aria-current="page"] { background: #16211c; color: #f4f1e8; }

.st-hero {
    position: relative; overflow: hidden;
    border-radius: 1.75rem;
    padding: clamp(1.5rem, 4vw, 3.5rem);
    background:
        radial-gradient(circle at 82% 12%, rgba(245, 166, 35, 0.28), transparent 38%),
        linear-gradient(140deg, #10241c 0%, #173a2c 58%, #1d4a37 100%);
    color: #f4f1e8;
    box-shadow: 0 24px 60px rgba(16, 36, 28, 0.25);
}
.st-hero h1 {
    margin: 0.4rem 0 0.9rem;
    font-size: clamp(2.1rem, 5vw, 4.2rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
    max-width: 18ch;
}
.st-hero p { color: rgba(244, 241, 232, 0.76); max-width: 54ch; line-height: 1.6; }
.st-hero .st-amber { color: #f5b24a; }
.st-eyebrow {
    margin: 0; text-transform: uppercase; letter-spacing: 0.16em;
    font-size: 0.7rem; font-weight: 800; color: #8fa597;
}
.st-hero .st-eyebrow { color: #f5b24a; }
.st-hero-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.5rem; }
.st-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin-top: 2.25rem; }
.st-stat { border-top: 1px solid rgba(244, 241, 232, 0.18); padding-top: 0.65rem; }
.st-stat strong { display: block; font-size: 1.5rem; letter-spacing: -0.03em; }
.st-stat span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(244, 241, 232, 0.55); }

.st-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
    border: 0; border-radius: 0.7rem; padding: 0.7rem 1.1rem;
    background: #f5b24a; color: #16211c; font-weight: 700; font-size: 0.85rem;
    text-decoration: none; cursor: pointer; transition: transform 0.12s ease, background 0.12s ease;
}
.st-btn:hover { transform: translateY(-1px); background: #ffc266; }
.st-btn.ghost { background: transparent; color: inherit; border: 1px solid rgba(22, 33, 28, 0.18); }
.st-hero .st-btn.ghost { color: #f4f1e8; border-color: rgba(244, 241, 232, 0.35); }
.st-btn.dark { background: #16211c; color: #f4f1e8; }
.st-btn.small { padding: 0.42rem 0.7rem; font-size: 0.75rem; border-radius: 0.55rem; }
.st-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.st-section { margin-top: 3rem; }
.st-section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.st-section-head h2 { margin: 0.15rem 0 0; font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -0.03em; }
.st-section-head p { margin: 0.3rem 0 0; color: #6a756e; max-width: 56ch; }

.st-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.st-grid.two { grid-template-columns: 1fr; }
.st-grid.three { grid-template-columns: 1fr; }
@media (min-width: 720px) {
    .st-grid.two, .st-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .st-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1080px) {
    .st-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.st-card {
    background: #fffdf8; border: 1px solid #e4e1d5; border-radius: 1.15rem;
    padding: 1.15rem 1.25rem; box-shadow: 0 2px 0 rgba(22, 33, 28, 0.03);
}
.st-card.flat { background: #f7f5ee; box-shadow: none; }
.st-card h3 { margin: 0.2rem 0 0.4rem; font-size: 1.05rem; letter-spacing: -0.02em; }
.st-card p { margin: 0; color: #5f6a63; font-size: 0.9rem; line-height: 1.55; }
.st-card .st-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.75rem; }
.st-link-card { display: block; color: inherit; text-decoration: none; transition: transform 0.15s ease, border-color 0.15s ease; }
.st-link-card:hover { transform: translateY(-2px); border-color: #c9c2a9; }

.st-pill {
    display: inline-flex; align-items: center; gap: 0.3rem;
    border-radius: 999px; padding: 0.22rem 0.6rem;
    background: #eef2ec; color: #405047;
    font-size: 0.68rem; font-weight: 700; letter-spacing: 0.03em;
}
.st-pill.amber { background: #fbeccd; color: #7a4f0a; }
.st-pill.dark { background: #16211c; color: #f4f1e8; }
.st-pill.blue { background: #e3ebf7; color: #234a78; }
.st-pill.rose { background: #f7e5e2; color: #8a3a2c; }
.st-pill.green { background: #dff1e3; color: #1d6a3a; }

.st-stage { border-top: 2px solid #16211c; padding-top: 0.8rem; }
.st-stage h3 { margin: 0 0 0.2rem; font-size: 0.95rem; }
.st-stage p { margin: 0 0 0.8rem; font-size: 0.8rem; color: #6a756e; }
.st-skill { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.32rem 0; border-bottom: 1px dashed #e4e1d5; font-size: 0.82rem; }
.st-skill:last-child { border-bottom: 0; }
.st-skill span { color: #5f6a63; }

.st-meter { height: 7px; border-radius: 999px; background: #e9e7dd; overflow: hidden; }
.st-meter > i { display: block; height: 100%; border-radius: 999px; background: #1d4a37; }
.st-meter > i.warn { background: #d17a2f; }
.st-meter > i.bad { background: #b4432f; }
.st-meter-row { display: grid; grid-template-columns: 10rem 1fr 2.5rem; align-items: center; gap: 0.65rem; padding: 0.3rem 0; font-size: 0.82rem; }
.st-meter-row b { font-weight: 600; }

.st-chat {
    display: flex; flex-direction: column; gap: 0.75rem;
    max-height: 30rem; overflow-y: auto; padding: 0.35rem;
}
.st-msg { max-width: 88%; padding: 0.7rem 0.9rem; border-radius: 0.9rem; font-size: 0.9rem; line-height: 1.55; white-space: pre-wrap; }
.st-msg.assistant { align-self: flex-start; background: #eef2ec; border-bottom-left-radius: 0.25rem; }
.st-msg.user { align-self: flex-end; background: #16211c; color: #f4f1e8; border-bottom-right-radius: 0.25rem; }
.st-msg small { display: block; margin-top: 0.35rem; opacity: 0.55; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; }
.st-composer { display: flex; gap: 0.5rem; align-items: flex-end; margin-top: 0.9rem; }
.st-composer textarea {
    flex: 1; min-height: 3.1rem; max-height: 10rem; resize: vertical;
    border: 1px solid #d9d5c7; border-radius: 0.7rem; padding: 0.65rem 0.75rem;
    font: inherit; font-size: 0.9rem; background: #fffdf8;
}
.st-composer textarea:focus { outline: 2px solid #f5b24a; outline-offset: 1px; }
.st-note { font-size: 0.78rem; color: #737d76; line-height: 1.5; }

.st-panel { border: 1px solid #e4e1d5; border-radius: 1.15rem; padding: 1.25rem; background: #fffdf8; }
.st-panel h3 { margin: 0 0 0.6rem; font-size: 1rem; }
.st-kv { display: grid; grid-template-columns: 1fr; gap: 0.5rem; }
.st-kv div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed #e4e1d5; padding: 0.35rem 0; font-size: 0.82rem; }
.st-kv span { color: #6a756e; }

.st-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.st-table th, .st-table td { text-align: left; padding: 0.55rem 0.6rem; border-bottom: 1px solid #ece9dd; }
.st-table th { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: #737d76; }
.st-table tr.me { background: #fdf3dc; }

.st-conviction { display: flex; height: 0.55rem; border-radius: 999px; overflow: hidden; background: #e9e7dd; }
.st-conviction > i { display: block; height: 100%; }
.st-conviction > i.a { background: #1d4a37; }
.st-conviction > i.b { background: #d17a2f; }

.st-thread { display: grid; gap: 0.5rem; }
.st-thread .st-q { font-size: 0.9rem; color: #4d5a52; line-height: 1.55; }

.st-piece { display: flex; flex-direction: column; gap: 0.5rem; }
.st-projection { display: flex; gap: 0.35rem; align-items: flex-end; height: 3.5rem; margin-top: 0.4rem; }
.st-projection > i { flex: 1; background: #cfe0d4; border-radius: 0.2rem 0.2rem 0 0; min-height: 4px; }
.st-projection > i.base { background: #1d4a37; }
.st-projection > i.bull { background: #f5b24a; }
.st-projection > i.bear { background: #d17a2f; }

.st-tornado { display: grid; gap: 0.5rem; }
.st-tornado-row { display: grid; grid-template-columns: 9rem 1fr 4rem; align-items: center; gap: 0.5rem; font-size: 0.82rem; }
.st-tornado-bar { height: 0.7rem; background: #e9e7dd; border-radius: 999px; overflow: hidden; }
.st-tornado-bar > i { display: block; height: 100%; background: #d17a2f; }

.st-form { display: grid; gap: 0.75rem; }
.st-form label { display: grid; gap: 0.25rem; font-size: 0.78rem; font-weight: 700; color: #4d5a52; }
.st-form input, .st-form select, .st-form textarea {
    border: 1px solid #d9d5c7; border-radius: 0.6rem; padding: 0.55rem 0.65rem;
    font: inherit; font-size: 0.85rem; background: #fffdf8; width: 100%;
}
.st-form input:focus, .st-form textarea:focus, .st-form select:focus { outline: 2px solid #f5b24a; outline-offset: 1px; }
.st-driver { display: grid; grid-template-columns: 1.2fr 1fr 3.5rem 2rem; gap: 0.4rem; align-items: center; }
.st-inline { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.st-split { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 980px) { .st-split { grid-template-columns: 1.45fr 1fr; align-items: start; } }
.st-muted { color: #737d76; }
.st-small { font-size: 0.78rem; }
.st-empty { padding: 2rem; text-align: center; border: 1px dashed #cfcaba; border-radius: 1rem; color: #737d76; }
.st-lock { background: #16211c; color: #f4f1e8; border-radius: 1.15rem; padding: 1.5rem; }
.st-lock p { color: rgba(244, 241, 232, 0.72); }
.st-lock input { border-radius: 0.55rem; border: 1px solid rgba(244,241,232,.3); background: rgba(255,255,255,.08); color: #fff; padding: .55rem .7rem; font: inherit; }
.st-share { border-left: 3px solid #f5b24a; padding-left: 0.9rem; }

@media (min-width: 720px) {
    .st-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1080px) {
    .st-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.st-body { white-space: pre-line; }
.st-inline select, .st-inline input {
    border: 1px solid #d9d5c7; border-radius: 0.55rem; padding: 0.5rem 0.6rem;
    font: inherit; font-size: 0.8rem; background: #fffdf8; color: #16211c;
}
.st-inline select:focus, .st-inline input:focus { outline: 2px solid #f5b24a; outline-offset: 1px; }
