.rp-auth-page {
	min-height: calc(100vh - 48px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--space-6);
}

.rp-auth-card {
	width: 100%;
	max-width: 420px;
}

.rp-auth-card .at-card {
	padding: var(--space-8);
}

.rp-auth-logo {
	display: block;
	margin: 0 auto var(--space-5);
	max-width: 180px;
	height: auto;
}

.rp-auth-card__title {
	text-align: center;
	margin-bottom: var(--space-2);
}

.rp-auth-card__sub {
	text-align: center;
	margin-bottom: var(--space-5);
}

.rp-auth-form {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
}

.rp-auth-form .at-btn {
	width: 100%;
}

.rp-auth-help {
	text-align: center;
	margin-top: var(--space-5);
}

.rp-auth-forgot {
	text-align: center;
	margin-top: var(--space-4);
}

.rp-loading-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-3);
	padding: var(--space-10);
	color: var(--text-secondary);
}

.rp-detail-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: var(--space-4);
	margin-top: var(--space-5);
}

.rp-detail-grid .at-card--wide {
	grid-column: 1 / -1;
}

.rp-ds .rp-deal-card__chip .collection-design-badge {
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
}

.rp-kv__row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: var(--space-3);
	padding: var(--space-2) 0;
	border-bottom: 1px solid var(--border-default);
}

.rp-kv__row:last-child {
	border-bottom: none;
}

.rp-kv__row strong {
	font-weight: var(--weight-semibold);
}

.rp-buyer-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.rp-buyer-list li {
	padding: var(--space-3) 0;
	border-bottom: 1px solid var(--border-default);
}

.rp-buyer-list li:last-child {
	border-bottom: none;
}

.rp-stage-list {
	list-style: none;
	padding: 0;
	margin: var(--space-3) 0 0;
}

.rp-stage-list li {
	display: flex;
	justify-content: space-between;
	gap: var(--space-3);
	padding: var(--space-2) 0;
	font-size: var(--text-sm);
}

.rp-progress-block {
	margin-bottom: var(--space-4);
}

.rp-progress-block:last-child {
	margin-bottom: 0;
}

.rp-table-row-click {
	cursor: pointer;
}

.rp-tier-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: var(--space-4);
	margin-top: var(--space-4);
}

.rp-ladder {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
}

.rp-ladder-intro {
	margin: 0 0 var(--space-5);
	max-width: 52rem;
	font-size: var(--text-sm);
	line-height: 1.55;
	color: var(--text-secondary);
}

.rp-allstars-communities-intro {
	margin: 0 0 var(--space-4);
	max-width: 52rem;
	font-size: var(--text-sm);
	line-height: 1.55;
	color: var(--text-secondary);
}

.rp-allstars-communities {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

.rp-allstars-community {
	display: flex;
	align-items: flex-start;
	gap: var(--space-4);
	padding: var(--space-4);
	border: 1px solid var(--border-default);
	border-radius: var(--radius-md);
	background: var(--surface-elevated);
}

.rp-allstars-community__medallion {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 4px;
	background: var(--brand-navy);
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 50%;
}

.rp-allstars-community__medallion .rp-tier-stars {
	width: 32px;
	height: 32px;
}

.rp-allstars-community__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-1);
	min-width: 0;
}

.rp-allstars-community__name {
	font-size: var(--text-base);
	font-weight: var(--weight-semibold);
	color: var(--text-primary);
}

.rp-allstars-community__sales {
	font-size: var(--text-sm);
	color: var(--text-secondary);
}

.rp-allstars-community__bonus {
	font-size: var(--text-sm);
	font-weight: var(--weight-medium);
	color: var(--brand-accent);
}

.rp-allstars-community__next {
	margin: var(--space-1) 0 0;
	font-size: var(--text-xs);
	color: var(--text-tertiary);
}

.rp-allstars-community__tier .at-badge {
	margin-top: 0;
}

.rp-lb-thanks {
	display: flex;
	align-items: center;
	gap: var(--space-4);
	margin: 0 0 var(--space-5);
	padding: var(--space-4) var(--space-5);
	border: 1px solid color-mix(in srgb, var(--brand-accent) 28%, var(--border-default));
	border-radius: var(--radius-lg);
	background:
		radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--brand-accent) 14%, transparent) 0%, transparent 60%),
		linear-gradient(135deg, color-mix(in srgb, var(--brand-navy) 6%, var(--surface-elevated)) 0%, var(--surface-elevated) 100%);
	box-shadow: 0 2px 8px color-mix(in srgb, var(--brand-navy) 6%, transparent);
}

.rp-lb-thanks__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: var(--radius-md);
	background: color-mix(in srgb, var(--brand-accent) 18%, var(--surface-elevated));
	border: 1px solid color-mix(in srgb, var(--brand-accent) 35%, var(--border-default));
}

.rp-lb-thanks__icon svg {
	width: 22px;
	height: 22px;
	fill: var(--brand-navy);
}

.rp-lb-thanks__title {
	margin: 0;
	font-size: var(--text-base);
	font-weight: var(--weight-bold);
	color: var(--brand-navy, var(--text-primary));
	line-height: 1.3;
}

.rp-lb-thanks__text {
	margin: var(--space-1) 0 0;
	max-width: 60rem;
	font-size: var(--text-sm);
	line-height: 1.5;
	color: var(--text-secondary);
}

.rp-lb-podium-section {
	margin-bottom: var(--space-5);
}

.rp-lb-podium-section .rp-podium--medal {
	margin-bottom: 0;
	border: none;
	background:
		radial-gradient(80% 60% at 50% 0%, color-mix(in srgb, var(--brand-accent) 10%, transparent) 0%, transparent 70%),
		transparent;
}

.rp-lb-podium-section .rp-podium--medal::after {
	display: none;
}

.rp-ladder-tier--current {
	border-color: color-mix(in srgb, var(--rp-tier-accent) 55%, var(--border-default));
	box-shadow:
		0 0 0 2px color-mix(in srgb, var(--rp-tier-accent) 22%, transparent),
		0 4px 16px color-mix(in srgb, var(--rp-tier-accent) 14%, transparent),
		0 2px 8px color-mix(in srgb, var(--brand-navy) 10%, transparent);
}

.rp-ladder-tier--achieved {
	opacity: 0.96;
}

.rp-ladder-tier--upcoming {
	opacity: 0.85;
}

.rp-ladder-tier--upcoming .rp-ladder-tier__banner {
	filter: grayscale(0.55);
	background:
		linear-gradient(135deg,
			color-mix(in srgb, var(--rp-tier-accent) 38%, var(--brand-navy)) 0%,
			color-mix(in srgb, var(--rp-tier-accent) 18%, var(--brand-navy)) 100%);
}

.rp-ladder-tier--upcoming .rp-ladder-tier__body {
	background: color-mix(in srgb, var(--surface-subtle) 40%, var(--surface-elevated));
}

.rp-ladder-tier__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	margin-left: var(--space-2);
	padding: 0.15rem 0.55rem;
	font-size: var(--text-xs);
	font-weight: var(--weight-semibold);
	letter-spacing: var(--tracking-wide);
	text-transform: uppercase;
	border-radius: 999px;
	white-space: nowrap;
}

.rp-ladder-tier__badge--current {
	color: #fff;
	background: rgba(255, 255, 255, 0.22);
	border: 1px solid rgba(255, 255, 255, 0.45);
}

.rp-ladder-tier__badge--done {
	color: #fff;
	background: color-mix(in srgb, var(--brand-success) 78%, transparent);
	border: 1px solid rgba(255, 255, 255, 0.4);
}

