.w101tv-app,
.w101tv-app * {
	box-sizing: border-box;
}

.w101tv-app {
	--w101tv-accent: #16855b;
	--w101tv-accent-dark: #0d5d3e;
	--w101tv-accent-dark: color-mix(in srgb, var(--w101tv-accent) 76%, #09291d);
	--w101tv-accent-soft: #edf8f2;
	--w101tv-accent-soft: color-mix(in srgb, var(--w101tv-accent) 11%, #ffffff);
	--w101tv-ink: #17211c;
	--w101tv-muted: #66726b;
	--w101tv-border: #dfe7e2;
	--w101tv-surface: #ffffff;
	--w101tv-surface-soft: #f6f9f7;
	--w101tv-shadow: 0 14px 38px rgba(20, 51, 37, 0.08);
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	color: var(--w101tv-ink);
	font-family: inherit;
	line-height: 1.6;
}

.w101tv-app button,
.w101tv-app input,
.w101tv-app select {
	font: inherit;
}

.w101tv-app button {
	cursor: pointer;
}

.w101tv-app button:focus-visible,
.w101tv-app input:focus-visible,
.w101tv-app select:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--w101tv-accent) 35%, transparent);
	outline-offset: 2px;
}

.w101tv-app [hidden] {
	display: none !important;
}

.w101tv-hero {
	position: relative;
	overflow: hidden;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 32px;
	align-items: center;
	padding: clamp(28px, 5vw, 60px);
	border: 1px solid color-mix(in srgb, var(--w101tv-accent) 22%, #ffffff);
	border-radius: 28px;
	background:
		radial-gradient(circle at 82% 18%, color-mix(in srgb, var(--w101tv-accent) 26%, transparent) 0, transparent 30%),
		linear-gradient(135deg, color-mix(in srgb, var(--w101tv-accent) 11%, #ffffff), #ffffff 58%);
	box-shadow: var(--w101tv-shadow);
}

.w101tv-hero::after {
	content: "";
	position: absolute;
	right: -95px;
	bottom: -130px;
	width: 320px;
	height: 320px;
	border-radius: 50%;
	border: 50px solid color-mix(in srgb, var(--w101tv-accent) 7%, transparent);
	pointer-events: none;
}

.w101tv-hero__content {
	position: relative;
	z-index: 1;
	max-width: 820px;
}

.w101tv-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	padding: 6px 11px;
	border-radius: 999px;
	background: var(--w101tv-accent-soft);
	color: var(--w101tv-accent-dark);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	line-height: 1.2;
	text-transform: uppercase;
}

.w101tv-title {
	margin: 0;
	color: var(--w101tv-ink);
	font-size: clamp(2rem, 5vw, 3.65rem);
	font-weight: 850;
	letter-spacing: -0.045em;
	line-height: 1.05;
}

.w101tv-intro {
	max-width: 760px;
	margin: 18px 0 0;
	color: #4c5a52;
	font-size: clamp(1rem, 1.6vw, 1.16rem);
}

.w101tv-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

.w101tv-stats span {
	display: inline-flex;
	align-items: baseline;
	gap: 7px;
	padding: 9px 13px;
	border: 1px solid var(--w101tv-border);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.74);
	color: var(--w101tv-muted);
	font-size: 0.86rem;
	backdrop-filter: blur(8px);
}

.w101tv-stats strong {
	color: var(--w101tv-accent-dark);
	font-size: 1.05rem;
}

.w101tv-hero__mark {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 145px;
	height: 145px;
	border: 1px solid rgba(255, 255, 255, 0.55);
	border-radius: 36px;
	background: linear-gradient(145deg, var(--w101tv-accent), var(--w101tv-accent-dark));
	box-shadow: 0 22px 45px color-mix(in srgb, var(--w101tv-accent) 28%, transparent);
	color: #ffffff;
	transform: rotate(3deg);
}

.w101tv-hero__mark span {
	font-size: 4.7rem;
	font-weight: 900;
	line-height: 1;
}

.w101tv-hero__mark small {
	position: absolute;
	right: 18px;
	bottom: 16px;
	font-size: 1rem;
	font-weight: 800;
}

.w101tv-progress-card {
	margin-top: 20px;
	padding: 18px 20px;
	border: 1px solid var(--w101tv-border);
	border-radius: 18px;
	background: var(--w101tv-surface);
	box-shadow: 0 8px 24px rgba(20, 51, 37, 0.045);
}

.w101tv-progress-card__top {
	display: flex;
	justify-content: space-between;
	gap: 18px;
	align-items: center;
}

.w101tv-progress-card__top > div {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	align-items: baseline;
}

.w101tv-progress-card strong {
	font-size: 0.98rem;
}

.w101tv-progress-text {
	color: var(--w101tv-muted);
	font-size: 0.88rem;
}

.w101tv-progress-track,
.w101tv-quiz-progress {
	overflow: hidden;
	height: 9px;
	margin-top: 13px;
	border-radius: 999px;
	background: #e7eee9;
}

.w101tv-progress-fill,
.w101tv-quiz-progress span {
	display: block;
	width: 0;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--w101tv-accent), color-mix(in srgb, var(--w101tv-accent) 70%, #8edab8));
	transition: width 220ms ease;
}

.w101tv-view-tabs {
	display: inline-flex;
	gap: 6px;
	margin: 28px 0 16px;
	padding: 5px;
	border: 1px solid var(--w101tv-border);
	border-radius: 14px;
	background: var(--w101tv-surface-soft);
}

.w101tv-tab {
	min-height: 42px;
	padding: 8px 18px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--w101tv-muted);
	font-weight: 750;
}

