:root {
	--lpwm-account-night: #030d16;
	--lpwm-account-panel: rgba(8, 29, 42, 0.94);
	--lpwm-account-line: rgba(177, 215, 230, 0.2);
	--lpwm-account-ink: #f5f8fb;
	--lpwm-account-muted: #a5bbc6;
	--lpwm-account-cyan: #79e0ed;
	--lpwm-account-gold: #ffca73;
	--lpwm-account-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.lpwm-account-page {
	margin: 0;
	overflow-x: hidden;
	background: var(--lpwm-account-night);
}

.lpwm-account-shell,
.lpwm-account-shell *,
.lpwm-account-shell *::before,
.lpwm-account-shell *::after {
	box-sizing: border-box;
}

.lpwm-account-shell {
	position: relative;
	width: 100vw;
	max-width: none;
	min-height: 100vh;
	min-height: 100svh;
	margin-left: calc(50% - 50vw);
	padding: clamp(84px, 10vw, 130px) 16px 72px;
	color: var(--lpwm-account-ink);
	background:
		radial-gradient(circle at 15% 8%, rgba(46, 158, 186, 0.18), transparent 28%),
		radial-gradient(circle at 86% 84%, rgba(255, 202, 115, 0.08), transparent 25%),
		linear-gradient(145deg, #071824 0%, #020b13 58%, #01070d 100%);
	font-family: var(--lpwm-account-font);
}

.lpwm-account-shell :where(a, button, input, select, summary):focus-visible {
	outline: 3px solid var(--lpwm-account-gold);
	outline-offset: 3px;
}

.lpwm-account-brand {
	position: absolute;
	top: max(24px, env(safe-area-inset-top));
	left: clamp(16px, 4vw, 56px);
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	gap: 10px;
	color: var(--lpwm-account-ink);
	font-size: 13px;
	font-weight: 850;
	letter-spacing: 0.17em;
	text-decoration: none;
}

body.admin-bar .lpwm-account-brand {
	top: calc(max(24px, env(safe-area-inset-top)) + 32px);
}

.lpwm-account-brand span {
	display: grid;
	width: 38px;
	height: 38px;
	place-items: center;
	border: 1px solid rgba(255, 202, 115, 0.34);
	border-radius: 12px;
	color: var(--lpwm-account-gold);
	background: rgba(15, 42, 55, 0.72);
}

.lpwm-account-card {
	width: min(680px, 100%);
	margin-inline: auto;
	padding: clamp(24px, 4vw, 48px);
	border: 1px solid var(--lpwm-account-line);
	border-radius: clamp(22px, 3vw, 32px);
	background: linear-gradient(145deg, var(--lpwm-account-panel), rgba(4, 17, 27, 0.9));
	box-shadow: 0 34px 90px rgba(0, 0, 0, 0.38);
}

.lpwm-account-card--compact {
	width: min(540px, 100%);
}

.lpwm-account-eyebrow {
	margin: 0 0 10px;
	color: var(--lpwm-account-gold);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.lpwm-account-card h1,
.lpwm-account-dashboard__intro h1,
.lpwm-public-profile__header h1 {
	margin: 0;
	font-size: clamp(34px, 6vw, 62px);
	font-weight: 650;
	line-height: 1;
	letter-spacing: -0.05em;
}

.lpwm-account-card h2 {
	margin: 0 0 24px;
	font-size: clamp(23px, 3vw, 32px);
	font-weight: 650;
	letter-spacing: -0.035em;
}

.lpwm-account-intro,
.lpwm-account-dashboard__intro > p:last-child,
.lpwm-account-card > p,
.lpwm-field-note,
.lpwm-password-advice,
.lpwm-public-empty p {
	color: var(--lpwm-account-muted);
	line-height: 1.65;
}

.lpwm-account-intro {
	margin: 15px 0 28px;
}

.lpwm-account-form {
	display: grid;
	gap: 10px;
	margin-top: 28px;
}

.lpwm-account-form label:not(.lpwm-check) {
	margin-top: 9px;
	font-size: 12px;
	font-weight: 750;
}

.lpwm-account-form input:not([type="checkbox"]),
.lpwm-account-form select {
	width: 100%;
	min-height: 48px;
	padding: 0 14px;
	border: 1px solid var(--lpwm-account-line);
	border-radius: 12px;
	color: var(--lpwm-account-ink);
	background: rgba(1, 11, 18, 0.72);
	font: 500 16px/1.3 var(--lpwm-account-font);
	color-scheme: dark;
}

.lpwm-account-form input[disabled] {
	opacity: 0.72;
}

.lpwm-password-field {
	position: relative;
	display: grid;
	gap: 10px;
}

.lpwm-password-field input {
	padding-right: 126px !important;
}

.lpwm-password-toggle {
	position: absolute;
	right: 5px;
	bottom: 3px;
	min-height: 42px;
	padding: 0 10px;
	border: 0;
	color: var(--lpwm-account-cyan);
	background: transparent;
	font: 700 11px/1.2 var(--lpwm-account-font);
	cursor: pointer;
}

.lpwm-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 12px;
	color: #d9e8ee;
	font-size: 13px;
	line-height: 1.5;
}

.lpwm-check input {
	width: 22px;
	height: 22px;
	flex: 0 0 22px;
	margin: 0;
}

.lpwm-account-shell a {
	color: var(--lpwm-account-cyan);
}

.lpwm-account-submit,
.lpwm-secondary-button {
	display: inline-flex;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	padding: 0 20px;
	border: 1px solid rgba(255, 202, 115, 0.42);
	border-radius: 999px;
	color: #07131b !important;
	background: var(--lpwm-account-gold);
	font: 800 12px/1.2 var(--lpwm-account-font);
	text-decoration: none;
	cursor: pointer;
}

.lpwm-account-submit {
	width: 100%;
	margin-top: 18px;
}

.lpwm-secondary-button {
	border-color: var(--lpwm-account-line);
	color: var(--lpwm-account-ink) !important;
	background: rgba(121, 224, 237, 0.07);
}

.lpwm-account-submit[disabled],
.lpwm-secondary-button[disabled] {
	opacity: 0.58;
	cursor: wait;
}

.lpwm-form-status,
.lpwm-field-error {
	padding: 12px 14px;
	border: 1px solid rgba(121, 224, 237, 0.25);
	border-radius: 12px;
	color: #dff8fb;
	background: rgba(121, 224, 237, 0.08);
	font-size: 13px;
	line-height: 1.5;
}

.lpwm-form-status {
	margin: 22px 0;
}

.lpwm-field-error,
.lpwm-form-status--error {
	border-color: rgba(255, 145, 134, 0.42);
	color: #ffd7d2;
	background: rgba(155, 47, 40, 0.15);
}

.lpwm-field-error {
	margin: 0;
	padding: 8px 11px;
}

.lpwm-password-advice,
.lpwm-field-note {
	margin: 0;
	font-size: 11px;
}

.lpwm-account-alt,
.lpwm-account-links {
	margin: 24px 0 0;
	font-size: 13px;
	text-align: center;
}

.lpwm-account-links {
	display: flex;
	justify-content: space-between;
	gap: 16px;
}

.lpwm-account-shell--dashboard {
	padding-top: 116px;
}

.lpwm-account-dashboard-header {
	position: absolute;
	top: 18px;
	right: clamp(16px, 4vw, 56px);
	left: clamp(16px, 4vw, 56px);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.lpwm-account-dashboard-header .lpwm-account-brand {
	position: static;
}

body.admin-bar .lpwm-account-shell--dashboard {
	padding-top: 148px;
}

body.admin-bar .lpwm-account-dashboard-header {
	top: 50px;
}

.lpwm-account-owner {
	display: flex;
	max-width: min(300px, 52vw);
	align-items: center;
	gap: 10px;
}

.lpwm-account-owner img,
.lpwm-account-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
}

.lpwm-account-owner div {
	display: grid;
	min-width: 0;
}

.lpwm-account-owner small {
	color: var(--lpwm-account-muted);
	font-size: 10px;
}

.lpwm-account-owner strong {
	overflow: hidden;
	font-size: 13px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.lpwm-account-dashboard {
	width: min(1180px, 100%);
	margin-inline: auto;
}

.lpwm-account-dashboard__intro {
	margin-bottom: 36px;
}

.lpwm-account-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.lpwm-account-grid .lpwm-account-card {
	width: 100%;
	margin: 0;
}

.lpwm-verification-state {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.lpwm-verification-state span {
	display: grid;
	width: 28px;
	height: 28px;
	flex: 0 0 28px;
	place-items: center;
	border-radius: 50%;
	color: #07131b;
	background: var(--lpwm-account-gold);
	font-weight: 900;
}

.lpwm-verification-state.is-verified span {
	background: var(--lpwm-account-cyan);
}

.lpwm-inline-action,
.lpwm-privacy-actions,
.lpwm-logout-form {
	margin-top: 22px;
}

.lpwm-privacy-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.lpwm-public-profile {
	display: grid;
	align-content: start;
	gap: 28px;
}

.lpwm-public-profile__header,
.lpwm-public-profile__content {
	width: min(820px, 100%);
	margin-inline: auto;
}

.lpwm-public-profile__header {
	padding-top: 22px;
	text-align: center;
}

.lpwm-public-avatar {
	width: 128px;
	height: 128px;
	margin-bottom: 22px;
	border: 3px solid rgba(255, 202, 115, 0.34);
	border-radius: 50%;
}

.lpwm-public-country {
	color: var(--lpwm-account-muted);
}

.lpwm-public-empty {
	padding: 28px;
	border: 1px dashed var(--lpwm-account-line);
	border-radius: 18px;
}

.lpwm-public-items {
	display: grid;
	gap: 10px;
	padding: 0;
	list-style: none;
}

.lpwm-public-items a {
	display: flex;
	min-height: 48px;
	align-items: center;
	padding: 0 14px;
	border: 1px solid var(--lpwm-account-line);
	border-radius: 12px;
	text-decoration: none;
}

@media (max-width: 760px) {
	.lpwm-account-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.lpwm-account-dashboard-header {
		align-items: flex-start;
	}

	.lpwm-account-owner {
		max-width: 48vw;
	}

	.lpwm-account-owner img {
		display: none;
	}
}

@media (max-width: 782px) {
	body.admin-bar .lpwm-account-brand {
		top: calc(max(24px, env(safe-area-inset-top)) + 46px);
	}

	body.admin-bar .lpwm-account-shell--dashboard {
		padding-top: 162px;
	}

	body.admin-bar .lpwm-account-dashboard-header {
		top: 64px;
	}

	body.admin-bar .lpwm-account-dashboard-header .lpwm-account-brand {
		top: auto;
	}
}

@media (max-width: 380px) {
	.lpwm-account-shell {
		padding-inline: 12px;
	}

	.lpwm-account-card {
		padding: 22px 18px;
	}

	.lpwm-account-brand {
		font-size: 11px;
	}

	.lpwm-account-links,
	.lpwm-privacy-actions {
		flex-direction: column;
	}

	.lpwm-password-field input {
		padding-right: 112px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lpwm-account-shell *,
	.lpwm-account-shell *::before,
	.lpwm-account-shell *::after {
		scroll-behavior: auto !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