.rp-ladder-tier__badge-check {
	font-size: 0.8em;
	line-height: 1;
}

.rp-ladder-tier__badge--locked {
	color: rgba(255, 255, 255, 0.85);
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.28);
}

.rp-ladder-current__progress {
	margin: var(--space-3) 0 0;
	padding-top: var(--space-3);
	font-size: var(--text-sm);
	font-weight: var(--weight-semibold);
	line-height: 1.5;
	color: var(--text-primary);
	border-top: 1px solid var(--border-default);
}

.rp-allstars-current {
	margin-bottom: var(--space-4);
}

.rp-allstars-current .rp-ladder-tier {
	margin-top: var(--space-4);
}

.rp-ladder-tier {
	--rp-tier-accent: var(--brand-accent);
	overflow: hidden;
	border: 1px solid var(--border-default);
	border-radius: var(--radius-md);
	background: var(--surface-elevated);
	box-shadow: 0 2px 8px color-mix(in srgb, var(--brand-navy) 8%, transparent);
}

.rp-ladder-tier--rookie { --rp-tier-accent: color-mix(in srgb, var(--brand-accent) 55%, var(--brand-navy)); }
.rp-ladder-tier--rising_star { --rp-tier-accent: color-mix(in srgb, var(--brand-accent) 70%, var(--brand-navy)); }
.rp-ladder-tier--pro { --rp-tier-accent: color-mix(in srgb, var(--brand-accent) 85%, var(--brand-navy)); }
.rp-ladder-tier--captain { --rp-tier-accent: var(--brand-accent); }
.rp-ladder-tier--all_star { --rp-tier-accent: var(--brand-accent); }

.rp-ladder-tier--all_star {
	border-color: color-mix(in srgb, var(--brand-accent) 45%, var(--border-default));
	box-shadow:
		0 4px 16px color-mix(in srgb, var(--brand-accent) 18%, transparent),
		0 2px 8px color-mix(in srgb, var(--brand-navy) 10%, transparent);
}

.rp-ladder-tier__banner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-3);
	padding: var(--space-4) var(--space-5);
	color: #fff;
	background:
		radial-gradient(120% 160% at 0% 0%, rgba(255, 255, 255, 0.14) 0%, transparent 55%),
		linear-gradient(135deg,
			color-mix(in srgb, var(--rp-tier-accent) 88%, var(--brand-navy)) 0%,
			color-mix(in srgb, var(--rp-tier-accent) 42%, var(--brand-navy)) 100%);
	border-bottom: 1px solid color-mix(in srgb, var(--rp-tier-accent) 35%, var(--brand-navy));
}

.rp-ladder-tier__level {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	padding: var(--space-2);
	background: var(--brand-navy);
	border: 1px solid rgba(255, 255, 255, 0.35);
}

.rp-ladder-tier__level .rp-tier-stars {
	width: 36px;
	height: 36px;
}

.rp-tier-stars {
	display: block;
	width: 100%;
	height: 100%;
}

.rp-tier-stars path {
	fill: #fff;
	stroke: rgba(255, 255, 255, 0.4);
	stroke-width: 1.5;
	paint-order: stroke fill;
}

.rp-tier-level-num {
	font-size: 0.6rem;
	font-weight: var(--weight-bold);
	letter-spacing: var(--tracking-wide);
	line-height: 1;
	color: rgba(255, 255, 255, 0.85);
}

.rp-ladder-tier__title-block {
	flex: 1 1 8rem;
	min-width: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-2);
}

.rp-ladder-tier__name {
	display: block;
	font-size: var(--text-xl);
	font-weight: var(--weight-bold);
	line-height: 1.15;
	color: #fff;
	letter-spacing: var(--tracking-tight, -0.02em);
}

.rp-ladder-tier__closings {
	flex-shrink: 0;
	margin-left: auto;
	padding: var(--space-2) var(--space-4);
	text-align: center;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.35);
	min-width: 7.5rem;
}

.rp-ladder-tier__closings-label {
	display: block;
	font-size: var(--text-caps);
	font-weight: var(--weight-semibold);
	letter-spacing: var(--tracking-wide);
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.82);
	margin-bottom: var(--space-1);
}

.rp-ladder-tier__closings-value {
	display: block;
	font-size: var(--text-lg);
	font-weight: var(--weight-bold);
	line-height: 1.1;
	color: #fff;
}

.rp-ladder-tier__body {
	padding: var(--space-4) var(--space-5) var(--space-5);
}

.rp-ladder-tier__stats {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	margin-bottom: var(--space-1);
}

.rp-ladder-tier__stats .rp-tier-card__chip {
	font-size: var(--text-sm);
}

.rp-ladder-tier__benefits {
	margin-top: var(--space-4);
	padding-top: var(--space-4);
	border-top: 1px solid var(--border-default);
}

.rp-ladder-tier__benefits-title {
	margin: 0 0 var(--space-3);
	font-size: var(--text-sm);
	font-weight: var(--weight-bold);
	letter-spacing: var(--tracking-wide);
	text-transform: uppercase;
	color: var(--brand-navy, var(--text-primary));
}

.rp-ladder-tier__perks {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

.rp-ladder-tier__perk {
	padding: 0;
	border: none;
}

.rp-ladder-tier__perk-title {
	display: block;
	font-size: var(--text-sm);
	font-weight: var(--weight-semibold);
	color: var(--brand-navy, var(--text-primary));
	margin-bottom: var(--space-1);
}

.rp-ladder-tier__perk-detail {
	display: block;
	font-size: var(--text-sm);
	color: var(--text-secondary);
	line-height: 1.5;
}

@media (max-width: 640px) {
	.rp-ladder-tier__banner {
		flex-direction: column;
		align-items: stretch;
	}

	.rp-ladder-tier__closings {
		margin-left: 0;
		width: 100%;
	}

	.rp-ladder-tier__title-block {
		flex-basis: auto;
	}
}

.rp-tier-name {
	font-size: var(--text-lg);
	font-weight: var(--weight-semibold);
	margin: var(--space-2) 0;
}

.rp-fade-in {
	animation: rpFadeIn 0.35s ease-out;
}

@keyframes rpFadeIn {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: translateY(0); }
}

.rp-hero {
	border-radius: var(--radius-lg);
	padding: var(--space-6);
	margin-bottom: var(--space-5);
	color: #fff;
	background: linear-gradient(135deg, #0c2340 0%, #1a4a7a 100%);
	min-height: 120px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

.rp-hero__company {
	font-size: var(--text-base);
	font-weight: var(--weight-semibold);
	color: #fff;
	opacity: 0.92;
	margin: var(--space-2) 0 0;
}

.rp-hero__tagline {
	font-size: var(--text-sm);
	opacity: 0.9;
	margin: var(--space-2) 0 0;
}

.rp-kpi-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: var(--space-3);
	margin-bottom: var(--space-5);
}

.rp-kpi-card {
	text-align: left;
}

.rp-kpi-card__value {
	font-size: var(--text-xl);
	font-weight: var(--weight-bold);
	line-height: 1.2;
}

.rp-kpi-card__label {
	font-size: var(--text-sm);
	color: var(--text-tertiary);
	margin-top: var(--space-1);
}

.rp-activity-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.rp-activity-list li {
	padding: var(--space-3) 0;
	border-bottom: 1px solid var(--border-default);
	font-size: var(--text-sm);
}

.rp-activity-list li:last-child {
	border-bottom: none;
}

.rp-deal-thumb {
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: var(--radius-sm);
	background: var(--surface-subtle);
}

.rp-photo-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: var(--space-3);
	margin-top: var(--space-4);
}

.rp-photo-grid--cover {
	grid-template-columns: 1fr;
	max-width: 480px;
}

