.bipixels-account-header-auth {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--40, 1rem);
	white-space: nowrap;
}

.bipixels-account-header-auth__login,
.bipixels-account-links a,
.bipixels-account-header-account__menu a {
	color: inherit;
	text-decoration: none;
}

.bipixels-account-header-auth__signup {
	text-decoration: none;
}

.bipixels-account-header-account {
	position: relative;
	z-index: 30;
}

.bipixels-account-header-account__summary {
	cursor: pointer;
	font-weight: 500;
	white-space: nowrap;
}

.bipixels-account-header-account__summary::marker {
	color: currentColor;
}

.bipixels-account-header-account__menu {
	position: absolute;
	top: calc(100% + .75rem);
	right: 0;
	min-width: 10rem;
	display: grid;
	gap: .25rem;
	padding: .5rem;
	background: var(--wp--preset--color--accent-2, #14171b);
	color: var(--wp--preset--color--contrast, #f5f7f2);
	border: 1px solid var(--wp--preset--color--accent-6, #2a2f36);
	border-radius: 14px;
	box-shadow: 0 16px 40px rgba(0, 0, 0, .24);
}

.bipixels-account-header-account__menu a {
	display: block;
	padding: .65rem .75rem;
	border-radius: 10px;
}

.bipixels-account-header-account__menu a:hover,
.bipixels-account-header-account__menu a:focus-visible {
	background: var(--wp--preset--color--accent-3, #1d2127);
}

.bipixels-account-links {
	display: grid;
	gap: .5rem;
}

.bipixels-account-overview dl {
	margin: var(--wp--preset--spacing--40, 1.5rem) 0 0;
	padding: 0;
	border-top: 1px solid var(--wp--preset--color--accent-6, currentColor);
}

.bipixels-account-overview dl > div {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: var(--wp--preset--spacing--30, 1rem);
	align-items: baseline;
	padding: var(--wp--preset--spacing--30, 1rem) 0;
	border-bottom: 1px solid var(--wp--preset--color--accent-6, currentColor);
}

.bipixels-account-overview dt {
	font-weight: 500;
}

.bipixels-account-overview dd {
	margin: 0;
	text-align: right;
	font-weight: 600;
}

.bipixels-account-overview__breakdown {
	display: grid;
	gap: .2rem;
}

.bipixels-account-overview__breakdown-row {
	display: flex;
	align-items: baseline;
	justify-content: flex-end;
	gap: .35rem;
	white-space: nowrap;
}

.bipixels-account-overview__breakdown-row strong {
	font-weight: 600;
}

.bipixels-account-overview__breakdown-row > span {
	font-weight: 400;
	color: color-mix(in srgb, currentColor 65%, transparent);
}

.bipixels-account-overview__tag {
	display: inline-flex;
	align-items: center;
	padding: .08em .42em;
	border: 1px solid color-mix(in srgb, currentColor 24%, transparent);
	border-radius: 999px;
	font-size: .72em;
	line-height: 1.35;
	font-weight: 500;
	color: color-mix(in srgb, currentColor 72%, transparent);
}

.bipixels-account-sites {
	display: grid;
	gap: var(--wp--preset--spacing--50, 2rem);
}

.bipixels-account-sites__summary {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--40, 1.5rem);
	padding-bottom: var(--wp--preset--spacing--30, 1rem);
	border-bottom: 1px solid var(--wp--preset--color--accent-6, currentColor);
}

.bipixels-account-sites__count {
	display: flex;
	align-items: baseline;
	gap: .6rem;
	margin: 0;
}

.bipixels-account-sites__count strong {
	font-size: clamp(2rem, 4vw, 3.25rem);
	line-height: 1;
	font-weight: 600;
}

.bipixels-account-sites__count span,
.bipixels-account-sites__meta,
.bipixels-account-site-add__heading p,
.bipixels-account-site-add__help,
.bipixels-account-sites__empty p:last-child {
	color: color-mix(in srgb, currentColor 65%, transparent);
}

.bipixels-account-sites__meta,
.bipixels-account-site-add__heading p,
.bipixels-account-site-add__help,
.bipixels-account-sites__empty p {
	margin: .45rem 0 0;
}

.bipixels-account-sites__add-link {
	display: inline;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: .12em;
}

.bipixels-account-sites__add-link:hover,
.bipixels-account-sites__add-link:focus-visible {
	background: transparent;
	color: inherit;
}

.bipixels-account-site-list__manage,
.bipixels-account-site-manage__actions > a {
	font-weight: 500;
}

.bipixels-account-sites__empty {
	padding: var(--wp--preset--spacing--40, 1.5rem) 0;
	border-bottom: 1px solid var(--wp--preset--color--accent-6, currentColor);
}

.bipixels-account-site-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bipixels-account-site-list__item {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: var(--wp--preset--spacing--40, 1.5rem);
	padding: var(--wp--preset--spacing--30, 1rem) 0;
	border-bottom: 1px solid var(--wp--preset--color--accent-6, currentColor);
}

.bipixels-account-site-list__identity {
	min-width: 0;
}

.bipixels-account-site-list__url {
	display: block;
	color: inherit;
	font-weight: 600;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.bipixels-account-site-list__url:hover,
.bipixels-account-site-list__url:focus-visible {
	text-decoration: underline;
}

.bipixels-account-site-status-line {
	display: inline-flex;
	align-items: baseline;
	gap: .35em;
	margin-top: .35rem;
	font-size: .82em;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: .01em;
}

.bipixels-account-site-status,
.bipixels-account-site-environment,
.bipixels-account-site-status-separator {
	color: color-mix(in srgb, currentColor 65%, transparent);
}

.bipixels-account-site-status--connected {
	color: #15803d;
}

.bipixels-account-site-add {
	display: grid;
	gap: .85rem;
	padding-top: var(--wp--preset--spacing--20, .625rem);
	max-width: 56rem;
}

.bipixels-account-site-manage__heading h3 {
	margin: 0;
}

.bipixels-account-site-add__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: var(--wp--preset--spacing--30, 1rem);
}

.bipixels-account-site-add__field label {
	display: block;
	margin-bottom: .4rem;
	font-size: .9em;
	font-weight: 600;
}

.bipixels-account-site-add__field input {
	width: 100%;
	box-sizing: border-box;
	min-height: 3.15rem;
	padding: .75rem 1rem;
	font: inherit;
	color: inherit;
	background: transparent;
	border: 1px solid var(--wp--preset--color--accent-6, currentColor);
	border-radius: 0;
}

.bipixels-account-site-add__field input:focus {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.bipixels-account-site-add__help {
	max-width: 48rem;
	font-size: .85em;
	line-height: 1.5;
}

.bipixels-account-site-add__row .wp-element-button {
	min-height: 3.15rem;
	white-space: nowrap;
}

.bipixels-account-sites__limit {
	margin: 0;
	padding: var(--wp--preset--spacing--30, 1rem) 0 0;
}

.bipixels-account-site-manage {
	display: grid;
	gap: var(--wp--preset--spacing--30, 1rem);
}

.bipixels-account-site-manage__heading {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--30, 1rem);
}

.bipixels-account-site-manage__actions {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--40, 1.5rem);
	flex-wrap: wrap;
	margin-top: var(--wp--preset--spacing--40, 1.75rem);
}

.bipixels-account-site-manage__actions form {
	margin: 0;
}

.bipixels-account-site-action--secondary {
	appearance: none;
	background: transparent;
	border: 0;
	color: inherit;
	cursor: pointer;
	font: inherit;
	padding: 0;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: .12em;
}

.bipixels-account-site-action--secondary:hover,
.bipixels-account-site-action--secondary:focus-visible {
	text-decoration-thickness: 2px;
}

.bipixels-account-site-action--danger {
	appearance: none;
	background: transparent;
	border: 1px solid #b42318;
	color: #b42318;
	cursor: pointer;
	font: inherit;
	line-height: 1.2;
	padding: .72em 1.05em;
}

.bipixels-account-site-action--danger:hover,
.bipixels-account-site-action--danger:focus-visible {
	background: #b42318;
	color: #fff;
}

@media (max-width: 782px) {
	.bipixels-account-sites__summary,
	.bipixels-account-site-manage__heading {
		align-items: flex-start;
		flex-direction: column;
	}

	.bipixels-account-site-add__row,
	.bipixels-account-site-list__item {
		grid-template-columns: 1fr;
	}

	.bipixels-account-site-add__row .wp-element-button {
		width: 100%;
	}
}



.bipixels-account-current-plan__summary {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: .55rem;
	margin: 0;
}

.bipixels-account-current-plan__upgrade {
	display: inline;
	margin: 0;
}

.bipixels-account-current-plan__link {
	appearance: none;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	text-decoration: underline;
	text-underline-offset: .14em;
	cursor: pointer;
}

.bipixels-account-current-plan__link:hover,
.bipixels-account-current-plan__link:focus-visible {
	text-decoration-thickness: 2px;
}

.bipixels-account-current-plan__meta {
	margin: .5rem 0 0;
	color: color-mix(in srgb, currentColor 65%, transparent);
}


.bipixels-account-overview__plan {
	display: flex;
	align-items: baseline;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: .45rem;
}

.bipixels-account-overview__plan .bipixels-account-current-plan__upgrade {
	display: inline;
}

.bipixels-account-sites__usage {
	display: flex;
	align-items: baseline;
	gap: var(--wp--preset--spacing--50, 2rem);
	flex-wrap: wrap;
}

/* Authentication */
.bipixels-auth {
	width: 100%;
}

.bipixels-auth .bipixels-account-message {
	margin: 0 0 var(--wp--preset--spacing--40, 1.5rem);
	padding: .9rem 1rem;
	border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
	border-radius: 6px;
}

.bipixels-auth .bipixels-account-message p {
	margin: 0;
}

.bipixels-auth__form {
	display: grid;
	gap: var(--wp--preset--spacing--40, 1.5rem);
}

.bipixels-auth__field {
	display: grid;
	gap: .5rem;
}

.bipixels-auth__field label,
.bipixels-auth__field-header label {
	font-weight: 600;
}

.bipixels-auth__field-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
}

.bipixels-auth__field-header a {
	font-size: .9em;
}

.bipixels-auth__field input[type="text"],
.bipixels-auth__field input[type="email"],
.bipixels-auth__field input[type="password"] {
	box-sizing: border-box;
	width: 100%;
	min-height: 3.25rem;
	margin: 0;
	padding: .8rem .9rem;
	border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
	border-radius: 6px;
	background: transparent;
	color: inherit;
	font: inherit;
}

.bipixels-auth__field input:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.bipixels-auth__help {
	margin: 0;
	font-size: .9em;
	color: color-mix(in srgb, currentColor 62%, transparent);
}

.bipixels-auth__checkbox {
	display: inline-flex;
	align-items: center;
	gap: .55rem;
	width: fit-content;
	cursor: pointer;
}

.bipixels-auth__checkbox input {
	margin: 0;
}

.bipixels-auth__submit,
.bipixels-auth__primary-link .wp-element-button {
	box-sizing: border-box;
	width: 100%;
	justify-content: center;
	text-align: center;
}

.bipixels-auth__primary-link {
	margin: var(--wp--preset--spacing--40, 1.5rem) 0 0;
}

@media (max-width: 480px) {
	.bipixels-auth__field-header {
		align-items: flex-start;
	}
}

/* Placeholders supplement the persistent field labels. */
.bipixels-auth__field input::placeholder {
	color: #6b7280;
	opacity: 1;
}

/* Progressive enhancement: labels and native validation work without JS. */
.bipixels-auth__password { position: relative; }
.bipixels-auth__password input { padding-right: 72px !important; }
.bipixels-auth__password-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); min-width: 48px; min-height: 40px; padding: 6px 8px; border: 0; border-radius: 4px; background: transparent; color: inherit; font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.bipixels-auth__password-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; }
.bipixels-auth__strength { margin-top: 10px; }
.bipixels-auth__strength[hidden] { display: none !important; }
.bipixels-auth__strength-bar { display: flex; gap: 5px; }
.bipixels-auth__strength-bar span { flex: 1; height: 4px; border-radius: 2px; background: #e5e7eb; }
.bipixels-auth__strength .is-filled { background: #b42318; }
.bipixels-auth__strength[data-score="2"] .is-filled { background: #a15c00; }
.bipixels-auth__strength[data-score="3"] .is-filled { background: #247146; }
.bipixels-auth__strength[data-score="4"] .is-filled { background: #166534; }
.bipixels-auth__strength-text { margin: 7px 0 0; font-size: 12px; font-weight: 400; line-height: 1.5; color: #4b5563; }

.bipixels-auth__password-toggle[hidden] { display: none !important; }
.bipixels-auth__strength[data-score="unknown"] .bipixels-auth__strength-bar { opacity: .5; }

/* Explicit severity and readable auth feedback independent of theme body size. */
.bipixels-auth .bipixels-account-message { box-sizing: border-box; padding: 12px 14px; border-radius: 8px; border: 1px solid #bfdbfe; border-left: 3px solid #2563eb; background: #eff6ff; color: #1e40af; font-size: 14px; font-weight: 400; line-height: 1.5; }
.bipixels-auth .bipixels-account-message p { margin: 0; font-size: 14px; font-weight: 400; line-height: 1.5; }
.bipixels-auth .bipixels-account-message--error { border-color: #fecaca; border-left-color: #dc2626; background: #fef2f2; color: #991b1b; }
.bipixels-auth .bipixels-account-message--success { border-color: #bbf7d0; border-left-color: #16a34a; background: #f0fdf4; color: #166534; }
.bipixels-auth .bipixels-account-message--warning { border-color: #fde68a; border-left-color: #b45309; background: #fffbeb; color: #92400e; }
.bipixels-auth .bipixels-account-message:focus { outline: 2px solid currentColor; outline-offset: 3px; }
.bipixels-auth .bipixels-account-form input[aria-invalid="true"] { border-color: #dc2626; background-color: #fffafa; }
.bipixels-auth .bipixels-account-form input[aria-invalid="true"]:focus { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,.12); }
.bipixels-auth .bipixels-auth__field-error { margin: 6px 0 0; color: #b91c1c; font-size: 12px; font-weight: 400; line-height: 1.5; }
.bipixels-auth__field-error[hidden] { display: none !important; }

/* Compact persistent minimum on the left; live strength on the right. */
.bipixels-auth__password-guidance { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; min-height: 24px; box-sizing: border-box; }
.bipixels-auth__password-guidance .bipixels-auth__help { margin: 0; font-size: 12px; line-height: 1.5; white-space: nowrap; }
.bipixels-auth__password-guidance .bipixels-auth__strength { flex: 0 1 160px; min-width: 140px; margin: 0 0 0 auto; }
/* Keep the row steady before typing while hiding an unassessed meter. */
.bipixels-auth__password-guidance .bipixels-auth__strength[hidden] { display: block !important; visibility: hidden; }
.bipixels-auth__strength-row { display: flex; align-items: center; gap: 8px; min-height: 18px; }
.bipixels-auth__strength-row .bipixels-auth__strength-bar { flex: 1; min-width: 48px; gap: 3px; }
.bipixels-auth__strength-label { flex: 0 0 auto; font-size: 12px; font-weight: 400; line-height: 1.5; color: #4b5563; white-space: nowrap; }
.bipixels-auth__strength-label::before { content: '('; }
.bipixels-auth__strength-label::after { content: ')'; }
/* Detailed guidance remains available to assistive technology without a second visual row. */
.bipixels-auth__strength-text { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; border: 0 !important; }

/* Accessible requirements tooltip, kept in the server-rendered form HTML. */
.bipixels-auth__password-guidance .bipixels-auth__help { position: relative; display: inline-flex; align-items: center; gap: 5px; }
.bipixels-auth__help-toggle { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 24px; width: 24px; height: 24px; padding: 0; border: 0; background: transparent; color: #6b7280; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; border-radius: 50%; }
.bipixels-auth__help-toggle::before { content: ''; position: absolute; width: 15px; height: 15px; border: 1px solid currentColor; border-radius: 50%; pointer-events: none; }
.bipixels-auth__help-toggle[hidden], .bipixels-auth__tooltip[hidden] { display: none !important; }
.bipixels-auth__help-toggle:hover, .bipixels-auth__help-toggle[aria-expanded="true"] { color: #111827; background: #f3f4f6; }
.bipixels-auth__help-toggle:focus-visible { outline: 2px solid #111827; outline-offset: 2px; }
.bipixels-auth__tooltip { position: absolute; z-index: 20; left: 0; bottom: calc(100% + 8px); width: min(280px, 75vw); box-sizing: border-box; padding: 12px 14px; border: 1px solid #374151; border-radius: 8px; background: #111827; color: #f9fafb; box-shadow: 0 8px 24px rgba(0,0,0,.15); white-space: normal; font-size: 12px; font-weight: 400; line-height: 1.6; text-align: left; }
.bipixels-auth__tooltip strong { font-weight: 600; }

/* Small tooltip pointer aligned with the center of the question-mark button. */
.bipixels-auth .bipixels-auth__help:has(> .bipixels-auth__help-toggle[aria-expanded="true"])::after {
 content: '';
 position: absolute;
 z-index: 21;
 right: 7px;
 bottom: calc(100% + 4px);
 width: 10px;
 height: 10px;
 box-sizing: border-box;
 background: #111827;
 border-right: 1px solid #374151;
 border-bottom: 1px solid #374151;
 transform: rotate(45deg);
 pointer-events: none;
}

/* Gateway outcome icons reflect normalized auth handler results. */
.ges-auth-trace__step.is-complete .ges-auth-trace__index,
.ges-auth-trace__step.has-error .ges-auth-trace__index { font-size: 0 !important; }
.ges-auth-trace__step.is-complete .ges-auth-trace__index::after { content: '✓'; font-size: 14px; }
.ges-auth-trace__step.has-error .ges-auth-trace__index::after { content: '!'; font-size: 14px; font-weight: 600; }

/* Renewal consent belongs in its own checkout panel, never a compact Plan row. */
.bipixels-account-checkout-notice { box-sizing: border-box; display: block; width: 100%; min-width: 0; margin: 1.25rem 0; padding: 1.25rem; border: 1px solid #dce5e9; border-radius: 12px; background: #f7fafb; text-align: left; }
.bipixels-account-checkout-notice__title { margin: 0 0 1rem; color: #172b36; }
.bipixels-account-checkout-notice__terms { margin: 1rem 0; font-size: .875rem; line-height: 1.65; color: #526571; }
.bipixels-account-subscription-consent { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: start; gap: 10px; max-width: 100%; margin: 1rem 0; font-size: .9375rem; font-weight: 400; line-height: 1.65; color: #334b5c; text-align: left; }
.bipixels-account-subscription-consent input[type="checkbox"] { width: 18px; min-width: 18px; height: 18px; margin: 4px 0 0; }
.bipixels-account-subscription-consent span { min-width: 0; overflow-wrap: anywhere; }
.bipixels-account-checkout-notice .wp-element-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; max-width: 100%; margin: 0; padding: 12px 20px; font: inherit; font-size: .9375rem; font-weight: 650; cursor: pointer; }
.bipixels-account-checkout-notice :is(button,input):focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }
@media(max-width:480px) { .bipixels-account-checkout-notice .wp-element-button { width: 100%; } }
