.wpla-app {
	--wpla-green: #58cc02;
	--wpla-green-dark: #3c9d00;
	--wpla-mint: #d7ffb8;
	--wpla-ink: #1f2937;
	--wpla-muted: #6b7280;
	--wpla-line: #e5e7eb;
	--wpla-bg: #f7faf4;
	color: var(--wpla-ink);
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	max-width: 1120px;
	margin: 0 auto;
	padding: 18px;
}

.wpla-app * {
	box-sizing: border-box;
}

.wpla-auth-panel,
.wpla-dashboard-hero,
.wpla-lesson-shell,
.wpla-leaderboard,
.wpla-dashboard-grid section {
	background: #fff;
	border: 1px solid var(--wpla-line);
	border-radius: 8px;
	box-shadow: 0 12px 30px rgba(31, 41, 55, 0.08);
}

.wpla-auth-panel {
	max-width: 460px;
	margin: 18px auto;
	padding: 24px;
}

.wpla-auth-panel h2,
.wpla-section-head h2,
.wpla-dashboard-hero h2,
.wpla-lesson-top h2 {
	font-size: 28px;
	line-height: 1.15;
	margin: 0 0 14px;
}

.wpla-section-head {
	margin-bottom: 18px;
}

.wpla-section-head p {
	color: var(--wpla-muted);
	margin: 0;
}

.wpla-form {
	display: grid;
	gap: 14px;
}

.wpla-form label,
.wpla-answer-label {
	color: var(--wpla-muted);
	display: grid;
	font-size: 13px;
	font-weight: 700;
	gap: 6px;
}

.wpla-form input,
.wpla-answer-label input {
	border: 2px solid var(--wpla-line);
	border-radius: 8px;
	color: var(--wpla-ink);
	font-size: 16px;
	min-height: 48px;
	padding: 10px 12px;
	width: 100%;
}

.wpla-form input:focus,
.wpla-answer-label input:focus {
	border-color: var(--wpla-green);
	box-shadow: 0 0 0 3px rgba(88, 204, 2, 0.18);
	outline: none;
}

.wpla-check {
	align-items: center;
	display: flex !important;
	flex-direction: row;
	gap: 8px;
}

.wpla-check input {
	min-height: auto;
	width: auto;
}

.wpla-button {
	background: var(--wpla-green);
	border: 0;
	border-bottom: 4px solid var(--wpla-green-dark);
	border-radius: 8px;
	color: #fff;
	cursor: pointer;
	font-size: 16px;
	font-weight: 800;
	min-height: 48px;
	padding: 12px 18px;
	transition: transform 160ms ease, filter 160ms ease;
	width: fit-content;
}

.wpla-button:hover,
.wpla-option:hover,
.wpla-drag-token:hover {
	filter: brightness(0.98);
	transform: translateY(-1px);
}

.wpla-button:disabled {
	cursor: wait;
	opacity: 0.7;
}

.wpla-notice {
	border-radius: 8px;
	font-weight: 700;
	margin: 0 0 14px;
	padding: 12px 14px;
}

.wpla-notice-error {
	background: #fee2e2;
	color: #991b1b;
}

.wpla-notice-success {
	background: var(--wpla-mint);
	color: #246b00;
}