.rp-photo-grid--cover .rp-photo-grid__item--cover img {
	aspect-ratio: 16/10;
	border-radius: var(--radius-md);
}

.rp-photo-grid img {
	width: 100%;
	aspect-ratio: 4/3;
	object-fit: cover;
	border-radius: var(--radius-sm);
	cursor: pointer;
}

.rp-deal-hero {
	width: 100%;
	max-height: 280px;
	object-fit: cover;
	border-radius: var(--radius-md);
	margin-bottom: var(--space-4);
}

.rp-specs-strip {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3);
	margin: var(--space-3) 0;
	font-size: var(--text-sm);
}

.rp-specs-strip span {
	padding: var(--space-1) var(--space-2);
	background: var(--surface-subtle);
	border-radius: var(--radius-sm);
	font-weight: var(--weight-bold, 700);
}

.rp-lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	background: rgba(0, 0, 0, 0.85);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--space-4);
}

.rp-lightbox img {
	max-width: 100%;
	max-height: 90vh;
	border-radius: var(--radius-sm);
}

.rp-lightbox__close {
	position: absolute;
	top: var(--space-4);
	right: var(--space-4);
	color: #fff;
	background: transparent;
	border: none;
	font-size: 2rem;
	cursor: pointer;
}

.rp-ring-wrap {
	display: flex;
	align-items: center;
	gap: var(--space-4);
	margin: var(--space-3) 0;
}

.rp-ring {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: conic-gradient(var(--brand-accent) calc(var(--pct) * 1%), var(--surface-subtle) 0);
	display: flex;
	align-items: center;
	justify-content: center;
}

.rp-ring__inner {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--surface-elevated);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: var(--text-sm);
	font-weight: var(--weight-semibold);
}

.rp-leaderboard {
	list-style: none;
	padding: 0;
	margin: var(--space-2) 0 0;
}

.rp-leaderboard li {
	display: flex;
	justify-content: space-between;
	padding: var(--space-2) 0;
	font-size: var(--text-sm);
	border-bottom: 1px solid var(--border-default);
}

.rp-leaderboard li.is-self {
	font-weight: var(--weight-semibold);
}

.rp-profile-form {
	max-width: 28rem;
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
}

.rp-profile-avatar {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	object-fit: cover;
	background: var(--surface-subtle);
}

.rp-collateral-group {
	margin-bottom: var(--space-5);
}

.rp-collateral-group h3 {
	margin-bottom: var(--space-2);
}

.rp-collateral-files {
	list-style: none;
	padding: 0;
	margin: 0;
}

.rp-collateral-files li {
	padding: var(--space-2) 0;
	border-bottom: 1px solid var(--border-default);
}

.rp-page-header {
	margin-bottom: var(--space-5);
}

.rp-page-header__title {
	font-size: var(--text-2xl);
	font-weight: var(--weight-bold);
	color: var(--text-primary);
	margin: var(--space-2) 0 0;
	line-height: 1.2;
}

.rp-page-header__title:focus {
	outline: none;
}

.rp-page-header__title:focus-visible {
	outline: 2px solid var(--brand-accent);
	outline-offset: 4px;
}

.rp-page-header__meta {
	margin: var(--space-2) 0 0;
	font-size: var(--text-sm);
	color: var(--text-secondary);
}

.rp-spec-homes-disclaimer {
	margin: 0;
	padding: var(--space-4);
	border-top: 1px solid var(--border-default);
}

.rp-spec-homes-disclaimer em {
	font-style: italic;
}

.rp-spec-homes-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: var(--space-4);
	padding: var(--space-4);
	border-bottom: 1px solid var(--border-default);
	background: var(--surface-subtle);
}

.rp-spec-homes-toolbar__field {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
	min-width: 160px;
	flex: 1 1 160px;
	max-width: 240px;
}

.rp-spec-homes-toolbar__label {
	font-size: var(--text-sm);
	font-weight: var(--weight-semibold);
	color: var(--text-secondary);
}

.rp-spec-homes-toolbar__count {
	margin-left: auto;
	font-size: var(--text-sm);
	color: var(--text-secondary);
	white-space: nowrap;
}

.rp-spec-homes-empty {
	padding: var(--space-6) var(--space-4);
	text-align: center;
	color: var(--text-secondary);
}

.rp-spec-homes-table .rp-spec-homes-sort {
	padding: 0;
	vertical-align: bottom;
}

.rp-spec-homes-sort__btn {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: var(--space-1);
	width: 100%;
	padding: var(--space-3) var(--space-4);
	font: inherit;
	font-size: var(--text-sm);
	font-weight: var(--weight-semibold);
	color: var(--text-secondary);
	text-align: left;
	background: transparent;
	border: 0;
	cursor: pointer;
}

.rp-spec-homes-sort.is-num .rp-spec-homes-sort__btn {
	justify-content: flex-end;
	text-align: right;
}

.rp-spec-homes-sort__btn:hover {
	color: var(--text-primary);
}

.rp-spec-homes-sort.is-active .rp-spec-homes-sort__btn {
	color: var(--brand-navy, var(--text-primary));
}

.rp-spec-homes-sort__ind {
	font-size: 0.85em;
	line-height: 1;
	color: var(--brand-accent);
}

.rp-spec-homes-table .rp-spec-homes-design .collection-design-badge,
.rp-spec-homes-table .rp-spec-homes-design .at-coll-chip {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	box-sizing: border-box;
	width: 5.75rem;
	max-width: 5.75rem;
}

@media (max-width: 640px) {
	.rp-spec-homes-toolbar__count {
		width: 100%;
		margin-left: 0;
	}
}

.rp-allstars-page .rp-page-header__meta {
	font-weight: var(--weight-bold);
	color: var(--brand-navy, var(--text-primary));
}

.rp-home-topbar {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--space-4);
	margin-bottom: var(--space-5);
}

.rp-home-topbar__greeting {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
	flex: 1;
}

.rp-home-topbar__greeting .at-eyebrow {
	display: block;
}

.rp-home-topbar__title {
	display: inline-block;
	width: fit-content;
	max-width: 100%;
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: var(--weight-bold);
	margin: var(--space-2) 0 0;
	color: var(--brand-navy, var(--text-primary));
	line-height: 1.15;
}

.rp-home-topbar__title:focus {
	outline: none;
}

.rp-home-topbar__title:focus-visible {
	outline: 2px solid var(--brand-accent);
	outline-offset: 4px;
}

.rp-home-topbar__company {
	margin: var(--space-2) 0 0;
	font-weight: var(--weight-semibold);
	color: var(--text-secondary);
}

.rp-home-tierbadge {
	--rp-tier-accent: var(--brand-accent);
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	gap: var(--space-3);
	padding: var(--space-3) var(--space-4);
	margin: 0;
	font: inherit;
	text-align: left;
	color: #fff;
	background: linear-gradient(
		135deg,
		var(--brand-navy) 0%,
		color-mix(in srgb, var(--rp-tier-accent) 45%, var(--brand-navy)) 100%
	);
	border: 1px solid color-mix(in srgb, var(--rp-tier-accent) 35%, var(--brand-navy));
	box-shadow: 0 4px 14px color-mix(in srgb, var(--brand-navy) 18%, transparent);
	cursor: pointer;
	transition:
		transform var(--duration-fast) var(--ease-out),
		box-shadow var(--duration-fast) var(--ease-out),
		border-color var(--duration-fast) var(--ease-out);
}