.w101tv-tab.is-active {
	background: var(--w101tv-surface);
	box-shadow: 0 4px 14px rgba(20, 51, 37, 0.08);
	color: var(--w101tv-accent-dark);
}

.w101tv-toolbar {
	position: sticky;
	top: 14px;
	z-index: 20;
	padding: 16px;
	border: 1px solid var(--w101tv-border);
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.94);
	box-shadow: 0 12px 34px rgba(20, 51, 37, 0.08);
	backdrop-filter: blur(14px);
}

body.admin-bar .w101tv-toolbar {
	top: 46px;
}

.w101tv-search-wrap {
	position: relative;
}

.w101tv-search-icon {
	position: absolute;
	left: 17px;
	top: 50%;
	width: 16px;
	height: 16px;
	border: 2px solid #738078;
	border-radius: 50%;
	transform: translateY(-58%);
	pointer-events: none;
}

.w101tv-search-icon::after {
	content: "";
	position: absolute;
	right: -6px;
	bottom: -4px;
	width: 7px;
	height: 2px;
	border-radius: 2px;
	background: #738078;
	transform: rotate(45deg);
}

.w101tv-search {
	width: 100%;
	height: 52px;
	padding: 10px 16px 10px 48px;
	border: 1px solid #d7e1da;
	border-radius: 14px;
	background: #ffffff;
	color: var(--w101tv-ink);
	box-shadow: inset 0 1px 2px rgba(20, 51, 37, 0.025);
}

.w101tv-search::placeholder {
	color: #89948e;
}

.w101tv-filter-row {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	align-items: center;
	margin-top: 11px;
}

.w101tv-filter-row select,
.w101tv-filter-button {
	min-height: 42px;
	padding: 8px 13px;
	border: 1px solid var(--w101tv-border);
	border-radius: 11px;
	background: #ffffff;
	color: #3f4c45;
	font-size: 0.9rem;
	font-weight: 650;
}

.w101tv-filter-row select {
	padding-right: 34px;
}

