/**
 * Earn Dashboard — the inline earning band.
 *
 * Light and clean so it belongs to the site rather than fighting it. Depth
 * comes from a soft shadow and coloured metric chips, not a dark slab.
 * Colours are literal so no theme can wash them out.
 */

.earn-bar {
	--eb-ink: #1a1430;
	--eb-soft: #6b647f;
	--eb-faint: #6b6584;
	--eb-line: #e8e4f2;

	width: 100%;
	background: linear-gradient(180deg, #ffffff 0%, #faf9fe 100%);
	color: var(--eb-ink);
	font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
	font-size: 14px;
	line-height: 1.4;
	box-sizing: border-box;
	border-bottom: 1px solid var(--eb-line);
	box-shadow: 0 6px 20px -16px rgba(26, 20, 48, .5);
	position: relative;
}

.earn-bar *, .earn-bar *::before, .earn-bar *::after { box-sizing: border-box; }

/* Animated accent rule along the top. */
.earn-bar::before {
	content: "";
	display: block;
	height: 3px;
	background: linear-gradient(90deg, #7c3aed, #d946ef 35%, #06b6d4 70%, #7c3aed);
	background-size: 300% 100%;
	animation: earnSheen 9s linear infinite;
}

@keyframes earnSheen { from { background-position: 0 0; } to { background-position: 300% 0; } }

.earn-bar.is-loading { display: none; }

.earn-bar__inner {
	display: flex;
	align-items: center;
	gap: 14px;
	max-width: 1240px;
	margin: 0 auto;
	padding: 12px 18px;
}

.earn-bar__guest,
.earn-bar__member { display: flex; align-items: center; gap: 14px; width: 100%; min-width: 0; }

/* ---------------------------------------------------------------- guest */

.earn-bar__lock {
	display: inline-flex; align-items: center; justify-content: center;
	width: 36px; height: 36px; flex: 0 0 36px;
	border-radius: 50%;
	background: #f1ecfe;
	color: #7c3aed;
}

.earn-bar__guest-text { display: flex; flex-direction: column; margin-right: auto; min-width: 0; }
.earn-bar__guest-text strong { font-size: 14px; font-weight: 700; color: var(--eb-ink); }
.earn-bar__guest-text small { font-size: 12px; color: var(--eb-soft); }

/* ------------------------------------------------------- metric "chips" */

.earn-metric {
	flex: 1 1 200px;
	min-width: 118px;
	max-width: 300px;
	padding: 8px 13px;
	border: 1px solid var(--eb-line);
	border-radius: 12px;
	background: #ffffff;
	transition: border-color .25s, box-shadow .25s, transform .25s;
}

.earn-metric:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -14px rgba(26, 20, 48, .7); }

.earn-metric__top {
	display: flex; align-items: center; justify-content: space-between;
	gap: 8px; margin-bottom: 6px;
}

.earn-metric__label {
	display: inline-flex; align-items: center; gap: 5px;
	font-size: 10px; font-weight: 800; letter-spacing: .12em;
	text-transform: uppercase; color: var(--eb-faint);
}

.earn-metric__count { font-size: 13.5px; font-variant-numeric: tabular-nums; color: var(--eb-ink); }
.earn-metric__count b { font-weight: 800; }
.earn-metric__count i { font-style: normal; opacity: .3; margin: 0 2px; }
.earn-metric__count em { font-style: normal; opacity: .45; margin-left: 1px; }

.earn-track { height: 6px; border-radius: 999px; background: #efecf7; overflow: hidden; }

.earn-track__fill {
	display: block; height: 100%; width: 0; border-radius: 999px;
	background: linear-gradient(90deg, #8b5cf6, #d946ef);
	transition: width .5s cubic-bezier(.2, .8, .3, 1);
}

.earn-track__fill--time { background: linear-gradient(90deg, #38bdf8, #6366f1); }
.earn-track__fill--streak { background: linear-gradient(90deg, #fbbf24, #fb7185); }

/* Per-metric accent on the label icon. */
.earn-metric--time .earn-metric__label svg { color: #3b82f6; }
.earn-metric--streak .earn-metric__label svg { color: #f59e0b; }
.earn-metric__label svg { color: #8b5cf6; }

/* Time target met: the chip turns green. */
.earn-metric--time.is-done { border-color: rgba(16, 185, 129, .4); background: #f1fcf7; }
.earn-metric--time.is-done .earn-track__fill--time { background: linear-gradient(90deg, #10b981, #34d399); }
.earn-metric--time.is-done .earn-metric__label,
.earn-metric--time.is-done .earn-metric__label svg { color: #0f7a4d; }
.earn-metric--time.is-done .earn-metric__count b { color: #0f9d58; }

.earn-bar.is-complete .earn-track__fill { background: linear-gradient(90deg, #10b981, #34d399); }

/* ---------------------------------------------------------------- money */

.earn-money {
	display: flex; flex-direction: column; flex: 0 0 auto;
	padding: 7px 16px;
	border-radius: 12px;
	background: linear-gradient(135deg, #10b981, #059669);
	box-shadow: 0 8px 18px -10px rgba(16, 185, 129, .9);
}

.earn-money__label {
	display: inline-flex; align-items: center; gap: 5px;
	font-size: 9.5px; font-weight: 800; letter-spacing: .12em;
	text-transform: uppercase; color: rgba(255, 255, 255, .85);
}

.earn-money__value {
	font-size: 18px; font-weight: 800; color: #ffffff;
	font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}

/* -------------------------------------------------------------- account */

.earn-account-link {
	display: flex; align-items: center; gap: 10px; flex: 0 0 auto;
	padding: 4px 14px 4px 4px;
	border-radius: 999px;
	border: 1px solid var(--eb-line);
	background: #ffffff;
	text-decoration: none; color: inherit;
	transition: border-color .2s, background .2s, transform .2s;
}

.earn-account-link:hover { border-color: #a78bfa; background: #f8f5ff; transform: translateY(-1px); color: inherit; }

.earn-account-link__avatar img {
	display: block; width: 34px; height: 34px;
	border-radius: 50%; background: #efecf7; object-fit: cover;
}

.earn-account-link__text { display: flex; flex-direction: column; line-height: 1.25; }
.earn-account-link__text small { font-size: 9.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--eb-faint); }
.earn-account-link__text b { font-size: 13.5px; font-weight: 700; color: #6d28d9; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------------------------------------------------------- toast */

.earn-bar__toast {
	margin: 0; padding: 8px 16px;
	background: linear-gradient(90deg, #10b981, #34d399);
	color: #ffffff; font-size: 13px; font-weight: 800; text-align: center;
	animation: earnToastIn .35s cubic-bezier(.2, .8, .3, 1);
}

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

/* ----------------------------------------------------------- responsive */

@media ( max-width: 900px ) {
	.earn-bar__inner { gap: 10px; padding: 11px 14px; }
	.earn-bar__member { gap: 10px; flex-wrap: wrap; }
	.earn-metric { flex: 1 1 150px; max-width: none; }
	.earn-account-link__text { display: none; }
	.earn-account-link { padding: 4px; }
}

@media ( max-width: 620px ) {
	.earn-metric { flex: 1 1 calc( 50% - 5px ); min-width: 0; padding: 7px 11px; }
	.earn-money { order: 3; flex: 1 1 auto; }
	.earn-account-link { order: 4; margin-left: auto; }
	.earn-bar__guest { flex-wrap: wrap; }
	.earn-bar__guest-text { flex: 1 1 100%; order: 2; }
}

@media ( prefers-reduced-motion: reduce ) {
	.earn-track__fill { transition: none; }
	.earn-bar::before, .earn-bar__toast { animation: none; }
	.earn-metric:hover, .earn-account-link:hover { transform: none; }
}

/* ======================================================================
   Progress rings — one per metric, sitting before its label.
   The circle has r=15.9155, so its circumference is 100 and a
   stroke-dasharray of "N 100" is literally N percent.
   ====================================================================== */

.earn-metric { display: flex; align-items: center; gap: 11px; }
.earn-metric__body { flex: 1; min-width: 0; }

.earn-ring {
	position: relative;
	flex: 0 0 38px;
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
}

.earn-ring svg {
	width: 38px;
	height: 38px;
	transform: rotate(-90deg);
	overflow: visible;
}

.earn-ring__bg { fill: none; stroke: #efecf7; stroke-width: 3.4; }

.earn-ring__fg {
	fill: none;
	stroke-width: 3.4;
	stroke-linecap: round;
	transition: stroke-dasharray .7s cubic-bezier(.2, .8, .3, 1), stroke .35s;
}

.earn-ring--time .earn-ring__fg { stroke: #3b82f6; }
.earn-ring--page .earn-ring__fg { stroke: #8b5cf6; }
.earn-ring--day  .earn-ring__fg { stroke: #f59e0b; }

.earn-ring i {
	position: absolute;
	font-style: normal;
	font-size: 9.5px;
	font-weight: 800;
	color: var(--eb-soft);
	font-variant-numeric: tabular-nums;
	letter-spacing: -.02em;
}

/* Finished states glow and turn green. */
.earn-metric--time.is-done .earn-ring__fg { stroke: #10b981; }
.earn-metric--time.is-done .earn-ring i { color: #0f9d58; }
.earn-metric--time.is-done .earn-ring { animation: earnRingPop .5s cubic-bezier(.2, .9, .3, 1); }

.earn-bar.is-complete .earn-ring--page .earn-ring__fg { stroke: #10b981; }

@keyframes earnRingPop {
	0%   { transform: scale(1); }
	45%  { transform: scale(1.14); }
	100% { transform: scale(1); }
}

/* A soft pulse while a ring is still filling, so the bar feels alive. */
.earn-ring--time.is-running::after {
	content: "";
	position: absolute;
	inset: -3px;
	border-radius: 50%;
	border: 2px solid rgba(59, 130, 246, .35);
	animation: earnRingPulse 2s ease-out infinite;
}

@keyframes earnRingPulse {
	0%   { transform: scale(.9); opacity: .85; }
	70%  { transform: scale(1.25); opacity: 0; }
	100% { transform: scale(1.25); opacity: 0; }
}

.earn-money, .earn-account-link { animation: earnChipIn .5s cubic-bezier(.2, .8, .3, 1) backwards; }
.earn-money { animation-delay: .1s; }
.earn-account-link { animation-delay: .18s; }
.earn-metric { animation: earnChipIn .5s cubic-bezier(.2, .8, .3, 1) backwards; }
.earn-metric:nth-of-type(2) { animation-delay: .05s; }
.earn-metric:nth-of-type(3) { animation-delay: .1s; }

@keyframes earnChipIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

@media ( max-width: 620px ) {
	.earn-ring, .earn-ring svg { width: 32px; height: 32px; }
	.earn-ring { flex: 0 0 32px; }
	.earn-ring i { font-size: 8.5px; }
	.earn-metric { gap: 9px; }
}

@media ( prefers-reduced-motion: reduce ) {
	.earn-ring__fg { transition: none; }
	.earn-metric, .earn-money, .earn-account-link,
	.earn-ring--time.is-running::after,
	.earn-metric--time.is-done .earn-ring { animation: none; }
}

/* ======================================================================
   Earnings widget — the piece people look at first.
   ====================================================================== */

.earn-money {
	position: relative;
	overflow: hidden;
	flex-direction: row;
	align-items: center;
	gap: 10px;
	padding: 8px 15px 8px 11px;
	border-radius: 14px;
	background: linear-gradient(135deg, #059669 0%, #10b981 55%, #34d399 100%);
	border: 0;
	box-shadow: 0 10px 24px -12px rgba(16, 185, 129, .95), inset 0 1px 0 rgba(255,255,255,.35);
}

/* A slow highlight sweeping across the chip. */
.earn-money__shine {
	position: absolute;
	top: 0; bottom: 0; left: -60%;
	width: 45%;
	background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
	transform: skewX(-18deg);
	animation: earnShine 4.5s ease-in-out infinite;
	pointer-events: none;
}

@keyframes earnShine {
	0%   { left: -60%; }
	55%  { left: 130%; }
	100% { left: 130%; }
}

.earn-money__ico {
	position: relative;
	display: grid; place-items: center;
	width: 32px; height: 32px; flex: 0 0 32px;
	border-radius: 10px;
	background: rgba(255,255,255,.22);
	border: 1px solid rgba(255,255,255,.3);
	color: #fff;
}

.earn-money__text { position: relative; display: flex; flex-direction: column; line-height: 1.15; }

.earn-money__label,
.earn-money__text small {
	display: block;
	font-size: 9.5px; font-weight: 800; letter-spacing: .14em;
	text-transform: uppercase; color: rgba(255,255,255,.82);
}

.earn-money__value {
	font-size: 19px; font-weight: 800; color: #fff;
	letter-spacing: -.03em; font-variant-numeric: tabular-nums;
	text-shadow: 0 2px 8px rgba(0,0,0,.18);
}

.earn-money__delta {
	position: relative;
	align-self: center;
	padding: 3px 9px;
	border-radius: 999px;
	background: rgba(255,255,255,.22);
	border: 1px solid rgba(255,255,255,.3);
	color: #fff;
	font-size: 11px; font-weight: 800;
	font-variant-numeric: tabular-nums;
	animation: earnDeltaIn .45s cubic-bezier(.2,.9,.3,1);
}

@keyframes earnDeltaIn { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }

@media ( max-width: 620px ) {
	.earn-money { padding: 7px 12px 7px 9px; gap: 8px; }
	.earn-money__ico { width: 28px; height: 28px; flex: 0 0 28px; }
	.earn-money__value { font-size: 17px; }
	.earn-money__delta { display: none; }
}

@media ( prefers-reduced-motion: reduce ) {
	.earn-money__shine, .earn-money__delta { animation: none; }
}

/* ======================================================================
   Account widget — sized to sit level with the earnings chip.
   ====================================================================== */

.earn-bar .earn-account-link {
	gap: 12px;
	min-width: 190px;
	padding: 6px 14px 6px 6px;
	border-radius: 16px;
	border: 1px solid #e4dff2;
	background: linear-gradient(135deg, #ffffff, #faf8ff);
	box-shadow: 0 6px 18px -14px rgba(26, 20, 48, .9);
}

.earn-bar .earn-account-link:hover {
	border-color: #a78bfa;
	background: linear-gradient(135deg, #faf7ff, #f3ecfe);
	box-shadow: 0 10px 24px -14px rgba(124, 58, 237, .9);
}

.earn-bar .earn-account-link__avatar {
	position: relative;
	display: block;
	flex: 0 0 44px;
}

.earn-bar .earn-account-link__avatar img {
	width: 44px;
	height: 44px;
	border-radius: 13px;
	border: 1px solid #e4dff2;
}

/* Live dot so the chip reads as an active session. */
.earn-bar .earn-account-link__avatar::after {
	content: "";
	position: absolute;
	right: -2px;
	bottom: -2px;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: #10b981;
	border: 2px solid #fff;
	box-shadow: 0 0 8px rgba(16, 185, 129, .9);
}

.earn-bar .earn-account-link__text { gap: 1px; margin-right: auto; }

.earn-bar .earn-account-link__text small {
	font-size: 10px;
	letter-spacing: .13em;
	color: #938da8;
}

.earn-bar .earn-account-link__text b {
	font-size: 15.5px;
	font-weight: 800;
	letter-spacing: -.01em;
	color: #6d28d9;
	max-width: 130px;
}

.earn-bar .earn-account-link__chev {
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	flex: 0 0 24px;
	border-radius: 8px;
	background: #f3eefd;
	color: #7c3aed;
	transition: transform .2s, background .2s;
}

.earn-bar .earn-account-link:hover .earn-account-link__chev {
	transform: translateX(2px);
	background: #e9ddfd;
}

@media ( max-width: 900px ) {
	.earn-bar .earn-account-link { min-width: 0; padding: 5px; }
	.earn-bar .earn-account-link__chev { display: none; }
}

@media ( max-width: 620px ) {
	.earn-bar .earn-account-link__avatar { flex: 0 0 38px; }
	.earn-bar .earn-account-link__avatar img { width: 38px; height: 38px; border-radius: 11px; }
}

@media ( prefers-reduced-motion: reduce ) {
	.earn-bar .earn-account-link:hover .earn-account-link__chev { transform: none; }
}

/* ======================================================================
   Metric legibility — the labels were too small and too pale to read at
   a glance, so they take the metric's own accent colour and more weight.
   ====================================================================== */

.earn-bar .earn-metric__label {
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: .1em;
	color: #4a4360;
}

.earn-bar .earn-metric__label svg { width: 15px; height: 15px; }

/* Each label picks up its own hue, which also tells the three apart fast.
   The plain .earn-metric rule is the page metric, so it comes first and the
   two modifiers override it. */
.earn-bar .earn-metric .earn-metric__label { color: #6d28d9; }
.earn-bar .earn-metric--time .earn-metric__label { color: #1d4ed8; }
.earn-bar .earn-metric--streak .earn-metric__label { color: #b45309; }

.earn-bar .earn-metric__count {
	font-size: 16px;
	font-weight: 700;
	color: #14101f;
	letter-spacing: -.01em;
}

.earn-bar .earn-metric__count b { font-weight: 800; }
.earn-bar .earn-metric__count i { opacity: .4; margin: 0 1px; }
.earn-bar .earn-metric__count em { font-size: 12px; opacity: .55; }

.earn-bar .earn-metric__top { margin-bottom: 7px; }

/* A touch more room so the bigger type does not feel cramped. */
.earn-bar .earn-metric { padding: 9px 14px; }
.earn-bar .earn-track { height: 7px; }

/* Percentage inside each ring, also bumped. */
.earn-bar .earn-ring i { font-size: 10.5px; color: #4a4360; }
.earn-bar .earn-metric--time .earn-ring i { color: #1d4ed8; }
.earn-bar .earn-metric--streak .earn-ring i { color: #b45309; }

.earn-bar .earn-metric--time.is-done .earn-metric__label,
.earn-bar .earn-metric--time.is-done .earn-ring i { color: #0f7a4d; }

@media ( max-width: 620px ) {
	.earn-bar .earn-metric__label { font-size: 10.5px; letter-spacing: .08em; }
	.earn-bar .earn-metric__count { font-size: 14.5px; }
}

/* ======================================================================
   Account widget sits hard right, flat (no shadow).
   The metrics stop growing so there is free space for the auto margin
   to push against; without that they would eat the whole row.
   ====================================================================== */

.earn-bar__member .earn-metric { flex: 0 1 240px; }

.earn-bar .earn-account-link,
.earn-bar .earn-account-link:hover {
	margin-left: auto;
	box-shadow: none;
}

@media ( max-width: 900px ) {
	.earn-bar__member .earn-metric { flex: 1 1 150px; }
}

@media ( max-width: 620px ) {
	.earn-bar__member .earn-metric { flex: 1 1 calc( 50% - 5px ); }
}

/* A little more room in the earnings chip so the figure can breathe. */
.earn-bar .earn-money {
	min-width: 215px;
	padding: 8px 18px 8px 13px;
	gap: 12px;
}

@media ( max-width: 900px ) {
	.earn-bar .earn-money { min-width: 190px; }
}

@media ( max-width: 620px ) {
	.earn-bar .earn-money { min-width: 0; padding: 7px 13px 7px 9px; gap: 9px; }
}

/* ======================================================================
   One size for the four data widgets (time, page, day, earnings).
   They had different paddings, flex bases and inner icon sizes, so they
   never lined up. The account chip is deliberately excluded.
   ====================================================================== */

.earn-bar__member .earn-metric,
.earn-bar__member .earn-money {
	flex: 1 1 230px;
	max-width: 280px;
	min-width: 0;
	min-height: 60px;
	margin: 0;
	padding: 9px 15px;
	border-radius: 14px;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 12px;
	box-sizing: border-box;
}

/* Matching leading icon well on all four. */
.earn-bar__member .earn-ring,
.earn-bar__member .earn-ring svg,
.earn-bar__member .earn-money__ico {
	width: 38px;
	height: 38px;
	flex: 0 0 38px;
}

.earn-bar__member .earn-money__ico { border-radius: 11px; }

/* The text column fills the rest in every widget. */
.earn-bar__member .earn-metric__body,
.earn-bar__member .earn-money__text {
	flex: 1 1 auto;
	min-width: 0;
}

.earn-bar__member .earn-money__delta { flex: 0 0 auto; }

@media ( max-width: 900px ) {
	.earn-bar__member .earn-metric,
	.earn-bar__member .earn-money { flex: 1 1 170px; max-width: none; }
}

@media ( max-width: 620px ) {
	.earn-bar__member .earn-metric,
	.earn-bar__member .earn-money {
		flex: 1 1 calc( 50% - 5px );
		min-height: 54px;
		padding: 8px 12px;
		gap: 10px;
	}

	.earn-bar__member .earn-ring,
	.earn-bar__member .earn-ring svg,
	.earn-bar__member .earn-money__ico { width: 32px; height: 32px; flex: 0 0 32px; }
}

/* The band carries the plugin's own face too, for the same reason. */
.earn-bar,
.earn-bar *,
.earn-bar b, .earn-bar small, .earn-bar strong, .earn-bar i,
.earn-bar button, .earn-bar a {
	font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.earn-bar { letter-spacing: .005em; }

/* ======================================================================
   Fit. Plus Jakarta Sans is wider than the theme's condensed face, so the
   five chips no longer fit one row on a ~1024px screen and the counts were
   being clipped. They now wrap to a second row before that happens.
   ====================================================================== */

.earn-bar__member { flex-wrap: wrap; row-gap: 10px; }

@media ( max-width: 1180px ) {
	.earn-bar__member .earn-metric,
	.earn-bar__member .earn-money {
		flex: 1 1 200px;
		max-width: none;
	}

	.earn-bar .earn-account-link { min-width: 0; }
}

/* Nothing in a chip may be clipped: the count keeps its full width. */
.earn-bar .earn-metric__count,
.earn-bar .earn-money__value { white-space: nowrap; }
.earn-bar .earn-metric__top { gap: 10px; }

/* The delta is the first thing to go when space is tight. */
@media ( max-width: 1320px ) {
	.earn-bar .earn-money__delta { display: none; }
}

/* The account chip keeps its own width but matches the others' height,
   so every chip in the row shares one baseline. */
.earn-bar .earn-account-link { min-height: 60px; }

@media ( max-width: 620px ) {
	.earn-bar .earn-account-link { min-height: 54px; }
}

/* ======================================================================
   Post-font-change fit-up.
   Plus Jakarta Sans is wider than the old face, which left "100%" touching
   the ring stroke and the Time chip with 6px of slack. The ring grows, its
   stroke thins, and the type comes down a notch.
   ====================================================================== */

.earn-bar__member .earn-ring,
.earn-bar__member .earn-ring svg {
	width: 42px;
	height: 42px;
	flex: 0 0 42px;
}

.earn-bar .earn-ring__bg,
.earn-bar .earn-ring__fg { stroke-width: 3.1; }

.earn-bar .earn-ring i {
	font-size: 10px;
	font-weight: 800;
	letter-spacing: -.04em;
	line-height: 1;
}

/* The money chip's icon keeps pace with the rings. */
.earn-bar__member .earn-money__ico { width: 42px; height: 42px; flex: 0 0 42px; }

/* Label may shrink and ellipsise; the figure never does. */
.earn-bar .earn-metric__top { gap: 8px; flex-wrap: nowrap; }

.earn-bar .earn-metric__label {
	min-width: 0;
	letter-spacing: .06em;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.earn-bar .earn-metric__count {
	flex: 0 0 auto;
	font-size: 15px;
}

.earn-bar .earn-metric__count em { font-size: 11px; }

@media ( max-width: 620px ) {
	.earn-bar__member .earn-ring,
	.earn-bar__member .earn-ring svg,
	.earn-bar__member .earn-money__ico { width: 34px; height: 34px; flex: 0 0 34px; }

	.earn-bar .earn-ring i { font-size: 9px; }
	.earn-bar .earn-metric__count { font-size: 14px; }
}

/* ======================================================================
   Equal heights. The metric chips carry a 1px border and the money chip
   did not, so they measured 62px against 60px. Same box on all of them.
   ====================================================================== */

.earn-bar__member .earn-metric,
.earn-bar__member .earn-money {
	min-height: 62px;
	border: 1px solid transparent;
}

.earn-bar__member .earn-metric { border-color: var(--eb-line); }
.earn-bar .earn-account-link { min-height: 62px; }

/* Chips rise into place once state has arrived. */
.earn-bar.has-entered .earn-metric,
.earn-bar.has-entered .earn-money,
.earn-bar.has-entered .earn-account-link {
	animation: earnChipIn .5s cubic-bezier(.2, .8, .3, 1) backwards;
}

.earn-bar.has-entered .earn-metric:nth-of-type(2) { animation-delay: .06s; }
.earn-bar.has-entered .earn-metric:nth-of-type(3) { animation-delay: .12s; }
.earn-bar.has-entered .earn-money { animation-delay: .18s; }
.earn-bar.has-entered .earn-account-link { animation-delay: .24s; }

/* The bars sweep out from zero as the numbers count up. */
.earn-bar.has-entered .earn-track__fill {
	animation: earnFillIn .9s cubic-bezier(.2, .8, .3, 1);
}

@keyframes earnFillIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.earn-bar .earn-track__fill { transform-origin: left center; }

@media ( max-width: 620px ) {
	.earn-bar__member .earn-metric,
	.earn-bar__member .earn-money,
	.earn-bar .earn-account-link { min-height: 56px; }
}

@media ( prefers-reduced-motion: reduce ) {
	.earn-bar.has-entered .earn-metric,
	.earn-bar.has-entered .earn-money,
	.earn-bar.has-entered .earn-account-link,
	.earn-bar.has-entered .earn-track__fill { animation: none; }
}