.rp-home-tierbadge:hover,
.rp-home-tierbadge:focus {
	transform: translateY(-2px);
	box-shadow: 0 8px 22px color-mix(in srgb, var(--brand-navy) 24%, transparent);
	border-color: color-mix(in srgb, var(--rp-tier-accent) 55%, var(--brand-navy));
	outline: none;
}

.rp-home-tierbadge:focus-visible {
	outline: 2px solid var(--brand-accent);
	outline-offset: 3px;
}

.rp-home-tierbadge--rookie { --rp-tier-accent: color-mix(in srgb, var(--brand-accent) 55%, var(--brand-navy)); }
.rp-home-tierbadge--rising_star { --rp-tier-accent: color-mix(in srgb, var(--brand-accent) 70%, var(--brand-navy)); }
.rp-home-tierbadge--pro { --rp-tier-accent: color-mix(in srgb, var(--brand-accent) 85%, var(--brand-navy)); }
.rp-home-tierbadge--captain { --rp-tier-accent: var(--brand-accent); }
.rp-home-tierbadge--all_star { --rp-tier-accent: var(--brand-accent); }

.rp-home-tierbadge__level {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 4px;
	background: var(--brand-navy);
	border: 2px solid rgba(255, 255, 255, 0.35);
}

.rp-home-tierbadge__meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.rp-home-tierbadge__eyebrow {
	font-size: var(--text-caps);
	font-weight: var(--weight-semibold);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.72);
	line-height: 1.2;
}

.rp-home-tierbadge__name {
	font-size: var(--text-base);
	font-weight: var(--weight-bold);
	line-height: 1.2;
	color: #fff;
}

.rp-home-tierbadge__chevron {
	flex-shrink: 0;
	font-size: 1.25rem;
	line-height: 1;
	color: rgba(255, 255, 255, 0.75);
}

.rp-home-stats {
	margin-bottom: var(--space-5);
}

