.atlas-link {
	cursor: pointer;
	text-decoration: underline dotted;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
	border-radius: 2px;
	transition: background-color 0.2s ease;
}

.atlas-link:hover,
.atlas-link[aria-expanded="true"] {
	background-color: rgba(200, 98, 38, 0.12);
	text-decoration-style: solid;
}

.atlas-link:focus-visible {
	outline: 2px solid #c86226;
	outline-offset: 2px;
}

.atlas-card,
.atlas-panel,
.atlas-backdrop,
.atlas-notice {
	--atlas-bg: #ffffff;
	--atlas-fg: #18181b;
	--atlas-muted: #71717a;
	--atlas-line: #e4e4e7;
	--atlas-soft: #f4f4f5;
	--atlas-accent: #c2551a;
	--atlas-accent-fg: #ffffff;
	--atlas-series-1: #c2551a;
	--atlas-series-2: #2389b4;
	--atlas-series-3: #33883a;
	--atlas-shadow: 0 18px 40px -16px rgba(24, 24, 27, 0.28), 0 2px 6px -2px rgba(24, 24, 27, 0.08);
	box-sizing: border-box;
	color: var(--atlas-fg);
	font-family: inherit;
	font-size: 15px;
	line-height: 1.45;
	letter-spacing: normal;
	text-align: left;
}

@media (prefers-color-scheme: dark) {
	.atlas-card,
	.atlas-panel,
	.atlas-backdrop,
	.atlas-notice {
		--atlas-bg: #1c1c1f;
		--atlas-fg: #f4f4f5;
		--atlas-muted: #a1a1aa;
		--atlas-line: #2f2f34;
		--atlas-soft: #26262a;
		--atlas-accent: #e0763a;
		--atlas-accent-fg: #18181b;
		--atlas-series-1: #e0763a;
		--atlas-series-2: #3fb3e2;
		--atlas-series-3: #3fa945;
		--atlas-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.7), 0 2px 6px -2px rgba(0, 0, 0, 0.4);
	}
}

.atlas-card *,
.atlas-panel *,
.atlas-notice * {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	font-family: inherit;
}

.atlas-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.atlas-muted {
	color: var(--atlas-muted);
	font-size: 13px;
}

/* Card */

.atlas-card {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 99990;
	width: min(296px, calc(100vw - 16px));
	padding: 14px 16px 12px;
	background: var(--atlas-bg);
	border: 1px solid var(--atlas-line);
	border-radius: 12px;
	box-shadow: var(--atlas-shadow);
	cursor: pointer;
	opacity: 0;
	scale: 0.97;
	transition: opacity 0.18s ease, scale 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.atlas-card.is-open {
	opacity: 1;
	scale: 1;
}

.atlas-card[hidden],
.atlas-panel[hidden],
.atlas-backdrop[hidden] {
	display: none;
}

.atlas-head {
	display: grid;
	gap: 2px;
}

.atlas-head.has-photo-slot {
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 14px;
}

.atlas-head-text {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.atlas-photo {
	position: relative;
	width: 60px;
	height: 80px;
	overflow: hidden;
	border: 2px solid var(--atlas-accent);
	border-radius: 14px;
	background: var(--atlas-soft);
}

.atlas-panel .atlas-photo {
	width: 84px;
	height: 112px;
}

.atlas-initials {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--atlas-muted);
	font-size: 20px;
	font-weight: 700;
}

.atlas-photo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center bottom;
	opacity: 0;
	transition: opacity 0.2s ease;
}

/* Blurred copy fills the sides around the whole photo. */
.atlas-photo img.atlas-photo-fill {
	object-fit: cover;
	filter: blur(8px);
	transform: scale(1.2);
}

.atlas-photo.has-photo img {
	opacity: 1;
}

