/**
 * Faction Energy · UI Components (Track C · P0-14)
 *
 * - .ls-faction-energy-badge (single product)
 * - .ls-alignment-dashboard (my account)
 * - .ls-faction-system (landing page)
 * - .ls-cart-item__energy-hint (cart line)
 * - .ls-checkout-energy-row (checkout order review)
 * - .ls-thankyou-energy-notice (order confirmation)
 * - .ls-registration-banner (WC register form)
 * - .ls-checkout-guest-notice (checkout billing)
 *
 * @package LightsaberChild
 * @version 0.1.0
 */

/* ──────────────────────────────────────────────────────────────
   Color tokens (3 factions) — 与 PK 条同源
   ────────────────────────────────────────────────────────────── */
:root {
	--ls-faction-azure:   #00E5FF;
	--ls-faction-crimson: #FF1744;
	--ls-faction-amber:   #FFD700;
	--ls-faction-azure-bg:   rgba(0, 229, 255, 0.08);
	--ls-faction-crimson-bg: rgba(255, 23, 68, 0.08);
	--ls-faction-amber-bg:   rgba(255, 215, 0, 0.08);
}

/* ──────────────────────────────────────────────────────────────
   1. Single Product · Faction Energy Badge
   ────────────────────────────────────────────────────────────── */
.ls-faction-energy-badge {
	display: flex;
	flex-wrap: wrap;
	width: fit-content;
	max-width: 100%;
	align-items: baseline;
	gap: 6px;
	padding: 10px 14px;
	margin: 12px 0 12px;
	border-radius: 4px;
	font: 600 13px/1.4 Inter, sans-serif;
	background: var(--ls-faction-amber-bg);
	border: 1px solid currentColor;
	color: inherit;
}
.ls-faction-energy-badge--azure-blade {
	background: var(--ls-faction-azure-bg);
	color: var(--ls-faction-azure);
}
.ls-faction-energy-badge--crimson-edge {
	background: var(--ls-faction-crimson-bg);
	color: var(--ls-faction-crimson);
}
.ls-faction-energy-badge--amber-core {
	background: var(--ls-faction-amber-bg);
	color: var(--ls-faction-amber);
}
.ls-faction-energy-badge__label,
.ls-faction-energy-badge__suffix {
	color: #6b7480;
	font-weight: 500;
}
.ls-faction-energy-badge__amount {
	color: inherit;
	font-weight: 700;
	font-size: 16px;
}
.ls-faction-energy-badge__faction {
	color: inherit;
	font-weight: 700;
}


/* ──────────────────────────────────────────────────────────────
   2. My Account · Alignment Dashboard (D-A3 redesign)
   ────────────────────────────────────────────────────────────── */
.ls-alignment-dashboard {
	display: block;
	margin: 0 0 32px;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* Hero card — 阵营色深色渐变背景 */
.ls-alignment-dashboard__hero {
	padding: 32px;
	color: #fff;
}
.ls-alignment-dashboard__eyebrow {
	margin: 0 0 12px;
	font: 700 12px/1 Inter, sans-serif;
	letter-spacing: 2px;
	opacity: 0.7;
	text-transform: uppercase;
}
.ls-alignment-dashboard__title {
	margin: 0 0 24px;
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: clamp(32px, 4vw, 40px);
	font-weight: 800;
	line-height: 1;
	color: #fff;
	flex-wrap: wrap;
}
.ls-alignment-dashboard__sword { color: rgba(255,255,255,0.7); flex-shrink: 0; }
.ls-alignment-dashboard__shifted {
	font-size: 13px;
	font-weight: 500;
	opacity: 0.6;
	display: block;
	width: 100%;
	margin-top: 8px;
}

.ls-alignment-dashboard__stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 20px;
}
.ls-alignment-dashboard__stat {
	padding: 16px;
	background: rgba(255,255,255,0.08);
	border-radius: 8px;
}
.ls-alignment-dashboard__stat-label {
	display: block;
	font: 600 11px/1.4 Inter, sans-serif;
	letter-spacing: 0.05em;
	opacity: 0.7;
	text-transform: uppercase;
	margin-bottom: 4px;
}
.ls-alignment-dashboard__stat-value {
	display: block;
	font: 700 32px/1 Inter, sans-serif;
	color: #fff;
}