.rp-stat-grid--3 {
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

@media (min-width: 900px) {
	.rp-stat-grid--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.rp-stat-tile-card--milestone .rp-stat-tile-card__body {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1;
}

.rp-home-milestone__track {
	display: block;
	height: 6px;
	margin-top: var(--space-3);
	background: var(--surface-sunken);
	overflow: hidden;
}

.rp-home-milestone__track .rp-stat-tile__fill {
	height: 100%;
	background: var(--brand-accent);
}

.rp-home-greeting {
	padding: var(--space-6);
	margin-bottom: var(--space-5);
	background: linear-gradient(135deg, var(--brand-navy) 0%, color-mix(in srgb, var(--rp-home-accent, var(--brand-accent)) 35%, var(--brand-navy)) 100%);
	color: #fff;
}

@media (max-width: 640px) {
	.rp-home-topbar {
		flex-direction: column;
	}

	.rp-home-tierbadge {
		width: 100%;
	}
}

.rp-reveal {
	opacity: 0;
	transform: translateY(14px);
	transition:
		opacity 0.5s cubic-bezier(0.2, 0.7, 0.2, 1),
		transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.rp-reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.rp-stat-tile-card {
	transition:
		transform var(--duration-fast) var(--ease-out),
		border-color var(--duration-fast) var(--ease-out),
		box-shadow var(--duration-fast) var(--ease-out);
}

.rp-stat-tile-card:hover {
	transform: translateY(-3px);
	border-color: color-mix(in srgb, var(--brand-accent) 40%, var(--border-default));
	box-shadow: 0 8px 20px color-mix(in srgb, var(--brand-navy) 10%, transparent);
}

.rp-stat-tile-card--milestone {
	border-color: color-mix(in srgb, var(--brand-accent) 45%, var(--border-default));
	background: color-mix(in srgb, var(--brand-accent) 8%, var(--surface-elevated));
}

.rp-stat-tile-card__value--text {
	font-size: var(--text-base);
	line-height: 1.35;
}

.rp-animate-bar .rp-stat-tile__fill,
.rp-animate-bar .rp-lb-vol__fill {
	width: 0;
	transition: width 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.rp-animate-bar.is-animated .rp-stat-tile__fill {
	width: calc(var(--pct, 0) * 1%);
}

.rp-animate-bar.is-animated .rp-lb-vol__fill {
	width: calc(var(--rp-vol-pct, 0) * 1%);
}

.rp-podium--medal {
	position: relative;
	align-items: flex-end;
	padding: var(--space-4) var(--space-4) 0;
	border-radius: var(--radius-lg);
	background:
		radial-gradient(80% 60% at 50% 0%, color-mix(in srgb, var(--brand-accent) 12%, transparent) 0%, transparent 70%),
		var(--surface-elevated);
	border: 1px solid var(--border-default);
	overflow: hidden;
}

.rp-podium--medal::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.08) 50%, transparent 60%);
	transform: translateX(-120%);
	animation: rpPodiumShine 4s ease-in-out infinite;
	pointer-events: none;
}

.rp-podium__slot--gold .rp-podium__pedestal {
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, transparent 28%),
		linear-gradient(180deg, color-mix(in srgb, var(--brand-accent) 55%, #fff) 0%, var(--brand-accent) 100%);
	border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.rp-podium__slot--silver .rp-podium__pedestal {
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, transparent 28%),
		linear-gradient(180deg, color-mix(in srgb, var(--brand-navy) 15%, #fff) 0%, color-mix(in srgb, var(--brand-navy) 35%, #ccc) 100%);
	border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.rp-podium__slot--bronze .rp-podium__pedestal {
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, transparent 28%),
		linear-gradient(180deg, color-mix(in srgb, var(--brand-warning) 40%, #fff) 0%, color-mix(in srgb, var(--brand-warning) 70%, var(--brand-navy)) 100%);
	border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.rp-podium--medal .rp-podium__slot {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 1;
	max-width: 180px;
	padding: var(--space-4) var(--space-3) 0;
	background: transparent;
	border: none;
	animation: rpPodiumRise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
	animation-delay: calc(var(--rp-podium-rank, 1) * 80ms);
}

.rp-podium__medal {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	font-size: var(--text-lg);
	font-weight: var(--weight-bold);
	color: var(--brand-navy);
	background: #fff;
	border: 2px solid color-mix(in srgb, var(--brand-accent) 50%, var(--brand-navy));
	border-radius: var(--radius-sm);
	box-shadow: 0 4px 12px color-mix(in srgb, var(--brand-navy) 15%, transparent);
}

.rp-podium__crown {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: var(--space-1);
	color: var(--brand-accent);
}

.rp-podium__crown svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
	filter: drop-shadow(0 2px 4px color-mix(in srgb, var(--brand-accent) 35%, transparent));
}

.rp-podium__slot--gold .rp-podium__medal {
	border-color: var(--brand-accent);
	color: var(--brand-accent);
}

.rp-podium__you,
.rp-lb-you {
	display: inline-block;
	margin-left: var(--space-2);
	padding: 2px var(--space-2);
	font-size: var(--text-caps);
	font-weight: var(--weight-bold);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--brand-navy);
	background: var(--brand-accent-soft);
	border: 1px solid color-mix(in srgb, var(--brand-accent) 40%, transparent);
}

.rp-podium__pedestal {
	display: block;
	width: 100%;
	margin-top: var(--space-3);
	height: calc(48px + var(--rp-podium-rank, 1) * 28px);
}

.rp-podium__slot--1 .rp-podium__pedestal { height: 120px; }
.rp-podium__slot--2 .rp-podium__pedestal { height: 88px; }
.rp-podium__slot--3 .rp-podium__pedestal { height: 64px; }

.rp-podium__slot.is-self {
	box-shadow: inset 0 0 0 2px var(--brand-accent);
}

.rp-lb-self {
	display: flex;
	align-items: center;
	gap: var(--space-4);
	padding: var(--space-4) var(--space-5);
	margin-bottom: var(--space-5);
	border-radius: var(--radius-lg);
	background: color-mix(in srgb, var(--brand-accent) 10%, var(--surface-elevated));
	border: 1px solid color-mix(in srgb, var(--brand-accent) 35%, var(--border-default));
	box-shadow: 0 4px 16px color-mix(in srgb, var(--brand-accent) 12%, transparent);
}

.rp-lb-self__rank {
	flex-shrink: 0;
	font-size: var(--text-3xl);
	font-weight: var(--weight-bold);
	color: var(--brand-accent);
	line-height: 1;
}

.rp-lb-self__eyebrow {
	display: block;
	font-size: var(--text-caps);
	font-weight: var(--weight-bold);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--text-tertiary);
	margin-bottom: var(--space-1);
}

.rp-lb-self__name {
	display: block;
	font-size: var(--text-lg);
	font-weight: var(--weight-bold);
	color: var(--text-primary);
}

.rp-lb-self__meta {
	display: block;
	margin-top: var(--space-1);
	font-size: var(--text-sm);
	color: var(--text-secondary);
}

.rp-lb-vol {
	min-width: 10rem;
}

.rp-lb-vol__val {
	display: block;
	font-weight: var(--weight-semibold);
	font-variant-numeric: tabular-nums;
}

.rp-lb-vol__bar {
	display: block;
	height: 6px;
	margin-top: var(--space-1);
	background: var(--surface-sunken);
	border-radius: 999px;
	overflow: hidden;
}

.rp-lb-vol__fill {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, color-mix(in srgb, var(--brand-accent) 75%, var(--brand-navy)) 0%, var(--brand-accent) 100%);
}

.rp-leaderboard-table {
	margin-bottom: var(--space-4);
	border-radius: var(--radius-lg);
	overflow: hidden;
}

.rp-leaderboard-table__head {
	padding: var(--space-4) var(--space-5);
	border-bottom: 1px solid var(--border-default);
	background: color-mix(in srgb, var(--brand-navy) 4%, var(--surface-elevated));
}

.rp-leaderboard-table__title {
	margin: 0;
	font-size: var(--text-lg);
	font-weight: var(--weight-semibold);
	color: var(--brand-navy, var(--text-primary));
}

.rp-leaderboard-table .at-table-wrap {
	padding: 0 var(--space-4) var(--space-4);
}

.rp-leaderboard-table .at-table thead th {
	font-size: var(--text-caps, 10px);
	font-weight: var(--weight-bold);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--text-tertiary);
	border-bottom-color: var(--border-default);
}

.rp-lb-rank {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.75rem;
	height: 1.75rem;
	padding: 0 var(--space-2);
	font-size: var(--text-sm);
	font-weight: var(--weight-bold);
	font-variant-numeric: tabular-nums;
	color: var(--brand-navy, var(--text-primary));
	background: var(--surface-subtle);
	border: 1px solid var(--border-default);
	border-radius: 999px;
}

.rp-lb-tier {
	font-size: var(--text-caps, 10px);
	font-weight: var(--weight-semibold);
	letter-spacing: 0.04em;
}

.rp-lb-tier--rookie {
	background: color-mix(in srgb, var(--brand-navy) 8%, var(--surface-elevated));
	border-color: color-mix(in srgb, var(--brand-navy) 18%, var(--border-default));
	color: var(--text-secondary);
}

.rp-lb-tier--rising_star {
	background: color-mix(in srgb, var(--brand-accent) 12%, var(--surface-elevated));
	border-color: color-mix(in srgb, var(--brand-accent) 35%, var(--border-default));
	color: var(--brand-navy);
}

.rp-lb-tier--pro,
.rp-lb-tier--captain,
.rp-lb-tier--all_star {
	background: color-mix(in srgb, var(--brand-accent) 16%, var(--surface-elevated));
	border-color: color-mix(in srgb, var(--brand-accent) 45%, var(--border-default));
	color: var(--brand-navy);
}

.rp-leaderboard-table .at-table tr.is-self {
	background: color-mix(in srgb, var(--brand-accent) 10%, var(--surface-elevated));
	font-weight: var(--weight-semibold);
	box-shadow: inset 3px 0 0 var(--brand-accent);
}

.rp-leaderboard-table .at-table tr.is-self td {
	border-color: color-mix(in srgb, var(--brand-accent) 20%, var(--border-default));
}

@keyframes rpPodiumRise {
	from {
		opacity: 0;
		transform: translateY(24px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes rpPodiumShine {
	0%, 70%, 100% { transform: translateX(-120%); }
	85% { transform: translateX(120%); }
}

.rp-home-greeting__title {
	font-size: var(--text-2xl);
	font-weight: var(--weight-bold);
	margin: var(--space-2) 0 0;
	color: #fff;
}

.rp-home-greeting__company {
	margin: var(--space-2) 0 0;
	font-weight: var(--weight-semibold);
	color: rgba(255, 255, 255, 0.92);
}

.rp-home-greeting__tagline {
	margin: var(--space-2) 0 0;
	font-size: var(--text-sm);
	color: rgba(255, 255, 255, 0.78);
}

.rp-stat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: var(--space-3);
	margin-bottom: var(--space-5);
}

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

.rp-home-section {
	margin-bottom: var(--space-5);
}

.rp-home-section__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	margin-bottom: var(--space-4);
}

.rp-home-section__title {
	font-size: var(--text-lg);
	font-weight: var(--weight-semibold);
	margin: 0;
}

.rp-home-activity {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

.rp-home-activity__item {
	display: grid;
	grid-template-columns: 1fr minmax(80px, 140px) auto;
	align-items: center;
	gap: var(--space-3);
	width: 100%;
	padding: var(--space-3) var(--space-4);
	border: 1px solid var(--border-default);
	border-radius: var(--radius-md);
	background: var(--surface-elevated);
	text-align: left;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rp-home-activity__item:hover {
	border-color: color-mix(in srgb, var(--brand-accent) 35%, var(--border-default));
	box-shadow: var(--shadow-sm);
}

.rp-home-activity__item:focus {
	outline: none;
}

.rp-home-activity__item:focus-visible {
	outline: 2px solid var(--brand-accent);
	outline-offset: 2px;
}

.rp-home-activity__label {
	font-size: var(--text-sm);
	font-weight: var(--weight-medium);
	color: var(--text-primary);
}

.rp-home-activity__bar {
	display: block;
	height: 6px;
	border-radius: 999px;
	background: var(--surface-sunken);
	overflow: hidden;
}

.rp-home-activity__fill {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--brand-navy), var(--brand-accent));
}

.rp-home-activity__pct {
	font-size: var(--text-xs);
	font-weight: var(--weight-semibold);
	color: var(--text-secondary);
	min-width: 2.5rem;
	text-align: right;
}

.rp-photo-feature {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: var(--space-4);
	align-items: stretch;
	padding: var(--space-5);
	background: var(--surface-elevated);
	border: 1px solid var(--border-default);
	margin-bottom: var(--space-5);
}

.rp-photo-feature__title {
	font-size: var(--text-xl);
	font-weight: var(--weight-bold);
	margin: var(--space-2) 0;
}

.rp-photo-feature__meta {
	font-size: var(--text-sm);
	color: var(--text-secondary);
}

.rp-photo-feature__media {
	position: relative;
	padding: 0;
	border: none;
	background: var(--surface-sunken);
	cursor: pointer;
	overflow: hidden;
	min-height: 180px;
}

.rp-photo-feature__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	min-height: 180px;
}

.rp-photo-feature__badge {
	position: absolute;
	right: var(--space-3);
	bottom: var(--space-3);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background: rgba(0, 36, 77, 0.75);
	color: #fff;
}

.rp-photo-feature__badge svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.rp-skeleton-view {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
}

.rp-skeleton {
	background: linear-gradient(90deg, var(--surface-subtle) 25%, var(--surface-sunken) 50%, var(--surface-subtle) 75%);
	background-size: 200% 100%;
	animation: rpSkeletonShimmer 1.2s ease-in-out infinite;
}

.rp-skeleton--hero { height: 120px; }
.rp-skeleton--hero-lg { height: 240px; }
.rp-skeleton--stat { height: 88px; }
.rp-skeleton--card { height: 200px; }
.rp-skeleton--card-lg { height: 280px; }

.rp-skeleton-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: var(--space-3);
}

.rp-skeleton-grid--cards {
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.rp-skeleton-grid--detail {
	grid-template-columns: 2fr 1fr;
}

@keyframes rpSkeletonShimmer {
	0% { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

.rp-resource-group {
	margin-bottom: var(--space-6);
}

.rp-resource-group__title {
	font-size: var(--text-lg);
	font-weight: var(--weight-semibold);
	margin: 0 0 var(--space-3);
	padding-bottom: var(--space-2);
	border-bottom: 2px solid var(--brand-accent);
}

.rp-file-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: var(--space-3);
}

.rp-file-card {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	padding: var(--space-4);
	background: var(--surface-elevated);
	border: 1px solid var(--border-default);
	text-decoration: none;
	color: inherit;
	transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}

.rp-file-card:hover {
	border-color: color-mix(in srgb, var(--brand-accent) 35%, var(--border-default));
	box-shadow: 0 4px 12px color-mix(in srgb, var(--brand-navy) 8%, transparent);
}

.rp-file-card__icon svg,
.rp-file-card__action svg {
	width: 20px;
	height: 20px;
	fill: var(--brand-accent);
}

.rp-file-card__body {
	flex: 1;
	min-width: 0;
}

.rp-file-card__name {
	display: block;
	font-weight: var(--weight-semibold);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.rp-file-card__type {
	display: block;
	font-size: var(--text-sm);
	color: var(--text-tertiary);
	margin-top: var(--space-1);
}

.rp-allstars-hero {
	--rp-tier-accent: var(--brand-accent);
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
	padding: var(--space-5);
	margin-bottom: var(--space-5);
	background: var(--surface-elevated);
	border: 1px solid var(--border-default);
	border-left: 4px solid var(--rp-tier-accent);
	border-radius: var(--radius-md);
	box-shadow: 0 2px 8px color-mix(in srgb, var(--brand-navy) 6%, transparent);
}

.rp-allstars-hero--rookie { --rp-tier-accent: color-mix(in srgb, var(--brand-accent) 55%, var(--brand-navy)); }
.rp-allstars-hero--rising_star { --rp-tier-accent: color-mix(in srgb, var(--brand-accent) 70%, var(--brand-navy)); }
.rp-allstars-hero--pro { --rp-tier-accent: color-mix(in srgb, var(--brand-accent) 85%, var(--brand-navy)); }
.rp-allstars-hero--captain { --rp-tier-accent: var(--brand-accent); }
.rp-allstars-hero--all_star { --rp-tier-accent: var(--brand-accent); }

.rp-allstars-hero__main {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: var(--space-5);
	align-items: center;
}

.rp-allstars-hero__crest {
	display: flex;
	align-items: center;
	gap: var(--space-4);
	min-width: 0;
}

.rp-allstars-hero__medallion {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	flex-shrink: 0;
	width: 72px;
	height: 72px;
	padding: 8px;
	background: linear-gradient(145deg, var(--brand-navy) 0%, color-mix(in srgb, var(--brand-navy) 82%, var(--brand-accent)) 100%);
	border: 2px solid rgba(255, 255, 255, 0.35);
	box-shadow: 0 2px 8px color-mix(in srgb, var(--brand-navy) 35%, transparent);
}

.rp-allstars-hero__medallion .rp-tier-stars {
	width: 48px;
	height: 48px;
}

.rp-allstars-hero__identity {
	min-width: 0;
}

.rp-allstars-hero__name {
	margin: var(--space-1) 0 0;
	font-size: var(--text-2xl);
	font-weight: var(--weight-bold);
	line-height: 1.15;
	color: var(--brand-navy, var(--text-primary));
}

.rp-allstars-hero__community {
	margin: var(--space-2) 0 0;
	font-size: var(--text-sm);
	font-weight: var(--weight-semibold);
	color: var(--text-secondary);
}

.rp-allstars-hero__ring {
	flex-shrink: 0;
}

.rp-allstars-hero__progress {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

.rp-allstars-hero__track {
	display: block;
	height: 8px;
	background: var(--surface-sunken);
	border-radius: var(--radius-sm);
	overflow: hidden;
}

.rp-allstars-hero__track .rp-stat-tile__fill {
	height: 100%;
	background: var(--rp-tier-accent, var(--brand-accent));
	border-radius: inherit;
}

.rp-allstars-hero__progress-label {
	margin: 0;
	font-size: var(--text-sm);
	font-weight: var(--weight-semibold);
	color: var(--brand-navy, var(--text-primary));
}

.rp-allstars-hero__chips {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	padding-top: var(--space-1);
	border-top: 1px solid var(--border-default);
}

.rp-tier-ring {
	width: 120px;
	height: 120px;
	background: conic-gradient(var(--brand-accent) calc(var(--rp-ring-pct, 0) * 1%), rgba(255, 255, 255, 0.15) 0);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto;
}

.rp-tier-ring__inner {
	width: 92px;
	height: 92px;
	background: var(--brand-navy);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.rp-tier-ring__value {
	font-size: var(--text-2xl);
	font-weight: var(--weight-bold);
	color: #fff;
	line-height: 1;
}

.rp-tier-ring__label {
	font-size: var(--text-caps);
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.7);
	margin-top: var(--space-1);
}

.rp-tier-ring__next {
	text-align: center;
	font-size: var(--text-sm);
	color: rgba(255, 255, 255, 0.85);
	margin-top: var(--space-2);
}

.rp-tier-ring--card {
	width: 108px;
	height: 108px;
	background: conic-gradient(var(--rp-tier-accent, var(--brand-accent)) calc(var(--rp-ring-pct, 0) * 1%), var(--surface-sunken) 0);
}

.rp-tier-ring--card .rp-tier-ring__inner {
	width: 84px;
	height: 84px;
	background: var(--surface-elevated);
	border: 1px solid var(--border-default);
}

.rp-tier-ring--card .rp-tier-ring__value {
	font-size: var(--text-xl);
	color: var(--text-primary);
}

.rp-tier-ring--card .rp-tier-ring__label {
	color: var(--text-tertiary);
}

.rp-tier-ring--card + .rp-tier-ring__next {
	color: var(--text-secondary);
	text-align: center;
	max-width: 12rem;
	margin-left: auto;
	margin-right: auto;
}

.rp-tier-ring--page {
	width: 108px;
	height: 108px;
	background: conic-gradient(var(--rp-tier-accent, var(--brand-accent)) calc(var(--rp-ring-pct, 0) * 1%), var(--surface-sunken) 0);
	border-radius: 50%;
}

.rp-tier-ring--page .rp-tier-ring__inner {
	width: 84px;
	height: 84px;
	background: var(--surface-elevated);
	border: 1px solid var(--border-default);
	border-radius: 50%;
}

.rp-tier-ring--page .rp-tier-ring__value {
	font-size: var(--text-xl);
	color: var(--brand-navy, var(--text-primary));
}

.rp-tier-ring--page .rp-tier-ring__label {
	color: var(--text-secondary);
}

.rp-tier-card {
	--rp-tier-accent: var(--brand-accent);
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
	padding: var(--space-5);
	margin-bottom: var(--space-5);
	background: var(--surface-elevated);
	border: 1px solid var(--border-default);
	box-shadow: 0 2px 8px color-mix(in srgb, var(--brand-navy) 6%, transparent);
	cursor: pointer;
	transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out);
}

.rp-tier-card:hover,
.rp-tier-card:focus {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px color-mix(in srgb, var(--brand-navy) 10%, transparent);
	border-color: color-mix(in srgb, var(--rp-tier-accent) 40%, var(--border-default));
	outline: none;
}

.rp-tier-card:focus-visible {
	box-shadow: var(--focus-ring), 0 8px 24px color-mix(in srgb, var(--brand-navy) 10%, transparent);
}

.rp-tier-card--rookie { --rp-tier-accent: color-mix(in srgb, var(--brand-accent) 55%, var(--brand-navy)); }
.rp-tier-card--rising_star { --rp-tier-accent: color-mix(in srgb, var(--brand-accent) 70%, var(--brand-navy)); }
.rp-tier-card--pro { --rp-tier-accent: color-mix(in srgb, var(--brand-accent) 85%, var(--brand-navy)); }
.rp-tier-card--captain { --rp-tier-accent: var(--brand-accent); }
.rp-tier-card--all_star { --rp-tier-accent: var(--brand-accent); }

.rp-tier-card__main {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: var(--space-5);
	align-items: center;
}

.rp-tier-card__crest {
	display: flex;
	align-items: center;
	gap: var(--space-4);
	min-width: 0;
}

.rp-tier-card__medallion {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 72px;
	height: 72px;
	font-size: var(--text-xl);
	font-weight: var(--weight-bold);
	letter-spacing: var(--tracking-wide);
	color: var(--brand-navy);
	background: linear-gradient(145deg, #fff 0%, color-mix(in srgb, var(--rp-tier-accent) 18%, var(--surface-subtle)) 100%);
	border: 2px solid var(--rp-tier-accent);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.85), 0 4px 12px color-mix(in srgb, var(--rp-tier-accent) 22%, transparent);
}

.rp-tier-card__identity {
	min-width: 0;
}

.rp-tier-card__name {
	margin: var(--space-2) 0 0;
	font-size: var(--text-2xl);
	font-weight: var(--weight-bold);
	color: var(--text-primary);
	line-height: 1.15;
}

.rp-tier-card__community {
	margin: var(--space-2) 0 0;
	font-size: var(--text-sm);
	color: var(--text-secondary);
}

.rp-tier-card__progress {
	flex-shrink: 0;
}

.rp-tier-card__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	padding-top: var(--space-3);
	border-top: 1px solid var(--border-default);
}

.rp-tier-card__perks {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
}

.rp-tier-card__chip {
	display: inline-block;
	padding: var(--space-2) var(--space-3);
	font-size: var(--text-sm);
	font-weight: var(--weight-semibold);
	color: var(--text-primary);
	background: var(--surface-subtle);
	border: 1px solid var(--border-default);
}

.rp-tier-card__chip--commission {
	background: color-mix(in srgb, var(--brand-navy) 6%, var(--surface-subtle));
	border-color: color-mix(in srgb, var(--brand-navy) 18%, var(--border-default));
}

.rp-tier-card__chip--bonus {
	background: var(--brand-accent-soft);
	border-color: color-mix(in srgb, var(--brand-accent) 35%, var(--border-default));
}

.rp-tier-card__chip--credit {
	background: color-mix(in srgb, var(--brand-accent) 8%, var(--surface-subtle));
	border-color: color-mix(in srgb, var(--brand-accent) 28%, var(--border-default));
}

.rp-tier-card__cta {
	font-size: var(--text-sm);
	font-weight: var(--weight-semibold);
	color: var(--brand-accent);
	white-space: nowrap;
}

.rp-leaderboard-switch {
	max-width: 20rem;
	margin-bottom: var(--space-4);
}

.rp-podium {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: var(--space-3);
	margin-bottom: var(--space-5);
}

.rp-podium__slot--1 { order: 2; }
.rp-podium__slot--2 { order: 1; }
.rp-podium__slot--3 { order: 3; }

.rp-podium__name {
	display: block;
	font-size: var(--text-base);
	font-weight: var(--weight-bold);
	margin-top: var(--space-2);
	text-align: center;
	color: var(--text-primary);
}

.rp-podium__sales,
.rp-podium__tier {
	display: block;
	font-size: var(--text-sm);
	color: var(--text-secondary);
	margin-top: var(--space-2);
	text-align: center;
}

.rp-podium__tier .at-badge {
	margin-top: 0;
}

.rp-profile-layout {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: var(--space-5);
	align-items: start;
}

.rp-profile-aside {
	text-align: center;
	padding: var(--space-5);
	background: var(--surface-elevated);
	border: 1px solid var(--border-default);
}

.rp-profile-aside__name {
	font-weight: var(--weight-semibold);
	margin-top: var(--space-3);
}

.rp-profile-aside__brokerage {
	font-size: var(--text-sm);
	color: var(--text-secondary);
	margin-top: var(--space-1);
}

.rp-profile-avatar--placeholder {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: var(--text-2xl);
	font-weight: var(--weight-bold);
	color: var(--brand-navy);
	background: var(--brand-accent-soft);
}

.rp-profile-photo {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-3);
	width: 100%;
}

.rp-profile-photo__input {
	display: none;
}

.rp-profile-avatar-btn {
	position: relative;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-2);
	padding: 0;
	border: none;
	background: none;
	cursor: pointer;
	color: inherit;
}

.rp-profile-avatar-btn:focus-visible {
	outline: none;
}

.rp-profile-avatar-btn:focus-visible .rp-profile-avatar {
	box-shadow: var(--focus-ring);
}

.rp-profile-avatar-btn__label {
	font-size: var(--text-xs);
	font-weight: var(--weight-semibold);
	color: var(--brand-accent);
}

.rp-profile-photo__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-2);
}