.w101tv-filter-button:hover,
.w101tv-filter-button[aria-pressed="true"] {
	border-color: color-mix(in srgb, var(--w101tv-accent) 48%, #ffffff);
	background: var(--w101tv-accent-soft);
	color: var(--w101tv-accent-dark);
}

.w101tv-text-button {
	padding: 5px 3px;
	border: 0;
	background: transparent;
	color: var(--w101tv-accent-dark);
	font-size: 0.86rem;
	font-weight: 750;
	text-decoration: underline;
	text-decoration-color: color-mix(in srgb, var(--w101tv-accent) 35%, transparent);
	text-underline-offset: 3px;
}

.w101tv-results-bar {
	display: flex;
	justify-content: space-between;
	gap: 18px;
	align-items: center;
	margin: 18px 2px 13px;
	color: var(--w101tv-muted);
	font-size: 0.86rem;
}

.w101tv-results-count {
	color: var(--w101tv-ink);
	white-space: nowrap;
}

.w101tv-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.w101tv-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 100%;
	padding: 22px;
	border: 1px solid var(--w101tv-border);
	border-radius: 20px;
	background: var(--w101tv-surface);
	box-shadow: 0 8px 26px rgba(20, 51, 37, 0.055);
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
	content-visibility: auto;
	contain-intrinsic-size: 420px;
}

