/**
 * Autolevo UI Layer — shared components ported from the React prototype.
 *
 * Source of truth: prototype/src/theme.ts and prototype/src/components/ui.tsx
 * (owner brief 2026-11-25: the live site adopts the prototype's visual language).
 *
 * Loaded at wp_enqueue_scripts priority 999 (DesignSystemModule::enqueue_ui_layer),
 * after every module stylesheet. Two parts:
 *   A. Opt-in components (.al-ui-*) used by redesigned templates and JS views.
 *   B. Content-scoped adoption of Bootstrap / GeoDirectory primitives.
 *
 * Header & footer freeze: nothing here targets the global header, the mobile
 * drawer, the header dialogs or the global footer. Part B is scoped to page
 * content wrappers only, and the frozen roots keep their legacy tokens via
 * autolevo-design-system.css §2b.
 *
 * Colours come from --al-* tokens only, so Dark and Light modes follow
 * html[data-theme] automatically.
 *
 * @package Autolevo\Core
 */

/* ==========================================================================
   A1. PANEL (prototype Panel / MUI Card outlined)
   ========================================================================== */
.al-ui-panel {
	background: var(--al-bg-card);
	border: 1px solid var(--al-border-hairline);
	border-radius: var(--al-radius-card, 24px);
	box-shadow: var(--al-shadow-card, none);
	color: var(--al-text-primary);
	padding: 18px;
	min-width: 0;
}

.al-ui-panel--dense {
	padding: 14px;
}

.al-ui-panel--flush {
	padding: 0;
	overflow: hidden;
}

.al-ui-panel--accent {
	background: var(--al-blue-soft);
	border-color: var(--al-blue-border);
}

.al-ui-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 12px;
}

.al-ui-panel__head:last-child {
	margin-bottom: 0;
}

.al-ui-panel__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0;
	color: var(--al-text-primary);
}

.al-ui-panel__body > :last-child {
	margin-bottom: 0;
}

.al-ui-grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(var(--al-ui-cols, 1), minmax(0, 1fr));
}

.al-ui-grid--2 { --al-ui-cols: 2; }
.al-ui-grid--3 { --al-ui-cols: 3; }
.al-ui-grid--4 { --al-ui-cols: 4; }

@media (max-width: 1023px) {
	.al-ui-grid--3,
	.al-ui-grid--4 { --al-ui-cols: 2; }
}

@media (max-width: 599px) {
	.al-ui-grid--2,
	.al-ui-grid--3 { --al-ui-cols: 1; }
	.al-ui-grid--4 { --al-ui-cols: 2; }
	.al-ui-grid { gap: 12px; }
}

/* ==========================================================================
   A2. PAGE HEADER & SECTION LABEL (prototype PageHeader / SectionLabel)
   ========================================================================== */
.al-ui-page-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 20px;
}

.al-ui-page-header__main {
	min-width: 0;
}

.al-ui-page-header__titlerow {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px 8px;
}

.al-ui-page-header__title {
	margin: 0;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.334;
	letter-spacing: -0.01em;
	color: var(--al-text-primary);
}

.al-ui-page-header__subtitle {
	margin: 4px 0 0;
	font-size: 0.875rem;
	line-height: 1.43;
	color: var(--al-text-secondary);
}

.al-ui-page-header__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	flex-shrink: 0;
}

@media (max-width: 599px) {
	.al-ui-page-header {
		flex-direction: column;
		align-items: stretch;
	}

	.al-ui-page-header__title {
		font-size: 22px;
	}
}

.al-ui-section-label {
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	line-height: 1.6;
	text-transform: uppercase;
	color: var(--al-text-secondary);
}

/* ==========================================================================
   A3. NUMBERS & MONEY (tabular-nums everywhere a figure is shown)
   ========================================================================== */
.al-ui-num,
.al-tabular,
.autolevo-price {
	font-variant-numeric: tabular-nums;
}

.al-ui-money {
	display: inline-flex;
	flex-direction: column;
	font-variant-numeric: tabular-nums;
}

.al-ui-money__usd {
	font-weight: 700;
	color: var(--al-text-primary);
}

.al-ui-money__local {
	font-size: 0.75rem;
	line-height: 1.66;
	color: var(--al-text-secondary);
}

/* ==========================================================================
   A4. STAT TILE (prototype StatTile; --locked = Starter muted preview, no blur)
   ========================================================================== */
.al-ui-stat {
	height: 100%;
}

.al-ui-stat__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
}

.al-ui-stat__label {
	font-size: 0.875rem;
	line-height: 1.43;
	color: var(--al-text-secondary);
}

.al-ui-stat__valuerow {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 4px;
}

.al-ui-stat__value {
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.334;
	color: var(--al-text-primary);
	font-variant-numeric: tabular-nums;
}

.al-ui-stat__sub {
	font-size: 0.75rem;
	color: var(--al-text-secondary);
	font-variant-numeric: tabular-nums;
}

.al-ui-stat--blue .al-ui-stat__value { color: var(--al-tone-blue); }
.al-ui-stat--green .al-ui-stat__value { color: var(--al-tone-green); }
.al-ui-stat--amber .al-ui-stat__value { color: var(--al-tone-amber); }
.al-ui-stat--red .al-ui-stat__value { color: var(--al-tone-red); }
.al-ui-stat--violet .al-ui-stat__value { color: var(--al-tone-violet); }

/* Locked = legible muted figures + lock icon. Never blur: the server decides what is sent. */
.al-ui-stat--locked .al-ui-stat__label,
.al-ui-stat--locked .al-ui-stat__value,
.al-ui-stat--locked .al-ui-stat__sub,
.al-ui-stat--locked .al-ui-stat__lock {
	color: var(--al-text-locked);
}

.al-ui-stat__lock {
	font-size: 14px;
	line-height: 1;
}

/* ==========================================================================
   A5. TONAL CHIPS (prototype StatusChip / LockedChip — squared 6px, no pills)
   ========================================================================== */
.al-ui-chip {
	--_c: var(--al-tone-grey);
	display: inline-flex;
	align-items: center;
	gap: 4px;
	height: 24px;
	padding: 0 8px;
	border-radius: var(--al-radius-chip, 6px);
	border: 1px solid transparent;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	vertical-align: middle;
	font-variant-numeric: tabular-nums;
	background: color-mix(in srgb, var(--_c) 16%, transparent);
	color: var(--_c);
}

html[data-theme="light"] .al-ui-chip {
	background: color-mix(in srgb, var(--_c) 12%, transparent);
}

.al-ui-chip--sm {
	height: 22px;
	font-size: 12px;
}

.al-ui-chip i,
.al-ui-chip svg {
	font-size: 12px;
	color: inherit;
}

.al-ui-chip--blue { --_c: var(--al-tone-blue); }
.al-ui-chip--green { --_c: var(--al-tone-green); }
.al-ui-chip--amber { --_c: var(--al-tone-amber); }
.al-ui-chip--red { --_c: var(--al-tone-red); }
.al-ui-chip--violet { --_c: var(--al-tone-violet); }
.al-ui-chip--grey { --_c: var(--al-tone-grey); }

html[data-theme="light"] .al-ui-chip--amber { --_c: #B45309; }
html[data-theme="light"] .al-ui-chip--green { --_c: #15803D; }

.al-ui-chip--solid {
	background: var(--_c);
	color: #FFFFFF;
}

html[data-theme="light"] .al-ui-chip--solid {
	background: var(--_c);
}

.al-ui-chip--outline {
	background: transparent;
	border-color: color-mix(in srgb, var(--_c) 50%, transparent);
}

html[data-theme="light"] .al-ui-chip--outline {
	background: transparent;
}

.al-ui-chip-locked {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	height: 20px;
	padding: 0 6px;
	border-radius: var(--al-radius-chip, 6px);
	font-size: 10.5px;
	font-weight: 600;
	line-height: 1;
	flex-shrink: 0;
	background: color-mix(in srgb, var(--al-text-primary) 8%, transparent);
	color: var(--al-text-secondary);
}

.al-ui-chip-locked i {
	font-size: 10px;
}

/* ==========================================================================
   A6. BUTTONS (prototype MuiButton: 8px radius, 600 weight, no uppercase)
   ========================================================================== */
.al-ui-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 40px;
	padding: 6px 16px;
	border-radius: var(--al-radius-control, 8px);
	border: 1px solid transparent;
	background: transparent;
	color: var(--al-text-primary);
	font: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.75;
	letter-spacing: 0.01em;
	text-transform: none;
	text-decoration: none !important;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color var(--al-duration-base) var(--al-ease),
		border-color var(--al-duration-base) var(--al-ease),
		color var(--al-duration-base) var(--al-ease);
}

.al-ui-btn:focus-visible {
	outline: none;
	box-shadow: var(--al-blue-focus);
}

.al-ui-btn:disabled,
.al-ui-btn.is-disabled {
	opacity: 0.45;
	cursor: not-allowed;
	pointer-events: none;
}

.al-ui-btn--primary {
	background: var(--al-blue);
	border-color: var(--al-blue);
	color: #FFFFFF !important;
}

.al-ui-btn--primary:hover {
	background: var(--al-blue-hover);
	border-color: var(--al-blue-hover);
}

.al-ui-btn--outlined {
	border-color: var(--al-border-strong);
	color: var(--al-text-primary);
}

.al-ui-btn--outlined:hover {
	background: var(--al-bg-hover);
}

.al-ui-btn--outlined-primary {
	border-color: var(--al-blue-border);
	color: var(--al-blue-text);
}

.al-ui-btn--outlined-primary:hover {
	background: var(--al-blue-soft);
}

.al-ui-btn--text {
	padding-inline: 8px;
	color: var(--al-blue-text);
}

.al-ui-btn--text:hover {
	background: var(--al-blue-soft);
}

.al-ui-btn--success {
	background: var(--al-tone-green);
	border-color: var(--al-tone-green);
	color: #FFFFFF !important;
}

.al-ui-btn--danger {
	border-color: var(--al-danger-border);
	color: var(--al-danger-text);
}

.al-ui-btn--lg {
	min-height: 48px;
	padding-inline: 22px;
	font-size: 0.9375rem;
}

.al-ui-btn--sm {
	min-height: 32px;
	padding: 4px 10px;
	font-size: 0.8125rem;
}

.al-ui-btn--block {
	width: 100%;
}

.al-ui-icon-btn {
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 0;
	background: transparent;
	color: var(--al-text-secondary);
	cursor: pointer;
}

.al-ui-icon-btn:hover {
	background: var(--al-bg-hover);
	color: var(--al-text-primary);
}

/* Touch screens keep the 44px tap target the live site already guarantees. */
@media (pointer: coarse) {
	.al-ui-btn {
		min-height: 44px;
	}

	.al-ui-icon-btn {
		width: 44px;
		height: 44px;
	}
}

/* ==========================================================================
   A7. FIELDS (prototype MuiOutlinedInput: 10px radius, #0D1015 dark fill)
   ========================================================================== */
.al-ui-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.al-ui-field__label {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--al-text-secondary);
}

