/* ==========================================================================
   Daily Exam Hub — front end
   Everything is scoped under .deh so it doesn't clash with your theme.
   Colours: change Primary / Accent in Exam Hub → Settings.
   ========================================================================== */

.deh {
	--deh-primary: #1f2a6b;
	--deh-accent: #f2a900;
	--deh-ink: #161a33;
	--deh-ink-2: #383e5f;
	--deh-muted: #646a88;
	--deh-bg: #f7f5ef;
	--deh-surface: #ffffff;
	--deh-paper: #fffdf6;
	--deh-line: #e6e2d6;
	--deh-tint: #efebe0;
	--deh-good: #157347;
	--deh-good-bg: #e3f4ea;
	--deh-bad: #bf3a2b;
	--deh-bad-bg: #fbe7e4;
	--deh-warn-bg: #fff4d6;
	--deh-primary-soft: #e9ebf6;
	--deh-accent-soft: #fdf2d2;
	--deh-radius: 14px;
	--deh-radius-sm: 10px;
	--deh-shadow: 0 1px 2px rgba(22, 26, 51, .05), 0 10px 28px -16px rgba(22, 26, 51, .22);
	--deh-shadow-lg: 0 24px 48px -20px rgba(22, 26, 51, .35);
	--deh-font: "Noto Sans", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--deh-font-head: "Baloo 2", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
	--deh-wrap: 1200px;
	--deh-header-h: 68px;

	color: var(--deh-ink);
	font-family: var(--deh-font);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

@supports (color: color-mix(in srgb, red 50%, blue)) {
	.deh {
		--deh-primary-soft: color-mix(in srgb, var(--deh-primary) 9%, #fff);
		--deh-primary-dark: color-mix(in srgb, var(--deh-primary) 78%, #000);
		--deh-accent-soft: color-mix(in srgb, var(--deh-accent) 18%, #fff);
	}
}

.deh *, .deh *::before, .deh *::after { box-sizing: border-box; }
/* Resets use :where() so they never outrank the component classes below. */
.deh :where(img) { max-width: 100%; height: auto; display: block; }
.deh :where(a) { color: var(--deh-primary); text-decoration: none; }
.deh :where(a):hover { text-decoration: underline; text-underline-offset: 3px; }
.deh :where(button) { font: inherit; color: inherit; cursor: pointer; }
.deh :where(h1, h2, h3, h4) { font-family: var(--deh-font-head); color: var(--deh-ink); margin: 0; letter-spacing: -.01em; line-height: 1.2; font-weight: 700; text-transform: none; }
.deh :where(p) { margin: 0; }
.deh :where(ul, ol) { margin: 0; padding: 0; }
.deh :where(dl, dd) { margin: 0; }
.deh :focus-visible { outline: 3px solid var(--deh-accent); outline-offset: 2px; border-radius: 6px; }
.deh-icon { flex: none; vertical-align: -0.18em; }
.deh-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

body.deh-standalone { margin: 0; background: #f7f5ef; }
.deh-app { min-height: 100vh; display: flex; flex-direction: column; background: var(--deh-bg); }
.deh-main { flex: 1; outline: none; }
.deh-wrap { width: 100%; max-width: var(--deh-wrap); margin: 0 auto; padding: 0 20px; }
.deh-in-theme .deh-wrap { padding: 0 16px; }

.deh-skip { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--deh-ink); color: #fff !important; padding: 10px 16px; border-radius: 8px; }
.deh-skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.deh-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 42px; padding: 0 18px; border-radius: var(--deh-radius-sm);
	border: 1.5px solid transparent; background: var(--deh-surface); color: var(--deh-ink);
	font-weight: 600; font-size: 15px; line-height: 1.1; text-decoration: none !important; white-space: nowrap;
	transition: background .15s, border-color .15s, transform .1s, box-shadow .15s;
}
.deh-btn:active { transform: translateY(1px); }
.deh-btn--primary { background: var(--deh-primary); color: #fff !important; }
.deh-btn--primary:hover { background: var(--deh-primary-dark, #151d4f); }
.deh-btn--accent { background: var(--deh-accent); color: #1d1600 !important; }
.deh-btn--accent:hover { filter: brightness(.95); box-shadow: 0 6px 18px -8px var(--deh-accent); }
.deh-btn--ghost { border-color: var(--deh-line); background: var(--deh-surface); color: var(--deh-ink) !important; }
.deh-btn--ghost:hover { border-color: var(--deh-primary); color: var(--deh-primary) !important; }
.deh-btn--ghost.is-on { border-color: var(--deh-primary); background: var(--deh-primary-soft); color: var(--deh-primary) !important; }
.deh-btn--onDark { border-color: rgba(255, 255, 255, .45); background: transparent; color: #fff !important; }
.deh-btn--onDark:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.deh-btn--wa { background: #1fa855; color: #fff !important; }
.deh-btn--wa:hover { background: #178a45; }
.deh-btn--text { background: transparent; border-color: transparent; color: var(--deh-muted) !important; padding: 0 10px; }
.deh-btn--text:hover { color: var(--deh-ink) !important; background: var(--deh-tint); }
.deh-btn--text[aria-pressed="true"] { color: #8a5a00 !important; background: var(--deh-accent-soft); }
.deh-btn--sm { min-height: 34px; padding: 0 12px; font-size: 14px; }
.deh-btn--lg { min-height: 52px; padding: 0 24px; font-size: 16.5px; }
.deh-btn--block { width: 100%; }
.deh-btn[disabled] { opacity: .6; pointer-events: none; }

.deh-iconbtn {
	display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px;
	border: 0; background: transparent; color: var(--deh-ink);
}
.deh-iconbtn:hover { background: var(--deh-tint); }

.deh-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; }

/* ---------- Chips, badges ---------- */
.deh-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.deh-chips--scroll { flex-wrap: nowrap; overflow-x: auto; padding: 4px 2px 10px; margin: 0 -2px; scrollbar-width: thin; }
.deh-chip {
	display: inline-flex; align-items: center; gap: 6px; flex: none;
	padding: 6px 14px; border-radius: 999px; border: 1px solid var(--deh-line);
	background: var(--deh-surface); color: var(--deh-ink-2) !important; font-size: 14px; font-weight: 500; text-decoration: none !important; white-space: nowrap;
}
.deh-chip:hover { border-color: var(--deh-primary); color: var(--deh-primary) !important; }
.deh-chip.is-on { background: var(--deh-primary); border-color: var(--deh-primary); color: #fff !important; }
.deh-chip--soft { padding: 2px 10px; border: 0; background: var(--deh-primary-soft); color: var(--deh-primary) !important; font-size: 12.5px; font-weight: 600; }
.deh-count { display: inline-block; min-width: 22px; padding: 0 7px; border-radius: 999px; background: var(--deh-tint); color: var(--deh-muted); font-size: 12px; font-weight: 600; text-align: center; line-height: 20px; }
.deh-chip.is-on .deh-count { background: rgba(255, 255, 255, .2); color: #fff; }

.deh-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 6px; font-size: 12px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.deh-badge--daily { background: var(--deh-accent-soft); color: #7a5200; }
.deh-badge--practice { background: var(--deh-primary-soft); color: var(--deh-primary); }
.deh-badge--mock { background: #efe6fb; color: #5b2d9e; }
.deh-badge--done { background: var(--deh-good-bg); color: var(--deh-good); text-transform: none; }
.deh-badge--new { background: var(--deh-bad-bg); color: var(--deh-bad); }

.deh-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--deh-muted); }
.deh-kicker--light { color: rgba(255, 255, 255, .78); }
.deh-muted { color: var(--deh-muted); }
.deh-small { font-size: 14px; }
.deh-good { color: var(--deh-good); font-weight: 700; }
.deh-bad { color: var(--deh-bad); font-weight: 700; }

/* ---------- Top bar ---------- */
.deh-topbar { background: var(--deh-primary-dark, #151d4f); color: rgba(255, 255, 255, .88); font-size: 13px; }
.deh-topbar__in { display: flex; align-items: center; gap: 18px; min-height: 36px; }
.deh-topbar__date { display: inline-flex; align-items: center; gap: 7px; }
.deh-topbar__live { display: inline-flex; align-items: center; gap: 8px; color: #fff !important; font-weight: 600; }
.deh-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--deh-accent); box-shadow: 0 0 0 0 var(--deh-accent); animation: deh-pulse 2s infinite; }
@keyframes deh-pulse { 0% { box-shadow: 0 0 0 0 rgba(242, 169, 0, .7); } 70% { box-shadow: 0 0 0 8px rgba(242, 169, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(242, 169, 0, 0); } }
.deh-topbar__right { margin-left: auto; display: inline-flex; align-items: center; gap: 14px; }
.deh-topbar__app { display: inline-flex; align-items: center; gap: 6px; color: #fff !important; font-weight: 600; }

.deh-lang { display: inline-flex; padding: 2px; border-radius: 999px; background: rgba(255, 255, 255, .12); }
.deh-lang a { padding: 2px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: rgba(255, 255, 255, .85) !important; text-decoration: none !important; line-height: 22px; }
.deh-lang a.is-on { background: #fff; color: var(--deh-primary) !important; }
.deh-nav__foot .deh-lang { background: var(--deh-tint); }
.deh-nav__foot .deh-lang a { color: var(--deh-ink-2) !important; padding: 4px 16px; font-size: 14px; }
.deh-nav__foot .deh-lang a.is-on { background: var(--deh-primary); color: #fff !important; }

/* ---------- Header ---------- */
html { scroll-padding-top: calc(var(--deh-header-h) + 24px); }
.deh-header { position: sticky; top: 0; z-index: 90; background: var(--deh-surface); border-bottom: 1px solid var(--deh-line); }
.admin-bar .deh-header { top: 32px; }
.deh-header.is-scrolled { box-shadow: 0 6px 20px -14px rgba(22, 26, 51, .35); }
.deh-header__in { position: relative; display: flex; align-items: center; gap: 20px; min-height: var(--deh-header-h); }
.deh-in-theme .deh-header { position: relative; top: auto; }

.deh-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--deh-ink) !important; text-decoration: none !important; flex: none; min-width: 0; }
.deh-brand__logo { height: 40px; width: auto; }
.deh-brand__mark {
	display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; flex: none;
	background: var(--deh-primary); color: #fff; font-family: var(--deh-font-head); font-weight: 800; font-size: 22px; line-height: 1;
	box-shadow: inset -6px -6px 0 0 var(--deh-accent);
}
.deh-brand__text { display: flex; flex-direction: column; min-width: 0; }
.deh-brand__name { font-family: var(--deh-font-head); font-weight: 800; font-size: 20px; line-height: 1.05; letter-spacing: -.01em; white-space: nowrap; }
.deh-brand__tag { font-size: 11.5px; color: var(--deh-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 230px; }
.deh-header__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.deh-avatar {
	display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; flex: none;
	background: var(--deh-primary-soft); color: var(--deh-primary); font-weight: 700; font-size: 13.5px; letter-spacing: .02em;
}
.deh-avatar--sm { width: 28px; height: 28px; font-size: 11.5px; }
.deh-avatar--lg { width: 60px; height: 60px; font-size: 22px; background: var(--deh-primary); color: #fff; }

.deh-user { position: relative; }
.deh-user__btn { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--deh-line); background: var(--deh-surface); }
.deh-user__btn:hover { border-color: var(--deh-primary); }
.deh-user__name { font-weight: 600; font-size: 14.5px; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deh-user__menu {
	position: absolute; right: 0; top: calc(100% + 8px); width: 230px; padding: 8px;
	background: var(--deh-surface); border: 1px solid var(--deh-line); border-radius: var(--deh-radius); box-shadow: var(--deh-shadow-lg); z-index: 120;
}
.deh-user__menu[hidden] { display: none; }
.deh-user__menu a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--deh-ink) !important; font-size: 15px; text-decoration: none !important; }
.deh-user__menu a:hover { background: var(--deh-tint); }
.deh-user__menu .deh-user__logout { color: var(--deh-bad) !important; border-top: 1px solid var(--deh-line); border-radius: 0 0 8px 8px; margin-top: 4px; }

/* Search */
.deh-search { border-top: 1px solid var(--deh-line); background: var(--deh-surface); }
.deh-search[hidden] { display: none; }
.deh-search__form { display: flex; align-items: center; gap: 10px; padding-top: 12px; padding-bottom: 12px; color: var(--deh-muted); }
.deh-search__form input { flex: 1; min-width: 0; height: 46px; border: 0; background: transparent; font: inherit; font-size: 17px; color: var(--deh-ink); outline: none; }

/* ---------- Mega menu (desktop) ---------- */
.deh-nav { flex: 1; min-width: 0; }
.deh-nav__head, .deh-nav__foot { display: none; }
.deh-nav__list { display: flex; align-items: center; gap: 2px; list-style: none; }
.deh-nav__item { position: static; list-style: none; }
.deh-nav__item:not(.is-mega) { position: relative; }
.deh-nav__row { display: flex; align-items: center; }
.deh-nav__link {
	display: inline-flex; align-items: center; gap: 4px; height: var(--deh-header-h); padding: 0 12px;
	border: 0; background: transparent; color: var(--deh-ink-2) !important; font-weight: 600; font-size: 15px; text-decoration: none !important; white-space: nowrap;
	position: relative;
}
.deh-nav__link::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 14px; height: 3px; border-radius: 3px; background: var(--deh-accent); transform: scaleX(0); transition: transform .2s; transform-origin: left; }
.deh-nav__item:hover > .deh-nav__row .deh-nav__link::after,
.deh-nav__item:hover > .deh-nav__link::after,
.deh-nav__item.is-active > .deh-nav__row .deh-nav__link::after,
.deh-nav__item.is-active > .deh-nav__link::after,
.deh-nav__item.is-open > .deh-nav__row .deh-nav__link::after { transform: scaleX(1); }
.deh-nav__link:hover { color: var(--deh-ink) !important; }
.deh-nav__toggle { display: inline-grid; place-items: center; border: 0; background: transparent; color: var(--deh-muted); width: 22px; height: 32px; margin-left: -8px; padding: 0; border-radius: 6px; }
.deh-nav__toggle--label { display: inline-flex; align-items: center; gap: 4px; width: auto; height: var(--deh-header-h); margin: 0; padding: 0 12px; color: var(--deh-ink-2); font-weight: 600; font-size: 15px; }
.deh-nav__toggle .deh-icon { transition: transform .2s; }
.deh-nav__item.is-open .deh-nav__toggle .deh-icon { transform: rotate(180deg); }

.deh-nav__panel {
	position: absolute; top: 100%; z-index: 110; visibility: hidden; opacity: 0; transform: translateY(6px);
	transition: opacity .16s, transform .16s, visibility 0s .16s;
	background: var(--deh-surface); border: 1px solid var(--deh-line); border-radius: 0 0 var(--deh-radius) var(--deh-radius); box-shadow: var(--deh-shadow-lg);
}
.deh-nav__item:not(.is-mega) > .deh-nav__panel { left: 0; min-width: 260px; border-radius: var(--deh-radius); }
.deh-nav__item.is-mega > .deh-nav__panel { left: 20px; right: 20px; }
.deh-nav__item.is-open > .deh-nav__panel,
.deh-has-hover .deh-nav__item:hover > .deh-nav__panel {
	visibility: visible; opacity: 1; transform: none; transition: opacity .16s, transform .16s, visibility 0s;
}
.deh-drop { list-style: none; padding: 8px; columns: 1; }
.deh-drop li { list-style: none; }
.deh-drop a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--deh-ink-2) !important; font-size: 15px; text-decoration: none !important; }
.deh-drop a:hover, .deh-drop a[aria-current] { background: var(--deh-primary-soft); color: var(--deh-primary) !important; }

.deh-mega { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px 28px; padding: 24px 28px 28px; }
.deh-mega__head { display: block; padding: 0 0 8px; margin-bottom: 6px; border-bottom: 2px solid var(--deh-accent); font-family: var(--deh-font-head); font-weight: 700; font-size: 17px; color: var(--deh-ink) !important; }
.deh-mega__links { list-style: none; }
.deh-mega__links li { list-style: none; }
.deh-mega__links a { display: block; padding: 5px 0; color: var(--deh-ink-2) !important; font-size: 14.5px; }
.deh-mega__links a:hover, .deh-mega__links a[aria-current] { color: var(--deh-primary) !important; }

.deh-burger { display: none; }
.deh-scrim { position: fixed; inset: 0; background: rgba(14, 17, 38, .45); z-index: 140; opacity: 0; transition: opacity .2s; }
.deh-scrim.is-on { opacity: 1; }
.deh-scrim[hidden] { display: none; }

/* Embedded menu via [deh_mega_menu] */
.deh-menu-embed { position: relative; }
.deh-menu-embed .deh-burger { display: none; }

/* ---------- Mobile & tablet navigation ---------- */
@media (max-width: 1080px) {
	.deh-burger { display: inline-grid; }
	.deh-nav {
		position: fixed; top: 0; right: 0; bottom: 0; z-index: 150; width: min(88vw, 390px);
		display: flex; flex-direction: column; background: var(--deh-surface); box-shadow: var(--deh-shadow-lg);
		transform: translateX(105%); transition: transform .25s ease; visibility: hidden;
	}
	.deh-nav.is-open { transform: none; visibility: visible; }
	.deh-nav__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--deh-line); }
	.deh-nav__title { font-family: var(--deh-font-head); font-weight: 700; font-size: 20px; }
	.deh-nav__list { flex: 1; overflow-y: auto; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; }
	.deh-nav__item { border-bottom: 1px solid var(--deh-line); }
	.deh-nav__row { justify-content: space-between; }
	.deh-nav__link { height: auto; padding: 14px 20px; font-size: 16.5px; flex: 1; justify-content: space-between; }
	.deh-nav__link::after { display: none; }
	.deh-nav__toggle { width: 52px; height: 52px; margin: 0; }
	.deh-nav__toggle--label { width: 100%; height: auto; padding: 14px 20px; justify-content: space-between; font-size: 16.5px; color: var(--deh-ink-2) !important; }
	.deh-nav__panel, .deh-nav__item:not(.is-mega) > .deh-nav__panel, .deh-nav__item.is-mega > .deh-nav__panel {
		position: static; visibility: visible; opacity: 1; transform: none; transition: none;
		display: none; border: 0; border-radius: 0; box-shadow: none; background: var(--deh-bg); min-width: 0;
	}
	.deh-nav__item.is-open > .deh-nav__panel { display: block; }
	.deh-has-hover .deh-nav__item:hover > .deh-nav__panel { display: none; }
	.deh-has-hover .deh-nav__item.is-open:hover > .deh-nav__panel { display: block; }
	.deh-mega { grid-template-columns: 1fr; gap: 14px; padding: 14px 20px 18px; }
	.deh-mega__head { font-size: 16px; border-bottom-width: 1px; }
	.deh-mega__links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
	.deh-drop { padding: 8px 12px 12px; }
	.deh-nav__foot { display: grid; gap: 10px; padding: 16px 20px 22px; border-top: 1px solid var(--deh-line); }
	.deh-nav__foot .deh-lang { justify-self: start; }
	.deh-brand__tag { display: none; }
}
@media (max-width: 640px) {
	.deh-hide-sm { display: none !important; }
	.deh-topbar__date { display: none; }
	.deh-topbar__in { gap: 12px; }
	.deh-wrap { padding: 0 16px; }
	.deh-brand__name { font-size: 18px; }
	.deh-user__name { display: none; }
	.deh-user__btn { padding: 3px; }
	.deh-user__btn > .deh-icon { display: none; }
	.deh-header__in { gap: 10px; }
}
@media (max-width: 420px) {
	.deh-hide-xs { display: none !important; }
	.deh-topbar__app { display: none; }
}

/* ---------- Hero / today's edition ---------- */
.deh-hero {
	position: relative; color: #fff; padding: 52px 0 28px; overflow: hidden;
	background:
		radial-gradient(circle at 85% 10%, rgba(242, 169, 0, .18), transparent 40%),
		repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 28px),
		var(--deh-primary);
}
.deh-hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.deh-hero__title { color: #fff !important; font-size: clamp(32px, 4.6vw, 54px); font-weight: 800; line-height: 1.05; margin: 14px 0 16px; }
.deh-hero__text { font-size: 18px; color: rgba(255, 255, 255, .84); max-width: 540px; }
.deh-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.deh-edition {
	animation: deh-float-in .8s cubic-bezier(.2,.8,.2,1) both;
	background: var(--deh-paper); color: var(--deh-ink); border-radius: 6px; padding: 22px 24px 18px;
	box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 0, 0, .04);
	transform: rotate(1deg);
}
.deh-edition__mast { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0 0 12px; margin-bottom: 14px; border-bottom: 4px double var(--deh-ink); text-align: center; }
.deh-edition__name { font-family: var(--deh-font-head); font-size: 26px; font-weight: 800; letter-spacing: .02em; line-height: 1.1; }
.deh-edition__date { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--deh-muted); }
.deh-edition__list { list-style: none; }
.deh-edition__list li { display: grid; grid-template-columns: 38px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--deh-line); list-style: none; }
.deh-edition__list li:last-child { border-bottom: 0; }
.deh-edition__num { font-family: var(--deh-font-head); font-weight: 800; font-size: 24px; line-height: 1.1; color: var(--deh-accent); -webkit-text-stroke: .4px #8a5a00; }
.deh-edition__list a { color: var(--deh-ink) !important; font-weight: 600; line-height: 1.35; }
.deh-edition__empty { color: var(--deh-muted); padding: 16px 0; }
.deh-edition__quiz {
	display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px;
	border-radius: 10px; background: var(--deh-primary); color: #fff !important; text-decoration: none !important;
}
.deh-edition__quiz small { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--deh-accent); font-weight: 700; }
.deh-edition__quiz strong { display: block; font-size: 15px; line-height: 1.3; }
.deh-edition__quiz-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, .12); }

.deh-counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 52px; }
.deh-counters > div { padding: 14px 18px; border-radius: 12px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); }
.deh-counters dt { font-size: 13px; color: rgba(255, 255, 255, .7); }
.deh-counters dd { font-family: var(--deh-font-head); font-size: 28px; font-weight: 800; line-height: 1.15; }

@media (max-width: 900px) {
	.deh-hero { padding: 36px 0 24px; }
	.deh-hero__grid { grid-template-columns: 1fr; gap: 32px; }
	.deh-edition { transform: none; }
	.deh-counters { grid-template-columns: repeat(2, 1fr); margin-top: 28px; }
}
@media (max-width: 480px) {
	.deh-hero__cta .deh-btn { width: 100%; }
	.deh-hero__text { font-size: 16.5px; }
	.deh-counters dd { font-size: 23px; }
}

/* ---------- Sections & grids ---------- */
.deh-section { padding: 48px 0; }
.deh-section--tint { background: var(--deh-tint); }
.deh-section--tight { padding: 8px 0 48px; }
.deh-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.deh-h1 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
.deh-h2 { font-size: clamp(23px, 2.5vw, 30px); font-weight: 800; }
.deh-h3 { display: flex; align-items: center; gap: 8px; font-size: 20px; margin: 0 0 14px; }

.deh-grid { display: grid; gap: 18px; }
.deh-grid--3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.deh-grid--2 { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.deh-stack { display: flex; flex-direction: column; gap: 12px; }
.deh-split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.deh-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; padding-top: 28px; padding-bottom: 56px; }
@media (max-width: 960px) {
	.deh-split, .deh-layout { grid-template-columns: 1fr; }
}

.deh-empty { padding: 28px; border: 1.5px dashed var(--deh-line); border-radius: var(--deh-radius); text-align: center; color: var(--deh-muted); background: var(--deh-surface); }
.deh-empty--cta { display: grid; justify-items: center; gap: 14px; margin-top: 18px; }

/* ---------- Cards ---------- */
.deh-card {
	position: relative; display: flex; flex-direction: column; background: var(--deh-surface);
	border: 1px solid var(--deh-line); border-radius: var(--deh-radius); overflow: hidden;
	transition: transform .15s, box-shadow .15s, border-color .15s;
}
.deh-card:hover { transform: translateY(-2px); box-shadow: var(--deh-shadow); border-color: #d8d3c4; }
.deh-card__media { display: block; aspect-ratio: 16/9; background: var(--deh-tint); overflow: hidden; }
.deh-card__img { width: 100%; height: 100%; object-fit: cover; }
.deh-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.deh-card__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--deh-muted); }
.deh-card__title { font-size: 18.5px; line-height: 1.3; font-weight: 700; }
.deh-card__title a { color: var(--deh-ink) !important; text-decoration: none !important; }
.deh-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.deh-card__meta a, .deh-qcard__foot a, .deh-qcard__foot .deh-btn { position: relative; z-index: 2; }
.deh-card__text { color: var(--deh-muted); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.deh-acard--row { border-left: 4px solid var(--deh-primary); }
.deh-acard--row .deh-card__body { padding: 14px 18px; gap: 6px; }
.deh-acard--row .deh-card__title { font-size: 18px; }
.deh-acard--row .deh-card__text { -webkit-line-clamp: 2; }

.deh-qcard { padding: 16px 18px 18px; gap: 8px; }
.deh-qcard--daily { border-top: 4px solid var(--deh-accent); }
.deh-qcard--practice { border-top: 4px solid var(--deh-primary); }
.deh-qcard--mock { border-top: 4px solid #6d3fc0; }
.deh-qcard__top { display: flex; gap: 6px; flex-wrap: wrap; }
.deh-qcard__cat { font-size: 13.5px; color: var(--deh-muted); }
.deh-qcard__facts { display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none; font-size: 13.5px; color: var(--deh-ink-2); margin-top: 2px; }
.deh-qcard__facts li { display: inline-flex; align-items: center; gap: 5px; list-style: none; }
.deh-qcard__facts .deh-icon { color: var(--deh-muted); }
.deh-qcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; }
.deh-qcard__best { font-size: 14px; color: var(--deh-muted); }
.deh-qcard__best strong { color: var(--deh-good); font-size: 16px; }

/* Categories grid */
.deh-catgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.deh-cat { display: flex; flex-direction: column; gap: 12px; padding: 18px; background: var(--deh-surface); border: 1px solid var(--deh-line); border-radius: var(--deh-radius); transition: box-shadow .15s, border-color .15s; }
.deh-cat:hover { box-shadow: var(--deh-shadow); border-color: #d8d3c4; }
.deh-cat__main { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; color: var(--deh-ink) !important; text-decoration: none !important; }
.deh-cat__ico { grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--deh-primary-soft); color: var(--deh-primary); }
.deh-cat:nth-child(3n+2) .deh-cat__ico { background: var(--deh-accent-soft); color: #8a5a00; }
.deh-cat:nth-child(3n) .deh-cat__ico { background: #e6f4ee; color: #12704a; }
.deh-cat__name { font-family: var(--deh-font-head); font-weight: 700; font-size: 19px; line-height: 1.2; align-self: end; }
.deh-cat__count { font-size: 13px; color: var(--deh-muted); }
.deh-cat__kids { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.deh-cat__kids li { list-style: none; }
.deh-cat__kids a { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--deh-bg); color: var(--deh-ink-2) !important; font-size: 13px; text-decoration: none !important; }
.deh-cat__kids a:hover { background: var(--deh-primary-soft); color: var(--deh-primary) !important; }

/* Side boxes */
.deh-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: calc(var(--deh-header-h) + 20px); }
.deh-in-theme .deh-side { position: static; }
@media (max-width: 960px) { .deh-side { position: static; } }
.deh-box { padding: 18px 20px; background: var(--deh-surface); border: 1px solid var(--deh-line); border-radius: var(--deh-radius); display: flex; flex-direction: column; gap: 10px; }
.deh-box__h { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.deh-box__title { font-size: 19px; line-height: 1.25; }
.deh-box__title a { color: var(--deh-ink) !important; }
.deh-box__meta { font-size: 14px; color: var(--deh-muted); }
.deh-box p { font-size: 14.5px; color: var(--deh-ink-2); }
.deh-box--quiz { background: var(--deh-primary); border-color: var(--deh-primary); }
.deh-box--quiz .deh-kicker { color: var(--deh-accent); }
.deh-box--quiz .deh-box__title a, .deh-box--quiz .deh-box__meta { color: #fff !important; }
.deh-box--quiz .deh-box__meta { opacity: .8; }
.deh-box--join { background: var(--deh-accent-soft); border-color: transparent; }
.deh-box--app { background: var(--deh-ink); border-color: var(--deh-ink); }
.deh-box--app .deh-box__title, .deh-box--app p { color: #fff; }
.deh-box__big { font-family: var(--deh-font-head); font-size: 34px; font-weight: 800; line-height: 1; display: flex; flex-direction: column; gap: 4px; }
.deh-box__big small { font-family: var(--deh-font); font-size: 13px; font-weight: 500; color: var(--deh-muted); }
.deh-box__big--accent { color: var(--deh-good); }

.deh-monthlist { list-style: none; }
.deh-monthlist li { list-style: none; }
.deh-monthlist a { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--deh-line); color: var(--deh-ink-2) !important; font-size: 15px; }
.deh-monthlist li:last-child a { border-bottom: 0; }

.deh-minilb { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.deh-minilb li { display: grid; grid-template-columns: 26px auto 1fr auto; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; list-style: none; }
.deh-minilb li.is-me { background: var(--deh-accent-soft); }
.deh-minilb__rank { font-weight: 800; color: var(--deh-muted); text-align: center; }
.deh-minilb__rank.r1 { color: #b8860b; }
.deh-minilb__rank.r2 { color: #7d8597; }
.deh-minilb__rank.r3 { color: #a0522d; }
.deh-minilb__name { font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deh-minilb__pts { font-weight: 800; font-family: var(--deh-font-head); color: var(--deh-primary); }

.deh-playbadge {
	display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 10px; width: fit-content;
	background: #000; color: #fff !important; border: 1px solid rgba(255, 255, 255, .35); text-decoration: none !important;
}
.deh-playbadge span { display: flex; flex-direction: column; line-height: 1.15; font-weight: 700; font-size: 16px; }
.deh-playbadge small { font-size: 10.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; opacity: .8; }

/* ---------- Page head, filters, tabs ---------- */
.deh-pagehead { padding: 22px 0 0; background: var(--deh-surface); border-bottom: 1px solid var(--deh-line); }
.deh-pagehead .deh-h1 { margin: 6px 0 4px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.deh-pagehead__sub { color: var(--deh-muted); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.deh-pagehead__desc { margin-top: 10px; color: var(--deh-ink-2); max-width: 760px; }
.deh-pagehead .deh-chips { margin-top: 16px; }
.deh-pagehead > .deh-wrap > :last-child { padding-bottom: 14px; }
.deh-pagehead > .deh-wrap > .deh-tabs:last-child { padding-bottom: 0; }

.deh-crumbs { font-size: 13.5px; color: var(--deh-muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.deh-crumbs a { color: var(--deh-muted) !important; }
.deh-crumbs a:hover { color: var(--deh-primary) !important; }

.deh-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.deh-field { position: relative; display: flex; align-items: center; }
.deh-field > .deh-icon { position: absolute; left: 13px; color: var(--deh-muted); pointer-events: none; }
.deh-field input { height: 44px; padding: 0 12px 0 40px; border: 1.5px solid var(--deh-line); border-radius: var(--deh-radius-sm); background: var(--deh-bg); font: inherit; font-size: 15px; color: var(--deh-ink); }
.deh-field input:focus { outline: none; border-color: var(--deh-primary); background: var(--deh-surface); }
.deh-field--search { flex: 1 1 260px; }
.deh-field--search input { width: 100%; }

.deh-cathead { display: flex; align-items: center; gap: 16px; margin-top: 6px; }
.deh-cathead__ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; background: var(--deh-primary); color: #fff; box-shadow: inset -7px -7px 0 var(--deh-accent); flex: none; }
.deh-cathead .deh-h1 { margin: 0; }

.deh-tabs { display: flex; gap: 4px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; }
.deh-tabs::-webkit-scrollbar { display: none; }
.deh-tab {
	display: inline-flex; align-items: center; gap: 7px; padding: 12px 16px; flex: none;
	border-bottom: 3px solid transparent; color: var(--deh-muted) !important; font-weight: 600; font-size: 15px; text-decoration: none !important; white-space: nowrap;
}
.deh-tab:hover { color: var(--deh-ink) !important; }
.deh-tab.is-on { color: var(--deh-primary) !important; border-bottom-color: var(--deh-accent); }

.deh-dayhead { display: flex; align-items: baseline; gap: 10px; margin: 26px 0 12px; font-size: 18px; }
.deh-layout__main > .deh-dayhead:first-child { margin-top: 0; }
.deh-dayhead__label { padding: 2px 12px; border-radius: 6px; background: var(--deh-ink); color: #fff; font-size: 14px; letter-spacing: .02em; }
.deh-dayhead__date { font-family: var(--deh-font); font-weight: 500; font-size: 15px; color: var(--deh-muted); }

.deh-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 28px; }
.deh-pager__num, .deh-pager__btn { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--deh-line); background: var(--deh-surface); color: var(--deh-ink-2) !important; font-weight: 600; text-decoration: none !important; }
.deh-pager__num.is-current { background: var(--deh-primary); border-color: var(--deh-primary); color: #fff !important; }
.deh-pager a:hover { border-color: var(--deh-primary); }

/* ---------- Article ---------- */
.deh-layout--article { padding-top: 22px; }
.deh-article__head { margin: 12px 0 18px; }
.deh-article__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.deh-article__title { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.15; font-weight: 800; }
.deh-article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--deh-line); color: var(--deh-muted); font-size: 14.5px; }
.deh-article__meta > span { display: inline-flex; align-items: center; gap: 6px; }
.deh-article__actions { margin-left: auto; gap: 8px !important; }
.deh-article__img { margin: 0 0 20px; border-radius: var(--deh-radius); overflow: hidden; }
.deh-note { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 14px; border-radius: 10px; background: var(--deh-warn-bg); color: #6b4e00; font-size: 14.5px; margin-bottom: 16px; }
.deh-note--good { background: var(--deh-good-bg); color: var(--deh-good); }
.deh-note--warn { margin: 14px 0 0; }

.deh-points { margin: 4px 0 24px; padding: 18px 20px 18px 22px; border-radius: var(--deh-radius); background: var(--deh-accent-soft); border-left: 5px solid var(--deh-accent); }
.deh-points__h { display: flex; align-items: center; gap: 8px; font-size: 18px; margin-bottom: 10px; }
.deh-points ul { list-style: none; display: grid; gap: 8px; }
.deh-points li { position: relative; padding-left: 28px; list-style: none; font-weight: 500; line-height: 1.5; }
.deh-points li::before { content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%; background: var(--deh-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat; }

.deh-prose { font-size: 18px; line-height: 1.8; color: var(--deh-ink-2); }
.deh-lang-hi .deh-prose, .deh-prose:lang(hi) { line-height: 1.9; }
.deh-prose > * + * { margin-top: 1em; }
.deh-prose h2 { font-size: 26px; margin-top: 1.4em; }
.deh-prose h3 { font-size: 21px; margin-top: 1.3em; }
.deh-prose ul, .deh-prose ol { padding-left: 1.3em; }
.deh-prose li + li { margin-top: .35em; }
.deh-prose strong { color: var(--deh-ink); }
.deh-prose a { text-decoration: underline; text-underline-offset: 3px; }
.deh-prose blockquote { margin: 1.2em 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--deh-accent); color: var(--deh-ink); font-style: italic; }
.deh-prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.deh-prose th, .deh-prose td { border: 1px solid var(--deh-line); padding: 8px 10px; text-align: left; }
.deh-prose--sm { font-size: 16.5px; margin-top: 10px; }

.deh-source { margin-top: 20px; font-size: 14px; color: var(--deh-muted); }
.deh-ad { margin: 24px 0; text-align: center; min-height: 1px; }
.deh-side .deh-ad { margin: 0; }

.deh-ctaquiz {
	display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; margin: 28px 0; padding: 16px 18px;
	border-radius: var(--deh-radius); background: var(--deh-primary); color: #fff !important; text-decoration: none !important;
}
.deh-ctaquiz small { display: block; color: var(--deh-accent); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; }
.deh-ctaquiz strong { display: block; font-family: var(--deh-font-head); font-size: 19px; line-height: 1.25; }
.deh-ctaquiz__ico { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 12px; background: rgba(255, 255, 255, .12); }
@media (max-width: 520px) { .deh-ctaquiz { grid-template-columns: auto 1fr; } .deh-ctaquiz .deh-btn { grid-column: 1 / -1; } }

.deh-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 28px 0; }
.deh-prevnext__a { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--deh-line); border-radius: var(--deh-radius); background: var(--deh-surface); color: var(--deh-ink) !important; text-decoration: none !important; }
.deh-prevnext__a:hover { border-color: var(--deh-primary); }
.deh-prevnext__a small { color: var(--deh-muted); font-weight: 600; font-size: 13px; }
.deh-prevnext__a span { font-weight: 600; line-height: 1.35; }
.deh-prevnext__a--next { text-align: right; grid-column: 2; }
.deh-related { margin-top: 12px; }
@media (max-width: 560px) { .deh-prevnext { grid-template-columns: 1fr; } .deh-prevnext__a--next { grid-column: 1; } }

/* ---------- Quiz ---------- */
.deh-quizpage { padding-top: 22px; padding-bottom: 56px; }
.deh-quizhead { margin: 10px 0 20px; }
.deh-quizintro { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; margin-top: 12px; }
.deh-quizintro__main { padding: 26px 28px; background: var(--deh-surface); border: 1px solid var(--deh-line); border-radius: var(--deh-radius); }
.deh-quizintro__badges { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 14px; }
.deh-quizintro__side { display: flex; flex-direction: column; gap: 16px; }
.deh-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 22px 0; }
.deh-facts > div { padding: 12px 14px; border-radius: 12px; background: var(--deh-bg); border: 1px solid var(--deh-line); }
.deh-facts dt { font-size: 12.5px; color: var(--deh-muted); display: flex; align-items: center; gap: 4px; }
.deh-facts dd { font-family: var(--deh-font-head); font-size: 26px; font-weight: 800; line-height: 1.2; }
.deh-facts small { font-family: var(--deh-font); font-size: 13px; font-weight: 500; color: var(--deh-muted); }
.deh-instr ul { display: grid; gap: 6px; padding-left: 20px; color: var(--deh-ink-2); }
.deh-quizintro__go { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--deh-line); }
.deh-quizintro__go > p { flex-basis: 100%; }
@media (max-width: 900px) {
	.deh-quizintro { grid-template-columns: 1fr; }
	.deh-facts { grid-template-columns: repeat(2, 1fr); }
	.deh-quizintro__main { padding: 20px; }
}

.deh-player { margin-top: 14px; }
.deh-player[hidden], .deh-resultwrap[hidden], [data-deh-intro][hidden] { display: none !important; }
.deh-player__bar {
	position: sticky; top: calc(var(--deh-header-h) + 8px); z-index: 20;
	display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 12px 16px; margin-bottom: 16px;
	background: var(--deh-surface); border: 1px solid var(--deh-line); border-radius: var(--deh-radius); box-shadow: var(--deh-shadow);
}
.deh-in-theme .deh-player__bar { top: 8px; }
.deh-player__progress { font-weight: 700; font-size: 15px; white-space: nowrap; }
.deh-player__track { height: 8px; border-radius: 99px; background: var(--deh-tint); overflow: hidden; }
.deh-player__track span { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--deh-accent); transition: width .25s; }
.deh-timer { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: var(--deh-primary-soft); color: var(--deh-primary); font-variant-numeric: tabular-nums; }
.deh-timer b { font-size: 17px; }
.deh-timer.is-low { background: var(--deh-bad-bg); color: var(--deh-bad); animation: deh-blink 1s steps(2) infinite; }
@keyframes deh-blink { 50% { opacity: .55; } }

.deh-player__body { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 20px; align-items: start; }
.deh-qbox { padding: 24px 26px; background: var(--deh-surface); border: 1px solid var(--deh-line); border-radius: var(--deh-radius); min-height: 340px; }
.deh-qbox__n { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--deh-muted); }
.deh-qbox__q { font-size: 21px; line-height: 1.5; font-weight: 600; color: var(--deh-ink); margin: 8px 0 20px; }
.deh-opts { display: grid; gap: 10px; list-style: none; }
.deh-opt { list-style: none; }
.deh-opt label {
	display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 12px; padding: 12px 14px; min-height: 56px;
	border: 1.5px solid var(--deh-line); border-radius: 12px; background: var(--deh-surface); cursor: pointer; font-size: 17px; line-height: 1.4;
	transition: border-color .12s, background .12s;
}
.deh-opt label:hover { border-color: var(--deh-primary); }
.deh-opt input { position: absolute; opacity: 0; pointer-events: none; }
.deh-opt__key { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--deh-tint); font-weight: 800; color: var(--deh-ink-2); transition: background .12s, color .12s; }
.deh-opt input:checked + label { border-color: var(--deh-primary); background: var(--deh-primary-soft); }
.deh-opt input:checked + label .deh-opt__key { background: var(--deh-primary); color: #fff; }
.deh-opt input:focus-visible + label { outline: 3px solid var(--deh-accent); outline-offset: 2px; }

.deh-palette { position: sticky; top: calc(var(--deh-header-h) + 92px); padding: 16px; background: var(--deh-surface); border: 1px solid var(--deh-line); border-radius: var(--deh-radius); display: flex; flex-direction: column; gap: 14px; }
.deh-palette__legend { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12.5px; color: var(--deh-muted); }
.deh-palette__legend span { display: inline-flex; align-items: center; gap: 5px; }
.deh-palette__legend i { width: 12px; height: 12px; border-radius: 4px; border: 1.5px solid var(--deh-line); background: var(--deh-surface); }
.deh-palette__legend i.is-answered { background: var(--deh-primary); border-color: var(--deh-primary); }
.deh-palette__legend i.is-marked { border-color: var(--deh-accent); box-shadow: inset 0 0 0 2px var(--deh-accent); }
.deh-palette__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.deh-palette__grid button { height: 40px; border-radius: 9px; border: 1.5px solid var(--deh-line); background: var(--deh-surface); font-weight: 700; font-size: 14px; color: var(--deh-ink-2); }
.deh-palette__grid button.is-answered { background: var(--deh-primary); border-color: var(--deh-primary); color: #fff; }
.deh-palette__grid button.is-marked { box-shadow: inset 0 0 0 2.5px var(--deh-accent); }
.deh-palette__grid button.is-current { outline: 2.5px solid var(--deh-ink); outline-offset: 1px; }

.deh-qbox { display: flex; flex-direction: column; }
.deh-qbox__stage { flex: 1; }
/* Previous and Next sit together right under the options; secondary actions go to the far side. */
.deh-player__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--deh-line); }
.deh-player__nav [data-deh-prev] { order: 1; }
.deh-player__nav .deh-player__next { order: 2; min-width: 132px; }
.deh-player__nav [data-deh-mark] { order: 3; margin-left: auto; }
.deh-player__nav [data-deh-clear] { order: 4; }
.deh-confirm { padding: 12px; border-radius: 12px; background: var(--deh-accent-soft); color: #4d3700; font-size: 14.5px; display: grid; gap: 10px; animation: deh-up .25s ease both; }
.deh-confirm[hidden] { display: none; }
.deh-confirm div { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 900px) {
	.deh-player__body { grid-template-columns: 1fr; }
	.deh-palette { position: static; order: 2; }
	.deh-qbox { padding: 18px; min-height: 0; }
	.deh-qbox__q { font-size: 19px; }
	.deh-player__bar { top: calc(var(--deh-header-h) + 4px); grid-template-columns: auto auto; gap: 10px 12px; }
	.deh-player__track { grid-column: 1 / -1; grid-row: 2; }
	.deh-timer { justify-self: end; }
	.deh-player__nav { position: sticky; bottom: 0; z-index: 15; margin: 18px -18px -18px; padding: 10px 18px calc(10px + env(safe-area-inset-bottom)); background: var(--deh-surface); border-radius: 0 0 var(--deh-radius) var(--deh-radius); }
	.deh-player__nav .deh-player__next { flex: 1; }
}

/* Result */
.deh-resultwrap { margin-top: 14px; }
.deh-result { padding: 26px 28px; background: var(--deh-surface); border: 1px solid var(--deh-line); border-radius: var(--deh-radius); }
.deh-result__hero { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.deh-result__title { font-size: clamp(24px, 3vw, 32px); margin: 4px 0 6px; }
.deh-result__score { font-family: var(--deh-font-head); font-size: 30px; font-weight: 800; color: var(--deh-primary); margin-bottom: 10px; }
.deh-result__score span { font-size: 17px; font-weight: 600; color: var(--deh-muted); }
.deh-result__head .deh-note { margin: 0; }
.deh-ring { position: relative; width: 140px; height: 140px; flex: none; }
.deh-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.deh-ring__track { fill: none; stroke: var(--deh-tint); stroke-width: 12; }
.deh-ring__bar { fill: none; stroke: var(--deh-accent); stroke-width: 12; stroke-linecap: round; transition: stroke-dashoffset 1s ease; }
.deh-ring__label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.deh-ring__label strong { font-family: var(--deh-font-head); font-size: 34px; font-weight: 800; line-height: 1; }
.deh-ring__label > span { font-size: 12.5px; color: var(--deh-muted); }

.deh-statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 24px 0; }
.deh-stat { padding: 12px 14px; border-radius: 12px; background: var(--deh-bg); border: 1px solid var(--deh-line); }
.deh-stat dt { font-size: 13px; color: var(--deh-muted); }
.deh-stat dd { font-family: var(--deh-font-head); font-size: 26px; font-weight: 800; line-height: 1.2; }
.deh-stat dd small { font-size: 15px; color: var(--deh-muted); }
.deh-stat--good dd { color: var(--deh-good); }
.deh-stat--bad dd { color: var(--deh-bad); }
.deh-stat--accent { background: var(--deh-accent-soft); border-color: transparent; }
.deh-result__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }

.deh-review { list-style: none; display: grid; gap: 14px; counter-reset: none; }
.deh-review__item { list-style: none; padding: 16px 18px; border: 1px solid var(--deh-line); border-left: 5px solid var(--deh-line); border-radius: 12px; background: var(--deh-surface); }
.deh-review__item.is-correct { border-left-color: var(--deh-good); }
.deh-review__item.is-wrong { border-left-color: var(--deh-bad); }
.deh-review__q { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; font-weight: 600; font-size: 17px; }
.deh-review__n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--deh-tint); font-size: 13.5px; font-weight: 800; }
.deh-review__state { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--deh-tint); color: var(--deh-muted); }
.is-correct .deh-review__state { background: var(--deh-good-bg); color: var(--deh-good); }
.is-wrong .deh-review__state { background: var(--deh-bad-bg); color: var(--deh-bad); }
.deh-review__opts { list-style: none; display: grid; gap: 6px; margin: 12px 0 0 40px; }
.deh-review__opts li { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 9px; list-style: none; font-size: 15.5px; }
.deh-review__opts .deh-opt__key { width: 26px; height: 26px; font-size: 12.5px; }
.deh-review__opts li.is-right { background: var(--deh-good-bg); color: #0e5a36; font-weight: 600; }
.deh-review__opts li.is-right .deh-opt__key { background: var(--deh-good); color: #fff; }
.deh-review__opts li.is-chosen:not(.is-right) { background: var(--deh-bad-bg); color: #8a2a1f; }
.deh-review__opts li.is-chosen:not(.is-right) .deh-opt__key { background: var(--deh-bad); color: #fff; }
.deh-opt__tag { font-style: normal; font-size: 12px; font-weight: 700; opacity: .85; }
.deh-review__skip { margin: 8px 0 0 40px; font-size: 13.5px; color: var(--deh-muted); font-style: italic; }
.deh-review__exp { margin: 12px 0 0 40px; padding: 10px 14px; border-radius: 10px; background: var(--deh-bg); font-size: 15px; color: var(--deh-ink-2); }
@media (max-width: 600px) {
	.deh-result { padding: 18px; }
	.deh-review__opts, .deh-review__exp, .deh-review__skip { margin-left: 0; }
	.deh-ring { width: 116px; height: 116px; }
	.deh-ring__label strong { font-size: 28px; }
	.deh-result__actions .deh-btn { flex: 1 1 100%; }
}

/* ---------- Forms & auth ---------- */
.deh-form { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; }
.deh-form .deh-btn { margin-top: 14px; }
.deh-label { display: block; margin-top: 10px; font-weight: 600; font-size: 14.5px; color: var(--deh-ink-2); }
.deh-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.deh-input {
	width: 100%; height: 48px; padding: 0 14px; border: 1.5px solid var(--deh-line); border-radius: var(--deh-radius-sm);
	background: var(--deh-surface); font: inherit; font-size: 16px; color: var(--deh-ink); transition: border-color .12s, box-shadow .12s;
}
select.deh-input { padding-right: 34px; appearance: none; background: var(--deh-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23646a88' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center/16px no-repeat; }
.deh-input:focus { outline: none; border-color: var(--deh-primary); box-shadow: 0 0 0 4px var(--deh-primary-soft); }
.deh-input:disabled { background: var(--deh-bg); color: var(--deh-muted); }
.deh-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .deh-form__row { grid-template-columns: 1fr; } }
.deh-pass { position: relative; }
.deh-pass .deh-input { padding-right: 48px; }
.deh-pass__toggle { position: absolute; right: 4px; top: 4px; width: 40px; height: 40px; border: 0; background: transparent; color: var(--deh-muted); border-radius: 8px; display: grid; place-items: center; }
.deh-check { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 15px; color: var(--deh-ink-2); }
.deh-check input, .deh-radios input { width: 18px; height: 18px; accent-color: var(--deh-primary); }
.deh-radios { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.deh-radios legend { width: 100%; padding: 0; margin-bottom: 6px; }
.deh-radios label { display: inline-flex; align-items: center; gap: 8px; font-size: 15.5px; }

.deh-alert { padding: 12px 14px; border-radius: 10px; background: var(--deh-warn-bg); color: #6b4e00; margin-top: 14px; font-size: 15px; display: grid; gap: 4px; }
.deh-alert--error { background: var(--deh-bad-bg); color: #8a2a1f; }
.deh-alert--good { background: var(--deh-good-bg); color: var(--deh-good); }

.deh-auth { display: grid; grid-template-columns: .9fr 1.1fr; gap: 0; max-width: 1000px !important; margin: 40px auto 64px; padding: 0 !important; border-radius: 20px; overflow: hidden; box-shadow: var(--deh-shadow-lg); border: 1px solid var(--deh-line); }
.deh-auth__panel {
	padding: 40px; color: #fff; display: flex; flex-direction: column; gap: 18px; justify-content: center;
	background:
		radial-gradient(circle at 20% 110%, rgba(242, 169, 0, .4), transparent 45%),
		repeating-linear-gradient(0deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 26px),
		var(--deh-primary);
}
.deh-auth__quote { font-family: var(--deh-font-head); font-size: 32px; font-weight: 800; line-height: 1.1; }
.deh-auth__text { color: rgba(255, 255, 255, .82); }
.deh-auth__list { list-style: none; display: grid; gap: 12px; }
.deh-auth__list li { display: flex; align-items: center; gap: 10px; list-style: none; color: rgba(255, 255, 255, .92); font-weight: 500; }
.deh-auth__list .deh-icon { color: var(--deh-accent); }
.deh-auth__card { padding: 36px 40px 32px; background: var(--deh-surface); }
.deh-auth__switch { margin-top: 20px; text-align: center; color: var(--deh-muted); font-size: 15px; }
.deh-auth__switch a { font-weight: 700; }
@media (max-width: 800px) {
	.deh-auth { grid-template-columns: 1fr; margin: 0 auto; border-radius: 0; box-shadow: none; border: 0; }
	.deh-auth__panel { display: none; }
	.deh-auth__card { padding: 28px 20px 40px; }
}

.deh-gate { padding: 56px 20px; }
.deh-gate__card { max-width: 520px; margin: 0 auto; padding: 32px; text-align: center; background: var(--deh-surface); border: 1px solid var(--deh-line); border-radius: 20px; display: grid; justify-items: center; gap: 12px; }
.deh-gate__ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--deh-primary-soft); color: var(--deh-primary); }
.deh-gate__btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* ---------- Dashboard ---------- */
.deh-dashhead { background: var(--deh-surface); border-bottom: 1px solid var(--deh-line); padding-top: 26px; }
.deh-dashhead__in { display: flex; align-items: center; gap: 18px; }
.deh-dashhead .deh-h1 { font-size: clamp(26px, 3vw, 34px); }
.deh-dash { padding-top: 24px; padding-bottom: 56px; }
.deh-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.deh-tile { padding: 16px 18px; background: var(--deh-surface); border: 1px solid var(--deh-line); border-radius: var(--deh-radius); }
.deh-tile dt { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--deh-muted); }
.deh-tile dd { font-family: var(--deh-font-head); font-size: 34px; font-weight: 800; line-height: 1.15; margin-top: 4px; }
.deh-tile dd small { font-size: 16px; color: var(--deh-muted); font-weight: 600; }
.deh-tile__foot { font-size: 12.5px; color: var(--deh-muted); }
.deh-tile--fire { background: var(--deh-accent-soft); border-color: transparent; }
.deh-tile--fire dt .deh-icon { color: #d9480f; }

.deh-dash__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.deh-dash__grid--forms { margin-top: 0; }
.deh-panel { padding: 20px 22px; background: var(--deh-surface); border: 1px solid var(--deh-line); border-radius: var(--deh-radius); min-width: 0; }
.deh-panel--wide { grid-column: 1 / -1; }
.deh-panel__h { display: flex; align-items: center; gap: 8px; font-size: 18px; margin-bottom: 14px; }
.deh-panel__headrow { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
@media (max-width: 860px) { .deh-dash__grid { grid-template-columns: 1fr; } }

.deh-trend { width: 100%; height: auto; display: block; overflow: visible; }
.deh-trend__grid { stroke: var(--deh-line); stroke-dasharray: 4 5; }
.deh-trend__lbl { font-size: 11px; fill: var(--deh-muted); font-family: var(--deh-font); }
.deh-trend__area { fill: var(--deh-primary); opacity: .08; }
.deh-trend__line { fill: none; stroke: var(--deh-primary); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.deh-trend__dot { fill: var(--deh-surface); stroke: var(--deh-accent); stroke-width: 3; }

.deh-bars { list-style: none; display: grid; gap: 12px; }
.deh-bars__row { display: grid; grid-template-columns: minmax(0, 1.2fr) 1fr 44px; align-items: center; gap: 10px; list-style: none; }
.deh-bars__name { display: inline-flex; align-items: center; gap: 7px; font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deh-bars__track { height: 10px; border-radius: 99px; background: var(--deh-tint); overflow: hidden; }
.deh-bars__track span { display: block; height: 100%; border-radius: 99px; background: var(--deh-primary); }
.deh-bars__row.is-good .deh-bars__track span { background: var(--deh-good); }
.deh-bars__row.is-mid .deh-bars__track span { background: var(--deh-accent); }
.deh-bars__row.is-low .deh-bars__track span { background: var(--deh-bad); }
.deh-bars__val { font-weight: 700; text-align: right; font-size: 14.5px; }

.deh-heat { display: grid; grid-template-columns: repeat(15, 1fr); gap: 5px; margin-bottom: 12px; }
.deh-heat span { aspect-ratio: 1; border-radius: 5px; background: var(--deh-tint); }
.deh-heat .l1 { background: #f8d77b; }
.deh-heat .l2 { background: #f0b429; }
.deh-heat .l3 { background: var(--deh-primary); }

.deh-tablewrap { overflow-x: auto; }
.deh-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.deh-table th { text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--deh-muted); font-weight: 700; padding: 10px 12px; border-bottom: 2px solid var(--deh-line); white-space: nowrap; }
.deh-table td { padding: 12px; border-bottom: 1px solid var(--deh-line); vertical-align: middle; }
.deh-table tr.is-me td { background: var(--deh-accent-soft); }
.deh-table__title a { font-weight: 600; color: var(--deh-ink) !important; }
.deh-table__act { text-align: right; }
.deh-pct { display: inline-block; padding: 1px 9px; border-radius: 6px; font-weight: 800; font-size: 14px; }
.deh-pct.is-good { background: var(--deh-good-bg); color: var(--deh-good); }
.deh-pct.is-mid { background: var(--deh-accent-soft); color: #7a5200; }
.deh-pct.is-low { background: var(--deh-bad-bg); color: var(--deh-bad); }
@media (max-width: 700px) {
	.deh-table thead { display: none; }
	.deh-table, .deh-table tbody, .deh-table tr, .deh-table td { display: block; width: 100%; }
	.deh-table tr { padding: 12px 0; border-bottom: 1px solid var(--deh-line); }
	.deh-table td { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border: 0; text-align: right; }
	.deh-table td::before { content: attr(data-label); color: var(--deh-muted); font-size: 13px; text-align: left; }
	.deh-table td.deh-table__title { display: block; text-align: left; font-size: 16px; }
	.deh-table td.deh-table__title::before, .deh-table td.deh-table__act::before { content: none; }
	.deh-table td.deh-table__act { justify-content: flex-start; padding-top: 8px; }
}

/* ---------- Leaderboard ---------- */
.deh-lb { padding-top: 28px; padding-bottom: 56px; }
.deh-pagehead--lb .deh-h1 .deh-icon { color: var(--deh-accent); }
.deh-podium { list-style: none; display: grid; grid-template-columns: 1fr 1.1fr 1fr; align-items: end; gap: 14px; max-width: 760px; margin: 8px auto 28px; }
.deh-podium__item { list-style: none; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 12px 18px; text-align: center; background: var(--deh-surface); border: 1px solid var(--deh-line); border-radius: 18px 18px 8px 8px; position: relative; }
.deh-podium__item.p1 { order: 2; padding-top: 34px; background: var(--deh-accent-soft); border-color: var(--deh-accent); }
.deh-podium__item.p2 { order: 1; }
.deh-podium__item.p3 { order: 3; }
.deh-podium__item.is-me { box-shadow: 0 0 0 3px var(--deh-primary); }
.deh-podium__medal { position: absolute; top: -16px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #fff; font-weight: 800; box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .4); }
.p1 .deh-podium__medal { background: #d4a106; }
.p2 .deh-podium__medal { background: #8e96a8; }
.p3 .deh-podium__medal { background: #b06a3b; }
.deh-podium__name { font-weight: 700; line-height: 1.25; }
.deh-podium__pts { font-family: var(--deh-font-head); font-size: 30px; font-weight: 800; color: var(--deh-primary); line-height: 1; }
.deh-podium__sub { font-size: 12.5px; color: var(--deh-muted); }
.deh-table--lb td:first-child { font-weight: 800; color: var(--deh-muted); width: 56px; }
.deh-table--lb td .deh-avatar { margin-right: 8px; vertical-align: middle; }
.deh-myrank { margin-top: 18px; padding: 12px 16px; border-radius: 12px; background: var(--deh-accent-soft); font-weight: 700; text-align: center; }
.deh-lb__join { max-width: 520px; margin: 28px auto 0; text-align: center; align-items: center; }
@media (max-width: 560px) {
	.deh-podium { gap: 8px; }
	.deh-podium__item { padding: 20px 6px 14px; }
	.deh-podium__pts { font-size: 22px; }
	.deh-podium .deh-avatar--lg { width: 44px; height: 44px; font-size: 16px; }
	.deh-podium__name { font-size: 13.5px; }
}

/* ---------- Footer ---------- */
.deh-footer { background: #11142c; color: rgba(255, 255, 255, .75); margin-top: auto; }
.deh-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; gap: 28px; padding-top: 48px; padding-bottom: 40px; }
.deh-footer__about p { margin: 12px 0 16px; font-size: 14.5px; max-width: 320px; }
.deh-brand--footer { color: #fff !important; }
.deh-brand--footer .deh-brand__name { color: #fff; }
.deh-footer__h { color: #fff !important; font-size: 16px; margin-bottom: 12px; }
.deh-footer__col ul { list-style: none; display: grid; gap: 7px; }
.deh-footer__col li { list-style: none; }
.deh-footer a { color: rgba(255, 255, 255, .75) !important; font-size: 14.5px; }
.deh-footer a:hover { color: #fff !important; }
.deh-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px; }
.deh-footer__bottom-in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 16px; padding-bottom: 18px; }
@media (max-width: 1000px) { .deh-footer__grid { grid-template-columns: 1fr 1fr 1fr; } .deh-footer__about { grid-column: 1 / -1; } }
@media (max-width: 700px) { .deh-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .deh-footer__grid { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Misc ---------- */
.deh-embed { margin: 1em 0; }
.deh-in-theme { --deh-bg: transparent; }
body.deh-nav-open { overflow: hidden; }
body.deh-nav-open .deh-header { z-index: 160; }

@media (prefers-reduced-motion: reduce) {
	.deh *, .deh *::before, .deh *::after { animation: none !important; transition: none !important; }
}

@media print {
	.deh-topbar, .deh-header, .deh-footer, .deh-side, .deh-ad, .deh-article__actions, .deh-prevnext, .deh-related, .deh-ctaquiz { display: none !important; }
	.deh-layout { display: block; }
	.deh-points { break-inside: avoid; }
}


/* ==========================================================================
   v1.1 — date pages, practice questions, author box, motion
   ========================================================================== */
.deh-lead { margin: 8px 0 18px; max-width: 70ch; font-size: 17px; color: var(--deh-ink-2); }
.deh-pagehead .deh-kicker { margin-top: 10px; }
.deh-dayhead__date { color: var(--deh-muted) !important; font-family: var(--deh-font); font-weight: 500; font-size: 15px; }
.deh-dayhead__date:hover { color: var(--deh-primary) !important; }

/* Day page */
.deh-daylist { list-style: none; display: grid; gap: 14px; margin-top: 20px; }
.deh-dayitem { list-style: none; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 18px 20px; background: var(--deh-surface); border: 1px solid var(--deh-line); border-radius: var(--deh-radius); }
.deh-dayitem__n { font-family: var(--deh-font-head); font-size: 34px; font-weight: 800; line-height: 1; color: var(--deh-accent); -webkit-text-stroke: .5px #8a5a00; }
.deh-dayitem__body { display: grid; gap: 8px; min-width: 0; }
.deh-dayitem__title { font-size: 21px; line-height: 1.3; }
.deh-dayitem__title a { color: var(--deh-ink) !important; }
.deh-dayitem__pts { list-style: none; display: grid; gap: 5px; }
.deh-dayitem__pts li { position: relative; padding-left: 18px; list-style: none; color: var(--deh-ink-2); }
.deh-dayitem__pts li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--deh-primary); transform: rotate(45deg); }
.deh-ctaquiz em { display: block; font-style: normal; font-size: 13.5px; opacity: .8; margin-top: 2px; }
@media (max-width: 560px) { .deh-dayitem { grid-template-columns: 1fr; gap: 6px; } .deh-dayitem__n { font-size: 24px; } }

/* Month page */
.deh-cal { padding: 18px; background: var(--deh-surface); border: 1px solid var(--deh-line); border-radius: var(--deh-radius); margin-bottom: 28px; }
.deh-cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-family: var(--deh-font-head); font-size: 20px; }
.deh-cal__head .deh-iconbtn { text-decoration: none !important; font-size: 20px; }
.deh-cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.deh-cal__wd { text-align: center; font-size: 12px; font-weight: 700; color: var(--deh-muted); text-transform: uppercase; letter-spacing: .04em; padding-bottom: 4px; }
.deh-cal__day { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; border-radius: 10px; background: var(--deh-bg); color: var(--deh-muted) !important; text-decoration: none !important; font-variant-numeric: tabular-nums; }
.deh-cal__day b { font-weight: 600; font-size: 15px; }
.deh-cal__day small { font-size: 11px; font-weight: 700; padding: 0 6px; border-radius: 99px; background: var(--deh-accent); color: #1d1600; }
.deh-cal__day.has-items { background: var(--deh-primary-soft); color: var(--deh-primary) !important; transition: transform .15s, background .15s; }
.deh-cal__day.has-items:hover { background: var(--deh-primary); color: #fff !important; transform: translateY(-2px); }
.deh-cal__day.is-today { box-shadow: inset 0 0 0 2px var(--deh-accent); }
.deh-monthdays { display: grid; gap: 14px; }
.deh-monthday { padding: 16px 18px; background: var(--deh-surface); border: 1px solid var(--deh-line); border-radius: var(--deh-radius); display: grid; gap: 10px; justify-items: start; }
.deh-monthday__h { font-size: 18px; }
.deh-monthday ul { display: grid; gap: 4px; padding-left: 18px; }
.deh-monthday li a { color: var(--deh-ink-2) !important; }
@media (max-width: 480px) { .deh-cal { padding: 12px; } .deh-cal__grid { gap: 4px; } .deh-cal__day { min-height: 44px; } }

/* Practice questions */
.deh-practice { margin: 32px 0; padding: 22px; border-radius: var(--deh-radius); background: var(--deh-surface); border: 1px solid var(--deh-line); display: grid; gap: 16px; justify-items: start; }
.deh-practice__head { display: grid; gap: 4px; }
.deh-practice__title { display: flex; align-items: center; gap: 8px; font-size: 21px; }
.deh-practice__list { list-style: none; display: grid; gap: 14px; width: 100%; }
.deh-pq { list-style: none; padding: 16px; border-radius: 12px; background: var(--deh-bg); border: 1px solid var(--deh-line); transition: border-color .2s; }
.deh-pq.is-right { border-color: var(--deh-good); }
.deh-pq.is-wrong { border-color: var(--deh-bad); animation: deh-shake .4s ease; }
.deh-pq__q { display: flex; gap: 10px; font-weight: 600; font-size: 17px; line-height: 1.45; margin-bottom: 12px; }
.deh-pq__n { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 7px; background: var(--deh-primary); color: #fff; font-size: 13px; font-weight: 800; }
.deh-pq__opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 600px) { .deh-pq__opts { grid-template-columns: 1fr; } }
.deh-pq__opt { display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 10px; padding: 9px 12px; text-align: left; border-radius: 10px; border: 1.5px solid var(--deh-line); background: var(--deh-surface); font-size: 15.5px; line-height: 1.35; transition: border-color .15s, background .15s, transform .1s; }
.deh-pq__opt .deh-opt__key { width: 30px; height: 30px; font-size: 13px; }
.deh-pq__opt:not([disabled]):hover { border-color: var(--deh-primary); }
.deh-pq__opt:not([disabled]):active { transform: scale(.98); }
.deh-pq__opt[disabled] { cursor: default; opacity: .75; }
.deh-pq__opt.is-correct { opacity: 1; border-color: var(--deh-good); background: var(--deh-good-bg); color: #0e5a36; font-weight: 600; animation: deh-pop .35s ease; }
.deh-pq__opt.is-correct .deh-opt__key { background: var(--deh-good); color: #fff; }
.deh-pq__opt.is-chosen { opacity: 1; border-color: var(--deh-bad); background: var(--deh-bad-bg); color: #8a2a1f; }
.deh-pq__opt.is-chosen .deh-opt__key { background: var(--deh-bad); color: #fff; }
.deh-pq__exp { margin-top: 12px; padding: 10px 14px; border-radius: 10px; background: var(--deh-surface); font-size: 15px; color: var(--deh-ink-2); display: grid; gap: 4px; }
.deh-js .deh-pq:not(.is-done) .deh-pq__exp { display: none; }
.deh-pq.is-done .deh-pq__exp { animation: deh-up .3s ease both; }
.deh-pq__verdict { font-weight: 800; }
.deh-pq.is-right .deh-pq__verdict { color: var(--deh-good); }
.deh-pq.is-wrong .deh-pq__verdict { color: var(--deh-bad); }
.deh-pq__verdict:empty { display: none; }

/* Byline + author box */
.deh-byline { display: inline-flex; align-items: center; gap: 8px; color: var(--deh-ink-2); font-weight: 600; }
.deh-article__meta a { color: inherit !important; }
.deh-authorbox { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; margin: 28px 0; padding: 18px 20px; border-radius: var(--deh-radius); background: var(--deh-surface); border: 1px solid var(--deh-line); }
.deh-authorbox__name { font-family: var(--deh-font-head); font-weight: 700; font-size: 19px; }
.deh-authorbox__bio { color: var(--deh-ink-2); font-size: 15px; margin: 4px 0; }

/* ---------- Motion ---------- */
@keyframes deh-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes deh-pop { 0% { transform: scale(1); } 40% { transform: scale(1.03); } 100% { transform: scale(1); } }
@keyframes deh-shake { 0%, 100% { transform: none; } 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
@keyframes deh-in-next { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes deh-in-prev { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@keyframes deh-float-in { from { transform: translateY(18px) rotate(3deg); } to { transform: rotate(1deg); } }
@keyframes deh-glow { 0%, 100% { filter: drop-shadow(0 0 0 rgba(242, 169, 0, 0)); } 50% { filter: drop-shadow(0 0 14px rgba(242, 169, 0, .55)); } }

.deh-qbox__stage.is-enter-next { animation: deh-in-next .26s cubic-bezier(.2,.8,.2,1) both; }
.deh-qbox__stage.is-enter-prev { animation: deh-in-prev .26s cubic-bezier(.2,.8,.2,1) both; }
.deh-opt input:checked + label { animation: deh-pop .28s ease; }
.deh-opt input:checked + label .deh-opt__key { transition: background .15s, color .15s, transform .2s; transform: scale(1.08); }
.deh-palette__grid button { transition: background .2s, border-color .2s, color .2s, transform .1s; }
.deh-palette__grid button:active { transform: scale(.94); }
.deh-resultwrap .deh-result { animation: deh-up .45s ease both; }
.deh-resultwrap .deh-review__item { animation: deh-up .4s ease both; animation-delay: calc(var(--i, 0) * 45ms + 250ms); }
.deh-resultwrap.is-great .deh-ring { animation: deh-glow 1.6s ease 2; }
.deh-pending { transform: translateY(18px); }
.deh-pending.is-in { transform: none; transition: transform .55s cubic-bezier(.2,.8,.2,1) var(--d, 0ms); }
.deh-card.deh-pending.is-in:hover { transform: translateY(-2px); }

/* ===== v1.2: weekly/monthly quizzes, figure questions, guest gate ===== */
.deh-badge--weekly { background: #e4f4ec; color: #146c43; }
.deh-badge--monthly { background: #efe7fb; color: #5a2fa8; }
.deh-badge--mock { background: #efe7fb; color: #5a2fa8; }
.deh-qcard--weekly { border-top: 4px solid #1f9d61; }
.deh-qcard--monthly { border-top: 4px solid #6d3fc0; }
.deh .deh-qimg { display: block; max-width: min(100%, 520px); height: auto; margin: 4px 0 14px; padding: 10px; background: #fff; border: 1px solid var(--deh-line); border-radius: 10px; }
.deh-gatebox { text-align: center; padding: 28px 12px 18px; }
.deh-gatebox__ico { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--deh-primary-soft); color: var(--deh-primary); margin-bottom: 10px; }
.deh .deh-gatebox h2 { font-size: 1.3rem; margin: 0 0 6px; }
.deh-gatebox p { color: var(--deh-muted); max-width: 420px; margin: 0 auto 16px; }
.deh-gatebox__btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.deh-preview-note { display: flex; gap: 8px; align-items: center; padding: 10px 14px; border-radius: 10px; background: var(--deh-accent-soft); color: #6b4800; font-size: .92rem; margin: 0 0 14px; }

/* ===== v1.2: study notes, vocabulary, fixed hubs ===== */
.deh-chip--note { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border: 0; background: var(--deh-accent-soft); color: #6b4800 !important; font-size: 12.5px; font-weight: 600; }
.deh-chip--good { border: 0; background: var(--deh-good-bg); color: var(--deh-good); font-size: 13.5px; }
.deh-chip--bad { border: 0; background: var(--deh-bad-bg); color: var(--deh-bad); font-size: 13.5px; }

.deh-notelist { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.deh-notelist a { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 12px 14px; background: var(--deh-surface); border: 1px solid var(--deh-line); border-radius: var(--deh-radius-sm); color: var(--deh-ink); text-decoration: none; font-weight: 600; transition: border-color .15s, transform .15s; }
.deh-notelist a > svg { color: var(--deh-primary); }
.deh-notelist a:hover { border-color: var(--deh-primary); transform: translateX(2px); }
.deh-notelist small { color: var(--deh-muted); font-weight: 500; font-size: 12.5px; white-space: nowrap; }
.deh-notelist--cards { grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.deh-notelist a > span { min-width: 0; overflow-wrap: anywhere; }
.deh-notelist--days { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.deh-notegroup { margin-bottom: 28px; scroll-margin-top: calc(var(--deh-header-h) + 16px); }
.deh-section--flat { margin: 28px 0; }

.deh-wordcard { background: var(--deh-surface); border: 1px solid var(--deh-line); border-radius: var(--deh-radius); padding: 22px; margin: 0 0 22px; box-shadow: var(--deh-shadow); }
.deh-wordcard__top { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.deh .deh-wordcard__word { font-family: var(--deh-font-head); font-size: clamp(1.9rem, 5vw, 2.6rem); font-weight: 800; margin: 0; letter-spacing: -.01em; color: var(--deh-primary); }
.deh-wordcard__meta { display: flex; gap: 10px; margin: 0; color: var(--deh-muted); }
.deh-wordcard__pos { font-style: italic; font-size: .95rem; padding: 2px 10px; border-radius: 999px; background: var(--deh-tint); color: var(--deh-muted); font-weight: 500; }
.deh-wordcard__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 22px; margin: 0 0 16px; }
.deh-wordcard__grid dt { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--deh-muted); font-weight: 700; margin-bottom: 4px; }
.deh-wordcard__grid dd { margin: 0; font-size: 1.02rem; }
.deh-wordcard__hi dd, .deh-wordcard__big { font-size: 1.35rem; font-weight: 700; color: var(--deh-ink); }
.deh-wordcard__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.deh-wordcard__ex { margin: 0 0 12px; padding: 14px 16px; border-left: 4px solid var(--deh-accent); background: var(--deh-tint); border-radius: 0 10px 10px 0; }
.deh-wordcard__ex p { margin: 0 0 4px; }
.deh-wordcard__tip { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 14px; border-radius: 10px; background: var(--deh-accent-soft); color: #5c3f00; }
.deh-wordcard--hero .deh-btn { margin-top: 6px; }
.deh-wordcard--home { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.deh-wordcard--home .deh-wordcard__word { font-size: 2rem; }
.deh-wordcard--home p { margin: 0; }
@media (max-width: 640px) { .deh-wordcard__grid { grid-template-columns: 1fr; } .deh-wordcard { padding: 18px; } }

.deh-wordgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.deh-wordmini { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--deh-line); border-radius: var(--deh-radius-sm); background: var(--deh-surface); text-decoration: none; color: var(--deh-ink); transition: border-color .15s, transform .15s; }
.deh-wordmini strong { color: var(--deh-primary); font-size: 1.05rem; }
.deh-wordmini span { color: var(--deh-muted); font-size: 13.5px; }
.deh-wordmini:hover { border-color: var(--deh-primary); transform: translateY(-2px); }

.deh-az__letters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.deh-az__letters a { display: inline-grid; place-items: center; min-width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--deh-line); background: var(--deh-surface); font-weight: 700; text-decoration: none; color: var(--deh-primary); }
.deh-az { columns: 3 200px; column-gap: 24px; }
.deh-az__group { break-inside: avoid; margin-bottom: 16px; scroll-margin-top: calc(var(--deh-header-h) + 16px); }
.deh .deh-az__group h3 { font-size: 1.1rem; margin: 0 0 6px; padding-bottom: 4px; border-bottom: 2px solid var(--deh-accent); display: inline-block; }
.deh-az__group ul { list-style: none; margin: 0; padding: 0; }
.deh-az__group li { padding: 3px 0; }

.deh-todaylist { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; }
.deh-todaylist__item { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 16px; background: var(--deh-surface); border: 1px solid var(--deh-line); border-radius: var(--deh-radius); }
.deh-todaylist__n { font-family: var(--deh-font-head); font-size: 1.5rem; font-weight: 800; color: var(--deh-accent); line-height: 1; }
.deh .deh-todaylist__t { font-size: 1.1rem; margin: 6px 0 4px; line-height: 1.35; }
.deh-todaylist__t a { color: var(--deh-ink); text-decoration: none; }
.deh-todaylist__t a:hover { color: var(--deh-primary); text-decoration: underline; }
.deh-todaylist__fact { margin: 0; color: var(--deh-muted); }

.deh-quizhub__latest { max-width: 520px; margin-bottom: 24px; }
.deh-rules { padding: 18px 20px; border-radius: var(--deh-radius); background: var(--deh-tint); margin-bottom: 24px; }
.deh-rules ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.deh-rules li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.deh-rules li svg { color: var(--deh-primary); margin-top: 3px; }
.deh-split--study { grid-template-columns: minmax(0, 1fr) 360px; }
@media (max-width: 960px) { .deh-split--study { grid-template-columns: minmax(0, 1fr); } }

/* ===== Account deletion ===== */
.deh-btn--danger { background: var(--deh-bad); color: #fff !important; border-color: transparent; }
.deh-btn--danger:hover { filter: brightness(.92); }
.deh-panel--danger { border-color: #f3c4c4; }
.deh-narrow { max-width: 760px; margin: 0 auto; padding-top: 8px; padding-bottom: 40px; }
.deh-steps-list { padding-left: 22px; display: grid; gap: 8px; margin: 12px 0 16px; }

/* ------------------------------------------------------------------ */
/* 1.2.2 — normal WordPress pages (About, Privacy, Contact …) + 404     */
/* ------------------------------------------------------------------ */
.deh-pagehead--cms { padding-bottom: 18px; }
.deh-pagehead--cms .deh-h1 { margin-top: 10px; }
.deh-cms__meta { display: flex; align-items: center; gap: 6px; margin: 2px 0 0; font-size: 14px; color: var(--deh-muted); }
.deh-layout--cms { padding-top: 26px; }
.deh-cms { padding: clamp(20px, 3.4vw, 40px); }
.deh-cms__body { font-size: 17px; line-height: 1.75; max-width: 74ch; }
.deh-cms__body > :first-child { margin-top: 0; }
.deh-cms__body h2 { font-size: clamp(21px, 2.3vw, 25px); padding-top: 18px; border-top: 1px solid var(--deh-line); scroll-margin-top: calc(var(--deh-header-h) + 24px); }
.deh-cms__body > h2:first-child { border-top: 0; padding-top: 0; }
.deh-cms__body h3 { font-size: 19px; }
.deh-cms__body .deh-lead, .deh-cms__body > p.deh-lead { font-size: clamp(17.5px, 1.9vw, 19.5px); line-height: 1.65; color: var(--deh-ink); padding: 16px 18px; margin: 0 0 6px; border-radius: 12px; background: var(--deh-tint); border-left: 4px solid var(--deh-accent); max-width: none; }
.deh-cms__body ul li::marker { color: var(--deh-accent); }
.deh-cms__body ol li::marker { color: var(--deh-primary); font-weight: 700; }
.deh-cms__body table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 10px; border: 1px solid var(--deh-line); border-collapse: separate; border-spacing: 0; }
.deh-cms__body th, .deh-cms__body td { border: 0; border-bottom: 1px solid var(--deh-line); vertical-align: top; min-width: 140px; }
.deh-cms__body thead th { background: var(--deh-primary); color: #fff; font-weight: 700; font-size: 14.5px; }
.deh-cms__body tbody tr:nth-child(even) td { background: var(--deh-tint); }
.deh-cms__body tbody tr:last-child td { border-bottom: 0; }
.deh-cms__body a.deh-mail { font-weight: 700; word-break: break-all; }
.deh-cms__body img { max-width: 100%; height: auto; border-radius: 12px; }

.deh-toc ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.deh-toc a { color: var(--deh-ink-2) !important; text-decoration: none; }
.deh-toc a:hover { color: var(--deh-primary) !important; text-decoration: underline; }
.deh-toc--inline { display: none; margin-bottom: 16px; padding: 12px 16px; background: var(--deh-surface); border: 1px solid var(--deh-line); border-radius: var(--deh-radius); }
.deh-toc--inline summary { cursor: pointer; font-weight: 700; }
.deh-toc--inline ol { margin-top: 10px; }
@media (max-width: 960px) {
	.deh-toc--inline { display: block; }
	.deh-toc--side { display: none; }
}
.deh-box--help { background: var(--deh-primary); border-color: var(--deh-primary); color: #fff; }
.deh-box--help .deh-box__title, .deh-box--help p { color: #fff; }
.deh-box--help .deh-btn--primary { background: var(--deh-accent); color: #1f1500 !important; border-color: var(--deh-accent); }
.deh-box--help .deh-box__mail { color: rgba(255, 255, 255, .78) !important; margin: 0; word-break: break-all; }
.deh-linklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.deh-linklist li + li { border-top: 1px solid var(--deh-line); }
.deh-linklist a { display: block; padding: 9px 0; color: var(--deh-ink-2) !important; text-decoration: none; font-size: 15px; }
.deh-linklist a:hover { color: var(--deh-primary) !important; }

.deh-notfound .deh-panel { text-align: center; padding: 36px 22px; }
.deh-notfound__code { font-family: var(--deh-font-head); font-size: clamp(64px, 12vw, 110px); font-weight: 800; line-height: 1; color: var(--deh-primary); opacity: .15; margin: 0 0 8px; }
.deh-notfound__links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }

.deh-footer__mail { display: inline-flex; align-items: center; gap: 6px; color: inherit !important; text-decoration: none; }
.deh-footer__mail:hover { text-decoration: underline; }
.deh-layout--cms > .deh-layout__main, .deh-layout--cms .deh-cms, .deh-layout--cms .deh-side { min-width: 0; max-width: 100%; }
.deh-cms__body { overflow-wrap: anywhere; }
.deh-cms__body table { max-width: 100%; }
@media (max-width: 600px) {
	.deh-cms { padding: 18px 16px; }
	.deh-cms__body { font-size: 16.5px; }
	.deh-cms__body th, .deh-cms__body td { min-width: 120px; font-size: 15px; }
}

/* 1.4 — single-column auth card (forgot / reset password) */
.deh-auth--single { grid-template-columns: 1fr; max-width: 520px !important; }

/* Form field errors (client-side checks) */
.deh-input.is-invalid{border-color:#c62828;box-shadow:0 0 0 3px rgba(198,40,40,.12)}
.deh-field-err{margin:-6px 0 12px;color:#c62828;font-size:.86rem;line-height:1.35}
.deh-btn.is-busy{opacity:.7;cursor:progress}

/* Footer social links + logo */
.deh-social{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0 4px}
.deh-social__link{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:12px;background:rgba(255,255,255,.08);color:inherit;border:1px solid rgba(255,255,255,.14);transition:background .15s,color .15s,transform .15s}
.deh-social__link:hover,.deh-social__link:focus-visible{background:var(--deh-accent,#f2a900);color:#1f1500;transform:translateY(-1px)}
.deh-footer__logo{display:inline-flex;background:#fff;border-radius:12px;padding:6px 10px}
.deh-footer__logo img{height:36px;width:auto;display:block}

/* Guest preview result: invite to take the full test */
.deh-unlock { display: grid; grid-template-columns: auto 1fr auto; gap: 14px 18px; align-items: center; margin: 18px 0; padding: 18px 20px; border-radius: 18px; background: linear-gradient(135deg, var(--deh-primary, #1f2a6b), #34408f); color: #fff; }
.deh-unlock__ico { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(255,255,255,.12); color: var(--deh-accent, #f2a900); }
.deh .deh-unlock h3 { margin: 0 0 4px; font-size: 1.15rem; color: #fff; }
.deh-unlock p { margin: 0; color: rgba(255,255,255,.88); font-size: .95rem; line-height: 1.45; }
.deh-unlock__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.deh-unlock .deh-btn--ghost { color: #fff; border-color: rgba(255,255,255,.5); background: transparent; }
.deh-unlock--end { margin-top: 24px; }
@media (max-width: 700px) {
	.deh-unlock { grid-template-columns: auto 1fr; }
	.deh-unlock__btns { grid-column: 1 / -1; }
	.deh-unlock__btns .deh-btn { flex: 1 1 auto; justify-content: center; }
}

/* 1.6.6 — answer reports, footer disclaimer, sources list */
.deh-report { margin-top: 10px; }
.deh-report__btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 4px 0; font: inherit; font-size: 13px; color: var(--deh-muted); cursor: pointer; }
.deh-report__btn:hover, .deh-report__btn:focus-visible { color: var(--deh-primary); text-decoration: underline; }
.deh-report__form { margin-top: 6px; padding: 12px; border: 1px solid var(--deh-line); border-radius: var(--deh-radius-sm); background: var(--deh-tint); display: grid; gap: 8px; }
.deh-report__form label { font-size: 13.5px; color: var(--deh-ink); font-weight: 600; }
.deh-report__form textarea { width: 100%; box-sizing: border-box; min-height: 58px; padding: 8px 10px; border: 1px solid var(--deh-line); border-radius: 8px; font: inherit; font-size: 14px; resize: vertical; background: var(--deh-surface); color: var(--deh-ink); }
.deh-report__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.deh-report__row select { padding: 6px 8px; border: 1px solid var(--deh-line); border-radius: 8px; font: inherit; font-size: 13.5px; background: var(--deh-surface); color: var(--deh-ink); }
.deh-report__row label { font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.deh-report__msg { margin: 0; font-size: 13px; color: #b42318; }
.deh-report__msg:empty { display: none; }
.deh-report__done { margin: 6px 0 0; font-size: 13.5px; color: #1a7f37; font-weight: 600; }
.deh-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.deh-footer__disclaimer { margin: 0 auto; padding-top: 14px; font-size: 12.5px; line-height: 1.55; opacity: .75; }
.deh-footer__disclaimer a { color: inherit; text-decoration: underline; }
.deh-sources { padding-left: 22px; }
.deh-sources li { margin: 4px 0; }

/* 1.7 — challenge a friend */
.deh-chbanner { display: grid; grid-template-columns: auto 1fr auto; gap: 16px 20px; align-items: center; margin: 0 0 18px; padding: 18px 22px; border-radius: var(--deh-radius); background: linear-gradient(135deg, var(--deh-primary), color-mix(in srgb, var(--deh-primary) 70%, #4a5bd0)); color: #fff; box-shadow: var(--deh-shadow); }
.deh-chbanner__ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .14); color: var(--deh-accent); }
.deh-chbanner .deh-kicker { color: var(--deh-accent); margin: 0; }
.deh-chbanner h2 { margin: 2px 0 4px; font-size: 21px; line-height: 1.3; color: #fff; }
.deh-chbanner p { margin: 0; color: rgba(255, 255, 255, .88); }
.deh-chbanner__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.deh-chbanner .deh-btn--ghost { background: transparent; color: #fff !important; border-color: rgba(255, 255, 255, .45); }
@media (max-width: 700px) { .deh-chbanner { grid-template-columns: auto 1fr; } .deh-chbanner__btns { grid-column: 1 / -1; } .deh-chbanner__btns .deh-btn { flex: 1; } }

.deh-vs { margin: 18px 0; padding: 18px 20px; border-radius: var(--deh-radius); border: 1px solid var(--deh-line); background: var(--deh-surface); text-align: center; }
.deh-vs--win { background: var(--deh-good-bg); border-color: color-mix(in srgb, var(--deh-good) 30%, transparent); }
.deh-vs--lose { background: var(--deh-warn-bg); }
.deh-vs__verdict { margin: 0 0 12px; font-size: 19px; font-weight: 800; color: var(--deh-ink); line-height: 1.35; }
.deh-vs__verdict svg { vertical-align: -3px; margin-right: 6px; }
.deh-vs--win .deh-vs__verdict { color: var(--deh-good); }
.deh-vs__grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; max-width: 460px; margin: 0 auto; }
.deh-vs__side { display: flex; flex-direction: column; align-items: center; padding: 12px; border-radius: 12px; background: var(--deh-surface); }
.deh-vs__side--me { box-shadow: inset 0 0 0 2px var(--deh-primary); }
.deh-vs__name { font-size: 13.5px; font-weight: 700; color: var(--deh-muted); }
.deh-vs__side strong { font-family: var(--deh-font-head); font-size: 34px; line-height: 1.1; color: var(--deh-primary); }
.deh-vs__of { font-size: 13px; color: var(--deh-muted); }
.deh-vs__x { font-weight: 800; color: var(--deh-muted); font-size: 14px; }
.deh-vs .deh-small { margin: 10px 0 0; }

.deh-chshare { display: grid; grid-template-columns: 1fr auto; gap: 12px 18px; align-items: center; margin: 18px 0; padding: 18px 20px; border-radius: var(--deh-radius); background: var(--deh-accent-soft); border: 1px solid color-mix(in srgb, var(--deh-accent) 35%, transparent); }
.deh-chshare h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 18px; }
.deh-chshare p { margin: 0; }
.deh-chshare__btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.deh-chshare__status { grid-column: 1 / -1; }
.deh-chshare__status:empty { display: none; }
@media (max-width: 700px) { .deh-chshare { grid-template-columns: 1fr; } .deh-chshare__btns { justify-content: stretch; } .deh-chshare__btns .deh-btn { flex: 1 1 100%; } }

/* 1.7 — dashboard: revision + challenges */
.deh-dash__grid--daily { margin-top: 16px; }
.deh-revcard { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.deh-revcard.is-due { background: var(--deh-accent-soft); border-color: color-mix(in srgb, var(--deh-accent) 35%, transparent); }
.deh-revcard p { margin: 0; }
.deh-revcard__big { font-family: var(--deh-font-head); font-size: 22px; font-weight: 800; color: var(--deh-ink); }
.deh-chlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.deh-chlist__item { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--deh-bg); }
.deh-chlist__txt { display: flex; flex-direction: column; min-width: 0; font-size: 14px; }
.deh-chlist__txt a { color: var(--deh-muted); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deh-chlist__score { display: flex; flex-direction: column; align-items: flex-end; font-weight: 800; font-variant-numeric: tabular-nums; }
.deh-chlist__score em { font-style: normal; font-size: 12px; font-weight: 700; }
.deh-chlist__item.is-won em { color: var(--deh-good); }
.deh-chlist__item.is-lost em { color: var(--deh-bad); }
.deh-chlist__item.is-tie em { color: var(--deh-muted); }

/* 1.7 — revision page */
.deh-revision { padding-top: 24px; padding-bottom: 56px; display: grid; gap: 20px; }
.deh-tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 520px) { .deh-tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .deh-tiles--3 .deh-tile { padding: 12px; } .deh-tiles--3 dt { font-size: 12px; } }
.deh-pq__tag { display: inline-block; margin-bottom: 8px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--deh-bad-bg); color: var(--deh-bad); }
.deh-revdone { font-size: 16px; }
.deh-revdone[hidden] { display: none; }

/* 1.7 — PDF pages */
.deh-pdflinks { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.deh-pdfhead__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.deh-pdf { background: var(--deh-surface); border: 1px solid var(--deh-line); border-radius: var(--deh-radius); padding: 24px 26px; min-width: 0; }
.deh-pdf__toc { padding: 14px 18px; border-radius: 12px; background: var(--deh-bg); margin-bottom: 8px; }
.deh-pdf__toc h2 { margin: 0 0 6px; font-size: 18px; }
.deh-pdf__toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; }
.deh-pdf__toc li { margin: 3px 0; break-inside: avoid; }
@media (max-width: 640px) { .deh-pdf { padding: 18px 16px; } .deh-pdf__toc ol { columns: 1; } }
.deh-pdf__day { margin-top: 26px; }
.deh-pdf__day > h2 { display: flex; align-items: center; gap: 8px; font-size: 21px; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--deh-primary); color: var(--deh-primary); }
.deh-pdf__item { padding: 12px 0 14px; border-bottom: 1px dashed var(--deh-line); }
.deh-pdf__item h3 { margin: 0 0 6px; font-size: 17.5px; line-height: 1.4; }
.deh-pdf__item h3 a { color: var(--deh-ink); text-decoration: none; }
.deh-pdf__n { color: var(--deh-primary); }
.deh-pdf__item ul { margin: 0; padding-left: 20px; }
.deh-pdf__item li { margin: 3px 0; line-height: 1.55; }
.deh-pdf__item p { margin: 0; }
.deh-pdf__more { margin-top: 6px !important; font-size: 14px; }
.deh-pdf__qs { margin-top: 30px; }
.deh-pdf__qs > h2 { display: flex; align-items: center; gap: 8px; font-size: 21px; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--deh-primary); color: var(--deh-primary); }
.deh-pdf__qlist { padding-left: 22px; margin: 0; }
.deh-pdf__qlist > li { margin: 0 0 12px; break-inside: avoid; }
.deh-pdf__qlist p { margin: 0 0 4px; font-weight: 600; }
.deh-pdf__opts { margin: 0; padding-left: 22px; columns: 2; column-gap: 24px; }
@media (max-width: 640px) { .deh-pdf__opts { columns: 1; } }
.deh-pdf__key { margin-top: 18px; padding: 14px 18px; border-radius: 12px; background: var(--deh-bg); }
.deh-pdf__key h3 { margin: 0 0 6px; font-size: 17px; }
.deh-pdf__key ol { margin: 0; padding-left: 22px; font-size: 14.5px; }
.deh-pdf__key li { margin: 2px 0; }
.deh-pdf__foot { margin-top: 22px; font-size: 13.5px; color: var(--deh-muted); text-align: center; }
.deh-box--pdf .deh-btn { width: 100%; justify-content: center; }
.deh-linklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.deh-linklist a { color: var(--deh-primary); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.deh-print-only { display: none; }

@media print {
	@page { margin: 14mm 12mm; }
	html, body { background: #fff !important; }
	.deh-topbar, .deh-header, .deh-footer, .deh-side, .deh-pdfhead, .deh-pdf__more, .deh-ad, .deh-backtop, .deh-cookie, .deh-bottomnav, .deh-toast { display: none !important; }
	.deh-layout { display: block !important; padding: 0 !important; }
	.deh-wrap { max-width: none !important; padding: 0 !important; }
	.deh-pdf { border: 0; padding: 0; box-shadow: none; }
	.deh-print-only { display: block; }
	.deh-pdf__cover { text-align: center; padding: 8mm 0 6mm; margin-bottom: 6mm; border-bottom: 3px solid #1f2a6b; }
	.deh-pdf__cover h1, .deh-pdf__cover .deh-pdf__title { font-weight: 800; line-height: 1.2; font-size: 24pt; margin: 4mm 0 2mm; color: #1f2a6b; }
	.deh-pdf__brand { font-weight: 800; color: #b07a00; letter-spacing: .02em; }
	.deh-pdf__toc ol { columns: 2; }
	.deh-pdf__item, .deh-pdf__qlist > li { break-inside: avoid; }
	.deh-pdf__day > h2, .deh-pdf__qs > h2 { break-after: avoid; }
	.deh-pdf__qs { break-before: page; }
	.deh-pdf a { color: inherit !important; text-decoration: none !important; }
	.deh-pdf svg { display: none; }
	.deh-pdf:not(.is-unlocked) .deh-pdf__body, .deh-pdf:not(.is-unlocked) .deh-pdf__cover, .deh-pdf:not(.is-unlocked) .deh-pdf__runhead { display: none !important; }
	.deh-pdf.is-unlocked .deh-pdf__lock { display: none !important; }
	.deh-pdf__lock { font-size: 16pt; text-align: center; padding-top: 40mm; position: relative; z-index: 1; }
}

/* 1.7.1 — PDF hub + links */
.deh-section__links { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; justify-content: flex-end; }
.deh-chip--pdf { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; font-size: 13.5px; }
.deh-user__menu .deh-badge { margin-left: auto; padding: 1px 8px; border-radius: 999px; background: var(--deh-accent); color: var(--deh-primary); text-transform: none; }
.deh-pdfhub { display: grid; gap: 22px; min-width: 0; }
.deh-pdfhub__latest { padding: 22px 24px; border-radius: var(--deh-radius); background: linear-gradient(135deg, var(--deh-accent-soft), var(--deh-surface)); border: 1px solid color-mix(in srgb, var(--deh-accent) 35%, transparent); }
.deh-pdfhub__latest .deh-kicker { margin: 0; }
.deh-pdfhub__latest h2 { margin: 4px 0; font-size: 24px; }
.deh-pdfhub__latest h2 a { color: var(--deh-ink); text-decoration: none; }
.deh-pdfhub__latest p { margin: 0 0 12px; }
.deh-pdfhub__weeks { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.deh-pdfhub__weeks .deh-chip { padding: 6px 12px; font-size: 13.5px; }
.deh-pdfhub__archive h2 { margin: 0 0 6px; font-size: 22px; }
.deh-pdfhub__year { margin: 14px 0 10px; font-size: 17px; color: var(--deh-muted); }
.deh-pdfhub__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.deh-pdfcard { padding: 16px 18px; border-radius: var(--deh-radius-sm); background: var(--deh-surface); border: 1px solid var(--deh-line); transition: border-color .15s, transform .15s; }
.deh-pdfcard:hover { border-color: var(--deh-primary); transform: translateY(-2px); }
.deh-pdfcard h4 { margin: 0 0 4px; font-size: 18px; }
.deh-pdfcard h4 a { display: inline-flex; align-items: center; gap: 8px; color: var(--deh-primary); text-decoration: none; }
.deh-pdfcard p { margin: 0 0 8px; }
.deh-pdfcard ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.deh-pdfcard li a { font-size: 14px; color: var(--deh-ink); text-decoration: none; }
.deh-pdfcard li a:hover { color: var(--deh-primary); text-decoration: underline; }
.deh-pdfhub__info { font-size: 16.5px; }
.deh-pdfhub__info h2 { font-size: 20px; margin-top: 1.1em; }
.deh-pdfhub__info h2:first-child { margin-top: 0; }
@media (max-width: 640px) { .deh-section__links { justify-content: flex-start; } .deh-pdfhub__latest { padding: 18px 16px; } }
@media (max-width: 640px) {
	.deh-section__head { flex-wrap: wrap; }
	.deh-section__links { flex: 1 1 100%; justify-content: space-between; }
}

/* 1.7.2 — branded PDF (logo header, watermark, clickable footer) + daily download limit */
.deh-pdf { position: relative; background-image: linear-gradient(color-mix(in srgb, var(--deh-surface) 45%, transparent), color-mix(in srgb, var(--deh-surface) 45%, transparent)), var(--deh-wm); background-repeat: no-repeat, repeat-y; background-position: 0 0, center 40px; background-size: 100% 100%, min(78%, 620px) auto; }
.deh-pdf__frame, .deh-pdf__main, .deh-pdf__main > tr, .deh-pdf__main > tr > td { display: block; width: 100%; margin: 0; padding: 0; border: 0; position: relative; }
.deh-pdf__frame td { padding: 0; border: 0; vertical-align: top; text-align: start; font-weight: inherit; }
.deh-pdfquota { margin: 10px 0 0; color: var(--deh-ink-2); }
.deh-pdfquota.is-live { font-weight: 600; color: var(--deh-primary); }
.deh-pdfquota a { color: var(--deh-primary); font-weight: 700; }
.deh-box--pdf .deh-pdfquota { margin-top: 10px; }
@media print {
	.deh-pdf { background: none !important; }
	.deh-pdf__wm { display: block !important; position: fixed; top: 50%; left: 50%; width: 165mm; max-width: none; transform: translate(-50%, -50%); z-index: 0; pointer-events: none; }
	.deh-pdf__frame { display: table !important; width: 100%; border-collapse: collapse; position: relative; z-index: 1; }
	.deh-pdf .deh-pdf__runhead { display: table-header-group !important; }
	.deh-pdf .deh-pdf__runfoot { display: table-footer-group !important; }
	.deh-pdf .deh-pdf__main { display: table-row-group !important; }
	.deh-pdf .deh-pdf__main > tr { display: table-row !important; }
	.deh-pdf .deh-pdf__main > tr > td { display: table-cell !important; }
	.deh-pdf__runhead-in { display: flex; align-items: center; justify-content: space-between; gap: 6mm; padding: 0 0 3mm; margin-bottom: 4mm; border-bottom: 1.5pt solid #f2a900; }
	.deh-pdf__runhead-in img { height: 11mm; width: auto; display: block; }
	.deh-pdf__runhead-in span { font-size: 9.5pt; font-weight: 700; color: #1f2a6b; text-align: right; }
	.deh-pdf__runfoot-in { margin-top: 5mm; padding-top: 2.5mm; border-top: 1pt solid #d5d9ea; font-size: 9.5pt; text-align: center; color: #444; }
	.deh-pdf .deh-pdf__runfoot-in a, .deh-pdf .deh-pdf__foot a, .deh-pdf .deh-pdf__cover p a { color: #1f4fd8 !important; text-decoration: underline !important; font-weight: 700; }
	.deh-pdf__cover .deh-pdf__logo { height: 26mm; width: auto; display: block; margin: 0 auto 2mm; }
	.deh-pdf__toc, .deh-pdf__key { background: rgba(244, 246, 252, .75) !important; }
}

/* 1.7.3 — phone-friendly content tables (notes, articles, exam info) */
.deh-rtable-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1em 0 1.4em; border-radius: 12px; }
.deh-prose .deh-rtable { margin: 0; }
.deh-prose .deh-rtable thead th { background: var(--deh-primary); color: #fff; border-color: var(--deh-primary); font-size: 14.5px; }
.deh-prose .deh-rtable tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--deh-primary) 4%, transparent); }
@media (max-width: 640px) {
	.deh-rtable-wrap { overflow: visible; }
	.deh-prose .deh-rtable--stack, .deh-prose .deh-rtable--stack tbody, .deh-prose .deh-rtable--stack tr, .deh-prose .deh-rtable--stack td { display: block; width: 100%; }
	.deh-prose .deh-rtable--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.deh-prose .deh-rtable--stack tr { margin: 0 0 10px; border: 1px solid var(--deh-line); border-radius: 12px; overflow: hidden; background: var(--deh-surface); }
	.deh-prose .deh-rtable--stack tbody tr:nth-child(even) td { background: transparent; }
	.deh-prose .deh-rtable--stack td { display: grid; grid-template-columns: minmax(96px, 38%) 1fr; gap: 10px; border: 0; border-bottom: 1px solid var(--deh-line); padding: 8px 12px; font-size: 15.5px; line-height: 1.45; }
	.deh-prose .deh-rtable--stack td:last-child { border-bottom: 0; }
	.deh-prose .deh-rtable--stack td::before { content: attr(data-label); font-weight: 700; color: var(--deh-muted); font-size: 13px; text-transform: none; }
	.deh-prose .deh-rtable--stack td:first-child { background: color-mix(in srgb, var(--deh-primary) 7%, transparent) !important; font-weight: 700; color: var(--deh-ink); }
	.deh-prose .deh-rtable--stack td:not([data-label])::before { content: none; }
	.deh-prose .deh-rtable--stack td:not([data-label]) { display: block; }
}
@media (max-width: 640px) {
	.deh-prose .deh-rtable--stack td:first-child { display: block; font-size: 16px; }
	.deh-prose .deh-rtable--stack td:first-child::before { content: none; }
	.deh-prose .deh-rtable--num td:first-child { display: none; }
	.deh-prose .deh-rtable--num td:nth-child(2) { display: block; background: color-mix(in srgb, var(--deh-primary) 7%, transparent) !important; font-weight: 700; font-size: 16px; color: var(--deh-ink); }
	.deh-prose .deh-rtable--num td:nth-child(2)::before { content: none; }
}

/* 1.7.3 — Exam Info tab */
.deh-tabpanel[hidden] { display: none !important; }
.deh-examinfo { background: var(--deh-surface); border: 1px solid var(--deh-line); border-radius: var(--deh-radius); padding: 22px 26px; min-width: 0; }
.deh-examinfo > h2:first-child { margin-top: 0; }
.deh-examinfo h2 { font-size: 21px; margin: 26px 0 10px; padding-bottom: 6px; border-bottom: 2px solid color-mix(in srgb, var(--deh-accent) 70%, transparent); }
.deh-examinfo h3 { font-size: 17px; margin: 12px 0 8px; }
.deh-examinfo table.deh-kv th { width: 34%; background: color-mix(in srgb, var(--deh-primary) 6%, transparent); color: var(--deh-ink); font-weight: 700; vertical-align: top; }
.deh-examinfo table.deh-kv td { vertical-align: top; }
.deh-examinfo tr.is-total td { background: color-mix(in srgb, var(--deh-accent) 16%, transparent) !important; }
.deh-examinfo__steps { counter-reset: step; list-style: none; padding-left: 0 !important; }
.deh-examinfo__steps li { position: relative; padding: 8px 0 8px 44px; margin: 0 !important; }
.deh-examinfo__steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 6px; width: 30px; height: 30px; border-radius: 50%; background: var(--deh-primary); color: #fff; font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.deh-examinfo__steps li:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 38px; bottom: -6px; width: 2px; background: var(--deh-line); }
.deh-examinfo__subjects { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 8px; }
.deh-examinfo__subjects li { margin: 0 !important; padding: 6px 12px; border-radius: 999px; background: var(--deh-accent-soft); border: 1px solid color-mix(in srgb, var(--deh-accent) 35%, transparent); font-size: 15px; }
.deh-examinfo__links a { font-weight: 600; }
.deh-examinfo__note { display: flex; gap: 8px; align-items: flex-start; margin-top: 22px !important; padding: 12px 14px; border-radius: 12px; background: var(--deh-bg); font-size: 14.5px; color: var(--deh-muted); }
.deh-examinfo__note svg { flex: none; margin-top: 3px; }
@media (max-width: 640px) {
	.deh-examinfo { padding: 16px 14px; }
	.deh-examinfo table.deh-kv th { width: 38%; font-size: 14px; }
	.deh-examinfo table.deh-kv th, .deh-examinfo table.deh-kv td { padding: 8px; font-size: 14.5px; }
	.deh-tabs { overflow-x: auto; scrollbar-width: none; }
}

/* 1.7.6 — author pages */
a.deh-byline { color: inherit; text-decoration: none; }
a.deh-byline:hover { text-decoration: underline; }
.deh-author { display: flex; gap: 22px; align-items: center; margin-top: 8px; }
.deh-author__photo { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; flex: none; border: 4px solid var(--deh-surface); box-shadow: var(--deh-shadow); }
.deh-author__photo--initials { display: grid; place-items: center; background: var(--deh-primary); color: #fff; font: 700 40px/1 var(--deh-font-head, inherit); }
.deh-author__role { margin: 4px 0 8px; font-weight: 600; color: var(--deh-ink-2); }
.deh-author__stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.deh-author__stats span { padding: 4px 10px; border-radius: 999px; background: var(--deh-accent-soft); font-size: 14px; font-weight: 600; }
.deh-author__social { margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 12px; font-weight: 600; }
.deh-author__about { margin-bottom: 24px; }
@media (max-width: 640px) { .deh-author { flex-direction: column; align-items: flex-start; } .deh-author__photo { width: 88px; height: 88px; } }
.deh-author__photo--logo { object-fit: contain; background: #fff; padding: 14px; }

/* 1.7.9 — richer vocabulary pages */
.deh-wordcard__more { margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: var(--deh-bg); }
.deh-wordcard__more ol { margin: 6px 0 0; padding-left: 20px; }
.deh-wordcard__more li { margin: 0 0 10px; line-height: 1.55; }
.deh-wordmore { margin: 22px 0; padding: 20px 22px; background: var(--deh-surface); border: 1px solid var(--deh-line); border-radius: var(--deh-radius); }
.deh-wordmore h2 { margin-top: 0; font-size: 21px; }
.deh-wordmore h3 { font-size: 16.5px; margin: 16px 0 6px; }
.deh-wordmore__confuse { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--deh-accent) 14%, transparent); }
.deh-wordmore__confuse svg { flex: none; margin-top: 4px; }
.deh-wordmore__phrases { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 12px; }
.deh-wordmore__phrases li { margin: 0; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--deh-primary) 8%, transparent); font-size: .95em; }
@media (max-width: 640px) { .deh-wordmore { padding: 16px 14px; } }

/* Answer key on quiz pages (1.8.1) */
.deh-akey { margin: 28px 0 8px; border: 1px solid var(--deh-line); border-radius: var(--deh-radius); background: var(--deh-surface); }
.deh-akey__sum { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 16px 18px; }
.deh-akey__sum::-webkit-details-marker { display: none; }
.deh-akey__sum > span:first-of-type { display: grid; gap: 2px; flex: 1; min-width: 0; }
.deh-akey__sum small { color: var(--deh-ink-2); font-size: 14px; font-weight: 400; }
.deh-akey__btn { flex: none; padding: 6px 12px; border-radius: 999px; background: var(--deh-primary); color: #fff; font-size: 13px; font-weight: 700; }
.deh-akey[open] .deh-akey__btn { opacity: .6; }
.deh-akey .deh-practice { margin: 0; border: 0; border-top: 1px solid var(--deh-line); border-radius: 0 0 var(--deh-radius) var(--deh-radius); }
.deh-akey[hidden] { display: none; }
@media print { .deh-akey { display: none; } }
.deh-count { white-space: nowrap; flex: none; }

/* More new words on the home word card (1.8.9) */
.deh-wordcard__more { margin: 10px 0 4px; font-size: 14px; color: var(--deh-ink-2); line-height: 1.6; }
.deh-wordcard__more span { font-weight: 700; color: var(--deh-ink); }
.deh-wordcard__more a { font-weight: 600; }