.wpla-lesson-grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.wpla-lesson-card {
	background: #fff;
	border: 2px solid var(--wpla-line);
	border-radius: 8px;
	color: inherit;
	display: grid;
	gap: 12px;
	min-height: 230px;
	padding: 18px;
	text-decoration: none;
	transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.wpla-lesson-card:hover {
	border-color: var(--wpla-green);
	box-shadow: 0 14px 24px rgba(88, 204, 2, 0.14);
	transform: translateY(-2px);
}

.wpla-lesson-card h3 {
	font-size: 22px;
	line-height: 1.2;
	margin: 0;
}

.wpla-lesson-card p {
	color: var(--wpla-muted);
	margin: 0;
}

.wpla-pill {
	background: var(--wpla-mint);
	border-radius: 999px;
	color: #246b00;
	display: inline-flex;
	font-size: 12px;
	font-weight: 900;
	padding: 6px 10px;
	text-transform: uppercase;
}

.wpla-progress {
	background: #edf2e8;
	border-radius: 999px;
	height: 12px;
	overflow: hidden;
	width: 100%;
}

.wpla-progress span {
	background: linear-gradient(90deg, var(--wpla-green), #8ee000);
	border-radius: inherit;
	display: block;
	height: 100%;
	transition: width 300ms ease;
}

.wpla-card-footer,
.wpla-lesson-top,
.wpla-dashboard-hero {
	align-items: center;
	display: flex;
	justify-content: space-between;
	gap: 12px;
}

.wpla-card-footer span {
	color: var(--wpla-muted);
	font-weight: 800;
}

.wpla-start-link {
	align-self: end;
	background: var(--wpla-green);
	border-bottom: 4px solid var(--wpla-green-dark);
	border-radius: 8px;
	color: #fff;
	display: inline-flex;
	font-weight: 900;
	justify-content: center;
	min-height: 44px;
	padding: 10px 14px;
	width: 100%;
}

.wpla-lesson-shell {
	padding: 18px;
}

.wpla-main-progress {
	margin: 12px 0 20px;
}

.wpla-score-badge {
	background: var(--wpla-ink);
	border-radius: 8px;
	color: #fff;
	font-weight: 900;
	padding: 12px 14px;
	white-space: nowrap;
}

.wpla-question {
	display: none;
	animation: wpla-pop 220ms ease;
}

.wpla-question.is-active {
	display: grid;
	gap: 18px;
}

.wpla-question-count {
	color: var(--wpla-muted);
	font-weight: 900;
}

.wpla-question h3 {
	font-size: 24px;
	line-height: 1.25;
	margin: 0;
}

.wpla-options,
.wpla-drag-bank {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.wpla-option,
.wpla-drag-token {
	background: #fff;
	border: 2px solid var(--wpla-line);
	border-radius: 8px;
	color: var(--wpla-ink);
	cursor: pointer;
	font-size: 16px;
	font-weight: 800;
	min-height: 48px;
	padding: 10px 12px;
	transition: border-color 160ms ease, transform 160ms ease;
}

.wpla-option.is-selected,
.wpla-drag-token.is-used {
	background: var(--wpla-mint);
	border-color: var(--wpla-green);
}

.wpla-drop-zone {
	align-content: start;
	background: var(--wpla-bg);
	border: 2px dashed #b7dca4;
	border-radius: 8px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	min-height: 92px;
	padding: 12px;
}

.wpla-drop-zone.is-over {
	border-color: var(--wpla-green);
}

.wpla-question-actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.wpla-answer-feedback {
	font-weight: 900;
}

.wpla-answer-feedback.is-correct {
	color: var(--wpla-green-dark);
}

.wpla-answer-feedback.is-wrong {
	color: #dc2626;
}

.wpla-dashboard-hero {
	margin-bottom: 16px;
	padding: 20px;
}

.wpla-stat-grid {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	margin-bottom: 16px;
}

.wpla-stat {
	background: #fff;
	border: 1px solid var(--wpla-line);
	border-radius: 8px;
	display: grid;
	gap: 4px;
	padding: 16px;
}

.wpla-stat span,
.wpla-stat small {
	color: var(--wpla-muted);
	font-weight: 800;
}

.wpla-stat strong {
	font-size: 30px;
	line-height: 1;
}

.wpla-dashboard-grid {
	display: grid;
	gap: 16px;
	grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
	margin-bottom: 16px;
}

.wpla-dashboard-grid section,
.wpla-leaderboard {
	padding: 18px;
}

.wpla-dashboard-grid h3,
.wpla-leaderboard h3 {
	margin: 0 0 14px;
}

.wpla-progress-list,
.wpla-badge-list,
.wpla-leaderboard-list,
.wpla-type-list,
.wpla-mistake-list {
	display: grid;
	gap: 10px;
}

.wpla-progress-row {
	display: grid;
	gap: 8px;
}

.wpla-progress-row > div:first-child {
	display: flex;
	justify-content: space-between;
	gap: 10px;
}

.wpla-type-row {
	background: var(--wpla-bg);
	border: 1px solid #dfe8d7;
	border-radius: 8px;
	display: grid;
	gap: 8px;
	padding: 12px;
}

.wpla-type-row > div:first-child {
	align-items: center;
	display: flex;
	justify-content: space-between;
	gap: 10px;
}

.wpla-type-row span,
.wpla-type-row small {
	color: var(--wpla-muted);
	font-weight: 800;
}

.wpla-type-meter {
	background: #e8eee4;
	border-radius: 999px;
	height: 10px;
	overflow: hidden;
}

.wpla-type-meter span {
	background: linear-gradient(90deg, #22c55e, var(--wpla-green));
	display: block;
	height: 100%;
}

.wpla-mistake {
	background: #fff7ed;
	border: 1px solid #fed7aa;
	border-radius: 8px;
	display: grid;
	gap: 6px;
	padding: 12px;
}

.wpla-mistake strong {
	color: var(--wpla-ink);
}

.wpla-mistake div {
	color: var(--wpla-ink);
}

.wpla-mistake div span {
	color: var(--wpla-muted);
	font-weight: 900;
}

.wpla-mistake-type {
	background: #ffedd5;
	border-radius: 999px;
	color: #9a3412;
	font-size: 12px;
	font-weight: 900;
	justify-self: start;
	padding: 4px 8px;
	text-transform: uppercase;
}

.wpla-badge {
	align-items: center;
	background: var(--wpla-bg);
	border-radius: 8px;
	display: flex;
	gap: 10px;
	padding: 10px;
}

.wpla-badge > span,
.wpla-rank {
	align-items: center;
	background: var(--wpla-green);
	border-radius: 999px;
	color: #fff;
	display: inline-flex;
	font-weight: 900;
	height: 34px;
	justify-content: center;
	width: 34px;
}

.wpla-badge > img {
	border-radius: 999px;
	height: 42px;
	object-fit: cover;
	width: 42px;
}

.wpla-badge small {
	color: var(--wpla-muted);
	display: block;
}

.wpla-leaderboard-row {
	align-items: center;
	border-bottom: 1px solid var(--wpla-line);
	display: grid;
	gap: 10px;
	grid-template-columns: 40px 1fr auto auto;
	padding: 10px 0;
}

.wpla-leaderboard-row:last-child {
	border-bottom: 0;
}

.wpla-leaderboard-row small {
	color: var(--wpla-muted);
	font-weight: 800;
}

.wpla-profile-hero,
.wpla-continue-card {
	align-items: center;
	background: #fff;
	border: 1px solid var(--wpla-line);
	border-radius: 8px;
	box-shadow: 0 12px 30px rgba(31, 41, 55, 0.08);
	display: grid;
	gap: 18px;
	margin-bottom: 16px;
	padding: 20px;
}

.wpla-profile-hero {
	grid-template-columns: auto 1fr auto;
}

.wpla-profile-hero h2,
.wpla-continue-card h3 {
	font-size: 28px;
	line-height: 1.15;
	margin: 8px 0;
}

.wpla-profile-hero p,
.wpla-continue-card p {
	color: var(--wpla-muted);
	margin: 0;
}

.wpla-profile-avatar {
	align-items: center;
	background: var(--wpla-green);
	border-bottom: 5px solid var(--wpla-green-dark);
	border-radius: 8px;
	color: #fff;
	display: inline-flex;
	font-size: 34px;
	font-weight: 900;
	height: 72px;
	justify-content: center;
	width: 72px;
}

.wpla-continue-card {
	grid-template-columns: 1fr minmax(240px, 340px);
}

.wpla-continue-progress {
	display: grid;
	gap: 10px;
}

.wpla-continue-progress > div:first-child,
.wpla-profile-progress-row > div:first-child {
	align-items: center;
	display: flex;
	justify-content: space-between;
	gap: 10px;
}

.wpla-continue-progress span,
.wpla-profile-progress-row span {
	color: var(--wpla-muted);
	font-weight: 800;
}

.wpla-profile-progress-row {
	border: 1px solid var(--wpla-line);
	border-radius: 8px;
	color: inherit;
	display: grid;
	gap: 8px;
	padding: 12px;
	text-decoration: none;
	transition: border-color 160ms ease, transform 160ms ease;
}

.wpla-profile-progress-row:hover {
	border-color: var(--wpla-green);
	transform: translateY(-1px);
}

.wpla-home {
	max-width: 1180px;
}

.wpla-home-hero {
	align-items: stretch;
	display: grid;
	gap: 18px;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
	margin-bottom: 18px;
}

.wpla-home-copy,
.wpla-home-panel,
.wpla-home-section {
	background: #fff;
	border: 1px solid var(--wpla-line);
	border-radius: 8px;
	box-shadow: 0 12px 30px rgba(31, 41, 55, 0.08);
}

.wpla-home-copy {
	display: grid;
	gap: 16px;
	overflow: hidden;
	padding: 28px;
	position: relative;
}

.wpla-home-copy h1 {
	font-size: 46px;
	line-height: 1.05;
	margin: 0;
}

.wpla-home-copy p,
.wpla-home-panel p {
	color: var(--wpla-muted);
	font-size: 17px;
	line-height: 1.55;
	margin: 0;
}

.wpla-home-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	position: relative;
	z-index: 2;
}

.wpla-home-secondary {
	align-items: center;
	background: #fff;
	border: 2px solid var(--wpla-line);
	border-radius: 8px;
	color: var(--wpla-ink);
	display: inline-flex;
	font-weight: 900;
	min-height: 48px;
	padding: 12px 18px;
	text-decoration: none;
}

.wpla-home-panel {
	display: grid;
	gap: 14px;
	padding: 20px;
}

.wpla-home-panel h2 {
	font-size: 20px;
	margin: 0;
}

.wpla-home-features {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(3, 1fr);
	position: relative;
	z-index: 2;
}

.wpla-home-features div {
	align-items: center;
	display: grid;
	gap: 2px;
	grid-template-columns: 38px 1fr;
}

.wpla-home-features span,
.wpla-home-lesson i {
	align-items: center;
	background: var(--wpla-mint);
	border-radius: 999px;
	color: var(--wpla-green-dark);
	display: inline-flex;
	font-style: normal;
	font-weight: 900;
	height: 34px;
	justify-content: center;
	width: 34px;
}

.wpla-home-features small {
	color: var(--wpla-muted);
	font-weight: 800;
	grid-column: 2;
}

.wpla-home-social {
	align-items: center;
	display: flex;
	gap: 14px;
	position: relative;
	z-index: 2;
}

.wpla-home-avatars {
	display: flex;
}

.wpla-home-avatars img {
	border: 2px solid #fff;
	border-radius: 999px;
	height: 32px;
	margin-left: -8px;
	width: 32px;
}

.wpla-home-avatars img:first-child {
	margin-left: 0;
}

.wpla-home-social strong {
	color: #f5a400;
	display: block;
	letter-spacing: 1px;
}

.wpla-home-social span {
	color: var(--wpla-muted);
	font-size: 13px;
	font-weight: 800;
}

.wpla-home-skyline {
	bottom: 0;
	left: 0;
	opacity: 0.96;
	pointer-events: none;
	position: absolute;
	width: 100%;
	z-index: 1;
}

.wpla-home-copy > .wpla-pill,
.wpla-home-copy h1,
.wpla-home-copy p {
	position: relative;
	z-index: 2;
}

.wpla-home-welcome {
	display: grid;
	gap: 4px;
}

.wpla-home-welcome strong {
	font-size: 20px;
}

.wpla-home-welcome span,
.wpla-home-lesson span,
.wpla-home-lesson small,
.wpla-home-practice span {
	color: var(--wpla-muted);
	font-weight: 800;
}

.wpla-home-mini-stats {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(4, 1fr);
}

.wpla-home-mini-stats div {
	background: var(--wpla-bg);
	border-radius: 8px;
	display: grid;
	gap: 4px;
	padding: 10px;
}

.wpla-home-mini-stats strong {
	font-size: 24px;
}

.wpla-home-continue {
	border: 2px solid var(--wpla-mint);
	border-radius: 8px;
	display: grid;
	gap: 12px;
	padding: 16px;
}

.wpla-home-continue h2 {
	font-size: 26px;
	line-height: 1.15;
	margin: 0;
}

.wpla-home-section {
	margin-bottom: 18px;
	padding: 20px;
}

.wpla-home-section .wpla-section-head {
	align-items: center;
	display: flex;
	justify-content: space-between;
	gap: 14px;
}

.wpla-home-section .wpla-section-head a {
	color: var(--wpla-green-dark);
	font-weight: 900;
	text-decoration: none;
	white-space: nowrap;
}

.wpla-home-lessons,
.wpla-home-practice {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.wpla-home-lesson,
.wpla-home-practice div {
	background: var(--wpla-bg);
	border: 1px solid #dfe8d7;
	border-radius: 8px;
	display: grid;
	gap: 8px;
	padding: 14px;
}

.wpla-home-lesson {
	color: inherit;
	grid-template-columns: 42px 1fr;
	text-decoration: none;
	transition: border-color 160ms ease, transform 160ms ease;
}

.wpla-home-lesson span,
.wpla-home-lesson strong,
.wpla-home-lesson .wpla-progress,
.wpla-home-lesson small {
	grid-column: 2;
}

.wpla-home-lesson i {
	grid-row: 1 / span 4;
	height: 44px;
	width: 44px;
}

.wpla-home-lesson:hover {
	border-color: var(--wpla-green);
	transform: translateY(-1px);
}

.wpla-home-lesson strong,
.wpla-home-practice strong {
	font-size: 18px;
}

.wpla-home-goal {
	align-items: center;
	background: #f3fbef;
	border: 1px solid #dfe8d7;
	border-radius: 8px;
	display: grid;
	gap: 18px;
	grid-template-columns: 1fr minmax(260px, 420px);
	margin-bottom: 18px;
	padding: 18px 20px;
}

.wpla-home-goal > div {
	display: grid;
	gap: 6px;
}

.wpla-home-goal span {
	color: var(--wpla-muted);
	font-weight: 800;
}

.wpla-confetti-layer {
	inset: 0;
	overflow: hidden;
	pointer-events: none;
	position: fixed;
	z-index: 999999;
}

.wpla-confetti-layer span {
	animation: wpla-confetti-fall 2.6s ease-in forwards;
	border-radius: 2px;
	height: 14px;
	position: absolute;
	top: -20px;
	width: 9px;
}

.wpla-lesson-complete {
	animation: wpla-pop 220ms ease;
	background: var(--wpla-mint);
	border: 2px solid var(--wpla-green);
	border-radius: 8px;
	color: #246b00;
	display: grid;
	gap: 4px;
	margin-top: 18px;
	padding: 14px 16px;
}

.wpla-lesson-complete strong {
	font-size: 22px;
}

.wpla-lesson-complete span {
	font-weight: 800;
}

@keyframes wpla-confetti-fall {
	0% {
		opacity: 1;
		transform: translate3d(0, -20px, 0) rotate(0deg);
	}
	100% {
		opacity: 0;
		transform: translate3d(0, 105vh, 0) rotate(720deg);
	}
}

@keyframes wpla-pop {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 760px) {
	.wpla-app {
		padding: 12px;
	}

	.wpla-auth-panel,
	.wpla-dashboard-hero,
	.wpla-lesson-shell,
	.wpla-leaderboard,
	.wpla-profile-hero,
	.wpla-continue-card,
	.wpla-dashboard-grid section {
		box-shadow: none;
	}

	.wpla-card-footer,
	.wpla-lesson-top,
	.wpla-dashboard-hero {
		align-items: flex-start;
		flex-direction: column;
	}

	.wpla-profile-hero,
	.wpla-continue-card,
	.wpla-home-hero {
		align-items: stretch;
		grid-template-columns: 1fr;
	}

	.wpla-home-copy h1 {
		font-size: 34px;
	}

	.wpla-home-features,
	.wpla-home-goal {
		grid-template-columns: 1fr;
	}

	.wpla-home-section .wpla-section-head {
		align-items: flex-start;
		flex-direction: column;
	}

	.wpla-home-mini-stats {
		grid-template-columns: repeat(2, 1fr);
	}

	.wpla-dashboard-grid {
		grid-template-columns: 1fr;
	}

	.wpla-leaderboard-row {
		grid-template-columns: 36px 1fr;
	}

	.wpla-leaderboard-row span:not(.wpla-rank),
	.wpla-leaderboard-row small {
		grid-column: 2;
	}
}