.al-ui-field__help {
	font-size: 0.75rem;
	color: var(--al-text-muted);
}

.al-ui-field__error {
	font-size: 0.75rem;
	color: var(--al-danger-text);
}

.al-ui-input {
	width: 100%;
	min-height: 44px;
	padding: 8.5px 14px;
	border-radius: var(--al-radius-input, 10px);
	border: 1px solid var(--al-border-subtle);
	background: var(--al-bg-input);
	color: var(--al-text-primary);
	font: inherit;
}

html[data-theme="light"] .al-ui-input {
	border-color: var(--al-border-strong);
}

.al-ui-input:focus {
	outline: none;
	border-color: var(--al-blue);
	box-shadow: var(--al-blue-focus);
}

/* ==========================================================================
   A8. TABS (prototype MuiTabs: 44px, 600 weight, 2px primary indicator)
   ========================================================================== */
.al-ui-tabs {
	display: flex;
	gap: 4px;
	min-height: 44px;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
	border-bottom: 1px solid var(--al-border-hairline);
	overflow-x: auto;
	scrollbar-width: none;
}

.al-ui-tabs::-webkit-scrollbar {
	display: none;
}

.al-ui-tab {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 0 14px;
	border: 0;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	background: transparent;
	color: var(--al-text-secondary);
	font: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	white-space: nowrap;
	text-decoration: none !important;
	cursor: pointer;
}

.al-ui-tab:hover {
	color: var(--al-text-primary);
}

.al-ui-tab.is-active,
.al-ui-tab[aria-selected="true"],
.al-ui-tab[aria-current="page"] {
	color: var(--al-blue-text);
	border-bottom-color: var(--al-blue);
}

/* ==========================================================================
   A9. LIST ROWS, TABLES & PHONE CARD-TABLES
   ========================================================================== */
.al-ui-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	border-top: 1px solid var(--al-border-hairline);
}

.al-ui-row:first-child {
	border-top: 0;
	padding-top: 0;
}

.al-ui-row:last-child {
	padding-bottom: 0;
}

.al-ui-row__main {
	flex: 1;
	min-width: 0;
}

.al-ui-row__title {
	font-weight: 600;
	color: var(--al-text-primary);
}

.al-ui-row__meta {
	font-size: 0.8125rem;
	color: var(--al-text-secondary);
}

.al-ui-table {
	width: 100%;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
	color: var(--al-text-primary);
}

.al-ui-table th,
.al-ui-table td {
	padding: 12px 16px;
	border-bottom: 1px solid var(--al-border-hairline);
	text-align: start;
	vertical-align: middle;
}

.al-ui-table th {
	font-size: 13px;
	font-weight: 600;
	color: var(--al-text-secondary);
	background: transparent;
}

.al-ui-table tbody tr:hover {
	background: var(--al-table-row-hover);
}

@media (max-width: 599px) {
	.al-ui-table thead {
		display: none;
	}

	.al-ui-table,
	.al-ui-table tbody,
	.al-ui-table tr,
	.al-ui-table td {
		display: block;
		width: 100%;
	}

	.al-ui-table tr {
		margin-bottom: 12px;
		padding: 6px 14px;
		border: 1px solid var(--al-border-hairline);
		border-radius: 16px;
		background: var(--al-bg-card);
	}

	.al-ui-table td {
		display: flex;
		justify-content: space-between;
		gap: 12px;
		padding: 8px 0;
	}

	.al-ui-table tr td:last-child {
		border-bottom: 0;
	}

	.al-ui-table td[data-label]::before {
		content: attr(data-label);
		font-size: 12px;
		font-weight: 600;
		color: var(--al-text-secondary);
	}
}

/* ==========================================================================
   A10. MEDIA PLACEHOLDER, STARS, AVATAR, PROGRESS
   ========================================================================== */
.al-ui-media {
	--al-ui-hue: 220;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	min-height: 120px;
	border-radius: var(--al-radius-media, 20px);
	border: 1px solid var(--al-border-hairline);
	overflow: hidden;
	color: var(--al-text-secondary);
	background: linear-gradient(135deg, hsl(var(--al-ui-hue) 18% 16%), hsl(var(--al-ui-hue) 14% 10%));
}

html[data-theme="light"] .al-ui-media {
	background: linear-gradient(135deg, hsl(var(--al-ui-hue) 30% 94%), hsl(var(--al-ui-hue) 20% 88%));
}

.al-ui-media > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.al-ui-stars {
	display: inline-flex;
	gap: 0;
	color: #F5B301;
	font-size: 15px;
	line-height: 1;
}

.al-ui-avatar {
	--al-ui-avatar: 32px;
	display: inline-grid;
	place-items: center;
	flex-shrink: 0;
	width: var(--al-ui-avatar);
	height: var(--al-ui-avatar);
	border-radius: 50%;
	background: var(--al-blue);
	color: #FFFFFF;
	font-size: calc(var(--al-ui-avatar) * 0.42);
	font-weight: 700;
	overflow: hidden;
}

.al-ui-avatar > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.al-ui-progress {
	height: 6px;
	border-radius: 4px;
	background: var(--al-bg-track);
	overflow: hidden;
}

.al-ui-progress__bar {
	height: 100%;
	border-radius: 4px;
	background: var(--al-blue);
}

/* ==========================================================================
   A11. EMPTY, GATE & NOTICE STATES (prototype SignInRequired / RoleGate)
   ========================================================================== */
.al-ui-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	max-width: 560px;
	margin: 0 auto;
	padding: 32px 16px;
	text-align: center;
}

.al-ui-empty__icon {
	font-size: 40px;
	line-height: 1;
	color: var(--al-blue);
}

.al-ui-empty__icon--muted {
	color: var(--al-text-secondary);
}

.al-ui-empty__title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--al-text-primary);
}

.al-ui-empty__text {
	margin: 0;
	font-size: 0.875rem;
	color: var(--al-text-secondary);
}

.al-ui-empty__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.al-ui-notice {
	--_c: var(--al-tone-blue);
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 12px 16px;
	border-radius: 12px;
	border: 1px solid color-mix(in srgb, var(--_c) 34%, transparent);
	background: color-mix(in srgb, var(--_c) 10%, transparent);
	color: var(--al-text-primary);
}

.al-ui-notice--amber { --_c: var(--al-tone-amber); }
.al-ui-notice--green { --_c: var(--al-tone-green); }
.al-ui-notice--red { --_c: var(--al-tone-red); }

.al-ui-notice > i {
	color: var(--_c);
	margin-top: 3px;
}

/* ==========================================================================
   A12. DRAWER & MODAL SURFACES (prototype MuiDrawer / Dialog)
   ========================================================================== */
.al-ui-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	z-index: 1060;
}

.al-ui-sheet {
	background: var(--al-bg-card);
	border: 1px solid var(--al-border-hairline);
	border-radius: var(--al-radius-card, 24px);
	color: var(--al-text-primary);
	box-shadow: var(--al-shadow-elevated);
}

.al-ui-drawer {
	position: fixed;
	inset-block: 0;
	inset-inline-start: 0;
	width: min(320px, 86vw);
	background: var(--al-bg-sidebar);
	border-inline-end: 1px solid var(--al-border-hairline);
	z-index: 1061;
	overflow-y: auto;
	padding-bottom: var(--al-safe-bottom);
}

@media (max-width: 599px) {
	.al-ui-sheet--bottom {
		position: fixed;
		inset-inline: 0;
		bottom: 0;
		border-radius: 20px 20px 0 0;
		max-height: 88dvh;
		overflow-y: auto;
		padding-bottom: calc(16px + var(--al-safe-bottom));
	}
}

/* ==========================================================================
   A13. DASHBOARD NAVIGATION PRIMITIVES (prototype DashboardNav / MobileBottomNav)
   Used by the /account/ and /dashboard/ shells in Phase 4.
   ========================================================================== */
.al-ui-nav-group__heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 6px 8px;
	border: 0;
	background: transparent;
	color: var(--al-text-secondary);
	font: inherit;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	line-height: 1.4;
	text-transform: uppercase;
	cursor: pointer;
}

.al-ui-nav-item {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 2px;
	padding: 6px 6px 6px 8px;
	border-radius: var(--al-radius-nav, 15px);
	border-left: 3px solid transparent;
	color: var(--al-text-primary);
	font-size: 14px;
	text-decoration: none !important;
}

.al-ui-nav-item:hover {
	background: var(--al-bg-hover);
}

.al-ui-nav-item__icon {
	width: 22px;
	min-width: 22px;
	text-align: center;
	color: var(--al-text-secondary);
	font-size: 16px;
}

