.ee-app {
	--ee-ink: #16202a;
	--ee-muted: #5b6875;
	--ee-line: #d9dfe5;
	--ee-surface: #ffffff;
	--ee-soft: #f4f6f8;
	--ee-accent: #0b5cad;
	--ee-ok: #17803d;
	--ee-ok-soft: #e6f4ea;
	--ee-bad: #b42318;
	--ee-bad-soft: #fdecea;
	--ee-flag: #b26a00;
	color: var(--ee-ink);
	max-width: 780px;
	margin-inline: auto;
	font-size: 1.0625rem;
	line-height: 1.65;
	scroll-margin-top: 24px;
}

.ee-app h2,
.ee-app h3 {
	margin: 1.5em 0 0.6em;
	line-height: 1.3;
}

.ee-title {
	margin-top: 0;
}

.ee-loading,
.ee-topic-meta,
.ee-progress,
.ee-ref {
	color: var(--ee-muted);
	font-size: 0.9375rem;
}

.ee-error {
	color: var(--ee-bad);
	background: var(--ee-bad-soft);
	padding: 12px 16px;
	border-radius: 8px;
}

.ee-banner {
	background: var(--ee-soft);
	border: 1px solid var(--ee-line);
	border-radius: 10px;
	padding: 16px 20px;
	margin-bottom: 20px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
}

.ee-banner p {
	margin: 0;
	flex: 1 1 320px;
}

.ee-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 20px 0;
}

.ee-btn {
	font: inherit;
	font-weight: 600;
	min-height: 44px;
	padding: 8px 18px;
	border-radius: 8px;
	border: 1px solid var(--ee-line);
	background: var(--ee-surface);
	color: var(--ee-ink);
	cursor: pointer;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
}

.ee-btn:hover:not(:disabled) {
	border-color: var(--ee-accent);
}

.ee-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.ee-btn-primary {
	background: var(--ee-accent);
	border-color: var(--ee-accent);
	color: #fff;
}

.ee-btn-small {
	min-height: 44px;
	padding: 4px 14px;
	font-size: 0.9375rem;
}

.ee-link {
	font: inherit;
	font-size: 0.9375rem;
	background: none;
	border: 0;
	padding: 0;
	color: var(--ee-accent);
	text-decoration: underline;
	cursor: pointer;
}

.ee-app :focus-visible {
	outline: 3px solid var(--ee-accent);
	outline-offset: 2px;
}

.ee-topics,
.ee-options,
.ee-review,
.ee-history ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ee-topic {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 6px 16px;
	align-items: center;
	padding: 14px 0;
	border-bottom: 1px solid var(--ee-line);
}

.ee-topic-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 4px 12px;
}

.ee-topic-title {
	font-weight: 600;
}

.ee-bar {
	grid-column: 1;
	height: 6px;
	background: var(--ee-soft);
	border-radius: 3px;
	overflow: hidden;
}

.ee-bar span {
	display: block;
	height: 100%;
	background: var(--ee-accent);
}

.ee-topic .ee-btn {
	grid-column: 2;
	grid-row: 1 / span 2;
}

.ee-stem {
	font-size: 1.125rem;
	font-weight: 600;
	white-space: pre-line;
	margin: 12px 0 16px;
}

.ee-options li + li {
	margin-top: 10px;
}

.ee-option {
	font: inherit;
	width: 100%;
	text-align: start;
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 12px 16px;
	min-height: 48px;
	border: 1px solid var(--ee-line);
	border-radius: 10px;
	background: var(--ee-surface);
	color: var(--ee-ink);
	cursor: pointer;
}

.ee-option:hover:not(:disabled) {
	border-color: var(--ee-accent);
}

.ee-option:disabled {
	cursor: default;
	color: var(--ee-ink);
}

.ee-letter {
	flex: none;
	font-weight: 700;
	color: var(--ee-muted);
}

.ee-letter::after {
	content: ".";
}

.ee-selected {
	border-color: var(--ee-accent);
	box-shadow: inset 0 0 0 1px var(--ee-accent);
	background: #eef5fc;
}

.ee-correct {
	border-color: var(--ee-ok);
	background: var(--ee-ok-soft);
}

.ee-wrong {
	border-color: var(--ee-bad);
	background: var(--ee-bad-soft);
}

.ee-verdict {
	font-weight: 700;
	margin: 16px 0 4px;
}

.ee-pass {
	color: var(--ee-ok);
}

.ee-fail {
	color: var(--ee-bad);
}

.ee-feedback {
	background: var(--ee-soft);
	border-radius: 10px;
	padding: 14px 18px;
	margin-top: 10px;
}

.ee-feedback p {
	margin: 0 0 8px;
}

.ee-explanation {
	white-space: pre-line;
}

.ee-quote {
	margin: 0 0 10px;
	padding-inline-start: 14px;
	border-inline-start: 3px solid var(--ee-line);
	color: var(--ee-muted);
	font-size: 0.9375rem;
	white-space: pre-line;
}

.ee-sim-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: sticky;
	top: 0;
	background: var(--ee-surface);
	padding: 10px 0;
	border-bottom: 1px solid var(--ee-line);
	z-index: 1;
}

.ee-clock {
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	font-size: 1.125rem;
}

.ee-clock-low {
	color: var(--ee-bad);
}

.ee-nav {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
	gap: 8px;
	margin-top: 8px;
}

.ee-nav-item {
	font: inherit;
	min-height: 44px;
	border: 1px solid var(--ee-line);
	border-radius: 8px;
	background: var(--ee-surface);
	cursor: pointer;
}

.ee-nav-item.ee-answered {
	background: #e3edf8;
	border-color: #b9d0ea;
}

.ee-nav-item.ee-flagged {
	border-color: var(--ee-flag);
	box-shadow: inset 0 -4px 0 var(--ee-flag);
}

.ee-nav-item.ee-current {
	border-color: var(--ee-accent);
	box-shadow: inset 0 0 0 2px var(--ee-accent);
}

.ee-result {
	background: var(--ee-soft);
	border-radius: 12px;
	padding: 20px 24px;
	text-align: center;
}

.ee-result p {
	margin: 0;
}

.ee-score {
	font-size: 1.75rem;
	font-weight: 800;
}

.ee-review > li {
	padding: 20px 0;
	border-bottom: 1px solid var(--ee-line);
}

.ee-history li {
	padding: 4px 0;
}

@media (max-width: 480px) {
	.ee-topic {
		grid-template-columns: 1fr;
	}

	.ee-topic .ee-btn {
		grid-column: 1;
		grid-row: auto;
		justify-self: start;
	}
}