.rp-profile-photo__msg,
.rp-profile-photo__hint {
	margin: 0;
	min-height: 1.25em;
	text-align: center;
}

.rp-profile-photo__hint {
	font-size: var(--text-sm);
	color: var(--text-secondary);
	padding: 0 var(--space-2);
}

.rp-profile-logo-section {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-3);
	width: 100%;
	margin-top: var(--space-4);
	padding-top: var(--space-4);
	border-top: 1px solid var(--border-default);
}

.rp-profile-logo {
	display: block;
	max-width: 160px;
	max-height: 72px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.rp-profile-logo--placeholder {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 160px;
	height: 72px;
	font-size: var(--text-sm);
	font-weight: var(--weight-semibold);
	color: var(--text-secondary);
	background: var(--surface-subtle);
	border: 1px dashed var(--border-default);
	border-radius: var(--radius-sm);
}

.rp-profile-logo-btn {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-2);
	padding: var(--space-2);
	border: none;
	background: none;
	cursor: pointer;
	color: inherit;
	max-width: 100%;
}

.rp-profile-logo-btn:focus-visible {
	outline: none;
}

.rp-profile-logo-btn:focus-visible .rp-profile-logo {
	box-shadow: var(--focus-ring);
}

.rp-profile-logo-btn__label {
	font-size: var(--text-xs);
	font-weight: var(--weight-semibold);
	color: var(--brand-accent);
}