.al-ui-nav-item__label {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.al-ui-nav-item.is-active,
.al-ui-nav-item[aria-current="page"] {
	background: var(--al-bg-sidebar-active);
	border-left-color: var(--al-blue);
	font-weight: 700;
}

.al-ui-nav-item.is-active .al-ui-nav-item__icon,
.al-ui-nav-item[aria-current="page"] .al-ui-nav-item__icon {
	color: var(--al-blue);
}

.al-ui-count-badge {
	display: inline-grid;
	place-items: center;
	min-width: 20px;
	height: 20px;
	padding: 0 4px;
	border-radius: 10px;
	background: var(--al-blue);
	color: #FFFFFF;
	font-size: 11px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

/* Bottom nav stays dark in both modes (prototype CHROME.bottomNav). */
.al-ui-bottom-nav {
	position: fixed;
	inset-inline: 0;
	bottom: 0;
	z-index: 1040;
	display: flex;
	height: calc(64px + var(--al-safe-bottom));
	padding-bottom: var(--al-safe-bottom);
	background: #0D1015;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.al-ui-bottom-nav__item {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	min-width: 0;
	border: 0;
	border-top: 2px solid transparent;
	background: transparent;
	color: #8E96A4;
	font: inherit;
	font-size: 11px;
	text-decoration: none !important;
}

.al-ui-bottom-nav__item i {
	font-size: 18px;
}

.al-ui-bottom-nav__item.is-active,
.al-ui-bottom-nav__item[aria-current="page"] {
	color: var(--al-blue);
	border-top-color: var(--al-blue);
}

/* ==========================================================================
   B. CONTENT-SCOPED ADOPTION OF BOOTSTRAP / GEODIRECTORY PRIMITIVES
   Scope: page content wrappers only (main, .site-main, dashboard roots, and the
   profile / directory / platform scopes that render outside <main>). Rules without
   !important, so any existing !important component rule still wins; these only
   replace Bootstrap defaults with the prototype language.
   ========================================================================== */
:is(main, .site-main, .al-dash-root, .autolevo-dash-wrap, .autolevo-profile-scope, .autolevo-directory-container, .autolevo-platform-scope, .entry-content, .wp-block-post-content) .card {
	background-color: var(--al-bg-card);
	border: 1px solid var(--al-border-hairline);
	border-radius: var(--al-radius-card, 24px);
	box-shadow: var(--al-shadow-card, none);
}

:is(main, .site-main, .al-dash-root, .autolevo-dash-wrap, .autolevo-profile-scope, .autolevo-directory-container, .autolevo-platform-scope, .entry-content, .wp-block-post-content) .card > .card-header:first-child {
	border-radius: var(--al-radius-card, 24px) var(--al-radius-card, 24px) 0 0;
}

:is(main, .site-main, .al-dash-root, .autolevo-dash-wrap, .autolevo-profile-scope, .autolevo-directory-container, .autolevo-platform-scope, .entry-content, .wp-block-post-content) .card-header,
:is(main, .site-main, .al-dash-root, .autolevo-dash-wrap, .autolevo-profile-scope, .autolevo-directory-container, .autolevo-platform-scope, .entry-content, .wp-block-post-content) .card-footer {
	background-color: transparent;
	border-color: var(--al-border-hairline);
}

/* Squared-off tonal badges instead of iOS-style pills. */
:is(main, .site-main, .al-dash-root, .autolevo-dash-wrap, .autolevo-profile-scope, .autolevo-directory-container, .autolevo-platform-scope, .entry-content, .wp-block-post-content) .badge,
:is(main, .site-main, .al-dash-root, .autolevo-dash-wrap, .autolevo-profile-scope, .autolevo-directory-container, .autolevo-platform-scope, .entry-content, .wp-block-post-content) .badge.rounded-pill {
	border-radius: var(--al-radius-chip, 6px);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

:is(main, .site-main, .al-dash-root, .autolevo-dash-wrap, .autolevo-profile-scope, .autolevo-directory-container, .autolevo-platform-scope, .entry-content, .wp-block-post-content) .btn:not(.btn-close):not(.btn-link):not(.rounded-circle) {
	border-radius: var(--al-radius-control, 8px);
	font-weight: 600;
	text-transform: none;
}

:is(main, .site-main, .al-dash-root, .autolevo-dash-wrap, .autolevo-profile-scope, .autolevo-directory-container, .autolevo-platform-scope, .entry-content, .wp-block-post-content) .btn-outline-secondary,
:is(main, .site-main, .al-dash-root, .autolevo-dash-wrap, .autolevo-profile-scope, .autolevo-directory-container, .autolevo-platform-scope, .entry-content, .wp-block-post-content) .btn-outline-dark,
:is(main, .site-main, .al-dash-root, .autolevo-dash-wrap, .autolevo-profile-scope, .autolevo-directory-container, .autolevo-platform-scope, .entry-content, .wp-block-post-content) .btn-outline-light {
	border-color: var(--al-border-strong);
	color: var(--al-text-primary);
}

:is(main, .site-main, .al-dash-root, .autolevo-dash-wrap, .autolevo-profile-scope, .autolevo-directory-container, .autolevo-platform-scope, .entry-content, .wp-block-post-content) .table {
	--bs-table-bg: transparent;
	--bs-table-color: var(--al-text-primary);
	--bs-table-border-color: var(--al-border-hairline);
	--bs-table-hover-bg: var(--al-table-row-hover);
	font-variant-numeric: tabular-nums;
}

:is(main, .site-main, .al-dash-root, .autolevo-dash-wrap, .autolevo-profile-scope, .autolevo-directory-container, .autolevo-platform-scope, .entry-content, .wp-block-post-content) .table > thead th {
	color: var(--al-text-secondary);
	font-size: 13px;
	font-weight: 600;
}

:is(main, .site-main, .al-dash-root, .autolevo-dash-wrap, .autolevo-profile-scope, .autolevo-directory-container, .autolevo-platform-scope, .entry-content, .wp-block-post-content) .nav-tabs {
	border-bottom-color: var(--al-border-hairline);
}

:is(main, .site-main, .al-dash-root, .autolevo-dash-wrap, .autolevo-profile-scope, .autolevo-directory-container, .autolevo-platform-scope, .entry-content, .wp-block-post-content) .nav-tabs .nav-link {
	min-height: 44px;
	border: 0;
	border-bottom: 2px solid transparent;
	border-radius: 0;
	background: transparent;
	color: var(--al-text-secondary);
	font-weight: 600;
}

:is(main, .site-main, .al-dash-root, .autolevo-dash-wrap, .autolevo-profile-scope, .autolevo-directory-container, .autolevo-platform-scope, .entry-content, .wp-block-post-content) .nav-tabs .nav-link.active {
	color: var(--al-blue-text);
	border-bottom-color: var(--al-blue);
	background: transparent;
}

:is(main, .site-main, .al-dash-root, .autolevo-dash-wrap, .autolevo-profile-scope, .autolevo-directory-container, .autolevo-platform-scope, .entry-content, .wp-block-post-content) .alert {
	border-radius: 12px;
}

:is(main, .site-main, .al-dash-root, .autolevo-dash-wrap, .autolevo-profile-scope, .autolevo-directory-container, .autolevo-platform-scope, .entry-content, .wp-block-post-content) .progress {
	height: 6px;
	border-radius: 4px;
	background-color: var(--al-bg-track);
}

:is(main, .site-main, .al-dash-root, .autolevo-dash-wrap, .autolevo-profile-scope, .autolevo-directory-container, .autolevo-platform-scope, .entry-content, .wp-block-post-content) .progress-bar {
	border-radius: 4px;
}

:is(main, .site-main, .al-dash-root, .autolevo-dash-wrap, .autolevo-profile-scope, .autolevo-directory-container, .autolevo-platform-scope, .entry-content, .wp-block-post-content) .dropdown-menu {
	border: 1px solid var(--al-border-hairline);
	border-radius: 12px;
}

/* Bootstrap modals live outside <main>; the header-launched dialogs are excluded by id. */
.modal:not(#autolevo-a11y-dialog):not(#autolevo-lc-dialog) .modal-content {
	background-color: var(--al-bg-card);
	border: 1px solid var(--al-border-hairline);
	border-radius: var(--al-radius-card, 24px);
	color: var(--al-text-primary);
}

.modal:not(#autolevo-a11y-dialog):not(#autolevo-lc-dialog) .modal-header,
.modal:not(#autolevo-a11y-dialog):not(#autolevo-lc-dialog) .modal-footer {
	border-color: var(--al-border-hairline);
}

/* Tabular numerals on common figure carriers across page content. */
:is(main, .site-main, .al-dash-root, .autolevo-dash-wrap, .autolevo-profile-scope, .autolevo-directory-container, .autolevo-platform-scope, .entry-content, .wp-block-post-content) :is(time, .geodir-field-price, .gd-rating-text, .geodir_post_meta_title + .geodir_post_meta_value, .page-link) {
	font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   C. PUBLIC PAGES — directory, search, profiles, store, auto parts
   Prototype hierarchy: level-1 panels (24px, hairline, flat), nested cards
   (16px), tonal chips (6px), buttons (8px). Prefix html[data-theme] body
   outranks the legacy html[data-theme="light"] .x !important overrides.
   ========================================================================== */
html[data-theme] body :is(.autolevo-profile-hero-gallery, .autolevo-profile-header-card, .autolevo-profile-section, .autolevo-sticky-quote-card, .autolevo-search-container, .autolevo-results-toolbar, .autolevo-supplier-card, .autolevo-empty-results-card, .autolevo-sticky-map-shell, .autolevo-store-banner, .autolevo-store-filter-bar, .autolevo-store-header-card, .autolevo-part-gallery-stage, .autolevo-sticky-quote-cart, .autolevo-store-empty-card, .autolevo-part-card, .autolevo-part-header-card, .autolevo-part-detail-card, .autolevo-reviews-summary-card) {
	background-color: var(--al-bg-card) !important;
	border: 1px solid var(--al-border-hairline) !important;
	border-radius: var(--al-radius-card, 24px) !important;
	box-shadow: var(--al-shadow-card, none) !important;
}

/* Media stages keep their image fill but adopt the panel shape. */
html[data-theme] body :is(.autolevo-profile-hero-gallery, .autolevo-part-gallery-stage) {
	overflow: hidden;
}

/* Prototype "Featured" card: amber outline instead of a blue glow. */
html[data-theme] body .autolevo-supplier-card.is-featured {
	border-color: color-mix(in srgb, var(--al-tone-amber) 55%, transparent) !important;
}

/* Level-2 nested cards. */
html[data-theme] body :is(.autolevo-completed-work-card, .autolevo-rating-breakdown-card, .autolevo-review-card, .autolevo-map-embed-box, .autolevo-platform-disclaimer-card, .autolevo-specialties-tags, .autolevo-profile-gallery-tile, .autolevo-part-spec-item) {
	background-color: transparent !important;
	border: 1px solid var(--al-border-hairline) !important;
	border-radius: 16px !important;
	box-shadow: none !important;
}

html[data-theme] body .autolevo-part-spec-item {
	border-radius: 12px !important;
}

/* Section titles inside panels follow the prototype Panel title (16px / 700). */
html[data-theme] body .autolevo-profile-section :is(h2, .autolevo-section-title) {
	font-size: 1.0625rem !important;
	font-weight: 700 !important;
	letter-spacing: 0 !important;
	color: var(--al-text-primary) !important;
}

/* Tonal chips, squared off. */
html[data-theme] body :is(.autolevo-cat-pill, .autolevo-service-pill, .al-chip, .autolevo-section-badge, .autolevo-cw-metric-pill, .autolevo-hours-today-pill, .autolevo-specialty-chip, .autolevo-chip, .autolevo-ownership-pill, .autolevo-part-category-pill, .autolevo-stock-badge, .autolevo-condition-badge, .autolevo-featured-badge, .autolevo-store-chip) {
	border-radius: var(--al-radius-chip, 6px) !important;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

html[data-theme] body :is(.autolevo-service-pill, .autolevo-specialty-chip, .autolevo-cat-pill) {
	background-color: var(--al-bg-chip) !important;
	border-color: transparent !important;
	color: var(--al-text-primary) !important;
}

/* Buttons: 8px, no coloured glow. */
html[data-theme] body :is(.autolevo-btn-profile-quote, .al-ph-cta, .autolevo-btn-profile-secondary, .autolevo-btn-directions, .autolevo-btn-submit-quote, .autolevo-request-service-btn, .autolevo-btn-profile, .autolevo-empty-btn-secondary, .autolevo-btn-secondary, .autolevo-empty-btn-primary, .autolevo-nearme-btn, .autolevo-btn-all-photos) {
	border-radius: var(--al-radius-control, 8px) !important;
	box-shadow: none !important;
	font-weight: 600 !important;
}

/* Prototype contact action row: outlined 8px buttons, WhatsApp in green. */
html[data-theme] body .al-ph-contact-strip :is(a, button) {
	border-radius: var(--al-radius-control, 8px) !important;
}

/* Editorial / platform pages (/about/, /offerings/, /help/, /careers/, /media/, /llm-info/,
   /inside-business/, legal): glass cards become flat prototype panels. */
html[data-theme] body :is(.autolevo-platform-scope, .autolevo-editorial-page) :is(.autolevo-glass, .autolevo-feature-card, .autolevo-note-bar, .autolevo-growth-strip, .autolevo-callout-demo-row, .al-bento__card:not(.al-bento__card--rfi), .autolevo-help-card, .autolevo-faq-item, .autolevo-legal-card, .autolevo-career-card, .autolevo-media-card, .autolevo-offering-card, .autolevo-value-card) {
	background: var(--al-bg-card) !important;
	border: 1px solid var(--al-border-hairline) !important;
	border-radius: var(--al-radius-card, 24px) !important;
	box-shadow: var(--al-shadow-card, none) !important;
	-webkit-backdrop-filter: none !important;
	backdrop-filter: none !important;
}

html[data-theme] body :is(.autolevo-platform-scope, .autolevo-editorial-page) .al-bento__card--rfi {
	border-radius: var(--al-radius-card, 24px) !important;
	box-shadow: none !important;
}

html[data-theme] body :is(.autolevo-platform-scope, .autolevo-editorial-page) .autolevo-closing-cta-banner {
	border-radius: var(--al-radius-card, 24px) !important;
	box-shadow: none !important;
}

html[data-theme] body :is(.autolevo-platform-scope, .autolevo-editorial-page, .autolevo-profile-scope, .autolevo-directory-container, .autolevo-auth-scope) .autolevo-btn-pill:not(.al-auth-submit) {
	border-radius: var(--al-radius-control, 8px) !important;
}

html[data-theme] body :is(.autolevo-platform-scope, .autolevo-editorial-page) :is(.al-bento__flag, .autolevo-eyebrow-pill, .autolevo-hero-eyebrow) {
	border-radius: var(--al-radius-chip, 6px) !important;
}

/* Federated search (/search-results/): chips squared, inner result rows 16px. */
html[data-theme] body .al-search-root :is(.al-pill, .al-vpill, .al-quick-pill, .al-match-reason, .al-part-hint-pill, .al-featured-badge, .al-count-badge) {
	border-radius: var(--al-radius-chip, 6px) !important;
	font-variant-numeric: tabular-nums;
}

html[data-theme] body .al-search-root :is(.al-card, .al-bridge-card, .al-fcard--house, .al-fad-frame) {
	border-radius: 16px !important;
}

html[data-theme] body .al-search-root .al-input-group {
	border-radius: var(--al-radius-input, 10px) !important;
}

/* Profile tab row (prototype Profiles: About · Reviews · Storefront · Branches). */
.al-profile-tabs {
	margin: 16px 0 20px;
}

:is(#autolevo-profile-about, #autolevo-reviews-section, #autolevo-profile-branches) {
	scroll-margin-top: calc(var(--al-sticky-offset, 132px) + 12px);
}

/* Directory toolbar & listing feed spacing. */
html[data-theme] body .autolevo-listings-feed {
	gap: 16px;
}

html[data-theme] body .autolevo-supplier-card .autolevo-card-title {
	font-size: 1.125rem;
	font-weight: 700;
	letter-spacing: -0.01em;
}

/* Ratings and prices read as figures. */
html[data-theme] body :is(.autolevo-rating-value, .autolevo-review-count, .autolevo-part-price, .autolevo-price, .autolevo-distance) {
	font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   E1. PARTNER DASHBOARD (/dashboard/) — prototype DashboardLayout + DashboardNav
   Sidebar: 248px column (#0D1015 dark / #F6F6F6 light), hairline right edge,
   overline group headings, 15px nav items with a 3px blue active edge.
   Content: 24px flat panels, 16/700 panel titles, tabular KPI figures.
   ========================================================================== */
html[data-theme] body .al-dash-root {
	max-width: 1440px;
}

html[data-theme] body .al-dash-root .al-dash-sidebar {
	background: var(--al-dash-sidebar, var(--al-bg-sidebar)) !important;
	border: 0 !important;
	border-inline-end: 1px solid var(--al-dash-border) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	padding: 16px 8px !important;
	min-height: calc(100vh - var(--al-sticky-offset, 136px));
}

html[data-theme] body .al-dash-root .al-dash-sidebar-header {
	border-bottom: 0;
	padding: 0 8px 12px;
}

html[data-theme] body .al-dash-root .al-dash-sidebar-role {
	font-size: 11px;
	letter-spacing: 0.06em;
	color: var(--al-dash-text-muted);
}

html[data-theme] body .al-dash-root .al-dash-sidebar-company {
	font-size: 17px;
	font-weight: 700;
}

html[data-theme] body .al-dash-root .al-nav-group + .al-nav-group {
	border-top: 1px solid var(--al-dash-border);
	margin-top: 8px;
	padding-top: 8px;
}

html[data-theme] body .al-dash-root .al-nav-group-toggle {
	padding: 6px 8px !important;
	border-radius: 8px !important;
	font-size: 11px !important;
	font-weight: 600 !important;
	letter-spacing: 0.06em !important;
	text-transform: uppercase !important;
	color: var(--al-dash-text-muted) !important;
	background: transparent !important;
}

html[data-theme] body .al-dash-root .al-nav-btn {
	border-radius: var(--al-radius-nav, 15px) !important;
	border-left: 3px solid transparent !important;
	padding: 6px 6px 6px 8px !important;
	margin-bottom: 2px;
	font-size: 14px !important;
	font-weight: 400;
	color: var(--al-dash-text) !important;
	background: transparent !important;
}

html[data-theme] body .al-dash-root .al-nav-btn:hover {
	background: var(--al-dash-surface-hover) !important;
}

html[data-theme] body .al-dash-root .al-nav-btn.is-active {
	background: var(--al-bg-sidebar-active) !important;
	border-left-color: var(--al-dash-blue) !important;
	font-weight: 700 !important;
}

html[data-theme] body .al-dash-root .al-nav-btn i.al-nav-icon {
	color: var(--al-dash-text-muted);
}

html[data-theme] body .al-dash-root .al-nav-btn.is-active i.al-nav-icon {
	color: var(--al-dash-blue);
}

html[data-theme] body .al-dash-root .al-nav-btn .al-nav-dot {
	display: none;
}

html[data-theme] body .al-dash-root :is(.al-nav-pill, .al-mobile-tab-badge) {
	min-width: 20px;
	height: 20px;
	padding: 0 4px;
	border-radius: 10px !important;
	background: var(--al-dash-blue) !important;
	color: #FFFFFF !important;
	font-size: 11px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

html[data-theme] body .al-dash-root .al-nav-lock-pill {
	height: 20px;
	padding: 0 6px;
	border-radius: var(--al-radius-chip, 6px) !important;
	font-size: 10.5px;
	font-weight: 600;
	background: color-mix(in srgb, var(--al-dash-text) 8%, transparent) !important;
	color: var(--al-dash-text-muted) !important;
}

/* Panels */
html[data-theme] body .al-dash-root :is(.al-card, .al-kpi-card, .al-context-bar, .al-rfi-detail-pane, .al-roi-banner, .al-comp-summary-card) {
	border: 1px solid var(--al-dash-border) !important;
	border-radius: var(--al-radius-card, 24px) !important;
	box-shadow: var(--al-shadow-card, none) !important;
}

html[data-theme] body .al-dash-root :is(.al-card, .al-kpi-card, .al-context-bar, .al-rfi-detail-pane) {
	background: var(--al-dash-surface) !important;
}

html[data-theme] body .al-dash-root .al-card {
	padding: 18px;
}

html[data-theme] body .al-dash-root .al-card-title {
	font-size: 1rem !important;
	font-weight: 700 !important;
	letter-spacing: 0 !important;
	color: var(--al-dash-text) !important;
}

html[data-theme] body .al-dash-root .al-card-sub {
	font-size: 0.875rem;
	color: var(--al-dash-text-muted) !important;
}

html[data-theme] body .al-dash-root .al-dash-workspace {
	min-width: 0;
	max-width: 1180px;
}

/* Context chip row sits on the canvas (no box), like the prototype's chip line. */
html[data-theme] body .al-dash-root .al-dash-workspace > .al-context-bar {
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin-bottom: 8px;
}

/* A header-only card is the section title: render it as the prototype PageHeader. */
html[data-theme] body .al-dash-root .al-dash-workspace > .al-card:has(> .al-card-header:only-child) {
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
}

html[data-theme] body .al-dash-root .al-dash-workspace > .al-card:has(> .al-card-header:only-child) .al-card-title {
	font-size: 26px !important;
	line-height: 1.334;
	letter-spacing: -0.01em !important;
}

@media (max-width: 599px) {
	html[data-theme] body .al-dash-root .al-dash-workspace > .al-card:has(> .al-card-header:only-child) .al-card-title {
		font-size: 22px !important;
	}
}

@media (min-width: 1280px) {
	html[data-theme] body .al-dash-root .al-dash-shell {
		gap: 32px;
	}
}

html[data-theme] body .al-dash-root .al-kpi-label {
	font-size: 0.875rem;
	color: var(--al-dash-text-muted);
}

html[data-theme] body .al-dash-root .al-kpi-value {
	font-size: 1.5rem !important;
	font-weight: 700 !important;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0;
}

html[data-theme] body .al-dash-root .al-kpi-meta {
	font-size: 0.75rem;
	font-variant-numeric: tabular-nums;
}

/* Nested items */
html[data-theme] body .al-dash-root :is(.al-rfi-card, .al-readiness-item, .al-specs-grid, .al-ph-dash-media-card, .al-table-wrap) {
	border-radius: 16px !important;
	box-shadow: none !important;
}

html[data-theme] body .al-dash-root .al-rfi-card {
	border: 1px solid var(--al-dash-border) !important;
}

html[data-theme] body .al-dash-root .al-rfi-card {
	background: transparent !important;
	border-left-width: 3px !important;
}

html[data-theme] body .al-dash-root .al-rfi-card:hover {
	background: var(--al-dash-surface-hover) !important;
}

html[data-theme] body .al-dash-root .al-rfi-card.is-selected {
	background: var(--al-bg-sidebar-active) !important;
	border-color: var(--al-dash-border) !important;
	border-left-color: var(--al-dash-blue) !important;
	box-shadow: none !important;
}

/* Chips & buttons */
html[data-theme] body .al-dash-root :is(.al-pill, .al-choice-pill, .al-status-chip) {
	border-radius: var(--al-radius-chip, 6px) !important;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

html[data-theme] body .al-dash-root .al-btn {
	border-radius: var(--al-radius-control, 8px) !important;
	font-weight: 600 !important;
	box-shadow: none !important;
}

html[data-theme] body .al-dash-root .al-btn:not(.al-btn--primary) {
	background: transparent !important;
	border: 1px solid var(--al-dash-border-strong) !important;
	color: var(--al-dash-text) !important;
}

html[data-theme] body .al-dash-root .al-btn:not(.al-btn--primary):hover {
	background: var(--al-dash-surface-hover) !important;
}

/* Tab pills -> prototype underline tabs */
html[data-theme] body .al-dash-root .al-tab-bar {
	gap: 4px;
	border-bottom: 1px solid var(--al-dash-border);
	padding-bottom: 0;
	background: transparent !important;
}

html[data-theme] body .al-dash-root .al-tab-pill {
	min-height: 44px;
	padding: 0 14px !important;
	border: 0 !important;
	border-bottom: 2px solid transparent !important;
	border-radius: 0 !important;
	margin-bottom: -1px;
	background: transparent !important;
	color: var(--al-dash-text-muted) !important;
	font-weight: 600 !important;
}

html[data-theme] body .al-dash-root .al-tab-pill.is-active {
	color: var(--al-blue-text) !important;
	border-bottom-color: var(--al-dash-blue) !important;
	background: transparent !important;
}

html[data-theme] body .al-dash-root :is(.al-timeframe-pills, .al-comp-segmented) {
	border-radius: 10px !important;
}

html[data-theme] body .al-dash-root .al-tf-btn {
	border-radius: 8px !important;
}

/* Inputs */
html[data-theme] body .al-dash-root :is(.al-dash-input, .al-dash-select, .al-dash-textarea) {
	border-radius: var(--al-radius-input, 10px) !important;
	background: var(--al-bg-input) !important;
	border-color: var(--al-dash-border-strong) !important;
}

/* Tables */
html[data-theme] body .al-dash-root .al-table th {
	background: transparent !important;
	color: var(--al-dash-text-muted) !important;
	font-size: 13px;
	font-weight: 600;
}

html[data-theme] body .al-dash-root .al-table {
	font-variant-numeric: tabular-nums;
}

/* Modals & toasts */
html[data-theme] body .al-glass-modal {
	background: var(--al-dash-surface, var(--al-bg-card)) !important;
	border: 1px solid var(--al-dash-border) !important;
	border-radius: var(--al-radius-card, 24px) !important;
	-webkit-backdrop-filter: none !important;
	backdrop-filter: none !important;
}

html[data-theme] body .al-glass-modal-backdrop {
	background: rgba(0, 0, 0, 0.6) !important;
}

@media (max-width: 599px) {
	html[data-theme] body .al-glass-modal {
		border-radius: 20px 20px 0 0 !important;
	}
}

/* Storefront Editor (/dashboard/storefront/, ?view=edit-storefront): prototype StorefrontEditor. */
html[data-theme] body :is(.al-dash-root, .autolevo-sfe-wrap) .autolevo-sfe-topbar {
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	padding: 0 0 8px !important;
	-webkit-backdrop-filter: none !important;
	backdrop-filter: none !important;
}

html[data-theme] body .autolevo-sfe-topbar h1 {
	font-size: 26px !important;
	font-weight: 700 !important;
	letter-spacing: -0.01em;
}

html[data-theme] body .autolevo-sfe-panel {
	background: var(--al-dash-surface, var(--al-bg-card)) !important;
	border: 1px solid var(--al-dash-border, var(--al-border-hairline)) !important;
	border-radius: var(--al-radius-card, 24px) !important;
	box-shadow: none !important;
	-webkit-backdrop-filter: none !important;
	backdrop-filter: none !important;
}

html[data-theme] body :is(.autolevo-sfe-branch-card, .autolevo-sfe-hour-row, .autolevo-sfe-switch-row) {
	background: transparent !important;
	border: 1px solid var(--al-dash-border, var(--al-border-hairline)) !important;
	border-radius: 16px !important;
}

html[data-theme] body .autolevo-sfe-dropzone {
	border-radius: 16px !important;
}

html[data-theme] body .autolevo-sfe-cat-pill {
	border-radius: var(--al-radius-chip, 6px) !important;
}

/* A–D section switcher -> prototype underline tabs. */
html[data-theme] body .autolevo-sfe-tabs {
	gap: 4px !important;
	border-bottom: 1px solid var(--al-dash-border, var(--al-border-hairline));
	background: transparent !important;
	padding: 0 !important;
	border-radius: 0 !important;
}

html[data-theme] body .autolevo-sfe-tab-btn {
	min-height: 44px;
	padding: 0 14px !important;
	border: 0 !important;
	border-bottom: 2px solid transparent !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--al-dash-text-muted, var(--al-text-secondary)) !important;
	font-weight: 600 !important;
}

html[data-theme] body .autolevo-sfe-tab-btn:is(.is-active, .active, [aria-selected="true"]) {
	color: var(--al-blue-text) !important;
	border-bottom-color: var(--al-blue) !important;
}

/* Phone bottom navigation: prototype MobileBottomNav, dark in both modes. */
html[data-theme] body .al-mobile-tabbar {
	background: #0D1015 !important;
	border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
	-webkit-backdrop-filter: none !important;
	backdrop-filter: none !important;
	box-shadow: none !important;
}

html[data-theme] body .al-mobile-tabbar .al-mobile-tab-btn {
	border-radius: 0 !important;
	border-top: 2px solid transparent !important;
	color: #8E96A4 !important;
	font-size: 11px;
	background: transparent !important;
}

html[data-theme] body .al-mobile-tabbar .al-mobile-tab-btn.is-active {
	color: var(--al-dash-blue) !important;
	border-top-color: var(--al-dash-blue) !important;
}

html[data-theme] body .al-mobile-tabbar .al-mobile-tab-btn.is-active::after {
	display: none !important;
}

/* ==========================================================================
   E0. REQUEST PAGES (/submit-request/, /request-hub/) — prototype SubmitRequest /
   RequestHub: plain PageHeader on the canvas, flat 24px panels, 16px cards.
   ========================================================================== */
html[data-theme] body :is(.autolevo-rfq-header-banner, .autolevo-hub-header) {
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	padding: 8px 0 4px !important;
}

html[data-theme] body :is(.autolevo-rfq-header-banner, .autolevo-hub-header)::before,
html[data-theme] body :is(.autolevo-rfq-header-banner, .autolevo-hub-header)::after {
	display: none !important;
}

html[data-theme] body :is(.autolevo-rfq-header-banner, .autolevo-hub-header) :is(h1, h2) {
	font-size: 26px !important;
	font-weight: 700 !important;
	letter-spacing: -0.01em !important;
	color: var(--al-text-primary) !important;
}

html[data-theme] body :is(.autolevo-rfq-header-banner, .autolevo-hub-header) p {
	font-size: 0.875rem !important;
	color: var(--al-text-secondary) !important;
}

html[data-theme] body :is(.autolevo-rfq-form-card, .autolevo-hub-filter-bar, .autolevo-signin-gate-card, .al-rfi-aside-card, .autolevo-rfq-sidebar-card, .autolevo-hub-thread-card, .autolevo-hub-detail-card) {
	background: var(--al-bg-card) !important;
	border: 1px solid var(--al-border-hairline) !important;
	border-radius: var(--al-radius-card, 24px) !important;
	box-shadow: var(--al-shadow-card, none) !important;
}

html[data-theme] body :is(.autolevo-form-section, .autolevo-b2b-rfq-card, .al-rfi-intent-card) {
	border-radius: 16px !important;
	box-shadow: none !important;
}

html[data-theme] body :is(.autolevo-form-section, .autolevo-b2b-rfq-card) {
	border: 1px solid var(--al-border-hairline) !important;
}

html[data-theme] body :is(.autolevo-rfq-cat-badge, .autolevo-rfq-urgency-badge, .al-rfi-badge, .autolevo-rfq-status-badge) {
	border-radius: var(--al-radius-chip, 6px) !important;
	font-weight: 600;
}

html[data-theme] body :is(.autolevo-gate-btn-signin, .autolevo-gate-btn-supplier, .autolevo-btn-quote-action, .autolevo-hub-btn-filter) {
	border-radius: var(--al-radius-control, 8px) !important;
	box-shadow: none !important;
	font-weight: 600 !important;
}

/* ==========================================================================
   E2. SEEKER PORTAL (/account/) — same prototype shell as /dashboard/
   ========================================================================== */
html[data-theme] body .autolevo-dash-wrap .autolevo-nav-card {
	background: var(--al-dash-sidebar-bg) !important;
	border: 0 !important;
	border-inline-end: 1px solid var(--al-dash-border) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	padding: 16px 8px !important;
}

html[data-theme] body .autolevo-dash-wrap .autolevo-sidebar-id-avatar {
	border-radius: 50%;
}

html[data-theme] body .autolevo-dash-wrap .autolevo-sidebar-id-name {
	font-size: 17px;
	font-weight: 700;
}

html[data-theme] body .autolevo-dash-wrap .al-nav-group + .al-nav-group {
	border-top: 1px solid var(--al-dash-border);
	margin-top: 8px;
	padding-top: 8px;
}

html[data-theme] body .autolevo-dash-wrap .autolevo-nav-section-lbl {
	padding: 6px 8px !important;
	font-size: 11px !important;
	font-weight: 600 !important;
	letter-spacing: 0.06em !important;
	text-transform: uppercase !important;
	color: var(--al-dash-muted) !important;
	background: transparent !important;
}

html[data-theme] body .autolevo-dash-wrap .autolevo-nav-item > a {
	border-radius: var(--al-radius-nav, 15px) !important;
	border-left: 3px solid transparent !important;
	padding: 6px 6px 6px 8px !important;
	margin-bottom: 2px;
	font-size: 14px !important;
	color: var(--al-dash-text) !important;
	background: transparent !important;
	box-shadow: none !important;
}

html[data-theme] body .autolevo-dash-wrap .autolevo-nav-item > a:hover {
	background: var(--al-dash-hover-bg) !important;
}

html[data-theme] body .autolevo-dash-wrap .autolevo-nav-item.active > a {
	background: var(--al-bg-sidebar-active) !important;
	border-left-color: var(--al-blue) !important;
	font-weight: 700 !important;
}

html[data-theme] body .autolevo-dash-wrap .autolevo-nav-item.active > a i {
	color: var(--al-blue) !important;
}

html[data-theme] body .autolevo-dash-wrap .autolevo-nav-pill {
	min-width: 20px;
	height: 20px;
	border-radius: 10px !important;
	background: var(--al-blue) !important;
	color: #FFFFFF !important;
	font-size: 11px;
	font-weight: 700;
}

/* Topbar: the prototype has no gradient hero bar, only a page header on the canvas. */
html[data-theme] body .autolevo-dash-wrap .autolevo-dash-topbar {
	background: var(--al-dash-canvas-bg) !important;
	border: 0 !important;
	border-bottom: 1px solid var(--al-dash-border) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

html[data-theme] body .autolevo-dash-wrap :is(.autolevo-kpi-card, .autolevo-section-card, .autolevo-record-card, .autolevo-main-panel > .card, .autolevo-dash-banner, .autolevo-visibility-banner, .autolevo-chart-container) {
	background: var(--al-dash-card-bg) !important;
	border: 1px solid var(--al-dash-border) !important;
	border-radius: var(--al-radius-card, 24px) !important;
	box-shadow: var(--al-shadow-card, none) !important;
}

/* Content column sits on the canvas; panels inside it carry the surfaces. */
html[data-theme] body .autolevo-dash-wrap .autolevo-main-panel {
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	min-width: 0;
}

html[data-theme] body .autolevo-dash-wrap .autolevo-main-panel > :is(.autolevo-dash-banner, #autolevo-kpi-strip, .autolevo-dash-alert) {
	margin-bottom: 16px;
}

/* Banner is now a card on the canvas: its text follows the theme (it was white-on-gradient). */
html[data-theme] body .autolevo-dash-wrap .autolevo-dash-banner :is(h1, .text-white) {
	color: var(--al-dash-text) !important;
}

html[data-theme] body .autolevo-dash-wrap .autolevo-dash-banner .autolevo-banner-meta {
	color: var(--al-dash-muted) !important;
}

html[data-theme] body .autolevo-dash-wrap .autolevo-dash-banner .autolevo-dash-badge {
	background: var(--al-bg-chip) !important;
	border-color: transparent !important;
	color: var(--al-dash-text) !important;
}

html[data-theme] body .autolevo-dash-wrap .autolevo-dash-banner-ghost {
	background: transparent !important;
	border: 1px solid var(--al-dash-border-strong) !important;
	color: var(--al-dash-text) !important;
}

html[data-theme] body .autolevo-dash-wrap .autolevo-dash-banner-ghost:hover {
	background: var(--al-dash-hover-bg) !important;
}

/* KPI tiles: prototype StatTile = label, figure, sub-line (no icon tile). */
@media (max-width: 767px) {
	html[data-theme] body .autolevo-dash-wrap #autolevo-kpi-strip .autolevo-kpi-card {
		flex-direction: column !important;
		align-items: stretch !important;
		gap: 8px;
	}

	html[data-theme] body .autolevo-dash-wrap #autolevo-kpi-strip .autolevo-kpi-visual {
		width: 100% !important;
	}
}

html[data-theme] body .autolevo-dash-wrap #autolevo-kpi-strip .autolevo-kpi-icon {
	display: none !important;
}

html[data-theme] body .autolevo-dash-wrap #autolevo-kpi-strip .autolevo-kpi-card {
	padding: 14px !important;
}

html[data-theme] body .autolevo-dash-wrap #autolevo-kpi-strip .autolevo-kpi-lbl {
	text-transform: none !important;
	letter-spacing: 0 !important;
	font-weight: 400 !important;
}

html[data-theme] body .autolevo-dash-wrap .autolevo-record-card {
	border-radius: 16px !important;
}

html[data-theme] body .autolevo-dash-wrap .autolevo-kpi-lbl {
	font-size: 0.875rem;
	color: var(--al-dash-muted) !important;
}

html[data-theme] body .autolevo-dash-wrap .autolevo-kpi-val {
	font-size: 1.5rem !important;
	font-weight: 700 !important;
	font-variant-numeric: tabular-nums;
}

html[data-theme] body .autolevo-dash-wrap :is(.autolevo-status-pill, .autolevo-trust-pill, .autolevo-dash-badge, .autolevo-chip-item, .autolevo-dash-util-pill) {
	border-radius: var(--al-radius-chip, 6px) !important;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

html[data-theme] body .autolevo-dash-wrap :is(.autolevo-dash-cta-primary, .autolevo-dash-cta-ghost, .autolevo-dash-banner-ghost) {
	border-radius: var(--al-radius-control, 8px) !important;
	font-weight: 600 !important;
	box-shadow: none !important;
}

/* Sub-tabs -> underline tabs. */
html[data-theme] body .autolevo-dash-wrap .autolevo-subtab-btn {
	min-height: 44px;
	padding: 0 14px !important;
	border: 0 !important;
	border-bottom: 2px solid transparent !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: var(--al-dash-muted) !important;
	font-weight: 600 !important;
	box-shadow: none !important;
}

html[data-theme] body .autolevo-dash-wrap .autolevo-subtab-btn:is(.active, .is-active, [aria-selected="true"]) {
	color: var(--al-blue-text) !important;
	border-bottom-color: var(--al-blue) !important;
}

/* Phone bottom bar (Home · Search · Requests · Saved · More): prototype dark bar. */
html[data-theme] body .autolevo-mobile-bottom-nav {
	background: #0D1015 !important;
	border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
	-webkit-backdrop-filter: none !important;
	backdrop-filter: none !important;
	box-shadow: none !important;
}

html[data-theme] body .autolevo-mobile-bottom-nav .autolevo-mob-nav-link {
	color: #8E96A4 !important;
	border-top: 2px solid transparent !important;
	border-radius: 0 !important;
	background: transparent !important;
}

html[data-theme] body .autolevo-mobile-bottom-nav .autolevo-mob-nav-link:is(.active, .is-active, [aria-current="page"]) {
	color: var(--al-blue) !important;
	border-top-color: var(--al-blue) !important;
}

/* ==========================================================================
   D. AUTH (Sign In, 2FA, Register Chooser, Seeker/Specialist, Business, Forgot/Reset/Change)
   Light & Dark monochrome surfaces + Mobility Blue (#276EF1); above-the-fold desktop fit.
   ========================================================================== */
body .autolevo-auth-scope {
	max-width: 1200px;
	padding: 24px 20px 32px;
	color: var(--al-text-primary);
}

body .autolevo-auth-scope.al-auth,
body .autolevo-auth-scope .autolevo-auth-center-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 540px;
	margin-inline: auto;
	width: 100%;
}

/* Responsive desktop widths for Register Chooser (~980px), Seeker/Specialist (~820px), Business (~1040px) */
body .autolevo-auth-scope .al-reg-wrap[data-state="chooser"] {
	max-width: 980px;
}

body .autolevo-auth-scope .al-reg-wrap[data-state="signup"][data-role="seeker"],
body .autolevo-auth-scope .al-reg-wrap[data-state="signup"][data-role="specialist"] {
	max-width: 820px;
}

body .autolevo-auth-scope .al-reg-wrap[data-state="signup"][data-role="business"] {
	max-width: 1040px;
}

body .autolevo-auth-scope :is(.al-auth-card, .autolevo-account-chooser-card, .autolevo-signup-card, .autolevo-forgot-card, .autolevo-reset-card, .autolevo-change-card, .autolevo-reg-main-card) {
	width: 100%;
	max-width: 540px;
	background: var(--al-bg-card) !important;
	border: 1px solid var(--al-border-hairline) !important;
	border-radius: 32px !important;
	box-shadow: var(--al-shadow-card, none) !important;
	padding: 32px 36px !important;
	color: var(--al-text-primary);
}

html[data-theme="light"] body .autolevo-auth-scope :is(.al-auth-card, .autolevo-account-chooser-card, .autolevo-signup-card, .autolevo-forgot-card, .autolevo-reset-card, .autolevo-change-card) {
	background: #FFFFFF !important;
	border-color: #E5E7EB !important;
	box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05) !important;
}

body .autolevo-auth-scope .al-chooser-card {
	max-width: 980px !important;
	padding: 34px 40px 28px !important;
}

body .autolevo-auth-scope .al-signup-card[data-role="seeker"],
body .autolevo-auth-scope .al-signup-card[data-role="specialist"] {
	max-width: 820px !important;
	padding: 24px 32px 26px !important;
}

body .autolevo-auth-scope .al-signup-card[data-role="business"] {
	max-width: 1040px !important;
	padding: 24px 34px 24px !important;
}

@media (max-width: 767px) {
	body .autolevo-auth-scope {
		padding: 16px 14px 32px;
	}

	body .autolevo-auth-scope :is(.al-auth-card, .autolevo-account-chooser-card, .autolevo-signup-card, .autolevo-forgot-card, .autolevo-reset-card, .autolevo-change-card, .autolevo-reg-main-card) {
		padding: 22px 18px !important;
		border-radius: 24px !important;
	}
}

.al-auth-wordmark {
	margin: 0 0 20px;
	text-align: center;
	font-size: 24px;
	font-weight: 800;
	letter-spacing: 0.02em;
	line-height: 1.2;
	color: var(--al-text-primary);
}

body .autolevo-auth-scope :is(.al-auth-title, .autolevo-auth-card-title, .autolevo-login-title) {
	margin: 0 0 6px;
	text-align: center;
	font-size: 32px !important;
	font-weight: 800 !important;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--al-text-primary) !important;
}

body .autolevo-auth-scope :is(.al-auth-sub, .autolevo-auth-card-sub, .autolevo-login-sub) {
	margin: 0 0 22px;
	text-align: center;
	font-size: 0.95rem;
	color: var(--al-text-secondary) !important;
}

@media (max-width: 599px) {
	body .autolevo-auth-scope :is(.al-auth-title, .autolevo-auth-card-title, .autolevo-login-title) {
		font-size: 26px !important;
	}
}

/* No decorative medallion above auth card titles. */
body .autolevo-auth-scope .autolevo-badge-icon-top {
	display: none !important;
}

/* ---------- Sign In Card (/login/) ---------- */
.al-auth-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0 !important;
}

body .autolevo-auth-scope .al-auth-card {
	padding: 32px 36px !important;
}

@media (max-width: 599px) {
	body .autolevo-auth-scope .al-auth-card {
		padding: 24px 20px !important;
	}
}

body .autolevo-auth-scope .al-auth-card .al-auth-title {
	margin: 0 0 6px !important;
}

body .autolevo-auth-scope .al-auth-card .al-auth-sub {
	margin: 0 0 20px !important;
}

body .autolevo-auth-scope .al-auth-card .al-auth-form [data-argument],
body .autolevo-auth-scope .al-auth-card .al-auth-form .form-group {
	margin: 0 !important;
}

body .autolevo-auth-scope .al-auth-card .al-ui-field {
	gap: 6px;
}

body .autolevo-auth-scope .al-auth-card label.al-ui-field__label {
	margin: 0 !important;
}

body .autolevo-auth-scope .al-auth-card :is(input[type="text"], input[type="email"], input[type="password"], .form-control) {
	height: 48px !important;
	min-height: 48px !important;
}

body .autolevo-auth-scope .al-auth-card .al-auth-row {
	margin: 2px 0 !important;
}

body .autolevo-auth-scope .al-auth-card label.al-auth-check {
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px;
	margin: 0 !important;
	line-height: 1.3;
}

body .autolevo-auth-scope .al-auth-card .al-auth-check input[type="checkbox"] {
	margin: 0 !important;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

body .autolevo-auth-scope .al-auth-legal {
	margin: 14px 0 0;
	text-align: center;
	font-size: 0.8125rem;
	line-height: 1.45;
	color: var(--al-text-secondary);
}

body .autolevo-auth-scope .al-auth-card .al-auth-foot {
	margin: 14px 0 0 !important;
	padding: 0 !important;
	border: 0 !important;
}

body .autolevo-auth-scope :is(.form-label, .autolevo-field-label, .al-ui-field__label) {
	display: block;
	font-size: 0.85rem !important;
	font-weight: 600 !important;
	color: var(--al-text-primary) !important;
	margin-bottom: 6px;
}

body .autolevo-auth-scope :is(input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], select, .form-control, .autolevo-input-control) {
	height: 46px !important;
	min-height: 46px !important;
	border-radius: var(--al-radius-input, 10px) !important;
	background: var(--al-bg-input) !important;
	border: 1px solid var(--al-border-subtle) !important;
	color: var(--al-text-primary) !important;
	font-size: 0.9375rem !important;
}

html[data-theme="light"] body .autolevo-auth-scope :is(input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], select, .form-control, .autolevo-input-control) {
	background: #FFFFFF !important;
	border-color: #D5DBE3 !important;
	color: #0F172A !important;
}

body .autolevo-auth-scope :is(input[type="text"], input[type="email"], input[type="password"], input[type="tel"], .form-control, .autolevo-input-control)::placeholder {
	color: var(--al-text-muted, #7C8494) !important;
	opacity: 1;
}

/* ---------- Global Password Toggle (Eye Icon + Show/Hide Side-by-Side) ---------- */
.al-auth-password,
.al-reg-pw-wrap {
	position: relative;
}

body .autolevo-auth-scope .al-auth-password .form-control,
body .autolevo-auth-scope .al-reg-pw-wrap .al-pw-input-pad {
	padding-right: 96px !important;
}

body .autolevo-auth-scope .al-pw-toggle-btn {
	position: absolute;
	top: 50%;
	right: 12px;
	transform: translateY(-50%);
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
	padding: 4px 6px !important;
	border: 0 !important;
	border-radius: 6px;
	background: transparent !important;
	color: var(--al-text-secondary) !important;
	font-size: 0.875rem !important;
	font-weight: 500 !important;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	z-index: 3;
	transition: color 150ms ease;
}

body .autolevo-auth-scope .al-pw-toggle-btn i {
	font-size: 0.95rem;
}

body .autolevo-auth-scope .al-pw-toggle-btn:hover {
	color: var(--al-blue) !important;
}

body .autolevo-auth-scope .al-pw-toggle-btn:focus-visible {
	outline: 2px solid var(--al-blue);
	outline-offset: 2px;
}

.al-auth-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
}

.al-auth-check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 0.9rem;
	color: var(--al-text-primary);
	cursor: pointer;
}