.ls-alignment-dashboard__breakdown {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	padding-top: 16px;
	border-top: 1px solid rgba(255,255,255,0.15);
	font: 500 13px/1.4 Inter, sans-serif;
	color: rgba(255,255,255,0.75);
}
.ls-alignment-dashboard__breakdown-item { display: inline-flex; align-items: center; gap: 6px; }
.ls-alignment-dashboard__icon { font-size: 14px; }
.ls-alignment-dashboard__how-it-works {
	margin-left: auto;
	font: 500 12px/1.4 Inter, sans-serif;
	opacity: 0.5;
}
.ls-alignment-dashboard__how-it-works a {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.ls-alignment-dashboard__how-it-works a:hover { opacity: 0.85; }

/* Contributions section */
.ls-alignment-dashboard__contributions {
	padding: 24px 32px;
	background: #fff;
}
.ls-alignment-dashboard__section-title {
	margin: 0 0 16px;
	font: 700 13px/1 Inter, sans-serif;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #6b7480;
}
.ls-alignment-dashboard__row {
	display: grid;
	grid-template-columns: 160px 1fr 90px;
	align-items: center;
	gap: 12px;
	padding: 8px 0;
	font: 500 13px/1 Inter, sans-serif;
	color: #374151;
}
.ls-alignment-dashboard__row-name { display: inline-flex; align-items: center; gap: 6px; }
.ls-alignment-dashboard__here {
	font: 600 11px/1 Inter, sans-serif;
	color: var(--lsc-bar-color, #00E5FF);
	opacity: 0.8;
}
.ls-alignment-dashboard__row.is-current .ls-alignment-dashboard__row-name {
	font-weight: 700;
	color: #0f172a;
}
.ls-alignment-dashboard__row-bar {
	display: block;
	height: 10px;
	background: #f3f4f6;
	border-radius: 999px;
	overflow: hidden;
}
.ls-alignment-dashboard__row-bar > span {
	display: block;
	height: 100%;
	background: var(--lsc-bar-color);
	border-radius: 999px;
	transition: width 0.4s ease;
}
.ls-alignment-dashboard__row-value { text-align: right; font-weight: 700; color: #0f172a; }

@media (max-width: 600px) {
	.ls-alignment-dashboard__stats { grid-template-columns: 1fr; }
	.ls-alignment-dashboard__row { grid-template-columns: 1fr; gap: 6px; }
	.ls-alignment-dashboard__row-value { text-align: left; }
}
/* ──────────────────────────────────────────────────────────────
   3. Faction System · Landing page
   ────────────────────────────────────────────────────────────── */
.bjs-faction-system-page { padding: 0 0 80px; background: #080a0d; color: #f5f7f8; }
.ls-faction-system { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.ls-faction-system__hero { padding: clamp(56px, 8vw, 96px) 0 48px; text-align: center; }
.ls-faction-system__hero h1 { max-width: 900px; margin: 0 auto 18px; color: #f5f7f8; font: 700 clamp(38px, 6vw, 68px)/1.02 'Barlow Condensed', sans-serif; text-transform: uppercase; text-wrap: balance; }
.ls-faction-system__hero p { max-width: 680px; margin: 0 auto; color: #c6ced6; font: 400 16px/1.65 Inter, sans-serif; }

.ls-faction-system__live { display: grid; justify-items: center; gap: 20px; padding: 36px 0; border-top: 1px solid #28313b; border-bottom: 1px solid #28313b; text-align: center; }
.ls-faction-system__live-copy h2,
.ls-faction-system__factions h2,
.ls-faction-system__rules h2,
.ls-faction-system__faq h2 { margin: 0 0 12px; color: #f5f7f8; font: 700 clamp(28px, 3vw, 38px)/1.1 'Barlow Condensed', sans-serif; text-transform: uppercase; }
.ls-faction-system__live-copy p { max-width: 680px; margin: 0; color: #b9c4ce; line-height: 1.6; }
.ls-faction-system__bar { position: relative; isolation: isolate; width: 100%; height: 76px; overflow: hidden; border-radius: 999px; }
.ls-faction-system__bar-track { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
.ls-faction-system__bar .ls-pk-bar { width: 100%; max-width: none; height: 100%; }
.ls-faction-system__bar .ls-pk-counter,
.ls-faction-system__bar .ls-pk-label { display: none; }
.ls-faction-system__balance { position: absolute; z-index: 1; inset: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; width: 100%; margin: 0; padding: 0; list-style: none; text-align: center; pointer-events: none; }
.ls-faction-system__balance-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; justify-items: center; gap: 4px 10px; min-width: 0; margin: 8px; padding: 6px 12px; border: 1px solid rgba(226, 230, 235, .38); border-radius: 8px; background: rgba(8, 10, 13, .78); }
.ls-faction-system__balance-name { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; color: #f5f7f8; font-size: 14px; font-weight: 700; line-height: 1.15; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }
.ls-faction-system__balance-icon { display: block; flex: 0 0 34px; width: 34px; height: 26px; object-fit: contain; }
.ls-faction-system__balance-item strong { font: 700 22px/1.2 'Barlow Condensed', sans-serif; font-variant-numeric: tabular-nums; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }
.ls-faction-system__balance-item--azure strong { color: #00e5ff; }
.ls-faction-system__balance-item--amber strong { color: #ffd700; }
.ls-faction-system__balance-item--crimson strong { color: #ff526d; }
.ls-faction-system__balance-unit { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
.ls-faction-system__live-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: min(100%, 760px); }
.ls-faction-system__live-actions .ls-faction-btn { min-height: 42px; padding: 9px 12px; font-size: 14px; line-height: 1.25; }

@media (max-width: 600px) {
	.ls-faction-system__bar { height: 96px; }
	.ls-faction-system__balance-item { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: 2px; margin: 8px 3px; padding: 5px 4px; }
	.ls-faction-system__balance-name { flex-direction: column; gap: 1px; font-size: 10px; overflow-wrap: anywhere; }
	.ls-faction-system__balance-icon { flex-basis: 19px; width: 25px; height: 19px; }
	.ls-faction-system__balance-item strong { grid-column: 1; font-size: 18px; line-height: 1; }
}

.ls-faction-system__factions { padding: 56px 0; }
.ls-faction-system__factions h2,
.ls-faction-system__rules > h2,
.ls-faction-system__faq > h2 { margin-bottom: 24px; }
.ls-faction-system__factions-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ls-faction-system__faction { min-width: 0; padding: 24px; border: 1px solid #28313b; border-top: 2px solid var(--ls-faction-color, #3d4854); background: #0e1217; }
.ls-faction-system__faction--azure-blade { --ls-faction-color: #00c5de; }
.ls-faction-system__faction--crimson-edge { --ls-faction-color: #ff526d; }
.ls-faction-system__faction--amber-core { --ls-faction-color: #e1bd4c; }
.ls-faction-system__faction h3 { margin: 0 0 8px; color: var(--ls-faction-color); font: 700 24px/1.1 'Barlow Condensed', sans-serif; }
.ls-faction-system__faction-tagline { margin: 0 0 14px; color: #b8c3cd; font: 650 11px/1.4 Inter, sans-serif; letter-spacing: .06em; }
.ls-faction-system__faction-desc { margin: 0; color: #d0d7de; font: 400 15px/1.6 Inter, sans-serif; }

.ls-faction-system__rules { padding: 32px 0 56px; border-top: 1px solid #28313b; }
.ls-faction-system__guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.ls-faction-system__guide-grid article { min-width: 0; }
.ls-faction-system__guide-grid h3,
.ls-faction-system__participate h3 { margin: 0 0 8px; color: #f5f7f8; font: 700 21px/1.2 'Barlow Condensed', sans-serif; text-transform: uppercase; }
.ls-faction-system__participate h4 { margin: 24px 0 8px; color: #f5f7f8; font: 700 18px/1.25 'Barlow Condensed', sans-serif; text-transform: uppercase; }
.ls-faction-system__guide-grid p,
.ls-faction-system__participate p { margin: 0; color: #c6ced6; font: 400 15px/1.65 Inter, sans-serif; }
.ls-faction-system__participate { margin-top: 32px; padding-top: 24px; border-top: 1px solid #28313b; }
.ls-faction-system__participate p + p { margin-top: 12px; }
.ls-faction-system__participate a,
.ls-faction-system__faq a { color: #7de8ff; text-underline-offset: 3px; }
.ls-faction-system__faq { padding: 32px 0 64px; border-top: 1px solid #28313b; }
.ls-faction-system__faq details { border-top: 1px solid #28313b; }
.ls-faction-system__faq details:last-child { border-bottom: 1px solid #28313b; }
.ls-faction-system__faq summary { padding: 17px 0; color: #f5f7f8; font: 600 16px/1.45 Inter, sans-serif; cursor: pointer; }
.ls-faction-system__faq details p { max-width: 760px; margin: 0 0 18px; color: #c6ced6; line-height: 1.6; }
.ls-faction-system :focus-visible { outline: 3px solid #36c9e8; outline-offset: 3px; }

@media (max-width: 760px) {
	.ls-faction-system__factions-grid,
	.ls-faction-system__guide-grid { grid-template-columns: 1fr; }
	.ls-faction-system__live-actions { grid-template-columns: 1fr; }
}

/* ──────────────────────────────────────────────────────────────
   4. Cart line energy hint
   ────────────────────────────────────────────────────────────── */
.ls-cart-item__energy-hint {
	display: block;
	margin-top: 4px;
	color: #6b7480;
	font: 500 11px/1.4 Inter, sans-serif;
}

/* ──────────────────────────────────────────────────────────────
   5. Checkout order review row
   ────────────────────────────────────────────────────────────── */
.ls-checkout-energy-row th,
.ls-checkout-energy-row td {
	padding: 12px 0;
	border-top: 1px dashed #e5e7eb;
}
.ls-checkout-energy-row th { font-weight: 600; }
.ls-checkout-energy-row strong { color: var(--ls-faction-amber); font-size: 16px; }

/* ──────────────────────────────────────────────────────────────
   6. Thank-you notice
   ────────────────────────────────────────────────────────────── */
.ls-thankyou-energy-notice {
	margin: 24px 0;
	padding: 24px;
	border: 1px solid #e5e7eb;
	border-left: 4px solid var(--ls-faction-amber);
	border-radius: 4px;
	background: var(--ls-faction-amber-bg);
}
.ls-thankyou-energy-notice h2 { margin: 0 0 8px; font: 700 18px/1.2 Inter, sans-serif; }
.ls-thankyou-energy-notice__breakdown { margin: 12px 0 0; padding: 0; list-style: none; }
.ls-thankyou-energy-notice__breakdown li { font: 500 13px/1.6 Inter, sans-serif; color: #404754; }

/* ──────────────────────────────────────────────────────────────
   7. Registration banner + guest notice
   ────────────────────────────────────────────────────────────── */
.ls-registration-banner,
.ls-checkout-guest-notice {
	margin: 16px 0;
	padding: 12px 14px;
	background: var(--ls-faction-amber-bg);
	border-left: 3px solid var(--ls-faction-amber);
	border-radius: 4px;
	color: #404754;
	font: 500 13px/1.5 Inter, sans-serif;
}

/* C02-04 account redesign overrides. The account shell remains WooCommerce-owned. */
.woocommerce-account .woocommerce-MyAccount-content { min-width: 0; overflow-wrap: anywhere; }
.woocommerce-account .woocommerce-MyAccount-content input,
.woocommerce-account .woocommerce-MyAccount-content select,
.woocommerce-account .woocommerce-MyAccount-content textarea { max-width: 100%; }
.woocommerce-account .woocommerce-MyAccount-navigation { margin-bottom: 24px; }
.woocommerce-account .woocommerce-MyAccount-navigation ul {
	margin: 0;
	padding: 8px;
	list-style: none;
	border: 1px solid #e2e6eb;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 8px 28px rgba(18, 28, 45, .06);
}
.woocommerce-account .woocommerce-MyAccount-navigation-link a {
	display: block;
	padding: 11px 14px;
	border-radius: 8px;
	color: #4b5563;
	font-size: 14px;
	line-height: 1.35;
	transition: background .18s ease, color .18s ease;
}
.woocommerce-account .woocommerce-MyAccount-navigation-link a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation-link.is-active a {
	background: #101722;
	color: #fff;
}
.ls-alignment-dashboard {
	margin: 0 0 32px;
	border: 1px solid #e2e6eb;
	border-radius: 16px;
	background: #f7f9fb;
	box-shadow: 0 12px 36px rgba(18, 28, 45, .08);
	overflow: hidden;
}
.ls-alignment-dashboard__hero {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(220px, .8fr);
	gap: 32px;
	align-items: end;
	padding: clamp(28px, 5vw, 52px);
	background: linear-gradient(120deg, #101722 0%, #1b2635 55%, #25384a 100%);
	color: #fff;
}
.ls-alignment-dashboard__intro { min-width: 0; }
.ls-alignment-dashboard__eyebrow,
.ls-alignment-dashboard__kicker {
	margin: 0 0 10px;
	font: 700 11px/1.2 Inter, sans-serif;
	letter-spacing: .16em;
	text-transform: uppercase;
}
.ls-alignment-dashboard__eyebrow { color: #9fb0c2; }
.ls-alignment-dashboard__title {
	margin: 0;
	color: #fff;
	font: 700 clamp(28px, 4vw, 44px)/1.08 Inter, sans-serif;
	letter-spacing: -.03em;
	text-wrap: balance;
}
.ls-alignment-dashboard__lede { max-width: 520px; margin: 14px 0 0; color: #c6d0dc; font-size: 15px; line-height: 1.6; }
.ls-alignment-dashboard__identity {
	min-width: 0;
	padding: 20px;
	border: 1px solid rgba(255,255,255,.15);
	border-radius: 12px;
	background: rgba(255,255,255,.07);
}
.ls-alignment-dashboard__identity-label { display: block; margin-bottom: 10px; color: #aebdcb; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.ls-alignment-dashboard__identity-value { display: flex; align-items: center; gap: 10px; color: var(--lsc-account-accent, #d5dde7); font-size: 21px; line-height: 1.2; overflow-wrap: anywhere; }
.ls-alignment-dashboard__identity-mark,
.ls-alignment-dashboard__row-dot { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: var(--lsc-account-accent, #aebdcb); box-shadow: 0 0 14px var(--lsc-account-accent, transparent); }
.ls-alignment-dashboard__identity-note { display: block; margin-top: 8px; color: #aebdcb; font-size: 12px; line-height: 1.45; }
.ls-alignment-dashboard__identity.is-unavailable .ls-alignment-dashboard__identity-value { color: #d5dde7; font-size: 18px; }
.ls-alignment-dashboard__body { padding: clamp(20px, 4vw, 36px); }
.ls-alignment-dashboard__metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.ls-alignment-dashboard__metric { min-width: 0; padding: 20px; border: 1px solid #e2e6eb; border-radius: 12px; background: #fff; }
.ls-alignment-dashboard__metric-label { display: block; color: #657181; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ls-alignment-dashboard__metric-value { display: block; margin-top: 9px; color: #111827; font-size: clamp(22px, 3vw, 32px); line-height: 1.15; overflow-wrap: anywhere; }
.ls-alignment-dashboard__metric-value--muted { color: #7b8795; font-size: 22px; }
.ls-alignment-dashboard__metric-value--link { font-size: 19px; }
.ls-alignment-dashboard__metric-note { display: block; margin-top: 8px; color: #758091; font-size: 13px; line-height: 1.45; }
.ls-alignment-dashboard__metric-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; color: #165d7a; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.ls-alignment-dashboard__panel { margin-top: 18px; padding: 22px; border: 1px solid #e2e6eb; border-radius: 12px; background: #fff; }
.ls-alignment-dashboard__panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.ls-alignment-dashboard__kicker { margin-bottom: 7px; color: #788595; }
.ls-alignment-dashboard__panel h3 { margin: 0; color: #172131; font-size: 19px; line-height: 1.25; }
.ls-alignment-dashboard__panel-heading a { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; color: #165d7a; font-size: 13px; font-weight: 700; }
.ls-alignment-dashboard__row { display: grid; grid-template-columns: minmax(155px, 1fr) minmax(100px, 2fr) 84px; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid #edf0f3; color: #354153; font-size: 14px; }
.ls-alignment-dashboard__row-name { display: flex; align-items: center; gap: 9px; min-width: 0; }
.ls-alignment-dashboard__row-name > span:nth-child(2) { overflow-wrap: anywhere; }
.ls-alignment-dashboard__here { color: #687789; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.ls-alignment-dashboard__row.is-current .ls-alignment-dashboard__row-name { color: #162130; font-weight: 700; }
.ls-alignment-dashboard__row-bar { display: block; height: 8px; overflow: hidden; border-radius: 99px; background: #edf0f3; }
.ls-alignment-dashboard__row-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--lsc-account-accent, #9aa6b2); transition: width .35s ease; }
.ls-alignment-dashboard__row-value { color: #172131; text-align: right; white-space: nowrap; }
.ls-alignment-dashboard__row-value.is-negative,
.ls-alignment-dashboard__events strong.is-negative { color: #b42318; }
.ls-alignment-dashboard__empty { margin: 0; padding: 16px; border-radius: 8px; background: #f5f7f9; color: #647184; font-size: 14px; line-height: 1.55; }
.ls-alignment-dashboard__events { margin: 0; padding: 0; list-style: none; }
.ls-alignment-dashboard__events li { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(120px, auto); gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid #edf0f3; color: #354153; font-size: 14px; }
.ls-alignment-dashboard__events time { color: #7b8795; font-size: 12px; text-align: right; }

.ls-alignment-dashboard { container-type: inline-size; }
.ls-alignment-dashboard__hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }

@container (max-width: 680px) {
	.ls-alignment-dashboard__hero { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}

@media (max-width: 767px) {
	.woocommerce-account .woocommerce-MyAccount-navigation ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
	.woocommerce-account .woocommerce-MyAccount-navigation-link a { padding: 10px 9px; font-size: 13px; }
	.ls-alignment-dashboard__hero { grid-template-columns: 1fr; gap: 24px; }
	.ls-alignment-dashboard__metrics { grid-template-columns: 1fr; }
	.ls-alignment-dashboard__panel-heading { display: block; }
	.ls-alignment-dashboard__panel-heading a { margin-top: 12px; }
	.ls-alignment-dashboard__row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
	.ls-alignment-dashboard__row-bar { grid-column: 1 / -1; grid-row: 2; }
	.ls-alignment-dashboard__row-value { grid-column: 2; grid-row: 1; }
	.ls-alignment-dashboard__events li { grid-template-columns: minmax(0, 1fr) auto; }
	.ls-alignment-dashboard__events time { grid-column: 1 / -1; text-align: left; }
}

/* C02-04R: use the existing dark BJSABER shell for every account state. */
body.woocommerce-account {
	background: #080a0d;
	color: #f5f7f8;
}
body.woocommerce-account .site-main {
	min-height: 70vh;
	padding: clamp(28px, 5vw, 64px) 0;
	background: #080a0d;
}
.woocommerce-account .content-wrap { width: 100%; max-width: none; grid-template-columns: minmax(0, 1fr); }
.woocommerce-account #primary.content-area { width: 100%; max-width: none; }
.woocommerce-account .entry-content-wrap,
.woocommerce-account .entry-content { width: 100%; max-width: none; }
.woocommerce-account .woocommerce {
	width: min(1280px, calc(100% - 48px));
	max-width: none;
	margin: 0 auto;
}
.woocommerce-account .woocommerce:has(> .account-navigation-wrap) {
	display: grid;
	grid-template-columns: minmax(190px, 220px) minmax(0, 1fr);
	grid-template-areas: "navigation content";
	align-items: start;
	gap: 28px;
}
.woocommerce-account .woocommerce:has(> .account-navigation-wrap)::before,
.woocommerce-account .woocommerce:has(> .account-navigation-wrap)::after {
	display: none;
}
.woocommerce-account .woocommerce:has(> .account-navigation-wrap) > .account-navigation-wrap {
	grid-area: navigation;
	min-width: 0;
	width: auto;
	float: none;
}
.woocommerce-account .woocommerce:has(> .account-navigation-wrap) > .account-navigation-wrap .woocommerce-MyAccount-navigation {
	width: 100%;
	max-width: none;
	float: none;
	margin: 0;
	writing-mode: horizontal-tb;
}
.woocommerce-account .woocommerce:has(> .account-navigation-wrap) > .account-navigation-wrap .woocommerce-MyAccount-navigation ul {
	width: 100%;
	box-sizing: border-box;
}
.woocommerce-account .woocommerce:has(> .account-navigation-wrap) > .woocommerce-MyAccount-content {
	grid-area: content;
	width: auto;
	min-width: 0;
	max-width: none;
}
.woocommerce-account .woocommerce:has(> .account-navigation-wrap) .woocommerce-MyAccount-navigation {
	margin-bottom: 0;
}
@media (max-width: 767px) {
	.woocommerce-account .woocommerce:has(> .account-navigation-wrap) {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "navigation" "content";
		gap: 20px;
	}
}
.woocommerce-account .woocommerce:not(:has(> .account-navigation-wrap)):has(.u-columns) {
	max-width: 860px;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul {
	border-color: #28313b;
	background: #0e1217;
	box-shadow: 0 12px 32px rgba(0, 0, 0, .28);
}
.woocommerce-account .woocommerce-MyAccount-navigation-link a {
	color: #aeb8c2;
}
.woocommerce-account .woocommerce-MyAccount-navigation-link a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation-link.is-active a {
	background: #18212b;
	color: #f5f7f8;
}
.woocommerce-account .woocommerce-MyAccount-navigation-link.is-active a {
	box-shadow: inset 3px 0 0 var(--ls-light-primary);
}
.woocommerce-account .woocommerce-MyAccount-content {
	color: #d9e0e6;
}
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-table--order-details {
	width: 100%;
	max-width: none;
	table-layout: auto;
	border-collapse: collapse;
}
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table th,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table td,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-table--order-details th,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-table--order-details td {
	white-space: normal;
	word-break: normal;
	overflow-wrap: anywhere;
	vertical-align: top;
}
.woocommerce-account .woocommerce-MyAccount-content > p:not(.ls-alignment-dashboard__lede),
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-error {
	color: #c7d0d9;
}
.woocommerce-account .woocommerce-notices-wrapper {
	margin-bottom: 18px;
}
.woocommerce-account .woocommerce-message,
.woocommerce-account .woocommerce-info,
.woocommerce-account .woocommerce-error {
	margin: 0 0 18px;
	padding: 14px 16px;
	border: 1px solid #28313b;
	border-left: 3px solid var(--ls-light-primary);
	border-radius: 8px;
	background: #10171e;
}
.woocommerce-account .woocommerce-error {
	border-left-color: var(--ls-dark-primary);
}
.woocommerce-account .woocommerce-form-login,
.woocommerce-account .woocommerce-form-register,
.woocommerce-account .woocommerce-ResetPassword {
	max-width: 560px;
	margin: 0 auto;
	padding: clamp(20px, 3vw, 32px);
	border: 1px solid #28313b;
	border-radius: 12px;
	background: #0e1217;
	box-shadow: 0 18px 42px rgba(0, 0, 0, .24);
}
.woocommerce-account .woocommerce-ResetPassword { padding: clamp(24px, 5vw, 42px); }
.woocommerce-account .woocommerce .u-columns {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}
.woocommerce-account .woocommerce .u-columns::before,
.woocommerce-account .woocommerce .u-columns::after {
	display: none;
}
.woocommerce-account .woocommerce .u-column1,
.woocommerce-account .woocommerce .u-column2 {
	min-width: 0;
	width: auto;
	float: none;
	margin: 0;
}
@media (max-width: 860px) {
	.woocommerce-account .woocommerce:not(:has(> .account-navigation-wrap)) .u-columns {
		grid-template-columns: minmax(0, 1fr);
	}
}
.woocommerce-account .woocommerce .u-columns .woocommerce-form-login,
.woocommerce-account .woocommerce .u-columns .woocommerce-form-register {
	box-sizing: border-box;
	max-width: none;
	width: 100%;
}
.woocommerce-account :is(.woocommerce-form-login, .woocommerce-form-register, .woocommerce-ResetPassword) label {
	color: #b8c3cd;
}
.woocommerce-account .woocommerce .u-columns label {
	color: #dce3e9;
}
.woocommerce-account :is(.woocommerce-form-login, .woocommerce-form-register, .woocommerce-ResetPassword) input[type="text"],
.woocommerce-account :is(.woocommerce-form-login, .woocommerce-form-register, .woocommerce-ResetPassword) input[type="email"],
.woocommerce-account :is(.woocommerce-form-login, .woocommerce-form-register, .woocommerce-ResetPassword) input[type="password"],
.woocommerce-account :is(.woocommerce-form-login, .woocommerce-form-register, .woocommerce-ResetPassword) input[type="tel"],
.woocommerce-account :is(.woocommerce-form-login, .woocommerce-form-register, .woocommerce-ResetPassword) select,
.woocommerce-account :is(.woocommerce-form-login, .woocommerce-form-register, .woocommerce-ResetPassword) textarea {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	border: 1px solid #36424e;
	border-radius: 6px;
	background: #080a0d;
	color: #f5f7f8;
}
.woocommerce-account :is(.woocommerce-form-login, .woocommerce-form-register, .woocommerce-ResetPassword) input:focus,
.woocommerce-account :is(.woocommerce-form-login, .woocommerce-form-register, .woocommerce-ResetPassword) select:focus,
.woocommerce-account :is(.woocommerce-form-login, .woocommerce-form-register, .woocommerce-ResetPassword) textarea:focus,
.woocommerce-account :is(.woocommerce-form-login, .woocommerce-form-register, .woocommerce-ResetPassword) button:focus-visible {
	outline: 2px solid var(--ls-light-primary);
	outline-offset: 3px;
}
.woocommerce-account .woocommerce .u-columns .woocommerce-form-login :is(input, select, textarea, button, a):focus-visible,
.woocommerce-account .woocommerce .u-columns .woocommerce-form-register :is(input, select, textarea, button, a):focus-visible {
	outline: 2px solid #36c9e8;
	outline-offset: 3px;
}
.woocommerce-account :is(.woocommerce-form-login, .woocommerce-form-register, .woocommerce-ResetPassword) button,
.woocommerce-account :is(.woocommerce-form-login, .woocommerce-form-register, .woocommerce-ResetPassword) .button {
	border: 1px solid var(--ls-light-primary);
	border-radius: 6px;
	background: transparent;
	color: var(--ls-light-primary);
}
.woocommerce-account :is(.woocommerce-form-login, .woocommerce-form-register, .woocommerce-ResetPassword) button:hover,
.woocommerce-account :is(.woocommerce-form-login, .woocommerce-form-register, .woocommerce-ResetPassword) .button:hover {
	background: rgba(0, 229, 255, .1);
	color: #fff;
}
.woocommerce-account .woocommerce-MyAccount-content form,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address {
	color: #d9e0e6;
}
.woocommerce-account .woocommerce-MyAccount-content label {
	color: #b8c3cd;
}
.woocommerce-account .woocommerce-MyAccount-content input[type="text"],
.woocommerce-account .woocommerce-MyAccount-content input[type="email"],
.woocommerce-account .woocommerce-MyAccount-content input[type="password"],
.woocommerce-account .woocommerce-MyAccount-content input[type="tel"],
.woocommerce-account .woocommerce-MyAccount-content select,
.woocommerce-account .woocommerce-MyAccount-content textarea {
	border: 1px solid #36424e;
	border-radius: 6px;
	background: #080a0d;
	color: #f5f7f8;
}
.woocommerce-account .woocommerce-MyAccount-content input:focus,
.woocommerce-account .woocommerce-MyAccount-content select:focus,
.woocommerce-account .woocommerce-MyAccount-content textarea:focus,
.woocommerce-account a:focus-visible,
.woocommerce-account button:focus-visible {
	outline: 2px solid var(--ls-light-primary);
	outline-offset: 3px;
}
.woocommerce-account .woocommerce-MyAccount-content button,
.woocommerce-account .woocommerce-MyAccount-content .button {
	border: 1px solid var(--ls-light-primary);
	border-radius: 6px;
	background: transparent;
	color: var(--ls-light-primary);
}
.woocommerce-account .woocommerce-MyAccount-content button:hover,
.woocommerce-account .woocommerce-MyAccount-content .button:hover {
	background: rgba(0, 229, 255, .1);
	color: #fff;
}
.woocommerce-account .woocommerce-orders-table,
.woocommerce-account .woocommerce-table--order-details {
	border-color: #28313b;
	background: #0e1217;
	color: #d9e0e6;
}
.woocommerce-account .woocommerce-orders-table th,
.woocommerce-account .woocommerce-orders-table td,
.woocommerce-account .woocommerce-table--order-details th,
.woocommerce-account .woocommerce-table--order-details td {
	border-color: #28313b;
}
.woocommerce-account .woocommerce-Address {
	border: 1px solid #28313b;
	border-radius: 10px;
	background: #0e1217;
}
.woocommerce-account .woocommerce-Addresses {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}
.woocommerce-account .woocommerce-Addresses .woocommerce-Address {
	float: none;
	width: auto;
	margin: 0;
	padding: 20px;
}
.woocommerce-account .woocommerce-Address-title {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}
.woocommerce-account .woocommerce-Address address {
	margin-top: 14px;
	color: #b8c3cd;
	font-style: normal;
	line-height: 1.6;
}
.woocommerce-account .woocommerce-Address-title,
.woocommerce-account .woocommerce-MyAccount-content h2,
.woocommerce-account .woocommerce-MyAccount-content h3 {
	color: #f5f7f8;
}
.woocommerce-account .woocommerce-MyAccount-content a {
	color: #7de8ff;
}
.woocommerce-account .woocommerce-MyAccount-content a:hover {
	color: #fff;
}
.ls-alignment-dashboard {
	border-color: #28313b;
	background: #0e1217;
	box-shadow: 0 18px 42px rgba(0, 0, 0, .28);
}
.ls-alignment-dashboard__body {
	background: #0e1217;
}
.ls-alignment-dashboard__metric,
.ls-alignment-dashboard__panel {
	border-color: #28313b;
	background: #121820;
}
.ls-alignment-dashboard__metric-label,
.ls-alignment-dashboard__kicker {
	color: #93a2af;
}
.ls-alignment-dashboard__metric-value,
.ls-alignment-dashboard__panel h3,
.ls-alignment-dashboard__row-value,
.ls-alignment-dashboard__row.is-current .ls-alignment-dashboard__row-name {
	color: #f5f7f8;
}
.ls-alignment-dashboard__metric-note,
.ls-alignment-dashboard__empty,
.ls-alignment-dashboard__row,
.ls-alignment-dashboard__events li {
	color: #aeb8c2;
}
.ls-alignment-dashboard__empty {
	background: #18212b;
}
.ls-alignment-dashboard__row,
.ls-alignment-dashboard__events li {
	border-color: #28313b;
}
.ls-alignment-dashboard__row-bar {
	background: #28313b;
}
.ls-alignment-dashboard__panel-heading a,
.ls-alignment-dashboard__metric-link {
	color: #7de8ff;
}
.ls-alignment-dashboard__row-value.is-negative,
.ls-alignment-dashboard__events strong.is-negative {
	color: #ff7a7a;
}

@media (max-width: 767px) {
	.woocommerce-account .woocommerce {
		width: min(100%, calc(100% - 32px));
	}
	.woocommerce-account .entry-content-wrap:has(.woocommerce-form-register),
	.woocommerce-account .entry-content:has(.woocommerce-form-register) {
		max-width: none;
		padding-inline: 0;
	}
	.woocommerce-account .woocommerce:not(:has(> .account-navigation-wrap)):has(.woocommerce-form-register) {
		width: 100%;
	}
	.woocommerce-account .woocommerce .u-columns :is(.woocommerce-form-login, .woocommerce-form-register) {
		padding: 20px;
	}
	body.woocommerce-account .site-main {
		padding-block: 24px;
	}
	.woocommerce-account .woocommerce-Addresses {
		grid-template-columns: 1fr;
	}
	.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table {
		min-width: 560px;
	}
	.woocommerce-account .woocommerce-MyAccount-content:has(.woocommerce-orders-table, .woocommerce-table--order-details) {
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	.woocommerce-account .woocommerce .u-columns {
		grid-template-columns: 1fr;
	}
}

/* C02-08R9: keep faction labels aligned to the real score segments. */
.ls-faction-system__bar { overflow: visible; margin-bottom: 0; }
.ls-faction-system__bar-track { z-index: 0; }
.ls-faction-system__bar .ls-pk-bar > :is(.ls-pk-bar__light, .ls-pk-bar__neutral, .ls-pk-bar__dark) {
	flex: 0 0 auto;
	min-width: 0;
}
.ls-faction-system__bar .ls-pk-bar.is-empty { background: #171d24; }
.ls-faction-system__bar .ls-pk-bar.is-empty > :is(.ls-pk-bar__light, .ls-pk-bar__neutral, .ls-pk-bar__dark) { width: 0 !important; }
.ls-faction-system__balance {
	position: absolute;
	z-index: 1;
	inset: 0;
	display: flex;
	grid-template-columns: none;
	align-items: stretch;
	gap: 0;
	width: 100%;
	padding: 0;
	margin: 0;
	list-style: none;
	text-align: center;
	pointer-events: none;
}
.ls-faction-system__balance-item {
	display: flex;
	flex: 0 0 0%;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	min-width: 0;
	margin: 0;
	padding: 4px 2px;
	border: 0;
	border-radius: 0;
	background: transparent;
}
.ls-faction-system__balance-name {
	min-width: 0;
	color: #f5f7f8;
	font: 600 13px/1.05 'Barlow Condensed', sans-serif;
	text-align: center;
	text-shadow: 0 1px 3px rgba(0, 0, 0, .85);
	word-break: normal;
	overflow-wrap: normal;
}
.ls-faction-system__balance-icon { display: none; }
.ls-faction-system__balance-item strong { font-size: 22px; line-height: 1; }
.ls-faction-system__balance.is-ratio-label-fallback {
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	bottom: auto;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: start;
	height: auto;
}
.ls-faction-system__bar:has(.ls-faction-system__balance.is-ratio-label-fallback) { margin-bottom: 46px; }
.ls-faction-system__balance.is-ratio-label-fallback .ls-faction-system__balance-item {
	flex: initial;
	align-items: center;
	gap: 2px;
	padding: 0 4px;
}
.ls-faction-system__balance.is-ratio-label-fallback .ls-faction-system__balance-name { font-size: 12px; }
.ls-faction-system__balance.is-ratio-label-fallback .ls-faction-system__balance-item--azure .ls-faction-system__balance-name { color: #70efff; }
.ls-faction-system__balance.is-ratio-label-fallback .ls-faction-system__balance-item--amber .ls-faction-system__balance-name { color: #ffe27a; }
.ls-faction-system__balance.is-ratio-label-fallback .ls-faction-system__balance-item--crimson .ls-faction-system__balance-name { color: #ff8396; }
.ls-faction-system__balance-unit { position: absolute; }
.ls-faction-system__live-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	width: 100%;
}
.ls-faction-system__live-actions .ls-faction-btn {
	flex: 0 1 auto;
	width: auto;
	min-height: 40px;
	padding: 8px 12px;
	font-size: 12px;
}
.ls-faction-system__live-actions .ls-faction-btn:focus-visible {
	outline: 3px solid #f5f7f8;
	outline-offset: 3px;
}
@media (max-width: 600px) {
	.ls-faction-system__bar { height: 96px; }
	.ls-faction-system__balance-item { padding-inline: 2px; }
	.ls-faction-system__balance-name { font-size: 10px; line-height: 1; }
	.ls-faction-system__balance-item strong { font-size: 17px; }
	.ls-faction-system__balance.is-ratio-label-fallback .ls-faction-system__balance-name { font-size: 10px; }
	.ls-faction-system__live-actions { gap: 8px; }
	.ls-faction-system__live-actions .ls-faction-btn { min-height: 40px; padding: 8px 10px; font-size: 11px; }
}

/* C02-08R9: keep long account content at word boundaries and give it room. */
.woocommerce-account .woocommerce:has(> .account-navigation-wrap) {
	grid-template-columns: minmax(248px, 264px) minmax(0, 1fr);
	gap: 24px;
}
.woocommerce-account .account-navigation-wrap,
.woocommerce-account .account-navigation-wrap > :not(.woocommerce-MyAccount-navigation) {
	min-width: 0;
	word-break: normal;
	overflow-wrap: normal;
}
.woocommerce-account .account-navigation-wrap :where(p, span, a) {
	word-break: normal;
	overflow-wrap: normal;
}
.woocommerce-account .woocommerce-MyAccount-content { overflow-wrap: normal; }
.woocommerce-account .woocommerce-MyAccount-content :where(h1, h2, h3, a, time, .woocommerce-Price-amount) {
	word-break: normal;
	overflow-wrap: normal;
}

/* Orders stay a table at desktop sizes and become labeled cards on phones. */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table {
	table-layout: fixed;
	border: 1px solid #28313b;
	border-collapse: collapse;
}
.woocommerce-account .woocommerce-orders-table th,
.woocommerce-account .woocommerce-orders-table td {
	padding: 12px 10px;
	border: 1px solid #28313b;
	vertical-align: middle;
	word-break: normal;
	overflow-wrap: normal;
}
.woocommerce-account .woocommerce-orders-table th:nth-child(1),
.woocommerce-account .woocommerce-orders-table td.woocommerce-orders-table__cell-order-number { width: 10%; white-space: nowrap; }
.woocommerce-account .woocommerce-orders-table th:nth-child(2),
.woocommerce-account .woocommerce-orders-table td.woocommerce-orders-table__cell-order-date { width: 18%; }
.woocommerce-account .woocommerce-orders-table th:nth-child(3),
.woocommerce-account .woocommerce-orders-table td.woocommerce-orders-table__cell-order-status { width: 18%; }
.woocommerce-account .woocommerce-orders-table th:nth-child(4),
.woocommerce-account .woocommerce-orders-table td.woocommerce-orders-table__cell-order-total { width: 22%; }
.woocommerce-account .woocommerce-orders-table th:nth-child(5),
.woocommerce-account .woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions { width: 32%; }
.woocommerce-account .woocommerce-orders-table td.woocommerce-orders-table__cell-order-total,
.woocommerce-account .woocommerce-orders-table td.woocommerce-orders-table__cell-order-total .woocommerce-Price-amount { white-space: nowrap; }
.woocommerce-account .woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions {
	white-space: normal;
}
.woocommerce-account .woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 64px;
	min-height: 40px;
	margin: 4px;
}

/* Addresses and account details retain natural labels and usable field columns. */
.woocommerce-account .woocommerce-Address-title { align-items: flex-start; }
.woocommerce-account .woocommerce-Address-title h2,
.woocommerce-account .woocommerce-Address-title .edit {
	min-width: 0;
	word-break: normal;
	overflow-wrap: normal;
}
.woocommerce-account .woocommerce-Address-title h2 { font-size: clamp(20px, 2vw, 24px); line-height: 1.15; }
.woocommerce-account .woocommerce-Address-title .edit { flex: 0 0 auto; white-space: nowrap; }
.woocommerce-account .woocommerce-Address address { overflow-wrap: anywhere; }
.woocommerce-account .woocommerce-EditAccountForm {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: start;
	gap: 16px 24px;
}
.woocommerce-account .woocommerce-EditAccountForm .form-row {
	float: none;
	width: auto;
	min-width: 0;
	margin: 0;
}
.woocommerce-account .woocommerce-EditAccountForm .form-row-wide,
.woocommerce-account .woocommerce-EditAccountForm fieldset,
.woocommerce-account .woocommerce-EditAccountForm > :is(button, .button) { grid-column: 1 / -1; }
.woocommerce-account .woocommerce-EditAccountForm label,
.woocommerce-account .woocommerce-EditAccountForm legend { color: #dce3e9; }
.woocommerce-account .woocommerce-EditAccountForm input { box-sizing: border-box; width: 100%; }

@media (max-width: 1100px) {
	.woocommerce-account .woocommerce:has(> .account-navigation-wrap) {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "navigation" "content";
	}
}
@media (max-width: 767px) {
	.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table {
		width: 100%;
		min-width: 0;
	}
	.woocommerce-account .woocommerce-MyAccount-content:has(.woocommerce-orders-table) { overflow: visible; }
	.woocommerce-account .woocommerce-orders-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		clip-path: inset(50%);
		white-space: nowrap;
		border: 0;
	}
	.woocommerce-account .woocommerce-orders-table,
	.woocommerce-account .woocommerce-orders-table tbody,
	.woocommerce-account .woocommerce-orders-table tr { display: block; }
	.woocommerce-account .woocommerce-orders-table tr {
		margin: 0 0 12px;
		border: 1px solid #28313b;
		background: #0e1217;
	}
	.woocommerce-account .woocommerce-orders-table td,
	.woocommerce-account .woocommerce-orders-table td:is(.woocommerce-orders-table__cell-order-number, .woocommerce-orders-table__cell-order-date, .woocommerce-orders-table__cell-order-status, .woocommerce-orders-table__cell-order-total) {
		display: grid;
		grid-template-columns: minmax(84px, 30%) minmax(0, 1fr);
		align-items: center;
		gap: 8px;
		width: 100%;
		padding: 10px 12px;
		border: 0;
		border-bottom: 1px solid #28313b;
		white-space: normal;
	}
	.woocommerce-account .woocommerce-orders-table td::before {
		content: attr(data-title);
		color: #9eabb8;
		font-size: 12px;
		font-weight: 700;
		line-height: 1.35;
		letter-spacing: .04em;
		text-transform: uppercase;
	}
	.woocommerce-account .woocommerce-orders-table td.woocommerce-orders-table__cell-order-number a,
	.woocommerce-account .woocommerce-orders-table td.woocommerce-orders-table__cell-order-total .woocommerce-Price-amount { white-space: nowrap; }
	.woocommerce-account .woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
	}
	.woocommerce-account .woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions::before { flex: 0 0 100%; }
	.woocommerce-account .woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions .button { width: auto; margin: 0; }
	.woocommerce-account .woocommerce-EditAccountForm { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.woocommerce-account .woocommerce-EditAccountForm .form-row-wide,
	.woocommerce-account .woocommerce-EditAccountForm fieldset,
	.woocommerce-account .woocommerce-EditAccountForm > :is(button, .button) { grid-column: auto; }
}

@media (max-width: 380px) {
	.woocommerce-account .woocommerce-orders-table td { grid-template-columns: minmax(74px, 29%) minmax(0, 1fr); }
}

/* C02-08R10: account readability, aligned empty states, and product faction parity. */
body.woocommerce-account .site-main .woocommerce:has(> .account-navigation-wrap) {
	width: min(1180px, calc(100% - 48px));
	grid-template-columns: minmax(248px, 272px) minmax(0, 1fr);
	gap: clamp(24px, 3vw, 40px);
}
.woocommerce-account .account-navigation-wrap .r9-identity,
.woocommerce-account .account-navigation-wrap > :not(.woocommerce-MyAccount-navigation) {
	max-width: 100%;
}
.woocommerce-account .account-navigation-wrap :where([class*="email"], .account-user-email, .user-email) {
	min-width: 0;
	overflow-wrap: anywhere;
}
.woocommerce-account .woocommerce-MyAccount-content .ls-alignment-dashboard__title {
	max-width: 100%;
	font-size: clamp(28px, 3.1vw, 44px);
	overflow-wrap: anywhere;
	word-break: normal;
}
.ls-alignment-dashboard__identity-emblem {
	flex: 0 0 34px;
	width: 34px;
	height: 34px;
	object-fit: contain;
}
.ls-alignment-dashboard__identity.is-registered {
	border-color: rgba(255, 190, 69, .5);
	background: rgba(195, 148, 69, .1);
}
.ls-alignment-dashboard__metrics { grid-template-columns: repeat(2, minmax(230px, 1fr)); }
.ls-alignment-dashboard__metric-label,
.ls-alignment-dashboard__metric-value--link,
.ls-alignment-dashboard__metric-link,
.ls-alignment-dashboard__kicker,
.ls-alignment-dashboard__panel h3 {
	word-break: normal;
	overflow-wrap: normal;
}
.ls-alignment-dashboard__metric-label,
.ls-alignment-dashboard__kicker { white-space: nowrap; }
.ls-alignment-dashboard__metric-value--link { font-size: clamp(18px, 2vw, 22px); }
.ls-alignment-dashboard__metric-link { justify-content: space-between; width: 100%; }
.ls-alignment-dashboard__panel-heading { align-items: center; }
.ls-alignment-dashboard__panel-heading > div {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px 16px;
	min-width: 0;
}
.ls-alignment-dashboard__panel-heading .ls-alignment-dashboard__kicker { margin: 0; }

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table {
	width: 100%;
	min-width: 700px;
	table-layout: auto;
}
.woocommerce-account .woocommerce-orders-table th,
.woocommerce-account .woocommerce-orders-table td { line-height: 1.45; }
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table td {
	word-break: normal;
	overflow-wrap: normal;
}
.woocommerce-account .woocommerce-orders-table th:nth-child(1),
.woocommerce-account .woocommerce-orders-table td.woocommerce-orders-table__cell-order-number { width: 11%; }
.woocommerce-account .woocommerce-orders-table th:nth-child(2),
.woocommerce-account .woocommerce-orders-table td.woocommerce-orders-table__cell-order-date { width: 22%; }
.woocommerce-account .woocommerce-orders-table th:nth-child(3),
.woocommerce-account .woocommerce-orders-table td.woocommerce-orders-table__cell-order-status { width: 18%; }
.woocommerce-account .woocommerce-orders-table th:nth-child(4),
.woocommerce-account .woocommerce-orders-table td.woocommerce-orders-table__cell-order-total { width: 21%; }
.woocommerce-account .woocommerce-orders-table th:nth-child(5),
.woocommerce-account .woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions { width: 28%; }
.woocommerce-account .woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions {
	display: table-cell;
	vertical-align: middle;
	white-space: normal;
}
.woocommerce-account .woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions .button {
	display: inline-flex;
	flex: 0 0 auto;
	width: auto;
	min-width: 68px;
	min-height: 44px;
	margin: 4px 8px 4px 0;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 76px;
	padding: 16px 18px;
}
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info .button {
	float: none;
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	min-height: 44px;
	margin: 0;
}

.woocommerce-account .woocommerce-Addresses .woocommerce-Address {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	text-align: left;
}
.woocommerce-account .woocommerce-Address-title {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 10px;
	text-align: left;
}
.woocommerce-account .woocommerce-Address-title :is(h2, .edit),
.woocommerce-account .woocommerce-Address address,
.woocommerce-account .woocommerce-Address .lsc-address-equivalent {
	width: 100%;
	margin-inline: 0;
	text-align: left;
}
.woocommerce-account .woocommerce-Address-title .edit { order: 2; }
.woocommerce-account .woocommerce-Address .lsc-address-equivalent {
	margin-top: 16px;
	color: #b8c3cd;
	line-height: 1.6;
}

.woocommerce-account .woocommerce-EditAccountForm label,
.woocommerce-account .woocommerce-EditAccountForm legend,
.woocommerce-account .woocommerce-EditAccountForm em {
	color: #dce3e9;
}
.woocommerce-account .woocommerce-EditAccountForm label,
.woocommerce-account .woocommerce-EditAccountForm legend {
	font-weight: 600;
}
.woocommerce-account .woocommerce-EditAccountForm .description,
.woocommerce-account .woocommerce-EditAccountForm em {
	color: #b8c3cd;
	opacity: 1;
}
.woocommerce-account .woocommerce-EditAccountForm .description { display: block; margin-top: 6px; line-height: 1.5; }
.woocommerce-account .woocommerce-EditAccountForm em { font-style: normal; }
.woocommerce-account .woocommerce-EditAccountForm fieldset {
	padding: 20px 24px 24px;
	border: 1px solid #5d6a77;
}

.lsc-commerce-v2 .ls-product-faction .ls-faction-badge--amber-core,
.lsc-commerce-v2 .ls-product-faction .ls-faction-badge--neutral {
	border: 1px solid #d8a43f;
	background: rgba(216, 164, 63, .12);
	color: #ffd878;
}
.lsc-commerce-v2 .ls-product-faction .ls-faction-badge {
	min-height: 30px;
	padding: 7px 14px;
	font-family: Inter, sans-serif;
	font-size: 11px;
	line-height: 1;
	letter-spacing: .1em;
}

@media (max-width: 960px) {
	body.woocommerce-account .site-main .woocommerce:has(> .account-navigation-wrap) {
		width: min(100%, calc(100% - 32px));
		grid-template-columns: minmax(0, 1fr);
	}
	.woocommerce-account .woocommerce-MyAccount-content:has(.woocommerce-orders-table) {
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
}
@media (max-width: 767px) {
	.ls-alignment-dashboard__metrics { grid-template-columns: minmax(0, 1fr); }
	.ls-alignment-dashboard__metric-label,
	.ls-alignment-dashboard__kicker { white-space: normal; }
	.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table { min-width: 0; }
	.woocommerce-account .woocommerce-orders-table th:nth-child(n),
	.woocommerce-account .woocommerce-orders-table td:is(.woocommerce-orders-table__cell-order-number, .woocommerce-orders-table__cell-order-date, .woocommerce-orders-table__cell-order-status, .woocommerce-orders-table__cell-order-total, .woocommerce-orders-table__cell-order-actions) {
		width: 100%;
	}
	.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info {
		flex-direction: column;
		align-items: flex-start;
	}
	.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info .button { width: 100%; }
	.woocommerce-account .woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions { display: flex; }
}

/* C02-08R11: constrain account content to its actual column, not the viewport. */
.woocommerce-account .woocommerce-MyAccount-content,
.ls-alignment-dashboard,
.ls-alignment-dashboard__body,
.ls-alignment-dashboard__metrics,
.ls-alignment-dashboard__metric,
.ls-alignment-dashboard__panel,
.ls-alignment-dashboard__panel-heading,
.ls-alignment-dashboard__row { min-width: 0; max-width: 100%; box-sizing: border-box; }
.ls-alignment-dashboard__metric-value--link,
.ls-alignment-dashboard__metric-link { min-width: 0; max-width: 100%; overflow-wrap: anywhere; white-space: normal; }
.ls-alignment-dashboard__metric-link { display: inline-flex; flex-wrap: wrap; }
.ls-alignment-dashboard__metric-link > span { flex: 0 0 auto; }
.ls-alignment-dashboard__row { grid-template-columns: minmax(0, 1fr) minmax(72px, 1.5fr) minmax(4ch, 4.5rem); gap: 8px 12px; }
.ls-alignment-dashboard__row-name { min-width: 0; flex-wrap: wrap; }
.ls-alignment-dashboard__row-value { display: block; min-width: 4ch; justify-self: end; text-align: right; }
.ls-alignment-dashboard__row-bar { min-width: 0; width: 100%; }

@container (max-width: 560px) {
	.ls-alignment-dashboard__metrics { grid-template-columns: minmax(0, 1fr); }
	.ls-alignment-dashboard__panel-heading { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
	.ls-alignment-dashboard__panel-heading a { justify-self: start; }
	.ls-alignment-dashboard__row { grid-template-columns: minmax(0, 1fr) max-content; gap: 8px 12px; }
	.ls-alignment-dashboard__row-bar { grid-column: 1 / -1; grid-row: 2; }
	.ls-alignment-dashboard__row-value { grid-column: 2; grid-row: 1; }
}

/* The Account Addresses overview is two saved defaults, not the Checkout form. */
.woocommerce-account .woocommerce-Addresses {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: stretch;
	justify-items: stretch;
	width: 100%;
	min-width: 0;
	gap: 16px;
}
.woocommerce-account .woocommerce-Addresses .woocommerce-Address {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	max-width: none;
	float: none;
}
.woocommerce-account .woocommerce-Address-title { min-width: 0; }
.woocommerce-account .woocommerce-Address-title :is(h2, .edit) { min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.woocommerce-account .woocommerce-Address-title .edit { flex: 0 1 auto; }
.woocommerce-account .woocommerce-Address address { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }

/* Stack the specific Orders email-confirmation notice by its action control. */
.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-info:has(> a.button) {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: start;
	justify-items: start;
	gap: 12px;
}
.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-info:has(> a.button) > a.button {
	grid-row: 2;
	width: auto;
	max-width: 100%;
	justify-self: start;
	margin: 0;
	white-space: normal;
}

/* Make the exact core Edit Account form readable through theme/plugin cascades. */
.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm,
.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm .form-row,
.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm fieldset { opacity: 1 !important; }
.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm :is(label, legend) {
	color: #f5f7f8 !important;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
}
.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm :is(em, .description) {
	color: #dce3e9 !important;
	opacity: 1 !important;
	font-size: 14px;
	font-style: normal;
	line-height: 1.5;
}
.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm .required { color: #ff9ca8; }

/* Faction guide: one readable list, with an explicit state beside each rule. */
.ls-faction-system__earning { margin-top: 32px; }
.ls-faction-system__earning > h3 { margin: 0 0 10px; color: #f5f7f8; font-size: clamp(24px, 3vw, 32px); }
.ls-faction-system__earning-note { max-width: 70ch; margin: 0 0 18px; color: #c6d0dc; line-height: 1.6; }
.ls-faction-system__earning-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0; }
.ls-faction-system__earning-item { min-width: 0; padding: 16px 0; border-top: 1px solid #28313b; }
.ls-faction-system__earning-item dt { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 6px 12px; color: #f5f7f8; font-weight: 600; }
.ls-faction-system__earning-item dt > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.ls-faction-system__earning-item dt strong { white-space: nowrap; text-align: right; }
.ls-faction-system__earning-status { grid-column: 1 / -1; justify-self: start; color: #d6bd7b; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.ls-faction-system__earning-status.is-active { color: #71d9ec; }
.ls-faction-system__earning-item dd { margin: 10px 0 0; color: #b8c3cd; font-size: 14px; line-height: 1.55; }
.ls-faction-system__earning-item dd p { margin: 0 0 6px; }
.ls-faction-system__earning-item dd p:last-child { margin-bottom: 0; }
.ls-faction-system__earning-item dd b { color: #dce3e9; }
@media (max-width: 620px) {
	.ls-faction-system__earning-list { grid-template-columns: minmax(0, 1fr); }
	.ls-faction-system__earning-item dt { grid-template-columns: minmax(0, 1fr) auto; }
}