.rp-profile-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-4);
}

.rp-profile-form__full {
	grid-column: 1 / -1;
}

.rp-profile-notify {
	border: none;
	padding: 0;
	margin: var(--space-4) 0;
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

.rp-auth-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	min-height: calc(100vh - 48px);
	min-height: calc(100dvh - 48px);
}

.rp-auth-split__brand {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: var(--space-10);
	background: linear-gradient(160deg, var(--brand-navy) 0%, color-mix(in srgb, var(--brand-accent) 25%, var(--brand-navy)) 100%);
	color: #fff;
}

.rp-auth-split__brand-logo {
	max-width: 200px;
	height: auto;
	margin-bottom: var(--space-6);
}

.rp-auth-split__brand-title {
	font-size: var(--text-3xl);
	font-weight: var(--weight-bold);
	margin: 0 0 var(--space-3);
	color: #fff;
}

.rp-auth-split__brand-copy {
	font-size: var(--text-lg);
	color: rgba(255, 255, 255, 0.85);
	max-width: 24rem;
	line-height: 1.5;
}

.rp-auth-split__form {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--space-6);
	background: var(--surface-canvas);
}

.rp-auth-split__card {
	width: 100%;
	max-width: 400px;
}

.rp-auth-split__card .at-card {
	padding: var(--space-8);
}