.al-auth-check input {
	width: 16px;
	height: 16px;
	min-height: 0 !important;
	accent-color: var(--al-blue);
}

body .autolevo-auth-scope :is(.al-auth-link, .autolevo-forgot-link, .autolevo-link-accent, .autolevo-login-register-prompt a, .autolevo-auth-footer-prompt a) {
	color: var(--al-blue-text, #276EF1) !important;
	font-weight: 500;
	text-decoration: none;
}

body .autolevo-auth-scope :is(.al-auth-link, .autolevo-forgot-link, .autolevo-link-accent):hover {
	text-decoration: underline;
}

/* Primary auth buttons: 48px pill CTA */
body .autolevo-auth-scope :is(.al-auth-submit, .autolevo-btn-signin-submit, .autolevo-btn-register-submit) {
	width: 100%;
	min-height: 46px !important;
	height: 46px !important;
	margin-top: 0 !important;
	border-radius: 999px !important;
	background: var(--al-blue, #276EF1) !important;
	border: 1px solid var(--al-blue, #276EF1) !important;
	color: #FFFFFF !important;
	font-size: 0.9375rem !important;
	font-weight: 600 !important;
	box-shadow: none !important;
	transform: none !important;
	transition: background-color 150ms ease, border-color 150ms ease, opacity 150ms ease !important;
}

body .autolevo-auth-scope :is(.al-auth-submit, .autolevo-btn-signin-submit, .autolevo-btn-register-submit):hover:not(:disabled) {
	background: var(--al-blue-hover, #1E54B7) !important;
	border-color: var(--al-blue-hover, #1E54B7) !important;
}

body .autolevo-auth-scope .autolevo-btn-register-submit:disabled {
	opacity: 0.52;
	cursor: not-allowed;
}

body .autolevo-auth-scope :is(.al-auth-foot, .autolevo-login-register-prompt, .autolevo-auth-footer-prompt) {
	margin: 14px 0 0;
	padding: 0;
	border: 0;
	text-align: center;
	font-size: 0.875rem;
	color: var(--al-text-secondary);
	background: transparent;
}

/* ---------- Register State A: Wide 3-Column Account Chooser (/register/) ---------- */
body .autolevo-auth-scope .al-chooser-head {
	text-align: center;
	margin-bottom: 26px;
}

body .autolevo-auth-scope .al-chooser-head .autolevo-auth-card-sub {
	margin: 0 !important;
}

body .autolevo-auth-scope .al-chooser-grid {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 20px !important;
	margin: 0 !important;
}

@media (max-width: 767px) {
	body .autolevo-auth-scope .al-chooser-grid {
		grid-template-columns: 1fr !important;
		gap: 12px !important;
	}
}

body .autolevo-auth-scope .al-chooser-tile.autolevo-chooser-option-btn {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: flex-start !important;
	text-align: center !important;
	gap: 10px !important;
	height: 100%;
	padding: 28px 22px !important;
	border: 1px solid var(--al-border-subtle) !important;
	border-radius: 18px !important;
	background: var(--al-bg-elevated, #161A22) !important;
	transform: none !important;
	box-shadow: none !important;
	transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease !important;
}

html[data-theme="light"] body .autolevo-auth-scope .al-chooser-tile.autolevo-chooser-option-btn {
	background: #FFFFFF !important;
	border-color: #E5E7EB !important;
}

body .autolevo-auth-scope .al-chooser-tile.autolevo-chooser-option-btn:hover,
body .autolevo-auth-scope .al-chooser-tile.autolevo-chooser-option-btn:focus-visible {
	border-color: var(--al-blue, #276EF1) !important;
	background: rgba(39, 110, 241, 0.08) !important;
	transform: translateY(-2px) !important;
	outline: none;
}

html[data-theme="light"] body .autolevo-auth-scope .al-chooser-tile.autolevo-chooser-option-btn:hover,
html[data-theme="light"] body .autolevo-auth-scope .al-chooser-tile.autolevo-chooser-option-btn:focus-visible {
	background: #F5F9FF !important;
}

body .autolevo-auth-scope .al-chooser-icon {
	width: 52px !important;
	height: 52px !important;
	border-radius: 14px !important;
	background: rgba(39, 110, 241, 0.14) !important;
	color: var(--al-blue, #276EF1) !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.35rem;
	margin-bottom: 4px;
}

html[data-theme="light"] body .autolevo-auth-scope .al-chooser-icon {
	background: #EBF3FF !important;
	color: #276EF1 !important;
}

body .autolevo-auth-scope .al-chooser-tile:hover .al-chooser-icon {
	background: var(--al-blue, #276EF1) !important;
	color: #FFFFFF !important;
}

body .autolevo-auth-scope .al-chooser-title {
	font-size: 1.125rem !important;
	font-weight: 700 !important;
	color: var(--al-text-primary) !important;
	margin: 0 !important;
}

body .autolevo-auth-scope .al-chooser-desc {
	font-size: 0.875rem !important;
	line-height: 1.45 !important;
	color: var(--al-text-secondary) !important;
	max-width: 230px;
}

body .autolevo-auth-scope .al-chooser-foot {
	margin-top: 26px;
	padding-top: 20px;
	border-top: 1px solid var(--al-border-hairline);
	text-align: center;
}

body .autolevo-auth-scope .al-chooser-foot .al-auth-legal {
	margin: 0 0 10px;
}

body .autolevo-auth-scope .al-chooser-foot .al-reg-signin-prompt {
	margin: 0 !important;
}

/* ---------- Register State B: Top Header Row (Back | Sign Up | Role Pill) ---------- */
body .autolevo-auth-scope .al-signup-header {
	display: grid !important;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 12px;
	padding-bottom: 16px !important;
	margin-bottom: 20px !important;
	border-bottom: 1px solid var(--al-border-hairline) !important;
}

body .autolevo-auth-scope .al-signup-header__left {
	justify-self: start;
}

body .autolevo-auth-scope .al-signup-header__title {
	justify-self: center;
	margin: 0 !important;
	font-size: 1.75rem !important;
	font-weight: 800 !important;
	line-height: 1.2 !important;
}

body .autolevo-auth-scope .al-signup-header__right {
	justify-self: end;
}

body .autolevo-auth-scope .autolevo-back-btn {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--al-blue-text, #276EF1);
	gap: 6px;
	white-space: nowrap;
}

body .autolevo-auth-scope .al-role-pill {
	display: inline-flex;
	align-items: center;
	padding: 6px 14px !important;
	border-radius: 8px !important;
	font-size: 0.8125rem !important;
	font-weight: 700 !important;
	white-space: nowrap;
}

body .autolevo-auth-scope .al-role-pill--seeker {
	background: rgba(39, 110, 241, 0.18) !important;
	color: #60A5FA !important;
}

html[data-theme="light"] body .autolevo-auth-scope .al-role-pill--seeker {
	background: #E8F1FF !important;
	color: #1D4ED8 !important;
}

body .autolevo-auth-scope .al-role-pill--specialist {
	background: rgba(245, 158, 11, 0.18) !important;
	color: #FBBF24 !important;
}

html[data-theme="light"] body .autolevo-auth-scope .al-role-pill--specialist {
	background: #FEF3C7 !important;
	color: #92400E !important;
}

body .autolevo-auth-scope .al-role-pill--business {
	background: rgba(34, 197, 94, 0.18) !important;
	color: #4ADE80 !important;
}

html[data-theme="light"] body .autolevo-auth-scope .al-role-pill--business {
	background: #E6F7ED !important;
	color: #15803D !important;
}

@media (max-width: 767px) {
	body .autolevo-auth-scope .al-signup-header {
		grid-template-columns: 1fr auto;
		row-gap: 10px;
	}

	body .autolevo-auth-scope .al-signup-header__left {
		grid-column: 1;
		grid-row: 1;
	}

	body .autolevo-auth-scope .al-signup-header__right {
		grid-column: 2;
		grid-row: 1;
	}

	body .autolevo-auth-scope .al-signup-header__title {
		grid-column: 1 / -1;
		grid-row: 2;
	}
}

/* Claim banner (when arriving with ?claim_id=) */
body .autolevo-auth-scope .al-claim-banner {
	background: rgba(39, 110, 241, 0.10);
	border: 1px solid rgba(39, 110, 241, 0.28);
	color: var(--al-text-primary);
	border-radius: 12px;
	padding: 12px 14px;
	margin-bottom: 16px;
	font-size: 0.85rem;
}

html[data-theme="light"] body .autolevo-auth-scope .al-claim-banner {
	background: #F0F7FF;
	border-color: #BFDBFE;
	color: #0C4A6E;
}

/* ---------- Register Form Body, Columns & Spacing ---------- */
body .autolevo-auth-scope .al-reg-form {
	display: flex;
	flex-direction: column;
	gap: 0;
}

body .autolevo-auth-scope .al-reg-body {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

body .autolevo-auth-scope .al-reg-account-col {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}

body .autolevo-auth-scope .al-reg-col-heading {
	font-size: 0.9375rem !important;
	font-weight: 700 !important;
	color: var(--al-text-primary) !important;
	margin: 0 !important;
	line-height: 1.3;
}

body .autolevo-auth-scope .al-signup-card:not([data-role="business"]) .al-reg-business-only {
	display: none !important;
}

body .autolevo-auth-scope .al-reg-field.autolevo-field-row {
	margin-bottom: 0 !important;
}

body .autolevo-auth-scope .al-reg-identity-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

body .autolevo-auth-scope .al-reg-name-pair {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

@media (max-width: 767px) {
	body .autolevo-auth-scope .al-reg-identity-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}
}

@media (max-width: 479px) {
	body .autolevo-auth-scope .al-reg-name-pair {
		grid-template-columns: 1fr;
		gap: 12px;
	}
}

/* Email field with inline Send code / Resend (Xs) / Verified action */
body .autolevo-auth-scope .al-email-otp-wrap .al-email-otp-input {
	padding-right: 118px !important;
}

body .autolevo-auth-scope .al-send-code-btn {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	background: transparent;
	border: 0;
	padding: 4px 6px;
	border-radius: 6px;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--al-blue-text, #276EF1);
	white-space: nowrap;
	cursor: pointer;
	z-index: 3;
	transition: opacity 150ms ease, color 150ms ease;
}

body .autolevo-auth-scope .al-send-code-btn:hover:not(:disabled) {
	text-decoration: underline;
}

body .autolevo-auth-scope .al-send-code-btn:disabled {
	opacity: 0.78;
	cursor: default;
}

body .autolevo-auth-scope .al-email-verified-badge {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 9px;
	border-radius: 6px;
	font-size: 0.78rem;
	font-weight: 700;
	white-space: nowrap;
	z-index: 3;
	background: rgba(34, 197, 94, 0.16);
	color: #4ADE80;
}

html[data-theme="light"] body .autolevo-auth-scope .al-email-verified-badge {
	background: #E6F7ED;
	color: #15803D;
}

body .autolevo-auth-scope .al-email-verified-badge[hidden] {
	display: none !important;
}

body .autolevo-auth-scope .al-email-otp-wrap.is-verified .al-email-otp-input {
	border-color: rgba(34, 197, 94, 0.55) !important;
}

body .autolevo-auth-scope .al-otp-inline-feedback {
	margin-top: 5px;
	font-size: 0.8rem;
	line-height: 1.35;
	color: var(--al-text-secondary);
}

body .autolevo-auth-scope .al-otp-inline-feedback.is-error {
	color: #F87171;
}

html[data-theme="light"] body .autolevo-auth-scope .al-otp-inline-feedback.is-error {
	color: #DC2626;
}

/* Inline light-blue-tinted Email Verification Row */
body .autolevo-auth-scope .al-otp-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px 14px;
	padding: 10px 14px;
	border-radius: 12px;
	background: rgba(39, 110, 241, 0.11);
	border: 1px solid rgba(39, 110, 241, 0.28);
}

html[data-theme="light"] body .autolevo-auth-scope .al-otp-row {
	background: #EDF4FF;
	border-color: #D6E6FF;
}

body .autolevo-auth-scope .al-otp-row[hidden] {
	display: none !important;
}

body .autolevo-auth-scope .al-otp-row__controls {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1 1 280px;
	min-width: 0;
}

body .autolevo-auth-scope .al-otp-input-wrap {
	flex: 1 1 auto;
	max-width: 260px;
	min-width: 0;
}

body .autolevo-auth-scope .al-otp-code-input {
	height: 42px !important;
	min-height: 42px !important;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.04em;
}

body .autolevo-auth-scope .al-otp-verify-btn {
	flex-shrink: 0;
	height: 42px;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	background: #276EF1;
	color: #FFFFFF;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 150ms ease, opacity 150ms ease;
}

body .autolevo-auth-scope .al-otp-verify-btn:hover:not(:disabled) {
	background: #1E54B7;
}

body .autolevo-auth-scope .al-otp-verify-btn:disabled {
	opacity: 0.65;
	cursor: default;
}

body .autolevo-auth-scope .al-otp-status {
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--al-text-secondary);
	white-space: nowrap;
}

html[data-theme="light"] body .autolevo-auth-scope .al-otp-status {
	color: #475569;
}

body .autolevo-auth-scope .al-otp-status.is-error {
	color: #F87171;
	white-space: normal;
}

html[data-theme="light"] body .autolevo-auth-scope .al-otp-status.is-error {
	color: #DC2626;
}

/* Password Rules (full wording on every role) */
body .autolevo-auth-scope .autolevo-pw-indicators-wrap {
	margin-top: 8px !important;
	gap: 16px !important;
}


body .autolevo-auth-scope :is(.autolevo-pw-rule-pill, .autolevo-role-badge) {
	border-radius: var(--al-radius-chip, 6px) !important;
}

/* Contact Details Column (Compact 2-col row on Specialist; Right 50% on Business) */
body .autolevo-auth-scope .al-reg-contact-col {
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}

body .autolevo-auth-scope .al-signup-card[data-role="specialist"] .al-reg-contact-col {
	padding-top: 12px !important;
	border-top: 1px solid var(--al-border-hairline) !important;
}

body .autolevo-auth-scope .al-signup-card[data-role="specialist"] .al-reg-contact-head {
	display: none !important;
}

body .autolevo-auth-scope .al-signup-card[data-role="specialist"] .al-reg-contact-pair {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

@media (max-width: 767px) {
	body .autolevo-auth-scope .al-signup-card[data-role="specialist"] .al-reg-contact-pair {
		grid-template-columns: 1fr;
		gap: 12px;
	}
}

body .autolevo-auth-scope .al-reg-contact-head {
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	margin: 0 !important;
}


body .autolevo-auth-scope .al-reg-loc-label-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 6px;
}

body .autolevo-auth-scope .al-reg-loc-label-row .autolevo-field-label {
	margin-bottom: 0 !important;
}

body .autolevo-auth-scope .al-nearme-link {
	background: transparent;
	border: 0;
	padding: 0;
	font-size: 0.8125rem;
	font-weight: 500;
	cursor: pointer;
}

body .autolevo-auth-scope .al-reg-loc-input {
	padding-left: 38px !important;
	padding-right: 14px !important;
	cursor: pointer;
}

html[data-theme="light"] body .autolevo-auth-scope .al-reg-loc-input {
	background: #F1F5F9 !important;
}

body .autolevo-auth-scope .autolevo-dial-picker-wrap {
	width: 112px;
}

body .autolevo-auth-scope .autolevo-dial-trigger-btn {
	height: 46px !important;
	border-radius: 10px !important;
	padding: 0 10px;
}

html[data-theme="light"] body .autolevo-auth-scope .autolevo-dial-trigger-btn {
	border-color: #D5DBE3 !important;
}

/* ---------- Business 50/50 2-Column Body & Split Footer Strip (>= 768px) ---------- */
@media (min-width: 768px) {
	body .autolevo-auth-scope .al-signup-card[data-role="business"] .al-reg-body {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 0;
		align-items: start;
	}

	body .autolevo-auth-scope .al-signup-card[data-role="business"] .al-reg-account-col {
		padding-right: 28px;
		border-right: 1px solid var(--al-border-hairline);
	}

	body .autolevo-auth-scope .al-signup-card[data-role="business"] .al-reg-contact-col {
		padding-left: 28px !important;
	}

	body .autolevo-auth-scope .al-signup-card[data-role="business"] .al-reg-identity-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	body .autolevo-auth-scope .al-signup-card[data-role="business"] .al-reg-name-pair {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	body .autolevo-auth-scope .al-signup-card[data-role="business"] .al-reg-contact-pair {
		display: flex;
		flex-direction: column;
		gap: 12px;
	}

	body .autolevo-auth-scope .al-signup-card[data-role="business"] .al-otp-row {
		flex-direction: column;
		align-items: stretch;
		gap: 6px;
		padding: 8px 10px;
	}

	body .autolevo-auth-scope .al-signup-card[data-role="business"] .al-otp-row__controls {
		flex: 1 1 auto;
	}

	body .autolevo-auth-scope .al-signup-card[data-role="business"] .al-otp-input-wrap {
		max-width: none;
	}

	body .autolevo-auth-scope .al-signup-card[data-role="business"] .al-otp-verify-btn {
		border-radius: 10px;
		padding: 0 20px;
	}
}

/* ---------- Checkboxes & Footer Strip ---------- */
body .autolevo-auth-scope .al-reg-footer {
	margin-top: 18px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

body .autolevo-auth-scope .al-reg-consent {
	margin: 0 !important;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

body .autolevo-auth-scope .al-reg-check {
	display: flex !important;
	align-items: flex-start !important;
	gap: 10px;
	margin: 0 !important;
	font-size: 0.84rem;
	line-height: 1.45;
	color: var(--al-text-primary);
	cursor: pointer;
}

body .autolevo-auth-scope .al-reg-check--muted {
	color: var(--al-text-secondary);
}

body .autolevo-auth-scope .al-reg-check input[type="checkbox"] {
	width: 16px;
	height: 16px;
	min-height: 0 !important;
	margin: 2px 0 0 !important;
	flex-shrink: 0;
	accent-color: var(--al-blue, #276EF1);
	cursor: pointer;
}

body .autolevo-auth-scope .al-reg-cta-col {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

body .autolevo-auth-scope .al-reg-cta-col .al-reg-signin-prompt {
	margin: 0 !important;
	font-size: 0.85rem;
}

@media (min-width: 768px) {
	body .autolevo-auth-scope .al-signup-card:not([data-role="business"]) .al-reg-footer {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(240px, 422px);
		align-items: center;
		gap: 24px;
	}

	body .autolevo-auth-scope .al-signup-card[data-role="business"] .al-reg-footer {
		display: grid;
		grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.75fr);
		align-items: center;
		gap: 24px;
		margin-top: 20px;
		padding-top: 18px;
		border-top: 1px solid var(--al-border-hairline);
	}
}

body .autolevo-auth-scope .autolevo-already-registered-box {
	background: transparent !important;
	border: 1px solid var(--al-border-hairline) !important;
	border-radius: 16px !important;
}

/* Sign-up contact section sits flat on the card: no surrounding box. */
body .autolevo-auth-scope .autolevo-contact-details-box {
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

/* Required-field feedback (every field is required; no asterisks) */
body .autolevo-auth-scope .al-req-flag {
	display: none;
	font-weight: 600;
	color: #E5484D;
}

body .autolevo-auth-scope .al-reg-field.is-missing .al-req-flag {
	display: inline;
}

body .autolevo-auth-scope .al-signup-card .al-reg-field.is-missing input.autolevo-input-control {
	border-color: #E5484D !important;
	box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.14) !important;
}

body .autolevo-auth-scope .al-signup-card .al-reg-field.is-missing input.autolevo-input-control::placeholder {
	color: #E5484D !important;
	opacity: 1;
}

/* Verification code row sits directly under the email field */
body .autolevo-auth-scope .al-reg-email-field .al-otp-row {
	margin-top: 10px;
}

/* Sign-in: required-field feedback (same behaviour as the sign-up form) */
body .al-auth-form .al-req-flag {
	display: none;
	font-weight: 600;
	color: #E5484D;
}

body .al-auth-form .al-ui-field.is-missing .al-req-flag {
	display: inline;
}

html body .al-auth-form .al-ui-field.is-missing input.form-control.form-control {
	border-color: #E5484D !important;
	box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.14) !important;
}