.w101tv-card:hover {
	border-color: color-mix(in srgb, var(--w101tv-accent) 30%, #e3e9e5);
	box-shadow: 0 16px 38px rgba(20, 51, 37, 0.1);
	transform: translateY(-2px);
}

.w101tv-card.is-learned {
	border-color: color-mix(in srgb, var(--w101tv-accent) 40%, #dfe7e2);
	background: linear-gradient(155deg, #ffffff 48%, var(--w101tv-accent-soft));
}

.w101tv-card.is-favorite::before {
	content: "";
	position: absolute;
	top: -1px;
	right: 24px;
	width: 24px;
	height: 34px;
	background: var(--w101tv-accent);
	clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%);
}

.w101tv-card__top {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	align-items: center;
}

.w101tv-number {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 3px 9px;
	border-radius: 999px;
	background: var(--w101tv-surface-soft);
	color: #738078;
	font-size: 0.76rem;
	font-weight: 800;
}

.w101tv-card__actions {
	display: flex;
	gap: 7px;
}

.w101tv-icon-button {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1px solid var(--w101tv-border);
	border-radius: 10px;
	background: #ffffff;
	color: #5a675f;
	font-size: 1.25rem;
	line-height: 1;
}

.w101tv-icon-button:hover,
.w101tv-icon-button[aria-pressed="true"] {
	border-color: color-mix(in srgb, var(--w101tv-accent) 42%, #ffffff);
	background: var(--w101tv-accent-soft);
	color: var(--w101tv-accent-dark);
}

.w101tv-favorite[aria-pressed="true"] span {
	font-size: 0;
}

.w101tv-favorite[aria-pressed="true"] span::after {
	content: "★";
	font-size: 1.16rem;
}

.w101tv-speaker-icon {
	position: relative;
	width: 15px;
	height: 14px;
}

.w101tv-speaker-icon::before {
	content: "";
	position: absolute;
	left: 0;
	top: 4px;
	width: 6px;
	height: 7px;
	border-radius: 2px 0 0 2px;
	background: currentColor;
}

.w101tv-speaker-icon::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 1px;
	width: 9px;
	height: 13px;
	border: 2px solid currentColor;
	border-left: 0;
	border-radius: 0 14px 14px 0;
}

.w101tv-word-line {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: baseline;
	margin-top: 13px;
}

.w101tv-word {
	margin: 0;
	color: var(--w101tv-ink);
	font-size: clamp(1.55rem, 3vw, 2.05rem);
	font-weight: 850;
	letter-spacing: -0.03em;
	line-height: 1.15;
}

.w101tv-pos {
	padding: 3px 9px;
	border-radius: 999px;
	background: var(--w101tv-accent-soft);
	color: var(--w101tv-accent-dark);
	font-size: 0.74rem;
	font-style: italic;
	font-weight: 750;
}

.w101tv-week-label {
	margin-top: 5px;
	color: #8a958e;
	font-size: 0.76rem;
	font-weight: 700;
}

.w101tv-examples {
	display: grid;
	gap: 10px;
	margin: 18px 0 20px;
	padding: 0;
	list-style: none;
	counter-reset: w101tv-example;
}

.w101tv-examples li {
	position: relative;
	padding-left: 31px;
	color: #455149;
	font-size: 0.94rem;
	counter-increment: w101tv-example;
}

.w101tv-examples li::before {
	content: counter(w101tv-example);
	position: absolute;
	left: 0;
	top: 1px;
	display: grid;
	place-items: center;
	width: 21px;
	height: 21px;
	border-radius: 7px;
	background: var(--w101tv-surface-soft);
	color: #718077;
	font-size: 0.69rem;
	font-weight: 850;
}

.w101tv-learned-button {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 42px;
	margin-top: auto;
	padding: 8px 13px;
	border: 1px solid var(--w101tv-border);
	border-radius: 11px;
	background: #ffffff;
	color: #526058;
	font-size: 0.86rem;
	font-weight: 750;
}

.w101tv-learned-button:hover,
.w101tv-learned-button[aria-pressed="true"] {
	border-color: color-mix(in srgb, var(--w101tv-accent) 42%, #ffffff);
	background: var(--w101tv-accent-soft);
	color: var(--w101tv-accent-dark);
}

.w101tv-check {
	display: grid;
	place-items: center;
	width: 19px;
	height: 19px;
	border: 1px solid #acb8b0;
	border-radius: 6px;
	color: transparent;
	font-size: 0.72rem;
}

.w101tv-learned-button[aria-pressed="true"] .w101tv-check {
	border-color: var(--w101tv-accent);
	background: var(--w101tv-accent);
	color: #ffffff;
}

.w101tv-empty {
	display: grid;
	place-items: center;
	gap: 5px;
	min-height: 210px;
	margin-top: 18px;
	padding: 28px;
	border: 1px dashed #cad5ce;
	border-radius: 18px;
	background: var(--w101tv-surface-soft);
	text-align: center;
}

.w101tv-empty span {
	color: var(--w101tv-muted);
}

.w101tv-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	justify-content: center;
	align-items: center;
	margin-top: 28px;
}

.w101tv-page-button {
	display: grid;
	place-items: center;
	min-width: 40px;
	height: 40px;
	padding: 6px 11px;
	border: 1px solid var(--w101tv-border);
	border-radius: 10px;
	background: #ffffff;
	color: #4e5b53;
	font-weight: 750;
}

.w101tv-page-button:hover,
.w101tv-page-button.is-current {
	border-color: var(--w101tv-accent);
	background: var(--w101tv-accent);
	color: #ffffff;
}

.w101tv-page-button:disabled {
	cursor: not-allowed;
	opacity: 0.45;
}

.w101tv-pagination-ellipsis {
	padding: 0 3px;
	color: #8b968f;
}

.w101tv-quiz-view {
	padding: clamp(22px, 5vw, 48px);
	border: 1px solid var(--w101tv-border);
	border-radius: 24px;
	background: linear-gradient(145deg, var(--w101tv-surface-soft), #ffffff);
	box-shadow: var(--w101tv-shadow);
}

.w101tv-quiz-intro {
	max-width: 690px;
	margin: 0 auto;
	text-align: center;
}

.w101tv-quiz-intro h2 {
	margin: 4px 0 10px;
	font-size: clamp(1.65rem, 4vw, 2.6rem);
	line-height: 1.15;
}

.w101tv-quiz-intro p {
	margin: 0 auto 22px;
	color: var(--w101tv-muted);
}

.w101tv-primary-button {
	min-height: 44px;
	padding: 9px 20px;
	border: 1px solid var(--w101tv-accent);
	border-radius: 12px;
	background: var(--w101tv-accent);
	box-shadow: 0 8px 22px color-mix(in srgb, var(--w101tv-accent) 22%, transparent);
	color: #ffffff;
	font-weight: 800;
}

.w101tv-primary-button:hover {
	background: var(--w101tv-accent-dark);
}

.w101tv-quiz-stage {
	max-width: 760px;
	margin: 0 auto;
}

.w101tv-quiz-meta {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 4px;
	color: var(--w101tv-muted);
	font-size: 0.87rem;
	font-weight: 750;
}

.w101tv-quiz-card {
	margin-top: 20px;
	padding: clamp(22px, 4vw, 34px);
	border: 1px solid var(--w101tv-border);
	border-radius: 20px;
	background: #ffffff;
	box-shadow: 0 12px 34px rgba(20, 51, 37, 0.08);
}

.w101tv-quiz-pos {
	display: inline-flex;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--w101tv-accent-soft);
	color: var(--w101tv-accent-dark);
	font-size: 0.76rem;
	font-style: italic;
	font-weight: 800;
}

.w101tv-quiz-sentence {
	margin: 18px 0 22px;
	font-size: clamp(1.22rem, 3vw, 1.7rem);
	font-weight: 720;
	line-height: 1.45;
}

.w101tv-quiz-blank {
	display: inline-block;
	min-width: 92px;
	border-bottom: 3px solid var(--w101tv-accent);
	color: var(--w101tv-accent-dark);
	text-align: center;
}

.w101tv-quiz-options {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.w101tv-quiz-option {
	min-height: 48px;
	padding: 10px 14px;
	border: 1px solid var(--w101tv-border);
	border-radius: 12px;
	background: #ffffff;
	color: var(--w101tv-ink);
	font-weight: 750;
	text-align: left;
}

.w101tv-quiz-option:hover:not(:disabled) {
	border-color: var(--w101tv-accent);
	background: var(--w101tv-accent-soft);
}

.w101tv-quiz-option.is-correct {
	border-color: #258753;
	background: #e9f7ef;
	color: #17633c;
}

.w101tv-quiz-option.is-incorrect {
	border-color: #bd4d4d;
	background: #fff0f0;
	color: #8b3030;
}

.w101tv-quiz-feedback {
	min-height: 28px;
	margin-top: 16px;
	font-weight: 750;
}

.w101tv-next-question {
	margin-top: 13px;
}

@media (max-width: 900px) {
	.w101tv-grid {
		grid-template-columns: 1fr;
	}

	.w101tv-hero__mark {
		width: 115px;
		height: 115px;
		border-radius: 28px;
	}

	.w101tv-hero__mark span {
		font-size: 3.8rem;
	}
}

@media (max-width: 680px) {
	.w101tv-hero {
		grid-template-columns: 1fr;
		padding: 27px 22px;
		border-radius: 22px;
	}

	.w101tv-hero__mark {
		display: none;
	}

	.w101tv-stats {
		gap: 8px;
	}

	.w101tv-stats span {
		padding: 7px 10px;
	}

	.w101tv-progress-card__top,
	.w101tv-results-bar {
		align-items: flex-start;
		flex-direction: column;
	}

	.w101tv-results-bar span {
		display: none;
	}

	.w101tv-view-tabs {
		display: flex;
	}

	.w101tv-tab {
		flex: 1;
	}

	.w101tv-toolbar {
		top: 7px;
		padding: 11px;
		border-radius: 16px;
	}

	body.admin-bar .w101tv-toolbar {
		top: 7px;
	}

	.w101tv-filter-row label,
	.w101tv-filter-row select {
		width: 100%;
	}

	.w101tv-filter-button {
		flex: 1;
	}

	.w101tv-card {
		padding: 19px;
		border-radius: 17px;
	}

	.w101tv-quiz-options {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.w101tv-app *,
	.w101tv-app *::before,
	.w101tv-app *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}

@media print {
	.w101tv-toolbar,
	.w101tv-view-tabs,
	.w101tv-progress-card,
	.w101tv-card__actions,
	.w101tv-learned-button,
	.w101tv-pagination,
	.w101tv-quiz-view {
		display: none !important;
	}

	.w101tv-grid {
		display: block;
	}

	.w101tv-card,
	.w101tv-card[hidden] {
		display: block !important;
		break-inside: avoid;
		margin-bottom: 14px;
		box-shadow: none;
	}
}