@media (max-width: 768px) {
	.rp-photo-feature {
		grid-template-columns: 1fr;
	}

	.rp-tier-card__main {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.rp-tier-card__crest {
		flex-direction: column;
		align-items: center;
	}

	.rp-tier-card__footer {
		flex-direction: column;
		align-items: stretch;
	}

	.rp-tier-card__perks {
		justify-content: center;
	}

	.rp-tier-card__cta {
		text-align: center;
	}

	.rp-allstars-hero__main {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.rp-allstars-hero__crest {
		flex-direction: column;
		align-items: center;
	}

	.rp-allstars-hero__ring {
		margin: 0 auto;
	}

	.rp-allstars-hero__chips {
		justify-content: center;
	}

	.rp-profile-layout {
		grid-template-columns: 1fr;
	}

	.rp-profile-form__grid {
		grid-template-columns: 1fr;
	}

	.rp-skeleton-grid--detail {
		grid-template-columns: 1fr;
	}

	.rp-auth-split {
		grid-template-columns: 1fr;
	}

	.rp-auth-split__brand {
		padding: var(--space-8) var(--space-6);
		min-height: auto;
	}

	.rp-podium--medal {
		flex-direction: column;
		align-items: stretch;
		padding-bottom: var(--space-4);
	}

	.rp-podium--medal .rp-podium__slot {
		max-width: none;
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: flex-start;
		align-items: center;
		gap: var(--space-3);
		padding: var(--space-4);
		border-bottom: 1px solid var(--border-default);
	}

	.rp-podium--medal .rp-podium__slot:last-child {
		border-bottom: none;
	}

	.rp-podium--medal .rp-podium__pedestal {
		display: none;
	}

	.rp-podium--medal .rp-podium__slot--1 { order: 1; }
	.rp-podium--medal .rp-podium__slot--2 { order: 2; }
	.rp-podium--medal .rp-podium__slot--3 { order: 3; }

	.rp-podium:not(.rp-podium--medal) {
		flex-direction: column;
		align-items: stretch;
	}

	.rp-podium:not(.rp-podium--medal) .rp-podium__slot {
		max-width: none;
		min-height: auto !important;
		order: unset !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rp-skeleton {
		animation: none;
	}

	.rp-fade-in {
		animation: none;
	}

	.rp-tier-card:hover,
	.rp-tier-card:focus {
		transform: none;
	}

	.rp-home-tierbadge:hover,
	.rp-home-tierbadge:focus {
		transform: none;
	}

	.rp-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.rp-podium__slot {
		animation: none;
	}

	.rp-podium--medal::after {
		animation: none;
		display: none;
	}

	.rp-stat-tile-card:hover {
		transform: none;
	}

	.rp-animate-bar .rp-stat-tile__fill,
	.rp-animate-bar .rp-lb-vol__fill {
		width: calc(var(--rp-vol-pct, var(--pct, 100)) * 1%);
		transition: none;
	}

	.rp-animate-bar.is-animated .rp-lb-vol__fill {
		width: calc(var(--rp-vol-pct, 0) * 1%);
	}

	.rp-animate-bar.is-animated .rp-stat-tile__fill {
		width: calc(var(--pct, 0) * 1%);
	}
}

.rp-cobranded-toolbar {
	max-width: 420px;
	margin-bottom: var(--space-5);
}

.rp-cobranded-flyer {
	margin-bottom: var(--space-5);
}

.rp-cobranded-flyer__copy {
	margin: 0 0 var(--space-4);
	font-size: var(--text-sm);
	line-height: 1.5;
	color: var(--text-secondary);
}

.rp-cobranded-plans {
	margin-bottom: var(--space-6);
}

.rp-cobranded-plans__head {
	margin-bottom: var(--space-4);
}

.rp-cobranded-plans__collections {
	display: flex;
	flex-direction: column;
	gap: var(--space-6);
}

.rp-cobranded-collection__head {
	display: flex;
	align-items: center;
	margin-bottom: var(--space-4);
	padding-bottom: var(--space-3);
	border-bottom: 3px solid var(--at-coll-base, var(--border-strong));
}

.rp-cobranded-collection__title {
	margin: 0;
	font-size: var(--text-lg);
	font-weight: var(--weight-semibold);
	color: var(--text-primary);
}

.rp-cobranded-collection--gold { --at-coll-base: var(--coll-gold); }
.rp-cobranded-collection--emerald { --at-coll-base: var(--coll-emerald); }
.rp-cobranded-collection--ruby { --at-coll-base: var(--coll-ruby); }
.rp-cobranded-collection--sapphire { --at-coll-base: var(--coll-sapphire); }
.rp-cobranded-collection--diamond { --at-coll-base: var(--coll-diamond); }

.rp-cobranded-plans__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: var(--space-4);
}

.rp-cobranded-plan {
	display: flex;
	flex-direction: column;
	background: var(--surface-elevated);
	border: 1px solid var(--border-default);
	border-radius: var(--radius-md);
	overflow: hidden;
}

.rp-cobranded-plan__thumb {
	width: 100%;
	height: 160px;
	object-fit: cover;
	display: block;
	background: var(--surface-sunken);
}

.rp-cobranded-plan__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: var(--space-2);
	padding: var(--space-4);
}

.rp-cobranded-plan__name {
	margin: 0;
	font-size: var(--text-lg);
	font-weight: var(--weight-semibold);
}

.rp-cobranded-plan__price {
	margin: 0;
	font-size: var(--text-sm);
	font-weight: var(--weight-semibold);
	color: var(--brand-accent);
}

.rp-cobranded-plan__specs {
	margin: 0;
	font-size: var(--text-sm);
	color: var(--text-secondary);
}

.rp-cobranded-plan__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	margin-top: auto;
	padding-top: var(--space-2);
}

.rp-cobranded-plan__actions .at-btn svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

.rp-cobranded-modal {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--space-4);
}

.rp-cobranded-modal.rp-hidden {
	display: none;
}

.rp-cobranded-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(12, 35, 64, 0.45);
}

.rp-cobranded-modal__panel {
	position: relative;
	width: min(100%, 440px);
	max-height: calc(100vh - 48px);
	overflow: auto;
	padding: var(--space-5);
}

.rp-cobranded-modal__form {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
	margin-top: var(--space-4);
}

.rp-cobranded-modal__actions {
	display: flex;
	justify-content: flex-end;
	gap: var(--space-2);
}