.atlas-kicker {
	color: var(--atlas-accent);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.atlas-name {
	color: var(--atlas-fg);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

.atlas-sub {
	color: var(--atlas-muted);
	font-size: 13px;
}

.atlas-stats-wrap {
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px solid var(--atlas-line);
}

.atlas-season {
	margin-bottom: 6px !important;
	color: var(--atlas-muted);
	font-size: 11px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.atlas-stats {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 4px;
}

.atlas-vs {
	display: grid;
	gap: 10px;
	padding: 12px;
	background: var(--atlas-soft);
	border: 1px solid var(--atlas-line);
	border-radius: 14px;
}

.atlas-vs-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
}

.atlas-lines-title {
	margin: 0 !important;
	color: var(--atlas-fg);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.25;
}

.atlas-vs-season {
	color: var(--atlas-muted);
	font-size: 12px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.atlas-fields {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 8px;
	margin-top: 10px;
}

/* Each box sizes to its name; League drops to its own row when both do not fit on one line. */
.atlas-fields.is-pair {
	display: flex;
	flex-wrap: wrap;
}

.atlas-fields.is-pair .atlas-field {
	flex: 1 1 auto;
	max-width: 100%;
}

.atlas-fields.is-pair .atlas-field:last-child .atlas-dd-menu {
	left: auto;
	right: 0;
}

.atlas-field {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.atlas-field.is-open {
	z-index: 3;
}

.atlas-dd-label {
	margin: 0 0 4px !important;
	color: var(--atlas-muted);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.2;
	text-transform: uppercase;
}

.atlas-card .atlas-vs {
	margin-top: 14px;
}

.atlas-card .atlas-dd-menu {
	max-width: 238px;
}

.atlas-dd {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	gap: 8px;
	width: 100%;
	min-height: 36px;
	margin: 0;
	padding: 6px 10px;
	color: var(--atlas-fg);
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.25;
	text-align: left;
	background: var(--atlas-soft);
	border: 1px solid color-mix(in srgb, var(--atlas-fg) 22%, var(--atlas-line));
	border-radius: 10px;
	box-shadow: none;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.atlas-dd:hover,
.atlas-dd:focus {
	color: var(--atlas-fg);
	background: var(--atlas-soft);
}

.atlas-dd:hover:not(:disabled),
.atlas-field.is-open .atlas-dd {
	border-color: var(--atlas-accent);
}

.atlas-dd:focus-visible {
	outline: 2px solid var(--atlas-accent);
	outline-offset: 2px;
}

.atlas-dd:disabled {
	color: var(--atlas-fg);
	background: var(--atlas-soft);
	opacity: 1;
	cursor: default;
}

.atlas-dd-text {
	flex: 1 1 auto;
	min-width: 0;
	overflow-wrap: break-word;
}

.atlas-dd-chev {
	flex: 0 0 auto;
	width: 7px;
	height: 7px;
	margin: -3px 2px 0 0;
	border-right: 2px solid var(--atlas-muted);
	border-bottom: 2px solid var(--atlas-muted);
	transform: rotate(45deg);
	transition: transform 0.15s ease;
}

.atlas-field.is-open .atlas-dd-chev {
	margin-top: 3px;
	transform: rotate(-135deg);
}

.atlas-field.is-fixed .atlas-dd-chev {
	display: none;
}

.atlas-dd-menu {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	min-width: 100%;
	width: max-content;
	max-width: min(280px, calc(min(400px, 92vw) - 67px)); /* drawer width minus body/box padding, so it never spills past the drawer */
	max-height: 220px;
	margin: 0 !important;
	padding: 4px !important;
	overflow-y: auto;
	list-style: none !important;
	background: var(--atlas-bg);
	border: 1px solid color-mix(in srgb, var(--atlas-fg) 22%, var(--atlas-line));
	border-radius: 12px;
	box-shadow: var(--atlas-shadow);
	outline: none;
}

.atlas-dd-menu[hidden] {
	display: none;
}

.atlas-dd-opt {
	display: flex;
	align-items: center;
	margin: 0 !important;
	padding: 8px 10px;
	color: var(--atlas-fg);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.25;
	border-radius: 8px;
	cursor: pointer;
}

.atlas-dd-opt::before {
	content: none !important;
}

.atlas-dd-opt-text {
	min-width: 0;
	overflow-wrap: break-word;
}

.atlas-dd-opt.is-active {
	background: var(--atlas-soft);
}

.atlas-dd-opt[aria-selected="true"] {
	color: var(--atlas-accent);
	font-weight: 600;
}

.atlas-caption {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px !important;
	padding-left: 8px;
	color: var(--atlas-fg);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	border-left: 3px solid var(--atlas-accent);
}

.atlas-stack {
	display: grid;
}

.atlas-stack > * {
	grid-area: 1 / 1;
}

.atlas-stack > .is-off {
	visibility: hidden;
}

@media (max-width: 400px) {
	.atlas-dd,
	.atlas-dd-opt {
		font-size: 12.5px;
	}

	.atlas-caption {
		font-size: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.atlas-dd,
	.atlas-dd-chev {
		transition: none;
	}
}

.atlas-stat {
	display: flex;
	flex-direction: column-reverse;
	justify-content: flex-end;
	gap: 1px;
}

.atlas-stat-value {
	font-size: 16px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	line-height: 1.2;
}

.atlas-stat-label {
	color: var(--atlas-muted);
	font-size: 11px;
	font-weight: 500;
}

.atlas-card .atlas-facts {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid var(--atlas-line);
}

.atlas-hint {
	margin-top: 10px !important;
	color: var(--atlas-muted);
	font-size: 12px;
}

/* Skeleton */

.atlas-skeleton {
	display: grid;
	gap: 8px;
}

.atlas-bone {
	display: block;
	height: 12px;
	border-radius: 6px;
	background: linear-gradient(90deg, var(--atlas-soft) 25%, var(--atlas-line) 50%, var(--atlas-soft) 75%);
	background-size: 200% 100%;
	animation: atlas-shimmer 1.4s ease-in-out infinite;
}

.atlas-bone:first-child {
	width: 30%;
	height: 10px;
}

.atlas-bone:nth-child(2) {
	width: 70%;
	height: 16px;
}

.atlas-bone:nth-child(3) {
	width: 55%;
}

@keyframes atlas-shimmer {
	from {
		background-position: 100% 0;
	}

	to {
		background-position: -100% 0;
	}
}

/* Panel */

.atlas-locked,
.atlas-locked body {
	overflow: hidden !important;
}

.atlas-backdrop {
	position: fixed;
	inset: 0;
	z-index: 99991;
	background: rgba(24, 24, 27, 0.42);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.atlas-backdrop.is-open {
	opacity: 1;
}

.atlas-panel {
	position: fixed;
	top: var(--wp-admin--admin-bar--height, 0px); /* below the WP admin bar when logged in */
	bottom: 0;
	left: 0;
	z-index: 99992;
	display: flex;
	flex-direction: column;
	width: min(400px, 92vw);
	background: var(--atlas-bg);
	border-right: 1px solid var(--atlas-line);
	box-shadow: var(--atlas-shadow);
	transform: translateX(-100%);
	transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.atlas-panel.is-open {
	transform: translateX(0);
}

.atlas-panel-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 12px 14px 20px;
	background: #0f1d4a;
	border-bottom: 3px solid #eb6919;
}

.atlas-logo {
	display: block;
	width: auto;
	height: 28px;
}

.atlas-panel-bar .atlas-close {
	color: #ffffff;
}

.atlas-panel-bar .atlas-close:hover {
	background: rgba(255, 255, 255, 0.12);
}

.atlas-brand {
	color: #ffffff;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.atlas-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	color: var(--atlas-fg);
	background: transparent;
	border: 0;
	border-radius: 8px;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.atlas-close:hover {
	background: var(--atlas-soft);
}

.atlas-close:focus-visible,
.atlas-btn:focus-visible {
	outline: 2px solid var(--atlas-accent);
	outline-offset: 2px;
}

.atlas-panel-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 22px 20px 28px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.atlas-panel .atlas-name {
	font-size: 24px;
	letter-spacing: -0.02em;
}

.atlas-panel .atlas-sub {
	font-size: 14px;
}

.atlas-panel .atlas-stats-wrap {
	margin-top: 0;
	padding: 10px 12px;
	background: radial-gradient(circle at 100% 0, color-mix(in srgb, var(--atlas-accent) 16%, transparent), transparent 55%), var(--atlas-soft);
	border: 1px solid var(--atlas-line);
	border-radius: 12px;
}

.atlas-panel .atlas-vs .atlas-stats-wrap {
	background: radial-gradient(circle at 100% 0, color-mix(in srgb, var(--atlas-accent) 16%, transparent), transparent 55%), var(--atlas-bg);
}

.atlas-panel .atlas-stat-value {
	font-size: 20px;
}

.atlas-panel .atlas-stats {
	gap: 0;
}

.atlas-panel .atlas-stat {
	align-items: center;
	padding: 2px 2px;
	text-align: center;
}

.atlas-panel .atlas-stat + .atlas-stat {
	border-left: 1px solid var(--atlas-line);
}

.atlas-info {
	padding: 14px 16px 6px;
	background: var(--atlas-soft);
	border: 1px solid var(--atlas-line);
	border-radius: 14px;
}

.atlas-info-title {
	margin: 0 0 2px !important;
	color: var(--atlas-fg);
	font-size: 16px;
	font-weight: 700;
}

.atlas-info .atlas-fact:last-child {
	border-bottom: 0;
}

.atlas-fact dt {
	display: flex;
	align-items: center;
	gap: 8px;
}

.atlas-fact dt .atlas-icon {
	flex: none;
	color: var(--atlas-accent);
}

.atlas-facts {
	display: grid;
}

.atlas-fact {
	display: grid;
	grid-template-columns: 9em 1fr;
	gap: 12px;
	padding: 6px 0;
	font-size: 14px;
}

.atlas-panel .atlas-fact {
	padding: 10px 0;
	border-bottom: 1px solid var(--atlas-line);
}

.atlas-fact dt {
	color: var(--atlas-muted);
}

.atlas-fact dd {
	font-weight: 500;
	overflow-wrap: anywhere;
}

.atlas-card .atlas-fact {
	padding: 2px 0;
	font-size: 13px;
}

.atlas-actions {
	display: grid;
	gap: 10px;
	margin-top: auto;
}

.atlas-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 46px;
	padding: 10px 16px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none !important;
	border-radius: 10px;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.atlas-btn:active {
	transform: translateY(1px) scale(0.99);
}

.atlas-btn-ghost {
	color: var(--atlas-fg) !important;
	background: transparent;
	border: 1px solid var(--atlas-line);
}

.atlas-btn-ghost:hover {
	background: var(--atlas-soft);
}

.atlas-btn-primary {
	color: var(--atlas-accent-fg);
	background: var(--atlas-accent);
	border: 1px solid var(--atlas-accent);
}

.atlas-btn-primary:hover {
	filter: brightness(1.06);
}

.atlas-btn-primary:disabled {
	cursor: progress;
	opacity: 0.7;
}

/* Buy bar: sticks to the panel bottom; at the end of the scroll it sits in flow, so it never covers content. */
.atlas-dock {
	position: sticky;
	bottom: -28px; /* cancels the body's bottom padding */
	z-index: 2;
	margin: auto -20px -28px;
	padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
	background: var(--atlas-bg);
	border-top: 1px solid var(--atlas-line);
	box-shadow: 0 -10px 18px -14px rgba(24, 24, 27, 0.35);
}

.atlas-actions + .atlas-dock {
	margin-top: -8px;
}

.atlas-dock .atlas-error {
	text-align: center;
}

.atlas-dock .atlas-note {
	font-size: 11.5px;
	line-height: 1.35;
}

@media (max-height: 600px) {
	.atlas-dock {
		padding-top: 10px;
		padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
	}

	.atlas-dock .atlas-btn {
		min-height: 42px;
	}
}

.atlas-buy {
	display: grid;
	gap: 6px;
}

.atlas-note {
	color: var(--atlas-muted);
	font-size: 12px;
	text-align: center;
}

.atlas-error {
	color: #b42318;
	font-size: 13px;
	font-weight: 500;
}

.atlas-error:empty {
	display: none;
}

@media (prefers-color-scheme: dark) {
	.atlas-error {
		color: #f97066;
	}
}

/* Purchase notice */

.atlas-notice {
	position: fixed;
	right: 16px;
	bottom: 16px;
	left: 16px;
	z-index: 99993;
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 440px;
	margin: 0 auto;
	padding: 12px 8px 12px 16px;
	background: var(--atlas-bg);
	border: 1px solid var(--atlas-line);
	border-radius: 12px;
	box-shadow: var(--atlas-shadow);
	animation: atlas-rise 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.atlas-notice p {
	flex: 1;
	font-size: 14px;
	font-weight: 500;
}

.atlas-notice-dot {
	flex: none;
	width: 10px;
	height: 10px;
	background: #16a34a;
	border-radius: 50%;
	box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.18);
}

@keyframes atlas-rise {
	from {
		opacity: 0;
		transform: translateY(12px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Purchase progress + report */

.atlas-locked .atlas-notice {
	display: none;
}

.atlas-notice-text {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.atlas-notice .atlas-notice-phrase {
	color: var(--atlas-muted);
	font-size: 12px;
	font-weight: 400;
}

.atlas-notice-phrase[hidden] {
	display: none;
}

.atlas-notice-btn {
	flex: none;
	padding: 7px 12px;
	color: var(--atlas-accent-fg);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	background: var(--atlas-accent);
	border: 0;
	border-radius: 8px;
	cursor: pointer;
}

.atlas-notice-btn:hover {
	filter: brightness(1.08);
}

.atlas-notice-btn:focus-visible {
	outline: 2px solid var(--atlas-accent);
	outline-offset: 2px;
}

.atlas-notice-btn[hidden] {
	display: none;
}

.atlas-notice[data-state="confirming"] .atlas-notice-dot,
.atlas-notice[data-state="pending"] .atlas-notice-dot,
.atlas-notice[data-state="generating"] .atlas-notice-dot {
	background: var(--atlas-accent);
	box-shadow: 0 0 0 4px rgba(194, 85, 26, 0.18);
	animation: atlas-pulse 1.4s ease-in-out infinite;
}

.atlas-notice[data-state="failed"] .atlas-notice-dot,
.atlas-notice[data-state="slow"] .atlas-notice-dot,
.atlas-notice[data-state="lost"] .atlas-notice-dot {
	background: #d97706;
	box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.18);
}

.atlas-panel.is-report {
	width: min(560px, 100vw);
}

.atlas-progress {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 28px 20px 24px;
	overflow: hidden;
	text-align: center;
	background:
		radial-gradient(120% 70% at 50% 0%, rgba(194, 85, 26, 0.1), transparent 70%),
		var(--atlas-soft);
	border: 1px solid var(--atlas-line);
	border-radius: 14px;
}

.atlas-dribble {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	height: 96px;
	padding-bottom: 6px;
	margin-bottom: 4px;
}

.atlas-dribble-ball {
	display: block;
	color: var(--atlas-accent);
	transform-origin: 50% 100%;
	animation: atlas-dribble 0.9s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.atlas-dribble-shadow {
	position: absolute;
	bottom: 2px;
	width: 40px;
	height: 6px;
	background: rgba(24, 24, 27, 0.28);
	border-radius: 50%;
	filter: blur(2px);
	animation: atlas-dribble-shadow 0.9s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

@media (prefers-color-scheme: dark) {
	.atlas-dribble-shadow {
		background: rgba(0, 0, 0, 0.6);
	}
}

.atlas-progress-status {
	font-size: 15px;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.atlas-progress-phrase {
	min-height: 1.45em;
	color: var(--atlas-accent);
	font-size: 13px;
	font-weight: 500;
}

.atlas-phrase.is-in {
	animation: atlas-phrase 0.35s ease-out;
}

.atlas-progress .atlas-note {
	max-width: 320px;
	margin-top: 8px;
	padding-top: 14px;
	border-top: 1px solid var(--atlas-line);
	line-height: 1.5;
}

.atlas-report-h {
	margin-bottom: 8px;
	color: var(--atlas-accent);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.atlas-bottom-line {
	padding: 14px 16px;
	background: var(--atlas-soft);
	border-left: 3px solid var(--atlas-accent);
	border-radius: 8px;
}

.atlas-rich {
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-size: 14px;
	line-height: 1.6;
}

.atlas-rich ul {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-left: 18px;
	list-style: disc;
}

.atlas-rich ol {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-left: 22px;
	list-style: decimal;
}

.atlas-rich strong {
	font-weight: 600;
}

.atlas-rich h4 {
	font-size: 14px;
	font-weight: 600;
}

/* Report tables and charts (report-visuals.js). Explicit resets so partner theme table/button styles never reach in. */
.atlas-rich .atlas-table,
.atlas-rich .atlas-chart {
	min-width: 0;
	max-width: 100%;
	margin: 4px 0;
}

.atlas-rich .atlas-table {
	border: 1px solid var(--atlas-line);
	border-radius: 10px;
	overflow: hidden;
}

.atlas-rich .atlas-table.is-embedded {
	margin: 0;
	border: 0;
	border-radius: 8px;
}

.atlas-rich .atlas-table-scroll {
	max-width: 100%;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	-webkit-overflow-scrolling: touch;
}

.atlas-rich .atlas-table-frame {
	position: relative;
}

/* More columns to the right: fade the edge (report-visuals.js scrollCue). */
.atlas-rich .atlas-table-frame::after {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	width: 36px;
	content: "";
	background: linear-gradient(90deg, color-mix(in srgb, var(--atlas-bg) 0%, transparent), var(--atlas-bg) 85%);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.15s ease;
}

.atlas-rich .atlas-table-frame.is-more::after {
	opacity: 1;
}

.atlas-rich .atlas-table-scroll:focus-visible {
	outline: 2px solid var(--atlas-accent);
	outline-offset: -2px;
}

.atlas-panel .atlas-rich table,
.atlas-panel .atlas-rich thead,
.atlas-panel .atlas-rich tbody,
.atlas-panel .atlas-rich tr,
.atlas-panel .atlas-rich th,
.atlas-panel .atlas-rich td {
	margin: 0;
	border: 0;
	background: none;
	box-shadow: none;
	color: inherit;
	font: inherit;
	letter-spacing: normal;
	text-transform: none;
	vertical-align: top;
}

.atlas-panel .atlas-rich table {
	width: 100%;
	min-width: 100%;
	max-width: none;
	table-layout: auto;
	border-collapse: collapse;
	border-spacing: 0;
	font-size: 13px;
	line-height: 1.4;
}

.atlas-panel .atlas-rich th,
.atlas-panel .atlas-rich td {
	width: auto;
	padding: 8px 12px;
	text-align: left;
}

.atlas-panel .atlas-rich th {
	color: color-mix(in srgb, var(--atlas-muted) 80%, var(--atlas-fg));
	background: var(--atlas-soft);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	white-space: nowrap;
}

.atlas-panel .atlas-rich td {
	border-top: 1px solid var(--atlas-line);
}

.atlas-panel .atlas-rich tbody tr:nth-child(even) td {
	background: color-mix(in srgb, var(--atlas-soft) 55%, transparent);
}

.atlas-panel .atlas-rich .is-num {
	text-align: right;
}

/* First column stays put while the rest scrolls. */
.atlas-panel .atlas-rich .atlas-table-scroll th:first-child,
.atlas-panel .atlas-rich .atlas-table-scroll td:first-child {
	position: sticky;
	left: 0;
	z-index: 1;
}

.atlas-panel .atlas-rich .atlas-table-scroll td:first-child {
	background: var(--atlas-bg);
}

.atlas-panel .atlas-rich .atlas-table-scroll tbody tr:nth-child(even) td:first-child {
	background:
		linear-gradient(color-mix(in srgb, var(--atlas-soft) 55%, transparent), color-mix(in srgb, var(--atlas-soft) 55%, transparent)),
		var(--atlas-bg);
}

.atlas-panel .atlas-rich .atlas-table-frame.is-scrolled th:first-child,
.atlas-panel .atlas-rich .atlas-table-frame.is-scrolled td:first-child {
	box-shadow: 1px 0 0 var(--atlas-line), 6px 0 8px -6px rgba(24, 24, 27, 0.22);
}

.atlas-panel .atlas-rich .is-tabular {
	font-variant-numeric: tabular-nums;
}

.atlas-panel .atlas-rich .is-nowrap {
	white-space: nowrap;
}

.atlas-panel .atlas-rich .is-wrap {
	min-width: 9rem;
	white-space: normal;
}

.atlas-panel .atlas-rich .is-label {
	color: var(--atlas-fg);
	font-weight: 500;
}

.atlas-panel .atlas-rich .atlas-table-more {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	margin: 2px 6px 4px;
	padding: 4px 6px;
	color: var(--atlas-accent);
	background: none;
	border: 0;
	border-radius: 6px;
	box-shadow: none;
	font: inherit;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: normal;
	text-transform: none;
	cursor: pointer;
}

.atlas-panel .atlas-rich .atlas-table-more:hover {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.atlas-panel .atlas-rich .atlas-table-more:focus-visible {
	outline: 2px solid var(--atlas-accent);
	outline-offset: 1px;
}

.atlas-rich .atlas-chart {
	padding: 12px 12px 8px;
	background: color-mix(in srgb, var(--atlas-soft) 60%, var(--atlas-bg));
	border: 1px solid var(--atlas-line);
	border-radius: 12px;
}

.atlas-rich .atlas-chart.is-table {
	padding-bottom: 4px;
}

.atlas-rich .atlas-chart.is-table .atlas-table {
	margin-top: 10px;
	background: var(--atlas-bg);
	border: 1px solid var(--atlas-line);
}

.atlas-rich .atlas-chart-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 12px;
	min-height: 30px;
}

.atlas-rich .atlas-chart-head:not(.is-pick) > .atlas-seg:first-child {
	margin-left: auto;
}

.atlas-rich .atlas-chart-head.is-pick {
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

.atlas-rich .atlas-chart-head.is-pick .atlas-chart-title {
	flex: none;
}

.atlas-rich .atlas-chart.is-pick-box {
	container-type: inline-size;
}

@container (max-width: 330px) {
	.atlas-rich .atlas-chart-head.is-pick .atlas-seg {
		display: grid;
		grid-template-columns: repeat(var(--atlas-seg-cols, 3), minmax(0, 1fr));
		width: 100%;
	}

	.atlas-panel .atlas-rich .atlas-chart-head.is-pick .atlas-seg-btn {
		justify-content: center;
	}

	.atlas-panel .atlas-rich .atlas-seg.is-long .atlas-seg-btn:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}

	.atlas-panel .atlas-rich .atlas-chart-head.is-pick .atlas-seg.is-long .atlas-seg-btn {
		padding-right: 6px;
		padding-left: 6px;
		font-size: 11px;
	}
}

.atlas-rich .atlas-chart-title {
	display: -webkit-box;
	flex: 1 1 170px;
	min-width: 0;
	overflow: hidden;
	color: var(--atlas-fg);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.atlas-rich .atlas-seg {
	display: inline-flex;
	flex-wrap: wrap;
	flex-shrink: 0;
	gap: 2px;
	max-width: 100%;
	padding: 2px;
	background: var(--atlas-soft);
	border: 1px solid var(--atlas-line);
	border-radius: 8px;
}

.atlas-panel .atlas-rich .atlas-seg-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: 26px;
	margin: 0;
	padding: 3px 10px;
	color: color-mix(in srgb, var(--atlas-muted) 80%, var(--atlas-fg));
	background: transparent;
	border: 0;
	border-radius: 6px;
	box-shadow: none;
	font: inherit;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: none;
	white-space: nowrap;
	cursor: pointer;
	transition: color 0.15s ease, background-color 0.15s ease;
	min-width: 0;
	max-width: 100%;
}

.atlas-rich .atlas-seg-text {
	display: block;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.atlas-panel .atlas-rich .atlas-seg-btn:hover {
	color: var(--atlas-fg);
	background: transparent;
}

.atlas-panel .atlas-rich .atlas-seg-btn[aria-pressed="true"] {
	color: var(--atlas-fg);
	background: var(--atlas-bg);
	box-shadow: inset 0 -2px 0 var(--atlas-accent), 0 1px 2px rgba(24, 24, 27, 0.12);
	font-weight: 600;
}

.atlas-panel .atlas-rich .atlas-seg-btn:focus-visible {
	z-index: 1;
	outline: 2px solid var(--atlas-accent);
	outline-offset: 1px;
}

@media (pointer: coarse) {
	.atlas-panel .atlas-rich .atlas-seg-btn::after {
		position: absolute;
		inset: -9px -1px;
		content: "";
	}

	.atlas-rich .atlas-chart-head.is-pick .atlas-seg {
		gap: 4px;
	}

	.atlas-panel .atlas-rich .atlas-seg-btn {
		min-height: 32px;
	}
}

.atlas-rich .atlas-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	margin-top: 8px;
	color: var(--atlas-muted);
	font-size: 12px;
	line-height: 1.3;
}

.atlas-rich .atlas-legend-item,
.atlas-rich .atlas-tip-name {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.atlas-rich .atlas-dot {
	flex-shrink: 0;
	width: 8px;
	height: 8px;
	background: currentColor;
	border-radius: 50%;
}

.atlas-rich .atlas-s1 {
	color: var(--atlas-series-1);
}

.atlas-rich .atlas-s2 {
	color: var(--atlas-series-2);
}

.atlas-rich .atlas-s3 {
	color: var(--atlas-series-3);
}

.atlas-rich .atlas-plot {
	position: relative;
	min-height: 184px;
	margin-top: 6px;
	touch-action: pan-y;
}

.atlas-rich .atlas-plot svg {
	display: block;
	max-width: none;
	overflow: visible;
}

.atlas-rich .atlas-grid line {
	stroke: var(--atlas-line);
	stroke-width: 1;
	shape-rendering: crispEdges;
}

.atlas-rich .atlas-tick text {
	fill: color-mix(in srgb, var(--atlas-muted) 80%, var(--atlas-fg));
	font-size: 11px;
	font-variant-numeric: tabular-nums;
}

.atlas-rich .atlas-fill path {
	fill: currentColor;
}

.atlas-rich .atlas-line path {
	fill: none;
	stroke: currentColor;
	stroke-width: 2.25;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.atlas-rich .atlas-line circle {
	fill: currentColor;
}

.atlas-rich .atlas-gap-knock {
	fill: color-mix(in srgb, var(--atlas-soft) 60%, var(--atlas-bg));
}

.atlas-rich .atlas-gap path {
	fill: none;
	stroke: var(--atlas-muted);
	stroke-width: 1.5;
	stroke-linecap: round;
}

.atlas-rich .atlas-cursor-band {
	fill: var(--atlas-fg);
	opacity: 0.06;
}

.atlas-rich .atlas-cursor-line {
	stroke: var(--atlas-muted);
	stroke-dasharray: 3 3;
}

.atlas-rich .atlas-tip {
	position: absolute;
	z-index: 2;
	display: grid;
	gap: 3px;
	min-width: 128px;
	padding: 8px 10px;
	background: var(--atlas-bg);
	border: 1px solid var(--atlas-line);
	border-radius: 8px;
	box-shadow: var(--atlas-shadow);
	font-size: 12px;
	line-height: 1.3;
	pointer-events: none;
}

.atlas-rich .atlas-tip[hidden] {
	display: none;
}

.atlas-rich .atlas-tip-label {
	margin-bottom: 2px;
	color: var(--atlas-muted);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	white-space: nowrap;
}

.atlas-rich .atlas-tip-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	white-space: nowrap;
}

.atlas-rich .atlas-tip-name {
	color: var(--atlas-muted);
}

.atlas-rich .atlas-tip-value {
	color: var(--atlas-fg);
	font-variant-numeric: tabular-nums;
	font-weight: 700;
}

/* Rebuilt text credit at the end of a rich report: footer rule, accent headline. */
.atlas-panel .atlas-rich .atlas-credit-line {
	margin-top: 20px;
	padding-top: 14px;
	border-top: 1px solid var(--atlas-line);
}

.atlas-panel .atlas-rich .atlas-credit-line strong {
	color: var(--atlas-accent);
}

@keyframes atlas-pulse {
	50% {
		box-shadow: 0 0 0 7px rgba(194, 85, 26, 0.08);
	}
}

@keyframes atlas-dribble {
	0%,
	100% {
		transform: translateY(0) scale(1.08, 0.9);
	}

	12% {
		transform: translateY(-6px) scale(0.97, 1.04);
	}

	50% {
		transform: translateY(-40px) scale(1);
	}

	88% {
		transform: translateY(-6px) scale(0.97, 1.04);
	}
}

@keyframes atlas-dribble-shadow {
	0%,
	100% {
		opacity: 1;
		transform: scaleX(1);
	}

	50% {
		opacity: 0.35;
		transform: scaleX(0.55);
	}
}

@keyframes atlas-phrase {
	from {
		opacity: 0;
		transform: translateY(4px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.atlas-card,
	.atlas-panel,
	.atlas-backdrop,
	.atlas-notice,
	.atlas-bone,
	.atlas-notice-dot,
	.atlas-dribble-ball,
	.atlas-dribble-shadow,
	.atlas-phrase.is-in,
	.atlas-panel .atlas-rich .atlas-seg-btn,
	.atlas-rich .atlas-table-frame::after {
		transition: none;
		animation: none;
	}
}

@media (max-width: 400px) {
	.atlas-panel .atlas-stats-wrap {
		padding: 12px 8px;
	}

	.atlas-panel .atlas-stat-value {
		font-size: 17px;
	}

	.atlas-panel .atlas-fact {
		grid-template-columns: 7.5em 1fr;
		gap: 8px;
		font-size: 13px;
	}

	.atlas-info {
		padding: 12px 12px 4px;
	}
}

@media (max-width: 340px) {
	.atlas-panel .atlas-stat-value {
		font-size: 15px;
	}

	.atlas-panel .atlas-fact {
		grid-template-columns: 6.8em 1fr;
		font-size: 12.5px;
	}

	.atlas-panel .atlas-stat-label {
		font-size: 10px;
	}
}

