:root {
    --brand-700: #1d4ed8;
    --brand-600: #1557e8;
    --brand-500: #2563eb;
    --brand-200: #bfdbfe;
    --brand-100: #dbeafe;
    --brand-50: #eff6ff;
    --navy-950: #0b1220;
    --navy-900: #101828;
    --text-secondary: #475467;
    --border: #e2e8f0;
    --color-page: #f8fafc;
    --color-surface: #ffffff;
    --color-surface-raised: #ffffff;
    --color-surface-muted: #f8fafc;
    --color-surface-hover: #f1f5f9;
    --color-border: #e2e8f0;
    --color-border-soft: #edf2f7;
    --color-text: #101828;
    --color-text-muted: #475467;
    --color-text-subtle: #667085;
    --color-primary: #1557e8;
    --color-primary-hover: #1d4ed8;
    --color-success: #15906e;
    --color-danger: #d45555;
    --color-warning: #e88635;
    --color-focus: rgba(21, 94, 239, 0.24);
    --ink-950: var(--navy-950);
    --ink-700: var(--text-secondary);
    --ink-500: #667085;
    --page: #f8fafc;
    --surface: #ffffff;
    --surface-muted: #f8fafc;
    --surface-soft: var(--brand-50);
    --ink: var(--navy-900);
    --muted: var(--text-secondary);
    --line: var(--border);
    --blue: var(--brand-600);
    --blue-dark: var(--brand-700);
    --blue-soft: var(--brand-50);
    --green: #15906e;
    --red: #d45555;
    --orange: #e88635;
    --purple: #7568d7;
    --shadow: 0 18px 44px rgba(16, 24, 40, 0.10);
    --shadow-card: 0 18px 42px rgba(16, 24, 40, 0.07);
    --shadow-soft: 0 10px 24px rgba(16, 24, 40, 0.06);
    --radius: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% -8%, rgba(21, 94, 239, 0.08), transparent 32%),
        radial-gradient(circle at 92% 0%, rgba(40, 120, 255, 0.07), transparent 30%),
        var(--page);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

main {
    min-height: 62vh;
}

::selection {
    color: #fff;
    background: var(--brand-600);
}

button,
input,
a {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(21, 94, 239, 0.24);
    outline-offset: 3px;
}

img,
video {
    max-width: 100%;
    display: block;
}

.shell {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
}

.narrow {
    width: min(780px, calc(100% - 40px));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
    transition: box-shadow 180ms ease, background-color 180ms ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 28px rgba(16, 24, 40, 0.07);
}

.nav {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0;
    color: var(--brand-700);
    font-size: 28px;
    font-weight: 850;
    letter-spacing: -0.03em;
}

.brand-mark {
    display: none;
}

.brand-mark::after {
    content: "";
    position: absolute;
    left: 6px;
    right: 6px;
    top: 15px;
    height: 5px;
    border-radius: 99px;
    background: #fff;
    transform: skew(-13deg);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a {
    position: relative;
    padding: 10px 11px 13px;
    border-radius: 0;
    color: var(--navy-900);
    font-size: 14px;
    font-weight: 700;
}

.nav-links a:hover,
.nav-links a.is-active {
    background: transparent;
    color: var(--blue-dark);
}

.nav-links a.is-active::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 5px;
    height: 2px;
    border-radius: 999px;
    background: var(--blue);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 17px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 820;
    color: var(--ink);
    background: #fff;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.button.small {
    min-height: 40px;
    padding: 9px 13px;
    font-size: 14px;
}

.button.primary {
    color: #fff;
    background: linear-gradient(135deg, var(--blue-dark), var(--blue));
    box-shadow: 0 14px 28px rgba(21, 94, 239, 0.22);
}

.button.secondary {
    color: var(--blue-dark);
    background: #fff;
    border-color: var(--line);
}

.button.light {
    color: var(--blue-dark);
    background: #fff;
}

.button.ghost {
    color: #42556c;
    background: #f8fafc;
    border-color: var(--line);
}

.button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
}

.button.primary:hover {
    box-shadow: 0 18px 34px rgba(21, 94, 239, 0.28);
}

.button.wide {
    width: 100%;
}

.button:disabled,
button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

input,
select,
textarea {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink);
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(21, 94, 239, 0.56);
    box-shadow: 0 0 0 4px rgba(21, 94, 239, 0.10);
}

.hero-card,
.category-card,
.template-card,
.lesson-card,
.lesson-row,
.lesson-content,
.auth-card,
.account-panel,
.account-banner,
.account-question-list article,
.account-mini-list article,
.account-stat-grid article {
    border-color: var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-card);
}

.category-card,
.template-card,
.lesson-card,
.lesson-row,
.account-question-list article,
.account-mini-list article {
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.category-card:hover,
.template-card:hover,
.lesson-card:hover,
.lesson-row:hover,
.account-question-list article:hover,
.account-mini-list article:hover {
    transform: translateY(-2px);
    border-color: rgba(21, 94, 239, 0.24);
    box-shadow: 0 22px 48px rgba(16, 24, 40, 0.10);
}

.hero-band {
    padding: 58px 0 36px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(248, 250, 252, 0.82)),
        radial-gradient(circle at 82% 12%, rgba(21, 94, 239, 0.10), transparent 30%);
}

.hero {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 42px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--brand-700);
    background: var(--brand-100);
    border: 1px solid #d8e6ff;
    font-size: 13px;
    font-weight: 800;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin: 16px 0 18px;
    font-size: 60px;
    line-height: 1.02;
    letter-spacing: 0;
}

h2 {
    font-size: 34px;
    line-height: 1.12;
    letter-spacing: 0;
}

h3 {
    font-size: 20px;
    line-height: 1.2;
}

.hero-copy p,
.page-hero p,
.section-head p,
.split p,
.legal-copy p {
    color: var(--muted);
    font-size: 17px;
}

.hero-actions,
.result-actions,
.inline-form {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 26px;
}

.hero-panel {
    min-height: 420px;
    display: flex;
    align-items: stretch;
}

.hero-card {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 210px;
    gap: 18px;
    align-items: end;
    padding: 26px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
}

.hero-card img {
    width: 210px;
    justify-self: end;
    filter: drop-shadow(0 18px 18px rgba(29, 70, 105, 0.16));
}

.soft-label,
.muted {
    color: var(--muted);
}

.mini-progress,
.progress-track {
    width: 100%;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #e3edf5;
}

.mini-progress {
    margin: 20px 0 14px;
}

.mini-progress span,
.progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand-500), var(--blue));
}

.section {
    padding: 58px 0;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.category-card {
    min-height: 150px;
    display: flex;
    padding: 17px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow-card);
}

.category-card button,
.category-card {
    width: 100%;
    text-align: left;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
}

.category-card button {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.category-card span {
    font-weight: 850;
}

.category-card strong {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.accent-general {
    border-color: #b9d9f2;
}

.accent-blue {
    border-color: #c7e3f8;
}

.accent-red {
    border-color: #f0cbcb;
}

.accent-orange {
    border-color: #f2d5bd;
}

.accent-green {
    border-color: #c4e4d8;
}

.soft-section {
    padding: 62px 0;
    background:
        linear-gradient(135deg, rgba(234, 242, 255, 0.88), rgba(255, 255, 255, 0.94) 58%, rgba(245, 248, 255, 0.98));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.split {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 24px;
    align-items: stretch;
}

.guide-links {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 20px;
}

.guide-links a {
    padding: 9px 11px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: #fff;
    color: var(--brand-700);
    font-size: 14px;
    font-weight: 760;
}

.app-promo {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 18px;
    align-items: center;
    padding: 22px;
    border-radius: var(--radius-lg);
    color: #fff;
    background: linear-gradient(135deg, var(--brand-700), var(--brand-600));
    box-shadow: var(--shadow);
}

.app-promo p {
    color: #dbeefa;
}

.app-promo img {
    max-height: 170px;
    object-fit: contain;
}

.ad-placeholder {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px dashed #bfd1df;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.54);
    color: #77899c;
    text-align: center;
}

.page-hero {
    padding: 68px 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(248, 250, 252, 0.92)),
        radial-gradient(circle at 16% 0%, rgba(21, 94, 239, 0.10), transparent 34%),
        radial-gradient(circle at 84% 10%, rgba(40, 120, 255, 0.08), transparent 28%);
    border-bottom: 1px solid var(--line);
}

.placeholder-block,
.notice {
    padding: 16px;
    border-radius: var(--radius-lg);
    border: 1px solid #f1d8a8;
    background: #fff9ec;
    color: #72561a;
}

.exam-shell {
    min-height: calc(100vh - 76px);
    padding: 26px 0 64px;
}

.exam-layout {
    width: min(1160px, calc(100% - 32px));
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 18px;
    align-items: start;
}

.exam-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    color: #40556e;
    font-weight: 850;
}

.question-card {
    padding: 22px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow);
}

.question-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 780;
}

.progress-track {
    margin: 14px 0 22px;
    height: 8px;
}

.question-card h1 {
    font-size: 28px;
    line-height: 1.25;
    margin: 18px 0 22px;
}

.exam-side {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 12px;
}

.side-brand {
    display: inline-flex;
    color: var(--blue-dark);
    font-weight: 900;
}

.side-panel {
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 12px 26px rgba(29, 70, 105, 0.07);
}

.timer {
    font-size: 32px;
    line-height: 1;
}

.progress-track.compact {
    margin: 4px 0 0;
}

.stat-panel {
    grid-template-columns: 1fr 1fr;
}

.stat-panel span {
    display: grid;
    gap: 2px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 760;
}

.stat-panel strong {
    color: var(--ink);
    font-size: 18px;
}

.question-palette {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.palette-dot {
    min-height: 32px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    color: #56708a;
    background: #eef5fa;
    font-size: 12px;
    font-weight: 850;
}

.palette-dot.current {
    color: #fff;
    background: var(--blue);
}

.palette-dot.done {
    color: #0f614d;
    background: #dff5ed;
}

.palette-dot.empty {
    color: #795a13;
    background: #fff1ce;
}

.question-media {
    width: 100%;
    max-height: 360px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #f8fbfd;
}

.answers {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.answer-option {
    width: 100%;
    min-height: 60px;
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 12px;
    align-items: center;
    padding: 13px;
    border: 1px solid #d9e5ee;
    border-radius: var(--radius);
    color: #26384d;
    background: #fff;
    text-align: left;
    cursor: pointer;
}

.answer-option:hover {
    border-color: #92c7ed;
    background: #f7fcff;
}

.locked-option {
    cursor: default;
}

.locked-option:hover {
    border-color: #d9e5ee;
    background: #fff;
}

.answer-option.is-correct {
    border-color: #8bd9bd;
    background: #effbf6;
}

.answer-option.is-correct .option-key {
    color: #fff;
    background: var(--green);
}

.answer-option.is-wrong {
    border-color: #f0b8b8;
    background: #fff4f4;
}

.answer-option.is-wrong .option-key {
    color: #fff;
    background: var(--red);
}

.answer-badge {
    display: inline-flex;
    margin-left: 8px;
    padding: 3px 7px;
    border-radius: 999px;
    color: #31516c;
    background: #edf6fb;
    font-size: 12px;
}

.explanation-box {
    margin: 14px 0;
    padding: 15px;
    border: 1px solid #cde4f6;
    border-radius: var(--radius);
    background: #f3faff;
}

.explanation-box p {
    margin: 6px 0 0;
    color: var(--muted);
}

.option-key {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    color: #4e6b86;
    background: #eef5fa;
    font-weight: 900;
}

.option-media {
    margin-top: 10px;
    max-height: 140px;
    object-fit: contain;
    border-radius: var(--radius);
}

.result-grid,
.performance-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.result-stat,
.performance-grid article,
.review-card {
    padding: 18px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 12px 26px rgba(29, 70, 105, 0.07);
}

.result-stat span,
.performance-grid span,
.review-card span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 760;
}

.result-stat strong {
    display: block;
    margin-top: 6px;
    font-size: 34px;
}

.performance-grid article {
    display: grid;
    gap: 7px;
}

.performance-grid article > strong {
    font-size: 17px;
}

.performance-grid small {
    color: var(--muted);
}

.review-list {
    display: grid;
    gap: 12px;
}

.review-card h3 {
    margin: 8px 0 10px;
}

.template-grid,
.lesson-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.template-grid.compact-grid {
    grid-template-columns: repeat(4, 1fr);
}

.template-group {
    margin-top: 28px;
}

.template-group:first-of-type {
    margin-top: 0;
}

.template-card,
.lesson-card,
.lesson-row {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-card);
}

.template-card {
    align-content: space-between;
}

.template-card span,
.lesson-card span,
.lesson-row span {
    font-weight: 850;
}

.template-card strong,
.lesson-card strong,
.lesson-row strong {
    color: var(--muted);
    font-size: 13px;
}

.compact-card {
    min-height: 150px;
}

.lesson-list {
    display: grid;
    gap: 10px;
}

.lesson-row {
    grid-template-columns: 1fr auto;
    align-items: center;
}

.lesson-content {
    width: min(820px, 100%);
    margin: 0 auto;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-card);
}

.lesson-content h2 {
    margin-top: 26px;
    font-size: 26px;
}

.lesson-content h2:first-child {
    margin-top: 0;
}

.lesson-content p,
.lesson-content li {
    color: #3d5067;
    font-size: 17px;
}

.lesson-content img {
    max-height: 420px;
    margin: 18px auto;
    object-fit: contain;
    border-radius: var(--radius);
    border: 1px solid var(--line);
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 34px 0 28px;
    color: #667085;
    background:
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) repeat(3, minmax(120px, 0.8fr));
    align-items: center;
    gap: 28px;
}

.footer-grid p {
    max-width: 280px;
    margin: 6px 0 0;
    font-size: 14px;
}

.footer-brand strong {
    color: var(--brand-700);
    font-size: 30px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.footer-links {
    display: grid;
    gap: 8px;
    font-weight: 720;
}

.footer-links strong {
    color: var(--ink);
    font-size: 14px;
}

.footer-links a {
    color: #667085;
    font-size: 13px;
    transition: color 160ms ease;
}

.footer-links a:hover {
    color: var(--brand-700);
}

@media (max-width: 940px) {
    .hero,
    .split {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-panel {
        min-height: auto;
    }

    .result-grid,
    .performance-grid,
    .template-grid,
    .template-grid.compact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 680px) {
    .shell,
    .narrow,
    .exam-layout {
        width: min(100% - 28px, 1160px);
    }

    .nav {
        min-height: 66px;
    }

    .nav-links {
        display: none;
    }

    .nav-action .button {
        min-height: 38px;
        padding: 8px 10px;
        font-size: 13px;
    }

    h1 {
        font-size: 40px;
        line-height: 1.06;
    }

    h2 {
        font-size: 28px;
    }

    .hero-band {
        padding-top: 34px;
    }

    .hero-card {
        grid-template-columns: 1fr 128px;
        padding: 18px;
    }

    .hero-card img {
        width: 128px;
    }

    .category-grid,
    .result-grid,
    .performance-grid,
    .template-grid,
    .template-grid.compact-grid,
    .lesson-grid {
        grid-template-columns: 1fr;
    }

    .exam-layout {
        grid-template-columns: 1fr;
    }

    .exam-side {
        position: static;
        order: -1;
    }

    .question-palette {
        grid-template-columns: repeat(10, 1fr);
    }

    .app-promo {
        grid-template-columns: 94px 1fr;
        padding: 18px;
    }

    .app-promo img {
        max-height: 120px;
    }

    .page-hero,
    .section,
    .soft-section {
        padding: 42px 0;
    }

    .question-card {
        padding: 16px;
    }

    .question-card h1 {
        font-size: 22px;
    }

    .answer-option {
        grid-template-columns: 32px 1fr;
        min-height: 58px;
    }

    .footer-grid {
        align-items: flex-start;
        grid-template-columns: 1fr;
    }
}



/* Home page: editorial blue product landing. */
.home-page {
    --home-shadow-lg: 0 34px 80px rgba(15, 23, 42, 0.12);
    --home-shadow-md: 0 18px 42px rgba(15, 23, 42, 0.08);
    --home-shadow-sm: 0 10px 26px rgba(15, 23, 42, 0.055);
    --home-radius-sm: 12px;
    --home-radius-md: 18px;
    --home-radius-lg: 26px;
    overflow: clip;
    color: var(--text-secondary);
    background: #fff;
}

.home-page .shell {
    width: min(1240px, calc(100% - 40px));
}

.home-page h1,
.home-page h2,
.home-page h3,
.home-page p,
.home-page dl,
.home-page dd,
.home-page ol,
.home-page ul {
    margin-top: 0;
}

.home-eyebrow,
.home-section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    color: var(--brand-600);
    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0.01em;
}

.home-eyebrow > span {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--brand-500);
    box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.10);
}

.home-hero {
    position: relative;
    isolation: isolate;
    padding: 78px 0 82px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.98)),
        #fff;
}

.home-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 680px;
    height: 680px;
    right: -220px;
    top: -240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.14), rgba(37, 99, 235, 0));
}

.home-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: 0.28;
    background-image: radial-gradient(rgba(37, 99, 235, 0.18) 0.75px, transparent 0.75px);
    background-size: 22px 22px;
    mask-image: linear-gradient(to right, transparent 0%, transparent 54%, #000 83%, transparent 100%);
}

.home-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
    gap: clamp(56px, 6vw, 92px);
    align-items: center;
}

.home-hero-copy {
    max-width: 600px;
}

.home-hero h1 {
    max-width: 620px;
    margin: 0;
    color: var(--navy-950);
    font-size: clamp(50px, 5vw, 70px);
    font-weight: 760;
    line-height: 0.99;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.home-lead {
    max-width: 590px;
    margin: 24px 0 0;
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1.68;
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.home-actions form,
.home-study-main form,
.home-final-panel form {
    margin: 0;
}

.home-primary-action,
.home-secondary-action,
.home-panel-action,
.home-final-action {
    min-height: 52px;
    gap: 11px;
    border-radius: 12px;
    font-weight: 680;
    white-space: nowrap;
}

.home-primary-action {
    padding-inline: 22px;
}

.home-secondary-action {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 20px;
    border: 1px solid #cfd8e6;
    border-radius: 12px;
    color: var(--navy-900);
    background: rgba(255, 255, 255, 0.88);
    font-weight: 650;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.035);
    transition: color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.home-secondary-action:hover {
    color: var(--brand-700);
    border-color: var(--brand-200);
    transform: translateY(-1px);
    box-shadow: var(--home-shadow-sm);
}

.home-proof-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 34px 0 0;
}

.home-proof-list > div {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 12px;
    border: 1px solid rgba(207, 216, 230, 0.82);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(10px);
}

.home-proof-list > div > span:last-child {
    min-width: 0;
}

.home-proof-icon {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: var(--brand-700);
    background: var(--brand-50);
}

.home-proof-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.home-proof-list dt {
    color: var(--navy-950);
    font-size: 18px;
    font-weight: 760;
    line-height: 1.05;
    white-space: nowrap;
}

.home-proof-list dd {
    margin: 4px 0 0;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 560;
    line-height: 1.2;
    white-space: nowrap;
}

.home-notice {
    margin: 18px 0 0;
}

.home-hero-visual {
    position: relative;
    min-height: 510px;
    display: grid;
    align-items: center;
    padding: 18px 68px 28px 0;
}

.home-preview-glow {
    position: absolute;
    inset: 48px 18px 44px 54px;
    border-radius: 42px;
    background: linear-gradient(145deg, rgba(219, 234, 254, 0.78), rgba(239, 246, 255, 0.12));
    filter: blur(0.2px);
    transform: rotate(-2deg);
}

.home-exam-preview {
    position: relative;
    z-index: 2;
    width: min(100%, 590px);
    padding: 22px;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: var(--home-radius-lg);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--home-shadow-lg);
}

.home-preview-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e9eef5;
}

.home-preview-top > div {
    display: grid;
    gap: 4px;
}

.home-preview-kicker {
    color: var(--brand-600);
    font-size: 11px;
    font-weight: 760;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.home-preview-top strong {
    color: var(--navy-950);
    font-size: 15px;
    font-weight: 700;
}

.home-preview-timer {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    border-radius: 999px;
    color: var(--brand-700);
    background: var(--brand-50);
    font-size: 12px;
    font-weight: 720;
}

.home-preview-timer svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.home-preview-body {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 22px;
    padding: 22px 0 20px;
}

.home-sign-panel {
    min-height: 218px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 1px solid #dbe5f2;
    border-radius: 18px;
    background: linear-gradient(180deg, #f8fbff, #edf5ff);
}

.home-sign-panel small {
    color: #52647b;
    font-size: 11px;
    font-weight: 680;
}

.home-sign-shape {
    position: relative;
    width: 84px;
    height: 84px;
    border-radius: 13px;
    background: var(--brand-700);
    box-shadow: inset 0 0 0 6px #8bb8ff, 0 12px 26px rgba(29, 78, 216, 0.18);
}

.home-sign-shape::before {
    content: "";
    position: absolute;
    left: 23px;
    right: 23px;
    top: 19px;
    height: 13px;
    background: #ef4444;
}

.home-sign-shape::after {
    content: "";
    position: absolute;
    left: 37px;
    top: 27px;
    width: 10px;
    height: 42px;
    background: #fff;
}

.home-preview-question {
    min-width: 0;
}

.home-preview-question-title {
    margin-bottom: 14px;
    color: var(--navy-950);
    font-size: 21px;
    font-weight: 720;
    line-height: 1.24;
    letter-spacing: -0.015em;
}

.home-preview-options {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-preview-options li {
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #344054;
    background: #f8fafc;
    font-size: 12px;
    font-weight: 580;
    line-height: 1.25;
}

.home-preview-options li > span {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border: 1px solid #d7deea;
    border-radius: 50%;
    color: #667085;
    background: #fff;
    font-size: 10px;
    font-weight: 760;
}

.home-preview-options .is-selected {
    color: var(--brand-700);
    border-color: #c8dcff;
    background: var(--brand-50);
    font-weight: 680;
}

.home-preview-options .is-selected > span {
    color: #fff;
    border-color: var(--brand-600);
    background: var(--brand-600);
}

.home-preview-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    padding-top: 16px;
    border-top: 1px solid #e9eef5;
}

.home-preview-progress {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8eef7;
}

.home-preview-progress span {
    display: block;
    width: 34%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand-700), #4f8cff);
}

.home-preview-page {
    color: #667085;
    font-size: 11px;
    font-weight: 650;
}

.home-preview-next {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 9px;
    color: #fff;
    background: var(--brand-600);
    font-size: 11px;
    font-weight: 680;
}

.home-mascot-stage {
    position: absolute;
    z-index: 3;
    right: -4px;
    bottom: 14px;
    width: clamp(170px, 15vw, 220px);
    pointer-events: none;
}

.home-mascot {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 22px 24px rgba(15, 23, 42, 0.18));
}

.home-visual-note {
    position: absolute;
    z-index: 4;
    right: 118px;
    bottom: 4px;
    min-width: 164px;
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 2px 10px;
    align-items: center;
    padding: 11px 13px;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--home-shadow-md);
    backdrop-filter: blur(12px);
}

.home-visual-note > span {
    grid-row: 1 / 3;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: var(--brand-700);
    background: var(--brand-50);
}

.home-visual-note svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.home-visual-note strong {
    color: var(--navy-950);
    font-size: 12px;
    line-height: 1.2;
}

.home-visual-note small {
    color: #667085;
    font-size: 10px;
    line-height: 1.2;
}

.home-study,
.home-benefits,
.home-topics,
.home-final {
    padding: 94px 0;
}

.home-study {
    background: #fff;
}

.home-section-heading {
    max-width: 680px;
}

.home-section-heading h2 {
    margin: 0;
    color: var(--navy-950);
    font-size: clamp(32px, 3.3vw, 48px);
    font-weight: 720;
    line-height: 1.08;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.home-section-heading > p:last-child:not(.home-section-label) {
    margin: 18px 0 0;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.62;
}

.home-heading-row {
    max-width: none;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 34px;
}

.home-heading-row > p {
    max-width: 410px;
    margin: 0 0 5px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

.home-heading-link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--brand-700);
    font-size: 14px;
    font-weight: 680;
}

.home-study-grid {
    display: grid;
    grid-template-columns: minmax(330px, 0.82fr) minmax(0, 1.18fr);
    gap: 20px;
    align-items: stretch;
}

.home-study-main {
    position: relative;
    overflow: hidden;
    min-height: 430px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    padding: 34px;
    border-radius: var(--home-radius-lg);
    color: #fff;
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.18), transparent 36%),
        linear-gradient(145deg, #1e40af 0%, #1557e8 58%, #2878ff 100%);
    box-shadow: 0 28px 60px rgba(29, 78, 216, 0.25);
}

.home-study-main::after {
    content: "";
    position: absolute;
    right: -74px;
    bottom: -74px;
    width: 210px;
    height: 210px;
    border: 44px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.home-study-main-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.home-study-number {
    color: rgba(255, 255, 255, 0.48);
    font-size: 34px;
    font-weight: 750;
    line-height: 1;
}

.home-study-badge {
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.11);
    font-size: 11px;
    font-weight: 680;
}

.home-study-main > div,
.home-study-main form,
.home-study-meta {
    position: relative;
    z-index: 1;
}

.home-study-main > div > p:first-child {
    margin-bottom: 8px;
    color: #dbeafe;
    font-size: 13px;
    font-weight: 700;
}

.home-study-main h3 {
    max-width: 400px;
    margin: 0;
    color: #fff;
    font-size: clamp(34px, 3vw, 46px);
    font-weight: 720;
    line-height: 1.02;
    letter-spacing: -0.035em;
}

.home-study-copy {
    max-width: 430px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
    line-height: 1.6;
}

.home-study-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-study-meta li {
    position: relative;
    padding-left: 14px;
    color: #fff;
    font-size: 13px;
    font-weight: 650;
}

.home-study-meta li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #bfdbfe;
}

.home-panel-action {
    width: fit-content;
    min-width: 190px;
    color: var(--brand-700);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.home-study-options {
    display: grid;
    gap: 12px;
}

.home-option-card {
    min-height: 132px;
    display: grid;
    grid-template-columns: 38px 44px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 22px 24px;
    border: 1px solid var(--border);
    border-radius: var(--home-radius-md);
    background: #fff;
    box-shadow: var(--home-shadow-sm);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.home-option-index {
    color: #a1afc1;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.06em;
}

.home-card-icon,
.home-topic-icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--brand-700);
    background: var(--brand-50);
}

.home-card-icon svg,
.home-topic-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.home-option-copy {
    min-width: 0;
}

.home-option-card strong,
.home-benefit h3,
.home-topic-card strong {
    display: block;
    color: var(--navy-950);
    font-size: 17px;
    font-weight: 670;
    line-height: 1.25;
}

.home-option-card small,
.home-benefit p,
.home-topic-card small {
    display: block;
    margin-top: 6px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.home-option-card em,
.home-topic-card em {
    color: var(--brand-700);
    font-size: 13px;
    font-style: normal;
    font-weight: 680;
    white-space: nowrap;
}

.home-option-card:hover,
.home-topic-card:hover {
    transform: translateY(-3px);
    border-color: var(--brand-200);
    box-shadow: var(--home-shadow-md);
}

.home-benefits {
    border-top: 1px solid #e8edf4;
    border-bottom: 1px solid #e8edf4;
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(243, 247, 253, 0.96));
}

.home-benefits-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
    gap: clamp(54px, 7vw, 104px);
    align-items: center;
}

.home-benefit-grid {
    display: grid;
    gap: 2px;
    border: 1px solid var(--border);
    border-radius: var(--home-radius-lg);
    overflow: hidden;
    background: var(--border);
    box-shadow: var(--home-shadow-sm);
}

.home-benefit {
    min-height: 128px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding: 24px;
    background: rgba(255, 255, 255, 0.96);
}

.home-benefit .home-card-icon {
    width: 48px;
    height: 48px;
}

.home-benefit h3,
.home-benefit p {
    margin-bottom: 0;
}

.home-topics {
    background: #fff;
}

.home-topic-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.home-topic-card {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: var(--home-radius-md);
    background: #fff;
    box-shadow: var(--home-shadow-sm);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.home-topic-icon {
    margin-bottom: 38px;
}

.home-topic-copy {
    display: block;
}

.home-topic-card small {
    min-height: 63px;
}

.home-topic-card em {
    margin-top: auto;
    padding-top: 22px;
}

.home-final {
    padding-top: 16px;
    background: #fff;
}

.home-final-panel {
    position: relative;
    overflow: hidden;
    min-height: 248px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 42px;
    align-items: center;
    padding: 48px 54px;
    border-radius: var(--home-radius-lg);
    background:
        radial-gradient(circle at 86% 20%, rgba(59, 130, 246, 0.35), transparent 31%),
        linear-gradient(135deg, #0b1f4c 0%, #102f74 48%, #1557e8 100%);
    box-shadow: 0 30px 70px rgba(15, 35, 82, 0.22);
}

.home-final-panel::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -120px;
    width: 330px;
    height: 330px;
    border: 54px solid rgba(255, 255, 255, 0.055);
    border-radius: 50%;
}

.home-final-copy,
.home-final-panel form {
    position: relative;
    z-index: 1;
}

.home-final-copy .home-section-label {
    color: #a9c8ff;
}

.home-final-copy h2 {
    max-width: 720px;
    margin: 0;
    color: #fff;
    font-size: clamp(32px, 3.5vw, 50px);
    font-weight: 720;
    line-height: 1.05;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.home-final-copy p:last-child {
    max-width: 650px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 15px;
    line-height: 1.58;
}

.home-final-action {
    min-width: 210px;
    padding-inline: 22px;
    color: var(--brand-700);
    background: #fff;
    border-color: #fff;
    box-shadow: 0 16px 30px rgba(8, 24, 57, 0.22);
}

.home-final-action:hover {
    color: var(--brand-700);
    background: #f8fbff;
}

.mobile-nav-toggle {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .home-option-card,
    .home-topic-card,
    .home-secondary-action {
        transition: none;
    }
}

@media (max-width: 1040px) {
    .home-hero {
        padding: 64px 0 72px;
    }

    .home-hero-grid {
        grid-template-columns: minmax(0, 0.92fr) minmax(460px, 1.08fr);
        gap: 42px;
    }

    .home-hero h1 {
        font-size: clamp(46px, 5.4vw, 60px);
    }

    .home-hero-visual {
        min-height: 470px;
        padding-right: 54px;
    }

    .home-exam-preview {
        padding: 18px;
    }

    .home-preview-body {
        grid-template-columns: 126px minmax(0, 1fr);
        gap: 16px;
    }

    .home-sign-panel {
        min-height: 205px;
    }

    .home-preview-question-title {
        font-size: 18px;
    }

    .home-mascot-stage {
        width: 170px;
    }

    .home-visual-note {
        right: 92px;
    }

    .home-topic-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-topic-card {
        min-height: 220px;
    }
}

@media (max-width: 900px) {
    .nav {
        min-height: 66px;
    }

    .nav-links,
    .nav-auth {
        display: none;
    }

    .mobile-nav-toggle {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin-left: auto;
        padding: 9px 12px;
        border: 1px solid var(--line);
        border-radius: 10px;
        color: var(--blue-dark);
        background: #fff;
        cursor: pointer;
        font: inherit;
        font-weight: 750;
        box-shadow: var(--shadow-soft);
    }

    .mobile-nav-toggle span,
    .mobile-nav-toggle span::before,
    .mobile-nav-toggle span::after {
        width: 16px;
        height: 2px;
        display: block;
        border-radius: 999px;
        background: currentColor;
    }

    .mobile-nav-toggle span {
        position: relative;
    }

    .mobile-nav-toggle span::before,
    .mobile-nav-toggle span::after {
        content: "";
        position: absolute;
        left: 0;
    }

    .mobile-nav-toggle span::before {
        top: -5px;
    }

    .mobile-nav-toggle span::after {
        top: 5px;
    }

    .mobile-nav-panel {
        border-top: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
        background: rgba(255, 255, 255, 0.99);
        box-shadow: 0 18px 34px rgba(16, 24, 40, 0.09);
    }

    .mobile-nav-shell {
        display: grid;
        gap: 12px;
        padding-top: 12px;
        padding-bottom: 14px;
    }

    .mobile-nav-shell nav,
    .mobile-nav-actions {
        display: grid;
        gap: 8px;
    }

    .mobile-nav-shell nav a {
        min-height: 44px;
        display: flex;
        align-items: center;
        padding: 10px 12px;
        border: 1px solid transparent;
        border-radius: 10px;
        color: #344054;
        background: #f8fafc;
        font-weight: 720;
    }

    .mobile-nav-shell nav a:hover {
        border-color: #d8e6ff;
        color: var(--brand-700);
        background: var(--brand-50);
    }

    .mobile-nav-actions {
        padding-top: 10px;
        border-top: 1px solid var(--line);
    }

    .mobile-nav-actions form {
        margin: 0;
    }

    .mobile-nav-actions .button {
        width: 100%;
    }

    .mobile-menu-open {
        overflow-x: hidden;
    }

    .home-hero-grid {
        grid-template-columns: 1fr;
        gap: 54px;
    }

    .home-hero-copy {
        max-width: 720px;
    }

    .home-hero-visual {
        width: min(100%, 700px);
        min-height: 500px;
        justify-self: center;
        padding-right: 76px;
    }

    .home-exam-preview {
        width: 100%;
    }

    .home-mascot-stage {
        width: 200px;
    }

    .home-visual-note {
        right: 126px;
    }

    .home-study,
    .home-benefits,
    .home-topics,
    .home-final {
        padding: 78px 0;
    }

    .home-study-grid {
        grid-template-columns: 1fr;
    }

    .home-study-main {
        min-height: 390px;
    }

    .home-benefits-layout {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .home-section-heading {
        max-width: 760px;
    }

    .home-final-panel {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 42px;
    }

    .home-final-action {
        width: fit-content;
    }
}

@media (max-width: 680px) {
    .home-page .shell {
        width: min(100% - 32px, 1240px);
    }

    .home-hero {
        padding: 48px 0 60px;
    }

    .home-hero h1 {
        font-size: clamp(42px, 11vw, 54px);
        line-height: 1.01;
    }

    .home-lead {
        margin-top: 19px;
        font-size: 16px;
    }

    .home-actions {
        display: grid;
        margin-top: 24px;
    }

    .home-actions form,
    .home-primary-action,
    .home-secondary-action {
        width: 100%;
    }

    .home-proof-list {
        margin-top: 24px;
    }

    .home-proof-list > div {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px 10px;
    }

    .home-proof-list dt {
        font-size: 16px;
    }

    .home-proof-list dd {
        white-space: normal;
    }

    .home-hero-visual {
        min-height: 0;
        display: block;
        padding: 0 0 78px;
    }

    .home-preview-glow {
        inset: 30px -16px 30px 18px;
    }

    .home-exam-preview {
        padding: 16px;
        border-radius: 20px;
    }

    .home-preview-body {
        grid-template-columns: 104px minmax(0, 1fr);
        gap: 13px;
        padding: 18px 0;
    }

    .home-sign-panel {
        min-height: 190px;
        gap: 12px;
        border-radius: 14px;
    }

    .home-sign-shape {
        width: 64px;
        height: 64px;
        border-radius: 10px;
        box-shadow: inset 0 0 0 5px #8bb8ff, 0 10px 20px rgba(29, 78, 216, 0.16);
    }

    .home-sign-shape::before {
        left: 17px;
        right: 17px;
        top: 15px;
        height: 10px;
    }

    .home-sign-shape::after {
        left: 28px;
        top: 21px;
        width: 8px;
        height: 32px;
    }

    .home-preview-question-title {
        font-size: 16px;
    }

    .home-preview-options {
        gap: 6px;
    }

    .home-preview-options li {
        min-height: 33px;
        padding: 6px 7px;
        font-size: 11px;
    }

    .home-preview-options li > span {
        width: 19px;
        height: 19px;
        font-size: 9px;
    }

    .home-preview-footer {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .home-preview-page {
        display: none;
    }

    .home-mascot-stage {
        right: 8px;
        bottom: -2px;
        width: 122px;
    }

    .home-visual-note {
        left: 12px;
        right: auto;
        bottom: 4px;
        min-width: 154px;
    }

    .home-study,
    .home-benefits,
    .home-topics,
    .home-final {
        padding: 66px 0;
    }

    .home-heading-row {
        display: grid;
        gap: 16px;
        margin-bottom: 26px;
    }

    .home-heading-row > p {
        margin: 0;
    }

    .home-heading-link {
        margin: 0;
    }

    .home-section-heading h2 {
        font-size: clamp(31px, 9vw, 42px);
    }

    .home-study-main {
        min-height: 380px;
        padding: 26px;
    }

    .home-study-main h3 {
        font-size: clamp(34px, 10vw, 43px);
    }

    .home-panel-action {
        width: 100%;
    }

    .home-option-card {
        min-height: 0;
        grid-template-columns: 34px 42px minmax(0, 1fr);
        gap: 12px;
        padding: 19px;
    }

    .home-option-card em {
        grid-column: 3;
        margin-top: -2px;
        white-space: normal;
    }

    .home-benefit {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 15px;
        padding: 20px;
    }

    .home-benefit .home-card-icon {
        width: 44px;
        height: 44px;
    }

    .home-topic-grid {
        grid-template-columns: 1fr;
    }

    .home-topic-card {
        min-height: 0;
        padding: 22px;
    }

    .home-topic-icon {
        margin-bottom: 22px;
    }

    .home-topic-card small {
        min-height: 0;
    }

    .home-final {
        padding-top: 8px;
    }

    .home-final-panel {
        padding: 34px 26px;
        border-radius: 22px;
    }

    .home-final-action {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 420px) {
    .home-page .shell {
        width: min(100% - 28px, 1240px);
    }

    .home-hero h1 {
        font-size: clamp(38px, 10.7vw, 45px);
    }

    .home-eyebrow,
    .home-section-label {
        font-size: 12px;
    }

    .home-proof-list {
        gap: 7px;
    }

    .home-proof-list > div {
        padding: 10px 8px;
    }

    .home-proof-icon {
        width: 30px;
        height: 30px;
    }

    .home-proof-list dt {
        font-size: 15px;
    }

    .home-proof-list dd {
        font-size: 10px;
    }

    .home-preview-top {
        gap: 10px;
    }

    .home-preview-body {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 10px;
    }

    .home-sign-panel {
        min-height: 184px;
    }

    .home-sign-panel small {
        font-size: 9px;
        text-align: center;
    }

    .home-preview-question-title {
        font-size: 15px;
    }

    .home-preview-options li {
        font-size: 10px;
    }

    .home-mascot-stage {
        width: 108px;
    }

    .home-visual-note {
        min-width: 144px;
        padding: 9px 10px;
    }

    .home-study-main {
        min-height: 360px;
    }

    .home-option-index {
        display: none;
    }

    .home-option-card {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .home-option-card em {
        grid-column: 2;
    }
}

/* Exams hub: category-first navigation, isolated from quiz flow and results. */
.exams-hub-hero {
    padding: 72px 0 64px;
    overflow: hidden;
    border-bottom: 1px solid #dfeaf2;
    background:
        radial-gradient(circle at 87% 23%, rgba(137, 214, 250, 0.25), transparent 26%),
        linear-gradient(135deg, #f8fcff 0%, #eef7fd 53%, #f8f8ff 100%);
}

.exams-hub-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(370px, 0.95fr);
    gap: 46px;
    align-items: center;
}

.exams-hub-copy {
    max-width: 600px;
}

.exams-hub-kicker,
.category-tests-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    border: 1px solid #d4e9f8;
    border-radius: 999px;
    color: #276a9d;
    background: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    font-weight: 850;
}

.exams-hub-kicker i {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #2a9dca;
    box-shadow: 0 0 0 4px rgba(42, 157, 202, 0.12);
}

.exams-hub-copy h1 {
    max-width: 590px;
    margin: 18px 0 18px;
    color: #112338;
    font-size: clamp(42px, 5vw, 64px);
    line-height: 1;
    letter-spacing: -0.055em;
}

.exams-hub-copy h1 span {
    color: #1676c9;
}

.exams-hub-copy > p {
    max-width: 510px;
    margin: 0;
    color: #5b7287;
    font-size: 17px;
    line-height: 1.65;
}

.exams-hub-notice {
    margin-top: 22px;
}

.exams-general-card {
    position: relative;
    overflow: hidden;
    min-height: 294px;
    padding: 27px;
    border: 1px solid #badbf1;
    border-radius: 25px;
    color: #f8fcff;
    background:
        radial-gradient(circle at 95% 10%, rgba(117, 209, 255, 0.58), transparent 31%),
        radial-gradient(circle at 9% 100%, rgba(39, 116, 187, 0.72), transparent 44%),
        linear-gradient(145deg, #195989, #0e3965);
    box-shadow: 0 25px 60px rgba(23, 84, 132, 0.23);
}

.exams-general-card::after {
    content: "";
    position: absolute;
    top: -50px;
    right: -42px;
    width: 218px;
    height: 218px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.exams-general-card-top,
.exams-general-stats {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.exams-general-card-top > span:first-child {
    font-size: 13px;
    font-weight: 800;
}

.exams-general-chip {
    padding: 5px 8px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 11px;
    font-weight: 800;
}

.exams-general-card h2 {
    position: relative;
    z-index: 1;
    max-width: 310px;
    margin: 31px 0 10px;
    color: #ffffff;
    font-size: 31px;
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.exams-general-card p {
    position: relative;
    z-index: 1;
    max-width: 340px;
    margin: 0;
    color: rgba(245, 251, 255, 0.83);
    font-size: 14px;
    line-height: 1.55;
}

.exams-general-stats {
    justify-content: flex-start;
    margin-top: 24px;
    color: rgba(245, 251, 255, 0.8);
    font-size: 12px;
}

.exams-general-stats span {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
}

.exams-general-stats b {
    color: #ffffff;
    font-size: 18px;
}

.exams-general-card form {
    position: relative;
    z-index: 1;
    margin-top: 19px;
}

.exams-general-button {
    min-height: 45px;
    border-color: #ffffff;
    color: #13578d;
    background: #ffffff;
}

.exams-general-button:hover {
    color: #0b4778;
    background: #edf9ff;
}

.exams-general-button span,
.exams-learning-link span,
.category-template-button span {
    margin-left: 4px;
    font-size: 17px;
    line-height: 1;
}

.exams-category-section {
    padding: 72px 0;
}

.exams-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 27px;
}

.exams-section-head h2,
.category-tests-heading h2 {
    margin: 12px 0 7px;
    color: #172d41;
    font-size: 32px;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.exams-section-head p {
    margin: 0;
    color: #708396;
    font-size: 15px;
}

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

.exams-category-card {
    min-height: 245px;
    padding: 23px;
    border: 1px solid #dce8f0;
    border-radius: 20px;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.exams-category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 17px 34px rgba(31, 77, 112, 0.12);
}

.exams-category-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    font-weight: 840;
}

.exams-category-count {
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    font-size: 11px;
}

.exams-category-card h3 {
    max-width: 350px;
    margin: 30px 0 9px;
    color: #18354d;
    font-size: 25px;
    line-height: 1.13;
    letter-spacing: -0.035em;
}

.exams-category-card p {
    max-width: 410px;
    margin: 0;
    color: #61798e;
    font-size: 14px;
    line-height: 1.56;
}

.exams-category-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 24px;
    font-size: 13px;
    font-weight: 850;
}

.exams-category-action b {
    font-size: 18px;
    line-height: 1;
    transition: transform 180ms ease;
}

.exams-category-card:hover .exams-category-action b {
    transform: translateX(3px);
}

.exams-category-card--traffic {
    border-color: #cfe6f8;
    background: linear-gradient(135deg, #f7fcff, #e9f6ff);
}

.exams-category-card--traffic .exams-category-card-top,
.exams-category-card--traffic .exams-category-action {
    color: #2476ae;
}

.exams-category-card--first-aid {
    border-color: #f5d8de;
    background: linear-gradient(135deg, #fffafb, #fff0f3);
}

.exams-category-card--first-aid .exams-category-card-top,
.exams-category-card--first-aid .exams-category-action {
    color: #bd5a70;
}

.exams-category-card--engine {
    border-color: #f1dfc8;
    background: linear-gradient(135deg, #fffdf9, #fff5e9);
}

.exams-category-card--engine .exams-category-card-top,
.exams-category-card--engine .exams-category-action {
    color: #b76b27;
}

.exams-category-card--ethics {
    border-color: #d1eadc;
    background: linear-gradient(135deg, #fafffc, #effbf5);
}

.exams-category-card--ethics .exams-category-card-top,
.exams-category-card--ethics .exams-category-action {
    color: #2a8a67;
}

.exams-learning-strip {
    padding: 46px 0;
    border-top: 1px solid #dfeaf2;
    border-bottom: 1px solid #dfeaf2;
    background: #f7fbfd;
}

.exams-learning-strip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.exams-learning-strip h2 {
    margin: 12px 0 8px;
    color: #1c3449;
    font-size: 26px;
    letter-spacing: -0.035em;
}

.exams-learning-strip p {
    max-width: 600px;
    margin: 0;
    color: #6a8092;
    font-size: 14px;
}

.exams-learning-link {
    flex: 0 0 auto;
    min-height: 44px;
}

.category-tests-hero {
    padding: 49px 0 43px;
    border-bottom: 1px solid #dfeaf2;
    background: linear-gradient(135deg, #f8fcff, #edf8ff);
}

.category-tests-hero--first-aid {
    background: linear-gradient(135deg, #fffafb, #fff1f4);
}

.category-tests-hero--engine {
    background: linear-gradient(135deg, #fffdf9, #fff5ea);
}

.category-tests-hero--ethics {
    background: linear-gradient(135deg, #fbfffc, #effbf4);
}

.category-back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 25px;
    color: #5d778e;
    font-size: 13px;
    font-weight: 800;
}

.category-back-link span {
    font-size: 17px;
    line-height: 1;
}

.category-tests-hero h1 {
    max-width: 640px;
    margin: 15px 0 11px;
    color: #17334b;
    font-size: clamp(35px, 4vw, 52px);
    line-height: 1.03;
    letter-spacing: -0.05em;
}

.category-tests-hero p {
    max-width: 570px;
    margin: 0;
    color: #617b91;
    font-size: 16px;
    line-height: 1.6;
}

.category-tests-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 20px;
}

.category-tests-meta span {
    padding: 6px 9px;
    border: 1px solid rgba(200, 220, 234, 0.9);
    border-radius: 999px;
    color: #55728a;
    background: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 800;
}

.category-tests-section {
    padding: 55px 0 74px;
}

.category-tests-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.category-tests-heading h2 {
    margin-bottom: 0;
}

.category-tests-heading > p {
    margin: 0 0 4px;
    color: #708598;
    font-size: 13px;
}

.category-template-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.category-template-card {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    min-height: 166px;
    padding: 17px;
    border: 1px solid #dbe7ef;
    border-radius: 17px;
    background: #ffffff;
    transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.category-template-card:hover {
    transform: translateY(-2px);
    border-color: #b6d7eb;
    box-shadow: 0 14px 26px rgba(35, 78, 108, 0.1);
}

.category-template-number {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    color: #2278b3;
    background: #eaf6fd;
    font-size: 12px;
    font-weight: 900;
}

.category-template-card-copy > span {
    display: block;
    color: #768b9d;
    font-size: 11px;
    font-weight: 760;
}

.category-template-card h3 {
    margin: 5px 0 4px;
    color: #1d384f;
    font-size: 18px;
    line-height: 1.16;
    letter-spacing: -0.025em;
}

.category-template-card p {
    margin: 0;
    color: #718598;
    font-size: 12px;
}

.category-template-button {
    grid-column: 1 / -1;
    align-self: end;
    justify-self: start;
    min-height: 34px;
    padding: 7px 11px;
    font-size: 12px;
}

.category-template-grid--first-aid .category-template-number {
    color: #b85a70;
    background: #fff0f3;
}

.category-template-grid--first-aid .category-template-card:hover {
    border-color: #efc3cd;
}

.category-template-grid--engine .category-template-number {
    color: #aa692c;
    background: #fff3e4;
}

.category-template-grid--engine .category-template-card:hover {
    border-color: #ebd0ae;
}

.category-template-grid--ethics .category-template-number {
    color: #2d8766;
    background: #ebf9f0;
}

.category-template-grid--ethics .category-template-card:hover {
    border-color: #bee5cf;
}

@media (max-width: 860px) {
    .exams-hub-hero-grid,
    .exams-category-grid,
    .category-template-grid {
        grid-template-columns: 1fr;
    }

    .exams-hub-hero {
        padding: 56px 0 52px;
    }

    .exams-general-card {
        max-width: 560px;
    }

    .exams-category-card {
        min-height: 214px;
    }

    .category-template-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .exams-hub-hero,
    .exams-category-section {
        padding-top: 43px;
        padding-bottom: 45px;
    }

    .exams-hub-copy h1 {
        font-size: 41px;
    }

    .exams-general-card {
        min-height: 0;
        padding: 22px;
        border-radius: 20px;
    }

    .exams-general-card h2 {
        margin-top: 26px;
        font-size: 27px;
    }

    .exams-section-head,
    .category-tests-heading,
    .exams-learning-strip-inner {
        display: block;
    }

    .exams-section-head h2,
    .category-tests-heading h2 {
        font-size: 28px;
    }

    .exams-section-head p,
    .category-tests-heading > p {
        margin-top: 10px;
    }

    .exams-category-grid,
    .category-template-grid {
        grid-template-columns: 1fr;
    }

    .exams-category-card {
        min-height: 0;
        padding: 19px;
    }

    .exams-category-card h3 {
        margin-top: 25px;
        font-size: 23px;
    }

    .exams-learning-strip {
        padding: 38px 0;
    }

    .exams-learning-strip h2 {
        font-size: 24px;
    }

    .exams-learning-link {
        margin-top: 18px;
    }

    .category-tests-hero {
        padding: 35px 0 34px;
    }

    .category-tests-hero h1 {
        font-size: 37px;
    }

    .category-tests-section {
        padding: 42px 0 56px;
    }
}

/* --- Pages refresh: result, category tests and lesson pages --- */
.result-hero--modern {
    padding: 54px 0 22px;
}

.result-shell--modern {
    max-width: 1120px;
}

.result-grid--modern {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.result-grid--modern .result-stat {
    min-height: 124px;
    padding: 22px;
    border: 1px solid #dbe7ef;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,251,254,.96));
    box-shadow: 0 14px 32px rgba(27, 72, 110, 0.08);
}

.result-grid--modern .result-stat span {
    display: block;
    color: #708295;
    font-size: 13px;
    font-weight: 800;
}

.result-grid--modern .result-stat strong {
    display: block;
    margin-top: 12px;
    color: #163047;
    font-size: 42px;
    line-height: 1;
    letter-spacing: -0.05em;
}

.result-grid--modern .result-stat-correct {
    border-color: #cfeadf;
    background: linear-gradient(180deg, #fbfffc, #f0fbf5);
}

.result-grid--modern .result-stat-wrong {
    border-color: #f0d6d6;
    background: linear-gradient(180deg, #fffdfd, #fff4f4);
}

.result-grid--modern .result-stat-empty {
    border-color: #dde6ed;
    background: linear-gradient(180deg, #ffffff, #f4f8fb);
}

.result-grid--modern .result-stat-score {
    border-color: #d5e6f8;
    background: linear-gradient(180deg, #fbfeff, #eff7fd);
}

.compact-performance-section--modern,
.review-section--modern,
.lessons-section,
.lesson-detail-section,
.category-tests-section--modern {
    padding-top: 18px;
}

.performance-grid--modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
}

.performance-grid--modern article {
    padding: 18px;
    border: 1px solid #dbe8f0;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #f8fbfe);
    box-shadow: 0 10px 24px rgba(24, 64, 98, 0.06);
}

.performance-grid--modern article > strong {
    color: #17324a;
    font-size: 18px;
}

.performance-grid--modern span {
    margin-top: 10px;
    color: var(--blue-dark);
    font-size: 28px;
    font-weight: 900;
}

.review-section--modern .review-list {
    display: grid;
    gap: 12px;
}

.review-section--modern .review-card {
    overflow: hidden;
    border: 1px solid #dce8f1;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #f7fbfe);
    box-shadow: 0 10px 24px rgba(26, 71, 106, 0.06);
}

.review-section--modern .review-card summary {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 22px;
    gap: 14px;
    align-items: center;
    padding: 18px;
    list-style: none;
    cursor: pointer;
}

.review-section--modern .review-card summary::-webkit-details-marker {
    display: none;
}

.review-number {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    color: #2075ad;
    background: #eaf5fd;
    font-weight: 900;
}

.review-summary-copy strong {
    display: block;
    color: #18344c;
    font-size: 16px;
}

.review-summary-copy small,
.review-count {
    color: #73879a;
    font-size: 12px;
    font-weight: 800;
}

.review-chevron {
    color: #7d91a3;
    font-size: 20px;
    transition: transform 160ms ease;
}

.review-card[open] .review-chevron {
    transform: rotate(180deg);
}

.review-card-body {
    padding: 0 18px 18px 80px;
}

.review-card-body h3 {
    margin-bottom: 10px;
    color: #173149;
    font-size: 20px;
    line-height: 1.35;
}

.review-answer {
    margin-bottom: 10px;
    color: #1d4765;
    font-weight: 700;
}

.category-tests-hero--modern {
    padding: 56px 0 48px;
}

.category-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: 28px;
    align-items: end;
}

.category-hero-panel-card {
    padding: 22px;
    border: 1px solid rgba(198, 218, 231, 0.95);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 18px 38px rgba(29, 74, 109, 0.08);
}

.category-hero-panel-card strong {
    display: block;
    color: #17324a;
    font-size: 17px;
    margin-bottom: 8px;
}

.category-hero-panel-card p {
    margin: 0;
    color: #647a8d;
    font-size: 14px;
    line-height: 1.6;
}

.category-tests-section--modern .category-template-grid {
    gap: 14px;
}

.category-tests-section--modern .category-template-card {
    min-height: 176px;
    padding: 18px;
    border-radius: 20px;
    box-shadow: 0 10px 22px rgba(28, 72, 107, 0.05);
}

.category-tests-section--modern .category-template-card-copy h3 {
    font-size: 24px;
    letter-spacing: -0.03em;
}

.lessons-page-hero {
    padding: 58px 0 34px;
    border-bottom: 1px solid #dde9f1;
    background: linear-gradient(135deg, #f8fcff, #eef8ff 58%, #f7fbfe 100%);
}

.lessons-hero-grid,
.lesson-detail-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
    gap: 26px;
    align-items: end;
}

.lessons-hero-copy h1,
.lesson-detail-hero-copy h1 {
    max-width: 720px;
    margin-bottom: 14px;
    font-size: clamp(38px, 4.5vw, 58px);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.lessons-hero-panel,
.lesson-detail-aside {
    display: grid;
    gap: 12px;
}

.lessons-hero-stat,
.lesson-detail-meta,
.lessons-hero-note {
    padding: 20px;
    border: 1px solid #dce9f1;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 12px 26px rgba(29, 74, 110, 0.06);
}

.lessons-hero-stat span,
.lesson-detail-meta span {
    display: block;
    color: #72879a;
    font-size: 12px;
    font-weight: 800;
}

.lessons-hero-stat strong,
.lesson-detail-meta strong {
    display: block;
    margin-top: 10px;
    color: #163148;
    font-size: 34px;
    line-height: 1;
    letter-spacing: -0.04em;
}

.lessons-hero-note strong {
    display: block;
    margin-bottom: 8px;
    color: #163148;
}

.lessons-hero-note p {
    margin: 0;
    color: #647a8d;
    font-size: 14px;
}

.lesson-grid--modern {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.lesson-card--modern {
    min-height: 186px;
    padding: 24px;
    border: 1px solid #dce8f0;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff, #f7fbfe);
    box-shadow: 0 14px 34px rgba(26, 72, 106, 0.08);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.lesson-card--modern:hover,
.lesson-row--modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(27, 72, 106, 0.11);
}

.lesson-card-kicker {
    display: inline-flex;
    margin-bottom: 26px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #236fa7;
    background: #eaf6ff;
    font-size: 12px;
    font-weight: 850;
}

.lesson-card--modern strong {
    display: block;
    color: #18354d;
    font-size: 30px;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.lesson-card--modern small {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 24px;
    color: #1c6ea7;
    font-size: 13px;
    font-weight: 850;
}

.lesson-list--modern {
    display: grid;
    gap: 12px;
}

.lesson-row--modern {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid #dce8f0;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #f8fbfe);
    box-shadow: 0 10px 24px rgba(26, 72, 106, 0.06);
}

.lesson-row-number {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    color: #2277b1;
    background: #edf7fe;
    font-weight: 900;
}

.lesson-row-title {
    color: #18364d;
    font-size: 18px;
    font-weight: 800;
}

.lesson-row--modern strong {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #1d6fa8;
    font-size: 14px;
}

.lesson-content--modern {
    max-width: 940px;
    margin: 0 auto;
    padding: 30px;
    border: 1px solid #dce8f0;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff, #f8fbfe);
    box-shadow: 0 18px 40px rgba(26, 70, 104, 0.08);
}

.lesson-content--modern h2 {
    margin: 28px 0 12px;
    color: #17324a;
    font-size: 30px;
    letter-spacing: -0.03em;
}

.lesson-content--modern p,
.lesson-content--modern li {
    color: #4f6579;
    font-size: 17px;
    line-height: 1.8;
}

.lesson-content--modern ul {
    padding-left: 22px;
}

.lesson-figure {
    margin: 22px 0;
    padding: 18px;
    border: 1px solid #dbe8ef;
    border-radius: 18px;
    background: #fff;
}

@media (max-width: 980px) {
    .result-grid--modern,
    .lesson-grid--modern {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-hero-grid,
    .lessons-hero-grid,
    .lesson-detail-hero-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .result-grid--modern,
    .lesson-grid--modern {
        grid-template-columns: 1fr;
    }

    .review-card-body {
        padding: 0 16px 16px 16px;
    }

    .review-section--modern .review-card summary,
    .lesson-row--modern {
        grid-template-columns: 1fr;
    }

    .lesson-row-number {
        width: 44px;
        height: 44px;
    }

    .lesson-content--modern {
        padding: 22px;
        border-radius: 20px;
    }
}

/* Traffic signs swipe styles: merged from traffic patch. */
/* Traffic signs: category hub and swipe deck. */
.traffic-signs-hero {
    overflow: hidden;
    padding: 68px 0 60px;
    border-bottom: 1px solid #dbe8f0;
    background:
        radial-gradient(circle at 82% 20%, rgba(40, 147, 224, 0.16), transparent 26%),
        radial-gradient(circle at 18% 105%, rgba(239, 139, 61, 0.12), transparent 32%),
        linear-gradient(135deg, #fbfeff 0%, #eef8ff 54%, #f8fbff 100%);
}

.traffic-signs-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(310px, 0.72fr);
    align-items: center;
    gap: 46px;
}

.traffic-signs-hero-copy h1 {
    max-width: 650px;
    margin: 16px 0 18px;
    color: #132b42;
    font-size: clamp(44px, 5vw, 66px);
    line-height: 0.98;
    letter-spacing: -0.062em;
}

.traffic-signs-hero-copy h1 span {
    color: #1677c9;
}

.traffic-signs-hero-copy p {
    max-width: 590px;
    margin: 0;
    color: #5d7488;
    font-size: 17px;
    line-height: 1.65;
}

.traffic-signs-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 27px;
}

.traffic-signs-hero-panel {
    position: relative;
    min-height: 370px;
    padding: 21px;
    overflow: hidden;
    border: 1px solid #cfe3f2;
    border-radius: 28px;
    background:
        radial-gradient(circle at 84% 17%, rgba(255,255,255,.68), transparent 23%),
        linear-gradient(160deg, #237fbf, #13598e);
    box-shadow: 0 26px 58px rgba(23, 83, 129, 0.2);
}

.traffic-signs-hero-panel::before {
    position: absolute;
    inset: auto -78px -92px auto;
    width: 260px;
    height: 260px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    content: "";
}

.traffic-signs-hero-panel-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgba(255,255,255,.88);
    font-size: 13px;
    font-weight: 850;
}

.traffic-signs-swipe-hint {
    padding: 6px 9px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    background: rgba(255,255,255,.1);
}

.traffic-signs-hero-card-stack {
    position: absolute;
    right: 32px;
    bottom: 25px;
    width: min(260px, calc(100% - 64px));
    height: 285px;
}

.traffic-signs-hero-card {
    position: absolute;
    inset: 0;
    border-radius: 22px;
}

.traffic-signs-hero-card-back {
    top: 18px;
    right: -12px;
    left: 14px;
    bottom: -13px;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.16);
    transform: rotate(4deg);
}

.traffic-signs-hero-card-front {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.68);
    background: rgba(255,255,255,.94);
    box-shadow: 0 18px 30px rgba(4, 42, 72, 0.2);
}

.traffic-signs-hero-card-front img {
    width: 174px;
    height: 174px;
    object-fit: contain;
    margin-bottom: 12px;
}

.traffic-signs-hero-card-front strong {
    color: #19835e;
    font-size: 14px;
}

.traffic-signs-hero-card-front small {
    margin-top: 3px;
    color: #7b8c9a;
    font-size: 12px;
}

.traffic-signs-intro {
    padding-top: 62px;
    padding-bottom: 66px;
}

.traffic-signs-section-head {
    align-items: end;
    margin-bottom: 26px;
}

.traffic-signs-section-head h2 {
    margin: 12px 0 0;
}

.traffic-signs-section-head > p {
    margin: 0 0 4px;
    color: #708599;
    font-size: 14px;
}

.traffic-signs-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.traffic-signs-category-card {
    position: relative;
    display: grid;
    grid-template-columns: 156px minmax(0, 1fr);
    gap: 18px;
    min-height: 224px;
    padding: 18px;
    overflow: hidden;
    border: 1px solid #dbe8f0;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff, #f7fbfe);
    box-shadow: 0 12px 28px rgba(23, 69, 105, 0.07);
    transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}

.traffic-signs-category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 38px rgba(23, 69, 105, 0.12);
}

.traffic-signs-category-art {
    display: grid;
    place-items: center;
    min-height: 184px;
    border: 1px solid rgba(219, 232, 240, .82);
    border-radius: 18px;
    background: rgba(255,255,255,.76);
}

.traffic-signs-category-art img {
    width: 125px;
    height: 125px;
    object-fit: contain;
}

.traffic-signs-category-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 4px 4px 2px 0;
}

.traffic-signs-category-copy > span {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 999px;
    color: #4d7591;
    background: rgba(234, 246, 253, .85);
    font-size: 11px;
    font-weight: 850;
}

.traffic-signs-category-copy h3 {
    margin: 15px 0 8px;
    color: #18354c;
    font-size: 24px;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.traffic-signs-category-copy p {
    margin: 0;
    color: #637a8e;
    font-size: 13px;
    line-height: 1.56;
}

.traffic-signs-category-copy strong {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    color: #216fa5;
    font-size: 13px;
}

.traffic-signs-category-copy strong b {
    font-size: 18px;
}

.traffic-signs-category-progress {
    position: absolute;
    top: 15px;
    right: 15px;
    max-width: 130px;
    padding: 5px 8px;
    border: 1px solid #dbe8f0;
    border-radius: 999px;
    color: #7b8e9e;
    background: rgba(255,255,255,.84);
    font-size: 11px;
    font-weight: 850;
}

.traffic-signs-category-progress.is-progress {
    color: #2779b2;
    border-color: #cee5f5;
    background: #edf8ff;
}

.traffic-signs-category-progress.is-complete {
    color: #197b5a;
    border-color: #cce9da;
    background: #edf9f3;
}

.traffic-signs-category-card--warning {
    border-color: #f1d9b7;
    background: linear-gradient(135deg, #fffdf9, #fff5e8);
}
.traffic-signs-category-card--warning .traffic-signs-category-copy strong { color: #bd742d; }
.traffic-signs-category-card--regulation {
    border-color: #d2e5f8;
    background: linear-gradient(135deg, #fbfeff, #edf7ff);
}
.traffic-signs-category-card--regulation .traffic-signs-category-copy strong { color: #267ab7; }
.traffic-signs-category-card--work {
    border-color: #f0d9bf;
    background: linear-gradient(135deg, #fffdfa, #fff3e6);
}
.traffic-signs-category-card--work .traffic-signs-category-copy strong { color: #b76b28; }
.traffic-signs-category-card--parking {
    border-color: #dfd8f5;
    background: linear-gradient(135deg, #fdfcff, #f3f0ff);
}
.traffic-signs-category-card--parking .traffic-signs-category-copy strong { color: #7159be; }
.traffic-signs-category-card--info {
    border-color: #cce8e1;
    background: linear-gradient(135deg, #fbfffe, #edfaf7);
}
.traffic-signs-category-card--info .traffic-signs-category-copy strong { color: #27896d; }
.traffic-signs-category-card--panels {
    border-color: #dce4ea;
    background: linear-gradient(135deg, #ffffff, #f1f5f8);
}
.traffic-signs-category-card--panels .traffic-signs-category-copy strong { color: #5f7486; }
.traffic-signs-category-card--police {
    border-color: #d6dcf5;
    background: linear-gradient(135deg, #fcfcff, #eef1ff);
}
.traffic-signs-category-card--police .traffic-signs-category-copy strong { color: #536cb6; }
.traffic-signs-category-card--dashboard {
    border-color: #dce6ec;
    background: linear-gradient(135deg, #ffffff, #f2f7fa);
}
.traffic-signs-category-card--dashboard .traffic-signs-category-copy strong { color: #4b738e; }

.traffic-signs-how {
    padding: 55px 0;
    border-top: 1px solid #dbe8f0;
    border-bottom: 1px solid #dbe8f0;
    background: #f8fbfd;
}

.traffic-signs-how-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.traffic-signs-how article {
    padding: 20px;
    border-left: 2px solid #cfe6f6;
}

.traffic-signs-how article > span {
    display: block;
    color: #2a83bf;
    font-size: 12px;
    font-weight: 900;
}

.traffic-signs-how h3 {
    margin: 10px 0 7px;
    color: #19364e;
    font-size: 20px;
}

.traffic-signs-how p {
    margin: 0;
    color: #667d90;
    font-size: 14px;
    line-height: 1.6;
}

.traffic-sign-deck-page {
    min-height: calc(100vh - 76px);
    padding: 34px 0 74px;
    background:
        radial-gradient(circle at 83% 7%, rgba(80, 176, 235, .12), transparent 23%),
        linear-gradient(180deg, #f9fdff 0%, #f1f8fc 100%);
}

.traffic-signs-back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 24px;
    color: #628094;
    font-size: 13px;
    font-weight: 850;
}

.traffic-signs-back-link span {
    font-size: 18px;
}

.traffic-sign-deck-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 26px;
    margin-bottom: 28px;
}

.traffic-sign-deck-header h1 {
    margin: 13px 0 8px;
    color: #17334a;
    font-size: clamp(35px, 4vw, 54px);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.traffic-sign-deck-header p {
    margin: 0;
    color: #677e91;
    font-size: 15px;
}

.traffic-sign-deck-header-progress {
    width: min(320px, 100%);
    padding: 17px;
    border: 1px solid #d6e5ee;
    border-radius: 18px;
    background: rgba(255,255,255,.84);
    box-shadow: 0 12px 27px rgba(26, 72, 106, .07);
}

.traffic-sign-deck-header-progress span {
    display: block;
    color: #768b9e;
    font-size: 12px;
    font-weight: 800;
}

.traffic-sign-deck-header-progress strong {
    display: block;
    margin: 5px 0 11px;
    color: #18344b;
    font-size: 19px;
}

.traffic-sign-deck-header-progress > div {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #dfebf2;
}

.traffic-sign-deck-header-progress i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #29a6c8, #177ad3);
    transition: width 220ms ease;
}

.traffic-sign-deck-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 25px;
    align-items: start;
}

.traffic-sign-deck-main {
    min-width: 0;
}

.traffic-sign-deck-stage {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 550px;
    padding: 18px 0 24px;
}

.traffic-sign-deck-stack {
    position: absolute;
    width: min(560px, calc(100% - 32px));
    height: 470px;
    border: 1px solid #dce9f1;
    border-radius: 28px;
    background: rgba(255,255,255,.6);
}

.traffic-sign-deck-stack--second {
    transform: translate(10px, 13px) rotate(1.8deg);
}

.traffic-sign-deck-stack--third {
    transform: translate(-9px, 25px) rotate(-1.5deg);
    opacity: .72;
}

.traffic-sign-card {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    width: min(560px, calc(100% - 32px));
    min-height: 470px;
    overflow: hidden;
    border: 1px solid #d4e3ed;
    border-radius: 28px;
    background: linear-gradient(180deg, #ffffff, #f9fcfe);
    box-shadow: 0 24px 54px rgba(25, 70, 104, .14);
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
    will-change: transform;
    transition: transform 230ms cubic-bezier(.2,.8,.2,1), opacity 190ms ease;
}

.traffic-sign-card.is-dragging {
    cursor: grabbing;
    transition: none;
}

.traffic-sign-card.is-leaving-left {
    transform: translateX(-125%) rotate(-18deg) !important;
    opacity: 0;
}

.traffic-sign-card.is-leaving-right {
    transform: translateX(125%) rotate(18deg) !important;
    opacity: 0;
}

.traffic-sign-card-badge {
    position: absolute;
    z-index: 3;
    top: 28px;
    padding: 9px 13px;
    border: 3px solid currentColor;
    border-radius: 11px;
    font-size: 16px;
    font-weight: 950;
    letter-spacing: .08em;
    opacity: 0;
    pointer-events: none;
}

.traffic-sign-card-badge--review {
    left: 28px;
    color: #d45a5a;
    transform: rotate(-12deg);
}

.traffic-sign-card-badge--learned {
    right: 28px;
    color: #15906e;
    transform: rotate(12deg);
}

.traffic-sign-card-image-wrap {
    display: grid;
    place-items: center;
    flex: 1;
    min-height: 320px;
    padding: 32px 32px 12px;
    background: radial-gradient(circle at 50% 44%, #ffffff, #f1f8fc 72%);
}

.traffic-sign-card-image-wrap img {
    width: min(300px, 82%);
    height: 290px;
    object-fit: contain;
    pointer-events: none;
}

.traffic-sign-card-copy {
    padding: 21px 28px 27px;
    border-top: 1px solid #e2edf4;
    text-align: center;
}

.traffic-sign-card-copy span {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    color: #4f7897;
    background: #ebf7fe;
    font-size: 11px;
    font-weight: 850;
}

.traffic-sign-card-copy h2 {
    margin: 12px auto 0;
    color: #17344c;
    font-size: clamp(25px, 3.3vw, 35px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.traffic-sign-deck-actions {
    display: grid;
    grid-template-columns: 1fr 48px 1fr;
    gap: 12px;
    width: min(560px, calc(100% - 32px));
    margin: 0 auto;
}

.traffic-sign-action,
.traffic-sign-undo {
    min-height: 50px;
    border: 1px solid #d9e7ef;
    border-radius: 15px;
    background: rgba(255,255,255,.9);
    color: #254056;
    cursor: pointer;
    font: inherit;
    font-weight: 850;
}

.traffic-sign-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.traffic-sign-action--review {
    color: #b34f57;
    border-color: #efd0d3;
    background: #fffafa;
}

.traffic-sign-action--learned {
    color: #197b5b;
    border-color: #cbe8da;
    background: #f7fdf9;
}

.traffic-sign-undo {
    font-size: 24px;
}

.traffic-sign-action:disabled,
.traffic-sign-undo:disabled {
    opacity: .46;
    cursor: not-allowed;
}

.traffic-sign-deck-sidebar {
    display: grid;
    gap: 12px;
}

.traffic-sign-sidebar-card {
    padding: 17px;
    border: 1px solid #d8e7ef;
    border-radius: 18px;
    background: rgba(255,255,255,.88);
    box-shadow: 0 12px 27px rgba(27, 70, 104, .06);
}

.traffic-sign-sidebar-card > span {
    display: block;
    color: #73889a;
    font-size: 12px;
    font-weight: 800;
}

.traffic-sign-sidebar-card > strong {
    display: block;
    margin-top: 6px;
    color: #197b5b;
    font-size: 34px;
    line-height: 1;
}

.traffic-sign-sidebar-card--review > strong {
    color: #c45b5b;
}

.traffic-sign-sidebar-card--hint strong {
    display: block;
    color: #17334a;
    font-size: 15px;
}

.traffic-sign-sidebar-card--hint p {
    margin: 8px 0 0;
    color: #637b8f;
    font-size: 13px;
    line-height: 1.55;
}

.traffic-sign-deck-complete {
    position: relative;
    z-index: 4;
    width: min(560px, calc(100% - 32px));
    padding: 40px;
    border: 1px solid #cfe6f6;
    border-radius: 27px;
    background: linear-gradient(135deg, #ffffff, #eef8ff);
    box-shadow: 0 22px 48px rgba(25, 74, 109, .12);
    text-align: center;
}

.traffic-sign-deck-complete h2 {
    margin: 15px 0 9px;
    color: #17344b;
    font-size: 31px;
    letter-spacing: -0.04em;
}

.traffic-sign-deck-complete p {
    margin: 0;
    color: #637b8e;
    font-size: 15px;
}

.traffic-sign-deck-complete-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 23px;
}

.traffic-sign-deck-live {
    min-height: 22px;
    margin: 16px 0 0;
    color: #6f8698;
    font-size: 13px;
    text-align: center;
}

@media (max-width: 900px) {
    .traffic-signs-hero-grid,
    .traffic-sign-deck-layout {
        grid-template-columns: 1fr;
    }

    .traffic-signs-hero-panel {
        max-width: 520px;
    }

    .traffic-sign-deck-sidebar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .traffic-signs-hero {
        padding: 46px 0 38px;
    }

    .traffic-signs-hero-grid,
    .traffic-signs-category-grid,
    .traffic-signs-how-grid,
    .traffic-sign-deck-sidebar {
        grid-template-columns: 1fr;
    }

    .traffic-signs-hero-copy h1 {
        font-size: 43px;
    }

    .traffic-signs-hero-panel {
        min-height: 340px;
    }

    .traffic-signs-category-card {
        grid-template-columns: 112px minmax(0, 1fr);
        min-height: 190px;
        gap: 13px;
        padding: 14px;
    }

    .traffic-signs-category-art {
        min-height: 158px;
    }

    .traffic-signs-category-art img {
        width: 94px;
        height: 94px;
    }

    .traffic-signs-category-copy h3 {
        margin-top: 17px;
        font-size: 20px;
    }

    .traffic-signs-category-progress {
        display: none;
    }

    .traffic-sign-deck-header {
        display: block;
    }

    .traffic-sign-deck-header-progress {
        margin-top: 20px;
    }

    .traffic-sign-deck-stage {
        min-height: 470px;
    }

    .traffic-sign-deck-stack,
    .traffic-sign-card {
        width: calc(100% - 12px);
    }

    .traffic-sign-deck-stack {
        height: 395px;
    }

    .traffic-sign-card {
        min-height: 395px;
        border-radius: 23px;
    }

    .traffic-sign-card-image-wrap {
        min-height: 245px;
        padding: 22px 20px 7px;
    }

    .traffic-sign-card-image-wrap img {
        height: 220px;
    }

    .traffic-sign-card-copy {
        padding: 16px 18px 20px;
    }

    .traffic-sign-card-copy h2 {
        font-size: 26px;
    }

    .traffic-sign-deck-actions {
        width: calc(100% - 12px);
        grid-template-columns: 1fr 44px 1fr;
        gap: 7px;
    }

    .traffic-sign-action {
        padding: 9px 8px;
        font-size: 12px;
    }

    .traffic-sign-deck-complete {
        width: calc(100% - 12px);
        padding: 28px 20px;
    }
}

.nav-auth,
.nav-inline-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-auth {
    margin-left: auto;
    padding: 4px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.nav-login-link {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 650;
}

.nav-login-link:hover {
    color: var(--brand-700);
    background: var(--brand-50);
}

.nav-cta {
    min-width: 136px;
    min-height: 40px;
    border-radius: 999px;
    padding-right: 16px;
    padding-left: 16px;
}

.nav-profile-link {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px 5px 5px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #344054;
    background: #fff;
    font-size: 14px;
    font-weight: 800;
    box-shadow: var(--shadow-soft);
}

.nav-profile-link span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
    font-size: 13px;
}

.auth-shell,
.account-shell {
    display: grid;
    gap: 20px;
}

.auth-shell {
    max-width: 520px;
}

.auth-card,
.account-panel,
.account-banner,
.account-question-list article,
.account-mini-list article,
.account-stat-grid article {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-card);
}

.auth-card {
    padding: 26px;
}

.auth-card h1,
.account-header h1 {
    margin: 16px 0 10px;
}

.auth-form,
.account-question-list,
.account-mini-list,
.account-grid {
    display: grid;
    gap: 14px;
}

.auth-form label {
    display: grid;
    gap: 7px;
    color: #445a71;
    font-weight: 700;
}

.auth-form input {
    min-height: 46px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.auth-help,
.auth-meta {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.auth-meta {
    margin: 4px 0 0;
}

.auth-meta a,
.question-save-link a {
    color: var(--blue-dark);
    font-weight: 800;
}

.auth-meta a {
    display: inline-flex;
    margin-left: 4px;
}

.account-header,
.account-banner,
.pager-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.account-links,
.pager-row {
    display: flex;
    gap: 10px;
}

.account-banner,
.account-panel {
    padding: 18px;
}

.account-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.account-stat-grid article {
    padding: 18px;
}

.account-stat-grid span,
.account-question-list small,
.account-mini-list small,
.account-stat-list span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 760;
}

.account-stat-grid strong {
    display: block;
    margin-top: 6px;
    font-size: 30px;
}

.account-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-mini-list article,
.account-question-list article {
    padding: 16px;
}

.account-question-list p {
    margin: 8px 0;
}

.account-stat-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.question-save-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.question-save-link {
    color: var(--muted);
    font-size: 14px;
}

.account-filter-grid,
.account-filter-row,
.account-history-list,
.history-detail-list {
    display: grid;
    gap: 14px;
}

.account-filter-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: end;
}

.account-filter-grid.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.account-filter-row {
    grid-template-columns: minmax(0, 280px) auto;
    align-items: end;
}

.account-filter-grid label,
.account-filter-row label {
    display: grid;
    gap: 7px;
    color: #445a71;
    font-weight: 700;
}

.account-filter-grid input,
.account-filter-grid select,
.account-filter-row select {
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.account-filter-actions,
.account-action-row,
.account-history-footer,
.history-detail-head,
.history-detail-answer-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.account-history-card,
.history-detail-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 12px 26px rgba(29, 70, 105, 0.07);
}

.account-history-card strong,
.history-detail-card strong {
    display: block;
}

.account-history-metrics,
.history-detail-options {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0;
}

.account-history-metrics span,
.history-detail-answer-meta small,
.history-detail-status {
    color: var(--muted);
    font-size: 13px;
    font-weight: 760;
}

.account-history-metrics strong {
    display: block;
    margin-top: 4px;
    color: var(--ink);
    font-size: 18px;
}

.history-detail-text {
    margin: 10px 0 14px;
}

.history-detail-option,
.saved-question-check {
    display: flex;
    align-items: center;
    gap: 10px;
}

.history-detail-option {
    min-height: 54px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.history-detail-option span {
    min-width: 28px;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: #eef5fa;
    color: #4e6b86;
    font-weight: 900;
}

.history-detail-option.is-selected {
    border-color: #9fcdee;
    background: #f6fbff;
}

.history-detail-option.is-correct {
    border-color: #8bd9bd;
    background: #effbf6;
}

.account-trend {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 10px;
    align-items: end;
}

.account-trend article {
    display: grid;
    gap: 8px;
    text-align: center;
}

.account-trend-bar {
    height: 112px;
    display: flex;
    align-items: end;
    padding: 8px;
    border-radius: var(--radius);
    background: var(--brand-100);
}

.account-trend-bar span {
    width: 100%;
    display: block;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--brand-500), var(--brand-700));
}

.saved-question-check {
    font-size: 14px;
    font-weight: 760;
    color: #445a71;
}

.saved-question-collection {
    color: var(--muted);
    font-size: 12px;
    font-weight: 760;
}

.account-inline-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 940px) {
    .account-stat-grid,
    .account-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .account-filter-grid,
    .account-filter-grid.compact,
    .account-history-metrics,
    .history-detail-options,
    .account-trend {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .nav-auth {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .account-stat-grid,
    .account-grid,
    .account-stat-list,
    .account-filter-grid,
    .account-filter-grid.compact,
    .account-filter-row,
    .account-history-metrics,
    .history-detail-options,
    .account-trend {
        grid-template-columns: 1fr;
    }

    .question-save-bar {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 900px) {
    .nav-links,
    .nav-auth {
        display: none;
    }
}

/* Home refinement v3: premium header, clean hero preview, APK topic accents. */
.site-header {
    background: rgba(255, 255, 255, 0.97);
    border-bottom-color: rgba(226, 232, 240, 0.92);
    backdrop-filter: blur(18px) saturate(150%);
}

.site-header.is-scrolled {
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.nav {
    min-height: 76px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
}

.brand {
    font-size: 27px;
    letter-spacing: -0.04em;
    line-height: 1;
}

.nav-links {
    justify-self: center;
    gap: 3px;
    padding: 4px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.9);
}

.nav-links a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 8px 13px;
    border-radius: 10px;
    color: #475467;
    font-size: 13px;
    font-weight: 650;
    white-space: nowrap;
    transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.nav-links a:hover,
.nav-links a.is-active {
    color: var(--brand-700);
    background: #fff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.07);
}

.nav-links a.is-active::after {
    content: none;
}

.nav-auth {
    justify-self: end;
    margin-left: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.nav-login-link {
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 10px;
    color: #475467;
    font-weight: 650;
}

.nav-cta {
    min-width: 142px;
    min-height: 42px;
    border-radius: 11px;
    padding-inline: 17px;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.20);
}

.home-hero-visual {
    min-height: 470px;
    padding: 0;
}

.home-preview-glow {
    inset: 38px -22px 30px 34px;
    background:
        radial-gradient(circle at 78% 18%, rgba(37, 99, 235, 0.18), transparent 36%),
        linear-gradient(145deg, rgba(219, 234, 254, 0.78), rgba(239, 246, 255, 0.18));
    transform: rotate(-1.5deg);
}

.home-exam-preview {
    width: 100%;
    padding: 24px;
    border-color: rgba(191, 219, 254, 0.9);
    background: rgba(255, 255, 255, 0.985);
    box-shadow: 0 34px 78px rgba(30, 64, 175, 0.14);
}

.home-benefits {
    padding-top: 82px;
    padding-bottom: 58px;
}

.home-topics {
    padding-top: 54px;
    padding-bottom: 78px;
}

.home-topic-grid {
    gap: 16px;
}

.home-topic-card {
    --topic-accent: #2d7fd3;
    --topic-soft: #eaf4ff;
    --topic-border: #c9e0f6;
    position: relative;
    overflow: hidden;
    min-height: 238px;
    padding: 24px;
    border-color: var(--topic-border);
    border-radius: 18px;
    background:
        radial-gradient(circle at 100% 0%, var(--topic-soft), transparent 46%),
        #fff;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.065);
}

.home-topic-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: var(--topic-accent);
}

.home-topic-card--traffic {
    --topic-accent: #2d7fd3;
    --topic-soft: #eaf4ff;
    --topic-border: #c9e0f6;
}

.home-topic-card--first-aid {
    --topic-accent: #e44d73;
    --topic-soft: #fff0f4;
    --topic-border: #f5c9d6;
}

.home-topic-card--engine {
    --topic-accent: #d9801f;
    --topic-soft: #fff5e8;
    --topic-border: #f2d3aa;
}

.home-topic-card--ethics {
    --topic-accent: #199b67;
    --topic-soft: #ecf8f2;
    --topic-border: #bee5d3;
}

.home-topic-card .home-topic-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 28px;
    color: var(--topic-accent);
    background: var(--topic-soft);
    box-shadow: inset 0 0 0 1px var(--topic-border);
}

.home-topic-card small {
    min-height: 64px;
    margin-top: 9px;
}

.home-topic-card em {
    padding-top: 20px;
    color: var(--topic-accent);
}

.home-topic-card:hover {
    transform: translateY(-4px);
    border-color: var(--topic-accent);
    box-shadow: 0 22px 46px rgba(15, 23, 42, 0.10);
}

@media (max-width: 1040px) {
    .home-hero-visual {
        min-height: 440px;
        padding: 0;
    }
}

@media (max-width: 900px) {
    .nav {
        min-height: 68px;
        display: flex;
    }

    .home-hero-visual {
        width: min(100%, 720px);
        min-height: 0;
        padding: 0;
    }
}

@media (max-width: 680px) {
    .home-hero-visual {
        padding: 0;
    }

    .home-preview-glow {
        inset: 24px -10px 18px 12px;
    }

    .home-benefits {
        padding-top: 62px;
        padding-bottom: 44px;
    }

    .home-topics {
        padding-top: 42px;
        padding-bottom: 62px;
    }

    .home-topic-card {
        min-height: 0;
        padding: 22px;
    }

    .home-topic-card .home-topic-icon {
        margin-bottom: 20px;
    }

    .home-topic-card small {
        min-height: 0;
    }
}


/* Home hero showcase v4: two focused product cards, no application logic changes. */
.home-page .home-hero-visual {
    min-height: 500px;
    display: grid;
    align-items: center;
    padding: 0;
}

.home-showcase-glow {
    position: absolute;
    inset: 34px -26px 22px 24px;
    border-radius: 42px;
    background:
        radial-gradient(circle at 78% 20%, rgba(37, 99, 235, 0.22), transparent 34%),
        linear-gradient(145deg, rgba(219, 234, 254, 0.72), rgba(239, 246, 255, 0.18));
    transform: rotate(-1.25deg);
}

.home-showcase-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(210px, 0.72fr);
    gap: 18px;
    align-items: stretch;
}

.home-showcase-card {
    position: relative;
    overflow: hidden;
    min-width: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(191, 219, 254, 0.92);
    border-radius: 24px;
    box-shadow: 0 28px 66px rgba(30, 64, 175, 0.14);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.home-showcase-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 34px 76px rgba(30, 64, 175, 0.18);
}

.home-showcase-card--exam {
    min-height: 468px;
    padding: 26px;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.16);
    background:
        radial-gradient(circle at 92% 4%, rgba(147, 197, 253, 0.46), transparent 30%),
        linear-gradient(145deg, #123fbe 0%, #155eef 56%, #2d7ff3 100%);
}

.home-showcase-card--exam::after {
    content: "";
    position: absolute;
    right: -72px;
    bottom: -88px;
    width: 230px;
    height: 230px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    box-shadow:
        0 0 0 28px rgba(255, 255, 255, 0.035),
        0 0 0 56px rgba(255, 255, 255, 0.025);
    pointer-events: none;
}

.home-showcase-card--signs {
    min-height: 468px;
    padding: 24px;
    color: var(--navy-950);
    background:
        radial-gradient(circle at 88% 8%, rgba(125, 211, 252, 0.30), transparent 34%),
        linear-gradient(180deg, #f5f9ff 0%, #eaf3ff 100%);
}

.home-showcase-card-head {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.home-showcase-label {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 760;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.home-showcase-card--exam .home-showcase-label {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.home-showcase-card--signs .home-showcase-label {
    color: var(--brand-700);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: inset 0 0 0 1px rgba(191, 219, 254, 0.92);
}

.home-showcase-number {
    color: inherit;
    font-size: 12px;
    font-weight: 760;
    opacity: 0.56;
}

.home-showcase-card h2 {
    position: relative;
    z-index: 2;
    margin: 20px 0 0;
    font-size: clamp(24px, 2.2vw, 32px);
    font-weight: 720;
    line-height: 1.09;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.home-showcase-card > p {
    position: relative;
    z-index: 2;
    margin: 12px 0 0;
    font-size: 14px;
    line-height: 1.55;
}

.home-showcase-card--exam > p {
    color: rgba(255, 255, 255, 0.78);
}

.home-showcase-card--signs > p {
    color: #52647b;
}

.home-exam-mini {
    position: relative;
    z-index: 2;
    margin-top: 22px;
    padding: 17px;
    border: 1px solid rgba(255, 255, 255, 0.64);
    border-radius: 17px;
    color: var(--navy-950);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 18px 38px rgba(8, 33, 94, 0.20);
}

.home-exam-mini-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #667085;
    font-size: 10px;
    font-weight: 680;
}

.home-exam-mini-top span:last-child {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--brand-700);
}

.home-exam-mini-top svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.home-exam-mini > strong {
    display: block;
    margin-top: 13px;
    color: var(--navy-950);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.home-exam-mini-options {
    display: grid;
    gap: 7px;
    margin-top: 11px;
}

.home-exam-mini-options span {
    min-height: 30px;
    display: flex;
    align-items: center;
    padding: 6px 9px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: #52647b;
    background: #f8fafc;
    font-size: 10px;
    font-weight: 580;
}

.home-exam-mini-options .is-active {
    color: var(--brand-700);
    border-color: #bfdbfe;
    background: #eff6ff;
}

.home-exam-mini-progress {
    overflow: hidden;
    height: 5px;
    margin-top: 13px;
    border-radius: 999px;
    background: #e8eef7;
}

.home-exam-mini-progress span {
    width: 42%;
    height: 100%;
    display: block;
    border-radius: inherit;
    background: linear-gradient(90deg, #60a5fa, #2563eb);
}

.home-showcase-meta {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 16px;
}

.home-showcase-meta span {
    padding: 6px 9px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.10);
    font-size: 10px;
    font-weight: 650;
}

.home-showcase-link {
    position: relative;
    z-index: 3;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: auto;
    padding-top: 18px;
    font-size: 13px;
    font-weight: 700;
}

.home-showcase-card--exam .home-showcase-link {
    color: #fff;
}

.home-showcase-card--signs .home-showcase-link {
    color: var(--brand-700);
}

.home-showcase-link span {
    transition: transform 160ms ease;
}

.home-showcase-link:hover span {
    transform: translateX(3px);
}

.home-sign-stack {
    position: relative;
    z-index: 2;
    min-height: 220px;
    margin: 20px 0 4px;
}

.home-sign-mini {
    position: absolute;
    margin: 0;
    display: grid;
    place-items: center;
    border: 1px solid rgba(191, 219, 254, 0.9);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 36px rgba(30, 64, 175, 0.14);
}

.home-sign-mini img {
    width: 76%;
    height: 76%;
    display: block;
    object-fit: contain;
}

.home-sign-mini--back {
    top: 9px;
    right: -5px;
    width: 118px;
    height: 136px;
    transform: rotate(8deg);
    opacity: 0.76;
}

.home-sign-mini--middle {
    top: 26px;
    left: 2px;
    width: 122px;
    height: 142px;
    transform: rotate(-7deg);
    opacity: 0.88;
}

.home-sign-mini--front {
    left: 50%;
    bottom: 0;
    width: 146px;
    height: 174px;
    padding: 13px 13px 10px;
    transform: translateX(-50%);
}

.home-sign-mini--front img {
    width: 90px;
    height: 90px;
}

.home-sign-mini figcaption {
    color: var(--navy-950);
    font-size: 12px;
    font-weight: 720;
}

@media (max-width: 1040px) {
    .home-showcase-grid {
        grid-template-columns: minmax(0, 1.04fr) minmax(190px, 0.72fr);
        gap: 14px;
    }

    .home-showcase-card--exam,
    .home-showcase-card--signs {
        min-height: 442px;
        padding: 21px;
    }

    .home-showcase-card h2 {
        font-size: clamp(22px, 2.1vw, 28px);
    }

    .home-sign-stack {
        min-height: 206px;
    }

    .home-sign-mini--back,
    .home-sign-mini--middle {
        width: 104px;
        height: 126px;
    }

    .home-sign-mini--front {
        width: 132px;
        height: 158px;
    }
}

@media (max-width: 900px) {
    .home-page .home-hero-visual {
        width: min(100%, 720px);
        min-height: 0;
        justify-self: center;
        padding: 0;
    }

    .home-showcase-grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.72fr);
    }
}

@media (max-width: 680px) {
    .home-showcase-glow {
        inset: 28px -12px 18px 10px;
        border-radius: 30px;
    }

    .home-showcase-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .home-showcase-card {
        border-radius: 20px;
    }

    .home-showcase-card--exam,
    .home-showcase-card--signs {
        min-height: 0;
        padding: 20px;
    }

    .home-showcase-card h2 {
        margin-top: 17px;
        font-size: 26px;
    }

    .home-showcase-card > p {
        font-size: 14px;
    }

    .home-exam-mini {
        margin-top: 18px;
        padding: 15px;
    }

    .home-showcase-card--signs {
        min-height: 410px;
    }

    .home-sign-stack {
        min-height: 230px;
        margin-top: 16px;
    }

    .home-sign-mini--back {
        right: 7%;
    }

    .home-sign-mini--middle {
        left: 7%;
    }

    .home-sign-mini--front {
        width: 152px;
        height: 178px;
    }
}

@media (max-width: 420px) {
    .home-showcase-card--exam,
    .home-showcase-card--signs {
        padding: 18px;
    }

    .home-showcase-card h2 {
        font-size: 24px;
    }

    .home-exam-mini-options span {
        min-height: 28px;
        font-size: 9.5px;
    }

    .home-showcase-meta {
        gap: 6px;
    }

    .home-showcase-meta span {
        padding: 6px 8px;
    }

    .home-sign-mini--back,
    .home-sign-mini--middle {
        width: 105px;
        height: 126px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-showcase-card,
    .home-showcase-link span {
        transition: none;
    }
}


/* Global header/footer alignment: identical brand, menu and account positions on every page. */
@media (min-width: 901px) {
    .site-header .shell,
    .site-footer .shell {
        width: min(1240px, calc(100% - 40px));
    }

    .nav {
        grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
    }

    .brand {
        justify-self: start;
    }

    .nav-links {
        justify-self: center;
    }

    .nav-auth {
        justify-self: end;
    }
}

.home-page .home-hero-grid {
    align-items: start;
}

.home-page .home-hero-copy {
    max-width: 610px;
    padding-top: 10px;
}

.home-page .home-eyebrow {
    min-height: 36px;
    gap: 9px;
    margin-bottom: 20px;
    padding: 7px 12px 7px 8px;
    border: 1px solid rgba(191, 219, 254, 0.9);
    border-radius: 999px;
    background: rgba(239, 246, 255, 0.88);
    box-shadow: 0 8px 22px rgba(30, 64, 175, 0.055);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
}

.home-page .home-eyebrow-icon {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: var(--brand-600);
    box-shadow: none;
}

.home-page .home-eyebrow-icon svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.home-page .home-hero h1 {
    max-width: 640px;
    font-size: clamp(50px, 4.35vw, 64px);
    line-height: 1.015;
    letter-spacing: -0.048em;
}

.home-page .home-hero h1 > span {
    display: block;
}

.home-page .home-hero h1 > span:last-child {
    margin-top: 3px;
    color: var(--brand-700);
    font-size: 0.86em;
    letter-spacing: -0.043em;
}

.home-page .home-lead {
    max-width: 565px;
    margin-top: 22px;
}

.home-page .home-actions {
    margin-top: 27px;
}

.home-page .home-proof-list {
    overflow: hidden;
    gap: 0;
    margin-top: 27px;
    border: 1px solid rgba(203, 213, 225, 0.88);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.055);
    backdrop-filter: blur(12px);
}

.home-page .home-proof-list > div {
    min-height: 70px;
    padding: 12px 14px;
    border: 0;
    border-right: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
}

.home-page .home-proof-list > div:last-child {
    border-right: 0;
}

.home-page .home-proof-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
}

.home-page .home-proof-list dt {
    font-size: 17px;
}

.home-page .home-proof-list dd {
    font-size: 11px;
}

@media (max-width: 1180px) and (min-width: 901px) {
    .site-header .shell,
    .site-footer .shell,
    .home-page .shell {
        width: min(100% - 40px, 1120px);
    }

    .nav {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .home-page .home-hero h1 {
        font-size: clamp(48px, 5vw, 58px);
    }

    .home-page .home-hero h1 > span:last-child {
        font-size: 0.82em;
    }
}

@media (max-width: 900px) {
    .home-page .home-hero-copy {
        max-width: 720px;
        padding-top: 0;
    }

    .home-page .home-hero h1 {
        max-width: 720px;
    }

    .home-page .home-proof-list {
        max-width: 680px;
    }
}

@media (max-width: 680px) {
    .home-page .home-eyebrow {
        margin-bottom: 17px;
    }

    .home-page .home-hero h1 {
        font-size: clamp(39px, 11.5vw, 48px);
        line-height: 1.035;
    }

    .home-page .home-hero h1 > span:last-child {
        margin-top: 5px;
        font-size: 0.84em;
    }

    .home-page .home-proof-list {
        overflow: visible;
        grid-template-columns: 1fr;
        gap: 9px;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
    }

    .home-page .home-proof-list > div {
        min-height: 62px;
        padding: 11px 13px;
        border: 1px solid rgba(203, 213, 225, 0.88);
        border-radius: 13px;
        background: rgba(255, 255, 255, 0.9);
    }
}

/* Home refinement v6: compact rhythm, topics after hero, benefits at page end. */
.home-page .home-hero {
    padding: 68px 0 72px;
}

.home-page .home-hero-grid {
    gap: clamp(48px, 5vw, 76px);
}

.home-page .home-topics {
    padding: 68px 0 72px;
    border-bottom: 1px solid #e8edf4;
    background: #fff;
}

.home-page .home-topics .home-heading-row,
.home-page .home-study .home-heading-row {
    margin-bottom: 28px;
}

.home-page .home-topic-grid {
    gap: 14px;
}

.home-page .home-topic-card {
    min-height: 212px;
    padding: 22px;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.055);
}

.home-page .home-topic-card .home-topic-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 22px;
    border-radius: 13px;
}

.home-page .home-topic-card small {
    min-height: 50px;
    margin-top: 8px;
}

.home-page .home-topic-card em {
    padding-top: 16px;
}

.home-page .home-study {
    padding: 72px 0;
    border-bottom: 1px solid #e8edf4;
    background: #f8fafc;
}

.home-page .home-study-grid {
    gap: 16px;
}

.home-page .home-study-main {
    min-height: 360px;
    gap: 20px;
    padding: 30px;
    border-radius: 22px;
    box-shadow: 0 24px 54px rgba(29, 78, 216, 0.20);
}

.home-page .home-study-main h3 {
    font-size: clamp(32px, 3vw, 42px);
}

.home-page .home-study-copy {
    margin-top: 13px;
}

.home-page .home-study-options {
    gap: 10px;
}

.home-page .home-option-card {
    min-height: 112px;
    padding: 19px 22px;
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045);
}

.home-page .home-final {
    padding: 72px 0;
    background: #fff;
}

.home-page .home-final-panel {
    min-height: 214px;
    padding: 42px 48px;
    border-radius: 22px;
    box-shadow: 0 26px 60px rgba(15, 35, 82, 0.18);
}

.home-page .home-benefits {
    padding: 68px 0 78px;
    border-top: 1px solid #e8edf4;
    border-bottom: 0;
    background: linear-gradient(180deg, #f8fafc 0%, #f4f7fb 100%);
}

.home-page .home-benefits-layout {
    grid-template-columns: 1fr;
    gap: 30px;
}

.home-page .home-benefits .home-section-heading {
    max-width: 760px;
}

.home-page .home-benefits .home-section-heading h2 {
    font-size: clamp(30px, 3vw, 44px);
}

.home-page .home-benefit-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.home-page .home-benefit {
    min-height: 0;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.home-page .home-benefit .home-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
}

.home-page .home-benefit h3 {
    font-size: 16px;
}

.home-page .home-benefit p {
    font-size: 13px;
    line-height: 1.55;
}

@media (max-width: 1040px) {
    .home-page .home-topic-card {
        min-height: 202px;
    }

    .home-page .home-benefit-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .home-page .home-topics,
    .home-page .home-study,
    .home-page .home-final,
    .home-page .home-benefits {
        padding: 60px 0;
    }

    .home-page .home-benefit-grid {
        grid-template-columns: 1fr;
    }

    .home-page .home-benefit {
        min-height: 0;
    }

    .home-page .home-study-main {
        min-height: 340px;
    }

    .home-page .home-final-panel {
        padding: 38px;
    }
}

@media (max-width: 680px) {
    .home-page .home-hero {
        padding: 44px 0 54px;
    }

    .home-page .home-topics,
    .home-page .home-study,
    .home-page .home-final,
    .home-page .home-benefits {
        padding: 52px 0;
    }

    .home-page .home-topics .home-heading-row,
    .home-page .home-study .home-heading-row {
        margin-bottom: 22px;
    }

    .home-page .home-topic-card {
        min-height: 0;
        padding: 20px;
    }

    .home-page .home-topic-card .home-topic-icon {
        margin-bottom: 18px;
    }

    .home-page .home-topic-card small {
        min-height: 0;
    }

    .home-page .home-study-main {
        min-height: 0;
        padding: 24px;
    }

    .home-page .home-option-card {
        min-height: 0;
        padding: 18px;
    }

    .home-page .home-final-panel {
        min-height: 0;
        padding: 30px 24px;
    }

    .home-page .home-benefits-layout {
        gap: 24px;
    }

    .home-page .home-benefit {
        padding: 18px;
    }
}

/* Home hero v8: premium product deck with a dedicated mobile composition. */
.home-page .home-hero {
    position: relative;
    overflow: hidden;
    padding: 64px 0 72px;
    background:
        radial-gradient(circle at 87% 10%, rgba(37, 99, 235, 0.12), transparent 32%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.home-page .home-hero::before {
    content: "";
    position: absolute;
    width: 560px;
    height: 560px;
    right: -190px;
    top: -250px;
    border-radius: 50%;
    border: 1px solid rgba(37, 99, 235, 0.08);
    box-shadow:
        0 0 0 56px rgba(37, 99, 235, 0.025),
        0 0 0 112px rgba(37, 99, 235, 0.018);
    pointer-events: none;
}

.home-page .home-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(600px, 1.08fr);
    gap: clamp(44px, 5vw, 76px);
    align-items: center;
}

.home-page .home-hero-copy {
    max-width: 600px;
}

.home-page .home-eyebrow {
    width: max-content;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    padding: 6px 12px 6px 7px;
    border: 1px solid rgba(147, 197, 253, 0.72);
    border-radius: 999px;
    color: var(--brand-700);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 24px rgba(30, 64, 175, 0.055);
    font-size: 13px;
    font-weight: 760;
    backdrop-filter: blur(12px);
}

.home-page .home-eyebrow-icon {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(145deg, var(--brand-600), #3b82f6);
}

.home-page .home-eyebrow-icon svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.home-page .home-hero h1 {
    max-width: 620px;
    margin: 0;
    color: var(--navy-950);
    font-size: clamp(52px, 4.35vw, 68px);
    font-weight: 760;
    line-height: 0.99;
    letter-spacing: -0.052em;
    text-wrap: balance;
}

.home-page .home-hero h1 > span {
    display: block;
}

.home-page .home-hero h1 > span:last-child {
    margin-top: 8px;
    color: var(--brand-600);
    font-size: 0.82em;
    line-height: 1.03;
    letter-spacing: -0.045em;
}

.home-page .home-lead {
    max-width: 540px;
    margin: 22px 0 0;
    color: #506079;
    font-size: 17px;
    line-height: 1.68;
}

.home-page .home-actions {
    display: flex;
    align-items: stretch;
    gap: 12px;
    margin-top: 28px;
}

.home-page .home-actions form {
    margin: 0;
}

.home-page .home-primary-action,
.home-page .home-secondary-action {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border-radius: 13px;
    font-size: 15px;
    font-weight: 720;
    white-space: nowrap;
}

.home-page .home-primary-action {
    padding-inline: 23px;
    box-shadow: 0 16px 32px rgba(29, 78, 216, 0.22);
}

.home-page .home-secondary-action {
    padding: 12px 21px;
    border: 1px solid #cbd5e1;
    color: var(--navy-900);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.045);
}

.home-page .home-secondary-action:hover {
    border-color: #93c5fd;
    color: var(--brand-700);
    background: #fff;
}

.home-page .home-proof-list {
    max-width: 570px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 24px 0 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #dbe3ee;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.055);
    backdrop-filter: blur(12px);
}

.home-page .home-proof-list > div {
    min-width: 0;
    min-height: 70px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 14px;
    border-right: 1px solid #e3e9f1;
}

.home-page .home-proof-list > div:last-child {
    border-right: 0;
}

.home-page .home-proof-icon {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: var(--brand-600);
    background: #eef5ff;
}

.home-page .home-proof-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.home-page .home-proof-list dt,
.home-page .home-proof-list dd {
    margin: 0;
}

.home-page .home-proof-list dt {
    color: var(--navy-950);
    font-size: 17px;
    font-weight: 760;
    line-height: 1.08;
}

.home-page .home-proof-list dd {
    margin-top: 4px;
    color: #667085;
    font-size: 11px;
    font-weight: 620;
    line-height: 1.25;
}

.home-page .home-hero-visual {
    width: 100%;
    min-width: 0;
}

.home-feature-deck {
    display: grid;
    grid-template-columns: minmax(0, 1.13fr) minmax(225px, 0.77fr);
    gap: 16px;
    align-items: stretch;
}

.home-feature-card {
    position: relative;
    min-width: 0;
    min-height: 436px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 26px;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.home-feature-card:hover {
    transform: translateY(-3px);
}

.home-feature-card--exam {
    padding: 26px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background:
        radial-gradient(circle at 92% 4%, rgba(147, 197, 253, 0.52), transparent 31%),
        linear-gradient(145deg, #153cae 0%, #155eef 54%, #317ef3 100%);
    box-shadow: 0 30px 70px rgba(29, 78, 216, 0.24);
}

.home-feature-card--exam::after {
    content: "";
    position: absolute;
    right: -82px;
    bottom: -106px;
    width: 250px;
    height: 250px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    box-shadow:
        0 0 0 32px rgba(255, 255, 255, 0.035),
        0 0 0 64px rgba(255, 255, 255, 0.022);
    pointer-events: none;
}

.home-feature-card--signs {
    padding: 24px;
    color: var(--navy-950);
    border: 1px solid #bfdbfe;
    background:
        radial-gradient(circle at 84% 8%, rgba(125, 211, 252, 0.32), transparent 34%),
        linear-gradient(180deg, #f7fbff 0%, #eaf4ff 100%);
    box-shadow: 0 28px 62px rgba(30, 64, 175, 0.14);
}

.home-feature-topline {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.home-feature-kicker,
.home-feature-status {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 760;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.home-feature-card--exam .home-feature-kicker {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.home-feature-card--signs .home-feature-kicker {
    color: var(--brand-700);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: inset 0 0 0 1px rgba(147, 197, 253, 0.72);
}

.home-feature-status {
    gap: 6px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
}

.home-feature-status span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #93c5fd;
    box-shadow: 0 0 0 4px rgba(147, 197, 253, 0.14);
}

.home-feature-index {
    color: #52647b;
    font-size: 11px;
    font-weight: 760;
}

.home-feature-copy {
    position: relative;
    z-index: 2;
    margin-top: 20px;
}

.home-feature-copy h2 {
    margin: 0;
    font-size: clamp(25px, 2.15vw, 33px);
    font-weight: 740;
    line-height: 1.06;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.home-feature-copy p {
    margin: 12px 0 0;
    font-size: 13px;
    line-height: 1.55;
}

.home-feature-card--exam .home-feature-copy p {
    color: rgba(255, 255, 255, 0.8);
}

.home-feature-card--signs .home-feature-copy p {
    color: #52647b;
}

.home-exam-card-preview {
    position: relative;
    z-index: 2;
    margin-top: 22px;
    padding: 17px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 18px;
    color: var(--navy-950);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 18px 38px rgba(8, 33, 94, 0.2);
}

.home-exam-card-header,
.home-exam-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.home-exam-card-header {
    color: #667085;
    font-size: 10px;
    font-weight: 680;
}

.home-exam-card-header strong {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--brand-700);
}

.home-exam-card-header svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.home-exam-card-question {
    margin-top: 13px;
    font-size: 14px;
    font-weight: 720;
    line-height: 1.3;
}

.home-exam-card-options {
    display: grid;
    gap: 7px;
    margin-top: 12px;
}

.home-exam-card-options span {
    min-height: 31px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 9px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #52647b;
    background: #f8fafc;
    font-size: 10px;
    font-weight: 590;
}

.home-exam-card-options b {
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid #d8e0ea;
    border-radius: 50%;
    color: #667085;
    font-size: 9px;
}

.home-exam-card-options .is-current {
    color: var(--brand-700);
    border-color: #bfdbfe;
    background: #eff6ff;
}

.home-exam-card-options .is-current b {
    color: #fff;
    border-color: var(--brand-600);
    background: var(--brand-600);
}

.home-exam-card-footer {
    margin-top: 13px;
}

.home-exam-card-progress {
    height: 5px;
    flex: 1;
    overflow: hidden;
    border-radius: 999px;
    background: #e8eef7;
}

.home-exam-card-progress i {
    width: 38%;
    height: 100%;
    display: block;
    border-radius: inherit;
    background: linear-gradient(90deg, #60a5fa, #2563eb);
}

.home-exam-card-footer strong {
    color: #667085;
    font-size: 10px;
}

.home-feature-bottom {
    position: relative;
    z-index: 3;
    display: grid;
    gap: 8px;
    margin-top: auto;
    padding-top: 16px;
}

.home-feature-bottom > span {
    font-size: 10px;
    font-weight: 650;
}

.home-feature-card--exam .home-feature-bottom > span {
    color: rgba(255, 255, 255, 0.72);
}

.home-feature-card--signs .home-feature-bottom > span {
    color: #667085;
}

.home-feature-bottom a {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 38px;
    font-size: 12.5px;
    font-weight: 720;
}

.home-feature-card--exam .home-feature-bottom a {
    color: #fff;
}

.home-feature-card--signs .home-feature-bottom a {
    color: var(--brand-700);
}

.home-sign-deck {
    position: relative;
    z-index: 2;
    min-height: 205px;
    margin-top: 19px;
}

.home-sign-deck-card {
    position: absolute;
    margin: 0;
    display: grid;
    place-items: center;
    border: 1px solid rgba(147, 197, 253, 0.76);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 18px 36px rgba(30, 64, 175, 0.14);
}

.home-sign-deck-card img {
    width: 76%;
    height: 76%;
    display: block;
    object-fit: contain;
}

.home-sign-deck-card--back {
    top: 8px;
    right: -5px;
    width: 112px;
    height: 132px;
    transform: rotate(8deg);
    opacity: 0.72;
}

.home-sign-deck-card--middle {
    top: 27px;
    left: 0;
    width: 116px;
    height: 138px;
    transform: rotate(-7deg);
    opacity: 0.86;
}

.home-sign-deck-card--front {
    left: 50%;
    bottom: 0;
    width: 138px;
    height: 166px;
    padding: 12px 12px 10px;
    transform: translateX(-50%);
}

.home-sign-deck-card--front img {
    width: 86px;
    height: 86px;
}

.home-sign-deck-card figcaption {
    color: var(--navy-950);
    font-size: 12px;
    font-weight: 720;
}

@media (max-width: 1220px) and (min-width: 901px) {
    .home-page .home-hero-grid {
        grid-template-columns: minmax(0, 0.9fr) minmax(540px, 1.1fr);
        gap: 34px;
    }

    .home-page .home-hero h1 {
        font-size: clamp(48px, 4.5vw, 58px);
    }

    .home-feature-deck {
        grid-template-columns: minmax(0, 1.08fr) minmax(205px, 0.74fr);
        gap: 13px;
    }

    .home-feature-card {
        min-height: 414px;
    }

    .home-feature-card--exam {
        padding: 22px;
    }

    .home-feature-card--signs {
        padding: 20px;
    }

    .home-feature-copy h2 {
        font-size: clamp(23px, 2vw, 29px);
    }

    .home-sign-deck {
        min-height: 188px;
    }
}

@media (max-width: 900px) {
    .home-page .home-hero {
        padding: 48px 0 60px;
    }

    .home-page .home-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .home-page .home-hero-copy {
        max-width: 700px;
    }

    .home-page .home-hero-visual {
        width: min(100%, 760px);
        justify-self: center;
    }

    .home-feature-deck {
        grid-template-columns: minmax(0, 1.12fr) minmax(230px, 0.76fr);
    }
}

@media (max-width: 680px) {
    .home-page .home-hero {
        padding: 30px 0 48px;
    }

    .home-page .home-hero::before {
        width: 360px;
        height: 360px;
        right: -210px;
        top: -160px;
    }

    .home-page .home-hero-grid {
        gap: 30px;
    }

    .home-page .home-eyebrow {
        min-height: 31px;
        margin-bottom: 14px;
        padding: 5px 10px 5px 6px;
        font-size: 11px;
    }

    .home-page .home-eyebrow-icon {
        width: 20px;
        height: 20px;
    }

    .home-page .home-hero h1 {
        max-width: 100%;
        font-size: clamp(36px, 10.8vw, 43px);
        line-height: 1.01;
        letter-spacing: -0.047em;
    }

    .home-page .home-hero h1 > span:last-child {
        margin-top: 6px;
        font-size: 0.87em;
    }

    .home-page .home-lead {
        margin-top: 17px;
        font-size: 15px;
        line-height: 1.62;
    }

    .home-page .home-actions {
        display: grid;
        gap: 10px;
        margin-top: 22px;
    }

    .home-page .home-actions form,
    .home-page .home-primary-action,
    .home-page .home-secondary-action {
        width: 100%;
    }

    .home-page .home-proof-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-top: 18px;
        border-radius: 14px;
    }

    .home-page .home-proof-list > div {
        min-height: 64px;
        display: grid;
        place-items: center;
        align-content: center;
        gap: 6px;
        padding: 9px 5px;
        text-align: center;
    }

    .home-page .home-proof-icon {
        width: 28px;
        height: 28px;
    }

    .home-page .home-proof-list dt {
        font-size: 14px;
    }

    .home-page .home-proof-list dd {
        margin-top: 2px;
        font-size: 9px;
    }

    .home-feature-deck {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .home-feature-card {
        min-height: 0;
        border-radius: 21px;
    }

    .home-feature-card--exam {
        padding: 19px;
    }

    .home-feature-card--signs {
        min-height: 228px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 126px;
        grid-template-rows: auto auto 1fr;
        column-gap: 14px;
        padding: 19px;
    }

    .home-feature-card--signs .home-feature-topline,
    .home-feature-card--signs .home-feature-copy,
    .home-feature-card--signs .home-feature-bottom {
        grid-column: 1;
    }

    .home-feature-card--signs .home-feature-topline {
        align-self: start;
    }

    .home-feature-card--signs .home-feature-copy {
        margin-top: 13px;
    }

    .home-feature-copy h2 {
        font-size: 24px;
    }

    .home-feature-copy p {
        margin-top: 9px;
        font-size: 12.5px;
    }

    .home-feature-card--exam .home-feature-status {
        display: none;
    }

    .home-exam-card-preview {
        margin-top: 17px;
        padding: 14px;
    }

    .home-exam-card-options {
        gap: 6px;
    }

    .home-feature-bottom {
        padding-top: 13px;
    }

    .home-feature-card--signs .home-feature-bottom {
        align-self: end;
    }

    .home-feature-card--signs .home-feature-bottom > span {
        display: none;
    }

    .home-sign-deck {
        grid-column: 2;
        grid-row: 1 / 4;
        min-height: 190px;
        margin: 0;
        align-self: center;
    }

    .home-sign-deck-card--back,
    .home-sign-deck-card--middle {
        width: 86px;
        height: 104px;
    }

    .home-sign-deck-card--back {
        right: -2px;
    }

    .home-sign-deck-card--middle {
        left: 0;
    }

    .home-sign-deck-card--front {
        width: 106px;
        height: 132px;
    }

    .home-sign-deck-card--front img {
        width: 66px;
        height: 66px;
    }
}

@media (max-width: 390px) {
    .home-page .home-hero h1 {
        font-size: 36px;
    }

    .home-page .home-proof-list > div {
        padding-inline: 3px;
    }

    .home-feature-card--signs {
        grid-template-columns: minmax(0, 1fr) 108px;
        column-gap: 10px;
    }

    .home-feature-copy h2 {
        font-size: 22px;
    }

    .home-sign-deck-card--back,
    .home-sign-deck-card--middle {
        width: 76px;
        height: 94px;
    }

    .home-sign-deck-card--front {
        width: 96px;
        height: 120px;
    }

    .home-sign-deck-card--front img {
        width: 60px;
        height: 60px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-feature-card,
    .home-primary-action,
    .home-secondary-action {
        transition: none;
    }
}

.home-info {
    padding: 56px 0;
    border-top: 1px solid #e6edf6;
    border-bottom: 1px solid #e6edf6;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.home-info-layout {
    display: grid;
    grid-template-columns: minmax(220px, 0.78fr) minmax(0, 1.22fr);
    gap: clamp(28px, 5vw, 70px);
    align-items: start;
}

.home-info-content {
    display: grid;
    gap: 26px;
}

.home-info-content article {
    padding-top: 22px;
    border-top: 1px solid #dce7f4;
}

.home-info-content h3 {
    margin: 0 0 10px;
    color: var(--navy-950);
    font-size: clamp(19px, 2vw, 23px);
    line-height: 1.22;
    letter-spacing: 0;
}

.home-info-content p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.72;
}

.home-info-content a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    color: var(--brand-700);
    font-size: 14px;
    font-weight: 720;
}

@media (max-width: 900px) {
    .home-info-layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

@media (max-width: 680px) {
    .home-info {
        padding: 42px 0;
    }

    .home-info-content {
        gap: 22px;
    }

    .home-info-content p {
        font-size: 14.5px;
    }
}

.guide-index-page,
.guide-detail-page {
    color: var(--navy-900);
    background: #ffffff;
}

.guide-hero,
.guide-article-hero {
    padding: 58px 0 50px;
    border-bottom: 1px solid #e3ebf5;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.98)),
        radial-gradient(circle at 88% 12%, rgba(37, 99, 235, 0.10), transparent 30%);
}

.guide-hero-inner,
.guide-article-shell {
    max-width: 860px;
}

.guide-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #667085;
    font-size: 13px;
    font-weight: 680;
}

.guide-breadcrumb a {
    color: var(--brand-700);
}

.guide-kicker,
.guide-section-label {
    margin: 0 0 10px;
    color: var(--brand-700);
    font-size: 12px;
    font-weight: 780;
    letter-spacing: 0;
}

.guide-hero h1,
.guide-article-hero h1 {
    max-width: 820px;
    margin: 0;
    color: var(--navy-950);
    font-size: clamp(36px, 6vw, 58px);
    line-height: 1.04;
    letter-spacing: 0;
}

.guide-hero p:last-child,
.guide-article-hero p:last-of-type {
    max-width: 760px;
    margin: 18px 0 0;
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.7;
}

.guide-author {
    margin-top: 16px;
    color: #667085;
    font-size: 13px;
    font-weight: 720;
}

.guide-index-layout,
.guide-directory,
.guide-article-layout {
    padding-top: 58px;
    padding-bottom: 58px;
}

.guide-index-heading {
    max-width: 700px;
    margin-bottom: 24px;
}

.guide-index-heading h2,
.guide-index-note h2,
.guide-related h2,
.guide-sources h2 {
    margin: 0;
    color: var(--navy-950);
    font-size: clamp(24px, 4vw, 36px);
    line-height: 1.12;
    letter-spacing: 0;
}

.guide-process-list {
    display: grid;
    gap: 0;
    border-top: 1px solid #dce7f4;
}

.guide-process-item {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 18px;
    padding: 22px 0;
    border-bottom: 1px solid #dce7f4;
}

.guide-process-number {
    color: #9aa9bd;
    font-size: 20px;
    font-weight: 760;
    line-height: 1;
}

.guide-process-item h3 {
    margin: 0 0 8px;
    color: var(--navy-950);
    font-size: 20px;
    line-height: 1.25;
}

.guide-process-item p {
    max-width: 860px;
    margin: 0;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.65;
}

.guide-process-item a {
    display: inline-flex;
    gap: 8px;
    margin-top: 10px;
    color: var(--brand-700);
    font-size: 14px;
    font-weight: 720;
}

.guide-directory {
    background: #f8fbff;
    border-top: 1px solid #e3ebf5;
    border-bottom: 1px solid #e3ebf5;
}

.guide-directory-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.guide-directory-card {
    min-height: 190px;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 12px;
    padding: 17px;
    border: 1px solid #dce7f4;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.guide-directory-card:hover {
    transform: translateY(-2px);
    border-color: #bfd7ff;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.07);
}

.guide-directory-card span {
    color: var(--navy-950);
    font-size: 17px;
    font-weight: 760;
    line-height: 1.25;
}

.guide-directory-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13.5px;
    line-height: 1.5;
}

.guide-directory-card em {
    color: var(--brand-700);
    font-size: 13px;
    font-style: normal;
    font-weight: 720;
}

.guide-index-note {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    margin-top: 52px;
    margin-bottom: 58px;
    padding: 24px;
    border: 1px solid #cfe0ff;
    border-radius: 8px;
    background: linear-gradient(135deg, #ffffff, #eff6ff);
}

.guide-index-note p:last-child {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--text-secondary);
    line-height: 1.62;
}

.guide-article-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 760px);
    gap: clamp(28px, 5vw, 64px);
    align-items: start;
}

.guide-article-sidebar {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 14px;
}

.guide-facts,
.guide-koni-box,
.guide-warning {
    border: 1px solid #dce7f4;
    border-radius: 8px;
    background: #fff;
}

.guide-facts {
    padding: 17px;
}

.guide-facts strong,
.guide-koni-box strong,
.guide-warning strong {
    display: block;
    color: var(--navy-950);
    font-size: 14px;
    font-weight: 780;
}

.guide-facts ul {
    display: grid;
    gap: 10px;
    margin: 13px 0 0;
    padding-left: 18px;
    color: var(--text-secondary);
    font-size: 13.5px;
    line-height: 1.5;
}

.guide-koni-box {
    padding: 17px;
    background: linear-gradient(180deg, #f8fbff, #ffffff);
}

.guide-koni-box p {
    margin: 9px 0 12px;
    color: var(--text-secondary);
    font-size: 13.5px;
    line-height: 1.55;
}

.guide-koni-box a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand-700);
    font-size: 13.5px;
    font-weight: 740;
}

.guide-article {
    min-width: 0;
}

.guide-article section + section {
    margin-top: 34px;
}

.guide-article h2 {
    margin: 0 0 14px;
    color: var(--navy-950);
    font-size: clamp(23px, 3vw, 31px);
    line-height: 1.16;
    letter-spacing: 0;
}

.guide-article p,
.guide-article li {
    color: #44566c;
    font-size: 16px;
    line-height: 1.78;
}

.guide-article p {
    margin: 0 0 15px;
}

.guide-article ul {
    display: grid;
    gap: 9px;
    margin: 0 0 18px;
    padding-left: 22px;
}

.guide-warning {
    margin-top: 38px;
    padding: 18px;
    border-color: #f0d79e;
    background: #fff9ec;
}

.guide-warning p {
    margin: 8px 0 0;
    color: #6f5519;
    font-size: 14.5px;
    line-height: 1.62;
}

.guide-related,
.guide-sources {
    padding-top: 32px;
    border-top: 1px solid #dce7f4;
}

.guide-related-grid {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.guide-related-grid a {
    display: grid;
    gap: 5px;
    padding: 14px;
    border: 1px solid #dce7f4;
    border-radius: 8px;
    background: #f8fbff;
}

.guide-related-grid strong {
    color: var(--navy-950);
    font-size: 15px;
}

.guide-related-grid span {
    color: var(--text-secondary);
    font-size: 13.5px;
    line-height: 1.48;
}

.guide-sources ul {
    display: grid;
    gap: 9px;
    margin: 16px 0 0;
    padding-left: 20px;
}

.guide-sources a {
    color: var(--brand-700);
    font-weight: 700;
}

@media (max-width: 1040px) {
    .guide-directory-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .guide-article-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .guide-article-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .guide-hero,
    .guide-article-hero {
        padding: 38px 0 34px;
    }

    .guide-hero h1,
    .guide-article-hero h1 {
        font-size: clamp(34px, 9vw, 44px);
    }

    .guide-hero p:last-child,
    .guide-article-hero p:last-of-type {
        font-size: 15.5px;
    }

    .guide-index-layout,
    .guide-directory,
    .guide-article-layout {
        padding-top: 42px;
        padding-bottom: 42px;
    }

    .guide-process-item {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 12px;
        padding: 18px 0;
    }

    .guide-directory-grid,
    .guide-article-sidebar,
    .guide-index-note {
        grid-template-columns: 1fr;
    }

    .guide-index-note {
        margin-top: 38px;
        margin-bottom: 42px;
        padding: 20px;
    }

    .guide-article p,
    .guide-article li {
        font-size: 15px;
        line-height: 1.72;
    }
}

/* --- Konu anlatımları: editorial library layout --- */
.lesson-library {
    color: var(--navy-900);
    background: #fff;
}

.lesson-library h1,
.lesson-library h2,
.lesson-library h3,
.lesson-library p,
.lesson-library dl,
.lesson-library dd,
.lesson-library ol {
    margin: 0;
}

.lesson-library-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.lesson-library-masthead {
    position: relative;
    overflow: hidden;
    padding: 54px 0 58px;
    color: #fff;
    background:
        radial-gradient(circle at 88% 18%, rgba(76, 139, 255, .42), transparent 28%),
        linear-gradient(118deg, #081b43 0%, #0d347e 52%, #1557e8 100%);
}

.lesson-library-masthead::before,
.lesson-library-masthead::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 50%;
    pointer-events: none;
}

.lesson-library-masthead::before {
    width: 420px;
    height: 420px;
    right: -180px;
    top: -220px;
    box-shadow: 0 0 0 58px rgba(255,255,255,.035);
}

.lesson-library-masthead::after {
    width: 260px;
    height: 260px;
    left: 42%;
    bottom: -210px;
    box-shadow: 0 0 0 42px rgba(255,255,255,.025);
}

.lesson-library-masthead-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: clamp(48px, 7vw, 92px);
    align-items: end;
}

.lesson-library-breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    color: rgba(255,255,255,.62);
    font-size: 12px;
    font-weight: 700;
}

.lesson-library-breadcrumb a {
    color: rgba(255,255,255,.82);
}

.lesson-library-kicker {
    display: block;
    margin-top: 42px;
    color: #93b9ff;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .12em;
}

.lesson-library-intro h1 {
    max-width: 690px;
    margin-top: 13px;
    font-size: clamp(48px, 6vw, 76px);
    line-height: .98;
    letter-spacing: -.065em;
}

.lesson-library-intro h1 span {
    color: #9fc2ff;
}

.lesson-library-intro > p {
    max-width: 650px;
    margin-top: 22px;
    color: rgba(255,255,255,.72);
    font-size: 17px;
    line-height: 1.7;
}

.lesson-library-overview {
    padding: 25px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 20px;
    background: rgba(255,255,255,.09);
    box-shadow: 0 24px 60px rgba(0,0,0,.16);
    backdrop-filter: blur(14px);
}

.lesson-library-overview-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.lesson-library-overview-head span {
    color: rgba(255,255,255,.62);
    font-size: 12px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.lesson-library-overview-head strong {
    font-size: 18px;
}

.lesson-library-overview dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 18px;
}

.lesson-library-overview dl div {
    padding: 13px 10px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    background: rgba(255,255,255,.06);
}

.lesson-library-overview dt {
    font-size: 20px;
    font-weight: 850;
}

.lesson-library-overview dd {
    margin-top: 2px;
    color: rgba(255,255,255,.58);
    font-size: 10px;
    line-height: 1.35;
}

.lesson-library-overview ol {
    display: grid;
    gap: 9px;
    margin-top: 18px;
    padding: 0;
    list-style: none;
}

.lesson-library-overview li {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 38px;
    color: rgba(255,255,255,.82);
    font-size: 13px;
}

.lesson-library-overview li span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    border-radius: 9px;
    color: #0d347e;
    background: #fff;
    font-size: 11px;
    font-weight: 850;
}

.lesson-library-overview > a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 18px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.lesson-library-notice {
    margin-top: 22px;
}

.lesson-library-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: clamp(40px, 5vw, 72px);
    align-items: start;
    padding-top: 48px;
    padding-bottom: 76px;
}

.lesson-library-rail {
    position: sticky;
    top: 104px;
    padding: 26px 0;
    border-top: 3px solid var(--brand-600);
    border-bottom: 1px solid var(--border);
}

.lesson-library-rail-label {
    color: var(--brand-600);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.lesson-library-rail h1 {
    margin-top: 13px;
    font-size: 29px;
    line-height: 1.08;
    letter-spacing: -.04em;
}

.lesson-library-rail p {
    margin-top: 15px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.65;
}

.lesson-library-rail-metrics {
    display: grid;
    gap: 8px;
    margin-top: 22px;
    padding: 16px 0;
    border-block: 1px solid var(--border);
}

.lesson-library-rail-metrics span {
    display: flex;
    justify-content: space-between;
    color: var(--ink-500);
    font-size: 12px;
}

.lesson-library-rail-metrics b {
    color: var(--navy-900);
}

.lesson-library-rail .button {
    width: 100%;
    min-height: 46px;
    margin-top: 20px;
    justify-content: center;
    border-radius: 12px;
}

.lesson-library-content {
    min-width: 0;
}

.lesson-library-section + .lesson-library-section {
    margin-top: 74px;
    padding-top: 66px;
    border-top: 1px solid var(--border);
}

.lesson-library-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.lesson-library-section-head > div > span {
    color: var(--brand-600);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.lesson-library-section-head h2 {
    margin-top: 8px;
    font-size: clamp(30px, 3.4vw, 42px);
    line-height: 1.08;
    letter-spacing: -.048em;
}

.lesson-library-section-head small {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 999px;
    color: var(--brand-700);
    background: var(--brand-50);
    font-size: 11px;
    font-weight: 800;
}

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

.lesson-module {
    --module-accent: #2d7fd3;
    --module-soft: #f5f9ff;
    position: relative;
    display: grid;
    align-content: start;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
    min-height: 164px;
    padding: 15px 16px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--module-accent) 22%, white);
    border-radius: 15px;
    background: linear-gradient(145deg, var(--module-soft), #fff 72%);
    box-shadow: 0 9px 24px rgba(16,24,40,.042);
    transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}

.lesson-module::after {
    content: "";
    position: absolute;
    width: 86px;
    height: 86px;
    right: -53px;
    bottom: -58px;
    border: 1px solid color-mix(in srgb, var(--module-accent) 20%, white);
    border-radius: 50%;
    box-shadow: 0 0 0 16px color-mix(in srgb, var(--module-accent) 4%, transparent);
}

.lesson-module:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--module-accent) 38%, white);
    box-shadow: 0 22px 44px color-mix(in srgb, var(--module-accent) 10%, transparent);
}

.lesson-module--first-aid { --module-accent: #e44d73; --module-soft: #fff7fa; }
.lesson-module--engine { --module-accent: #d9801f; --module-soft: #fffaf3; }
.lesson-module--manners { --module-accent: #199b67; --module-soft: #f4fbf8; }

.lesson-module-index {
    color: color-mix(in srgb, var(--module-accent) 48%, white);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
}

.lesson-module-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid color-mix(in srgb, var(--module-accent) 20%, white);
    border-radius: 10px;
    color: var(--module-accent);
    background: rgba(255,255,255,.76);
}

.lesson-module-icon svg,
.lesson-guide-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lesson-module-copy {
    grid-column: 1 / -1;
    align-self: start;
    max-width: 92%;
    margin-top: 7px;
}

.lesson-module-copy > span {
    color: var(--module-accent);
    font-size: 9.5px;
    font-weight: 850;
}

.lesson-module-copy h3 {
    margin-top: 4px;
    font-size: 18px;
    line-height: 1.08;
    letter-spacing: -.035em;
}

.lesson-module-copy p {
    margin-top: 5px;
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.28;
}

.lesson-module-action {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 7px;
    color: var(--module-accent);
    font-size: 10.5px;
    font-weight: 850;
}

.lesson-module-action i {
    font-style: normal;
}

.lesson-guide-list {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(16,24,40,.045);
}

.lesson-guide-row {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto 34px;
    gap: 15px;
    align-items: center;
    min-height: 94px;
    padding: 15px 18px;
    transition: background 150ms ease;
}

.lesson-guide-row + .lesson-guide-row {
    border-top: 1px solid var(--border);
}

.lesson-guide-row:hover {
    background: #f8fbff;
}

.lesson-guide-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    color: var(--brand-600);
    background: var(--brand-50);
}

.lesson-guide-copy {
    min-width: 0;
}

.lesson-guide-copy strong,
.lesson-guide-copy small {
    display: block;
}

.lesson-guide-copy strong {
    color: var(--navy-900);
    font-size: 15px;
}

.lesson-guide-copy small {
    margin-top: 4px;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.45;
}

.lesson-guide-count {
    white-space: nowrap;
    color: var(--ink-500);
    font-size: 11px;
    font-weight: 750;
}

.lesson-guide-arrow {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--brand-600);
    background: var(--brand-50);
    font-size: 13px;
    font-weight: 850;
}

.lesson-library-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 78px;
    padding: 32px 36px;
    border: 1px solid #cfe0ff;
    border-radius: 20px;
    background: linear-gradient(105deg, #eff6ff, #f8fbff 68%, #e7f0ff);
}

.lesson-library-cta > div {
    max-width: 740px;
}

.lesson-library-cta > div > span {
    color: var(--brand-600);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.lesson-library-cta h2 {
    margin-top: 7px;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.1;
    letter-spacing: -.04em;
}

.lesson-library-cta .button {
    flex: 0 0 auto;
    min-height: 50px;
    border-radius: 12px;
}

@media (max-width: 980px) {
    .lesson-library-masthead-inner {
        grid-template-columns: minmax(0, 1fr) 330px;
        gap: 36px;
    }

    .lesson-library-layout {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 34px;
    }

    .lesson-module-grid {
        grid-template-columns: 1fr;
    }

    .lesson-module {
        min-height: 158px;
    }
}

@media (max-width: 780px) {
    .lesson-library-masthead {
        padding: 42px 0 46px;
    }

    .lesson-library-masthead-inner {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .lesson-library-kicker {
        margin-top: 28px;
    }

    .lesson-library-overview {
        max-width: 620px;
    }

    .lesson-library-layout {
        grid-template-columns: 1fr;
        padding-top: 36px;
        padding-bottom: 62px;
    }

    .lesson-library-rail {
        position: static;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 18px 28px;
        align-items: end;
        padding: 22px 0;
    }

    .lesson-library-rail-label,
    .lesson-library-rail h1,
    .lesson-library-rail p {
        grid-column: 1;
    }

    .lesson-library-rail-metrics,
    .lesson-library-rail .button {
        grid-column: 2;
        grid-row: 1 / span 3;
    }

    .lesson-library-rail-metrics {
        min-width: 170px;
        margin-top: 0;
    }

    .lesson-library-rail .button {
        align-self: end;
        grid-row: 4;
    }

    .lesson-library-cta {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 580px) {
    .lesson-library-masthead {
        padding: 34px 0 38px;
    }

    .lesson-library-intro h1 {
        margin-top: 11px;
        font-size: clamp(39px, 12vw, 51px);
        line-height: 1;
    }

    .lesson-library-intro > p {
        margin-top: 17px;
        font-size: 15px;
        line-height: 1.62;
    }

    .lesson-library-overview {
        padding: 19px;
        border-radius: 17px;
    }

    .lesson-library-overview dl {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .lesson-library-overview dl div {
        padding: 11px 8px;
    }

    .lesson-library-overview dt {
        font-size: 18px;
    }

    .lesson-library-layout {
        padding-top: 28px;
        padding-bottom: 52px;
    }

    .lesson-library-rail {
        display: block;
    }

    .lesson-library-rail h1 {
        font-size: 27px;
    }

    .lesson-library-rail-metrics {
        margin-top: 18px;
    }

    .lesson-library-section + .lesson-library-section {
        margin-top: 52px;
        padding-top: 48px;
    }

    .lesson-library-section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 20px;
    }

    .lesson-library-section-head h2 {
        font-size: 30px;
    }

    .lesson-module-grid {
        gap: 11px;
    }

    .lesson-module {
        min-height: 158px;
        padding: 14px;
        border-radius: 14px;
    }

    .lesson-module-copy {
        max-width: 100%;
        margin-top: 6px;
    }

    .lesson-module-copy h3 {
        font-size: 18px;
    }

    .lesson-guide-row {
        grid-template-columns: 42px minmax(0, 1fr) 30px;
        gap: 12px;
        min-height: 88px;
        padding: 14px;
    }

    .lesson-guide-count {
        display: none;
    }

    .lesson-guide-arrow {
        width: 30px;
        height: 30px;
    }

    .lesson-library-cta {
        margin-bottom: 54px;
        padding: 25px 22px;
        border-radius: 17px;
    }

    .lesson-library-cta .button {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lesson-module,
    .lesson-guide-row {
        transition: none;
    }
}

/* Lesson category and article reader — isolated from the lesson library landing page. */
.lesson-category-page,
.lesson-reader-page {
    --lesson-accent: #2563eb;
    --lesson-accent-soft: #eff6ff;
    --lesson-border: #dce6f2;
    --lesson-ink: #101828;
    --lesson-copy: #52657a;
    background: #fff;
}

.lesson-category-page--traffic,
.lesson-reader-page--traffic {
    --lesson-accent: #2d7fd3;
    --lesson-accent-soft: #edf7ff;
    --lesson-border: #cfe6f8;
}

.lesson-category-page--first-aid,
.lesson-reader-page--first-aid {
    --lesson-accent: #e44d73;
    --lesson-accent-soft: #fff1f5;
    --lesson-border: #f5d8de;
}

.lesson-category-page--engine,
.lesson-reader-page--engine {
    --lesson-accent: #d9801f;
    --lesson-accent-soft: #fff7eb;
    --lesson-border: #f1dfc8;
}

.lesson-category-page--manners,
.lesson-reader-page--manners {
    --lesson-accent: #199b67;
    --lesson-accent-soft: #ecfbf5;
    --lesson-border: #d1eadc;
}

.lesson-reader-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    color: #7a8da3;
    font-size: 12px;
    font-weight: 720;
}

.lesson-reader-breadcrumb a {
    color: #52657a;
    text-decoration: none;
}

.lesson-reader-breadcrumb a:hover {
    color: var(--lesson-accent);
}

.lesson-category-header,
.lesson-reader-header {
    margin-top: clamp(18px, 2.4vw, 30px);
    border: 1px solid var(--lesson-border);
    border-radius: 24px;
    background:
        radial-gradient(circle at 92% 0%, color-mix(in srgb, var(--lesson-accent) 10%, transparent), transparent 34%),
        linear-gradient(135deg, color-mix(in srgb, var(--lesson-accent-soft) 78%, white), #fff 72%);
}

.lesson-category-header {
    padding-top: clamp(22px, 2.7vw, 30px);
    padding-bottom: clamp(22px, 2.7vw, 30px);
}

.lesson-reader-header {
    padding-top: clamp(22px, 3vw, 34px);
    padding-bottom: clamp(22px, 3vw, 34px);
}

.lesson-category-heading,
.lesson-reader-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    margin-top: 12px;
}

.lesson-category-heading-copy {
    min-width: 0;
}

.lesson-category-kicker,
.lesson-reader-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 29px;
    padding: 5px 10px;
    border: 1px solid color-mix(in srgb, var(--lesson-accent) 22%, white);
    border-radius: 999px;
    color: var(--lesson-accent);
    background: color-mix(in srgb, var(--lesson-accent-soft) 86%, white);
    font-size: 11px;
    font-weight: 820;
    letter-spacing: .02em;
}

.lesson-category-heading h1,
.lesson-reader-heading h1 {
    max-width: 980px;
    margin: 0;
    color: var(--lesson-ink);
    font-size: clamp(34px, 4.2vw, 52px);
    line-height: 1.04;
    letter-spacing: -.048em;
}

.lesson-reader-heading h1 {
    margin-top: 11px;
}

.lesson-category-heading p {
    max-width: 680px;
    margin: 10px 0 0;
    color: var(--lesson-copy);
    font-size: 15.5px;
    line-height: 1.62;
}

.lesson-category-count {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    min-width: 0;
    padding: 10px 14px;
    border: 1px solid var(--lesson-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 8px 20px rgba(19, 52, 91, .055);
    white-space: nowrap;
}

.lesson-category-count strong {
    color: var(--lesson-accent);
    font-size: 25px;
    line-height: 1;
    letter-spacing: -.035em;
}

.lesson-category-count span {
    color: #718399;
    font-size: 12px;
    font-weight: 760;
}

.lesson-category-content {
    padding-top: 22px;
    padding-bottom: clamp(58px, 7vw, 92px);
}

.lesson-category-list {
    overflow: hidden;
    border: 1px solid var(--lesson-border);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(22, 52, 92, .075);
}

.lesson-category-row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 38px;
    gap: 16px;
    align-items: center;
    min-height: 86px;
    padding: 16px 20px;
    color: inherit;
    text-decoration: none;
    transition: background-color 160ms ease, transform 160ms ease;
}

.lesson-category-row + .lesson-category-row {
    border-top: 1px solid #e7edf4;
}

.lesson-category-row:hover {
    background: color-mix(in srgb, var(--lesson-accent-soft) 68%, white);
}

.lesson-category-index {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    color: var(--lesson-accent);
    background: var(--lesson-accent-soft);
    font-size: 13px;
    font-weight: 900;
}

.lesson-category-copy {
    min-width: 0;
}

.lesson-category-copy strong,
.lesson-category-copy small {
    display: block;
}

.lesson-category-copy strong {
    color: var(--lesson-ink);
    font-size: clamp(17px, 1.7vw, 20px);
    line-height: 1.32;
}

.lesson-category-copy small {
    margin-top: 5px;
    color: #7b8da1;
    font-size: 12px;
    font-weight: 650;
}

.lesson-category-arrow {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    color: var(--lesson-accent);
    background: var(--lesson-accent-soft);
    font-size: 18px;
    transition: transform 160ms ease;
}

.lesson-category-row:hover .lesson-category-arrow {
    transform: translateX(3px);
}

.lesson-reader-summary {
    display: flex;
    gap: 9px;
    margin: 0;
}

.lesson-reader-summary div {
    min-width: 88px;
    padding: 11px 14px;
    border: 1px solid var(--lesson-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, .9);
}

.lesson-reader-summary dt,
.lesson-reader-summary dd {
    margin: 0;
}

.lesson-reader-summary dt {
    color: #8494a7;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.lesson-reader-summary dd {
    margin-top: 4px;
    color: var(--lesson-accent);
    font-size: 17px;
    font-weight: 850;
}

.lesson-reader-layout {
    display: grid;
    grid-template-columns: 210px minmax(0, 860px);
    justify-content: center;
    gap: clamp(24px, 3.5vw, 46px);
    align-items: start;
    padding-top: 22px;
    padding-bottom: clamp(68px, 8vw, 110px);
}

.lesson-reader-rail {
    position: sticky;
    top: 104px;
    display: grid;
    gap: 10px;
    padding: 18px;
    border: 1px solid var(--lesson-border);
    border-radius: 18px;
    background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--lesson-accent-soft) 45%, white));
}

.lesson-reader-rail > span,
.lesson-reader-rail small {
    color: #7b8da1;
    font-size: 12px;
    font-weight: 750;
}

.lesson-reader-rail strong {
    color: var(--lesson-ink);
    font-size: 16px;
    line-height: 1.35;
}

.lesson-reader-progress {
    overflow: hidden;
    height: 7px;
    margin-top: 5px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--lesson-accent-soft) 82%, #e8eef6);
}

.lesson-reader-progress i {
    display: block;
    width: var(--lesson-progress, 0%);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, color-mix(in srgb, var(--lesson-accent) 82%, #0b1220), var(--lesson-accent));
}

.lesson-reader-rail a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 8px;
    color: var(--lesson-accent);
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
}

.lesson-reader-article {
    min-width: 0;
    padding: clamp(26px, 4vw, 48px);
    border: 1px solid var(--lesson-border);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 22px 58px rgba(18, 48, 87, .075);
}

.lesson-reader-article > :first-child {
    margin-top: 0;
}

.lesson-reader-article h2 {
    margin: 42px 0 14px;
    color: var(--lesson-ink);
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.2;
    letter-spacing: -.035em;
}

.lesson-reader-article p,
.lesson-reader-article li {
    color: #465c73;
    font-size: 17px;
    line-height: 1.82;
}

.lesson-reader-article p {
    margin: 0 0 18px;
}

.lesson-reader-article ul {
    display: grid;
    gap: 10px;
    margin: 18px 0 24px;
    padding: 0;
    list-style: none;
}

.lesson-reader-article li {
    position: relative;
    padding-left: 26px;
}

.lesson-reader-article li::before {
    content: "";
    position: absolute;
    top: .72em;
    left: 2px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--lesson-accent);
    box-shadow: 0 0 0 5px var(--lesson-accent-soft);
}

.lesson-reader-note {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    margin: 24px 0;
    padding: 18px;
    border: 1px solid var(--lesson-border);
    border-radius: 18px;
    background: color-mix(in srgb, var(--lesson-accent-soft) 78%, white);
}

.lesson-reader-note > span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: #fff;
    background: var(--lesson-accent);
    font-weight: 900;
}

.lesson-reader-note p {
    margin: 2px 0 0;
}

.lesson-reader-figure {
    margin: 28px 0;
    padding: 14px;
    border: 1px solid var(--lesson-border);
    border-radius: 20px;
    background: #f8fafc;
}

.lesson-reader-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
}

.lesson-reader-figure figcaption {
    padding: 11px 4px 2px;
    color: #73869b;
    font-size: 13px;
    line-height: 1.5;
}

.lesson-reader-footer {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(280px, 1.15fr);
    gap: 14px;
    margin-top: 48px;
    padding-top: 26px;
    border-top: 1px solid #e2e9f1;
}

.lesson-reader-back,
.lesson-reader-next {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 88px;
    padding: 16px 18px;
    border-radius: 18px;
    text-decoration: none;
}

.lesson-reader-back {
    border: 1px solid var(--lesson-border);
    color: #52657a;
    background: #fff;
}

.lesson-reader-next {
    justify-content: space-between;
    color: #fff;
    background: linear-gradient(135deg, color-mix(in srgb, var(--lesson-accent) 80%, #0b1220), var(--lesson-accent) 72%, color-mix(in srgb, var(--lesson-accent) 76%, white));
    box-shadow: 0 14px 30px color-mix(in srgb, var(--lesson-accent) 22%, transparent);
}

.lesson-reader-back small,
.lesson-reader-back strong,
.lesson-reader-next small,
.lesson-reader-next strong {
    display: block;
}

.lesson-reader-back small,
.lesson-reader-next small {
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.lesson-reader-back strong,
.lesson-reader-next strong {
    font-size: 15px;
    line-height: 1.35;
}

.lesson-reader-next i {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    font-size: 20px;
    font-style: normal;
    transition: transform 160ms ease;
}

.lesson-reader-next:hover i {
    transform: translateX(3px);
}

.lesson-reader-back:focus-visible,
.lesson-reader-next:focus-visible,
.lesson-category-row:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--lesson-accent) 28%, transparent);
    outline-offset: 3px;
}

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

    .lesson-reader-rail {
        position: static;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .lesson-reader-rail .lesson-reader-progress,
    .lesson-reader-rail small {
        grid-column: 1 / -1;
    }

    .lesson-reader-rail a {
        grid-column: 2;
        grid-row: 1 / span 2;
        margin: 0;
    }
}

@media (max-width: 680px) {
    .lesson-category-header,
    .lesson-reader-header {
        margin-top: 12px;
        padding: 17px;
        border-radius: 18px;
    }

    .lesson-category-heading,
    .lesson-reader-heading {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 10px;
    }

    .lesson-category-heading h1,
    .lesson-reader-heading h1 {
        font-size: clamp(31px, 10vw, 40px);
    }

    .lesson-category-heading p {
        margin-top: 8px;
        font-size: 14.5px;
        line-height: 1.55;
    }

    .lesson-category-count {
        width: max-content;
        padding: 8px 12px;
    }

    .lesson-category-count strong {
        font-size: 22px;
    }

    .lesson-reader-summary {
        width: 100%;
    }

    .lesson-reader-summary div {
        flex: 1;
    }

    .lesson-category-content {
        padding-top: 16px;
    }

    .lesson-category-row {
        grid-template-columns: 44px minmax(0, 1fr) 34px;
        gap: 11px;
        min-height: 78px;
        padding: 13px;
    }

    .lesson-category-index {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .lesson-category-copy small {
        display: none;
    }

    .lesson-category-arrow {
        width: 32px;
        height: 32px;
    }

    .lesson-reader-layout {
        gap: 16px;
        padding-top: 16px;
    }

    .lesson-reader-rail {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .lesson-reader-rail a {
        grid-column: auto;
        grid-row: auto;
        margin-top: 5px;
    }

    .lesson-reader-article {
        padding: 22px 18px;
        border-radius: 20px;
    }

    .lesson-reader-article p,
    .lesson-reader-article li {
        font-size: 16px;
        line-height: 1.75;
    }

    .lesson-reader-footer {
        grid-template-columns: 1fr;
        margin-top: 38px;
    }

    .lesson-reader-back,
    .lesson-reader-next {
        min-height: 78px;
    }

    .lesson-reader-next {
        order: -1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lesson-category-row,
    .lesson-category-arrow,
    .lesson-reader-next i {
        transition: none;
    }
}

/* Lesson header refinement v3 — compact editorial mastheads. */
.lesson-category-header,
.lesson-reader-header {
    position: relative;
    margin-top: clamp(18px, 2vw, 26px);
    padding-top: 0;
    padding-bottom: clamp(18px, 2.2vw, 24px);
    border: 0;
    border-bottom: 1px solid var(--lesson-border);
    border-radius: 0;
    background: transparent;
}

.lesson-category-header::before,
.lesson-reader-header::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: clamp(72px, 8vw, 112px);
    height: 2px;
    border-radius: 999px;
    background: var(--lesson-accent);
}

.lesson-reader-breadcrumb {
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
}

.lesson-category-heading,
.lesson-reader-heading {
    margin-top: 10px;
    gap: 20px;
    align-items: end;
}

.lesson-category-heading h1,
.lesson-reader-heading h1 {
    max-width: 960px;
    font-size: clamp(34px, 3.6vw, 46px);
    line-height: 1.06;
    letter-spacing: -.043em;
}

.lesson-reader-heading h1 {
    margin-top: 9px;
}

.lesson-category-heading p {
    max-width: 700px;
    margin-top: 8px;
    font-size: 15px;
    line-height: 1.55;
}

.lesson-category-count {
    padding: 8px 12px;
    border-color: color-mix(in srgb, var(--lesson-accent) 20%, var(--lesson-border));
    background: color-mix(in srgb, var(--lesson-accent-soft) 58%, white);
    box-shadow: none;
}

.lesson-category-count strong {
    font-size: 21px;
}

.lesson-reader-heading-copy {
    min-width: 0;
}

.lesson-reader-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.lesson-reader-meta > span:not(.lesson-reader-kicker) {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 4px 9px;
    border: 1px solid var(--lesson-border);
    border-radius: 999px;
    color: #6f8196;
    background: #fff;
    font-size: 11px;
    font-weight: 760;
    white-space: nowrap;
}

.lesson-reader-kicker {
    min-height: 27px;
    padding: 4px 9px;
}

.lesson-reader-header-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 8px 13px;
    border: 1px solid var(--lesson-border);
    border-radius: 12px;
    color: var(--lesson-accent);
    background: #fff;
    font-size: 12px;
    font-weight: 820;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.lesson-reader-header-link:hover {
    border-color: color-mix(in srgb, var(--lesson-accent) 34%, var(--lesson-border));
    background: var(--lesson-accent-soft);
    transform: translateY(-1px);
}

.lesson-category-content,
.lesson-reader-layout {
    padding-top: clamp(16px, 2vw, 22px);
}

@media (max-width: 680px) {
    .lesson-category-header,
    .lesson-reader-header {
        margin-top: 12px;
        padding: 0 0 16px;
        border-radius: 0;
    }

    .lesson-category-heading,
    .lesson-reader-heading {
        grid-template-columns: 1fr;
        gap: 11px;
        margin-top: 8px;
        align-items: start;
    }

    .lesson-category-heading h1,
    .lesson-reader-heading h1 {
        font-size: clamp(30px, 9.2vw, 38px);
    }

    .lesson-category-heading p {
        font-size: 14px;
        line-height: 1.5;
    }

    .lesson-category-count {
        padding: 7px 10px;
    }

    .lesson-reader-header-link {
        width: max-content;
        min-height: 38px;
    }

    .lesson-reader-meta {
        gap: 6px;
    }

    .lesson-reader-meta > span:not(.lesson-reader-kicker),
    .lesson-reader-kicker {
        min-height: 25px;
        padding: 3px 8px;
        font-size: 10.5px;
    }
}


/* Lesson detail top refinement v7 — only the article masthead. */
.lesson-reader-page {
    padding-top: 1px;
    background: #fff;
}

.lesson-reader-page .lesson-reader-header {
    position: relative;
    margin-top: 0;
    padding-top: clamp(16px, 1.8vw, 24px);
    padding-bottom: clamp(16px, 1.8vw, 22px);
    border: 0;
    border-bottom: 1px solid #e7edf4;
    border-radius: 0;
    background: #fff;
}

.lesson-reader-page .lesson-reader-header::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 52px;
    height: 3px;
    border-radius: 999px;
    background: var(--lesson-accent);
}

.lesson-reader-page .lesson-reader-breadcrumb {
    gap: 6px;
    margin: 0;
    color: #8a99aa;
    font-size: 11.5px;
    font-weight: 680;
}

.lesson-reader-page .lesson-reader-breadcrumb a {
    color: #64758a;
}

.lesson-reader-page .lesson-reader-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    margin-top: 9px;
}

.lesson-reader-page .lesson-reader-heading-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.lesson-reader-page .lesson-reader-heading h1 {
    order: 1;
    max-width: 980px;
    margin: 0;
    color: var(--lesson-ink);
    font-size: clamp(32px, 3.25vw, 46px);
    line-height: 1.06;
    letter-spacing: -.043em;
}

.lesson-reader-page .lesson-reader-meta {
    order: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-top: 11px;
}

.lesson-reader-page .lesson-reader-meta > span {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 4px 9px;
    border: 1px solid color-mix(in srgb, var(--lesson-accent) 18%, #e5ebf2);
    border-radius: 999px;
    color: #687a8f;
    background: #fff;
    font-size: 11px;
    font-weight: 760;
    line-height: 1;
    white-space: nowrap;
}

.lesson-reader-page .lesson-reader-meta .lesson-reader-kicker {
    color: var(--lesson-accent);
    border-color: color-mix(in srgb, var(--lesson-accent) 26%, white);
    background: color-mix(in srgb, var(--lesson-accent-soft) 72%, white);
    font-weight: 840;
}

.lesson-reader-page .lesson-reader-header-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 8px 13px;
    border: 1px solid #dfe7f0;
    border-radius: 12px;
    color: #44566c;
    background: #fff;
    box-shadow: 0 5px 14px rgba(16, 24, 40, .035);
    font-size: 12px;
    font-weight: 780;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.lesson-reader-page .lesson-reader-header-link:hover {
    color: var(--lesson-accent);
    border-color: color-mix(in srgb, var(--lesson-accent) 30%, #dfe7f0);
    background: color-mix(in srgb, var(--lesson-accent-soft) 55%, white);
    transform: translateY(-1px);
}

.lesson-reader-page .lesson-reader-layout {
    padding-top: clamp(16px, 2vw, 22px);
}

@media (max-width: 680px) {
    .lesson-reader-page .lesson-reader-header {
        padding-top: 13px;
        padding-bottom: 15px;
    }

    .lesson-reader-page .lesson-reader-heading {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 7px;
        align-items: start;
    }

    .lesson-reader-page .lesson-reader-heading h1 {
        font-size: clamp(29px, 8.8vw, 37px);
    }

    .lesson-reader-page .lesson-reader-meta {
        gap: 6px;
        margin-top: 9px;
    }

    .lesson-reader-page .lesson-reader-meta > span {
        min-height: 25px;
        padding: 3px 8px;
        font-size: 10.5px;
    }

    .lesson-reader-page .lesson-reader-header-link {
        width: max-content;
        min-height: 38px;
    }
}

/* Lesson category refinement v8 — compact curriculum grid. */
.lesson-category-page {
    padding-top: 1px;
    background: #fff;
}

.lesson-category-page .lesson-category-header {
    margin-top: 0;
    padding-top: clamp(17px, 1.8vw, 23px);
    padding-bottom: clamp(17px, 1.8vw, 22px);
}

.lesson-category-page .lesson-reader-breadcrumb {
    color: #8291a4;
    font-size: 11px;
}

.lesson-category-page .lesson-category-heading {
    gap: 18px;
    margin-top: 9px;
    align-items: center;
}

.lesson-category-page .lesson-category-heading h1 {
    font-size: clamp(34px, 3.25vw, 44px);
    line-height: 1.04;
}

.lesson-category-page .lesson-category-heading p {
    max-width: 720px;
    margin-top: 7px;
    font-size: 14.5px;
    line-height: 1.52;
}

.lesson-category-page .lesson-category-count {
    min-height: 42px;
    padding: 7px 12px;
    border-radius: 13px;
    background: color-mix(in srgb, var(--lesson-accent-soft) 62%, white);
}

.lesson-category-page .lesson-category-count strong {
    font-size: 20px;
}

.lesson-category-page .lesson-category-content {
    padding-top: clamp(22px, 2.6vw, 32px);
    padding-bottom: clamp(58px, 7vw, 88px);
}

.lesson-category-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 16px;
}

.lesson-category-section-head > div {
    min-width: 0;
}

.lesson-category-section-kicker {
    display: block;
    margin-bottom: 5px;
    color: var(--lesson-accent);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.lesson-category-section-head h2 {
    margin: 0;
    color: var(--lesson-ink);
    font-size: clamp(22px, 2.25vw, 29px);
    line-height: 1.15;
    letter-spacing: -.035em;
}

.lesson-category-section-head p {
    max-width: 410px;
    margin: 0;
    color: #718297;
    font-size: 13px;
    line-height: 1.55;
    text-align: right;
}

.lesson-category-page .lesson-category-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    list-style: none;
}

.lesson-category-page .lesson-category-list > li {
    min-width: 0;
}

.lesson-category-page .lesson-category-row {
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 32px;
    gap: 13px;
    align-items: center;
    min-height: 82px;
    height: 100%;
    padding: 13px 14px;
    overflow: hidden;
    border: 1px solid #e4ebf3;
    border-radius: 16px;
    background: linear-gradient(145deg, #fff, color-mix(in srgb, var(--lesson-accent-soft) 24%, white));
    box-shadow: 0 8px 24px rgba(18, 48, 87, .045);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background-color 160ms ease;
}

.lesson-category-page .lesson-category-row::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--lesson-accent);
    opacity: .74;
}

.lesson-category-page .lesson-category-row + .lesson-category-row {
    border-top: 1px solid #e4ebf3;
}

.lesson-category-page .lesson-category-row:hover {
    border-color: color-mix(in srgb, var(--lesson-accent) 28%, #dce5ef);
    background: color-mix(in srgb, var(--lesson-accent-soft) 42%, white);
    box-shadow: 0 13px 28px color-mix(in srgb, var(--lesson-accent) 9%, transparent);
    transform: translateY(-2px);
}

.lesson-category-page .lesson-category-index {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 12px;
}

.lesson-category-page .lesson-category-copy strong {
    font-size: clamp(15px, 1.35vw, 17px);
    line-height: 1.3;
    letter-spacing: -.012em;
}

.lesson-category-page .lesson-category-copy small {
    margin-top: 4px;
    color: color-mix(in srgb, var(--lesson-accent) 70%, #73869b);
    font-size: 10.5px;
    font-weight: 760;
}

.lesson-category-page .lesson-category-arrow {
    width: 31px;
    height: 31px;
    border: 1px solid color-mix(in srgb, var(--lesson-accent) 12%, transparent);
    background: color-mix(in srgb, var(--lesson-accent-soft) 72%, white);
    font-size: 16px;
}

@media (max-width: 900px) {
    .lesson-category-section-head {
        align-items: start;
    }

    .lesson-category-section-head p {
        max-width: 320px;
    }

    .lesson-category-page .lesson-category-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .lesson-category-page .lesson-category-header {
        padding-top: 13px;
        padding-bottom: 14px;
    }

    .lesson-category-page .lesson-category-heading {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        align-items: end;
    }

    .lesson-category-page .lesson-category-heading h1 {
        font-size: clamp(29px, 9vw, 36px);
    }

    .lesson-category-page .lesson-category-heading p {
        grid-column: 1 / -1;
        font-size: 13.5px;
    }

    .lesson-category-page .lesson-category-count {
        min-height: 36px;
        padding: 6px 9px;
        border-radius: 11px;
    }

    .lesson-category-page .lesson-category-count strong {
        font-size: 18px;
    }

    .lesson-category-page .lesson-category-content {
        padding-top: 20px;
    }

    .lesson-category-section-head {
        display: block;
        margin-bottom: 13px;
    }

    .lesson-category-section-head h2 {
        font-size: 22px;
    }

    .lesson-category-section-head p {
        margin-top: 7px;
        max-width: none;
        font-size: 12.5px;
        text-align: left;
    }

    .lesson-category-page .lesson-category-list {
        gap: 9px;
    }

    .lesson-category-page .lesson-category-row {
        grid-template-columns: 39px minmax(0, 1fr) 30px;
        gap: 11px;
        min-height: 70px;
        padding: 11px 12px;
        border-radius: 14px;
    }

    .lesson-category-page .lesson-category-index {
        width: 38px;
        height: 38px;
        border-radius: 11px;
    }

    .lesson-category-page .lesson-category-copy strong {
        font-size: 15px;
    }

    .lesson-category-page .lesson-category-copy small {
        display: block;
        margin-top: 3px;
        font-size: 10px;
    }

    .lesson-category-page .lesson-category-arrow {
        width: 29px;
        height: 29px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lesson-category-page .lesson-category-row {
        transition: none;
    }
}

/* Home polish v2: compact hero actions, wider signs card, restored guide cards. */
@media (min-width: 681px) {
    .page-home .home-actions {
        width: max-content;
        gap: 10px;
        margin-top: 20px;
    }

    .page-home .home-primary-action,
    .page-home .home-secondary-action {
        min-height: 48px;
        border-radius: 12px;
        font-size: 14px;
    }

    .page-home .home-primary-action {
        padding-inline: 20px;
    }

    .page-home .home-secondary-action {
        padding: 10px 18px;
    }

    .page-home .home-proof-list {
        max-width: 520px;
        margin-top: 12px;
        border-radius: 14px;
    }

    .page-home .home-proof-list > div {
        min-height: 58px;
        gap: 9px;
        padding: 9px 12px;
    }

    .page-home .home-proof-icon {
        width: 30px;
        height: 30px;
        border-radius: 9px;
    }

    .page-home .home-proof-icon svg {
        width: 15px;
        height: 15px;
    }

    .page-home .home-proof-list dt {
        font-size: 15px;
    }

    .page-home .home-proof-list dd {
        margin-top: 2px;
        font-size: 10px;
    }
}

@media (min-width: 1221px) {
    .page-home .home-feature-deck {
        grid-template-columns: minmax(0, 1.02fr) minmax(260px, 0.90fr);
    }

    .page-home .home-feature-card--signs {
        padding-inline: 26px;
    }
}

@media (min-width: 901px) and (max-width: 1220px) {
    .page-home .home-feature-deck {
        grid-template-columns: minmax(0, 1.03fr) minmax(235px, 0.86fr);
    }
}

.page-home .home-info {
    padding: 66px 0 72px;
    border-top: 1px solid #e5edf7;
    border-bottom: 1px solid #e5edf7;
    background:
        radial-gradient(circle at 12% 4%, rgba(37, 99, 235, 0.07), transparent 25%),
        linear-gradient(180deg, #f8fbff 0%, #f5f9ff 100%);
}

.page-home .home-info-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

.page-home .home-info .home-section-heading {
    max-width: 760px;
}

.page-home .home-info .home-section-heading h2 {
    max-width: 720px;
    font-size: clamp(32px, 3vw, 44px);
    line-height: 1.06;
}

.page-home .home-info-content {
    counter-reset: home-guide-card;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.page-home .home-info-content article {
    counter-increment: home-guide-card;
    position: relative;
    min-width: 0;
    min-height: 286px;
    display: flex;
    flex-direction: column;
    padding: 26px 24px 22px;
    overflow: hidden;
    border: 1px solid #dbe6f3;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.055);
}

.page-home .home-info-content article::before {
    content: "0" counter(home-guide-card);
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    border-radius: 10px;
    color: var(--brand-700);
    background: #edf5ff;
    box-shadow: inset 0 0 0 1px rgba(147, 197, 253, 0.55);
    font-size: 11px;
    font-weight: 780;
    letter-spacing: 0.04em;
}

.page-home .home-info-content article::after {
    content: "";
    position: absolute;
    width: 112px;
    height: 112px;
    right: -62px;
    bottom: -70px;
    border: 1px solid rgba(37, 99, 235, 0.08);
    border-radius: 50%;
    box-shadow: 0 0 0 20px rgba(37, 99, 235, 0.025);
    pointer-events: none;
}

.page-home .home-info-content h3 {
    margin: 0 0 12px;
    color: var(--navy-950);
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-home .home-info-content p {
    margin: 0;
    color: #52647b;
    font-size: 13.5px;
    line-height: 1.66;
}

.page-home .home-info-content a {
    position: relative;
    z-index: 1;
    width: max-content;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 18px;
    color: var(--brand-700);
    font-size: 13px;
    font-weight: 740;
}

@media (max-width: 1000px) {
    .page-home .home-info-content {
        grid-template-columns: 1fr;
    }

    .page-home .home-info-content article {
        min-height: 0;
    }
}

@media (max-width: 680px) {
    .page-home .home-info {
        padding: 48px 0 52px;
    }

    .page-home .home-info-layout {
        gap: 22px;
    }

    .page-home .home-info .home-section-heading h2 {
        font-size: clamp(30px, 9vw, 39px);
    }

    .page-home .home-info-content {
        gap: 12px;
    }

    .page-home .home-info-content article {
        padding: 22px 20px 20px;
        border-radius: 16px;
    }

    .page-home .home-info-content article::before {
        width: 31px;
        height: 31px;
        margin-bottom: 16px;
    }

    .page-home .home-info-content h3 {
        font-size: 19px;
    }

    .page-home .home-info-content p {
        font-size: 14px;
        line-height: 1.64;
    }
}

/* --- Rehber ana sayfası: süreç odaklı kompakt görünüm v14 --- */
.guide-index-page {
    --guide-border: #dbe7f6;
    --guide-soft: #f6f9fe;
    --guide-blue: #1d5eea;
    overflow: hidden;
}

.guide-index-page .guide-hero {
    padding: 52px 0 54px;
    border-bottom: 1px solid var(--guide-border);
    background:
        radial-gradient(circle at 82% 8%, rgba(37, 99, 235, 0.12), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.guide-index-page .guide-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.72fr);
    gap: clamp(40px, 6vw, 86px);
    align-items: center;
}

.guide-index-page .guide-hero-copy {
    min-width: 0;
}

.guide-index-page .guide-breadcrumb {
    margin-bottom: 20px;
}

.guide-index-page .guide-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.guide-index-page .guide-hero-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid #cfe0ff;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--brand-700);
    font-size: 12px;
    font-weight: 760;
}

.guide-index-page .guide-hero h1 {
    max-width: 760px;
    font-size: clamp(42px, 4.6vw, 64px);
    line-height: 1.02;
    letter-spacing: -0.035em;
}

.guide-index-page .guide-hero-copy > p {
    max-width: 710px;
    margin: 18px 0 0;
    color: #52647b;
    font-size: 17px;
    line-height: 1.72;
}

.guide-index-page .guide-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 24px;
}

.guide-index-page .guide-hero-actions .button {
    min-height: 46px;
    padding-inline: 20px;
}

.guide-index-page .guide-text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand-700);
    font-size: 14px;
    font-weight: 760;
}

.guide-index-page .guide-route-card {
    position: relative;
    padding: 22px;
    border: 1px solid rgba(168, 199, 250, 0.8);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 24px 60px rgba(30, 64, 175, 0.11);
    backdrop-filter: blur(10px);
}

.guide-index-page .guide-route-card::before {
    content: "";
    position: absolute;
    inset: 18px auto 18px 41px;
    width: 1px;
    background: linear-gradient(180deg, #9fc2ff, #dce9ff);
}

.guide-index-page .guide-route-card-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 17px;
    border-bottom: 1px solid #e5edf8;
}

.guide-index-page .guide-route-card-head > div {
    display: grid;
    gap: 4px;
}

.guide-index-page .guide-route-eyebrow {
    color: var(--brand-700);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.guide-index-page .guide-route-card-head strong {
    color: var(--navy-950);
    font-size: 22px;
    line-height: 1.15;
}

.guide-index-page .guide-route-count {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #edf4ff;
    color: var(--brand-700);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.guide-index-page .guide-route-list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0;
    margin: 0;
    padding: 8px 0 0;
    list-style: none;
}

.guide-index-page .guide-route-list li {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 13px;
    align-items: center;
    padding: 11px 0;
}

.guide-index-page .guide-route-list li > span {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid #cfe0ff;
    border-radius: 13px;
    background: #fff;
    color: var(--brand-700);
    font-size: 11px;
    font-weight: 820;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.08);
}

.guide-index-page .guide-route-list div {
    display: grid;
    gap: 3px;
}

.guide-index-page .guide-route-list strong {
    color: var(--navy-950);
    font-size: 15px;
    line-height: 1.25;
}

.guide-index-page .guide-route-list small {
    color: #6b7b90;
    font-size: 12.5px;
    line-height: 1.42;
}

.guide-index-page .guide-index-layout {
    display: grid;
    grid-template-columns: minmax(250px, 0.58fr) minmax(0, 1.42fr);
    gap: clamp(36px, 6vw, 82px);
    align-items: start;
    padding-top: 66px;
    padding-bottom: 70px;
}

.guide-index-page .guide-process-intro {
    position: sticky;
    top: 96px;
}

.guide-index-page .guide-process-intro h2 {
    max-width: 430px;
    margin: 0;
    color: var(--navy-950);
    font-size: clamp(30px, 3.1vw, 43px);
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.guide-index-page .guide-process-intro > p:last-child {
    max-width: 390px;
    margin: 16px 0 0;
    color: #617187;
    font-size: 15px;
    line-height: 1.68;
}

.guide-index-page .guide-process-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.guide-index-page .guide-process-card {
    min-width: 0;
    min-height: 218px;
    display: flex;
    flex-direction: column;
    padding: 19px;
    border: 1px solid var(--guide-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.045);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.guide-index-page .guide-process-card:hover {
    transform: translateY(-2px);
    border-color: #b8d2ff;
    box-shadow: 0 18px 40px rgba(30, 64, 175, 0.08);
}

.guide-index-page .guide-process-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 17px;
}

.guide-index-page .guide-process-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 39px;
    height: 32px;
    border-radius: 10px;
    background: #edf4ff;
    color: var(--brand-700);
    font-size: 12px;
    font-weight: 820;
}

.guide-index-page .guide-process-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d6e5ff;
    box-shadow: 0 0 0 5px #f3f7ff;
}

.guide-index-page .guide-process-copy {
    flex: 1;
}

.guide-index-page .guide-process-card h3 {
    margin: 0 0 8px;
    color: var(--navy-950);
    font-size: 18px;
    line-height: 1.25;
}

.guide-index-page .guide-process-card p {
    margin: 0;
    color: #607087;
    font-size: 13.5px;
    line-height: 1.58;
}

.guide-index-page .guide-process-card > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    margin-top: 14px;
    color: var(--brand-700);
    font-size: 13px;
    font-weight: 760;
}

.guide-index-page .guide-directory {
    padding-top: 62px;
    padding-bottom: 66px;
    background:
        radial-gradient(circle at 90% 0%, rgba(37, 99, 235, 0.08), transparent 30%),
        #f7faff;
}

.guide-index-page .guide-directory-head {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.7fr);
    gap: 36px;
    align-items: end;
    margin-bottom: 28px;
}

.guide-index-page .guide-directory-head .guide-index-heading {
    max-width: 650px;
    margin: 0;
}

.guide-index-page .guide-directory-head > p {
    max-width: 520px;
    margin: 0 0 3px auto;
    color: #617187;
    font-size: 14.5px;
    line-height: 1.65;
}

.guide-index-page .guide-directory-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.guide-index-page .guide-directory-card {
    min-height: 154px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: 1fr;
    gap: 14px;
    align-items: start;
    padding: 19px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
}

.guide-index-page .guide-directory-card:nth-child(4),
.guide-index-page .guide-directory-card:nth-child(5) {
    grid-column: span 1;
}

.guide-index-page .guide-directory-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #edf4ff;
    color: var(--brand-700);
    font-size: 11px;
    font-weight: 820;
}

.guide-index-page .guide-directory-copy {
    min-width: 0;
    display: grid;
    gap: 8px;
}

.guide-index-page .guide-directory-copy strong {
    color: var(--navy-950);
    font-size: 17px;
    line-height: 1.24;
}

.guide-index-page .guide-directory-copy p {
    margin: 0;
    color: #65758a;
    font-size: 13.2px;
    line-height: 1.52;
}

.guide-index-page .guide-directory-arrow {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid #d6e4f8;
    border-radius: 50%;
    color: var(--brand-700);
    font-size: 14px;
    transition: transform 160ms ease, background-color 160ms ease;
}

.guide-index-page .guide-directory-card:hover .guide-directory-arrow {
    transform: translateX(2px);
    background: #edf4ff;
}

.guide-index-page .guide-index-note {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 18px;
    margin-top: 52px;
    margin-bottom: 58px;
    padding: 24px 26px;
    border-radius: 18px;
    background: linear-gradient(135deg, #ffffff, #eef5ff);
    box-shadow: 0 16px 40px rgba(30, 64, 175, 0.065);
}

.guide-index-page .guide-index-note-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    background: var(--brand-700);
    color: #fff;
    font-size: 20px;
    font-weight: 850;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

.guide-index-page .guide-index-note h2 {
    font-size: clamp(24px, 2.5vw, 34px);
}

.guide-index-page .guide-index-note .button {
    white-space: nowrap;
}

@media (max-width: 1080px) {
    .guide-index-page .guide-hero-grid {
        grid-template-columns: minmax(0, 1fr) 340px;
        gap: 38px;
    }

    .guide-index-page .guide-index-layout {
        grid-template-columns: 300px minmax(0, 1fr);
        gap: 34px;
    }

    .guide-index-page .guide-process-grid {
        grid-template-columns: 1fr;
    }

    .guide-index-page .guide-process-card {
        min-height: 0;
    }
}

@media (max-width: 860px) {
    .guide-index-page .guide-hero-grid,
    .guide-index-page .guide-index-layout,
    .guide-index-page .guide-directory-head {
        grid-template-columns: 1fr;
    }

    .guide-index-page .guide-route-card {
        max-width: 620px;
    }

    .guide-index-page .guide-process-intro {
        position: static;
    }

    .guide-index-page .guide-process-intro > p:last-child {
        max-width: 650px;
    }

    .guide-index-page .guide-process-grid,
    .guide-index-page .guide-directory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .guide-index-page .guide-directory-head > p {
        max-width: 650px;
        margin: 0;
    }
}

@media (max-width: 620px) {
    .guide-index-page .guide-hero {
        padding: 32px 0 36px;
    }

    .guide-index-page .guide-breadcrumb {
        margin-bottom: 14px;
    }

    .guide-index-page .guide-hero-meta {
        margin-bottom: 12px;
    }

    .guide-index-page .guide-hero h1 {
        font-size: clamp(36px, 11vw, 48px);
        line-height: 1.04;
    }

    .guide-index-page .guide-hero-copy > p {
        font-size: 15.5px;
        line-height: 1.65;
    }

    .guide-index-page .guide-hero-actions {
        align-items: stretch;
        gap: 12px;
    }

    .guide-index-page .guide-hero-actions .button {
        width: 100%;
        justify-content: center;
    }

    .guide-index-page .guide-route-card {
        padding: 17px;
        border-radius: 18px;
    }

    .guide-index-page .guide-route-card::before {
        left: 35px;
    }

    .guide-index-page .guide-route-card-head strong {
        font-size: 19px;
    }

    .guide-index-page .guide-route-list li {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 11px;
        padding: 10px 0;
    }

    .guide-index-page .guide-route-list li > span {
        width: 36px;
        height: 36px;
        border-radius: 11px;
    }

    .guide-index-page .guide-index-layout,
    .guide-index-page .guide-directory {
        padding-top: 44px;
        padding-bottom: 46px;
    }

    .guide-index-page .guide-process-intro h2 {
        font-size: 31px;
    }

    .guide-index-page .guide-process-grid,
    .guide-index-page .guide-directory-grid {
        grid-template-columns: 1fr;
    }

    .guide-index-page .guide-process-card {
        min-height: 0;
        padding: 17px;
    }

    .guide-index-page .guide-directory-card {
        min-height: 0;
        padding: 16px;
    }

    .guide-index-page .guide-index-note {
        grid-template-columns: 1fr;
        margin-top: 38px;
        margin-bottom: 42px;
        padding: 20px;
    }

    .guide-index-page .guide-index-note .button {
        width: 100%;
        justify-content: center;
    }
}

/* --- Rehber deneyimi v15: kullanıcı odaklı ana sayfa ve iç sayfa navigasyonu --- */
.guide-index-page,
.guide-detail-page {
    --guide-ink: #0f172a;
    --guide-copy: #52647b;
    --guide-muted: #6b7b90;
    --guide-line: #dbe7f6;
    --guide-soft-blue: #edf4ff;
    --guide-brand: #1d5eea;
}

/* Ana rehber: süreç kartındaki bağlantı çizgisini düğümler arasında sınırla. */
.guide-index-page .guide-route-card::before {
    display: none;
}

.guide-index-page .guide-route-list li {
    position: relative;
}

.guide-index-page .guide-route-list li:not(:last-child)::after {
    content: "";
    position: absolute;
    z-index: 0;
    left: 19.5px;
    top: 51px;
    width: 1px;
    height: 22px;
    background: linear-gradient(180deg, #8eb8ff 0%, #d7e7ff 100%);
}

.guide-index-page .guide-route-list li > span {
    position: relative;
    z-index: 1;
}

.guide-index-page .guide-route-list li:last-child > span {
    border-color: #a9c9ff;
    background: #edf4ff;
}

/* Kullanıcının mevcut aşamasına göre hızlı yönlendirme. */
.guide-index-page .guide-pathfinder {
    padding-top: 46px;
    padding-bottom: 14px;
}

.guide-index-page .guide-pathfinder-head {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.65fr);
    gap: 32px;
    align-items: end;
    margin-bottom: 20px;
}

.guide-index-page .guide-pathfinder-head h2 {
    max-width: 650px;
    margin: 0;
    color: var(--guide-ink);
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.guide-index-page .guide-pathfinder-head > p {
    max-width: 520px;
    margin: 0 0 3px auto;
    color: var(--guide-copy);
    font-size: 14.5px;
    line-height: 1.65;
}

.guide-index-page .guide-pathfinder-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.guide-index-page .guide-pathfinder-grid > a {
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    min-height: 118px;
    padding: 18px;
    border: 1px solid var(--guide-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.guide-index-page .guide-pathfinder-grid > a:hover {
    transform: translateY(-2px);
    border-color: #b8d2ff;
    box-shadow: 0 18px 40px rgba(30, 64, 175, 0.08);
}

.guide-index-page .guide-pathfinder-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: var(--guide-soft-blue);
    color: var(--guide-brand);
    font-size: 11px;
    font-weight: 820;
}

.guide-index-page .guide-pathfinder-grid strong {
    display: block;
    color: var(--guide-ink);
    font-size: 16px;
    line-height: 1.28;
}

.guide-index-page .guide-pathfinder-grid p {
    margin: 6px 0 0;
    color: var(--guide-muted);
    font-size: 13px;
    line-height: 1.48;
}

.guide-index-page .guide-pathfinder-arrow {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid #d6e4f8;
    border-radius: 50%;
    color: var(--guide-brand);
    font-size: 14px;
    transition: transform 160ms ease, background-color 160ms ease;
}

.guide-index-page .guide-pathfinder-grid > a:hover .guide-pathfinder-arrow {
    transform: translateX(2px);
    background: var(--guide-soft-blue);
}

.guide-index-page .guide-index-layout {
    padding-top: 54px;
}

.guide-index-page .guide-process-key {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 22px;
}

.guide-index-page .guide-process-key span {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 5px 9px;
    border: 1px solid #d7e5f8;
    border-radius: 999px;
    background: #fff;
    color: #58708f;
    font-size: 11px;
    font-weight: 740;
}

.guide-index-page .guide-process-card {
    min-height: 206px;
}

.guide-index-page .guide-process-position {
    color: #8ba0ba;
    font-size: 11px;
    font-weight: 720;
}

.guide-index-page .guide-process-dot {
    display: none;
}

/* Rehber detay: daha güçlü editorial üst alan. */
.guide-detail-page .guide-article-hero {
    padding: 46px 0 42px;
    border-bottom: 1px solid var(--guide-line);
    background:
        radial-gradient(circle at 82% 8%, rgba(37, 99, 235, 0.10), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.guide-detail-page .guide-article-shell {
    max-width: 1180px;
}

.guide-detail-page .guide-breadcrumb {
    margin-bottom: 17px;
}

.guide-detail-page .guide-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 13px;
}

.guide-detail-page .guide-article-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid #cfe0ff;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    color: var(--guide-brand);
    font-size: 11.5px;
    font-weight: 760;
}

.guide-detail-page .guide-article-hero h1 {
    max-width: 920px;
    font-size: clamp(38px, 4.3vw, 58px);
    line-height: 1.04;
    letter-spacing: -0.035em;
}

.guide-detail-page .guide-article-hero > .guide-article-shell > p {
    max-width: 820px;
    margin: 17px 0 0;
    color: var(--guide-copy);
    font-size: 16.5px;
    line-height: 1.7;
}

.guide-detail-page .guide-author {
    margin-top: 14px;
    color: #718096;
    font-size: 12.5px;
    font-weight: 680;
}

/* İç sayfalarda konu menüsü + sayfa içi gezinme. */
.guide-detail-page .guide-article-layout {
    grid-template-columns: minmax(270px, 310px) minmax(0, 790px);
    gap: clamp(34px, 5vw, 66px);
    justify-content: center;
    padding-top: 48px;
    padding-bottom: 72px;
}

.guide-detail-page .guide-article-sidebar {
    position: sticky;
    top: 88px;
    align-self: start;
    display: grid;
    gap: 13px;
    max-height: calc(100vh - 106px);
    padding-right: 4px;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: #d4e2f5 transparent;
}

.guide-detail-page .guide-topic-nav,
.guide-detail-page .guide-toc,
.guide-detail-page .guide-facts,
.guide-detail-page .guide-koni-box {
    border: 1px solid var(--guide-line);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.035);
}

.guide-detail-page .guide-topic-nav {
    padding: 15px;
}

.guide-detail-page .guide-topic-nav-head {
    display: grid;
    gap: 3px;
    padding: 2px 3px 12px;
    border-bottom: 1px solid #e7eef8;
}

.guide-detail-page .guide-topic-nav-kicker {
    color: var(--guide-brand);
    font-size: 10.5px;
    font-weight: 820;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.guide-detail-page .guide-topic-nav-head strong {
    color: var(--guide-ink);
    font-size: 16px;
    line-height: 1.25;
}

.guide-detail-page .guide-topic-nav-list {
    display: grid;
    gap: 5px;
    padding-top: 9px;
}

.guide-detail-page .guide-topic-nav-list a {
    min-width: 0;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 18px;
    gap: 9px;
    align-items: center;
    min-height: 46px;
    padding: 7px 8px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #52647b;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.guide-detail-page .guide-topic-nav-list a:hover {
    border-color: #d6e4f8;
    background: #f7faff;
    color: var(--guide-ink);
}

.guide-detail-page .guide-topic-nav-list a.is-active {
    border-color: #bfd6ff;
    background: var(--guide-soft-blue);
    color: var(--guide-brand);
}

.guide-detail-page .guide-topic-nav-list a > span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #f1f6fd;
    color: #7890ad;
    font-size: 10px;
    font-weight: 820;
}

.guide-detail-page .guide-topic-nav-list a.is-active > span {
    background: #fff;
    color: var(--guide-brand);
}

.guide-detail-page .guide-topic-nav-list strong {
    min-width: 0;
    color: inherit;
    font-size: 12.5px;
    font-weight: 740;
    line-height: 1.3;
}

.guide-detail-page .guide-topic-nav-list em {
    color: inherit;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    text-align: right;
}

.guide-detail-page .guide-topic-nav-all {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 12px 3px 1px;
    color: var(--guide-brand);
    font-size: 12px;
    font-weight: 760;
}

.guide-detail-page .guide-toc {
    padding: 15px;
}

.guide-detail-page .guide-toc > strong {
    display: block;
    padding-bottom: 10px;
    color: var(--guide-ink);
    font-size: 13px;
    font-weight: 780;
}

.guide-detail-page .guide-toc ol {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: guide-toc;
}

.guide-detail-page .guide-toc li {
    counter-increment: guide-toc;
}

.guide-detail-page .guide-toc a {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 7px;
    align-items: start;
    color: #607087;
    font-size: 11.8px;
    line-height: 1.38;
}

.guide-detail-page .guide-toc a::before {
    content: counter(guide-toc, decimal-leading-zero);
    color: #9aabc0;
    font-size: 9.5px;
    font-weight: 800;
    line-height: 1.7;
}

.guide-detail-page .guide-toc a:hover {
    color: var(--guide-brand);
}

.guide-detail-page .guide-facts,
.guide-detail-page .guide-koni-box {
    padding: 16px;
}

.guide-detail-page .guide-facts ul {
    gap: 8px;
    margin-top: 11px;
    padding-left: 17px;
}

.guide-detail-page .guide-koni-box {
    background: linear-gradient(180deg, #f7faff, #ffffff);
}

/* İçerik alanını okunabilir, bölüm bölüm ve kart kalabalığı olmadan düzenle. */
.guide-detail-page .guide-article {
    min-width: 0;
}

.guide-detail-page .guide-article > section:not(.guide-related):not(.guide-sources) {
    position: relative;
    scroll-margin-top: 100px;
    padding-top: 3px;
}

.guide-detail-page .guide-article > section + section {
    margin-top: 38px;
    padding-top: 37px;
    border-top: 1px solid var(--guide-line);
}

.guide-detail-page .guide-article-section-number {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    margin-bottom: 10px;
    padding: 4px 8px;
    border-radius: 8px;
    background: var(--guide-soft-blue);
    color: var(--guide-brand);
    font-size: 10.5px;
    font-weight: 820;
}

.guide-detail-page .guide-article h2 {
    margin-bottom: 15px;
    font-size: clamp(25px, 2.7vw, 33px);
    line-height: 1.14;
    letter-spacing: -0.018em;
}

.guide-detail-page .guide-article p,
.guide-detail-page .guide-article li {
    color: #40546c;
    font-size: 15.5px;
    line-height: 1.78;
}

.guide-detail-page .guide-article ul {
    gap: 10px;
    padding-left: 21px;
}

.guide-detail-page .guide-warning {
    margin-top: 38px;
    padding: 19px 20px;
    border: 1px solid #efd79d;
    border-radius: 14px;
    background: #fff9eb;
    box-shadow: none;
}

.guide-detail-page .guide-related,
.guide-detail-page .guide-sources {
    margin-top: 44px;
    padding-top: 38px;
    border-top: 1px solid var(--guide-line);
}

.guide-detail-page .guide-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.guide-detail-page .guide-related-grid a {
    position: relative;
    min-height: 132px;
    padding: 16px 42px 16px 16px;
    border-radius: 14px;
    background: #f8fbff;
    transition: border-color 150ms ease, transform 150ms ease, background-color 150ms ease;
}

.guide-detail-page .guide-related-grid a:hover {
    transform: translateY(-1px);
    border-color: #bcd4ff;
    background: #fff;
}

.guide-detail-page .guide-related-grid em {
    position: absolute;
    top: 16px;
    right: 16px;
    color: var(--guide-brand);
    font-size: 14px;
    font-style: normal;
}

.guide-detail-page .guide-sources {
    display: grid;
    grid-template-columns: minmax(170px, 0.35fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.guide-detail-page .guide-sources h2 {
    font-size: 25px;
}

.guide-detail-page .guide-sources ul {
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.guide-detail-page .guide-sources li {
    margin: 0;
}

.guide-detail-page .guide-sources a {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid var(--guide-line);
    border-radius: 11px;
    background: #fff;
    color: #345b9d;
    font-size: 12.8px;
    line-height: 1.45;
}

.guide-detail-page .guide-sources a:hover {
    border-color: #bcd4ff;
    background: #f8fbff;
}

.guide-detail-page .guide-sources a span {
    flex: 0 0 auto;
}

@media (max-width: 1080px) {
    .guide-index-page .guide-pathfinder-head {
        grid-template-columns: 1fr;
    }

    .guide-index-page .guide-pathfinder-head > p {
        max-width: 700px;
        margin: 0;
    }

    .guide-index-page .guide-pathfinder-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .guide-index-page .guide-pathfinder-grid > a {
        min-height: 0;
    }

    .guide-detail-page .guide-article-layout {
        grid-template-columns: 260px minmax(0, 1fr);
        gap: 34px;
    }
}

@media (max-width: 860px) {
    .guide-index-page .guide-pathfinder-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .guide-index-page .guide-pathfinder-grid > a {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: start;
    }

    .guide-index-page .guide-pathfinder-arrow {
        display: none;
    }

    .guide-detail-page .guide-article-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }

    .guide-detail-page .guide-article-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-height: none;
        padding-right: 0;
        overflow: visible;
    }

    .guide-detail-page .guide-topic-nav {
        grid-column: 1 / -1;
    }

    .guide-detail-page .guide-topic-nav-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .guide-index-page .guide-route-list li:not(:last-child)::after {
        left: 17.5px;
        top: 46px;
        height: 20px;
    }

    .guide-index-page .guide-pathfinder {
        padding-top: 38px;
    }

    .guide-index-page .guide-pathfinder-head h2 {
        font-size: 30px;
    }

    .guide-index-page .guide-pathfinder-grid {
        grid-template-columns: 1fr;
    }

    .guide-index-page .guide-pathfinder-grid > a {
        grid-template-columns: auto minmax(0, 1fr) auto;
        padding: 16px;
    }

    .guide-index-page .guide-pathfinder-arrow {
        display: grid;
    }

    .guide-index-page .guide-process-key {
        margin-top: 17px;
    }

    .guide-detail-page .guide-article-hero {
        padding: 32px 0 34px;
    }

    .guide-detail-page .guide-article-meta {
        margin-bottom: 11px;
    }

    .guide-detail-page .guide-article-hero h1 {
        font-size: clamp(34px, 10vw, 45px);
    }

    .guide-detail-page .guide-article-hero > .guide-article-shell > p {
        font-size: 15px;
        line-height: 1.65;
    }

    .guide-detail-page .guide-article-layout {
        padding-top: 34px;
        padding-bottom: 48px;
    }

    .guide-detail-page .guide-article-sidebar,
    .guide-detail-page .guide-topic-nav-list {
        grid-template-columns: 1fr;
    }

    .guide-detail-page .guide-topic-nav-list a {
        min-height: 43px;
    }

    .guide-detail-page .guide-article > section + section {
        margin-top: 30px;
        padding-top: 29px;
    }

    .guide-detail-page .guide-article h2 {
        font-size: 26px;
    }

    .guide-detail-page .guide-article p,
    .guide-detail-page .guide-article li {
        font-size: 15px;
        line-height: 1.72;
    }

    .guide-detail-page .guide-related-grid,
    .guide-detail-page .guide-sources {
        grid-template-columns: 1fr;
    }

    .guide-detail-page .guide-related-grid a {
        min-height: 0;
    }

    .guide-detail-page .guide-sources {
        gap: 15px;
    }
}

/* --- Rehber süreç akışı v16: adımları tek yönde, dört net bölümde göster --- */
.guide-index-page .guide-process-summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 21px;
    padding: 8px 11px;
    border: 1px solid #d7e5f8;
    border-radius: 999px;
    background: #fff;
    color: #6c7f98;
    font-size: 11.5px;
}

.guide-index-page .guide-process-summary strong {
    color: #355578;
    font-weight: 780;
}

.guide-index-page .guide-process-flow {
    min-width: 0;
    display: grid;
    gap: 0;
    border: 1px solid var(--guide-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.045);
    overflow: hidden;
}

.guide-index-page .guide-process-phase {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 26px;
    padding: 22px;
}

.guide-index-page .guide-process-phase + .guide-process-phase {
    border-top: 1px solid var(--guide-line);
}

.guide-index-page .guide-process-phase-head {
    align-self: start;
    padding-top: 3px;
}

.guide-index-page .guide-process-phase-head > span {
    display: block;
    margin-bottom: 7px;
    color: var(--guide-brand);
    font-size: 10.5px;
    font-weight: 820;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.guide-index-page .guide-process-phase-head h3 {
    margin: 0;
    color: var(--guide-ink);
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: -0.012em;
}

.guide-index-page .guide-process-phase-head p {
    margin: 8px 0 0;
    color: var(--guide-muted);
    font-size: 12.5px;
    line-height: 1.5;
}

.guide-index-page .guide-process-phase-steps {
    position: relative;
    min-width: 0;
    display: grid;
    gap: 10px;
}

.guide-index-page .guide-process-phase-steps::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 28px;
    bottom: 28px;
    left: 22px;
    width: 1px;
    background: linear-gradient(180deg, #9fc2ff, #dce9ff);
}

.guide-index-page .guide-process-row {
    position: relative;
    z-index: 1;
    min-width: 0;
    display: grid;
    grid-template-columns: 45px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.guide-index-page .guide-process-node {
    display: grid;
    place-items: center;
    width: 45px;
    height: 45px;
    border: 1px solid #bfd6ff;
    border-radius: 14px;
    background: #f4f8ff;
    color: var(--guide-brand);
    font-size: 11px;
    font-weight: 840;
    box-shadow: 0 0 0 5px #fff;
}

.guide-index-page .guide-process-row-body {
    min-width: 0;
    padding: 2px 0 12px;
}

.guide-index-page .guide-process-row + .guide-process-row .guide-process-row-body {
    padding-top: 11px;
    border-top: 1px dashed #dce7f5;
}

.guide-index-page .guide-process-row-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.guide-index-page .guide-process-row h4 {
    margin: 0;
    color: var(--guide-ink);
    font-size: 16px;
    line-height: 1.3;
}

.guide-index-page .guide-process-row-head > span {
    flex: 0 0 auto;
    color: #8ba0ba;
    font-size: 10.5px;
    font-weight: 720;
    white-space: nowrap;
}

.guide-index-page .guide-process-row p {
    margin: 7px 0 0;
    color: #607087;
    font-size: 13px;
    line-height: 1.56;
}

.guide-index-page .guide-process-row a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 9px;
    color: var(--guide-brand);
    font-size: 12.5px;
    font-weight: 760;
}

/* Eski iki sütunlu kart düzenini yalnız bu yeni akışta devre dışı bırak. */
.guide-index-page .guide-process-flow + .guide-process-grid,
.guide-index-page .guide-process-grid:empty {
    display: none;
}

@media (max-width: 1080px) {
    .guide-index-page .guide-process-phase {
        grid-template-columns: 145px minmax(0, 1fr);
        gap: 20px;
        padding: 20px;
    }
}

@media (max-width: 860px) {
    .guide-index-page .guide-process-phase {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .guide-index-page .guide-process-phase-head {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        column-gap: 11px;
        align-items: baseline;
        padding-bottom: 13px;
        border-bottom: 1px solid #e7eef8;
    }

    .guide-index-page .guide-process-phase-head > span {
        grid-row: 1 / 3;
        align-self: center;
        margin: 0;
        padding: 7px 8px;
        border-radius: 9px;
        background: var(--guide-soft-blue);
    }

    .guide-index-page .guide-process-phase-head h3 {
        font-size: 18px;
    }

    .guide-index-page .guide-process-phase-head p {
        margin: 3px 0 0;
    }
}

@media (max-width: 620px) {
    .guide-index-page .guide-process-flow {
        border-radius: 16px;
    }

    .guide-index-page .guide-process-phase {
        padding: 17px 15px;
    }

    .guide-index-page .guide-process-row {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 11px;
    }

    .guide-index-page .guide-process-node {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .guide-index-page .guide-process-phase-steps::before {
        top: 25px;
        bottom: 25px;
        left: 19.5px;
    }

    .guide-index-page .guide-process-row-head {
        display: block;
    }

    .guide-index-page .guide-process-row-head > span {
        display: block;
        margin-top: 3px;
    }

    .guide-index-page .guide-process-row h4 {
        font-size: 15.5px;
    }
}


/* --- Konu anlatımı detay v17: kategori alt menüsü ve sayfa içi gezinme --- */
.lesson-reader-page .lesson-reader-layout {
    grid-template-columns: minmax(270px, 305px) minmax(0, 860px);
    gap: clamp(32px, 4.4vw, 58px);
    justify-content: center;
    align-items: start;
}

.lesson-reader-page .lesson-reader-sidebar {
    position: sticky;
    top: 88px;
    align-self: start;
    display: grid;
    gap: 13px;
    min-width: 0;
}

.lesson-reader-page .lesson-topic-nav,
.lesson-reader-page .lesson-page-toc,
.lesson-reader-page .lesson-category-switcher {
    min-width: 0;
    border: 1px solid var(--lesson-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(18, 48, 87, .04);
}

.lesson-reader-page .lesson-topic-nav {
    padding: 15px;
}

.lesson-reader-page .lesson-topic-nav-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 2px 3px 12px;
    border-bottom: 1px solid #e7edf4;
}

.lesson-reader-page .lesson-topic-nav-head > div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.lesson-reader-page .lesson-topic-nav-kicker {
    color: var(--lesson-accent);
    font-size: 10.5px;
    font-weight: 840;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.lesson-reader-page .lesson-topic-nav-head strong {
    color: var(--lesson-ink);
    font-size: 16px;
    line-height: 1.25;
}

.lesson-reader-page .lesson-topic-nav-head small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 26px;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--lesson-accent-soft);
    color: var(--lesson-accent);
    font-size: 10.5px;
    font-weight: 820;
    white-space: nowrap;
}

.lesson-reader-page .lesson-topic-progress {
    overflow: hidden;
    height: 5px;
    margin: 11px 3px 4px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--lesson-accent-soft) 82%, #e8eef6);
}

.lesson-reader-page .lesson-topic-progress i {
    display: block;
    width: var(--lesson-progress, 0%);
    height: 100%;
    border-radius: inherit;
    background: var(--lesson-accent);
}

.lesson-reader-page .lesson-topic-nav-list {
    display: grid;
    gap: 5px;
    max-height: min(48vh, 440px);
    margin-top: 8px;
    padding-right: 3px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--lesson-accent) 25%, #dfe7f0) transparent;
}

.lesson-reader-page .lesson-topic-nav-list a {
    min-width: 0;
    display: grid;
    grid-template-columns: 29px minmax(0, 1fr) 17px;
    gap: 9px;
    align-items: center;
    min-height: 47px;
    padding: 7px 8px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #53677d;
    text-decoration: none;
    transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.lesson-reader-page .lesson-topic-nav-list a:hover {
    color: var(--lesson-ink);
    border-color: color-mix(in srgb, var(--lesson-accent) 20%, #dfe7f0);
    background: color-mix(in srgb, var(--lesson-accent-soft) 38%, white);
}

.lesson-reader-page .lesson-topic-nav-list a.is-active {
    color: var(--lesson-accent);
    border-color: color-mix(in srgb, var(--lesson-accent) 31%, #dfe7f0);
    background: color-mix(in srgb, var(--lesson-accent-soft) 70%, white);
}

.lesson-reader-page .lesson-topic-nav-list a > span {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border-radius: 8px;
    background: #f1f5fa;
    color: #8294aa;
    font-size: 10px;
    font-weight: 840;
}

.lesson-reader-page .lesson-topic-nav-list a.is-active > span {
    color: var(--lesson-accent);
    background: #fff;
}

.lesson-reader-page .lesson-topic-nav-list strong {
    min-width: 0;
    color: inherit;
    font-size: 12.3px;
    font-weight: 750;
    line-height: 1.32;
}

.lesson-reader-page .lesson-topic-nav-list em {
    color: inherit;
    font-size: 12px;
    font-style: normal;
    font-weight: 840;
    text-align: right;
}

.lesson-reader-page .lesson-topic-nav-all {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 12px 3px 1px;
    color: var(--lesson-accent);
    font-size: 12px;
    font-weight: 790;
    text-decoration: none;
}

.lesson-reader-page .lesson-page-toc,
.lesson-reader-page .lesson-category-switcher {
    padding: 15px;
}

.lesson-reader-page .lesson-page-toc > strong,
.lesson-reader-page .lesson-category-switcher > strong {
    display: block;
    padding-bottom: 10px;
    color: var(--lesson-ink);
    font-size: 13px;
    font-weight: 800;
}

.lesson-reader-page .lesson-page-toc ol {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: lesson-toc;
}

.lesson-reader-page .lesson-page-toc li {
    counter-increment: lesson-toc;
}

.lesson-reader-page .lesson-page-toc a {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 7px;
    align-items: start;
    color: #60748a;
    font-size: 11.8px;
    line-height: 1.4;
    text-decoration: none;
}

.lesson-reader-page .lesson-page-toc a::before {
    content: counter(lesson-toc, decimal-leading-zero);
    color: #9aacbf;
    font-size: 9.5px;
    font-weight: 840;
    line-height: 1.75;
}

.lesson-reader-page .lesson-page-toc a:hover {
    color: var(--lesson-accent);
}

.lesson-reader-page .lesson-category-switcher > div {
    display: grid;
    gap: 6px;
}

.lesson-reader-page .lesson-category-switcher a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 39px;
    padding: 7px 9px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: #596d83;
    font-size: 11.8px;
    font-weight: 740;
    text-decoration: none;
}

.lesson-reader-page .lesson-category-switcher a:hover,
.lesson-reader-page .lesson-category-switcher a.is-active {
    color: var(--lesson-accent);
    border-color: color-mix(in srgb, var(--lesson-accent) 22%, #dfe7f0);
    background: color-mix(in srgb, var(--lesson-accent-soft) 52%, white);
}

.lesson-reader-page .lesson-category-switcher small {
    display: grid;
    place-items: center;
    min-width: 25px;
    height: 25px;
    border-radius: 999px;
    background: #f1f5fa;
    color: #8294aa;
    font-size: 9.5px;
    font-weight: 840;
}

.lesson-reader-page .lesson-category-switcher a.is-active small {
    color: var(--lesson-accent);
    background: #fff;
}

.lesson-reader-page .lesson-reader-article h2[id] {
    scroll-margin-top: 100px;
}

@media (max-width: 1080px) {
    .lesson-reader-page .lesson-reader-layout {
        grid-template-columns: 255px minmax(0, 1fr);
        gap: 30px;
    }
}

@media (max-width: 860px) {
    .lesson-reader-page .lesson-reader-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
    }

    .lesson-reader-page .lesson-reader-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lesson-reader-page .lesson-topic-nav {
        grid-column: 1 / -1;
    }

    .lesson-reader-page .lesson-topic-nav-list {
        grid-auto-flow: column;
        grid-auto-columns: minmax(220px, 42vw);
        grid-template-rows: repeat(2, auto);
        max-height: none;
        padding: 2px 2px 7px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x proximity;
    }

    .lesson-reader-page .lesson-topic-nav-list a {
        scroll-snap-align: start;
    }

    .lesson-reader-page .lesson-topic-nav-list a.is-active {
        order: -1;
    }
}

@media (max-width: 680px) {
    .lesson-reader-page .lesson-reader-sidebar {
        grid-template-columns: 1fr;
        gap: 11px;
    }

    .lesson-reader-page .lesson-topic-nav-list {
        grid-auto-columns: minmax(230px, 78vw);
        grid-template-rows: repeat(2, auto);
    }

    .lesson-reader-page .lesson-topic-nav-list a {
        min-height: 44px;
    }

    .lesson-reader-page .lesson-page-toc,
    .lesson-reader-page .lesson-category-switcher,
    .lesson-reader-page .lesson-topic-nav {
        padding: 13px;
        border-radius: 14px;
    }
}


/* Brand lockup v18: descriptive subtitle under KONİ in header and footer. */
.brand {
    align-items: flex-start;
    font-size: inherit;
    text-decoration: none;
}

.brand-copy {
    display: grid;
    gap: 3px;
    line-height: 1;
}

.brand-title {
    color: var(--brand-700);
    font-size: 27px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.brand-tagline {
    color: #64748b;
    font-size: 8px;
    font-weight: 850;
    letter-spacing: 0.13em;
    line-height: 1.15;
    white-space: nowrap;
}

.footer-brand-lockup {
    display: inline-grid;
    gap: 4px;
    line-height: 1;
}

.footer-brand-lockup strong {
    line-height: 0.95;
}

.footer-brand-lockup span {
    color: #64748b;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.14em;
    line-height: 1.2;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .brand-copy {
        gap: 2px;
    }

    .brand-title {
        font-size: 24px;
    }

    .brand-tagline {
        font-size: 7px;
        letter-spacing: 0.11em;
    }
}

/* Brand logo v19: stronger, responsive KONİ lockup for header and footer. */
.brand {
    flex: 0 0 auto;
    align-items: center;
}

.brand-copy {
    display: grid;
    grid-template-columns: auto 1px auto;
    align-items: center;
    column-gap: 10px;
    line-height: 1;
}

.brand-title {
    color: var(--brand-700);
    font-size: 30px;
    font-weight: 950;
    letter-spacing: -0.055em;
    line-height: 0.9;
}

.brand-divider {
    width: 1px;
    height: 31px;
    border-radius: 999px;
    background: #bfdbfe;
}

.brand-tagline {
    display: grid;
    gap: 2px;
    color: #27364d;
    font-size: 10.5px;
    font-weight: 900;
    letter-spacing: 0.105em;
    line-height: 1.05;
    white-space: nowrap;
}

.brand-tagline span {
    display: block;
}

.footer-brand-lockup {
    display: inline-grid;
    grid-template-columns: auto 1px auto;
    align-items: center;
    gap: 12px;
    line-height: 1;
}

.footer-brand-lockup strong {
    color: var(--brand-700);
    font-size: 34px;
    font-weight: 950;
    letter-spacing: -0.055em;
    line-height: 0.9;
}

.footer-brand-divider {
    width: 1px;
    height: 36px;
    border-radius: 999px;
    background: #bfdbfe;
}

.footer-brand-tagline {
    display: grid;
    gap: 3px;
    color: #334155;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.11em;
    line-height: 1.05;
    white-space: nowrap;
}

.footer-brand-tagline span {
    display: block;
}

@media (max-width: 1100px) and (min-width: 901px) {
    .brand-copy {
        column-gap: 8px;
    }

    .brand-title {
        font-size: 27px;
    }

    .brand-divider {
        height: 28px;
    }

    .brand-tagline {
        font-size: 9px;
        letter-spacing: 0.08em;
    }
}

@media (max-width: 900px) {
    .brand-copy {
        grid-template-columns: auto 1px auto;
        column-gap: 8px;
    }

    .brand-title {
        font-size: 26px;
    }

    .brand-divider {
        height: 27px;
    }

    .brand-tagline {
        font-size: 9px;
        letter-spacing: 0.08em;
    }
}

@media (max-width: 420px) {
    .brand-copy {
        column-gap: 7px;
    }

    .brand-title {
        font-size: 24px;
    }

    .brand-divider {
        height: 25px;
    }

    .brand-tagline {
        font-size: 8px;
        letter-spacing: 0.065em;
    }

    .footer-brand-lockup {
        gap: 9px;
    }

    .footer-brand-lockup strong {
        font-size: 29px;
    }

    .footer-brand-divider {
        height: 31px;
    }

    .footer-brand-tagline {
        font-size: 10px;
        letter-spacing: 0.08em;
    }
}

/* Home UX v20: useful metrics, fully clickable feature cards and tighter section rhythm. */
.page-home .home-feature-card {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.page-home .home-feature-card:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.34);
    outline-offset: 4px;
}

.page-home .home-feature-card--exam:focus-visible {
    outline-color: rgba(191, 219, 254, 0.9);
}

.page-home .home-feature-link {
    width: 100%;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-size: 13px;
    font-weight: 720;
    white-space: nowrap;
}

.page-home .home-feature-card--exam .home-feature-link {
    color: #fff;
}

.page-home .home-feature-card--signs .home-feature-link {
    color: var(--brand-700);
}

.page-home .home-feature-card:hover .home-feature-link > span:last-child,
.page-home .home-feature-card:focus-visible .home-feature-link > span:last-child {
    transform: translateX(3px);
}

.page-home .home-feature-link > span:last-child {
    transition: transform 180ms ease;
}

.page-home .home-exam-blueprint {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 13px;
    margin-top: 20px;
    padding: 17px;
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 18px;
    color: var(--navy-950);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 18px 38px rgba(8, 33, 94, 0.2);
}

.page-home .home-exam-blueprint-head,
.page-home .home-exam-blueprint-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.page-home .home-exam-blueprint-head {
    color: #667085;
    font-size: 10px;
    font-weight: 700;
}

.page-home .home-exam-blueprint-head strong {
    color: var(--brand-700);
    font-size: 11px;
}

.page-home .home-exam-distribution {
    display: grid;
    gap: 8px;
}

.page-home .home-exam-distribution > span {
    display: grid;
    grid-template-columns: minmax(90px, 1fr) minmax(72px, 1.15fr) 22px;
    gap: 9px;
    align-items: center;
    color: #52647b;
    font-size: 9.5px;
}

.page-home .home-exam-distribution b,
.page-home .home-exam-distribution strong {
    font-weight: 680;
}

.page-home .home-exam-distribution strong {
    color: var(--navy-900);
    text-align: right;
}

.page-home .home-exam-distribution i {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8eef7;
}

.page-home .home-exam-distribution em {
    width: var(--exam-share);
    height: 100%;
    display: block;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
    transform-origin: left center;
    transition: width 260ms ease, filter 180ms ease;
}

.page-home .home-feature-card--exam:hover .home-exam-distribution em,
.page-home .home-feature-card--exam:focus-visible .home-exam-distribution em {
    filter: saturate(1.18) brightness(1.04);
}

.page-home .home-exam-blueprint-meta {
    padding-top: 11px;
    border-top: 1px solid #e5ebf3;
}

.page-home .home-exam-blueprint-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #52647b;
    font-size: 9.5px;
}

.page-home .home-exam-blueprint-meta svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: var(--brand-600);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.page-home .home-exam-blueprint-meta b {
    font-weight: 680;
}

.page-home .home-proof-list dt {
    font-variant-numeric: tabular-nums;
}

@media (min-width: 901px) {
    .page-home .home-topics {
        padding-top: 36px;
    }
}

@media (max-width: 680px) {
    .page-home .home-exam-blueprint {
        margin-top: 16px;
        padding: 14px;
    }

    .page-home .home-exam-distribution > span {
        grid-template-columns: minmax(82px, 1fr) minmax(64px, 1fr) 20px;
        gap: 7px;
        font-size: 9px;
    }

    .page-home .home-exam-blueprint-meta {
        align-items: flex-start;
    }

    .page-home .home-feature-link {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-home .home-feature-link > span:last-child,
    .page-home .home-exam-distribution em {
        transition: none;
    }
}



/* Home polish v21: refined hero actions, tighter showcase cards and compact section rhythm. */
.page-home .home-actions {
    max-width: 548px;
    gap: 10px;
    margin-top: 24px;
}

.page-home .home-actions form {
    min-width: 0;
}

.page-home .home-primary-action,
.page-home .home-secondary-action {
    min-height: 52px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 760;
    letter-spacing: -0.01em;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.page-home .home-primary-action {
    padding-inline: 20px 15px;
    box-shadow: 0 14px 28px rgba(29, 78, 216, 0.2);
}

.page-home .home-secondary-action {
    padding: 11px 14px 11px 18px;
    border-color: #d4deeb;
    color: #22324a;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.045);
}

.page-home .home-primary-action > span,
.page-home .home-secondary-action > span {
    width: 25px;
    height: 25px;
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    font-size: 13px;
    line-height: 1;
    transition: transform 180ms ease;
}

.page-home .home-primary-action > span {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
}

.page-home .home-secondary-action > span {
    color: var(--brand-700);
    background: #edf5ff;
}

.page-home .home-primary-action:hover,
.page-home .home-secondary-action:hover {
    transform: translateY(-1px);
}

.page-home .home-primary-action:hover > span,
.page-home .home-secondary-action:hover > span {
    transform: translateX(2px);
}

.page-home .home-proof-list {
    margin-top: 18px;
}

@media (min-width: 681px) {
    .page-home .home-actions form {
        flex: 1.08 1 0;
    }

    .page-home .home-primary-action {
        width: 100%;
    }

    .page-home .home-secondary-action {
        flex: 0.92 1 0;
    }
}

@media (min-width: 901px) {
    .page-home .home-hero {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .page-home .home-feature-card {
        min-height: 400px;
        border-radius: 24px;
    }

    .page-home .home-feature-card--exam {
        padding: 22px;
    }

    .page-home .home-feature-card--signs {
        padding: 21px;
    }

    .page-home .home-feature-copy {
        margin-top: 16px;
    }

    .page-home .home-feature-copy h2 {
        font-size: clamp(26px, 1.9vw, 30px);
        font-weight: 780;
        line-height: 1.04;
        letter-spacing: -0.04em;
        text-wrap: balance;
    }

    .page-home .home-feature-card--exam .home-feature-copy h2 {
        max-width: 270px;
    }

    .page-home .home-feature-copy p {
        max-width: 310px;
        margin-top: 9px;
        font-size: 12.5px;
        line-height: 1.48;
    }

    .page-home .home-exam-blueprint {
        gap: 10px;
        margin-top: 15px;
        padding: 14px;
        border-radius: 16px;
    }

    .page-home .home-exam-distribution {
        gap: 6px;
    }

    .page-home .home-exam-blueprint-meta {
        padding-top: 8px;
    }

    .page-home .home-feature-bottom {
        gap: 5px;
        padding-top: 11px;
    }

    .page-home .home-feature-link {
        min-height: 32px;
        font-size: 12.5px;
    }

    .page-home .home-sign-deck {
        min-height: 178px;
        margin-top: 13px;
    }

    .page-home .home-sign-deck-card--back {
        width: 101px;
        height: 119px;
    }

    .page-home .home-sign-deck-card--middle {
        width: 105px;
        height: 125px;
    }

    .page-home .home-sign-deck-card--front {
        width: 126px;
        height: 151px;
        padding: 10px 10px 9px;
    }

    .page-home .home-sign-deck-card--front img {
        width: 78px;
        height: 78px;
    }

    .page-home .home-topics {
        padding-top: 48px;
        padding-bottom: 50px;
    }

    .page-home .home-study {
        padding-top: 52px;
        padding-bottom: 54px;
    }

    .page-home .home-study .home-heading-row {
        margin-bottom: 22px;
    }

    .page-home .home-final {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .page-home .home-final-panel {
        min-height: 180px;
        padding: 32px 42px;
    }

    .page-home .home-benefits {
        padding-top: 50px;
        padding-bottom: 58px;
    }

    .page-home .home-benefits-layout {
        gap: 24px;
    }
}

@media (max-width: 680px) {
    .page-home .home-primary-action,
    .page-home .home-secondary-action {
        min-height: 50px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-home .home-primary-action,
    .page-home .home-secondary-action,
    .page-home .home-primary-action > span,
    .page-home .home-secondary-action > span {
        transition: none;
    }
}

/* --- Rehber ana sayfası v23: aşama renkleri ve doğal etiketler --- */
.guide-index-page .guide-pathfinder-grid > a {
    position: relative;
    overflow: hidden;
    border-width: 1px;
}

.guide-index-page .guide-pathfinder-grid > a::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    border-radius: 16px 0 0 16px;
    background: var(--path-accent, var(--guide-brand));
}

.guide-index-page .guide-pathfinder-grid > a:nth-child(1) {
    --path-accent: #2f7df4;
    --path-soft: #eef6ff;
    --path-border: #bed8ff;
    background: linear-gradient(135deg, #ffffff 38%, #eef6ff 100%);
    border-color: var(--path-border);
}

.guide-index-page .guide-pathfinder-grid > a:nth-child(2) {
    --path-accent: #d97706;
    --path-soft: #fff7e8;
    --path-border: #f2d2a3;
    background: linear-gradient(135deg, #ffffff 38%, #fff7e8 100%);
    border-color: var(--path-border);
}

.guide-index-page .guide-pathfinder-grid > a:nth-child(3) {
    --path-accent: #149567;
    --path-soft: #edf9f3;
    --path-border: #bde4d1;
    background: linear-gradient(135deg, #ffffff 38%, #edf9f3 100%);
    border-color: var(--path-border);
}

.guide-index-page .guide-pathfinder-grid > a:hover {
    border-color: var(--path-accent, #b8d2ff);
}

.guide-index-page .guide-pathfinder-grid > a .guide-pathfinder-icon {
    background: var(--path-soft, var(--guide-soft-blue));
    color: var(--path-accent, var(--guide-brand));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--path-accent, var(--guide-brand)) 18%, transparent);
}

.guide-index-page .guide-pathfinder-grid > a .guide-pathfinder-arrow {
    border-color: color-mix(in srgb, var(--path-accent, var(--guide-brand)) 24%, #d6e4f8);
    color: var(--path-accent, var(--guide-brand));
    background: rgba(255, 255, 255, 0.76);
}

.guide-index-page .guide-pathfinder-grid > a:hover .guide-pathfinder-arrow {
    background: var(--path-soft, var(--guide-soft-blue));
}

.guide-index-page .guide-directory-card {
    --directory-accent: #2f7df4;
    --directory-soft: #eef6ff;
    position: relative;
    overflow: hidden;
    border-color: color-mix(in srgb, var(--directory-accent) 22%, #dce7f4);
    background: linear-gradient(145deg, #ffffff 42%, var(--directory-soft) 100%);
}

.guide-index-page .guide-directory-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: var(--directory-accent);
    opacity: 0.82;
}

.guide-index-page .guide-directory-card:nth-child(2) {
    --directory-accent: #7c5ce7;
    --directory-soft: #f4f1ff;
}

.guide-index-page .guide-directory-card:nth-child(3) {
    --directory-accent: #d97706;
    --directory-soft: #fff7e8;
}

.guide-index-page .guide-directory-card:nth-child(4) {
    --directory-accent: #149567;
    --directory-soft: #edf9f3;
}

.guide-index-page .guide-directory-card:nth-child(5) {
    --directory-accent: #df4f7f;
    --directory-soft: #fff1f6;
}

.guide-index-page .guide-directory-card:hover {
    border-color: var(--directory-accent);
    box-shadow: 0 18px 38px color-mix(in srgb, var(--directory-accent) 12%, transparent);
}

.guide-index-page .guide-directory-card .guide-directory-index {
    background: var(--directory-soft);
    color: var(--directory-accent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--directory-accent) 18%, transparent);
}

.guide-index-page .guide-directory-card .guide-directory-arrow {
    border-color: color-mix(in srgb, var(--directory-accent) 24%, #d6e4f8);
    color: var(--directory-accent);
    background: rgba(255, 255, 255, 0.78);
}

.guide-index-page .guide-directory-card:hover .guide-directory-arrow {
    background: var(--directory-soft);
}

@media (max-width: 680px) {
    .guide-index-page .guide-pathfinder-grid > a::before {
        width: 3px;
    }
}

/* Home spacing/color v26: preserve global alignment and guide colors; fix hero contrast and section rhythm. */
.page-home .home-feature-card--exam .home-feature-copy h2 {
    color: #ffffff;
    text-shadow: 0 1px 1px rgba(8, 33, 94, 0.10);
}

@media (min-width: 901px) {
    .page-home .home-topics {
        padding-top: 22px;
        padding-bottom: 34px;
    }

    .page-home .home-study {
        padding-top: 24px;
        padding-bottom: 36px;
    }

    .page-home .home-final {
        padding-top: 24px;
        padding-bottom: 22px;
    }

    .page-home .home-benefits {
        padding-top: 24px;
        padding-bottom: 42px;
    }
}

/* ========================================================================== */
/* Trust, legal and contact pages — v27                                       */
/* ========================================================================== */

.trust-hero {
    padding: 52px 0 44px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 82% 18%, rgba(37, 99, 235, 0.11), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.95));
}

.trust-hero-inner {
    max-width: 1040px;
}

.trust-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--ink-500);
    font-size: 13px;
    font-weight: 760;
}

.trust-breadcrumb a {
    color: var(--brand-700);
}

.trust-breadcrumb a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.trust-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.trust-hero-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid #cfe0ff;
    border-radius: 999px;
    color: var(--brand-700);
    background: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    font-weight: 820;
}

.trust-hero h1 {
    max-width: 820px;
    margin: 0 0 14px;
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.03;
    letter-spacing: -0.045em;
}

.trust-hero p {
    max-width: 800px;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
}

.trust-section {
    padding: 42px 0 66px;
    background: #fff;
}

.trust-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 30px;
    align-items: start;
    max-width: 1120px;
}

.trust-sidebar {
    position: sticky;
    top: 94px;
    display: grid;
    gap: 14px;
}

.trust-sidebar-card,
.contact-direct-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(16, 24, 40, 0.06);
}

.trust-sidebar-label {
    display: block;
    padding: 14px 15px 9px;
    color: var(--ink-500);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.trust-sidebar-card nav {
    display: grid;
    padding: 4px 7px 8px;
}

.trust-sidebar-card nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 40px;
    padding: 8px 9px;
    border-radius: 10px;
    color: var(--ink-700);
    font-size: 13px;
    font-weight: 720;
    transition: color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.trust-sidebar-card nav a:hover {
    color: var(--brand-700);
    background: var(--brand-50);
    transform: translateX(2px);
}

.trust-sidebar-card nav a.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
    box-shadow: 0 8px 18px rgba(29, 78, 216, 0.20);
}

.trust-toc nav a {
    min-height: 34px;
    font-size: 12px;
    font-weight: 680;
}

.trust-article,
.contact-main {
    min-width: 0;
}

.trust-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.trust-facts > div {
    min-width: 0;
    padding: 15px 16px;
    border: 1px solid #dbe7f8;
    border-radius: 14px;
    background: linear-gradient(145deg, #fff, #f7faff);
}

.trust-facts span,
.trust-facts strong {
    display: block;
}

.trust-facts span {
    margin-bottom: 4px;
    color: var(--ink-500);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.trust-facts strong {
    overflow-wrap: anywhere;
    color: var(--navy-900);
    font-size: 15px;
    line-height: 1.35;
}

.trust-copy {
    padding: 5px 34px 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(16, 24, 40, 0.06);
}

.trust-copy-section {
    padding: 29px 0;
    border-bottom: 1px solid var(--line);
    scroll-margin-top: 100px;
}

.trust-copy-section:last-child {
    border-bottom: 0;
}

.trust-copy-section h2,
.trust-sources h2,
.trust-feedback h2,
.contact-form-card h2,
.contact-guidance h2 {
    margin: 0 0 12px;
    color: var(--navy-900);
    font-size: 25px;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.trust-copy-section p,
.trust-copy-section li,
.contact-guidance p,
.contact-guidance li {
    color: var(--ink-700);
    font-size: 16px;
    line-height: 1.75;
}

.trust-copy-section p:last-child,
.contact-guidance p:last-child {
    margin-bottom: 0;
}

.trust-copy-section ul,
.contact-guidance ul {
    display: grid;
    gap: 9px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.trust-copy-section li,
.contact-guidance li {
    position: relative;
    padding-left: 23px;
}

.trust-copy-section li::before,
.contact-guidance li::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 0.72em;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--brand-500);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

.trust-note {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 11px;
    align-items: start;
    margin-top: 18px;
    padding: 14px 15px;
    border: 1px solid #c9ddff;
    border-radius: 13px;
    background: #f4f8ff;
}

.trust-note > span {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: #fff;
    background: var(--brand-600);
    font-weight: 900;
}

.trust-note p {
    margin: 1px 0 0;
    font-size: 14px;
    line-height: 1.65;
}

.trust-sources {
    margin-top: 16px;
    padding: 28px 30px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #f8fbff;
}

.trust-section-kicker {
    display: block;
    margin-bottom: 8px;
    color: var(--brand-700);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.trust-source-list {
    display: grid;
    gap: 8px;
}

.trust-source-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 13px;
    border: 1px solid #dce7f5;
    border-radius: 11px;
    color: var(--brand-700);
    background: #fff;
    font-size: 14px;
    font-weight: 740;
}

.trust-source-list a:hover {
    border-color: #b8d0f8;
    background: var(--brand-50);
}

.trust-feedback {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    margin-top: 16px;
    padding: 26px 28px;
    border-radius: 18px;
    color: #fff;
    background:
        radial-gradient(circle at 86% 50%, rgba(255, 255, 255, 0.14), transparent 29%),
        linear-gradient(135deg, #102b66, #1557e8);
    box-shadow: 0 18px 40px rgba(21, 87, 232, 0.20);
}

.trust-feedback .trust-section-kicker,
.trust-feedback h2,
.trust-feedback p {
    color: #fff;
}

.trust-feedback h2 {
    margin-bottom: 7px;
}

.trust-feedback p {
    margin: 0;
    opacity: 0.82;
}

.trust-feedback .button {
    color: var(--brand-700);
    background: #fff;
    border-color: #fff;
    white-space: nowrap;
}

/* Contact form */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.7fr);
    gap: 16px;
    align-items: start;
}

.contact-form-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(16, 24, 40, 0.07);
    scroll-margin-top: 100px;
}

.contact-form-head p {
    margin: 0 0 22px;
    color: var(--muted);
}

.contact-form {
    display: grid;
    gap: 16px;
}

.contact-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.contact-form label {
    display: grid;
    gap: 7px;
    color: var(--navy-900);
    font-size: 13px;
    font-weight: 780;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 1px solid #d6e0ec;
    border-radius: 11px;
    background: #fbfdff;
    font-size: 15px;
}

.contact-form textarea {
    min-height: 180px;
    resize: vertical;
    line-height: 1.6;
}

.contact-form [aria-invalid="true"] {
    border-color: #e08181;
    background: #fffafa;
}

.field-error {
    color: #b42318;
    font-size: 12px;
    font-weight: 700;
}

.contact-field-help {
    color: var(--ink-500);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}

.contact-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-top: 2px;
}

.contact-form-footer p {
    max-width: 500px;
    margin: 0;
    color: var(--ink-500);
    font-size: 12px;
    line-height: 1.55;
}

.contact-form-footer p a {
    color: var(--brand-700);
    font-weight: 760;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.contact-form-footer .button {
    flex: 0 0 auto;
}

.contact-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.contact-status {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin: 0 0 18px;
    padding: 13px 14px;
    border-radius: 12px;
}

.contact-status span {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    font-weight: 900;
}

.contact-status p {
    margin: 2px 0 0;
    font-size: 14px;
    line-height: 1.55;
}

.contact-status.is-success {
    border: 1px solid #b9e4d4;
    color: #0e6b50;
    background: #effbf7;
}

.contact-status.is-success span {
    background: #15906e;
}

.contact-status.is-error {
    border: 1px solid #f0c3c3;
    color: #9b2c2c;
    background: #fff5f5;
}

.contact-status.is-error span {
    background: #d45555;
}

.contact-guidance {
    display: grid;
    gap: 12px;
}

.contact-guidance section {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fbfdff;
}

.contact-guidance section:nth-child(2) {
    background: #fffaf3;
    border-color: #f2d8b5;
}

.contact-guidance section:nth-child(3) {
    background: #f3fbf8;
    border-color: #c9e7dc;
}

.contact-guidance h2 {
    font-size: 19px;
}

.contact-guidance p,
.contact-guidance li {
    font-size: 14px;
    line-height: 1.65;
}

.contact-direct-card {
    padding-bottom: 14px;
}

.contact-direct-card strong,
.contact-direct-card p,
.contact-direct-card a {
    display: block;
    margin-left: 15px;
    margin-right: 15px;
}

.contact-direct-card strong {
    overflow-wrap: anywhere;
    color: var(--navy-900);
    font-size: 14px;
}

.contact-direct-card p {
    margin-top: 7px;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.contact-direct-card a {
    color: var(--brand-700);
    font-size: 13px;
    font-weight: 800;
}

/* Footer additions */

.footer-cookie-button {
    appearance: none;
    width: fit-content;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font: inherit;
}

.footer-cookie-button:hover {
    color: var(--brand-700);
}

/* Cookie consent */

.cookie-consent {
    position: fixed;
    z-index: 70;
    left: 50%;
    bottom: 18px;
    width: min(980px, calc(100% - 32px));
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    padding: 18px 20px;
    border: 1px solid #cbdaf1;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 70px rgba(16, 24, 40, 0.22);
    transform: translateX(-50%);
    backdrop-filter: blur(16px);
}

.cookie-consent-copy strong {
    display: block;
    margin-bottom: 4px;
    font-size: 16px;
}

.cookie-consent-copy p {
    margin: 0 0 5px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.cookie-consent-copy a {
    color: var(--brand-700);
    font-size: 12px;
    font-weight: 780;
}

.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.cookie-modal {
    position: fixed;
    z-index: 90;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
}

.cookie-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 18, 32, 0.58);
    backdrop-filter: blur(5px);
}

.cookie-modal-card {
    position: relative;
    width: min(580px, 100%);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.70);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(11, 18, 32, 0.32);
}

.cookie-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 23px 24px 18px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(145deg, #f4f8ff, #fff);
}

.cookie-modal-head span {
    color: var(--brand-700);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cookie-modal-head h2 {
    margin: 4px 0 0;
    font-size: 28px;
    letter-spacing: -0.035em;
}

.cookie-modal-head > button {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink-700);
    background: #fff;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.cookie-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin: 0 24px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.cookie-option strong {
    display: block;
    margin-bottom: 4px;
}

.cookie-option p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.cookie-required {
    flex: 0 0 auto;
    padding: 6px 9px;
    border-radius: 999px;
    color: #0f6a50;
    background: #eaf8f3;
    font-size: 11px;
    font-weight: 820;
}

.cookie-option input[type="checkbox"] {
    appearance: none;
    width: 48px;
    height: 27px;
    flex: 0 0 auto;
    padding: 3px;
    border: 0;
    border-radius: 999px;
    background: #cbd5e1;
    cursor: pointer;
    transition: background-color 160ms ease;
}

.cookie-option input[type="checkbox"]::before {
    content: "";
    display: block;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.22);
    transition: transform 160ms ease;
}

.cookie-option input[type="checkbox"]:checked {
    background: var(--brand-600);
}

.cookie-option input[type="checkbox"]:checked::before {
    transform: translateX(21px);
}

.cookie-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 18px 24px 22px;
}

.cookie-modal-open {
    overflow: hidden;
}

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

    .trust-sidebar {
        position: static;
        grid-template-columns: 1fr;
    }

    .trust-toc {
        display: none;
    }

    .trust-sidebar-card nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-guidance {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .cookie-consent {
        grid-template-columns: 1fr;
    }

    .cookie-consent-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .trust-hero {
        padding: 34px 0 30px;
    }

    .trust-hero h1 {
        font-size: 37px;
    }

    .trust-hero p {
        font-size: 16px;
        line-height: 1.65;
    }

    .trust-section {
        padding: 24px 0 42px;
    }

    .trust-layout {
        gap: 18px;
    }

    .trust-sidebar-card nav {
        grid-template-columns: 1fr;
    }

    .trust-facts {
        grid-template-columns: 1fr;
    }

    .trust-copy {
        padding: 0 20px 4px;
        border-radius: 15px;
    }

    .trust-copy-section {
        padding: 23px 0;
    }

    .trust-copy-section h2,
    .trust-sources h2,
    .trust-feedback h2,
    .contact-form-card h2 {
        font-size: 22px;
    }

    .trust-copy-section p,
    .trust-copy-section li {
        font-size: 15px;
        line-height: 1.7;
    }

    .trust-sources,
    .contact-form-card {
        padding: 21px 19px;
        border-radius: 15px;
    }

    .trust-feedback {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 23px 20px;
    }

    .trust-feedback .button {
        width: 100%;
        justify-content: center;
    }

    .contact-form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .contact-form-footer .button {
        width: 100%;
        justify-content: center;
    }

    .contact-guidance {
        grid-template-columns: 1fr;
    }

    .cookie-consent {
        bottom: 10px;
        width: calc(100% - 20px);
        padding: 16px;
        border-radius: 14px;
    }

    .cookie-consent-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .cookie-consent-actions .button {
        width: 100%;
        justify-content: center;
    }

    .cookie-modal {
        align-items: end;
        padding: 0;
    }

    .cookie-modal-card {
        width: 100%;
        max-height: 88vh;
        overflow-y: auto;
        border-radius: 18px 18px 0 0;
    }

    .cookie-modal-head,
    .cookie-modal-actions {
        padding-left: 18px;
        padding-right: 18px;
    }

    .cookie-option {
        margin-left: 18px;
        margin-right: 18px;
    }

    .cookie-modal-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .cookie-modal-actions .button {
        width: 100%;
        justify-content: center;
    }
}

.cookie-consent[hidden],
.cookie-modal[hidden] {
    display: none !important;
}


/* Trust pages and footer polish v28. */
@media (min-width: 901px) {
    .trust-hero-inner {
        max-width: 1120px;
    }

    .trust-hero h1 {
        max-width: 1120px;
        font-size: clamp(42px, 4vw, 54px);
        line-height: 1.02;
        text-wrap: balance;
    }

    .footer-grid.footer-grid-enhanced {
        grid-template-columns: minmax(280px, 1.35fr) repeat(4, minmax(112px, 0.72fr));
        align-items: start;
        column-gap: 34px;
        row-gap: 24px;
    }

    .footer-grid-enhanced .footer-brand,
    .footer-grid-enhanced .footer-links {
        align-self: start;
    }
}

.footer-grid-enhanced .footer-links {
    align-content: start;
    gap: 9px;
}

.footer-grid-enhanced .footer-links strong {
    margin-bottom: 3px;
}

.footer-grid-enhanced .footer-links a,
.footer-grid-enhanced .footer-cookie-button {
    line-height: 1.35;
}

.footer-grid-enhanced .footer-cookie-button {
    color: #667085;
    font-size: 13px;
    font-weight: 720;
}

.footer-grid-enhanced .footer-cookie-button:hover,
.footer-grid-enhanced .footer-cookie-button:focus-visible {
    color: var(--brand-700);
}

@media (max-width: 1180px) and (min-width: 941px) {
    .footer-grid.footer-grid-enhanced {
        grid-template-columns: minmax(235px, 1.2fr) repeat(4, minmax(100px, 0.7fr));
        column-gap: 24px;
    }

    .trust-hero h1 {
        max-width: 100%;
        font-size: clamp(42px, 4.2vw, 51px);
    }
}

@media (max-width: 940px) {
    .footer-grid.footer-grid-enhanced {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
        gap: 28px 24px;
    }

    .footer-grid-enhanced .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .footer-grid.footer-grid-enhanced {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-grid-enhanced .footer-brand {
        grid-column: auto;
    }
}

/* Contact form polish and resilient select control — v30 */
.contact-form select {
    min-height: 46px;
    padding: 10px 44px 10px 13px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--navy-900);
    appearance: none;
    -webkit-appearance: none;
    background-color: #fbfdff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23475467' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    background-size: 18px 18px;
    cursor: pointer;
}

.contact-form select option {
    color: var(--navy-900);
    background: #fff;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    font-weight: 500;
}

.contact-form select:invalid,
.contact-form select option[value=""] {
    color: var(--ink-500);
}

.contact-form select:focus {
    background-color: #fff;
}


/* Sticky footer: short pages keep the footer at the viewport bottom,
   long pages continue to flow normally. */
html,
body {
    min-height: 100%;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

body > main {
    flex: 1 0 auto;
    min-height: 0;
}

body > .site-footer {
    flex: 0 0 auto;
    margin-top: auto;
}


/* Global shell alignment v33.
   Header, page content and footer share the same desktop axis.
   Sticky-footer behaviour remains unchanged. */
body > .site-header,
body > main,
body > .site-footer {
    width: 100%;
    min-width: 0;
}

@media (min-width: 1181px) {
    .shell:not(.narrow) {
        width: min(1240px, calc(100% - 40px));
    }

    .shell.narrow {
        width: min(780px, calc(100% - 40px));
    }
}

@media (min-width: 901px) and (max-width: 1180px) {
    .shell:not(.narrow) {
        width: min(1120px, calc(100% - 40px));
    }

    .shell.narrow {
        width: min(780px, calc(100% - 40px));
    }
}

/* Konu anlatımları tipografi ve başlık hiyerarşisi v35.
   Ana kütüphane, kategori ve konu detaylarında aynı ölçek; daha rafine ağırlıklar kullanılır. */
.lesson-library,
.lesson-category-page,
.lesson-reader-page {
    --lesson-type-page: clamp(36px, 3.15vw, 44px);
    --lesson-type-section: clamp(26px, 2.35vw, 31px);
    --lesson-type-subsection: clamp(23px, 1.9vw, 27px);
    --lesson-type-card: 16px;
    --lesson-type-kicker: 10.5px;
}

/* 1. seviye: sayfanın ana başlığı */
.lesson-library .lesson-library-section:first-child .lesson-library-section-head h2,
.lesson-category-page .lesson-category-heading h1,
.lesson-reader-page .lesson-reader-heading h1 {
    margin: 0;
    max-width: 980px;
    color: var(--navy-900);
    font-family: inherit;
    font-size: var(--lesson-type-page);
    font-weight: 720;
    line-height: 1.08;
    letter-spacing: -.035em;
    text-wrap: balance;
}

/* 2. seviye: sayfa içindeki ana bölümler */
.lesson-library .lesson-library-section--guides .lesson-library-section-head h2,
.lesson-category-page .lesson-category-section-head h2,
.lesson-reader-page .lesson-reader-article h2 {
    margin: 0;
    color: var(--navy-900);
    font-family: inherit;
    font-size: var(--lesson-type-section);
    font-weight: 700;
    line-height: 1.16;
    letter-spacing: -.025em;
    text-wrap: balance;
}

/* Detay metni içinde art arda gelen bölüm başlıklarının ritmi. */
.lesson-reader-page .lesson-reader-article h2 {
    margin-top: 34px;
    margin-bottom: 14px;
}

.lesson-reader-page .lesson-reader-article > h2:first-child {
    margin-top: 0;
}

/* 3. seviye: yan açıklama ve destek başlıkları */
.lesson-library .lesson-library-rail h1 {
    margin-top: 12px;
    font-family: inherit;
    font-size: var(--lesson-type-subsection);
    font-weight: 690;
    line-height: 1.15;
    letter-spacing: -.025em;
    text-wrap: balance;
}

/* Kicker/üst etiketler bütün sayfalarda aynı boyutta. */
.lesson-library .lesson-library-rail-label,
.lesson-library .lesson-library-section-head > div > span,
.lesson-category-page .lesson-category-section-kicker,
.lesson-reader-page .lesson-topic-nav-kicker {
    font-family: inherit;
    font-size: var(--lesson-type-kicker);
    font-weight: 740;
    line-height: 1.2;
    letter-spacing: .085em;
    text-transform: uppercase;
}

/* Ana başlıkların alt açıklamaları aynı ritimde. */
.lesson-category-page .lesson-category-heading p,
.lesson-reader-page .lesson-reader-breadcrumb,
.lesson-library .lesson-library-rail p {
    font-family: inherit;
}

.lesson-category-page .lesson-category-heading p {
    max-width: 760px;
    margin-top: 9px;
    font-size: 14.5px;
    line-height: 1.55;
}

/* Kart ve liste başlıkları: her alt sayfada aynı görsel ağırlık. */
.lesson-library .lesson-module-copy h3,
.lesson-library .lesson-guide-copy strong,
.lesson-category-page .lesson-category-copy strong,
.lesson-reader-page .lesson-topic-nav-list strong {
    font-family: inherit;
    font-size: var(--lesson-type-card);
    font-weight: 680;
    line-height: 1.3;
    letter-spacing: -.01em;
}

.lesson-library .lesson-module-copy h3 {
    margin-top: 4px;
}

.lesson-library .lesson-guide-copy strong {
    display: block;
}

/* Başlık bloklarının üst-alt boşlukları ve hizaları ortaklaştırılır. */
.lesson-category-page .lesson-category-header,
.lesson-reader-page .lesson-reader-header {
    padding-top: clamp(20px, 2vw, 26px);
    padding-bottom: clamp(20px, 2vw, 25px);
}

.lesson-category-page .lesson-category-heading,
.lesson-reader-page .lesson-reader-heading {
    margin-top: 10px;
}

.lesson-category-page .lesson-category-content,
.lesson-reader-page .lesson-reader-layout {
    padding-top: clamp(22px, 2.5vw, 30px);
}

.lesson-library .lesson-library-section-head,
.lesson-category-page .lesson-category-section-head {
    margin-bottom: 18px;
}

/* Küçük ekranlarda da aynı hiyerarşi korunur. */
@media (max-width: 900px) {
    .lesson-library,
    .lesson-category-page,
    .lesson-reader-page {
        --lesson-type-page: clamp(33px, 5.5vw, 39px);
        --lesson-type-section: clamp(24px, 4vw, 28px);
        --lesson-type-subsection: 23px;
        --lesson-type-card: 15.5px;
    }
}

@media (max-width: 680px) {
    .lesson-library,
    .lesson-category-page,
    .lesson-reader-page {
        --lesson-type-page: clamp(29px, 8.6vw, 35px);
        --lesson-type-section: clamp(22px, 6.4vw, 26px);
        --lesson-type-subsection: 22px;
        --lesson-type-card: 15px;
        --lesson-type-kicker: 10px;
    }

    .lesson-category-page .lesson-category-header,
    .lesson-reader-page .lesson-reader-header {
        padding-top: 15px;
        padding-bottom: 16px;
    }

    .lesson-category-page .lesson-category-heading,
    .lesson-reader-page .lesson-reader-heading {
        margin-top: 8px;
    }

    .lesson-category-page .lesson-category-content,
    .lesson-reader-page .lesson-reader-layout {
        padding-top: 20px;
    }

    .lesson-reader-page .lesson-reader-article h2 {
        margin-top: 28px;
        margin-bottom: 11px;
    }
}

/* Yardımcı başlıklar ve alt çağrı alanları için ortak alt seviye. */
.lesson-library .lesson-library-cta h2 {
    margin: 5px 0 0;
    font-family: inherit;
    font-size: var(--lesson-type-subsection);
    font-weight: 690;
    line-height: 1.15;
    letter-spacing: -.025em;
    text-wrap: balance;
}

.lesson-reader-page .lesson-topic-nav-head strong,
.lesson-reader-page .lesson-page-toc > strong,
.lesson-reader-page .lesson-category-switcher > strong {
    font-family: inherit;
    font-size: 14px;
    font-weight: 690;
    line-height: 1.32;
    letter-spacing: -.005em;
}

@media (max-width: 680px) {
    .lesson-reader-page .lesson-topic-nav-head strong,
    .lesson-reader-page .lesson-page-toc > strong,
    .lesson-reader-page .lesson-category-switcher > strong {
        font-size: 13.5px;
    }
}

/* Premium exam and traffic-sign hubs v36. Quiz/deck flows are intentionally untouched. */
.exam-premium-page,
.traffic-premium-page {
    --premium-ink: #0d1b34;
    --premium-muted: #5d6f87;
    --premium-line: #dce5f2;
    --premium-blue: #1756e8;
    --premium-blue-deep: #103aab;
    color: var(--premium-ink);
}

.exam-premium-hero,
.traffic-premium-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #dce5f1;
    background:
        radial-gradient(circle at 84% 20%, rgba(72, 138, 255, .17), transparent 29%),
        radial-gradient(circle at 60% 92%, rgba(88, 190, 255, .10), transparent 25%),
        linear-gradient(135deg, #fbfdff 0%, #f5f9ff 48%, #eef5ff 100%);
}

.exam-premium-hero::after,
.traffic-premium-hero::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: min(46vw, 760px);
    height: 100%;
    opacity: .32;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(43, 91, 185, .22) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(90deg, transparent 0%, #000 44%, #000 100%);
}

.exam-premium-hero-grid,
.traffic-premium-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(430px, .98fr);
    gap: clamp(48px, 6vw, 82px);
    align-items: center;
    min-height: 590px;
    padding-top: 72px;
    padding-bottom: 72px;
}

.exam-premium-copy,
.traffic-premium-copy {
    max-width: 630px;
}

.exam-premium-kicker,
.traffic-premium-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 31px;
    padding: 6px 11px;
    border: 1px solid #bfd3fb;
    border-radius: 999px;
    color: #1857cf;
    background: rgba(255, 255, 255, .76);
    box-shadow: 0 8px 22px rgba(38, 84, 164, .08);
    font-size: 11px;
    font-weight: 760;
    letter-spacing: .035em;
}

.exam-premium-kicker i,
.traffic-premium-kicker i {
    width: 8px;
    height: 8px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #2367ef;
    box-shadow: 0 0 0 4px rgba(35, 103, 239, .12);
}

.exam-premium-copy h1,
.traffic-premium-copy h1 {
    max-width: 650px;
    margin: 19px 0 18px;
    color: var(--premium-ink);
    font-size: clamp(45px, 4.6vw, 66px);
    font-weight: 720;
    line-height: 1.01;
    letter-spacing: -.055em;
    text-wrap: balance;
}

.exam-premium-copy h1 span,
.traffic-premium-copy h1 span {
    color: var(--premium-blue);
}

.exam-premium-copy > p,
.traffic-premium-copy > p {
    max-width: 585px;
    margin: 0;
    color: var(--premium-muted);
    font-size: 16.5px;
    line-height: 1.68;
}

.exam-premium-actions,
.traffic-premium-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 27px;
}

.exam-premium-actions form,
.exam-premium-cta form {
    margin: 0;
}

.exam-premium-actions .button,
.traffic-premium-actions .button {
    min-height: 47px;
    padding-inline: 17px;
}

.exam-premium-actions .button span,
.traffic-premium-actions .button span,
.exam-premium-cta .button span {
    margin-left: 6px;
    font-size: 17px;
}

.exam-premium-facts,
.traffic-premium-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 25px;
    border: 1px solid rgba(205, 219, 240, .92);
    border-radius: 16px;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 14px 30px rgba(38, 72, 122, .06);
    backdrop-filter: blur(8px);
}

.exam-premium-facts span,
.traffic-premium-facts span {
    position: relative;
    min-width: 116px;
    padding: 12px 15px;
    color: #697a91;
    font-size: 11.5px;
}

.exam-premium-facts span + span::before,
.traffic-premium-facts span + span::before {
    content: "";
    position: absolute;
    top: 11px;
    bottom: 11px;
    left: 0;
    width: 1px;
    background: #dbe4f0;
}

.exam-premium-facts strong,
.traffic-premium-facts strong {
    display: block;
    margin-bottom: 1px;
    color: #10233f;
    font-size: 17px;
    font-weight: 720;
}

.exam-premium-notice {
    max-width: 580px;
    margin-top: 18px;
}

.exam-premium-showcase,
.traffic-premium-preview {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 29px;
    box-shadow: 0 34px 70px rgba(28, 73, 150, .22);
}

.exam-premium-showcase {
    min-height: 470px;
    padding: 25px;
    color: #fff;
    background:
        radial-gradient(circle at 92% 7%, rgba(111, 191, 255, .75), transparent 31%),
        radial-gradient(circle at 8% 100%, rgba(40, 103, 224, .82), transparent 44%),
        linear-gradient(145deg, #173ca8 0%, #1358e5 57%, #2274f4 100%);
}

.exam-premium-showcase::before {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -112px;
    width: 320px;
    height: 320px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 50%;
    box-shadow: 0 0 0 58px rgba(255,255,255,.045), 0 0 0 116px rgba(255,255,255,.025);
}

.exam-premium-showcase-head,
.exam-premium-showcase-foot,
.exam-premium-score-card {
    position: relative;
    z-index: 1;
}

.exam-premium-showcase-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.exam-premium-showcase-head > div > span,
.traffic-premium-preview-head > div > span {
    display: block;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, .66);
    font-size: 10px;
    font-weight: 780;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.exam-premium-showcase-head strong {
    display: block;
    max-width: 280px;
    font-size: 21px;
    font-weight: 680;
    line-height: 1.2;
}

.exam-premium-live-dot {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 9px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    color: rgba(255,255,255,.9);
    background: rgba(255,255,255,.11);
    font-size: 10px;
    font-weight: 760;
}

.exam-premium-live-dot i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ce6ff;
    box-shadow: 0 0 0 4px rgba(156,230,255,.12);
}

.exam-premium-score-card {
    margin-top: 27px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,.26);
    border-radius: 21px;
    color: #132849;
    background: rgba(255,255,255,.95);
    box-shadow: 0 18px 42px rgba(8, 41, 111, .2);
}

.exam-premium-score-top,
.exam-premium-score-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.exam-premium-score-top {
    padding-bottom: 15px;
    border-bottom: 1px solid #e6edf7;
    color: #687990;
    font-size: 11px;
    font-weight: 700;
}

.exam-premium-score-top strong {
    color: #1358dc;
    font-size: 12px;
}

.exam-premium-bars {
    display: grid;
    gap: 11px;
    margin: 18px 0;
}

.exam-premium-bars > div {
    display: grid;
    grid-template-columns: 116px minmax(70px, 1fr) 24px;
    gap: 10px;
    align-items: center;
    color: #506078;
    font-size: 10.5px;
    font-weight: 650;
}

.exam-premium-bars i {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #e7edf6;
}

.exam-premium-bars b {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2668ef, #54a1ff);
}

.exam-premium-bars em {
    color: #203653;
    font-style: normal;
    font-weight: 760;
    text-align: right;
}

.exam-premium-score-bottom {
    padding-top: 15px;
    border-top: 1px solid #e6edf7;
    color: #63748a;
    font-size: 10px;
}

.exam-premium-score-bottom span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.exam-premium-score-bottom i {
    color: #2366e9;
    font-style: normal;
}

.exam-premium-showcase-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 22px;
}

.exam-premium-showcase-foot p {
    max-width: 235px;
    margin: 0;
    color: rgba(255,255,255,.76);
    font-size: 11.5px;
    line-height: 1.5;
}

.exam-premium-showcase-foot button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    color: #fff;
    background: transparent;
    font: inherit;
    font-size: 12px;
    font-weight: 760;
    cursor: pointer;
}

.exam-premium-showcase-foot button:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.exam-premium-route,
.traffic-premium-summary {
    border-bottom: 1px solid #e1e8f1;
    background: #fff;
}

.exam-premium-route-inner {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 50px;
    align-items: center;
    padding-top: 38px;
    padding-bottom: 38px;
}

.exam-premium-route-title > span,
.exam-premium-section-head > div > span,
.exam-premium-cta-inner > div > span,
.traffic-premium-section-head > div > span,
.traffic-premium-method-copy > span {
    color: #1c5bd7;
    font-size: 10.5px;
    font-weight: 790;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.exam-premium-route-title h2 {
    margin: 8px 0 0;
    color: #13243d;
    font-size: 26px;
    font-weight: 690;
    line-height: 1.14;
    letter-spacing: -.032em;
}

.exam-premium-route-steps,
.traffic-premium-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.exam-premium-route-steps article,
.traffic-premium-summary-grid article {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 13px;
    align-items: start;
    min-width: 0;
}

.exam-premium-route-steps article > span,
.traffic-premium-summary-grid article > span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid #d1def1;
    border-radius: 12px;
    color: #1c5bd8;
    background: #f5f8ff;
    font-size: 10px;
    font-weight: 800;
}

.exam-premium-route-steps strong,
.traffic-premium-summary-grid strong {
    display: block;
    margin: 1px 0 5px;
    color: #17283f;
    font-size: 13.5px;
    font-weight: 720;
}

.exam-premium-route-steps p,
.traffic-premium-summary-grid p {
    margin: 0;
    color: #66778c;
    font-size: 11.5px;
    line-height: 1.5;
}

.exam-premium-categories,
.traffic-premium-categories {
    padding-top: 64px;
    padding-bottom: 70px;
}

.exam-premium-section-head,
.traffic-premium-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 24px;
}

.exam-premium-section-head h2,
.traffic-premium-section-head h2 {
    margin: 8px 0 7px;
    color: #102038;
    font-size: clamp(31px, 3vw, 40px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.04em;
}

.exam-premium-section-head p,
.traffic-premium-section-head p {
    max-width: 650px;
    margin: 0;
    color: #687a8f;
    font-size: 14px;
    line-height: 1.58;
}

.exam-premium-section-note,
.traffic-premium-section-count {
    flex: 0 0 auto;
    margin-bottom: 6px;
    padding: 7px 10px;
    border: 1px solid #dce5f1;
    border-radius: 999px;
    color: #667890;
    background: #f8faff;
    font-size: 10.5px;
    font-weight: 700;
}

.exam-premium-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
}

.exam-premium-category {
    --cat-accent: #2d78dd;
    --cat-soft: #edf7ff;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 310px;
    padding: 19px;
    overflow: hidden;
    border: 1px solid #d7e7f7;
    border-radius: 20px;
    color: inherit;
    background: linear-gradient(145deg, #fff 10%, var(--cat-soft) 100%);
    box-shadow: 0 14px 34px rgba(36, 72, 114, .07);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.exam-premium-category::after {
    content: "";
    position: absolute;
    right: -44px;
    bottom: -58px;
    width: 136px;
    height: 136px;
    border: 1px solid color-mix(in srgb, var(--cat-accent) 20%, transparent);
    border-radius: 50%;
    box-shadow: 0 0 0 28px color-mix(in srgb, var(--cat-accent) 4%, transparent);
}

.exam-premium-category:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--cat-accent) 38%, #dce5f1);
    box-shadow: 0 22px 45px rgba(34, 71, 114, .13);
}

.exam-premium-category--traffic { --cat-accent: #2c7be5; --cat-soft: #edf7ff; }
.exam-premium-category--first-aid { --cat-accent: #df527a; --cat-soft: #fff0f4; }
.exam-premium-category--engine { --cat-accent: #d97b18; --cat-soft: #fff4e6; }
.exam-premium-category--ethics { --cat-accent: #159b6d; --cat-soft: #ecfaf4; }

.exam-premium-category-top,
.exam-premium-category-foot {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.exam-premium-category-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid color-mix(in srgb, var(--cat-accent) 25%, #fff);
    border-radius: 13px;
    color: var(--cat-accent);
    background: rgba(255,255,255,.72);
}

.exam-premium-category-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.exam-premium-category-number {
    color: color-mix(in srgb, var(--cat-accent) 70%, #8793a5);
    font-size: 11px;
    font-weight: 780;
}

.exam-premium-category-label {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: 24px;
    color: var(--cat-accent);
    font-size: 10px;
    font-weight: 780;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.exam-premium-category h3 {
    position: relative;
    z-index: 1;
    margin: 9px 0 9px;
    color: #13243d;
    font-size: 20px;
    font-weight: 690;
    line-height: 1.16;
    letter-spacing: -.025em;
}

.exam-premium-category p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #64768c;
    font-size: 12.5px;
    line-height: 1.55;
}

.exam-premium-category-foot {
    margin-top: auto;
    padding-top: 22px;
    color: #6b7c90;
    font-size: 10.5px;
}

.exam-premium-category-foot strong {
    color: var(--cat-accent);
    font-size: 11.5px;
    font-weight: 760;
}

.exam-premium-category-foot b {
    display: inline-block;
    margin-left: 4px;
    font-size: 16px;
    transition: transform 180ms ease;
}

.exam-premium-category:hover .exam-premium-category-foot b {
    transform: translateX(3px);
}

.exam-premium-cta {
    padding: 0 0 68px;
}

.exam-premium-cta-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 38px;
    overflow: hidden;
    padding: 32px 36px;
    border-radius: 24px;
    color: #fff;
    background:
        radial-gradient(circle at 87% 50%, rgba(65, 145, 255, .5), transparent 25%),
        linear-gradient(115deg, #102b75 0%, #1441b3 52%, #1d67ec 100%);
    box-shadow: 0 25px 55px rgba(21, 64, 153, .18);
}

.exam-premium-cta-inner::after {
    content: "";
    position: absolute;
    right: 115px;
    width: 190px;
    height: 190px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
    box-shadow: 0 0 0 38px rgba(255,255,255,.04);
}

.exam-premium-cta-inner > div,
.exam-premium-cta-inner form {
    position: relative;
    z-index: 1;
}

.exam-premium-cta-inner > div > span {
    color: #a9c8ff;
}

.exam-premium-cta h2 {
    max-width: 670px;
    margin: 7px 0 7px;
    font-size: 30px;
    font-weight: 680;
    line-height: 1.1;
    letter-spacing: -.035em;
}

.exam-premium-cta p {
    margin: 0;
    color: rgba(255,255,255,.72);
    font-size: 12.5px;
}

.exam-premium-cta .button {
    min-height: 46px;
    color: #154cb6;
    border-color: #fff;
    background: #fff;
    white-space: nowrap;
}

/* Traffic signs hub */
.traffic-premium-preview {
    min-height: 485px;
    padding: 24px;
    border-color: #c9dcfb;
    background:
        radial-gradient(circle at 88% 12%, rgba(76, 148, 255, .23), transparent 27%),
        linear-gradient(150deg, rgba(255,255,255,.96), rgba(239,246,255,.94));
}

.traffic-premium-preview::before {
    content: "";
    position: absolute;
    inset: auto -85px -105px auto;
    width: 290px;
    height: 290px;
    border: 1px solid rgba(47, 103, 219, .11);
    border-radius: 50%;
    box-shadow: 0 0 0 54px rgba(47, 103, 219, .035);
}

.traffic-premium-preview-head,
.traffic-premium-preview-foot,
.traffic-premium-card-stage,
.traffic-premium-preview-actions {
    position: relative;
    z-index: 1;
}

.traffic-premium-preview-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.traffic-premium-preview-head > div > span {
    color: #3771d7;
}

.traffic-premium-preview-head strong {
    display: block;
    max-width: 270px;
    color: #13243d;
    font-size: 21px;
    font-weight: 690;
    line-height: 1.2;
}

.traffic-premium-preview-head > span {
    padding: 6px 9px;
    border: 1px solid #d5e2f6;
    border-radius: 999px;
    color: #52709c;
    background: rgba(255,255,255,.76);
    font-size: 10px;
    font-weight: 760;
}

.traffic-premium-card-stage {
    display: grid;
    place-items: center;
    min-height: 284px;
    margin-top: 10px;
}

.traffic-premium-card {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 224px;
    height: 252px;
    padding: 17px;
    border: 1px solid #dbe5f1;
    border-radius: 22px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 19px 40px rgba(28, 70, 128, .15);
}

.traffic-premium-card--back {
    transform: translate(42px, 2px) rotate(7deg) scale(.9);
    opacity: .58;
}

.traffic-premium-card--middle {
    transform: translate(-35px, 5px) rotate(-6deg) scale(.94);
    opacity: .76;
}

.traffic-premium-card--front {
    z-index: 2;
}

.traffic-premium-card--back img {
    width: 128px;
    height: 128px;
    object-fit: contain;
}

.traffic-premium-card--front > span {
    align-self: flex-start;
    max-width: 100%;
    overflow: hidden;
    color: #6d7f95;
    font-size: 9px;
    font-weight: 760;
    letter-spacing: .06em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.traffic-premium-card--front img {
    width: 132px;
    height: 132px;
    margin: 10px 0 8px;
    object-fit: contain;
}

.traffic-premium-card--front strong {
    max-width: 100%;
    color: #172942;
    font-size: 13px;
    font-weight: 710;
    text-align: center;
}

.traffic-premium-preview-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.traffic-premium-preview-actions span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 39px;
    border: 1px solid;
    border-radius: 12px;
    font-size: 10.5px;
    font-weight: 740;
}

.traffic-premium-preview-actions i {
    font-style: normal;
    font-size: 16px;
}

.traffic-premium-preview-actions .is-review {
    border-color: #f0d3d6;
    color: #b75061;
    background: #fff6f7;
}

.traffic-premium-preview-actions .is-learned {
    border-color: #cce9dc;
    color: #16805e;
    background: #f2fbf7;
}

.traffic-premium-preview-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 15px;
    color: #718196;
    font-size: 10px;
}

.traffic-premium-preview-foot a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #175bd8;
    font-size: 11px;
    font-weight: 760;
}

.traffic-premium-preview-foot b {
    font-size: 16px;
}

.traffic-premium-summary-grid {
    padding-top: 34px;
    padding-bottom: 34px;
}

.traffic-premium-categories {
    padding-top: 62px;
    padding-bottom: 68px;
}

.traffic-premium-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.traffic-premium-category {
    --sign-accent: #2b78d4;
    --sign-soft: #eff7ff;
    position: relative;
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    gap: 12px 18px;
    min-height: 218px;
    padding: 16px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--sign-accent) 23%, #dce5f1);
    border-radius: 20px;
    background: linear-gradient(145deg, #fff 8%, var(--sign-soft) 100%);
    box-shadow: 0 13px 30px rgba(30, 65, 104, .07);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.traffic-premium-category:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--sign-accent) 44%, #dce5f1);
    box-shadow: 0 21px 42px rgba(30, 65, 104, .12);
}

.traffic-premium-category--warning { --sign-accent: #c87924; --sign-soft: #fff6e9; }
.traffic-premium-category--regulation { --sign-accent: #2879c9; --sign-soft: #eef7ff; }
.traffic-premium-category--work { --sign-accent: #d06f24; --sign-soft: #fff4e8; }
.traffic-premium-category--parking { --sign-accent: #7258c0; --sign-soft: #f3f0ff; }
.traffic-premium-category--info { --sign-accent: #258568; --sign-soft: #effaf6; }
.traffic-premium-category--panels { --sign-accent: #5e7589; --sign-soft: #f2f6f9; }
.traffic-premium-category--police { --sign-accent: #526bb7; --sign-soft: #f0f2ff; }
.traffic-premium-category--dashboard { --sign-accent: #4c748d; --sign-soft: #f1f7fa; }

.traffic-premium-category-head {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    min-height: 27px;
}

.traffic-premium-category-head > span:first-child {
    color: color-mix(in srgb, var(--sign-accent) 76%, #8693a5);
    font-size: 10px;
    font-weight: 800;
}

.traffic-premium-category-progress {
    min-height: 25px;
    padding: 5px 8px;
    border: 1px solid color-mix(in srgb, var(--sign-accent) 18%, #dbe5ef);
    border-radius: 999px;
    color: #6d7e91;
    background: rgba(255,255,255,.76);
    font-size: 9.5px;
    font-weight: 740;
}

.traffic-premium-category-progress.is-progress {
    color: var(--sign-accent);
    background: color-mix(in srgb, var(--sign-soft) 82%, #fff);
}

.traffic-premium-category-progress.is-complete {
    color: #16805f;
    border-color: #c9e7da;
    background: #effaf5;
}

.traffic-premium-category-art {
    display: grid;
    place-items: center;
    min-height: 138px;
    border: 1px solid color-mix(in srgb, var(--sign-accent) 15%, #dbe5ef);
    border-radius: 16px;
    background: rgba(255,255,255,.7);
}

.traffic-premium-category-art img {
    width: 104px;
    height: 104px;
    object-fit: contain;
    transition: transform 180ms ease;
}

.traffic-premium-category:hover .traffic-premium-category-art img {
    transform: scale(1.04);
}

.traffic-premium-category-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 1px 4px 1px 0;
}

.traffic-premium-category-copy > span {
    color: var(--sign-accent);
    font-size: 9.5px;
    font-weight: 790;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.traffic-premium-category-copy h3 {
    margin: 8px 0 7px;
    color: #142740;
    font-size: 19px;
    font-weight: 690;
    line-height: 1.15;
    letter-spacing: -.025em;
}

.traffic-premium-category-copy p {
    margin: 0;
    color: #64768a;
    font-size: 11.5px;
    line-height: 1.52;
}

.traffic-premium-category-copy strong {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 14px;
    color: var(--sign-accent);
    font-size: 11px;
    font-weight: 760;
}

.traffic-premium-category-copy strong b {
    font-size: 16px;
    transition: transform 180ms ease;
}

.traffic-premium-category:hover .traffic-premium-category-copy strong b {
    transform: translateX(3px);
}

.traffic-premium-method {
    padding: 0 0 68px;
}

.traffic-premium-method-inner {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
    padding: 32px;
    border: 1px solid #dce5f1;
    border-radius: 23px;
    background:
        radial-gradient(circle at 92% 24%, rgba(46, 112, 231, .09), transparent 24%),
        linear-gradient(135deg, #fbfdff, #f4f8ff);
}

.traffic-premium-method-copy h2 {
    margin: 8px 0 9px;
    color: #11233b;
    font-size: 29px;
    font-weight: 690;
    line-height: 1.1;
    letter-spacing: -.035em;
}

.traffic-premium-method-copy p {
    margin: 0;
    color: #65778b;
    font-size: 12.5px;
    line-height: 1.6;
}

.traffic-premium-method-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.traffic-premium-method-steps article {
    min-height: 148px;
    padding: 16px;
    border: 1px solid #dce5f1;
    border-radius: 16px;
    background: rgba(255,255,255,.78);
}

.traffic-premium-method-steps article > span {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border-radius: 9px;
    color: #1b5cd6;
    background: #edf3ff;
    font-size: 10px;
    font-weight: 800;
}

.traffic-premium-method-steps strong {
    display: block;
    margin: 17px 0 6px;
    color: #16283f;
    font-size: 13px;
    font-weight: 710;
}

.traffic-premium-method-steps p {
    margin: 0;
    color: #69798d;
    font-size: 10.5px;
    line-height: 1.5;
}

@media (max-width: 1120px) {
    .exam-premium-hero-grid,
    .traffic-premium-hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(380px, .9fr);
        gap: 40px;
        min-height: 540px;
        padding-top: 55px;
        padding-bottom: 55px;
    }

    .exam-premium-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .exam-premium-category {
        min-height: 270px;
    }

    .exam-premium-route-inner {
        grid-template-columns: 250px minmax(0, 1fr);
        gap: 30px;
    }

    .traffic-premium-method-inner {
        grid-template-columns: 280px minmax(0, 1fr);
        gap: 28px;
    }
}

@media (max-width: 900px) {
    .exam-premium-hero-grid,
    .traffic-premium-hero-grid {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .exam-premium-copy,
    .traffic-premium-copy {
        max-width: 720px;
    }

    .exam-premium-showcase,
    .traffic-premium-preview {
        width: min(620px, 100%);
    }

    .exam-premium-route-inner,
    .traffic-premium-method-inner {
        grid-template-columns: 1fr;
    }

    .exam-premium-route-title {
        max-width: 540px;
    }

    .traffic-premium-category-grid {
        grid-template-columns: 1fr;
    }

    .traffic-premium-method-copy {
        max-width: 620px;
    }
}

@media (max-width: 680px) {
    .exam-premium-hero-grid,
    .traffic-premium-hero-grid {
        gap: 32px;
        padding-top: 36px;
        padding-bottom: 38px;
    }

    .exam-premium-copy h1,
    .traffic-premium-copy h1 {
        margin-top: 15px;
        font-size: clamp(37px, 11.2vw, 50px);
        line-height: 1.02;
    }

    .exam-premium-copy > p,
    .traffic-premium-copy > p {
        font-size: 14.5px;
        line-height: 1.6;
    }

    .exam-premium-actions,
    .traffic-premium-actions {
        display: grid;
        grid-template-columns: 1fr;
        margin-top: 22px;
    }

    .exam-premium-actions form,
    .exam-premium-actions .button,
    .traffic-premium-actions .button {
        width: 100%;
    }

    .exam-premium-facts,
    .traffic-premium-facts {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .exam-premium-facts span,
    .traffic-premium-facts span {
        min-width: 0;
    }

    .exam-premium-facts span + span::before,
    .traffic-premium-facts span + span::before {
        display: none;
    }

    .exam-premium-facts span:nth-child(2n) {
        border-left: 1px solid #dbe4f0;
    }

    .exam-premium-facts span:nth-child(n+3),
    .traffic-premium-facts span:nth-child(n+3) {
        border-top: 1px solid #dbe4f0;
    }

    .traffic-premium-facts span:nth-child(2) {
        border-left: 1px solid #dbe4f0;
    }

    .exam-premium-showcase,
    .traffic-premium-preview {
        min-height: 0;
        padding: 18px;
        border-radius: 22px;
    }

    .exam-premium-showcase-head strong,
    .traffic-premium-preview-head strong {
        font-size: 18px;
    }

    .exam-premium-score-card {
        padding: 16px;
    }

    .exam-premium-bars > div {
        grid-template-columns: 94px minmax(50px, 1fr) 20px;
        gap: 7px;
        font-size: 9.5px;
    }

    .exam-premium-score-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .exam-premium-showcase-foot {
        align-items: flex-start;
        flex-direction: column;
    }

    .exam-premium-route-inner,
    .traffic-premium-summary-grid {
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .exam-premium-route-steps,
    .traffic-premium-summary-grid,
    .traffic-premium-method-steps {
        grid-template-columns: 1fr;
    }

    .exam-premium-route-steps article,
    .traffic-premium-summary-grid article {
        padding-bottom: 15px;
        border-bottom: 1px solid #e5ebf2;
    }

    .exam-premium-route-steps article:last-child,
    .traffic-premium-summary-grid article:last-child {
        padding-bottom: 0;
        border-bottom: 0;
    }

    .exam-premium-categories,
    .traffic-premium-categories {
        padding-top: 42px;
        padding-bottom: 46px;
    }

    .exam-premium-section-head,
    .traffic-premium-section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
        margin-bottom: 19px;
    }

    .exam-premium-section-head h2,
    .traffic-premium-section-head h2 {
        font-size: 31px;
    }

    .exam-premium-section-note,
    .traffic-premium-section-count {
        margin: 0;
    }

    .exam-premium-category-grid {
        grid-template-columns: 1fr;
    }

    .exam-premium-category {
        min-height: 250px;
    }

    .exam-premium-cta {
        padding-bottom: 46px;
    }

    .exam-premium-cta-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 25px 22px;
    }

    .exam-premium-cta h2 {
        font-size: 27px;
    }

    .exam-premium-cta .button,
    .exam-premium-cta form {
        width: 100%;
    }

    .traffic-premium-card-stage {
        min-height: 260px;
    }

    .traffic-premium-card {
        width: 204px;
        height: 229px;
    }

    .traffic-premium-card--front img {
        width: 116px;
        height: 116px;
    }

    .traffic-premium-preview-foot {
        align-items: flex-start;
        flex-direction: column;
    }

    .traffic-premium-category {
        grid-template-columns: 104px minmax(0, 1fr);
        min-height: 192px;
        gap: 10px 14px;
        padding: 14px;
    }

    .traffic-premium-category-art {
        min-height: 118px;
    }

    .traffic-premium-category-art img {
        width: 85px;
        height: 85px;
    }

    .traffic-premium-category-copy h3 {
        font-size: 17px;
    }

    .traffic-premium-category-copy p {
        font-size: 10.5px;
    }

    .traffic-premium-method {
        padding-bottom: 46px;
    }

    .traffic-premium-method-inner {
        padding: 23px 19px;
    }

    .traffic-premium-method-copy h2 {
        font-size: 27px;
    }

    .traffic-premium-method-steps article {
        min-height: 0;
    }
}

@media (max-width: 430px) {
    .traffic-premium-category {
        grid-template-columns: 86px minmax(0, 1fr);
    }

    .traffic-premium-category-art {
        min-height: 104px;
    }

    .traffic-premium-category-art img {
        width: 72px;
        height: 72px;
    }

    .traffic-premium-category-copy p {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }
}

/* Compact premium hub composition v38. Keeps all exam and traffic-sign routes/logic unchanged. */
.exam-premium-hero::after,
.traffic-premium-hero::after {
    opacity: .18;
}

.exam-premium-hero-grid,
.traffic-premium-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    min-height: 0;
    padding-top: 30px;
    padding-bottom: 32px;
}

.exam-premium-copy,
.traffic-premium-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(350px, 410px);
    grid-template-areas:
        "kicker actions"
        "title actions"
        "description facts"
        "notice notice";
    column-gap: clamp(34px, 4vw, 58px);
    row-gap: 0;
    align-items: end;
    width: 100%;
    max-width: none;
}

.exam-premium-kicker,
.traffic-premium-kicker {
    grid-area: kicker;
    justify-self: start;
    min-height: 25px;
    padding: 4px 9px;
    gap: 7px;
    font-size: 9.5px;
    box-shadow: none;
}

.exam-premium-kicker i,
.traffic-premium-kicker i {
    width: 6px;
    height: 6px;
    border-width: 1px;
    box-shadow: 0 0 0 3px rgba(35, 103, 239, .11);
}

.exam-premium-copy h1,
.traffic-premium-copy h1 {
    grid-area: title;
    max-width: 690px;
    margin: 10px 0 8px;
    font-size: clamp(34px, 3vw, 42px);
    font-weight: 675;
    line-height: 1.015;
    letter-spacing: -.045em;
    text-wrap: balance;
}

.exam-premium-copy > p,
.traffic-premium-copy > p {
    grid-area: description;
    max-width: 660px;
    font-size: 13.5px;
    line-height: 1.48;
}

.exam-premium-actions,
.traffic-premium-actions {
    grid-area: actions;
    justify-self: end;
    align-self: end;
    flex-wrap: nowrap;
    margin: 0 0 15px;
}

.exam-premium-actions .button,
.traffic-premium-actions .button {
    min-height: 40px;
    padding-inline: 14px;
    white-space: nowrap;
    font-size: 12px;
}

.exam-premium-actions .button span,
.traffic-premium-actions .button span {
    font-size: 15px;
}

.exam-premium-facts,
.traffic-premium-facts {
    grid-area: facts;
    display: grid;
    justify-self: end;
    width: 100%;
    max-width: 410px;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.exam-premium-facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.traffic-premium-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.exam-premium-facts span,
.traffic-premium-facts span {
    min-width: 0;
    padding: 2px 12px;
    font-size: 9.5px;
    line-height: 1.25;
    text-align: left;
}

.exam-premium-facts span:first-child,
.traffic-premium-facts span:first-child {
    padding-left: 0;
}

.exam-premium-facts span:last-child,
.traffic-premium-facts span:last-child {
    padding-right: 0;
}

.exam-premium-facts span + span::before,
.traffic-premium-facts span + span::before {
    top: 1px;
    bottom: 1px;
}

.exam-premium-facts strong,
.traffic-premium-facts strong {
    margin-bottom: 2px;
    font-size: 15px;
    font-weight: 700;
}

.exam-premium-notice {
    grid-area: notice;
}

.exam-premium-route-inner {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 28px;
    padding-top: 18px;
    padding-bottom: 18px;
}

.exam-premium-route-title h2 {
    margin-top: 5px;
    font-size: 17px;
    line-height: 1.14;
    letter-spacing: -.025em;
}

.exam-premium-route-title > span,
.exam-premium-section-head > div > span,
.traffic-premium-section-head > div > span {
    font-size: 9px;
}

.exam-premium-route-steps,
.traffic-premium-summary-grid {
    gap: 16px;
}

.traffic-premium-summary-grid {
    padding-top: 18px;
    padding-bottom: 18px;
}

.exam-premium-route-steps article,
.traffic-premium-summary-grid article {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
}

.exam-premium-route-steps article > span,
.traffic-premium-summary-grid article > span {
    width: 27px;
    height: 27px;
    border-radius: 9px;
    font-size: 8.5px;
}

.exam-premium-route-steps strong,
.traffic-premium-summary-grid strong {
    margin: 0 0 3px;
    font-size: 12px;
    line-height: 1.25;
}

.exam-premium-route-steps p,
.traffic-premium-summary-grid p {
    font-size: 10px;
    line-height: 1.38;
}

.exam-premium-categories,
.traffic-premium-categories {
    padding-top: 38px;
    padding-bottom: 56px;
}

.exam-premium-section-head,
.traffic-premium-section-head {
    margin-bottom: 18px;
}

.exam-premium-section-head h2,
.traffic-premium-section-head h2 {
    margin: 5px 0 5px;
    font-size: clamp(28px, 2.4vw, 34px);
    font-weight: 675;
    line-height: 1.08;
}

.exam-premium-section-head p,
.traffic-premium-section-head p {
    font-size: 12.5px;
    line-height: 1.48;
}

.exam-premium-section-note,
.traffic-premium-section-count {
    margin-bottom: 2px;
    padding: 5px 8px;
    font-size: 9px;
}

.exam-premium-route-mobile,
.traffic-premium-summary-mobile {
    display: none;
}

@media (max-width: 1020px) {
    .exam-premium-copy,
    .traffic-premium-copy {
        display: block;
        max-width: 760px;
    }

    .exam-premium-actions,
    .traffic-premium-actions {
        justify-self: auto;
        margin-top: 16px;
        margin-bottom: 0;
    }

    .exam-premium-facts,
    .traffic-premium-facts {
        justify-self: auto;
        width: fit-content;
        min-width: min(100%, 350px);
        margin-top: 14px;
    }

    .exam-premium-route-inner {
        grid-template-columns: 180px minmax(0, 1fr);
        gap: 20px;
    }
}

@media (max-width: 680px) {
    .exam-premium-hero-grid,
    .traffic-premium-hero-grid {
        padding-top: 19px;
        padding-bottom: 21px;
    }

    .exam-premium-copy h1,
    .traffic-premium-copy h1 {
        margin: 8px 0 7px;
        font-size: clamp(28px, 8.5vw, 33px);
        line-height: 1.02;
        letter-spacing: -.038em;
    }

    .exam-premium-copy > p,
    .traffic-premium-copy > p {
        font-size: 12.5px;
        line-height: 1.43;
    }

    .exam-premium-actions,
    .traffic-premium-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 13px;
    }

    .exam-premium-actions form,
    .exam-premium-actions .button,
    .traffic-premium-actions .button {
        width: auto;
    }

    .exam-premium-actions form,
    .traffic-premium-actions .button.primary {
        flex: 1 1 auto;
    }

    .exam-premium-actions form .button,
    .traffic-premium-actions .button.primary {
        width: 100%;
    }

    .exam-premium-actions .button,
    .traffic-premium-actions .button {
        min-height: 37px;
        padding-inline: 11px;
        font-size: 11px;
    }

    .exam-premium-actions .button.secondary,
    .traffic-premium-actions .button.secondary {
        flex: 0 0 auto;
        min-height: 37px;
        padding-inline: 8px;
    }

    .exam-premium-facts,
    .traffic-premium-facts {
        width: 100%;
        min-width: 0;
        max-width: none;
        margin-top: 12px;
        padding-top: 10px;
        border-top: 1px solid rgba(202, 215, 234, .82);
    }

    .exam-premium-facts span:nth-child(n),
    .traffic-premium-facts span:nth-child(n) {
        padding: 0 6px;
        border: 0;
        font-size: 8.5px;
        text-align: center;
    }

    .exam-premium-facts span + span::before,
    .traffic-premium-facts span + span::before {
        display: block;
        top: 0;
        bottom: 0;
    }

    .exam-premium-facts strong,
    .traffic-premium-facts strong {
        font-size: 13px;
    }

    .exam-premium-route-inner {
        display: block;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .exam-premium-route-title,
    .exam-premium-route-steps,
    .traffic-premium-summary-grid article {
        display: none;
    }

    .traffic-premium-summary-grid {
        display: block;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .exam-premium-route-mobile,
    .traffic-premium-summary-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin: 0;
        color: #425b7d;
        font-size: 10.5px;
        font-weight: 690;
        line-height: 1.25;
        text-align: center;
        white-space: nowrap;
    }

    .exam-premium-route-mobile span,
    .traffic-premium-summary-mobile span {
        color: #1d61de;
        font-size: 13px;
        font-weight: 760;
    }

    .exam-premium-categories,
    .traffic-premium-categories {
        padding-top: 30px;
        padding-bottom: 42px;
    }

    .exam-premium-section-head,
    .traffic-premium-section-head {
        gap: 9px;
        margin-bottom: 15px;
    }

    .exam-premium-section-head h2,
    .traffic-premium-section-head h2 {
        margin-top: 4px;
        font-size: 27px;
    }

    .exam-premium-section-head p,
    .traffic-premium-section-head p {
        font-size: 11.5px;
    }
}


/* Exam and traffic selection hubs v40. Exam engine and deck flow remain untouched. */
.exam-hub-page,
.general-exams-page,
.traffic-hub-page {
    --hub-ink: #10213a;
    --hub-muted: #68798e;
    --hub-blue: #1e5fe5;
    --hub-line: #dce5f0;
    color: var(--hub-ink);
    background: #f6f8fb;
}

.exam-hub-intro,
.general-exams-intro,
.traffic-hub-intro {
    border-bottom: 1px solid #dfe7f1;
    background:
        radial-gradient(circle at 84% -15%, rgba(57, 119, 238, .1), transparent 34%),
        linear-gradient(180deg, #fbfdff 0%, #f5f8fd 100%);
}

.exam-hub-intro-inner,
.traffic-hub-intro-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(34px, 6vw, 82px);
    min-height: 132px;
    padding-top: 24px;
    padding-bottom: 24px;
}

.exam-hub-intro-copy,
.traffic-hub-intro-copy {
    min-width: 0;
    max-width: 730px;
}

.hub-page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1d5cd6;
    font-size: 10px;
    font-weight: 790;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.hub-page-kicker::before {
    content: "";
    width: 17px;
    height: 2px;
    border-radius: 999px;
    background: #2a69e8;
}

.exam-hub-intro h1,
.traffic-hub-intro h1,
.general-exams-intro h1 {
    margin: 8px 0 6px;
    color: var(--hub-ink);
    font-size: clamp(34px, 3vw, 42px);
    font-weight: 670;
    line-height: 1.04;
    letter-spacing: -.042em;
}

.exam-hub-intro p,
.traffic-hub-intro p,
.general-exams-intro p {
    max-width: 690px;
    margin: 0;
    color: var(--hub-muted);
    font-size: 13px;
    line-height: 1.5;
}

.traffic-hub-intro-stats {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    overflow: hidden;
    border: 1px solid #d7e2ef;
    border-radius: 14px;
    background: rgba(255, 255, 255, .76);
    box-shadow: 0 8px 24px rgba(38, 66, 104, .04);
}

.traffic-hub-intro-stats span {
    position: relative;
    min-width: 94px;
    padding: 12px 18px;
    color: #718096;
    font-size: 9.5px;
    line-height: 1.2;
}

.traffic-hub-intro-stats span + span::before {
    content: "";
    position: absolute;
    inset: 11px auto 11px 0;
    width: 1px;
    background: #d8e1ed;
}

.traffic-hub-intro-stats strong {
    display: block;
    margin-bottom: 2px;
    color: #142945;
    font-size: 17px;
    font-weight: 720;
}

.exam-hub-content,
.traffic-hub-content,
.general-exams-content {
    padding-top: 28px;
    padding-bottom: 58px;
}

.exam-general-card {
    position: relative;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto 150px;
    gap: 20px;
    align-items: center;
    min-height: 168px;
    padding: 23px 24px;
    overflow: hidden;
    border: 1px solid #cbdaf0;
    border-radius: 20px;
    background:
        linear-gradient(112deg, rgba(255, 255, 255, .99) 0%, rgba(249, 252, 255, .98) 48%, rgba(232, 242, 255, .96) 100%);
    box-shadow: 0 16px 38px rgba(35, 66, 107, .07);
}

.exam-general-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, #2d70ef, #174fc8);
}

.exam-general-card-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 1px solid #cfe0fb;
    border-radius: 15px;
    color: #1f61e4;
    background: rgba(240, 246, 255, .92);
}

.exam-general-card-icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.exam-general-card-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.exam-general-card-copy > span,
.exam-hub-section-head > div > span,
.traffic-hub-section-head > div > span,
.general-exams-heading > div > span {
    color: #1d5cd5;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.exam-general-card-copy h2 {
    margin: 5px 0 5px;
    color: #12243d;
    font-size: 25px;
    font-weight: 680;
    line-height: 1.12;
    letter-spacing: -.03em;
}

.exam-general-card-copy p {
    max-width: 560px;
    margin: 0;
    color: #68798e;
    font-size: 12px;
    line-height: 1.48;
}

.exam-general-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 13px;
}

.exam-general-card-meta span {
    padding: 5px 9px;
    border: 1px solid #d6e2f1;
    border-radius: 999px;
    color: #5d7088;
    background: rgba(255, 255, 255, .82);
    font-size: 9.5px;
    font-weight: 690;
}

.exam-general-card-action {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.exam-general-card-action > span:first-child {
    color: #687a91;
    font-size: 9.5px;
    font-weight: 700;
}

.exam-general-card-action .button {
    min-height: 42px;
    padding-inline: 16px;
    white-space: nowrap;
    font-size: 11.5px;
}

.exam-general-card-action .button b {
    margin-left: 5px;
    font-size: 15px;
}

.button.is-disabled {
    cursor: not-allowed;
    opacity: .55;
    pointer-events: none;
}

.exam-general-card-visual {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    align-self: stretch;
    min-width: 0;
}

.exam-general-card-visual::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(54, 116, 230, .075);
}

.exam-general-card-visual svg {
    position: relative;
    width: 150px;
    height: 112px;
    fill: rgba(255, 255, 255, .72);
    stroke: #4b7fd5;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 8px 16px rgba(42, 89, 164, .08));
}

.exam-hub-tests {
    padding-top: 34px;
}

.exam-hub-section-head,
.traffic-hub-section-head,
.general-exams-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 17px;
}

.exam-hub-section-head h2,
.traffic-hub-section-head h2,
.general-exams-heading h2 {
    margin: 5px 0 4px;
    color: #10213a;
    font-size: clamp(27px, 2.3vw, 33px);
    font-weight: 670;
    line-height: 1.08;
    letter-spacing: -.035em;
}

.exam-hub-section-head p,
.traffic-hub-section-head p,
.general-exams-heading p {
    margin: 0;
    color: #6a7a8e;
    font-size: 11.5px;
    line-height: 1.48;
}

.exam-hub-section-count,
.traffic-hub-section-count,
.general-exams-heading > span {
    flex: 0 0 auto;
    margin-bottom: 2px;
    padding: 5px 8px;
    border: 1px solid #d8e2ef;
    border-radius: 999px;
    color: #6c7d92;
    background: #fff;
    font-size: 9px;
    font-weight: 700;
}

.exam-hub-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.exam-hub-card {
    --card-accent: #2b73de;
    --card-soft: #eff6ff;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 194px;
    padding: 17px;
    overflow: hidden;
    border: 1px solid #dbe4ef;
    border-radius: 16px;
    color: inherit;
    background: #fff;
    box-shadow: 0 8px 22px rgba(32, 59, 94, .035);
    text-decoration: none;
    transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.exam-hub-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    background: var(--card-accent);
}

.exam-hub-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--card-accent) 35%, #dbe4ef);
    box-shadow: 0 15px 32px rgba(31, 62, 104, .09);
}

.exam-hub-card--traffic { --card-accent: #2c7be5; --card-soft: #edf7ff; }
.exam-hub-card--first-aid { --card-accent: #db5478; --card-soft: #fff0f4; }
.exam-hub-card--engine { --card-accent: #d57a1d; --card-soft: #fff4e8; }
.exam-hub-card--ethics { --card-accent: #16966b; --card-soft: #ecfaf4; }

.exam-hub-card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.exam-hub-card-topline > span {
    color: #78889b;
    font-size: 9.5px;
    font-weight: 690;
}

.exam-hub-card-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid color-mix(in srgb, var(--card-accent) 18%, #dce5ef);
    border-radius: 12px;
    color: var(--card-accent);
    background: var(--card-soft);
}

.exam-hub-card-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.exam-hub-card-copy h3 {
    margin: 0 0 6px;
    color: #14263e;
    font-size: 17px;
    font-weight: 680;
    line-height: 1.18;
    letter-spacing: -.02em;
}

.exam-hub-card-copy p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #68798d;
    font-size: 10.8px;
    line-height: 1.48;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.exam-hub-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 14px;
    color: #7a899b;
    font-size: 9.5px;
}

.exam-hub-card-foot strong {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--card-accent);
    font-size: 10.5px;
    font-weight: 760;
}

.exam-hub-card-foot b {
    font-size: 14px;
    transition: transform 170ms ease;
}

.exam-hub-card:hover .exam-hub-card-foot b {
    transform: translateX(2px);
}

.general-exams-intro-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px 36px;
    align-items: end;
    min-height: 174px;
    padding-top: 22px;
    padding-bottom: 24px;
}

.general-exams-back {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: max-content;
    color: #5f7188;
    font-size: 10.5px;
    font-weight: 720;
    text-decoration: none;
}

.general-exams-back:hover {
    color: #1e5fe5;
}

.general-exams-summary {
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid #d7e2ef;
    border-radius: 14px;
    background: rgba(255, 255, 255, .78);
}

.general-exams-summary span {
    position: relative;
    min-width: 92px;
    padding: 12px 17px;
    color: #718096;
    font-size: 9.5px;
    line-height: 1.2;
}

.general-exams-summary span + span::before {
    content: "";
    position: absolute;
    inset: 11px auto 11px 0;
    width: 1px;
    background: #d8e1ed;
}

.general-exams-summary strong {
    display: block;
    margin-bottom: 2px;
    color: #142945;
    font-size: 16px;
    font-weight: 720;
}

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

.general-exam-item {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 44px;
    gap: 14px;
    align-items: center;
    min-height: 92px;
    margin: 0;
    padding: 15px 16px;
    border: 1px solid #dbe4ef;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(32, 59, 94, .035);
    transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.general-exam-item:hover {
    transform: translateY(-1px);
    border-color: #bfd2ee;
    box-shadow: 0 13px 28px rgba(31, 62, 104, .075);
}

.general-exam-item-number {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    color: #2b68d8;
    background: #eef5ff;
    font-size: 10px;
    font-weight: 800;
}

.general-exam-item-copy {
    min-width: 0;
}

.general-exam-item-copy h3 {
    margin: 0 0 4px;
    color: #14263e;
    font-size: 17px;
    font-weight: 680;
    letter-spacing: -.02em;
}

.general-exam-item-copy p {
    margin: 0;
    color: #718096;
    font-size: 10.5px;
    line-height: 1.42;
}

.general-exam-item button {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid #c8d8f3;
    border-radius: 14px;
    color: #1f61e4;
    background: #edf4ff;
    cursor: pointer;
    transition: transform 170ms ease, color 170ms ease, background 170ms ease;
}

.general-exam-item button:hover {
    transform: translateX(2px);
    color: #fff;
    background: #1f61e4;
}

.general-exam-item button span {
    font-size: 19px;
}

.traffic-hub-categories {
    padding-top: 1px;
}

.traffic-hub-card[hidden],
.traffic-hub-resume[hidden],
.traffic-hub-empty[hidden] {
    display: none !important;
}

.traffic-hub-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: -2px 0 16px;
    padding: 8px;
    border: 1px solid #dce5f0;
    border-radius: 15px;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 7px 20px rgba(34, 60, 95, .035);
}

.traffic-hub-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.traffic-hub-filters button {
    min-height: 31px;
    padding: 6px 11px;
    border: 0;
    border-radius: 10px;
    color: #66788f;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 9.5px;
    font-weight: 720;
    transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.traffic-hub-filters button:hover {
    color: #1e5fe5;
    background: #f2f6fc;
}

.traffic-hub-filters button.is-active {
    color: #174fc8;
    background: #eaf2ff;
    box-shadow: inset 0 0 0 1px #d3e2fb;
}

.traffic-hub-resume {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 9px;
    color: #1e5fe5;
    font-size: 9.8px;
    font-weight: 760;
    text-decoration: none;
}

.traffic-hub-resume:hover span {
    transform: translateX(2px);
}

.traffic-hub-resume span {
    font-size: 14px;
    transition: transform 160ms ease;
}

.traffic-hub-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.traffic-hub-card {
    --sign-accent: #3676bc;
    --sign-soft: #f2f7fc;
    position: relative;
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 16px;
    min-width: 0;
    min-height: 151px;
    padding: 14px 14px 16px;
    overflow: hidden;
    border: 1px solid #dbe4ef;
    border-radius: 16px;
    color: inherit;
    background: #fff;
    box-shadow: 0 8px 22px rgba(32, 59, 94, .035);
    text-decoration: none;
    transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.traffic-hub-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    background: var(--sign-accent);
}

.traffic-hub-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--sign-accent) 34%, #dbe4ef);
    box-shadow: 0 15px 32px rgba(31, 62, 104, .09);
}

.traffic-hub-card--warning { --sign-accent: #c87924; --sign-soft: #fff7ec; }
.traffic-hub-card--regulation { --sign-accent: #2879c9; --sign-soft: #eef7ff; }
.traffic-hub-card--work { --sign-accent: #cf7028; --sign-soft: #fff5eb; }
.traffic-hub-card--parking { --sign-accent: #7258c0; --sign-soft: #f4f1ff; }
.traffic-hub-card--info { --sign-accent: #258568; --sign-soft: #effaf6; }
.traffic-hub-card--panels { --sign-accent: #5e7589; --sign-soft: #f2f6f9; }
.traffic-hub-card--police { --sign-accent: #526bb7; --sign-soft: #f0f2ff; }
.traffic-hub-card--dashboard { --sign-accent: #4c748d; --sign-soft: #f1f7fa; }

.traffic-hub-card-art {
    display: grid;
    place-items: center;
    min-height: 121px;
    border: 1px solid color-mix(in srgb, var(--sign-accent) 12%, #dce5ef);
    border-radius: 13px;
    background: color-mix(in srgb, var(--sign-soft) 72%, #fff);
}

.traffic-hub-card-art img {
    width: 84px;
    height: 84px;
    object-fit: contain;
    transition: transform 170ms ease;
}

.traffic-hub-card:hover .traffic-hub-card-art img {
    transform: scale(1.035);
}

.traffic-hub-card-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1px 2px 0 0;
}

.traffic-hub-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 23px;
}

.traffic-hub-card-top > span:first-child {
    color: color-mix(in srgb, var(--sign-accent) 78%, #8794a6);
    font-size: 8.5px;
    font-weight: 800;
}

.traffic-hub-card-progress {
    min-height: 22px;
    padding: 4px 7px;
    border: 1px solid #dce5ef;
    border-radius: 999px;
    color: #738398;
    background: #fff;
    font-size: 8.5px;
    font-weight: 730;
}

.traffic-hub-card-progress.is-progress {
    color: var(--sign-accent);
    border-color: color-mix(in srgb, var(--sign-accent) 20%, #dce5ef);
    background: var(--sign-soft);
}

.traffic-hub-card-progress.is-complete {
    color: #16805f;
    border-color: #c9e7da;
    background: #effaf5;
}

.traffic-hub-card-count {
    margin-top: 4px;
    color: var(--sign-accent);
    font-size: 8.5px;
    font-weight: 790;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.traffic-hub-card-copy h3 {
    margin: 5px 0 4px;
    color: #14263e;
    font-size: 16px;
    font-weight: 680;
    line-height: 1.17;
    letter-spacing: -.02em;
}

.traffic-hub-card-copy p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #68798d;
    font-size: 10.5px;
    line-height: 1.43;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.traffic-hub-card-copy strong {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
    padding-top: 8px;
    color: var(--sign-accent);
    font-size: 10px;
    font-weight: 760;
}

.traffic-hub-card-copy strong b {
    font-size: 14px;
    transition: transform 170ms ease;
}

.traffic-hub-card:hover .traffic-hub-card-copy strong b {
    transform: translateX(2px);
}

.traffic-hub-card-track {
    position: absolute;
    inset: auto 0 0;
    height: 2px;
    background: #edf1f6;
}

.traffic-hub-card-track i {
    display: block;
    width: 0;
    height: 100%;
    background: var(--sign-accent);
    transition: width 220ms ease;
}

.traffic-hub-empty {
    margin: 22px 0 0;
    padding: 22px;
    border: 1px dashed #cfdae7;
    border-radius: 15px;
    color: #718096;
    background: rgba(255, 255, 255, .7);
    font-size: 12px;
    text-align: center;
}

@media (max-width: 1100px) {
    .exam-general-card {
        grid-template-columns: 52px minmax(0, 1fr) auto;
    }

    .exam-general-card-visual {
        display: none;
    }

    .exam-hub-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .exam-hub-intro-inner,
    .traffic-hub-intro-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
        min-height: 0;
    }

    .traffic-hub-intro-stats {
        width: max-content;
    }

    .general-exams-intro-inner {
        grid-template-columns: 1fr;
    }

    .general-exams-summary {
        width: max-content;
    }

    .general-exam-grid,
    .traffic-hub-card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .exam-hub-intro-inner,
    .traffic-hub-intro-inner,
    .general-exams-intro-inner {
        gap: 13px;
        padding-top: 19px;
        padding-bottom: 19px;
    }

    .exam-hub-intro h1,
    .traffic-hub-intro h1,
    .general-exams-intro h1 {
        margin: 7px 0 5px;
        font-size: clamp(28px, 8.5vw, 34px);
        line-height: 1.04;
    }

    .exam-hub-intro p,
    .traffic-hub-intro p,
    .general-exams-intro p {
        font-size: 11.8px;
        line-height: 1.46;
    }

    .traffic-hub-intro-stats,
    .general-exams-summary {
        width: 100%;
    }

    .traffic-hub-intro-stats span,
    .general-exams-summary span {
        flex: 1 1 0;
        min-width: 0;
        padding: 10px 12px;
        text-align: center;
    }

    .exam-hub-content,
    .traffic-hub-content,
    .general-exams-content {
        padding-top: 18px;
        padding-bottom: 40px;
    }

    .exam-general-card {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 12px;
        min-height: 0;
        padding: 16px;
        border-radius: 17px;
    }

    .exam-general-card-icon {
        width: 40px;
        height: 40px;
        border-radius: 11px;
    }

    .exam-general-card-icon svg {
        width: 21px;
        height: 21px;
    }

    .exam-general-card-copy h2 {
        font-size: 20px;
    }

    .exam-general-card-copy p {
        font-size: 10.8px;
    }

    .exam-general-card-meta {
        gap: 5px;
        margin-top: 10px;
    }

    .exam-general-card-meta span {
        padding: 4px 7px;
        font-size: 8.8px;
    }

    .exam-general-card-action {
        grid-column: 1 / -1;
        align-items: stretch;
        padding-top: 2px;
    }

    .exam-general-card-action > span:first-child {
        display: none;
    }

    .exam-general-card-action .button {
        width: 100%;
        justify-content: center;
    }

    .exam-hub-tests {
        padding-top: 27px;
    }

    .exam-hub-section-head,
    .traffic-hub-section-head,
    .general-exams-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 14px;
    }

    .exam-hub-section-head h2,
    .traffic-hub-section-head h2,
    .general-exams-heading h2 {
        font-size: 25px;
    }

    .exam-hub-card-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .exam-hub-card {
        min-height: 170px;
        padding: 15px;
    }

    .general-exams-back {
        margin-bottom: 2px;
    }

    .general-exam-item {
        grid-template-columns: 34px minmax(0, 1fr) 40px;
        gap: 11px;
        min-height: 84px;
        padding: 13px;
    }

    .general-exam-item-number {
        width: 34px;
        height: 34px;
    }

    .general-exam-item-copy h3 {
        font-size: 15.5px;
    }

    .general-exam-item-copy p {
        font-size: 9.5px;
    }

    .general-exam-item button {
        width: 39px;
        height: 39px;
        border-radius: 12px;
    }

    .traffic-hub-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 5px;
        padding: 7px;
    }

    .traffic-hub-filters {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .traffic-hub-filters button {
        padding-inline: 6px;
        white-space: nowrap;
        font-size: 8.8px;
    }

    .traffic-hub-resume {
        justify-content: center;
        border-top: 1px solid #e2e9f2;
    }

    .traffic-hub-card {
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 12px;
        min-height: 138px;
        padding: 12px 12px 14px;
    }

    .traffic-hub-card-art {
        min-height: 110px;
    }

    .traffic-hub-card-art img {
        width: 72px;
        height: 72px;
    }

    .traffic-hub-card-copy h3 {
        font-size: 15px;
    }

    .traffic-hub-card-copy p {
        font-size: 9.8px;
    }
}

@media (max-width: 390px) {
    .traffic-hub-card {
        grid-template-columns: 82px minmax(0, 1fr);
    }

    .traffic-hub-card-art {
        min-height: 104px;
    }

    .traffic-hub-card-art img {
        width: 64px;
        height: 64px;
    }
}


/* Exam and traffic hub polish v41.
   All public shells share the same axis; only presentation is refined. */
@media (min-width: 1181px) {
    .site-header > .shell,
    .site-footer > .shell,
    .exam-hub-page .shell,
    .general-exams-page .shell,
    .traffic-hub-page .shell {
        width: min(1240px, calc(100% - 40px));
    }
}

@media (min-width: 901px) and (max-width: 1180px) {
    .site-header > .shell,
    .site-footer > .shell,
    .exam-hub-page .shell,
    .general-exams-page .shell,
    .traffic-hub-page .shell {
        width: min(1120px, calc(100% - 40px));
    }
}

.exam-hub-page,
.traffic-hub-page {
    background:
        linear-gradient(180deg, #f8fafd 0, #f5f8fc 48%, #f7f9fc 100%);
}

.exam-hub-intro-inner,
.traffic-hub-intro-inner {
    min-height: 124px;
    padding-top: 21px;
    padding-bottom: 21px;
}

.exam-hub-intro h1,
.traffic-hub-intro h1 {
    margin-top: 7px;
    font-size: clamp(33px, 2.8vw, 40px);
    font-weight: 660;
}

.exam-hub-intro p,
.traffic-hub-intro p {
    font-size: 12.5px;
}

.exam-hub-content,
.traffic-hub-content {
    padding-top: 25px;
    padding-bottom: 54px;
}

/* Sınav merkezi */
.exam-general-card {
    grid-template-columns: 52px minmax(0, 1fr) auto 146px;
    gap: 18px;
    min-height: 158px;
    padding: 21px 22px;
    border-color: #cddcf0;
    border-radius: 19px;
    background:
        radial-gradient(circle at 91% 46%, rgba(47, 111, 231, .09), transparent 21%),
        linear-gradient(112deg, #fff 0%, #fbfdff 53%, #edf5ff 100%);
    box-shadow: 0 15px 36px rgba(34, 64, 103, .065);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.exam-general-card:hover {
    transform: translateY(-2px);
    border-color: #bdd0ea;
    box-shadow: 0 19px 42px rgba(34, 64, 103, .10);
}

.exam-general-card::before {
    width: 3px;
}

.exam-general-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

.exam-general-card-copy h2 {
    margin: 4px 0 5px;
    font-size: 26px;
    font-weight: 670;
}

.exam-general-card-copy p {
    max-width: 590px;
    font-size: 12.2px;
}

.exam-general-card-meta {
    margin-top: 12px;
}

.exam-general-card-meta span {
    padding: 5px 9px;
    border-color: #d7e3f2;
    background: rgba(255, 255, 255, .9);
}

.exam-general-card-action {
    gap: 7px;
}

.exam-general-card-action > span:first-child {
    color: #61748c;
    font-size: 9.8px;
}

.exam-general-card-action .button {
    min-height: 43px;
    border-radius: 11px;
    box-shadow: 0 10px 22px rgba(30, 95, 229, .17);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.exam-general-card:hover .exam-general-card-action .button {
    transform: translateY(-1px);
    box-shadow: 0 13px 26px rgba(30, 95, 229, .22);
}

.exam-general-card-visual::before {
    width: 164px;
    height: 164px;
    background: rgba(51, 113, 231, .07);
}

.exam-general-card-visual svg {
    width: 142px;
    height: 106px;
    stroke: #477bd1;
}

.exam-hub-tests {
    padding-top: 31px;
}

.exam-hub-section-head,
.traffic-hub-section-head {
    margin-bottom: 15px;
}

.exam-hub-section-head h2,
.traffic-hub-section-head h2 {
    font-size: clamp(27px, 2.15vw, 32px);
    font-weight: 660;
}

.exam-hub-card-grid {
    gap: 14px;
}

.exam-hub-card {
    min-height: 202px;
    padding: 18px;
    border-color: #d8e2ed;
    border-radius: 18px;
    background:
        linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--card-soft) 18%, #fff) 100%);
    box-shadow: 0 9px 24px rgba(31, 57, 91, .045);
}

.exam-hub-card::before {
    height: 2px;
}

.exam-hub-card-topline {
    margin-bottom: 15px;
}

.exam-hub-card-topline > span {
    padding: 4px 7px;
    border: 1px solid color-mix(in srgb, var(--card-accent) 13%, #dce5ef);
    border-radius: 999px;
    color: color-mix(in srgb, var(--card-accent) 72%, #65768b);
    background: color-mix(in srgb, var(--card-soft) 65%, #fff);
    font-size: 9px;
}

.exam-hub-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
}

.exam-hub-card-copy h3 {
    margin-bottom: 7px;
    font-size: 18px;
    font-weight: 670;
}

.exam-hub-card-copy p {
    font-size: 11.2px;
    line-height: 1.5;
}

.exam-hub-card-foot {
    padding-top: 15px;
}

.exam-hub-card-foot strong {
    padding: 6px 8px;
    border-radius: 9px;
    background: color-mix(in srgb, var(--card-soft) 68%, #fff);
    font-size: 10.3px;
}

/* Trafik işaretleri */
.traffic-hub-intro-stats {
    border-color: #d6e1ee;
    border-radius: 13px;
    background: rgba(255, 255, 255, .84);
    box-shadow: 0 9px 24px rgba(35, 63, 99, .045);
}

.traffic-hub-intro-stats span {
    min-width: 92px;
    padding: 11px 17px;
}

.traffic-hub-intro-stats strong {
    font-size: 16px;
}

.traffic-hub-categories {
    padding-top: 0;
}

.traffic-hub-toolbar {
    min-height: 48px;
    margin: 0 0 14px;
    padding: 7px;
    border-color: #d9e3ee;
    border-radius: 14px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 8px 22px rgba(33, 59, 92, .035);
}

.traffic-hub-toolbar-side {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.traffic-hub-toolbar-count {
    flex: 0 0 auto;
    padding: 5px 8px;
    border: 1px solid #d9e3ef;
    border-radius: 999px;
    color: #6b7d92;
    background: #f9fbfd;
    font-size: 8.9px;
    font-weight: 720;
}

.traffic-hub-filters button {
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 9px;
    font-size: 9.6px;
}

.traffic-hub-resume {
    padding: 6px 8px;
    border-radius: 9px;
}

.traffic-hub-resume:hover {
    background: #f1f6ff;
}

.traffic-hub-card-grid {
    gap: 14px;
}

.traffic-hub-card {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 17px;
    min-height: 158px;
    padding: 14px 15px 16px;
    border-color: #d9e3ee;
    border-radius: 17px;
    box-shadow: 0 8px 22px rgba(31, 56, 89, .04);
}

.traffic-hub-card::before {
    height: 2px;
}

.traffic-hub-card-art {
    min-height: 128px;
    border-color: #e0e7ef;
    border-radius: 14px;
    background:
        linear-gradient(180deg, #fbfcfe 0%, color-mix(in srgb, var(--sign-soft) 34%, #fff) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}

.traffic-hub-card-art img {
    width: 88px;
    height: 88px;
}

.traffic-hub-card-top {
    min-height: 24px;
}

.traffic-hub-card-top > span:first-child,
.traffic-hub-card-count {
    font-size: 8.8px;
}

.traffic-hub-card-progress {
    min-height: 22px;
    padding: 4px 8px;
    font-size: 8.7px;
}

.traffic-hub-card-copy h3 {
    margin: 5px 0 5px;
    font-size: 17px;
    font-weight: 670;
}

.traffic-hub-card-copy p {
    font-size: 11px;
    line-height: 1.46;
}

.traffic-hub-card-copy strong {
    padding-top: 9px;
    font-size: 10.4px;
}

.traffic-hub-card-track {
    height: 3px;
    background: #edf1f5;
}

.traffic-hub-card-track i {
    border-radius: 0 999px 999px 0;
}

@media (max-width: 1100px) {
    .exam-general-card {
        grid-template-columns: 50px minmax(0, 1fr) auto;
    }
}

@media (max-width: 680px) {
    .exam-hub-intro-inner,
    .traffic-hub-intro-inner {
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .exam-hub-content,
    .traffic-hub-content {
        padding-top: 17px;
        padding-bottom: 38px;
    }

    .exam-general-card {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 11px;
        padding: 15px;
        border-radius: 16px;
    }

    .exam-general-card-copy h2 {
        font-size: 21px;
    }

    .exam-general-card-action .button {
        min-height: 41px;
        box-shadow: 0 8px 18px rgba(30, 95, 229, .14);
    }

    .exam-hub-card {
        min-height: 176px;
        padding: 16px;
    }

    .exam-hub-card-copy h3 {
        font-size: 17px;
    }

    .traffic-hub-toolbar {
        gap: 6px;
    }

    .traffic-hub-toolbar-side {
        justify-content: space-between;
        border-top: 1px solid #e2e9f2;
        padding-top: 5px;
    }

    .traffic-hub-resume {
        border-top: 0;
    }

    .traffic-hub-card {
        grid-template-columns: 94px minmax(0, 1fr);
        gap: 12px;
        min-height: 142px;
        padding: 12px 12px 14px;
    }

    .traffic-hub-card-art {
        min-height: 112px;
    }

    .traffic-hub-card-art img {
        width: 74px;
        height: 74px;
    }

    .traffic-hub-card-copy h3 {
        font-size: 15.5px;
    }

    .traffic-hub-card-copy p {
        font-size: 10px;
    }
}

@media (max-width: 390px) {
    .traffic-hub-card {
        grid-template-columns: 84px minmax(0, 1fr);
    }

    .traffic-hub-card-art {
        min-height: 106px;
    }

    .traffic-hub-card-art img {
        width: 66px;
        height: 66px;
    }
}

/* Exam / traffic hub alignment and persistence polish v42. */
.page-exams,
.page-traffic-signs {
    --hub-shell-max: 1240px;
    --hub-shell-gutter: 40px;
}

@media (min-width: 1181px) {
    .page-exams .site-header > .shell,
    .page-exams .site-footer > .shell,
    .page-exams .exam-hub-intro > .shell,
    .page-exams .exam-hub-content,
    .page-traffic-signs .site-header > .shell,
    .page-traffic-signs .site-footer > .shell,
    .page-traffic-signs .traffic-hub-intro > .shell,
    .page-traffic-signs .traffic-hub-content {
        width: calc(100% - var(--hub-shell-gutter));
        max-width: var(--hub-shell-max);
        margin-inline: auto;
        box-sizing: border-box;
    }
}

@media (min-width: 901px) and (max-width: 1180px) {
    .page-exams,
    .page-traffic-signs {
        --hub-shell-max: 1120px;
    }

    .page-exams .site-header > .shell,
    .page-exams .site-footer > .shell,
    .page-exams .exam-hub-intro > .shell,
    .page-exams .exam-hub-content,
    .page-traffic-signs .site-header > .shell,
    .page-traffic-signs .site-footer > .shell,
    .page-traffic-signs .traffic-hub-intro > .shell,
    .page-traffic-signs .traffic-hub-content {
        width: calc(100% - var(--hub-shell-gutter));
        max-width: var(--hub-shell-max);
        margin-inline: auto;
        box-sizing: border-box;
    }
}

.page-exams .exam-hub-intro-inner,
.page-traffic-signs .traffic-hub-intro-inner {
    min-height: 116px;
    padding-top: 19px;
    padding-bottom: 19px;
}

.page-exams .exam-hub-intro h1,
.page-traffic-signs .traffic-hub-intro h1 {
    margin-top: 6px;
    font-size: clamp(34px, 2.55vw, 39px);
    font-weight: 650;
    letter-spacing: -.037em;
}

.page-exams .exam-hub-intro p,
.page-traffic-signs .traffic-hub-intro p {
    max-width: 690px;
    margin-top: 5px;
    color: #66788e;
    font-size: 12.3px;
    line-height: 1.5;
}

.page-exams .exam-hub-content {
    padding-top: 27px;
}

.page-exams .exam-general-card {
    align-items: center;
    border-color: #cbd9eb;
    box-shadow: 0 16px 38px rgba(35, 62, 97, .07);
}

.page-exams .exam-general-card-copy h2 {
    letter-spacing: -.025em;
}

.page-exams .exam-general-card-copy p {
    color: #5f7289;
}

.page-exams .exam-general-card-action > span:first-child {
    padding: 4px 7px;
    border: 1px solid #dce5ef;
    border-radius: 999px;
    background: rgba(255, 255, 255, .78);
}

.page-exams .exam-hub-section-head {
    align-items: end;
}

.page-exams .exam-hub-card {
    transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.page-exams .exam-hub-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--card-accent) 25%, #d7e1ec);
    box-shadow: 0 14px 30px rgba(31, 57, 91, .07);
}

.page-exams .exam-hub-card-copy p {
    max-width: 245px;
}

.page-traffic-signs .traffic-hub-content {
    padding-top: 18px;
}

.page-traffic-signs .traffic-hub-intro-copy .hub-page-kicker {
    color: #557395;
}

.page-traffic-signs .traffic-hub-intro-stats {
    overflow: hidden;
    border-color: #d4dfec;
    background: rgba(255, 255, 255, .88);
}

.page-traffic-signs .traffic-hub-intro-stats span {
    min-width: 86px;
    padding: 10px 15px;
}

.page-traffic-signs .traffic-hub-toolbar {
    margin-bottom: 12px;
    border-color: #d7e1ec;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 8px 20px rgba(33, 59, 92, .035);
}

.page-traffic-signs .traffic-hub-filters button {
    color: #687b91;
}

.page-traffic-signs .traffic-hub-filters button.is-active {
    color: #175cd3;
    background: #edf4ff;
    box-shadow: inset 0 0 0 1px #d6e6ff;
}

.page-traffic-signs .traffic-hub-card {
    border-color: #d7e1ec;
    background: #fff;
    transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.page-traffic-signs .traffic-hub-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--sign-accent) 27%, #d5e0eb);
    box-shadow: 0 14px 30px rgba(31, 56, 89, .065);
}

.page-traffic-signs .traffic-hub-card[data-traffic-state="progress"] {
    border-color: color-mix(in srgb, var(--sign-accent) 22%, #d7e1ec);
}

.page-traffic-signs .traffic-hub-card[data-traffic-state="complete"] {
    border-color: #b9dfcf;
    box-shadow: 0 9px 24px rgba(31, 122, 87, .055);
}

.page-traffic-signs .traffic-hub-card-art {
    background: linear-gradient(180deg, #fcfdff 0%, color-mix(in srgb, var(--sign-soft) 24%, #fff) 100%);
}

.page-traffic-signs .traffic-hub-card-progress.is-progress {
    border-color: color-mix(in srgb, var(--sign-accent) 24%, #d9e3ed);
    color: color-mix(in srgb, var(--sign-accent) 78%, #476176);
    background: color-mix(in srgb, var(--sign-soft) 64%, #fff);
}

.page-traffic-signs .traffic-hub-card-progress.is-complete {
    border-color: #bce4d2;
    color: #147452;
    background: #edf9f4;
}

.page-traffic-signs .traffic-hub-card-copy p {
    max-width: 560px;
    color: #67798e;
}

.page-traffic-signs .traffic-hub-card-copy strong {
    font-weight: 750;
}

@media (max-width: 680px) {
    .page-exams .exam-hub-intro-inner,
    .page-traffic-signs .traffic-hub-intro-inner {
        min-height: auto;
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .page-traffic-signs .traffic-hub-content {
        padding-top: 14px;
    }

    .page-traffic-signs .traffic-hub-toolbar {
        margin-bottom: 10px;
    }
}

/* Global site chrome alignment v43.
   Header, navigation and footer keep one axis on every route, regardless of
   page-specific content widths or whether the page needs a vertical scrollbar. */
.site-header > .shell,
.site-footer > .shell {
    width: min(1240px, calc(100% - 40px)) !important;
    max-width: none;
    margin-inline: auto;
}

@media (min-width: 1181px) {
    .site-header .nav {
        grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr);
        column-gap: 24px;
    }

    .site-header .brand {
        justify-self: start;
    }

    .site-header .nav-links {
        justify-self: center;
    }

    .site-header .nav-auth {
        justify-self: end;
    }
}

@media (min-width: 901px) and (max-width: 1180px) {
    .site-header > .shell,
    .site-footer > .shell {
        width: min(1120px, calc(100% - 40px)) !important;
    }

    .site-header .nav {
        grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
        column-gap: 18px;
    }

    .site-header .brand {
        justify-self: start;
    }

    .site-header .nav-links {
        justify-self: center;
    }

    .site-header .nav-auth {
        justify-self: end;
    }
}

@media (max-width: 900px) {
    .site-header > .shell,
    .site-footer > .shell,
    .site-header .mobile-nav-shell {
        width: min(100% - 28px, 1240px) !important;
        max-width: none;
        margin-inline: auto;
    }
}


/* Home mascot CTA v44: use the first-exam pose as a single, purposeful brand moment. */
.page-home .home-final-panel {
    grid-template-columns: minmax(0, 1fr) auto 190px;
    grid-template-areas: "copy action mascot";
    gap: 28px;
    min-height: 206px;
    padding: 32px 24px 32px 42px;
}

.page-home .home-final-copy {
    grid-area: copy;
    align-self: center;
}

.page-home .home-final-copy h2 {
    max-width: 650px;
    font-size: clamp(30px, 3vw, 42px);
}

.page-home .home-final-copy p:last-child {
    margin-top: 12px;
}

.page-home .home-final-panel form {
    grid-area: action;
    align-self: center;
    justify-self: end;
}

.page-home .home-final-mascot {
    grid-area: mascot;
    position: relative;
    align-self: stretch;
    width: 190px;
    height: 176px;
    margin: 0;
    z-index: 2;
    pointer-events: none;
}

.page-home .home-final-mascot-glow {
    position: absolute;
    inset: 16px 2px -26px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(147, 197, 253, 0.26) 0%, rgba(96, 165, 250, 0.08) 48%, transparent 72%);
    filter: blur(2px);
}

.page-home .home-final-mascot img {
    position: absolute;
    top: -30px;
    left: 50%;
    display: block;
    width: 178px;
    max-width: none;
    height: auto;
    transform: translateX(-50%);
    filter: drop-shadow(0 18px 18px rgba(3, 15, 43, 0.26));
}

@media (max-width: 1100px) {
    .page-home .home-final-panel {
        grid-template-columns: minmax(0, 1fr) auto 158px;
        gap: 22px;
        padding-right: 18px;
    }

    .page-home .home-final-mascot {
        width: 158px;
        height: 170px;
    }

    .page-home .home-final-mascot img {
        top: -18px;
        width: 154px;
    }
}

@media (max-width: 900px) {
    .page-home .home-final-panel {
        grid-template-columns: minmax(0, 1fr) 144px;
        grid-template-areas:
            "copy mascot"
            "action mascot";
        gap: 18px 22px;
        min-height: 218px;
        padding: 28px 22px 28px 32px;
    }

    .page-home .home-final-panel form {
        justify-self: start;
    }

    .page-home .home-final-mascot {
        width: 144px;
        height: 162px;
        align-self: center;
    }

    .page-home .home-final-mascot img {
        top: -14px;
        width: 142px;
    }
}

@media (max-width: 680px) {
    .page-home .home-final-panel {
        position: relative;
        grid-template-columns: 1fr;
        grid-template-areas:
            "copy"
            "action";
        gap: 18px;
        min-height: 0;
        padding: 24px 18px 22px;
    }

    .page-home .home-final-copy h2 {
        max-width: calc(100% - 88px);
        font-size: clamp(28px, 8vw, 34px);
    }

    .page-home .home-final-copy p:last-child {
        max-width: 100%;
        padding-right: 0;
        font-size: 14px;
    }

    .page-home .home-final-panel form {
        width: 100%;
    }

    .page-home .home-final-action {
        width: 100%;
        min-width: 0;
    }

    .page-home .home-final-mascot {
        position: absolute;
        top: 16px;
        right: 12px;
        width: 86px;
        height: 112px;
    }

    .page-home .home-final-mascot-glow {
        inset: 18px -5px -12px;
    }

    .page-home .home-final-mascot img {
        top: 0;
        width: 90px;
    }
}

@media (max-width: 420px) {
    .page-home .home-final-copy h2 {
        max-width: calc(100% - 76px);
    }

    .page-home .home-final-mascot {
        right: 9px;
        width: 76px;
        height: 102px;
    }

    .page-home .home-final-mascot img {
        width: 80px;
    }
}

/* Profile dashboard v46: compact, data-led member workspace. */
.profile-dashboard {
    padding: 36px 0 58px;
    background:
        radial-gradient(circle at 92% 0%, rgba(37, 99, 235, 0.10), transparent 28%),
        linear-gradient(180deg, #f8fbff 0%, #f6f8fb 48%, #f8fafc 100%);
}

.profile-dashboard-shell {
    display: grid;
    gap: 18px;
}

.profile-dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 4px 0 8px;
}

.profile-identity {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-avatar {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 17px;
    color: #fff;
    background: linear-gradient(145deg, #1d4ed8, #3b82f6);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.30);
    font-size: 22px;
    font-weight: 900;
}

.profile-kicker {
    margin: 0 0 3px;
    color: var(--brand-600);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.profile-dashboard-header h1 {
    margin: 0;
    color: var(--navy-950);
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 780;
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.profile-email {
    margin: 5px 0 0;
    color: #6b7d91;
    font-size: 13px;
}

.profile-nav {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid #dbe4ef;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.profile-nav a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 13px;
    border-radius: 9px;
    color: #526277;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.profile-nav a:hover,
.profile-nav a.is-active {
    color: var(--brand-700);
    background: #fff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.profile-active-exam {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 17px;
    padding: 17px 18px;
    border: 1px solid rgba(37, 99, 235, 0.22);
    border-radius: 17px;
    color: #fff;
    background:
        radial-gradient(circle at 82% 50%, rgba(147, 197, 253, 0.27), transparent 27%),
        linear-gradient(120deg, #123070 0%, #1d4ed8 62%, #2877f5 100%);
    box-shadow: 0 18px 38px rgba(29, 78, 216, 0.20);
}

.profile-active-exam::after {
    content: "";
    position: absolute;
    right: 88px;
    bottom: -90px;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;
    pointer-events: none;
}

.profile-active-icon {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
}

.profile-active-icon svg,
.profile-metric-icon svg,
.profile-shortcut-icon svg,
.profile-shortcut-card > em svg,
.profile-empty-icon svg,
.profile-recent-list em svg,
.profile-package-icon svg,
.profile-question-summary svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.profile-active-copy {
    min-width: 0;
}

.profile-active-copy > span {
    display: block;
    margin-bottom: 2px;
    color: #bfdbfe;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.profile-active-copy strong {
    display: block;
    font-size: 18px;
    line-height: 1.25;
}

.profile-active-copy p {
    margin: 4px 0 9px;
    color: #dbeafe;
    font-size: 12px;
}

.profile-active-progress {
    width: min(390px, 100%);
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.profile-active-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #fff;
}

.profile-active-action {
    position: relative;
    z-index: 1;
    color: var(--brand-700);
    background: #fff;
    box-shadow: 0 10px 22px rgba(5, 18, 45, 0.20);
}

.profile-active-action:hover {
    background: #f8fbff;
}

.profile-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.profile-metric-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 112px;
    padding: 17px;
    border: 1px solid #dfe7f0;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.055);
}

.profile-metric-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
}

.profile-metric-icon--blue {
    color: #2563eb;
    background: #eff6ff;
}

.profile-metric-icon--purple {
    color: #7357d8;
    background: #f3f0ff;
}

.profile-metric-icon--orange {
    color: #d97706;
    background: #fff7e8;
}

.profile-metric-icon--green {
    color: #0f9f76;
    background: #ecfdf5;
}

.profile-metric-card div {
    min-width: 0;
}

.profile-metric-card small {
    display: block;
    color: #607187;
    font-size: 11px;
    font-weight: 800;
}

.profile-metric-card strong {
    display: block;
    margin-top: 2px;
    color: var(--navy-950);
    font-size: 28px;
    font-weight: 780;
    line-height: 1;
    letter-spacing: -0.035em;
}

.profile-metric-card p {
    margin: 5px 0 0;
    color: #8a98a9;
    font-size: 11px;
}

.profile-primary-grid,
.profile-secondary-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.8fr);
    gap: 14px;
    align-items: stretch;
}

.profile-secondary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-card,
.profile-recommendation-card {
    border: 1px solid #dfe7f0;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
}

.profile-card {
    padding: 22px;
}

.profile-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 17px;
}

.profile-card-head > div {
    min-width: 0;
}

.profile-card-head > div > span,
.profile-recommendation-copy > span {
    display: block;
    margin-bottom: 5px;
    color: var(--brand-600);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.profile-card-head h2,
.profile-recommendation-copy h2 {
    margin: 0;
    color: var(--navy-950);
    font-size: 24px;
    font-weight: 760;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.profile-card-head p {
    margin: 7px 0 0;
    color: #6e7e92;
    font-size: 13px;
}

.profile-card-head > a {
    flex: 0 0 auto;
    margin-top: 4px;
    color: var(--brand-700);
    font-size: 12px;
    font-weight: 850;
}

.profile-card-head > a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.profile-card-head--compact {
    align-items: center;
    margin-bottom: 14px;
}

.profile-card-head--compact h2 {
    font-size: 21px;
}

.profile-performance-list {
    display: grid;
    gap: 10px;
}

.profile-performance-item {
    --profile-tone: #3b82f6;
    display: block;
    padding: 13px 14px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    background: #fbfdff;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.profile-performance-item:hover {
    transform: translateY(-1px);
    border-color: rgba(37, 99, 235, 0.28);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.065);
}

.profile-performance-item--traffic {
    --profile-tone: #3b82f6;
}

.profile-performance-item--first-aid {
    --profile-tone: #ec5f89;
}

.profile-performance-item--engine {
    --profile-tone: #e88a2d;
}

.profile-performance-item--ethics {
    --profile-tone: #18a77b;
}

.profile-performance-topline,
.profile-performance-meta {
    display: flex;
    align-items: center;
    gap: 14px;
}

.profile-performance-topline {
    justify-content: space-between;
}

.profile-performance-topline strong {
    color: #172033;
    font-size: 14px;
}

.profile-performance-topline span {
    color: var(--profile-tone);
    font-size: 13px;
    font-weight: 900;
}

.profile-performance-track,
.profile-package-track {
    height: 6px;
    overflow: hidden;
    margin: 9px 0 8px;
    border-radius: 999px;
    background: #edf1f5;
}

.profile-performance-track span,
.profile-package-track i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--profile-tone);
}

.profile-performance-meta small {
    color: #7d8b9c;
    font-size: 11px;
}

.profile-performance-meta small b {
    color: #35445a;
}

.profile-performance-meta em {
    margin-left: auto;
    color: var(--profile-tone);
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
}

.profile-recommendation-card {
    position: relative;
    overflow: hidden;
    min-height: 100%;
    padding: 24px 22px;
    color: #fff;
    background:
        radial-gradient(circle at 88% 16%, rgba(147, 197, 253, 0.28), transparent 31%),
        linear-gradient(145deg, #102b68 0%, #1749b5 62%, #2563eb 100%);
    box-shadow: 0 18px 36px rgba(29, 78, 216, 0.19);
}

.profile-recommendation-card::before,
.profile-recommendation-card::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 50%;
}

.profile-recommendation-card::before {
    width: 260px;
    height: 260px;
    right: -92px;
    bottom: -124px;
}

.profile-recommendation-card::after {
    width: 190px;
    height: 190px;
    right: -55px;
    bottom: -90px;
}

.profile-recommendation-copy {
    position: relative;
    z-index: 2;
    max-width: 67%;
}

.profile-recommendation-copy > span {
    color: #bfdbfe;
}

.profile-recommendation-copy h2 {
    color: #fff;
    font-size: 25px;
}

.profile-recommendation-copy p {
    margin: 10px 0 18px;
    color: #dbeafe;
    font-size: 13px;
    line-height: 1.55;
}

.profile-recommendation-action {
    color: var(--brand-700);
    background: #fff;
    box-shadow: 0 10px 22px rgba(5, 18, 45, 0.22);
}

.profile-recommendation-mascot {
    position: absolute;
    right: -7px;
    bottom: -20px;
    width: 152px;
    height: 205px;
    margin: 0;
    pointer-events: none;
}

.profile-recommendation-mascot > span {
    position: absolute;
    inset: 42px -12px -18px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(191, 219, 254, 0.25), rgba(96, 165, 250, 0.06) 56%, transparent 72%);
}

.profile-recommendation-mascot img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom right;
    filter: drop-shadow(0 18px 18px rgba(4, 15, 42, 0.28));
}

.profile-shortcuts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.profile-shortcut-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    padding: 16px;
    border: 1px solid #dfe7f0;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 11px 26px rgba(15, 23, 42, 0.05);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.profile-shortcut-card:hover {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, 0.22);
    box-shadow: 0 17px 34px rgba(15, 23, 42, 0.08);
}

.profile-shortcut-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: #2563eb;
    background: #eff6ff;
}

.profile-shortcut-card--wrong .profile-shortcut-icon {
    color: #d95f5f;
    background: #fff1f1;
}

.profile-shortcut-card--saved .profile-shortcut-icon {
    color: #7357d8;
    background: #f3f0ff;
}

.profile-shortcut-card small {
    display: block;
    margin-bottom: 2px;
    color: #8a98a9;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.profile-shortcut-card strong {
    display: block;
    color: #172033;
    font-size: 14px;
}

.profile-shortcut-card p {
    margin: 3px 0 0;
    color: #6d7d90;
    font-size: 11px;
}

.profile-shortcut-card > em {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #5f7187;
    background: #fff;
}

.profile-shortcut-card > em svg {
    width: 16px;
    height: 16px;
}

.profile-empty-state {
    min-height: 154px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px dashed #ced9e6;
    border-radius: 14px;
    background: #f8fbff;
}

.profile-empty-state--compact {
    min-height: 112px;
    grid-template-columns: auto minmax(0, 1fr);
}

.profile-empty-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: #3b82f6;
    background: #eaf3ff;
}

.profile-empty-state strong {
    display: block;
    color: #263348;
    font-size: 14px;
}

.profile-empty-state p {
    margin: 5px 0 0;
    color: #738398;
    font-size: 12px;
}

.profile-recent-list,
.profile-package-list {
    display: grid;
    gap: 8px;
}

.profile-recent-list > a,
.profile-package-list > a {
    display: grid;
    align-items: center;
    gap: 12px;
    min-height: 67px;
    padding: 10px 11px;
    border: 1px solid #e5ebf2;
    border-radius: 13px;
    background: #fbfdff;
    transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.profile-recent-list > a {
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.profile-package-list > a {
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.profile-recent-list > a:hover,
.profile-package-list > a:hover {
    transform: translateY(-1px);
    border-color: rgba(37, 99, 235, 0.24);
    background: #fff;
}

.profile-recent-score {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: #c65353;
    background: #fff1f1;
    font-size: 12px;
    font-weight: 900;
}

.profile-recent-score.is-passed {
    color: #0f8d69;
    background: #ecfdf5;
}

.profile-recent-copy,
.profile-package-copy {
    min-width: 0;
}

.profile-recent-copy strong,
.profile-package-copy strong {
    display: block;
    overflow: hidden;
    color: #1c293d;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-recent-copy small,
.profile-package-copy small {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    color: #7b8a9c;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-recent-list em {
    color: #5c7088;
}

.profile-recent-list em svg {
    width: 17px;
    height: 17px;
}

.profile-package-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #2563eb;
    background: #eff6ff;
}

.profile-package-track {
    --profile-tone: #3b82f6;
    width: min(180px, 100%);
    height: 4px;
    margin: 7px 0 0;
}

.profile-package-score {
    min-width: 47px;
    text-align: right;
}

.profile-package-score small {
    display: block;
    color: #93a0af;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.profile-package-score strong {
    display: block;
    color: var(--brand-700);
    font-size: 15px;
}

.profile-question-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
    border: 1px solid #dfe7f0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.80);
}

.profile-question-summary > div {
    display: flex;
    align-items: center;
    gap: 11px;
}

.profile-question-summary > div > span {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #2563eb;
    background: #eff6ff;
}

.profile-question-summary p {
    margin: 0;
    color: #66778c;
    font-size: 12px;
}

.profile-question-summary p strong {
    color: #29374a;
}

.profile-question-summary > a {
    flex: 0 0 auto;
    color: var(--brand-700);
    font-size: 12px;
    font-weight: 850;
}

@media (max-width: 980px) {
    .profile-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-primary-grid {
        grid-template-columns: 1fr;
    }

    .profile-recommendation-card {
        min-height: 260px;
    }

    .profile-recommendation-copy {
        max-width: 72%;
    }

    .profile-recommendation-mascot {
        width: 165px;
        height: 220px;
    }
}

@media (max-width: 760px) {
    .profile-dashboard {
        padding: 24px 0 42px;
    }

    .profile-dashboard-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

    .profile-nav {
        width: 100%;
    }

    .profile-nav a {
        flex: 1 1 0;
        padding-inline: 8px;
    }

    .profile-active-exam {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .profile-active-action {
        grid-column: 1 / -1;
        width: 100%;
    }

    .profile-secondary-grid,
    .profile-shortcuts {
        grid-template-columns: 1fr;
    }

    .profile-shortcut-card {
        min-height: 82px;
    }

    .profile-question-summary {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 580px) {
    .profile-dashboard-shell {
        gap: 13px;
    }

    .profile-avatar {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        border-radius: 15px;
        font-size: 19px;
    }

    .profile-dashboard-header h1 {
        font-size: 28px;
    }

    .profile-email {
        max-width: 230px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .profile-nav {
        overflow-x: auto;
        justify-content: flex-start;
    }

    .profile-nav a {
        flex: 0 0 auto;
    }

    .profile-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .profile-metric-card {
        min-height: 104px;
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        padding: 14px;
    }

    .profile-metric-icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
        border-radius: 11px;
    }

    .profile-metric-icon svg {
        width: 18px;
        height: 18px;
    }

    .profile-metric-card strong {
        font-size: 24px;
    }

    .profile-metric-card p {
        display: none;
    }

    .profile-card {
        padding: 17px;
        border-radius: 16px;
    }

    .profile-card-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 14px;
    }

    .profile-card-head h2,
    .profile-recommendation-copy h2 {
        font-size: 21px;
    }

    .profile-performance-meta {
        gap: 9px;
    }

    .profile-performance-meta small:nth-of-type(3) {
        display: none;
    }

    .profile-recommendation-card {
        min-height: 286px;
        padding: 20px 18px;
    }

    .profile-recommendation-copy {
        max-width: calc(100% - 88px);
    }

    .profile-recommendation-copy p {
        font-size: 12px;
    }

    .profile-recommendation-action {
        max-width: 100%;
        padding-inline: 14px;
        font-size: 12px;
    }

    .profile-recommendation-mascot {
        right: -24px;
        bottom: -25px;
        width: 138px;
        height: 190px;
    }

    .profile-empty-state {
        grid-template-columns: auto minmax(0, 1fr);
        min-height: 128px;
        padding: 14px;
    }

    .profile-empty-state .button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .profile-question-summary > a {
        width: 100%;
    }
}

@media (max-width: 340px) {
    .profile-metric-grid {
        grid-template-columns: 1fr;
    }

    .profile-metric-card {
        min-height: 82px;
        align-items: center;
        flex-direction: row;
    }

    .profile-performance-meta em {
        display: none;
    }

    .profile-recommendation-copy {
        max-width: calc(100% - 66px);
    }

    .profile-recommendation-mascot {
        right: -34px;
        width: 124px;
    }
}

/* Account analytics v47: premium history and progress workspaces. */
.account-workspace {
    min-height: calc(100vh - 70px);
}

.account-workspace svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.account-workspace-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    padding: 3px 0 5px;
}

.account-workspace-header > div {
    min-width: 0;
}

.account-workspace-header h1 {
    margin: 0;
    color: var(--navy-950);
    font-size: clamp(30px, 3.2vw, 42px);
    font-weight: 780;
    line-height: 1.04;
    letter-spacing: -0.042em;
}

.account-workspace-header > div > p:last-child {
    max-width: 670px;
    margin: 8px 0 0;
    color: #6b7d91;
    font-size: 14px;
    line-height: 1.55;
}

.history-metric-grid,
.progress-metric-grid {
    margin-top: 2px;
}

.history-filter-panel,
.history-results,
.progress-score-card,
.progress-signal-card,
.progress-trend-card,
.progress-distribution-card,
.progress-categories-card {
    border: 1px solid #dde6f0;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.06);
}

.history-filter-panel {
    padding: 18px;
    border-radius: 18px;
}

.history-filter-head,
.history-filter-head > div,
.history-results-head,
.history-filter-actions,
.history-pagination {
    display: flex;
    align-items: center;
}

.history-filter-head {
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 15px;
}

.history-filter-head > div {
    min-width: 0;
    gap: 12px;
}

.history-filter-icon {
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #2563eb;
    background: #edf5ff;
}

.history-filter-head strong {
    display: block;
    color: #1b2739;
    font-size: 15px;
}

.history-filter-head p {
    margin: 3px 0 0;
    color: #7a8a9d;
    font-size: 12px;
}

.history-filter-count {
    flex: 0 0 auto;
    padding: 6px 9px;
    border: 1px solid #bfd6ff;
    border-radius: 999px;
    color: #1d5fd1;
    background: #f2f7ff;
    font-size: 10px;
    font-weight: 850;
}

.history-filter-primary,
.history-filter-secondary {
    display: grid;
    gap: 11px;
}

.history-filter-primary {
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    align-items: end;
}

.history-filter-secondary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding-top: 13px;
}

.history-filter-primary label,
.history-filter-secondary label {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.history-filter-primary label > span,
.history-filter-secondary label > span {
    color: #607086;
    font-size: 11px;
    font-weight: 800;
}

.history-filter-primary select,
.history-filter-secondary input {
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid #dce5ef;
    border-radius: 11px;
    color: #263449;
    background: #fbfdff;
    font: inherit;
    font-size: 13px;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.history-filter-primary select:focus,
.history-filter-secondary input:focus {
    border-color: #8ab4ff;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}

.history-filter-actions {
    justify-content: flex-end;
    gap: 8px;
}

.history-filter-actions .button {
    min-height: 42px;
    padding: 9px 14px;
    white-space: nowrap;
}

.history-filter-advanced {
    margin-top: 12px;
    border-top: 1px solid #edf1f6;
}

.history-filter-advanced summary {
    width: max-content;
    display: flex;
    align-items: center;
    gap: 7px;
    padding-top: 12px;
    color: #4e627b;
    cursor: pointer;
    list-style: none;
    font-size: 11px;
    font-weight: 850;
}

.history-filter-advanced summary::-webkit-details-marker {
    display: none;
}

.history-filter-advanced summary svg {
    width: 16px;
    height: 16px;
}

.history-results {
    padding: 20px;
    border-radius: 19px;
}

.history-results-head {
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 15px;
}

.history-results-head h2 {
    margin: 1px 0 0;
    color: #172033;
    font-size: 22px;
    font-weight: 760;
    letter-spacing: -0.025em;
}

.history-results-head > span {
    color: #8190a2;
    font-size: 11px;
    font-weight: 750;
}

.history-session-list {
    display: grid;
    gap: 9px;
}

.history-session-card {
    overflow: hidden;
    border: 1px solid #e1e8f1;
    border-radius: 15px;
    background: #fbfdff;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.history-session-card:hover {
    transform: translateY(-1px);
    border-color: rgba(37, 99, 235, 0.28);
    background: #fff;
    box-shadow: 0 13px 28px rgba(15, 23, 42, 0.07);
}

.history-session-card > a {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr) 38px;
    align-items: center;
    gap: 15px;
    min-height: 104px;
    padding: 12px 14px;
    color: inherit;
}

.history-score-badge {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    align-content: center;
    border-radius: 18px;
    color: #c04e55;
    background: #fff0f1;
}

.history-session-card.is-passed .history-score-badge {
    color: #07805f;
    background: #ebfbf5;
}

.history-score-badge small {
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.history-score-badge strong {
    margin-top: 2px;
    font-size: 21px;
    line-height: 1;
}

.history-session-main {
    min-width: 0;
    display: grid;
    gap: 9px;
}

.history-session-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.history-session-topline > span {
    min-width: 0;
}

.history-session-topline small {
    display: block;
    margin-bottom: 3px;
    color: #4772bf;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.history-session-topline strong {
    display: block;
    overflow: hidden;
    color: #172033;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-session-topline time {
    flex: 0 0 auto;
    padding-top: 3px;
    color: #8391a2;
    font-size: 10px;
    font-weight: 720;
}

.history-result-track {
    height: 5px;
    display: flex;
    overflow: hidden;
    border-radius: 999px;
    background: #edf1f5;
}

.history-result-track i {
    display: block;
    min-width: 0;
    height: 100%;
}

.history-result-track .is-correct {
    background: #24b78a;
}

.history-result-track .is-wrong {
    background: #ef6a72;
}

.history-result-track .is-empty {
    background: #cbd5e1;
}

.history-session-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px 16px;
    color: #79889b;
    font-size: 10px;
}

.history-session-meta span {
    position: relative;
}

.history-session-meta span + span::before {
    content: "";
    position: absolute;
    left: -9px;
    top: 50%;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #c6d0dc;
    transform: translateY(-50%);
}

.history-session-meta b {
    color: #35465c;
}

.history-session-arrow {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid #dce5ef;
    border-radius: 11px;
    color: #58718f;
    background: #fff;
}

.history-session-arrow svg {
    width: 16px;
    height: 16px;
}

.history-empty-state,
.progress-empty-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 130px;
    padding: 18px;
    border: 1px dashed #cbd8e6;
    border-radius: 15px;
    background: #f8fbff;
}

.history-empty-state > span,
.progress-empty-panel > span {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: #2c6fe8;
    background: #eaf3ff;
}

.history-empty-state strong,
.progress-empty-panel strong {
    display: block;
    color: #27364a;
    font-size: 14px;
}

.history-empty-state p,
.progress-empty-panel p {
    margin: 5px 0 0;
    color: #748499;
    font-size: 12px;
    line-height: 1.5;
}

.history-pagination {
    justify-content: space-between;
    gap: 14px;
    padding: 2px 0 0;
}

.history-pagination > div {
    min-width: 112px;
}

.history-pagination > div:last-child {
    text-align: right;
}

.history-pagination > span {
    color: #738398;
    font-size: 11px;
    font-weight: 800;
}

/* Progress */
.progress-overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.85fr);
    gap: 14px;
}

.progress-score-card,
.progress-signal-card {
    border-radius: 20px;
}

.progress-score-card {
    min-height: 245px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 28px;
    padding: 26px 30px;
    color: #fff;
    border-color: rgba(37, 99, 235, 0.12);
    background:
        radial-gradient(circle at 92% 14%, rgba(147, 197, 253, 0.28), transparent 30%),
        linear-gradient(135deg, #112d70 0%, #1749be 52%, #2874f0 100%);
    box-shadow: 0 21px 50px rgba(37, 99, 235, 0.20);
}

.progress-score-ring {
    --progress-score: 0%;
    width: 154px;
    height: 154px;
    flex: 0 0 154px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(#fff 0 var(--progress-score), rgba(255,255,255,0.16) var(--progress-score) 100%);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15), 0 18px 40px rgba(5, 22, 62, 0.24);
}

.progress-score-ring::before {
    content: "";
    width: 122px;
    height: 122px;
    grid-area: 1 / 1;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(13, 42, 112, 0.98), rgba(30, 91, 218, 0.96));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
}

.progress-score-ring > span {
    position: relative;
    z-index: 1;
    grid-area: 1 / 1;
    text-align: center;
}

.progress-score-ring small,
.progress-score-ring strong {
    display: block;
}

.progress-score-ring small {
    color: #c9dcff;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.progress-score-ring strong {
    margin-top: 3px;
    font-size: 34px;
    line-height: 1;
}

.progress-score-copy > span {
    color: #bcd3ff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.progress-score-copy h2 {
    max-width: 540px;
    margin: 7px 0 9px;
    color: #fff;
    font-size: clamp(24px, 2.6vw, 34px);
    font-weight: 760;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.progress-score-copy p {
    max-width: 590px;
    margin: 0;
    color: #d5e3ff;
    font-size: 13px;
    line-height: 1.55;
}

.progress-score-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 18px;
}

.progress-primary-action {
    min-height: 42px;
    color: #1648b6;
    background: #fff;
    box-shadow: 0 10px 24px rgba(4, 18, 48, 0.18);
}

.progress-primary-action:hover {
    color: #103a96;
    background: #f7fbff;
}

.progress-score-actions > a:not(.button) {
    color: #dce8ff;
    font-size: 12px;
    font-weight: 800;
}

.progress-signal-card {
    padding: 20px;
}

.progress-signal-head {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 13px;
}

.progress-signal-head > span {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #5a4bd1;
    background: #f0edff;
}

.progress-signal-head small,
.progress-signal-head strong {
    display: block;
}

.progress-signal-head small {
    color: #8b98a9;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.progress-signal-head strong {
    margin-top: 2px;
    color: #1e2a3d;
    font-size: 15px;
}

.progress-signal-list {
    display: grid;
    gap: 9px;
}

.progress-signal-list article {
    position: relative;
    overflow: hidden;
    padding: 14px 14px 13px 16px;
    border: 1px solid #e2e8f1;
    border-radius: 14px;
    background: #fbfdff;
}

.progress-signal-list article::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: #e66b72;
}

.progress-signal-list article.is-strong::before {
    background: #2ab584;
}

.progress-signal-list article > span {
    color: #8a98a9;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.progress-signal-list article strong {
    display: block;
    margin-top: 3px;
    color: #263449;
    font-size: 14px;
}

.progress-signal-list article p {
    margin: 4px 0 8px;
    color: #758599;
    font-size: 11px;
}

.progress-signal-list article a,
.progress-inline-link {
    color: #2563eb;
    font-size: 11px;
    font-weight: 850;
}

.progress-analytics-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(290px, 0.75fr);
    gap: 14px;
}

.progress-trend-card,
.progress-distribution-card,
.progress-categories-card {
    padding: 20px;
    border-radius: 18px;
}

.progress-chart-wrap {
    position: relative;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 9px;
    min-height: 232px;
    margin-top: 4px;
}

.progress-chart-scale {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2px 0 22px;
    color: #98a5b4;
    font-size: 9px;
    font-weight: 750;
}

.progress-trend-chart {
    position: relative;
    display: grid;
    grid-template-columns: repeat(var(--trend-count, 10), minmax(28px, 1fr));
    align-items: end;
    gap: 9px;
    min-height: 210px;
    padding: 8px 9px 0;
    border-bottom: 1px solid #dfe6ef;
    background:
        linear-gradient(to bottom, transparent 29.5%, rgba(239, 106, 114, 0.12) 30%, rgba(239, 106, 114, 0.12) 30.6%, transparent 31%),
        repeating-linear-gradient(to bottom, transparent 0, transparent calc(25% - 1px), #edf1f5 25%);
}

.progress-trend-column {
    min-width: 0;
    height: 100%;
    display: grid;
    grid-template-rows: 19px minmax(0, 1fr) 18px;
    align-items: end;
    gap: 5px;
    color: #cb5962;
    text-align: center;
}

.progress-trend-column.is-passed {
    color: #2367dd;
}

.progress-trend-value {
    align-self: start;
    color: currentColor;
    font-size: 9px;
    font-weight: 850;
}

.progress-trend-bar {
    width: min(28px, 78%);
    height: 100%;
    display: flex;
    align-items: end;
    justify-self: center;
    overflow: hidden;
    border-radius: 8px 8px 3px 3px;
    background: #eef2f7;
}

.progress-trend-bar i {
    width: 100%;
    display: block;
    border-radius: 8px 8px 3px 3px;
    background: linear-gradient(180deg, #f08a91, #df5d66);
    transition: filter 160ms ease;
}

.progress-trend-column.is-passed .progress-trend-bar i {
    background: linear-gradient(180deg, #67a1ff, #2563eb);
}

.progress-trend-column:hover .progress-trend-bar i {
    filter: brightness(1.07);
}

.progress-trend-column small {
    color: #8d9baa;
    font-size: 9px;
    font-weight: 700;
}

.progress-chart-note {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 8px;
    color: #8593a4;
    font-size: 9px;
    font-weight: 750;
}

.progress-chart-note span {
    width: 14px;
    height: 2px;
    border-radius: 999px;
    background: #ee7b83;
}

.progress-distribution-body {
    display: grid;
    justify-items: center;
    gap: 20px;
    padding: 10px 0 5px;
}

.progress-donut {
    --correct: 0%;
    --wrong-start: 0%;
    --wrong-end: 0%;
    --empty-start: 0%;
    width: 154px;
    height: 154px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(#24b78a 0 var(--correct), #ef6a72 var(--wrong-start) var(--wrong-end), #cbd5e1 var(--empty-start) 100%);
    box-shadow: 0 15px 34px rgba(15, 23, 42, 0.10);
}

.progress-donut::before {
    content: "";
    width: 112px;
    height: 112px;
    grid-area: 1 / 1;
    border-radius: 50%;
    background: #fff;
    box-shadow: inset 0 0 0 1px #eef2f6;
}

.progress-donut > span {
    position: relative;
    z-index: 1;
    grid-area: 1 / 1;
    text-align: center;
}

.progress-donut strong,
.progress-donut small {
    display: block;
}

.progress-donut strong {
    color: #1d2b40;
    font-size: 27px;
    line-height: 1;
}

.progress-donut small {
    margin-top: 4px;
    color: #8593a3;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.progress-distribution-legend {
    width: 100%;
    display: grid;
    gap: 8px;
}

.progress-distribution-legend > div {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border: 1px solid #e6ebf2;
    border-radius: 11px;
    background: #fbfdff;
}

.progress-distribution-legend > div > span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #24b78a;
}

.progress-distribution-legend > div.is-wrong > span {
    background: #ef6a72;
}

.progress-distribution-legend > div.is-empty > span {
    background: #cbd5e1;
}

.progress-distribution-legend p {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    margin: 0;
    color: #65758a;
    font-size: 11px;
}

.progress-distribution-legend strong {
    color: #263449;
}

.progress-distribution-legend small {
    min-width: 30px;
    color: #8b99a9;
    text-align: right;
}

.progress-inline-link {
    display: inline-flex;
    margin-top: 13px;
}

.progress-empty-panel--stacked {
    min-height: 250px;
    grid-template-columns: 1fr;
    align-content: center;
    justify-items: center;
    text-align: center;
}

.progress-category-list {
    display: grid;
    gap: 9px;
}

.progress-category-row {
    --category-tone: #3b82f6;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 92px;
    padding: 12px 14px;
    border: 1px solid #e2e9f1;
    border-radius: 14px;
    background: #fbfdff;
}

.progress-category-row--first-aid {
    --category-tone: #ef5f82;
}

.progress-category-row--engine {
    --category-tone: #e68a28;
}

.progress-category-row--ethics {
    --category-tone: #20a77a;
}

.progress-category-index {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--category-tone);
    background: color-mix(in srgb, var(--category-tone) 10%, white);
    font-size: 10px;
    font-weight: 900;
}

.progress-category-main {
    min-width: 0;
}

.progress-category-topline,
.progress-category-topline > div,
.progress-category-meta {
    display: flex;
    align-items: center;
}

.progress-category-topline {
    justify-content: space-between;
    gap: 14px;
}

.progress-category-topline > div {
    min-width: 0;
    gap: 8px;
}

.progress-category-topline strong {
    overflow: hidden;
    color: #1e2b3e;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.progress-category-topline > div > span {
    padding: 4px 6px;
    border-radius: 999px;
    color: #c15359;
    background: #fff0f1;
    font-size: 8px;
    font-weight: 850;
    text-transform: uppercase;
}

.progress-category-topline > div > span.is-strong {
    color: #0a8361;
    background: #ecfbf5;
}

.progress-category-topline > b {
    color: var(--category-tone);
    font-size: 13px;
}

.progress-category-track {
    height: 5px;
    margin-top: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e9eef4;
}

.progress-category-track span {
    height: 100%;
    display: block;
    border-radius: inherit;
    background: var(--category-tone);
}

.progress-category-meta {
    flex-wrap: wrap;
    gap: 7px 15px;
    margin-top: 8px;
    color: #7b899a;
    font-size: 9px;
}

.progress-category-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.progress-category-meta i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #24b78a;
}

.progress-category-meta i.is-wrong {
    background: #ef6a72;
}

.progress-category-meta i.is-empty {
    background: #cbd5e1;
}

.progress-category-row > a {
    flex: 0 0 auto;
    color: var(--category-tone);
    font-size: 11px;
    font-weight: 850;
}

@supports not (background: color-mix(in srgb, red 10%, white)) {
    .progress-category-index {
        background: #eff6ff;
    }
}

@media (max-width: 1060px) {
    .history-filter-primary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .history-filter-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .progress-overview-grid,
    .progress-analytics-grid {
        grid-template-columns: 1fr;
    }

    .progress-signal-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .progress-distribution-body {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        justify-items: stretch;
    }
}

@media (max-width: 760px) {
    .account-workspace-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

    .history-filter-primary,
    .history-filter-secondary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .history-filter-actions {
        grid-column: 1 / -1;
    }

    .history-session-card > a {
        grid-template-columns: 68px minmax(0, 1fr) 34px;
        gap: 11px;
        padding: 11px;
    }

    .history-score-badge {
        width: 60px;
        height: 60px;
        border-radius: 16px;
    }

    .history-session-topline {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .history-session-topline time {
        padding-top: 0;
    }

    .progress-score-card {
        grid-template-columns: 125px minmax(0, 1fr);
        gap: 20px;
        min-height: 225px;
        padding: 23px;
    }

    .progress-score-ring {
        width: 125px;
        height: 125px;
        flex-basis: 125px;
    }

    .progress-score-ring::before {
        width: 99px;
        height: 99px;
    }

    .progress-score-ring strong {
        font-size: 29px;
    }

    .progress-trend-chart {
        grid-template-columns: repeat(var(--trend-count, 10), minmax(34px, 1fr));
        overflow-x: auto;
    }
}

@media (max-width: 580px) {
    .account-workspace-header h1 {
        font-size: 30px;
    }

    .account-workspace-header > div > p:last-child {
        font-size: 13px;
    }

    .history-filter-panel,
    .history-results,
    .progress-trend-card,
    .progress-distribution-card,
    .progress-categories-card {
        padding: 15px;
        border-radius: 16px;
    }

    .history-filter-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .history-filter-primary,
    .history-filter-secondary {
        grid-template-columns: 1fr;
    }

    .history-filter-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .history-filter-actions .button:only-child {
        grid-column: 1 / -1;
    }

    .history-results-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .history-session-card > a {
        grid-template-columns: 58px minmax(0, 1fr);
        min-height: 112px;
    }

    .history-score-badge {
        width: 54px;
        height: 54px;
        border-radius: 14px;
    }

    .history-score-badge strong {
        font-size: 18px;
    }

    .history-session-arrow {
        display: none;
    }

    .history-session-meta span:nth-last-child(2),
    .history-session-meta span:nth-last-child(1) {
        display: none;
    }

    .history-empty-state,
    .progress-empty-panel {
        grid-template-columns: auto minmax(0, 1fr);
        padding: 14px;
    }

    .history-empty-state .button,
    .progress-empty-panel .button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .history-pagination > div {
        min-width: 76px;
    }

    .progress-score-card {
        grid-template-columns: 1fr;
        justify-items: start;
        gap: 17px;
        min-height: 0;
        padding: 21px 18px;
    }

    .progress-score-ring {
        width: 112px;
        height: 112px;
    }

    .progress-score-ring::before {
        width: 88px;
        height: 88px;
    }

    .progress-score-copy h2 {
        font-size: 25px;
    }

    .progress-score-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 11px;
    }

    .progress-primary-action {
        width: 100%;
    }

    .progress-signal-list {
        grid-template-columns: 1fr;
    }

    .progress-distribution-body {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .progress-distribution-legend {
        width: 100%;
    }

    .progress-chart-wrap {
        min-height: 215px;
        overflow: hidden;
    }

    .progress-trend-chart {
        display: flex;
        align-items: stretch;
        gap: 8px;
        min-height: 195px;
        overflow-x: auto;
        scroll-snap-type: x proximity;
    }

    .progress-trend-column {
        min-width: 38px;
        flex: 1 0 38px;
        scroll-snap-align: start;
    }

    .progress-category-row {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 10px;
        padding: 11px;
    }

    .progress-category-index {
        width: 32px;
        height: 32px;
        border-radius: 10px;
    }

    .progress-category-row > a {
        grid-column: 2;
        width: max-content;
    }

    .progress-category-meta span:last-child {
        display: none;
    }
}

@media (max-width: 380px) {
    .history-filter-actions {
        grid-template-columns: 1fr;
    }

    .history-session-card > a {
        grid-template-columns: 1fr;
    }

    .history-score-badge {
        width: 100%;
        height: auto;
        min-height: 46px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 13px;
    }

    .history-score-badge strong {
        margin: 0;
    }
}

/* Account surfaces v48: wrong questions, saved questions, result detail premium refinement. */
.repeat-hero-grid,
.saved-hero-grid,
.result-overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 14px;
}

.repeat-filter-panel,
.saved-filter-panel {
    border-radius: 18px;
}

.repeat-filter-primary,
.saved-filter-primary {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
}

.saved-filter-primary {
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
}

.repeat-action-card,
.result-summary-card {
    position: relative;
    overflow: hidden;
    min-height: 100%;
    padding: 22px;
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 20px;
    color: #fff;
    background:
        radial-gradient(circle at 86% 18%, rgba(147, 197, 253, 0.24), transparent 28%),
        linear-gradient(145deg, #102d6f 0%, #1749b8 58%, #2563eb 100%);
    box-shadow: 0 20px 42px rgba(29, 78, 216, 0.20);
}

.repeat-action-card::before,
.result-summary-card::before {
    content: "";
    position: absolute;
    right: -74px;
    bottom: -102px;
    width: 230px;
    height: 230px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 50%;
}

.repeat-action-card::after,
.result-summary-card::after {
    content: "";
    position: absolute;
    right: 42px;
    top: -86px;
    width: 180px;
    height: 180px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.repeat-action-copy,
.result-summary-card > * {
    position: relative;
    z-index: 1;
}

.repeat-action-copy > span,
.result-summary-topline > span {
    display: inline-flex;
    color: #bfd8ff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.repeat-action-copy h2,
.result-summary-card h2 {
    margin: 8px 0 10px;
    color: #fff;
    font-size: clamp(24px, 2.6vw, 32px);
    font-weight: 760;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.repeat-action-copy p,
.result-summary-card p {
    max-width: 540px;
    margin: 0;
    color: #dbe7ff;
    font-size: 13px;
    line-height: 1.6;
}

.repeat-action-meta,
.result-summary-meta,
.result-summary-topline,
.result-summary-actions,
.repeat-action-buttons,
.saved-batch-actions,
.result-header-actions,
.saved-question-footer,
.repeat-question-head,
.repeat-question-footer,
.result-answer-meta,
.result-review-head,
.result-category-topline,
.result-category-meta,
.result-session-facts {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.repeat-action-meta {
    margin-top: 16px;
}

.repeat-action-meta span,
.result-summary-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #e7efff;
    font-size: 11px;
    font-weight: 760;
}

.repeat-action-meta svg,
.result-summary-meta svg {
    width: 16px;
    height: 16px;
}

.repeat-action-buttons {
    position: relative;
    z-index: 1;
    margin-top: 18px;
}

.repeat-action-buttons .button.primary,
.result-summary-actions .button.primary {
    color: #1550ca;
    background: #fff;
    box-shadow: 0 10px 24px rgba(5, 18, 45, 0.18);
}

.repeat-action-buttons .button.primary:hover,
.result-summary-actions .button.primary:hover {
    background: #f7fbff;
}

.repeat-results,
.saved-results,
.result-review-results {
    border-radius: 19px;
}

.repeat-question-list,
.saved-question-list,
.result-review-list,
.result-category-list {
    display: grid;
    gap: 10px;
}

.repeat-question-card,
.saved-question-card,
.result-review-card,
.result-category-item,
.saved-batch-bar,
.result-breakdown-card {
    border: 1px solid #dfe7f0;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.repeat-question-card,
.result-breakdown-card {
    padding: 16px 17px;
}

.saved-question-card {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    overflow: hidden;
}

.saved-question-select {
    padding: 18px 16px;
    border-right: 1px solid #ebf0f5;
    background: linear-gradient(180deg, #fbfdff 0%, #f5f8fc 100%);
}

.saved-question-body {
    padding: 16px 17px;
}

.repeat-card-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 24px;
    margin-right: 10px;
    padding: 4px 8px;
    border-radius: 999px;
    color: #52708e;
    background: #eef4fb;
    font-size: 10px;
    font-weight: 850;
}

.repeat-question-head > div,
.result-review-head > div {
    min-width: 0;
}

.repeat-question-head strong,
.result-review-head strong {
    display: inline;
    color: #172033;
    font-size: 15px;
}

.repeat-question-card p,
.saved-question-card p,
.result-review-text {
    margin: 11px 0 0;
    color: #42546a;
    font-size: 14px;
    line-height: 1.62;
}

.repeat-question-footer,
.saved-question-footer,
.result-answer-meta {
    margin-top: 14px;
}

.repeat-question-footer small,
.saved-question-footer small,
.result-answer-meta small,
.result-category-meta small,
.result-session-facts small {
    color: #7d8da0;
    font-size: 11px;
    font-weight: 720;
}

.repeat-question-footer span,
.saved-collection-badge,
.repeat-wrong-badge,
.result-status-pill,
.result-summary-topline b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 850;
}

.repeat-question-footer span {
    color: #1d5fd1;
    background: #f2f7ff;
}

.repeat-wrong-badge,
.result-status-pill.is-wrong,
.result-summary-topline b.is-failed {
    color: #cb5962;
    background: #fff1f1;
}

.saved-collection-badge {
    color: #6b54d8;
    background: #f3f0ff;
}

.result-status-pill.is-correct,
.result-summary-topline b.is-passed {
    color: #128765;
    background: #ecfdf5;
}

.result-status-pill.is-empty {
    color: #5d7188;
    background: #eef3f7;
}

.saved-batch-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 17px;
    margin-bottom: 12px;
}

.saved-batch-bar strong {
    display: block;
    color: #172033;
    font-size: 15px;
}

.saved-batch-bar p {
    margin: 4px 0 0;
    color: #718297;
    font-size: 12px;
}

.saved-batch-actions {
    flex: 0 0 auto;
}

.saved-action-hint {
    color: #dbe7ff;
    font-size: 12px;
    font-weight: 760;
}

.saved-question-check {
    align-items: flex-start;
    color: #34475f;
}

.saved-question-check input {
    margin-top: 2px;
}

.saved-question-check span {
    line-height: 1.45;
}

.result-breakdown-card {
    padding: 20px;
}

.result-session-facts {
    gap: 10px;
    margin-bottom: 15px;
}

.result-session-facts > div {
    min-width: calc(50% - 8px);
    padding: 12px;
    border: 1px solid #e4ebf2;
    border-radius: 13px;
    background: #fbfdff;
}

.result-session-facts strong,
.result-category-topline strong {
    display: block;
    margin-top: 4px;
    color: #1f2c40;
    font-size: 14px;
}

.result-category-item {
    padding: 14px;
}

.result-category-topline span {
    color: #2563eb;
    font-size: 12px;
    font-weight: 850;
}

.result-category-meta {
    margin-top: 8px;
}

.result-summary-actions {
    margin-top: 20px;
}

.result-review-card {
    padding: 18px;
}

.result-review-card.is-correct {
    border-color: rgba(18, 135, 101, 0.24);
}

.result-review-card.is-wrong {
    border-color: rgba(203, 89, 98, 0.26);
}

.result-review-card.is-empty {
    border-color: rgba(108, 126, 146, 0.22);
}

.result-question-index {
    display: inline-block;
    margin-bottom: 6px;
    color: var(--brand-600);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.result-options-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.result-answer-meta b {
    color: #1e2b3d;
}

.explanation-box {
    margin-top: 16px;
}

@media (max-width: 1080px) {
    .repeat-hero-grid,
    .saved-hero-grid,
    .result-overview-grid {
        grid-template-columns: 1fr;
    }

    .saved-question-card {
        grid-template-columns: 1fr;
    }

    .saved-question-select {
        border-right: 0;
        border-bottom: 1px solid #ebf0f5;
    }
}

@media (max-width: 760px) {
    .saved-filter-primary,
    .repeat-filter-primary,
    .result-options-grid {
        grid-template-columns: 1fr;
    }

    .saved-batch-bar,
    .repeat-action-buttons,
    .result-summary-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .saved-batch-actions,
    .saved-batch-actions .button,
    .repeat-action-buttons .button,
    .result-summary-actions .button,
    .result-header-actions .button {
        width: 100%;
    }

    .result-session-facts > div {
        min-width: 100%;
    }
}

@media (max-width: 580px) {
    .repeat-action-card,
    .result-summary-card,
    .result-breakdown-card,
    .saved-batch-bar,
    .repeat-question-card,
    .saved-question-body,
    .saved-question-select,
    .result-review-card {
        padding: 14px;
    }

    .result-review-head,
    .repeat-question-head,
    .saved-question-footer,
    .repeat-question-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .repeat-question-head > div,
    .result-review-head > div {
        width: 100%;
    }

    .repeat-question-head strong,
    .result-review-head strong {
        display: block;
        margin-top: 8px;
    }
}

/* Account polish v50: tighter controls, mobile density, selection ergonomics and answer-state contrast. */
.account-repeat-page .button,
.account-saved-page .button,
.account-result-page .button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.15;
}

.account-repeat-page .history-filter-actions,
.account-saved-page .history-filter-actions,
.saved-batch-actions,
.repeat-action-buttons,
.result-summary-actions,
.result-header-actions {
    align-items: stretch;
}

.saved-batch-copy {
    min-width: 0;
}

.saved-select-all-control {
    width: max-content;
    max-width: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    margin-top: 12px;
    padding: 8px 10px;
    border: 1px solid #dfe7f0;
    border-radius: 11px;
    color: #34475f;
    background: #f8fbff;
    cursor: pointer;
}

.saved-select-all-control input,
.saved-question-check input {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin: 0;
    accent-color: #2563eb;
    cursor: pointer;
}

.saved-select-all-control span {
    min-width: 0;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
}

.saved-select-all-control small {
    min-width: 58px;
    color: #6f8094;
    font-size: 10px;
    font-weight: 850;
    text-align: right;
    white-space: nowrap;
}

.saved-question-select {
    display: flex;
    align-items: flex-start;
}

.saved-question-check {
    width: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    padding: 2px 0;
    cursor: pointer;
}

.saved-question-check span {
    padding-top: 1px;
    font-size: 12px;
    line-height: 1.45;
}

.saved-question-footer .inline-form,
.repeat-action-buttons .inline-form {
    display: flex;
    align-items: stretch;
    margin: 0;
}

.saved-question-footer .button,
.repeat-action-buttons .button,
.saved-batch-actions .button {
    white-space: nowrap;
}

.result-review-card {
    position: relative;
    overflow: hidden;
    background: #fff;
}

.result-review-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: #94a3b8;
}

.result-review-card.is-correct {
    border-color: rgba(16, 145, 105, 0.30);
    background: linear-gradient(90deg, rgba(236, 253, 245, 0.72), #fff 18%);
}

.result-review-card.is-correct::before {
    background: #19a978;
}

.result-review-card.is-wrong {
    border-color: rgba(215, 82, 94, 0.32);
    background: linear-gradient(90deg, rgba(255, 241, 242, 0.86), #fff 18%);
}

.result-review-card.is-wrong::before {
    background: #e05c68;
}

.result-review-card.is-empty {
    border-color: rgba(100, 116, 139, 0.25);
    background: linear-gradient(90deg, rgba(241, 245, 249, 0.82), #fff 18%);
}

.result-review-card.is-empty::before {
    background: #8091a5;
}

.result-status-pill.is-correct {
    color: #08745a;
    background: #dcfce7;
    box-shadow: inset 0 0 0 1px rgba(16, 145, 105, 0.13);
}

.result-status-pill.is-wrong {
    color: #b83f4d;
    background: #ffe4e6;
    box-shadow: inset 0 0 0 1px rgba(215, 82, 94, 0.14);
}

.result-status-pill.is-empty {
    color: #536579;
    background: #e9eef4;
    box-shadow: inset 0 0 0 1px rgba(100, 116, 139, 0.12);
}

.result-review-card .history-detail-option {
    border-color: #dfe6ee;
    background: #fff;
}

.result-review-card .history-detail-option.is-correct {
    border-color: #6fd3ac;
    background: #eafaf3;
    box-shadow: inset 0 0 0 1px rgba(16, 145, 105, 0.08);
}

.result-review-card .history-detail-option.is-correct span {
    color: #08745a;
    background: #d2f5e5;
}

.result-review-card.is-wrong .history-detail-option.is-selected:not(.is-correct) {
    border-color: #ef9ca4;
    background: #fff0f1;
    box-shadow: inset 0 0 0 1px rgba(215, 82, 94, 0.07);
}

.result-review-card.is-wrong .history-detail-option.is-selected:not(.is-correct) span {
    color: #b83f4d;
    background: #ffd9dd;
}

.result-review-card.is-correct .history-detail-option.is-selected.is-correct {
    border-color: #32b985;
    background: #ddf8ec;
    box-shadow: 0 8px 18px rgba(16, 145, 105, 0.10);
}

.result-answer-meta {
    padding: 10px 12px;
    border-radius: 11px;
    background: #f8fafc;
}

.result-review-card.is-correct .result-answer-meta {
    background: #f0fbf6;
}

.result-review-card.is-wrong .result-answer-meta {
    background: #fff5f6;
}

.result-review-card .explanation-box {
    border-color: #cfe2f8;
    background: #f4f9ff;
}

@media (max-width: 760px) {
    .account-repeat-page .profile-dashboard-shell,
    .account-saved-page .profile-dashboard-shell,
    .account-result-page .profile-dashboard-shell {
        gap: 11px;
    }

    .account-repeat-page .history-filter-panel,
    .account-saved-page .history-filter-panel,
    .account-repeat-page .history-results,
    .account-saved-page .history-results,
    .account-result-page .history-results {
        padding: 14px;
        border-radius: 15px;
    }

    .account-repeat-page .history-filter-head,
    .account-saved-page .history-filter-head,
    .account-repeat-page .history-results-head,
    .account-saved-page .history-results-head,
    .account-result-page .history-results-head {
        align-items: flex-start;
        margin-bottom: 11px;
    }

    .account-repeat-page .history-filter-head p,
    .account-saved-page .history-filter-head p,
    .account-repeat-page .history-results-head > span,
    .account-saved-page .history-results-head > span,
    .account-result-page .history-results-head > span {
        font-size: 10px;
    }

    .repeat-action-card,
    .result-summary-card {
        min-height: auto;
    }

    .repeat-action-copy h2,
    .result-summary-card h2 {
        font-size: 23px;
    }

    .repeat-action-copy p,
    .result-summary-card p {
        font-size: 12px;
        line-height: 1.52;
    }

    .repeat-action-meta,
    .result-summary-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .saved-batch-bar {
        align-items: stretch;
        flex-direction: column;
        padding: 13px;
    }

    .saved-select-all-control {
        width: 100%;
    }

    .saved-question-card {
        gap: 0;
    }

    .saved-question-select {
        padding: 11px 13px;
    }

    .saved-question-body {
        padding: 13px;
    }

    .result-options-grid {
        gap: 8px;
    }

    .result-review-card .history-detail-option {
        min-height: 48px;
        padding: 10px;
    }

    .result-answer-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 580px) {
    .account-repeat-page,
    .account-saved-page,
    .account-result-page {
        padding-top: 20px;
        padding-bottom: 34px;
    }

    .account-repeat-page .account-workspace-header,
    .account-saved-page .account-workspace-header,
    .account-result-page .account-workspace-header {
        gap: 12px;
        padding-bottom: 2px;
    }

    .account-repeat-page .account-workspace-header h1,
    .account-saved-page .account-workspace-header h1,
    .account-result-page .account-workspace-header h1 {
        font-size: 28px;
    }

    .account-repeat-page .account-workspace-header > div > p:last-child,
    .account-saved-page .account-workspace-header > div > p:last-child,
    .account-result-page .account-workspace-header > div > p:last-child {
        margin-top: 6px;
        font-size: 12px;
        line-height: 1.45;
    }

    .account-repeat-page .profile-metric-grid,
    .account-saved-page .profile-metric-grid,
    .account-result-page .profile-metric-grid {
        gap: 7px;
    }

    .account-repeat-page .profile-metric-card,
    .account-saved-page .profile-metric-card,
    .account-result-page .profile-metric-card {
        min-height: 92px;
        padding: 12px;
    }

    .account-repeat-page .profile-metric-card strong,
    .account-saved-page .profile-metric-card strong,
    .account-result-page .profile-metric-card strong {
        font-size: 22px;
    }

    .repeat-question-card,
    .result-review-card {
        border-radius: 13px;
    }

    .repeat-question-card p,
    .saved-question-card p,
    .result-review-text {
        margin-top: 9px;
        font-size: 13px;
        line-height: 1.5;
    }

    .saved-select-all-control {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .saved-select-all-control small {
        grid-column: 2;
        min-width: 0;
        text-align: left;
    }

    .saved-batch-actions .button,
    .saved-question-footer .button,
    .repeat-action-buttons .button,
    .result-summary-actions .button {
        min-height: 38px;
        font-size: 12px;
    }

    .saved-question-footer {
        gap: 10px;
    }

    .saved-question-footer .inline-form,
    .saved-question-footer .button {
        width: 100%;
    }

    .result-review-card::before {
        width: 3px;
    }

    .result-status-pill,
    .repeat-wrong-badge,
    .saved-collection-badge {
        padding: 5px 8px;
        font-size: 10px;
    }
}

/* Account navigation and study-link polish v51. */
.account-profile-page .profile-dashboard-shell,
.account-progress-page .profile-dashboard-shell,
.account-history-page .profile-dashboard-shell {
    width: min(1160px, calc(100% - 40px));
}

.account-profile-page .account-workspace-header,
.account-progress-page .account-workspace-header,
.account-history-page .account-workspace-header {
    min-height: 92px;
    align-items: flex-start;
    padding: 3px 0 5px;
}

.account-profile-page .account-workspace-header > div,
.account-progress-page .account-workspace-header > div,
.account-history-page .account-workspace-header > div {
    flex: 1 1 auto;
    min-width: 0;
}

.account-profile-page .account-workspace-header .profile-nav,
.account-progress-page .account-workspace-header .profile-nav,
.account-history-page .account-workspace-header .profile-nav {
    flex: 0 0 auto;
    margin-top: 2px;
}

.account-profile-page .account-workspace-header > div > p:last-child,
.account-progress-page .account-workspace-header > div > p:last-child,
.account-history-page .account-workspace-header > div > p:last-child {
    min-height: 22px;
    margin-top: 8px;
}

.progress-category-row {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.progress-category-row:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--category-tone) 34%, #dbe5ef);
    background: #fff;
    box-shadow: 0 13px 28px rgba(15, 23, 42, 0.07);
}

.progress-category-row:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.20);
    outline-offset: 3px;
}

.progress-category-main,
.progress-category-track {
    display: block;
}

.progress-category-topline > span {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-category-topline > span > span {
    padding: 4px 6px;
    border-radius: 999px;
    color: #c15359;
    background: #fff0f1;
    font-size: 8px;
    font-weight: 850;
    text-transform: uppercase;
}

.progress-category-topline > span > span.is-strong {
    color: #0a8361;
    background: #ecfbf5;
}

.progress-category-action {
    flex: 0 0 auto;
    color: var(--category-tone);
    font-size: 11px;
    font-weight: 850;
    white-space: nowrap;
}

.progress-category-row:hover .progress-category-action {
    text-decoration: underline;
    text-underline-offset: 3px;
}

@supports not (background: color-mix(in srgb, red 10%, white)) {
    .progress-category-row:hover {
        border-color: #b9cceb;
    }
}

@media (max-width: 760px) {
    .account-profile-page .account-workspace-header,
    .account-progress-page .account-workspace-header,
    .account-history-page .account-workspace-header {
        min-height: 0;
        gap: 15px;
    }

    .account-profile-page .account-workspace-header .profile-nav,
    .account-progress-page .account-workspace-header .profile-nav,
    .account-history-page .account-workspace-header .profile-nav {
        margin-top: 0;
    }
}

@media (max-width: 580px) {
    .account-profile-page .profile-dashboard-shell,
    .account-progress-page .profile-dashboard-shell,
    .account-history-page .profile-dashboard-shell {
        width: min(100% - 28px, 1160px);
    }

    .progress-category-action {
        grid-column: 2;
        width: max-content;
    }
}

/* =========================================================
   KONİ question library and editorial publishing workspace
   ========================================================= */
.nav-admin-link {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid #dce5ef;
    border-radius: 10px;
    color: #334155;
    background: #f8fafc;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.nav-admin-link:hover {
    border-color: #b7c7dc;
    background: #fff;
}

.question-library-hero {
    position: relative;
    overflow: hidden;
    padding: 54px 0 48px;
    border-bottom: 1px solid #e7edf4;
    background:
        radial-gradient(circle at 84% 14%, rgba(88, 119, 255, 0.14), transparent 28%),
        linear-gradient(135deg, #f9fbff 0%, #f5f8fc 52%, #fff 100%);
}

.question-library-hero::after {
    content: "";
    position: absolute;
    width: 270px;
    height: 270px;
    right: -110px;
    bottom: -170px;
    border: 58px solid rgba(37, 99, 235, 0.05);
    border-radius: 50%;
}

.question-library-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
    gap: 54px;
    align-items: center;
}

.question-library-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    color: #718096;
    font-size: 12px;
    font-weight: 700;
}

.question-library-breadcrumb a {
    color: #42618d;
    text-decoration: none;
}

.question-library-breadcrumb a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.question-library-kicker,
.question-library-hero-card > span,
.question-related-heading > span {
    display: block;
    margin-bottom: 10px;
    color: #3158d5;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.question-library-hero h1 {
    max-width: 720px;
    margin: 0;
    color: #14213d;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.question-library-hero h1 + p {
    max-width: 700px;
    margin: 22px 0 0;
    color: #5d6b80;
    font-size: 17px;
    line-height: 1.75;
}

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

.question-library-stats span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid #e1e8f2;
    border-radius: 999px;
    color: #64748b;
    background: rgba(255,255,255,0.78);
    font-size: 12px;
    font-weight: 750;
}

.question-library-stats strong {
    color: #1e3a8a;
    font-size: 14px;
}

.question-library-hero-card {
    padding: 28px;
    border: 1px solid rgba(211, 222, 237, 0.9);
    border-radius: 24px;
    background: rgba(255,255,255,0.88);
    box-shadow: 0 24px 65px rgba(35, 54, 91, 0.11);
    backdrop-filter: blur(16px);
}

.question-library-hero-card strong {
    display: block;
    color: #17233b;
    font-size: 23px;
    line-height: 1.25;
}

.question-library-hero-card p {
    margin: 13px 0 22px;
    color: #65738a;
    font-size: 14px;
    line-height: 1.7;
}

.question-library-section {
    padding-top: 42px;
    padding-bottom: 72px;
}

.question-library-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.question-library-filters a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid #dce4ed;
    border-radius: 12px;
    color: #4a5c73;
    background: #fff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.question-library-filters a:hover {
    transform: translateY(-1px);
    border-color: #b8c9df;
    box-shadow: 0 8px 22px rgba(30, 64, 175, 0.08);
}

.question-library-filters a.is-active {
    border-color: #1f4ed8;
    color: #fff;
    background: #1f4ed8;
}

.question-library-filters a span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 23px;
    height: 23px;
    padding: 0 6px;
    border-radius: 999px;
    color: inherit;
    background: rgba(148, 163, 184, 0.15);
    font-size: 10px;
}

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

.question-library-card {
    display: flex;
    flex-direction: column;
    min-height: 282px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 9px 28px rgba(15, 23, 42, 0.045);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.question-library-card:hover {
    transform: translateY(-3px);
    border-color: #b9c9df;
    box-shadow: 0 20px 42px rgba(30, 64, 175, 0.09);
}

.question-library-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 17px;
}

.question-library-card-meta span {
    padding: 5px 8px;
    border-radius: 999px;
    color: #3158a5;
    background: #edf4ff;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.question-library-card h2 {
    margin: 0;
    font-size: 19px;
    line-height: 1.42;
}

.question-library-card h2 a {
    color: #17243d;
    text-decoration: none;
}

.question-library-card p {
    display: -webkit-box;
    overflow: hidden;
    margin: 15px 0 22px;
    color: #68778d;
    font-size: 13px;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.question-library-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: max-content;
    margin-top: auto;
    color: #2352c8;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.question-library-empty {
    padding: 54px 28px;
    border: 1px dashed #cfd9e6;
    border-radius: 22px;
    text-align: center;
    background: #fbfcfe;
}

.question-library-empty strong {
    color: #1e293b;
    font-size: 20px;
}

.question-library-empty p {
    margin: 8px 0 0;
    color: #64748b;
}

.question-library-pagination,
.admin-seo-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 34px;
}

.question-library-pagination a,
.admin-seo-pagination a {
    color: #234fc1;
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
}

.question-library-pagination span,
.admin-seo-pagination span {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.question-detail-page {
    padding: 32px 0 76px;
    background: #f7f9fc;
}

.question-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 24px;
    align-items: start;
}

.question-detail-card,
.question-detail-rail-card,
.question-related-grid a {
    border: 1px solid #e1e7ef;
    background: #fff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.05);
}

.question-detail-card {
    overflow: hidden;
    border-radius: 24px;
}

.question-detail-header {
    padding: 32px 34px 27px;
    border-bottom: 1px solid #e8edf3;
    background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
}

.question-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.question-detail-meta span {
    padding: 5px 9px;
    border-radius: 999px;
    color: #3158a5;
    background: #edf4ff;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.question-detail-meta span:last-child {
    color: #08785b;
    background: #eafaf4;
}

.question-detail-header h1 {
    margin: 0;
    color: #14213a;
    font-size: clamp(27px, 4vw, 40px);
    line-height: 1.22;
    letter-spacing: -0.025em;
}

.question-detail-media {
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 26px 34px 0;
}

.question-detail-media img,
.question-detail-media video {
    display: block;
    max-width: min(100%, 660px);
    max-height: 460px;
    border: 1px solid #e0e7ef;
    border-radius: 18px;
    object-fit: contain;
    background: #fff;
}

.question-detail-options {
    display: grid;
    gap: 12px;
    padding: 28px 34px;
}

.question-detail-option {
    padding: 18px;
    border: 1px solid #e0e6ee;
    border-radius: 16px;
    background: #fbfcfe;
}

.question-detail-option.is-correct {
    border-color: #9edfc8;
    background: #f1fbf7;
}

.question-detail-option-line {
    display: flex;
    gap: 13px;
    align-items: flex-start;
}

.question-detail-option-key {
    display: inline-flex;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #d4deea;
    border-radius: 11px;
    color: #344760;
    background: #fff;
    font-size: 13px;
    font-weight: 900;
}

.question-detail-option.is-correct .question-detail-option-key {
    border-color: #48b88c;
    color: #fff;
    background: #15966d;
}

.question-detail-option-line strong {
    display: block;
    color: #1f2d42;
    font-size: 15px;
    line-height: 1.5;
}

.question-detail-option-state {
    display: block;
    margin-top: 4px;
    color: #a14e57;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.question-detail-option.is-correct .question-detail-option-state {
    color: #0c805f;
}

.question-detail-option p {
    margin: 13px 0 0 49px;
    color: #66758a;
    font-size: 13px;
    line-height: 1.7;
}

.question-detail-option-media {
    display: block;
    max-width: 240px;
    max-height: 180px;
    margin: 13px 0 0 49px;
    border-radius: 12px;
    object-fit: contain;
}

.question-detail-explanation {
    margin: 0 34px 28px;
    padding: 25px;
    border: 1px solid #cfe0ff;
    border-radius: 18px;
    background: linear-gradient(135deg, #f3f7ff 0%, #f8fbff 100%);
}

.question-detail-explanation > span {
    color: #3158d5;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.question-detail-explanation h2 {
    margin: 8px 0 10px;
    color: #18366f;
    font-size: 21px;
}

.question-detail-explanation p,
.question-detail-source p {
    margin: 0;
    color: #566982;
    font-size: 14px;
    line-height: 1.78;
}

.question-detail-source {
    margin: 0 34px 34px;
    padding: 20px 22px;
    border-left: 3px solid #94a7be;
    border-radius: 0 14px 14px 0;
    background: #f8fafc;
}

.question-detail-source strong {
    display: block;
    margin-bottom: 7px;
    color: #334155;
    font-size: 12px;
}

.question-detail-rail {
    display: grid;
    gap: 14px;
    position: sticky;
    top: 92px;
}

.question-detail-rail-card {
    padding: 24px;
    border-radius: 19px;
}

.question-detail-rail-card > span {
    color: #3158d5;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.question-detail-rail-card strong {
    display: block;
    margin-top: 8px;
    color: #17243d;
    font-size: 20px;
    line-height: 1.3;
}

.question-detail-rail-card p {
    margin: 11px 0 18px;
    color: #66758a;
    font-size: 13px;
    line-height: 1.65;
}

.question-detail-rail-card.is-soft {
    box-shadow: none;
    background: #edf4ff;
}

.question-detail-rail-card.is-soft a {
    display: inline-block;
    margin-top: 14px;
    color: #234fc1;
    font-size: 12px;
    font-weight: 850;
    text-decoration: none;
}

.question-related-section {
    margin-top: 34px;
}

.question-related-heading h2 {
    margin: 0 0 18px;
    color: #17243d;
    font-size: 27px;
}

.question-related-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.question-related-grid a {
    display: flex;
    flex-direction: column;
    min-height: 188px;
    padding: 20px;
    border-radius: 17px;
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease;
}

.question-related-grid a:hover {
    transform: translateY(-2px);
    border-color: #b8c8dd;
}

.question-related-grid span {
    color: #3158d5;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.question-related-grid strong {
    margin-top: 12px;
    color: #1d2a40;
    font-size: 15px;
    line-height: 1.5;
}

.question-related-grid small {
    margin-top: auto;
    color: #2452c7;
    font-size: 11px;
    font-weight: 850;
}

.admin-seo-page {
    min-height: 72vh;
    padding: 38px 0 76px;
    background: #f5f7fa;
}

.admin-seo-shell {
    width: min(100% - 40px, 1320px);
}

.admin-seo-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 25px;
}

.admin-seo-header > div > span,
.admin-seo-panel-heading > span,
.admin-question-preview > span {
    color: #3158d5;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.admin-seo-header h1 {
    margin: 7px 0 7px;
    color: #17233a;
    font-size: clamp(30px, 4vw, 44px);
    letter-spacing: -0.035em;
}

.admin-seo-header p {
    max-width: 760px;
    margin: 0;
    color: #68778d;
    font-size: 14px;
    line-height: 1.65;
}

.admin-seo-warning {
    padding: 22px;
    border: 1px solid #f1c983;
    border-radius: 16px;
    color: #704b09;
    background: #fff9eb;
}

.admin-seo-warning p {
    margin: 8px 0 0;
}

.admin-seo-statuses {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 16px;
}

.admin-seo-statuses a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 39px;
    padding: 0 13px;
    border: 1px solid #dce4ed;
    border-radius: 11px;
    color: #475569;
    background: #fff;
    font-size: 12px;
    font-weight: 850;
    text-decoration: none;
}

.admin-seo-statuses a.is-active {
    border-color: #294fc4;
    color: #fff;
    background: #294fc4;
}

.admin-seo-statuses a span {
    min-width: 22px;
    padding: 3px 6px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.18);
    text-align: center;
    font-size: 9px;
}

.admin-seo-search {
    display: flex;
    gap: 9px;
    padding: 12px;
    border: 1px solid #e0e6ee;
    border-radius: 15px;
    background: #fff;
}

.admin-seo-search input {
    flex: 1 1 auto;
    min-width: 0;
    height: 42px;
    padding: 0 13px;
    border: 1px solid #d7e0eb;
    border-radius: 10px;
    color: #1e293b;
    background: #fbfcfe;
}

.admin-seo-list-head {
    display: flex;
    justify-content: space-between;
    margin: 20px 2px 10px;
    color: #64748b;
    font-size: 12px;
}

.admin-seo-table-wrap {
    overflow-x: auto;
    border: 1px solid #dfe6ee;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.admin-seo-table {
    width: 100%;
    min-width: 930px;
    border-collapse: collapse;
}

.admin-seo-table th {
    padding: 13px 15px;
    border-bottom: 1px solid #e6ebf1;
    color: #718096;
    background: #f8fafc;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-align: left;
    text-transform: uppercase;
}

.admin-seo-table td {
    padding: 15px;
    border-bottom: 1px solid #edf1f5;
    color: #536176;
    font-size: 12px;
    vertical-align: middle;
}

.admin-seo-table tr:last-child td {
    border-bottom: 0;
}

.admin-seo-table td:first-child {
    width: 46%;
}

.admin-seo-table td:first-child span {
    display: block;
    margin-bottom: 5px;
    color: #8a98ab;
    font-size: 9px;
    font-weight: 800;
}

.admin-seo-table td:first-child strong {
    display: block;
    color: #1f2d42;
    font-size: 13px;
    line-height: 1.5;
}

.admin-seo-table td:last-child a {
    color: #2551c5;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
}

.admin-status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 0 8px;
    border-radius: 999px;
    color: #526174;
    background: #edf1f5;
    font-size: 9px;
    font-weight: 900;
    white-space: nowrap;
}

.admin-status-badge.status-approved {
    color: #08785b;
    background: #e7f8f1;
}

.admin-status-badge.status-needs_review {
    color: #9a6211;
    background: #fff4dc;
}

.admin-status-badge.status-ai_generated {
    color: #6440a6;
    background: #f2ebff;
}

.admin-seo-breadcrumb {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    color: #7a8799;
    font-size: 11px;
    font-weight: 800;
}

.admin-seo-breadcrumb a {
    color: #3158b5;
    text-decoration: none;
}

.admin-seo-edit-header {
    align-items: center;
}

.admin-seo-edit-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 370px;
    gap: 20px;
    align-items: start;
}

.admin-seo-form-main,
.admin-seo-form-rail {
    display: grid;
    gap: 18px;
}

.admin-seo-form-rail {
    position: sticky;
    top: 90px;
}

.admin-seo-panel {
    padding: 24px;
    border: 1px solid #dfe6ee;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.035);
}

.admin-seo-panel-heading {
    margin-bottom: 19px;
}

.admin-seo-panel-heading h2,
.admin-question-preview h2 {
    margin: 6px 0 0;
    color: #1b2940;
    font-size: 21px;
    line-height: 1.42;
}

.admin-question-preview > img {
    display: block;
    max-width: 100%;
    max-height: 380px;
    margin: 20px auto;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    object-fit: contain;
}

.admin-question-options {
    display: grid;
    gap: 9px;
    margin-top: 20px;
}

.admin-question-options > div {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 11px 12px;
    border: 1px solid #e0e6ed;
    border-radius: 11px;
    color: #4b5d73;
    background: #fafbfd;
    font-size: 12px;
}

.admin-question-options > div.is-correct {
    border-color: #a3ddc9;
    background: #effaf6;
}

.admin-question-options small {
    color: #0c805f;
    font-weight: 900;
}

.admin-seo-panel label {
    display: block;
    margin-top: 16px;
}

.admin-seo-panel label:first-of-type {
    margin-top: 0;
}

.admin-seo-panel label > span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 7px;
    color: #3b4b60;
    font-size: 11px;
    font-weight: 850;
}

.admin-seo-panel label > span small {
    color: #8b98aa;
    font-weight: 700;
}

.admin-seo-panel input,
.admin-seo-panel textarea,
.admin-seo-panel select {
    width: 100%;
    border: 1px solid #d5deea;
    border-radius: 11px;
    color: #1f2d42;
    background: #fbfcfe;
    font: inherit;
    font-size: 13px;
    line-height: 1.55;
}

.admin-seo-panel input,
.admin-seo-panel select {
    height: 43px;
    padding: 0 12px;
}

.admin-seo-panel textarea {
    min-height: 104px;
    padding: 11px 12px;
    resize: vertical;
}

.admin-seo-panel input:focus,
.admin-seo-panel textarea:focus,
.admin-seo-panel select:focus {
    outline: 3px solid rgba(37, 99, 235, 0.12);
    border-color: #7c9be8;
}

.admin-option-explanation-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 17px;
}

.admin-option-explanation-list label {
    margin: 0;
    padding: 14px;
    border: 1px solid #e1e7ef;
    border-radius: 13px;
    background: #fafbfd;
}

.admin-option-explanation-list label.is-correct {
    border-color: #a8ddca;
    background: #f1faf7;
}

.admin-option-explanation-list label > span {
    justify-content: flex-start;
}

.admin-option-explanation-list label > span strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 8px;
    color: #fff;
    background: #52657d;
}

.admin-option-explanation-list label.is-correct > span strong {
    background: #15966d;
}

.admin-slug-input {
    overflow: hidden;
    border: 1px solid #d5deea;
    border-radius: 11px;
    background: #fbfcfe;
}

.admin-slug-input small {
    display: block;
    padding: 8px 11px 0;
    color: #8290a3;
    font-size: 9px;
}

.admin-slug-input input {
    border: 0;
    background: transparent;
}

.admin-serp-preview {
    margin-top: 18px;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    background: #fff;
}

.admin-serp-preview small {
    display: block;
    overflow: hidden;
    color: #4a6453;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-serp-preview strong {
    display: block;
    margin: 5px 0;
    color: #1a0dab;
    font-size: 14px;
    line-height: 1.35;
}

.admin-serp-preview p {
    margin: 0;
    color: #4d5156;
    font-size: 10px;
    line-height: 1.5;
}

.admin-seo-publish-box {
    padding: 20px;
    border: 1px solid #c9d8f5;
    border-radius: 17px;
    background: #edf4ff;
}

.admin-seo-publish-box p {
    margin: 0 0 16px;
    color: #506580;
    font-size: 12px;
    line-height: 1.65;
}

.admin-seo-publish-box > a {
    display: block;
    margin-top: 12px;
    color: #47617f;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

@media (max-width: 1160px) {
    .question-library-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .question-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-seo-edit-grid {
        grid-template-columns: minmax(0, 1fr) 330px;
    }
}

@media (max-width: 940px) {
    .question-library-hero-grid,
    .question-detail-layout,
    .admin-seo-edit-grid {
        grid-template-columns: 1fr;
    }

    .question-library-hero-card {
        max-width: 620px;
    }

    .question-detail-rail,
    .admin-seo-form-rail {
        position: static;
    }
}

@media (max-width: 680px) {
    .question-library-hero {
        padding: 38px 0 35px;
    }

    .question-library-hero-grid {
        gap: 28px;
    }

    .question-library-hero h1 {
        font-size: 38px;
    }

    .question-library-hero h1 + p {
        font-size: 15px;
    }

    .question-library-grid,
    .question-related-grid,
    .admin-option-explanation-list {
        grid-template-columns: 1fr;
    }

    .question-library-card {
        min-height: 0;
    }

    .question-detail-header,
    .question-detail-options,
    .question-detail-media {
        padding-left: 20px;
        padding-right: 20px;
    }

    .question-detail-explanation,
    .question-detail-source {
        margin-left: 20px;
        margin-right: 20px;
    }

    .question-detail-option p,
    .question-detail-option-media {
        margin-left: 0;
    }

    .admin-seo-shell {
        width: min(100% - 24px, 1320px);
    }

    .admin-seo-header,
    .admin-seo-search {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-seo-search .button {
        width: 100%;
    }

    .admin-seo-panel {
        padding: 18px;
    }
}




/* Açıklamalı soru kütüphanesi v56.
   Konu Anlatımları içinde bir öğrenme kaynağı olarak sunulur; sınav kartı dili kullanılmaz. */
.lesson-question-library .lesson-library-section-head h2 {
    max-width: 720px;
}

.lesson-question-library-card {
    position: relative;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) minmax(190px, .72fr) auto;
    gap: 20px;
    align-items: center;
    padding: 22px 23px;
    overflow: hidden;
    border: 1px solid #ded8e8;
    border-radius: 18px;
    color: inherit;
    background: #fff;
    box-shadow: 0 13px 30px rgba(51, 42, 72, .052);
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.lesson-question-library-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, #8b68ca, #6845ad);
}

.lesson-question-library-card:hover {
    transform: translateY(-2px);
    border-color: #cfc3df;
    box-shadow: 0 18px 38px rgba(51, 42, 72, .085);
}

.lesson-question-library-card:focus-visible {
    outline: 3px solid rgba(111, 78, 177, .2);
    outline-offset: 3px;
}

.lesson-question-library-icon {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border: 1px solid #e0d7ed;
    border-radius: 16px;
    color: #6a47af;
    background: #faf7fd;
}

.lesson-question-library-icon svg {
    width: 31px;
    height: 31px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lesson-question-library-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.lesson-question-library-copy > small,
.lesson-question-library-copy > strong,
.lesson-question-library-copy > span {
    display: block;
}

.lesson-question-library-copy > small {
    color: #6a47af;
    font-size: 9.5px;
    font-weight: 820;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.lesson-question-library-copy > strong {
    margin-top: 5px;
    color: var(--navy-900);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -.02em;
}

.lesson-question-library-copy > span {
    max-width: 570px;
    margin-top: 6px;
    color: var(--text-secondary);
    font-size: 11.5px;
    line-height: 1.5;
}

.lesson-question-library-features {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 7px;
    padding-left: 18px;
    border-left: 1px solid #e5dfeb;
}

.lesson-question-library-features > span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 39px;
    padding: 8px 10px;
    border: 1px solid #e7e1ed;
    border-radius: 10px;
    background: #fdfcfe;
}

.lesson-question-library-features b {
    color: #716680;
    font-size: 8.8px;
    font-weight: 760;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.lesson-question-library-features small {
    color: #4d3b67;
    font-size: 10.2px;
    font-weight: 800;
    white-space: nowrap;
}

.lesson-question-library-action {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid #cfc2df;
    border-radius: 10px;
    color: #62439f;
    background: #fff;
    font-size: 10.8px;
    font-weight: 820;
    white-space: nowrap;
    transition: border-color 160ms ease, background 160ms ease;
}

.lesson-question-library-card:hover .lesson-question-library-action {
    border-color: #ad98cb;
    background: #faf7fd;
}

.lesson-question-library-action b {
    margin-left: 7px;
    font-size: 14px;
}

@media (max-width: 1080px) {
    .lesson-question-library-card {
        grid-template-columns: 56px minmax(0, 1fr) auto;
    }

    .lesson-question-library-features {
        display: none;
    }
}

@media (max-width: 760px) {
    .lesson-question-library-card {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 16px;
        padding: 20px;
    }

    .lesson-question-library-action {
        grid-column: 2;
        justify-self: start;
    }
}

@media (max-width: 520px) {
    .lesson-question-library-card {
        grid-template-columns: 1fr;
    }

    .lesson-question-library-icon {
        width: 50px;
        height: 50px;
    }

    .lesson-question-library-action {
        grid-column: 1;
        width: 100%;
    }
}


/* Exam experience v55: duration, palette, mobile layout and exit guard. */
.exam-mobile-status {
    display: none;
}

.exam-side-heading {
    padding: 0 2px 2px;
}

.exam-side-heading strong {
    display: block;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.35;
}

.palette-dot {
    border: 1px solid transparent;
    transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.palette-dot:hover {
    transform: translateY(-1px);
}

.palette-dot.palette-current {
    color: #fff;
    border-color: #1f5ee8;
    background: #2463eb;
    box-shadow: 0 6px 14px rgba(36, 99, 235, .23);
}

.palette-dot.palette-correct {
    color: #0d6a4f;
    border-color: #b9e6d5;
    background: #dff7ee;
}

.palette-dot.palette-wrong {
    color: #a43042;
    border-color: #f0c4cc;
    background: #fde7eb;
}

.palette-dot.palette-skipped {
    color: #5e6b7c;
    border-color: #d9e0e7;
    background: #edf1f5;
}

.palette-dot.palette-unvisited {
    color: #587087;
    border-color: #e1e8ee;
    background: #f4f7f9;
}

.palette-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 12px;
    color: #66778a;
    font-size: 11px;
    font-weight: 750;
}

.palette-legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.palette-legend i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.legend-current { background: #2463eb; }
.legend-correct { background: #28a77a; }
.legend-wrong { background: #dc5268; }
.legend-skipped { background: #a7b1bd; }

.exam-exit-modal[hidden] {
    display: none;
}

.exam-exit-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 20px;
}

.exam-exit-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .52);
    backdrop-filter: blur(4px);
}

.exam-exit-modal-card {
    position: relative;
    width: min(460px, 100%);
    padding: 26px;
    border: 1px solid #dbe3eb;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(15, 23, 42, .24);
}

.exam-exit-modal-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
    border-radius: 14px;
    color: #a33a4d;
    background: #fdecef;
    font-size: 24px;
    font-weight: 900;
}

.exam-exit-modal-copy > span {
    color: #b13c50;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.exam-exit-modal-copy h2 {
    margin: 6px 0 9px;
    color: #17243a;
    font-size: 24px;
    line-height: 1.2;
}

.exam-exit-modal-copy p {
    margin: 0;
    color: #66758a;
    font-size: 14px;
    line-height: 1.6;
}

.exam-exit-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
}

.button.danger {
    color: #fff;
    border-color: #c94359;
    background: #c94359;
}

.button.danger:hover {
    border-color: #af3045;
    background: #af3045;
}

.exam-exit-modal-open {
    overflow: hidden;
}

@media (max-width: 680px) {
    .exam-shell {
        min-height: calc(100vh - 66px);
        padding: 10px 0 32px;
    }

    .exam-layout {
        width: min(100% - 16px, 1160px);
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .question-card {
        padding: 13px;
        border-radius: 17px;
        box-shadow: 0 10px 28px rgba(29, 70, 105, .07);
    }

    .exam-mobile-status {
        position: sticky;
        top: 66px;
        z-index: 12;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
        align-items: center;
        margin: -13px -13px 13px;
        padding: 11px 13px;
        border-bottom: 1px solid #dce5ed;
        border-radius: 17px 17px 0 0;
        background: rgba(255, 255, 255, .96);
        backdrop-filter: blur(12px);
    }

    .exam-mobile-status > div {
        display: grid;
        gap: 2px;
        min-width: 0;
    }

    .exam-mobile-status > div:last-child {
        text-align: right;
    }

    .exam-mobile-status span {
        overflow: hidden;
        color: #718096;
        font-size: 10px;
        font-weight: 750;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .exam-mobile-status strong {
        color: #17243a;
        font-size: 13px;
        line-height: 1.2;
    }

    .exam-mobile-status .timer {
        color: #174fc8;
        font-size: 20px;
        font-variant-numeric: tabular-nums;
    }

    .question-meta {
        gap: 8px;
        font-size: 12px;
    }

    .progress-track {
        margin: 10px 0 15px;
        height: 6px;
    }

    .question-save-bar,
    .question-save-link {
        font-size: 12px;
    }

    .question-card h1 {
        margin: 14px 0 17px;
        font-size: 20px;
        line-height: 1.34;
        overflow-wrap: anywhere;
    }

    .answers {
        gap: 8px;
        margin-bottom: 13px;
    }

    .answer-option {
        grid-template-columns: 32px minmax(0, 1fr);
        gap: 10px;
        min-height: 54px;
        padding: 10px;
        border-radius: 13px;
        font-size: 14px;
    }

    .option-key {
        width: 32px;
        height: 32px;
    }

    .explanation-box,
    .skipped-box {
        padding: 14px;
        border-radius: 13px;
    }

    .question-action-slot .button {
        min-height: 48px;
    }

    .exam-side {
        position: static;
        order: initial;
        gap: 9px;
    }

    .exam-side-heading,
    .timer-panel,
    .exam-progress-panel {
        display: none;
    }

    .side-panel {
        padding: 13px;
        border-radius: 15px;
        background: #fff;
        box-shadow: 0 8px 22px rgba(29, 70, 105, .055);
    }

    .stat-panel {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }

    .stat-panel span {
        place-items: center;
        padding: 8px 4px;
        border-radius: 10px;
        background: #f6f8fa;
        font-size: 10px;
        text-align: center;
    }

    .stat-panel strong {
        font-size: 17px;
    }

    .question-palette {
        grid-template-columns: repeat(5, 1fr);
        gap: 7px;
    }

    .palette-dot {
        min-height: 40px;
        border-radius: 11px;
        font-size: 13px;
    }

    .palette-legend {
        justify-content: center;
        font-size: 10px;
    }

    .exam-exit-modal {
        align-items: end;
        padding: 12px;
    }

    .exam-exit-modal-card {
        width: 100%;
        padding: 21px;
        border-radius: 22px 22px 16px 16px;
    }

    .exam-exit-modal-copy h2 {
        font-size: 22px;
    }

    .exam-exit-modal-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}


/* Exam experience v59: timezone-safe timer, instant palette status and premium side dashboard. */
@media (min-width: 681px) {
    .exam-layout {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 20px;
    }
}

.exam-side {
    gap: 0;
}

.exam-side-dashboard {
    overflow: hidden;
    border: 1px solid #d6e1ed;
    border-radius: 22px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 22px 52px rgba(28, 55, 91, .11);
}

.exam-side-heading {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 16px;
    border-bottom: 1px solid #dce6f0;
    background:
        radial-gradient(circle at 90% 10%, rgba(47, 106, 229, .13), transparent 40%),
        linear-gradient(135deg, #f9fbff 0%, #eef5ff 100%);
}

.exam-side-heading-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid #cbdcf7;
    border-radius: 13px;
    color: #225ed9;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 8px 18px rgba(42, 91, 180, .09);
}

.exam-side-heading-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.exam-side-heading-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.exam-side-heading-copy small {
    color: #2f66cf;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.exam-side-heading-copy strong {
    overflow: hidden;
    color: #16243a;
    font-size: 14px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.exam-side-overview {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 10px;
    padding: 13px 13px 0;
}

.exam-side-dashboard .side-panel {
    border-color: #e0e8f0;
    border-radius: 15px;
    background: #fff;
    box-shadow: none;
}

.exam-side-overview .side-panel {
    min-height: 112px;
    padding: 13px;
}

.exam-side-overview .timer-panel {
    align-content: center;
    background: linear-gradient(145deg, #f8fbff, #eef5ff);
}

.exam-side-overview .timer-panel .timer {
    color: #174fc8;
    font-size: 29px;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.035em;
}

.exam-side-overview .side-panel small,
.palette-panel-heading small {
    color: #8190a1;
    font-size: 9px;
    font-weight: 650;
    line-height: 1.35;
}

.exam-side-overview .exam-progress-panel {
    align-content: center;
}

.exam-side-overview .exam-progress-panel > strong {
    color: #17243a;
    font-size: 20px;
    line-height: 1;
}

.exam-side-dashboard .progress-track.compact {
    height: 6px;
    margin-top: 8px;
    background: #e7eef6;
}

.exam-side-dashboard .stat-panel {
    margin: 10px 13px 0;
    padding: 0;
    gap: 8px;
    border: 0;
    background: transparent;
}

.exam-side-dashboard .stat-panel span {
    position: relative;
    min-height: 66px;
    align-content: center;
    padding: 10px 11px;
    overflow: hidden;
    border: 1px solid #e1e8ef;
    border-radius: 13px;
    background: #f8fafc;
}

.exam-side-dashboard .stat-panel span::after {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: #8ca3bb;
}

.exam-side-dashboard .stat-panel .stat-correct {
    color: #487464;
    border-color: #d5ebe2;
    background: #f3fbf7;
}

.exam-side-dashboard .stat-panel .stat-correct::after { background: #28a77a; }

.exam-side-dashboard .stat-panel .stat-wrong {
    color: #8d5660;
    border-color: #f0dce0;
    background: #fff7f8;
}

.exam-side-dashboard .stat-panel .stat-wrong::after { background: #dc5268; }
.exam-side-dashboard .stat-panel .stat-empty::after { background: #9aa7b5; }
.exam-side-dashboard .stat-panel .stat-answered::after { background: #2e6be5; }

.exam-side-dashboard .stat-panel strong {
    margin-top: 2px;
    font-size: 21px;
    font-variant-numeric: tabular-nums;
}

.exam-side-dashboard .palette-panel {
    margin: 10px 13px 13px;
    padding: 14px;
    background: linear-gradient(180deg, #fff, #fbfcfe);
}

.palette-panel-heading {
    display: grid;
    gap: 3px;
    margin-bottom: 12px;
}

.exam-side-dashboard .question-palette {
    gap: 7px;
}

.exam-side-dashboard .palette-dot {
    min-height: 35px;
    border-radius: 10px;
    font-size: 12px;
}

.palette-dot.is-current-position:not(.palette-current) {
    position: relative;
    z-index: 2;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(36, 99, 235, .42);
}

.palette-dot.is-current-position.palette-correct,
.palette-dot.is-current-position.palette-wrong,
.palette-dot.is-current-position.palette-skipped {
    transform: translateY(-1px);
}

.exam-side-dashboard .palette-legend {
    padding-top: 11px;
    border-top: 1px solid #e7edf3;
}

@media (max-width: 680px) {
    .exam-side-dashboard {
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .exam-side-overview {
        display: none;
    }

    .exam-side-dashboard .stat-panel {
        margin: 0;
        padding: 0;
    }

    .exam-side-dashboard .stat-panel span {
        min-height: 59px;
        padding: 8px 4px;
    }

    .exam-side-dashboard .palette-panel {
        margin: 9px 0 0;
        padding: 13px;
    }

    .palette-panel-heading small {
        display: none;
    }

    .exam-side-dashboard .palette-dot {
        min-height: 40px;
    }
}


/* =========================================================
   Exam result v60 — premium summary, compact review and mobile
   ========================================================= */
.exam-result-v2 {
    min-height: calc(100vh - 72px);
    color: #172238;
    background:
        radial-gradient(circle at 84% 5%, rgba(53, 107, 220, .09), transparent 23%),
        linear-gradient(180deg, #f7faff 0%, #f4f7fb 42%, #f7f9fc 100%);
}

.exam-result-v2-shell {
    max-width: 1180px;
}

.exam-result-v2-hero {
    padding: 34px 0 22px;
    border-bottom: 1px solid #dfe7f1;
}

.exam-result-v2-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 34px;
    align-items: center;
    padding: 34px 36px;
    border: 1px solid #d8e3f0;
    border-radius: 26px;
    background:
        radial-gradient(circle at 89% 13%, rgba(55, 108, 224, .12), transparent 30%),
        linear-gradient(125deg, rgba(255,255,255,.99), rgba(248,251,255,.98));
    box-shadow: 0 22px 52px rgba(39, 69, 111, .09);
}

.exam-result-v2-copy {
    min-width: 0;
}

.exam-result-v2-kicker,
.exam-result-v2-section-head > div > span {
    color: #255fd0;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.exam-result-v2-copy h1 {
    max-width: 720px;
    margin: 8px 0 17px;
    color: #12213a;
    font-size: clamp(34px, 4vw, 50px);
    font-weight: 760;
    line-height: 1.02;
    letter-spacing: -.045em;
}

.exam-result-v2-status {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 720px;
}

.exam-result-v2-status > span {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    font-size: 17px;
    font-weight: 900;
}

.exam-result-v2-status.is-success > span {
    color: #057554;
    background: #e9f8f1;
}

.exam-result-v2-status.is-progress > span {
    color: #255fd0;
    background: #edf3ff;
}

.exam-result-v2-status strong {
    display: block;
    margin-bottom: 3px;
    color: #293950;
    font-size: 15px;
}

.exam-result-v2-status p {
    max-width: 650px;
    margin: 0;
    color: #6a788c;
    font-size: 13px;
    line-height: 1.58;
}

.exam-result-v2-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 23px;
}

.exam-result-v2-actions form {
    margin: 0;
}

.exam-result-v2-actions .button {
    min-height: 44px;
    border-radius: 12px;
    font-size: 12px;
}

.exam-result-v2-score {
    display: grid;
    justify-items: center;
    gap: 13px;
    padding-left: 28px;
    border-left: 1px solid #dce6f2;
}

.exam-result-v2-ring {
    display: grid;
    place-items: center;
    width: 196px;
    height: 196px;
    border-radius: 50%;
    background: conic-gradient(#2863dc var(--result-score), #e5edf7 0);
    box-shadow: 0 15px 34px rgba(40, 91, 188, .16);
}

.exam-result-v2-ring::before {
    content: "";
    position: absolute;
}

.exam-result-v2-ring > div {
    display: grid;
    place-items: center;
    width: 158px;
    height: 158px;
    border: 1px solid #e2eaf4;
    border-radius: 50%;
    background: #fff;
    box-shadow: inset 0 0 0 7px #f7f9fd;
}

.exam-result-v2-ring small {
    color: #728096;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.exam-result-v2-ring strong {
    margin: 2px 0;
    color: #172640;
    font-size: 48px;
    line-height: 1;
    letter-spacing: -.06em;
}

.exam-result-v2-ring span {
    color: #6e7c8f;
    font-size: 11px;
    font-weight: 750;
}

.exam-result-v2-score-note {
    display: flex;
    align-items: center;
    gap: 9px;
}

.exam-result-v2-score-note strong {
    color: #21344f;
    font-size: 12px;
}

.exam-result-v2-score-note span {
    padding-left: 9px;
    border-left: 1px solid #d8e2ef;
    color: #7b8798;
    font-size: 10px;
    font-weight: 700;
}

.exam-result-v2-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.exam-result-v2-metrics article {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 82px;
    padding: 15px 17px;
    border: 1px solid #dce5f0;
    border-radius: 17px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 10px 24px rgba(38, 65, 103, .055);
}

.exam-result-v2-metric-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 900;
}

.exam-result-v2-metrics small {
    display: block;
    margin-bottom: 2px;
    color: #7a8798;
    font-size: 10px;
    font-weight: 820;
    text-transform: uppercase;
    letter-spacing: .055em;
}

.exam-result-v2-metrics strong {
    color: #172640;
    font-size: 25px;
    line-height: 1;
    letter-spacing: -.035em;
}

.exam-result-v2-metrics strong b {
    margin-left: 2px;
    color: #8995a5;
    font-size: 12px;
    font-weight: 750;
}

.exam-result-v2-metrics .is-correct .exam-result-v2-metric-icon {
    color: #087b58;
    background: #e8f8f1;
}
.exam-result-v2-metrics .is-wrong .exam-result-v2-metric-icon {
    color: #c73c55;
    background: #fff0f3;
}
.exam-result-v2-metrics .is-empty .exam-result-v2-metric-icon {
    color: #65758a;
    background: #eef2f6;
}
.exam-result-v2-metrics .is-answered .exam-result-v2-metric-icon {
    color: #255fd0;
    background: #edf3ff;
}

.exam-result-v2-main {
    padding-top: 30px;
    padding-bottom: 70px;
}

.exam-result-v2-section + .exam-result-v2-section {
    margin-top: 34px;
}

.exam-result-v2-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 15px;
}

.exam-result-v2-section-head h2 {
    margin: 5px 0 4px;
    color: #15243c;
    font-size: 26px;
    line-height: 1.15;
    letter-spacing: -.035em;
}

.exam-result-v2-section-head p {
    margin: 0;
    color: #718093;
    font-size: 12px;
    line-height: 1.55;
}

.exam-result-v2-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
    gap: 12px;
}

.exam-result-v2-category {
    padding: 18px;
    border: 1px solid #dce5ef;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(37, 66, 103, .05);
}

.exam-result-v2-category-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.exam-result-v2-category-top > div {
    display: flex;
    align-items: baseline;
    gap: 9px;
}

.exam-result-v2-category-top span {
    color: #2a3b53;
    font-size: 14px;
    font-weight: 820;
}

.exam-result-v2-category-top strong {
    color: #255fd0;
    font-size: 24px;
    letter-spacing: -.04em;
}

.exam-result-v2-category-top small {
    color: #7a8797;
    font-size: 10px;
    font-weight: 740;
}

.exam-result-v2-progress {
    height: 7px;
    margin: 14px 0 12px;
    overflow: hidden;
    border-radius: 999px;
    background: #e9eef5;
}

.exam-result-v2-progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2f6ae5, #2155c3);
}

.exam-result-v2-category-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.exam-result-v2-category-meta span {
    font-size: 10px;
    font-weight: 780;
}
.exam-result-v2-category-meta .is-correct { color: #087b58; }
.exam-result-v2-category-meta .is-wrong { color: #c63d55; }
.exam-result-v2-category-meta .is-empty { color: #748196; }

.exam-result-v2-review-count {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid #dce5f0;
    border-radius: 12px;
    background: #fff;
}

.exam-result-v2-review-count strong {
    color: #255fd0;
    font-size: 18px;
}

.exam-result-v2-review-count span {
    color: #758397;
    font-size: 10px;
    font-weight: 780;
}

.exam-result-v2-review-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
}

.exam-result-v2-review-card {
    overflow: hidden;
    border: 1px solid #dce5ef;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 9px 22px rgba(38, 65, 102, .045);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.exam-result-v2-review-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 13px 28px rgba(38, 65, 102, .075);
}

.exam-result-v2-review-card.is-wrong { border-left: 3px solid #df5a6f; }
.exam-result-v2-review-card.is-empty { border-left: 3px solid #a6b1bf; }

.exam-result-v2-review-card summary {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 20px;
    gap: 12px;
    align-items: center;
    min-height: 88px;
    padding: 14px 15px;
    list-style: none;
    cursor: pointer;
}

.exam-result-v2-review-card summary::-webkit-details-marker { display: none; }

.exam-result-v2-question-number {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    color: #496078;
    background: #eff3f7;
    font-size: 13px;
    font-weight: 900;
}

.exam-result-v2-review-card.is-wrong .exam-result-v2-question-number {
    color: #b93850;
    background: #fff0f3;
}

.exam-result-v2-summary-copy {
    min-width: 0;
}

.exam-result-v2-summary-copy small {
    display: block;
    margin-bottom: 4px;
    color: #748296;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.exam-result-v2-summary-copy strong {
    display: -webkit-box;
    overflow: hidden;
    color: #23354e;
    font-size: 12px;
    font-weight: 780;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.exam-result-v2-chevron {
    color: #8190a2;
    font-size: 18px;
    transition: transform 160ms ease;
}

.exam-result-v2-review-card[open] {
    grid-column: 1 / -1;
    border-color: #cfdbea;
    box-shadow: 0 16px 36px rgba(38, 65, 102, .09);
}

.exam-result-v2-review-card[open] .exam-result-v2-chevron {
    transform: rotate(180deg);
}

.exam-result-v2-review-card[open] .exam-result-v2-summary-copy strong {
    -webkit-line-clamp: initial;
}

.exam-result-v2-review-body {
    padding: 0 16px 17px 70px;
    border-top: 1px solid #edf1f5;
}

.exam-result-v2-answer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding-top: 15px;
}

.exam-result-v2-answer {
    padding: 12px 13px;
    border: 1px solid #e1e7ee;
    border-radius: 13px;
}

.exam-result-v2-answer small,
.exam-result-v2-explanation > small {
    display: block;
    margin-bottom: 5px;
    font-size: 9px;
    font-weight: 860;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.exam-result-v2-answer strong {
    color: #34465c;
    font-size: 12px;
    line-height: 1.45;
}

.exam-result-v2-answer.is-user {
    border-color: #f0d6dc;
    background: #fff7f8;
}
.exam-result-v2-answer.is-user small { color: #b94055; }
.exam-result-v2-answer.is-correct {
    border-color: #cce8dc;
    background: #f3fbf7;
}
.exam-result-v2-answer.is-correct small { color: #087b58; }

.exam-result-v2-explanation {
    margin-top: 10px;
    padding: 14px 15px;
    border: 1px solid #dce5f0;
    border-radius: 14px;
    background: #f8fafc;
}

.exam-result-v2-explanation > small { color: #255fd0; }
.exam-result-v2-explanation p {
    margin: 0;
    color: #53657a;
    font-size: 12px;
    line-height: 1.7;
}

.exam-result-v2-success-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 22px;
    border: 1px solid #cfe8dd;
    border-radius: 19px;
    background: linear-gradient(110deg, #fff, #f2fbf7);
}

.exam-result-v2-success-card > span {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    color: #087b58;
    background: #e6f7ef;
    font-size: 21px;
    font-weight: 900;
}

.exam-result-v2-success-card strong {
    display: block;
    color: #1d3c32;
    font-size: 16px;
}

.exam-result-v2-success-card p {
    margin: 4px 0 0;
    color: #668076;
    font-size: 12px;
}

@media (max-width: 900px) {
    .exam-result-v2-panel {
        grid-template-columns: 1fr;
    }

    .exam-result-v2-score {
        grid-template-columns: auto 1fr;
        justify-items: start;
        align-items: center;
        padding: 24px 0 0;
        border-top: 1px solid #dce6f2;
        border-left: 0;
    }

    .exam-result-v2-ring {
        width: 158px;
        height: 158px;
    }

    .exam-result-v2-ring > div {
        width: 126px;
        height: 126px;
    }

    .exam-result-v2-ring strong { font-size: 39px; }

    .exam-result-v2-score-note {
        display: grid;
        gap: 4px;
    }

    .exam-result-v2-score-note span {
        padding-left: 0;
        border-left: 0;
    }

    .exam-result-v2-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .exam-result-v2-hero {
        padding: 18px 0 15px;
    }

    .exam-result-v2-panel {
        gap: 24px;
        padding: 23px 20px;
        border-radius: 21px;
    }

    .exam-result-v2-copy h1 {
        margin-top: 7px;
        font-size: 33px;
    }

    .exam-result-v2-status p {
        font-size: 12px;
    }

    .exam-result-v2-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .exam-result-v2-actions form,
    .exam-result-v2-actions .button {
        width: 100%;
    }

    .exam-result-v2-score {
        grid-template-columns: 128px minmax(0, 1fr);
        gap: 18px;
    }

    .exam-result-v2-ring {
        width: 128px;
        height: 128px;
    }

    .exam-result-v2-ring > div {
        width: 102px;
        height: 102px;
        box-shadow: inset 0 0 0 5px #f7f9fd;
    }

    .exam-result-v2-ring strong { font-size: 32px; }
    .exam-result-v2-ring span { font-size: 9px; }

    .exam-result-v2-metrics {
        gap: 8px;
        margin-top: 10px;
    }

    .exam-result-v2-metrics article {
        min-height: 72px;
        padding: 12px;
    }

    .exam-result-v2-metric-icon {
        width: 34px;
        height: 34px;
    }

    .exam-result-v2-metrics strong { font-size: 22px; }

    .exam-result-v2-main {
        padding-top: 24px;
        padding-bottom: 48px;
    }

    .exam-result-v2-section-head {
        align-items: flex-start;
    }

    .exam-result-v2-section-head h2 {
        font-size: 23px;
    }

    .exam-result-v2-review-grid {
        grid-template-columns: 1fr;
    }

    .exam-result-v2-review-card[open] {
        grid-column: auto;
    }

    .exam-result-v2-review-card summary {
        min-height: 82px;
        grid-template-columns: 38px minmax(0, 1fr) 18px;
        gap: 10px;
        padding: 12px;
    }

    .exam-result-v2-question-number {
        width: 38px;
        height: 38px;
    }

    .exam-result-v2-review-body {
        padding: 0 12px 13px;
    }

    .exam-result-v2-answer-grid {
        grid-template-columns: 1fr;
    }

    .exam-result-v2-success-card {
        grid-template-columns: 46px 1fr;
        padding: 18px;
    }

    .exam-result-v2-success-card > span {
        width: 46px;
        height: 46px;
    }

    .exam-result-v2-success-card .button {
        grid-column: 1 / -1;
        width: 100%;
    }
}

@media (max-width: 430px) {
    .exam-result-v2-copy h1 { font-size: 29px; }

    .exam-result-v2-score {
        grid-template-columns: 110px minmax(0, 1fr);
        gap: 14px;
    }

    .exam-result-v2-ring {
        width: 110px;
        height: 110px;
    }

    .exam-result-v2-ring > div {
        width: 88px;
        height: 88px;
    }

    .exam-result-v2-ring small { font-size: 8px; }
    .exam-result-v2-ring strong { font-size: 28px; }
    .exam-result-v2-ring span { display: none; }

    .exam-result-v2-metrics article {
        gap: 8px;
        padding: 10px;
    }

    .exam-result-v2-metric-icon {
        width: 31px;
        height: 31px;
        border-radius: 10px;
    }

    .exam-result-v2-metrics small { font-size: 8px; }
    .exam-result-v2-metrics strong { font-size: 20px; }

    .exam-result-v2-review-count {
        display: none;
    }
}

/* Exam center and category cards polish v42.
   Only visual treatment and clickability are refined; routes and flow stay unchanged. */
.exam-general-card {
    color: inherit;
    text-decoration: none;
}

.exam-general-card--interactive {
    cursor: pointer;
}

.exam-general-card--interactive,
.exam-general-card--interactive:visited {
    color: inherit;
    text-decoration: none;
}

.exam-general-card--interactive::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(41, 97, 196, 0);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, box-shadow 180ms ease;
}

.exam-general-card--interactive:hover,
.exam-general-card--interactive:focus-visible {
    transform: translateY(-3px);
    border-color: #b5cbeb;
    box-shadow: 0 22px 44px rgba(34, 64, 103, .11);
}

.exam-general-card--interactive:hover::after,
.exam-general-card--interactive:focus-visible::after {
    opacity: 1;
    box-shadow: inset 0 0 0 1px rgba(41, 97, 196, .14);
}

.exam-general-card--interactive:focus-visible {
    outline: none;
}

.exam-general-card-copy {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.exam-general-card-copy p {
    max-width: 600px;
}

.exam-general-card-action {
    align-items: flex-start;
    min-width: 168px;
}

.exam-general-card-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #1f61e4, #2f74ef);
    box-shadow: 0 12px 24px rgba(30, 95, 229, .18);
    font-size: 11.5px;
    font-weight: 760;
    line-height: 1;
    white-space: nowrap;
}

.exam-general-card-cta b {
    font-size: 15px;
    transition: transform 170ms ease;
}

.exam-general-card--interactive:hover .exam-general-card-cta b,
.exam-general-card--interactive:focus-visible .exam-general-card-cta b {
    transform: translateX(2px);
}

.exam-general-card-cta.is-disabled {
    cursor: not-allowed;
    opacity: .58;
    box-shadow: none;
}

.exam-general-card-visual svg {
    transition: transform 180ms ease;
}

.exam-general-card--interactive:hover .exam-general-card-visual svg,
.exam-general-card--interactive:focus-visible .exam-general-card-visual svg {
    transform: translateY(-2px) scale(1.015);
}

.category-template-grid--traffic .category-template-card { --category-card-accent: #2b78d0; --category-card-soft: #edf7ff; }
.category-template-grid--first-aid .category-template-card { --category-card-accent: #d85e7d; --category-card-soft: #fff1f5; }
.category-template-grid--engine .category-template-card { --category-card-accent: #d4862d; --category-card-soft: #fff5ea; }
.category-template-grid--ethics .category-template-card { --category-card-accent: #1a9a72; --category-card-soft: #eefaf5; }

.category-template-card {
    --category-card-accent: #2b78d0;
    --category-card-soft: #edf7ff;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    gap: 14px;
    min-height: 204px;
    padding: 18px;
    overflow: hidden;
    border: 1px solid #dce5ef;
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(251,253,255,.98) 100%);
    box-shadow: 0 12px 28px rgba(28, 72, 107, 0.055);
}

.category-template-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--category-card-accent), color-mix(in srgb, var(--category-card-accent) 60%, #ffffff));
}

.category-template-card--interactive {
    cursor: pointer;
}

.category-template-card--interactive:hover,
.category-template-card--interactive:focus-visible {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--category-card-accent) 32%, #dce5ef);
    box-shadow: 0 18px 36px rgba(28, 72, 107, 0.11);
}

.category-template-card--interactive:focus-visible {
    outline: none;
}

.category-template-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.category-template-number {
    width: 40px;
    height: 40px;
    border: 1px solid color-mix(in srgb, var(--category-card-accent) 14%, #dce5ef);
    border-radius: 13px;
    color: var(--category-card-accent);
    background: var(--category-card-soft);
    font-size: 11px;
    font-weight: 900;
}

.category-template-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border: 1px solid #dce5ef;
    border-radius: 999px;
    color: #6d7f94;
    background: rgba(255, 255, 255, .92);
    font-size: 9.2px;
    font-weight: 760;
    line-height: 1;
}

.category-template-card-copy {
    min-width: 0;
}

.category-template-card-copy > span {
    color: color-mix(in srgb, var(--category-card-accent) 78%, #8b97a7);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.category-template-card h3 {
    margin: 6px 0 6px;
    color: #16304a;
    font-size: 22px;
    font-weight: 690;
    line-height: 1.08;
    letter-spacing: -.03em;
}

.category-template-card p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #6f8296;
    font-size: 11.5px;
    line-height: 1.52;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.category-template-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: auto;
}

.category-template-card-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 29px;
    padding: 5px 10px;
    border: 1px solid #dce5ef;
    border-radius: 999px;
    color: #62758c;
    background: #fff;
    font-size: 9.4px;
    font-weight: 720;
    line-height: 1;
}

.category-template-button {
    width: 100%;
    justify-content: center;
    min-height: 41px;
    margin-top: 2px;
    border: 1px solid color-mix(in srgb, var(--category-card-accent) 18%, #d6e1ef);
    border-radius: 12px;
    color: var(--category-card-accent);
    background: color-mix(in srgb, var(--category-card-soft) 78%, #fff);
    font-size: 11.5px;
    font-weight: 760;
    transition: transform 170ms ease, background 170ms ease, border-color 170ms ease, color 170ms ease, box-shadow 170ms ease;
}

.category-template-button:hover,
.category-template-card--interactive:hover .category-template-button,
.category-template-card--interactive:focus-visible .category-template-button {
    color: #fff;
    border-color: var(--category-card-accent);
    background: var(--category-card-accent);
    box-shadow: 0 10px 22px color-mix(in srgb, var(--category-card-accent) 24%, transparent);
}

.category-template-button span {
    margin-left: 2px;
    font-size: 15px;
    transition: transform 170ms ease;
}

.category-template-card--interactive:hover .category-template-button span,
.category-template-card--interactive:focus-visible .category-template-button span {
    transform: translateX(2px);
}

@media (max-width: 860px) {
    .category-template-card {
        min-height: 190px;
    }
}

@media (max-width: 680px) {
    .exam-general-card-action {
        min-width: 0;
        align-items: stretch;
    }

    .exam-general-card-cta {
        width: 100%;
    }

    .category-template-card {
        min-height: 0;
        padding: 16px;
        gap: 12px;
    }

    .category-template-card h3 {
        font-size: 20px;
    }

    .category-template-card p {
        font-size: 10.8px;
    }

    .category-template-card-meta {
        gap: 6px;
    }

    .category-template-card-meta span,
    .category-template-badge {
        font-size: 8.8px;
    }

    .category-template-button {
        min-height: 39px;
    }
}

/* Exam package redesign v43.
   Shared compact cards for category and general exam lists; exam flow remains unchanged. */
.exam-feature-card {
    position: relative;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    min-height: 154px;
    padding: 24px 26px;
    overflow: hidden;
    border: 1px solid rgba(132, 171, 235, .28);
    border-radius: 22px;
    color: #fff;
    background:
        radial-gradient(circle at 86% 22%, rgba(120, 174, 255, .28), transparent 31%),
        radial-gradient(circle at 8% 115%, rgba(76, 142, 255, .22), transparent 36%),
        linear-gradient(118deg, #102d67 0%, #184698 54%, #2467df 100%);
    box-shadow: 0 18px 42px rgba(24, 65, 132, .18);
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.exam-feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .2;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(90deg, transparent, #000 65%, #000);
}

.exam-feature-card:hover,
.exam-feature-card:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(174, 202, 247, .48);
    box-shadow: 0 24px 52px rgba(24, 65, 132, .24);
}

.exam-feature-card:focus-visible {
    outline: 3px solid rgba(62, 128, 246, .22);
    outline-offset: 3px;
}

.exam-feature-card--disabled {
    cursor: not-allowed;
    filter: saturate(.68);
    opacity: .78;
}

.exam-feature-card-glow {
    position: absolute;
    top: -70px;
    right: 90px;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    filter: blur(2px);
    pointer-events: none;
}

.exam-feature-card-icon {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 17px;
    color: #fff;
    background: rgba(255, 255, 255, .11);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
    backdrop-filter: blur(10px);
}

.exam-feature-card-icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.exam-feature-card-copy,
.exam-feature-card-side {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.exam-feature-card-copy {
    min-width: 0;
}

.exam-feature-card-kicker {
    color: #bcd4ff;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.exam-feature-card-title {
    margin-top: 6px;
    color: #fff;
    font-size: 28px;
    font-weight: 690;
    line-height: 1.06;
    letter-spacing: -.035em;
}

.exam-feature-card-description {
    max-width: 640px;
    margin-top: 7px;
    color: rgba(235, 242, 255, .82);
    font-size: 12px;
    line-height: 1.5;
}

.exam-feature-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.exam-feature-card-meta > span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    color: #ecf3ff;
    background: rgba(255, 255, 255, .08);
    font-size: 9.5px;
    font-weight: 710;
}

.exam-feature-card-side {
    align-items: flex-end;
    gap: 12px;
    min-width: 190px;
}

.exam-feature-card-count {
    color: rgba(232, 241, 255, .78);
    font-size: 10px;
    font-weight: 680;
}

.exam-feature-card-count strong {
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}

.exam-feature-card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 12px;
    color: #163d82;
    background: #fff;
    box-shadow: 0 12px 26px rgba(4, 23, 61, .18);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.exam-feature-card-action b {
    font-size: 15px;
    transition: transform 170ms ease;
}

.exam-feature-card:hover .exam-feature-card-action b,
.exam-feature-card:focus-visible .exam-feature-card-action b {
    transform: translateX(3px);
}

.exam-package-grid {
    --package-accent: #2a72d8;
    --package-soft: #edf6ff;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.exam-package-grid--first-aid { --package-accent: #d95e7f; --package-soft: #fff0f4; }
.exam-package-grid--engine { --package-accent: #d4832d; --package-soft: #fff4e8; }
.exam-package-grid--ethics { --package-accent: #1b966f; --package-soft: #edf9f4; }
.exam-package-grid--general { --package-accent: #245fd2; --package-soft: #eef4ff; }

.exam-package-form {
    min-width: 0;
    margin: 0;
}

.exam-package-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 176px;
    margin: 0;
    padding: 17px;
    overflow: hidden;
    border: 1px solid #dce5ef;
    border-radius: 18px;
    color: #17304a;
    background:
        radial-gradient(circle at 92% 0%, color-mix(in srgb, var(--package-soft) 82%, transparent), transparent 34%),
        #fff;
    box-shadow: 0 10px 26px rgba(28, 61, 98, .055);
    cursor: pointer;
    font: inherit;
    text-align: left;
    appearance: none;
    transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.exam-package-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--package-accent), color-mix(in srgb, var(--package-accent) 52%, #fff));
}

.exam-package-card:hover,
.exam-package-card:focus-visible {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--package-accent) 30%, #dce5ef);
    box-shadow: 0 17px 34px rgba(28, 61, 98, .105);
}

.exam-package-card:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--package-accent) 18%, transparent);
    outline-offset: 2px;
}

.exam-package-card:disabled {
    cursor: not-allowed;
    opacity: .58;
    transform: none;
    box-shadow: none;
}

.exam-package-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.exam-package-number {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid color-mix(in srgb, var(--package-accent) 17%, #dce5ef);
    border-radius: 12px;
    color: var(--package-accent);
    background: var(--package-soft);
    font-size: 10.5px;
    font-weight: 900;
}

.exam-package-badge {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 4px 9px;
    border: 1px solid #dce5ef;
    border-radius: 999px;
    color: #718399;
    background: rgba(255, 255, 255, .92);
    font-size: 8.8px;
    font-weight: 760;
}

.exam-package-kicker {
    display: block;
    margin-top: 15px;
    overflow: hidden;
    color: color-mix(in srgb, var(--package-accent) 78%, #8491a3);
    font-size: 8.5px;
    font-weight: 820;
    letter-spacing: .07em;
    line-height: 1.25;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.exam-package-title {
    display: block;
    margin-top: 6px;
    color: #142b44;
    font-size: 21px;
    font-weight: 690;
    line-height: 1.08;
    letter-spacing: -.03em;
}

.exam-package-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.exam-package-meta > span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 8px;
    border: 1px solid #dfe7f0;
    border-radius: 999px;
    color: #6b7d92;
    background: #fff;
    font-size: 8.7px;
    font-weight: 710;
}

.exam-package-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 15px;
    color: var(--package-accent);
    font-size: 10.5px;
    font-weight: 800;
}

.exam-package-action::before {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    margin-right: 2px;
    background: linear-gradient(90deg, #e5ebf3, transparent);
}

.exam-package-action b {
    font-size: 15px;
    transition: transform 170ms ease;
}

.exam-package-card:hover .exam-package-action b,
.exam-package-card:focus-visible .exam-package-action b {
    transform: translateX(3px);
}

@media (max-width: 980px) {
    .exam-feature-card {
        grid-template-columns: 54px minmax(0, 1fr);
    }

    .exam-feature-card-side {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        min-width: 0;
        padding-left: 74px;
    }

    .exam-package-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .exam-feature-card {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 13px;
        min-height: 0;
        padding: 18px;
        border-radius: 18px;
    }

    .exam-feature-card-icon {
        width: 44px;
        height: 44px;
        border-radius: 13px;
    }

    .exam-feature-card-icon svg {
        width: 22px;
        height: 22px;
    }

    .exam-feature-card-title {
        font-size: 23px;
    }

    .exam-feature-card-description {
        font-size: 10.8px;
    }

    .exam-feature-card-meta {
        gap: 5px;
        margin-top: 11px;
    }

    .exam-feature-card-meta > span {
        min-height: 25px;
        padding: 4px 8px;
        font-size: 8.7px;
    }

    .exam-feature-card-side {
        padding-left: 57px;
    }

    .exam-feature-card-count {
        display: none;
    }

    .exam-feature-card-action {
        width: 100%;
    }

    .exam-package-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .exam-package-card {
        min-height: 158px;
        padding: 15px;
        border-radius: 16px;
    }

    .exam-package-kicker {
        margin-top: 12px;
    }

    .exam-package-title {
        font-size: 19px;
    }
}

/* Exam cards v44 — quieter, denser and aligned with the premium hub layout. */
.exam-overview-card {
    --overview-accent: #245fd2;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 26px;
    align-items: center;
    min-height: 146px;
    padding: 24px 26px;
    overflow: hidden;
    border: 1px solid #d7e2ef;
    border-radius: 20px;
    color: #152a43;
    background:
        radial-gradient(circle at 96% 0%, rgba(46, 112, 231, .10), transparent 30%),
        linear-gradient(135deg, #ffffff 0%, #fbfdff 66%, #f2f7ff 100%);
    box-shadow: 0 15px 36px rgba(32, 61, 99, .065);
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.exam-overview-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, #347af0, #184ebc);
}

.exam-overview-card:hover,
.exam-overview-card:focus-visible {
    transform: translateY(-2px);
    border-color: #bdd0ea;
    box-shadow: 0 20px 44px rgba(32, 61, 99, .105);
}

.exam-overview-card:focus-visible {
    outline: 3px solid rgba(36, 95, 210, .17);
    outline-offset: 3px;
}

.exam-overview-card--disabled {
    cursor: not-allowed;
    opacity: .65;
    transform: none;
    box-shadow: none;
}

.exam-overview-main {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 17px;
    align-items: center;
    min-width: 0;
}

.exam-overview-mark {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border: 1px solid #cbdcf6;
    border-radius: 16px;
    color: var(--overview-accent);
    background: #eef5ff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}

.exam-overview-mark svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.exam-overview-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.exam-overview-kicker {
    color: #2863cd;
    font-size: 9px;
    font-weight: 810;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.exam-overview-title {
    margin-top: 5px;
    color: #132942;
    font-size: 27px;
    font-weight: 675;
    line-height: 1.08;
    letter-spacing: -.035em;
}

.exam-overview-description {
    max-width: 590px;
    margin-top: 7px;
    color: #687a90;
    font-size: 12px;
    line-height: 1.5;
}

.exam-overview-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(72px, 1fr));
    overflow: hidden;
    border: 1px solid #d9e4f1;
    border-radius: 15px;
    background: rgba(255, 255, 255, .82);
}

.exam-overview-stats > span {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 70px;
    padding: 10px 15px;
    text-align: center;
}

.exam-overview-stats > span + span::before {
    content: "";
    position: absolute;
    inset: 13px auto 13px 0;
    width: 1px;
    background: #dfe7f1;
}

.exam-overview-stats strong {
    color: #183b76;
    font-size: 20px;
    font-weight: 760;
    line-height: 1;
}

.exam-overview-stats small {
    margin-top: 5px;
    color: #74859a;
    font-size: 8.5px;
    font-weight: 720;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.exam-overview-end {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    min-width: 148px;
}

.exam-overview-ready {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #60738b;
    font-size: 9.5px;
    font-weight: 730;
}

.exam-overview-ready i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22a276;
    box-shadow: 0 0 0 4px rgba(34, 162, 118, .10);
}

.exam-overview-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 15px;
    border: 1px solid #c9d8ee;
    border-radius: 12px;
    color: #1f5ecf;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(40, 83, 145, .08);
    font-size: 10.8px;
    font-weight: 790;
    white-space: nowrap;
    transition: color 170ms ease, background 170ms ease, border-color 170ms ease, transform 170ms ease;
}

.exam-overview-action b {
    font-size: 15px;
    transition: transform 170ms ease;
}

.exam-overview-card:hover .exam-overview-action,
.exam-overview-card:focus-visible .exam-overview-action {
    color: #ffffff;
    border-color: var(--overview-accent);
    background: var(--overview-accent);
    transform: translateY(-1px);
}

.exam-overview-card:hover .exam-overview-action b,
.exam-overview-card:focus-visible .exam-overview-action b {
    transform: translateX(2px);
}

.exam-row-grid {
    --row-accent: #2b72d6;
    --row-soft: #edf6ff;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.exam-row-grid--first-aid { --row-accent: #d65d7d; --row-soft: #fff0f4; }
.exam-row-grid--engine { --row-accent: #ce7a25; --row-soft: #fff4e8; }
.exam-row-grid--ethics { --row-accent: #178d68; --row-soft: #edf9f4; }
.exam-row-grid--general { --row-accent: #245fd2; --row-soft: #eef4ff; }

.exam-row-form {
    min-width: 0;
    margin: 0;
}

.exam-row-card {
    position: relative;
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) 38px;
    gap: 15px;
    align-items: center;
    width: 100%;
    min-height: 102px;
    margin: 0;
    padding: 15px 16px;
    overflow: hidden;
    border: 1px solid #dce5ef;
    border-radius: 17px;
    color: #17304a;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(29, 59, 94, .045);
    cursor: pointer;
    font: inherit;
    text-align: left;
    appearance: none;
    transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease, background 170ms ease;
}

.exam-row-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--row-accent);
    opacity: .72;
}

.exam-row-card:hover,
.exam-row-card:focus-visible {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--row-accent) 28%, #dce5ef);
    background: linear-gradient(100deg, #fff 0%, #fff 70%, color-mix(in srgb, var(--row-soft) 64%, #fff) 100%);
    box-shadow: 0 14px 30px rgba(29, 59, 94, .085);
}

.exam-row-card:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--row-accent) 17%, transparent);
    outline-offset: 2px;
}

.exam-row-card:disabled {
    cursor: not-allowed;
    opacity: .55;
    transform: none;
    box-shadow: none;
}

.exam-row-index {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border: 1px solid color-mix(in srgb, var(--row-accent) 16%, #dce5ef);
    border-radius: 14px;
    color: var(--row-accent);
    background: var(--row-soft);
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.exam-row-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.exam-row-kicker {
    overflow: hidden;
    color: color-mix(in srgb, var(--row-accent) 77%, #8795a7);
    font-size: 8.3px;
    font-weight: 820;
    letter-spacing: .067em;
    line-height: 1.25;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.exam-row-title {
    margin-top: 5px;
    color: #142a43;
    font-size: 18px;
    font-weight: 680;
    line-height: 1.1;
    letter-spacing: -.025em;
}

.exam-row-meta {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 7px;
    color: #718197;
    font-size: 9.5px;
    font-weight: 680;
}

.exam-row-meta i {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #b5c0ce;
}

.exam-row-action {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid #d5e0ed;
    border-radius: 12px;
    color: var(--row-accent);
    background: #ffffff;
    font-size: 16px;
    font-weight: 760;
    transition: color 170ms ease, background 170ms ease, border-color 170ms ease, transform 170ms ease;
}

.exam-row-card:hover .exam-row-action,
.exam-row-card:focus-visible .exam-row-action {
    color: #ffffff;
    border-color: var(--row-accent);
    background: var(--row-accent);
    transform: translateX(2px);
}

@media (max-width: 1040px) {
    .exam-overview-card {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .exam-overview-stats {
        grid-row: 2;
        grid-column: 1 / -1;
        width: 100%;
    }

    .exam-overview-stats > span {
        min-height: 58px;
    }
}

@media (max-width: 780px) {
    .exam-row-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .exam-overview-card {
        grid-template-columns: 1fr;
        gap: 15px;
        min-height: 0;
        padding: 18px;
        border-radius: 18px;
    }

    .exam-overview-main {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 13px;
    }

    .exam-overview-mark {
        width: 44px;
        height: 44px;
        border-radius: 13px;
    }

    .exam-overview-mark svg {
        width: 22px;
        height: 22px;
    }

    .exam-overview-title {
        font-size: 23px;
    }

    .exam-overview-description {
        font-size: 10.8px;
    }

    .exam-overview-stats {
        grid-row: auto;
        grid-column: auto;
    }

    .exam-overview-stats > span {
        min-width: 0;
        min-height: 55px;
        padding: 8px 6px;
    }

    .exam-overview-stats strong {
        font-size: 17px;
    }

    .exam-overview-end {
        align-items: stretch;
        min-width: 0;
    }

    .exam-overview-ready {
        display: none;
    }

    .exam-overview-action {
        width: 100%;
    }

    .exam-row-card {
        grid-template-columns: 44px minmax(0, 1fr) 34px;
        gap: 12px;
        min-height: 92px;
        padding: 13px 14px;
        border-radius: 15px;
    }

    .exam-row-index {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .exam-row-title {
        font-size: 16.5px;
    }

    .exam-row-kicker {
        font-size: 7.8px;
    }

    .exam-row-meta {
        font-size: 8.8px;
    }

    .exam-row-action {
        width: 32px;
        height: 32px;
        border-radius: 10px;
    }
}

/* ========================================================================== */
/* KONI canonical anthracite theme                                            */
/* ========================================================================== */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 38px;
    min-height: 38px;
    padding: 0 10px;
    border: 1px solid var(--color-border);
    border-radius: 11px;
    color: var(--color-text-muted);
    background: rgba(248, 250, 252, .94);
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    font-weight: 760;
    line-height: 1;
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.theme-toggle:hover {
    transform: translateY(-1px);
    color: var(--color-primary-hover);
    border-color: #c4d4ea;
    background: #fff;
    box-shadow: 0 8px 20px rgba(28, 61, 98, .08);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.theme-toggle-moon {
    display: none;
}

.theme-toggle-label {
    display: none;
}

.theme-toggle--mobile {
    justify-content: flex-start;
    width: 100%;
    min-height: 40px;
    padding-inline: 13px;
}

.theme-toggle--mobile .theme-toggle-label {
    display: inline;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --color-page: #111315;
    --color-surface-muted: #15181c;
    --color-surface: #1b1f24;
    --color-surface-raised: #20252b;
    --color-form-surface: #171b20;
    --color-surface-hover: #252b32;
    --color-border: #343b44;
    --color-border-soft: #2a3038;
    --color-text: #f3f5f7;
    --color-text-muted: #b1bac5;
    --color-text-subtle: #8994a2;
    --color-primary: #78a2f4;
    --color-primary-hover: #9bbcff;
    --color-success: #58c99f;
    --color-danger: #ff8f98;
    --color-warning: #f2b463;
    --color-focus: rgba(120, 162, 244, .34);

    --brand-700: var(--color-primary-hover);
    --brand-600: var(--color-primary);
    --brand-500: #6f98ed;
    --brand-200: #3f526c;
    --brand-100: #293746;
    --brand-50: #222a34;
    --navy-950: var(--color-text);
    --navy-900: var(--color-text);
    --text-secondary: var(--color-text-muted);
    --border: var(--color-border);
    --ink-950: var(--color-text);
    --ink-700: var(--color-text-muted);
    --ink-500: var(--color-text-subtle);
    --page: var(--color-page);
    --surface: var(--color-surface);
    --surface-muted: var(--color-surface-muted);
    --surface-soft: var(--color-surface-hover);
    --ink: var(--color-text);
    --muted: var(--color-text-muted);
    --line: var(--color-border);
    --blue: var(--color-primary);
    --blue-dark: var(--color-primary-hover);
    --blue-soft: #243145;
    --green: var(--color-success);
    --red: var(--color-danger);
    --orange: var(--color-warning);
    --purple: #b5a7ff;
    --shadow: 0 24px 56px rgba(0, 0, 0, .34);
    --shadow-card: 0 18px 42px rgba(0, 0, 0, .26);
    --shadow-soft: 0 12px 28px rgba(0, 0, 0, .22);

    --dark-page: var(--color-page);
    --dark-page-raised: var(--color-surface-muted);
    --dark-surface: var(--color-surface);
    --dark-surface-raised: var(--color-surface-raised);
    --dark-surface-hover: var(--color-surface-hover);
    --dark-line: var(--color-border);
    --dark-line-strong: #46515d;
    --dark-text: var(--color-text);
    --dark-text-soft: var(--color-text-muted);
    --dark-muted: var(--color-text-muted);
    --dark-muted-2: var(--color-text-subtle);
    --dark-blue: var(--color-primary);
    --dark-blue-strong: var(--color-primary-hover);
    --dark-blue-soft: rgba(120, 162, 244, .14);
}

html[data-theme="dark"],
html[data-theme="dark"] body {
    background-color: var(--color-page);
}

html[data-theme="dark"] body {
    color: var(--color-text-muted);
    background-image:
        radial-gradient(circle at 14% -10%, rgba(148, 163, 184, .055), transparent 31%),
        radial-gradient(circle at 92% -12%, rgba(100, 116, 139, .045), transparent 29%);
}

html[data-theme="dark"] main {
    background: transparent;
}

html[data-theme="dark"] ::selection {
    color: #ffffff;
    background: #416fd0;
}

html[data-theme="dark"] :is(a, button, input, select, textarea):focus-visible {
    outline-color: var(--color-focus);
}

html[data-theme="dark"] .site-header,
html[data-theme="dark"] .site-header.is-scrolled {
    border-bottom-color: var(--color-border-soft);
    background: rgba(17, 19, 21, .96);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .22);
    backdrop-filter: blur(16px) saturate(112%);
}

html[data-theme="dark"] .brand,
html[data-theme="dark"] .brand-title,
html[data-theme="dark"] .footer-brand-lockup strong {
    color: var(--color-primary);
}

html[data-theme="dark"] .brand-divider,
html[data-theme="dark"] .footer-brand-divider {
    background: #4a5561;
}

html[data-theme="dark"] .brand-tagline,
html[data-theme="dark"] .footer-brand-tagline {
    color: #c7d0da;
}

html[data-theme="dark"] .nav-links {
    border-color: var(--color-border-soft);
    background: rgba(27, 31, 36, .92);
}

html[data-theme="dark"] .nav-links a,
html[data-theme="dark"] .nav-login-link,
html[data-theme="dark"] .mobile-nav-panel a {
    color: var(--color-text-muted);
}

html[data-theme="dark"] .nav-links a:hover,
html[data-theme="dark"] .nav-links a.is-active,
html[data-theme="dark"] .nav-login-link:hover,
html[data-theme="dark"] .mobile-nav-panel a:hover {
    color: var(--color-text);
    background: var(--color-surface-hover);
}

html[data-theme="dark"] .nav-links a.is-active::after {
    background: var(--color-primary);
}

html[data-theme="dark"] :is(.theme-toggle, .mobile-nav-toggle, .nav-profile-link, .nav-admin-link) {
    color: #ccd4dc;
    border-color: var(--color-border);
    background: var(--color-surface-raised);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}

html[data-theme="dark"] :is(.theme-toggle, .mobile-nav-toggle, .nav-profile-link, .nav-admin-link):hover {
    color: var(--color-text);
    border-color: #4b5b6d;
    background: var(--color-surface-hover);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .22);
}

html[data-theme="dark"] .theme-toggle-sun {
    display: none;
}

html[data-theme="dark"] .theme-toggle-moon {
    display: block;
}

html[data-theme="dark"] .nav-profile-link > span {
    color: #e5efff;
    background: #355f9c;
}

html[data-theme="dark"] .mobile-nav-panel {
    border-color: var(--color-border);
    background: rgba(21, 24, 28, .98);
    box-shadow: 0 20px 42px rgba(0, 0, 0, .36);
}

html[data-theme="dark"] .mobile-nav-panel a {
    border-color: var(--color-border-soft);
    background: var(--color-surface);
}

html[data-theme="dark"] .site-footer {
    color: var(--color-text-muted);
    border-top-color: var(--color-border-soft);
    background: var(--color-surface-muted);
}

html[data-theme="dark"] .footer-brand p,
html[data-theme="dark"] .footer-links a,
html[data-theme="dark"] .footer-cookie-button {
    color: var(--color-text-muted);
}

html[data-theme="dark"] .footer-links strong {
    color: var(--color-text);
}

html[data-theme="dark"] .footer-links a:hover,
html[data-theme="dark"] .footer-cookie-button:hover {
    color: var(--color-primary-hover);
}

html[data-theme="dark"] .button {
    color: #e2e8ef;
    border-color: var(--color-border);
    background: var(--color-surface-raised);
}

html[data-theme="dark"] .button.primary {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(135deg, #386edb, #6293f4);
    box-shadow: 0 14px 30px rgba(45, 101, 205, .24);
}

html[data-theme="dark"] :is(.button.secondary, .button.light, .button.ghost) {
    color: #d5e2f7;
    border-color: #46515d;
    background: var(--color-surface-raised);
}

html[data-theme="dark"] :is(.button.secondary, .button.light, .button.ghost):hover {
    color: var(--color-text);
    border-color: #53677d;
    background: var(--color-surface-hover);
}

html[data-theme="dark"] :is(input, select, textarea) {
    color: var(--color-text);
    border-color: #46515d;
    background: var(--color-form-surface);
}

html[data-theme="dark"] :is(input, textarea)::placeholder {
    color: var(--color-text-subtle);
}

html[data-theme="dark"] :is(input, select, textarea):focus {
    border-color: #6897ef;
    box-shadow: 0 0 0 4px rgba(104, 151, 239, .14);
}

html[data-theme="dark"] :is(input, select, textarea):disabled,
html[data-theme="dark"] :is(input, select, textarea)[readonly] {
    color: #7f8a96;
    border-color: var(--color-border-soft);
    background: #14171b;
}

html[data-theme="dark"] option {
    color: var(--color-text);
    background: var(--color-form-surface);
}

html[data-theme="dark"] :is(input[type="checkbox"], input[type="radio"]) {
    accent-color: var(--color-primary);
}

html[data-theme="dark"] .notice {
    color: #f1cf8c;
    border-color: #67522d;
    background: #2b2519;
}

html[data-theme="dark"] :is(.field-error, .danger) {
    color: var(--color-danger);
}

html[data-theme="dark"] :is(
    .page-home,
    .page-exams,
    .page-traffic-signs,
    .page-question-library,
    .page-guide,
    .page-lessons,
    .page-auth,
    .page-account,
    .page-exam-flow,
    .page-admin,
    .page-trust,
    .page-contact
) {
    color: var(--color-text-muted);
    background-color: var(--color-page);
}

html[data-theme="dark"] body :is(
    .home-page,
    .exam-hub-page,
    .general-exams-page,
    .category-tests-section,
    .traffic-hub-page,
    .traffic-sign-deck-page,
    .question-library-section,
    .question-detail-page,
    .lesson-library,
    .lesson-category-page,
    .lesson-reader-page,
    .guide-index-page,
    .guide-detail-page,
    .auth-shell,
    .account-workspace,
    .profile-dashboard,
    .exam-shell,
    .exam-result-v2,
    .trust-section,
    .contact-section,
    .admin-seo-page,
    .admin-seo-edit-page
) {
    color: var(--color-text-muted);
    background: var(--color-page);
}

html[data-theme="dark"] body :is(
    .page-hero,
    .home-hero,
    .exam-hub-intro,
    .general-exams-intro,
    .traffic-hub-intro,
    .category-tests-hero,
    .question-library-hero,
    .lesson-category-header,
    .lesson-reader-header,
    .guide-hero,
    .guide-article-hero,
    .account-workspace-header,
    .exam-result-v2-hero
) {
    border-color: var(--color-border-soft);
    background:
        radial-gradient(circle at 84% -8%, rgba(120, 162, 244, .085), transparent 32%),
        linear-gradient(180deg, var(--color-surface) 0%, var(--color-surface-muted) 100%);
}

html[data-theme="dark"] body :is(h1, h2, h3, h4, h5, h6, strong, b) {
    color: var(--color-text);
}

html[data-theme="dark"] body :is(p, li, small, .muted) {
    color: var(--color-text-muted);
}

html[data-theme="dark"] body :is(
    .eyebrow,
    .soft-label,
    .home-eyebrow,
    .home-section-eyebrow,
    .home-section-label,
    .hub-page-kicker,
    .category-tests-kicker,
    .lesson-reader-kicker,
    .lesson-category-section-kicker,
    .lesson-library-rail-label,
    .guide-section-label,
    .guide-topic-nav-kicker,
    .guide-route-eyebrow,
    .profile-kicker,
    .exam-result-v2-kicker,
    .exam-overview-kicker,
    .exam-row-kicker
) {
    color: var(--color-primary);
}

html[data-theme="dark"] body :is(
    .home-study-main,
    .home-option-card,
    .home-feature-card,
    .home-topic-card,
    .home-benefit,
    .home-final-panel,
    .home-exam-blueprint,
    .home-sign-deck-card,
    .home-proof-list,
    .exam-overview-card,
    .exam-row-card,
    .exam-hub-card,
    .category-hero-panel-card,
    .traffic-hub-toolbar,
    .traffic-hub-card,
    .traffic-hub-empty,
    .traffic-hub-intro-stats,
    .traffic-sign-sidebar-card,
    .traffic-sign-card,
    .traffic-sign-deck-complete,
    .question-library-card,
    .question-detail-card,
    .question-detail-rail-card,
    .question-related-grid a,
    .lesson-library-rail,
    .lesson-module,
    .lesson-guide-list,
    .lesson-guide-row,
    .lesson-question-library-card,
    .lesson-library-cta,
    .lesson-category-row,
    .lesson-topic-nav,
    .lesson-page-toc,
    .lesson-category-switcher,
    .lesson-reader-article,
    .lesson-reader-sidebar,
    .lesson-reader-note,
    .guide-route-card,
    .guide-pathfinder,
    .guide-pathfinder-grid > a,
    .guide-process-phase,
    .guide-directory-card,
    .guide-index-note,
    .guide-topic-nav,
    .guide-toc,
    .guide-facts,
    .guide-koni-box,
    .guide-related-grid a,
    .guide-sources,
    .guide-warning,
    .legal-copy,
    .trust-facts > div,
    .trust-copy,
    .trust-sources,
    .trust-sidebar-card,
    .trust-note,
    .trust-feedback,
    .contact-direct-card,
    .contact-form-card,
    .contact-guidance section,
    .auth-card,
    .profile-metric-card,
    .profile-card,
    .profile-shortcut-card,
    .profile-performance-item,
    .profile-recent-list > a,
    .profile-package-list > a,
    .profile-empty-state,
    .profile-active-exam,
    .profile-recommendation-card,
    .profile-question-summary,
    .history-filter-panel,
    .history-results,
    .history-session-card,
    .progress-score-card,
    .progress-signal-card,
    .progress-trend-card,
    .progress-distribution-card,
    .progress-categories-card,
    .progress-category-row,
    .progress-signal-list article,
    .progress-empty-panel,
    .repeat-question-card,
    .repeat-action-card,
    .saved-question-card,
    .saved-batch-bar,
    .result-summary-card,
    .result-breakdown-card,
    .result-review-card,
    .result-session-facts > div,
    .result-category-item,
    .question-card,
    .exam-side-dashboard,
    .side-panel,
    .palette-panel,
    .timer-panel,
    .exam-progress-panel,
    .exam-mobile-status,
    .exam-result-v2-panel,
    .exam-result-v2-score,
    .exam-result-v2-category,
    .exam-result-v2-answer,
    .exam-result-v2-explanation,
    .exam-result-v2-success-card,
    .exam-result-v2-review-card,
    .cookie-consent,
    .cookie-modal-card,
    .exam-exit-modal-card,
    .admin-seo-search,
    .admin-seo-table-wrap,
    .admin-seo-panel,
    .admin-seo-edit-form,
    .admin-seo-form-rail,
    .admin-question-preview,
    .admin-serp-preview,
    .admin-seo-publish-box
) {
    color: var(--color-text-muted);
    border-color: var(--color-border);
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
}

html[data-theme="dark"] body :is(
    .home-feature-card,
    .exam-overview-card,
    .question-library-hero,
    .guide-hero,
    .guide-article-hero,
    .lesson-reader-header,
    .category-tests-hero
) {
    background:
        radial-gradient(circle at 90% 4%, rgba(120, 162, 244, .10), transparent 32%),
        linear-gradient(180deg, var(--color-surface-raised) 0%, var(--color-surface) 100%);
}

html[data-theme="dark"] body :is(
    .home-option-card,
    .home-topic-card,
    .home-benefit,
    .exam-row-card,
    .exam-hub-card,
    .traffic-hub-card,
    .question-library-card,
    .lesson-module,
    .lesson-guide-row,
    .guide-directory-card,
    .guide-pathfinder-grid > a,
    .profile-shortcut-card,
    .profile-performance-item,
    .profile-recent-list > a,
    .profile-package-list > a,
    .history-session-card,
    .progress-category-row,
    .repeat-question-card,
    .saved-question-card,
    .question-related-grid a,
    .guide-related-grid a,
    .guide-sources a,
    .trust-source-list a
):hover {
    color: var(--color-text);
    border-color: #465667;
    background: var(--color-surface-hover);
    box-shadow: var(--shadow-card);
}

html[data-theme="dark"] body :is(
    .question-library-stats span,
    .question-library-filters a,
    .category-tests-meta span,
    .exam-hub-section-count,
    .traffic-hub-section-count,
    .general-exams-summary,
    .exam-overview-stats,
    .exam-package-badge,
    .exam-package-meta > span,
    .exam-row-action,
    .exam-overview-action,
    .profile-question-summary,
    .question-detail-meta span,
    .question-detail-tag-list span,
    .traffic-hub-card-progress,
    .traffic-hub-card-count,
    .traffic-hub-toolbar-count,
    .guide-route-count,
    .guide-process-summary span,
    .lesson-category-count,
    .cookie-required,
    .result-status-pill,
    .admin-status-badge
) {
    color: #c7d1dc;
    border-color: #46515d;
    background: var(--color-surface-raised);
}

html[data-theme="dark"] body :is(
    .home-proof-icon,
    .home-card-icon,
    .home-topic-icon,
    .home-study-number,
    .home-study-badge,
    .exam-overview-mark,
    .exam-row-index,
    .lesson-module-index,
    .lesson-module-icon,
    .lesson-guide-icon,
    .lesson-category-index,
    .lesson-category-arrow,
    .guide-directory-index,
    .guide-directory-arrow,
    .guide-pathfinder-icon,
    .guide-pathfinder-arrow,
    .profile-metric-icon,
    .profile-shortcut-icon,
    .repeat-card-index,
    .result-question-index,
    .exam-result-v2-metric-icon,
    .exam-result-v2-question-number,
    .option-key,
    .question-detail-option-key
) {
    color: var(--color-primary-hover);
    border-color: #405678;
    background: #263141;
}

html[data-theme="dark"] body :is(
    .home-benefits,
    .home-topics,
    .home-study,
    .home-final,
    .question-related-section,
    .lesson-reader-footer,
    .guide-related,
    .guide-sources,
    .history-filter-advanced,
    .palette-legend,
    .cookie-modal-head,
    .cookie-option,
    .cookie-modal-actions,
    .admin-seo-panel-heading,
    .question-detail-option-line,
    .guide-route-card-head,
    .guide-topic-nav-head,
    .lesson-topic-nav-head,
    .profile-card-head
) {
    border-color: var(--color-border);
}

html[data-theme="dark"] body :is(
    .lesson-topic-nav-list a,
    .lesson-page-toc a,
    .lesson-category-switcher a,
    .guide-topic-nav-list a,
    .guide-toc a,
    .profile-nav a,
    .admin-seo-statuses a,
    .traffic-hub-filters button,
    .question-library-filters a
) {
    color: var(--color-text-muted);
    border-color: transparent;
    background: transparent;
}

html[data-theme="dark"] body :is(
    .lesson-topic-nav-list a:hover,
    .lesson-topic-nav-list a.is-active,
    .lesson-page-toc a:hover,
    .lesson-category-switcher a:hover,
    .lesson-category-switcher a.is-active,
    .guide-topic-nav-list a:hover,
    .guide-topic-nav-list a.is-active,
    .guide-toc a:hover,
    .profile-nav a:hover,
    .profile-nav a.is-active,
    .admin-seo-statuses a:hover,
    .admin-seo-statuses a.is-active,
    .traffic-hub-filters button:hover,
    .traffic-hub-filters button.is-active,
    .question-library-filters a:hover,
    .question-library-filters a.is-active
) {
    color: var(--color-text);
    border-color: #43536a;
    background: var(--color-surface-hover);
}

html[data-theme="dark"] body :is(
    .question-detail-option,
    .answer-option,
    .locked-option,
    .history-detail-option,
    .exam-result-v2-answer,
    .admin-question-options > div,
    .admin-option-explanation-list label
) {
    color: #dce2e8;
    border-color: var(--color-border);
    background: var(--color-surface-raised);
}

html[data-theme="dark"] body :is(.answer-option:hover, .question-detail-option:hover) {
    color: var(--color-text);
    border-color: #53677d;
    background: var(--color-surface-hover);
}

html[data-theme="dark"] body :is(.answer-option.is-selected, .history-detail-option.is-selected) {
    color: #e7f0ff;
    border-color: #5b88dc;
    background: #263349;
}

html[data-theme="dark"] body :is(
    .answer-option.is-correct,
    .question-detail-option.is-correct,
    .history-detail-option.is-correct,
    .exam-result-v2-answer.is-correct,
    .admin-question-options > div.is-correct,
    .admin-option-explanation-list label.is-correct
) {
    color: #c6efde;
    border-color: #3c765f;
    background: #1d3028;
}

html[data-theme="dark"] body :is(
    .answer-option.is-wrong,
    .question-detail-option.is-wrong,
    .history-detail-option.is-wrong,
    .exam-result-v2-answer.is-wrong,
    .exam-result-v2-answer.is-user
) {
    color: #ffc9cf;
    border-color: #80505a;
    background: #372329;
}

html[data-theme="dark"] .result-review-card.is-correct {
    border-color: #3c765f;
    background: linear-gradient(90deg, rgba(58, 134, 104, .18), var(--color-surface) 22%);
}

html[data-theme="dark"] .result-review-card.is-wrong {
    border-color: #80505a;
    background: linear-gradient(90deg, rgba(132, 70, 81, .18), var(--color-surface) 22%);
}

html[data-theme="dark"] .result-review-card.is-empty {
    border-color: #46515d;
    background: linear-gradient(90deg, rgba(100, 116, 139, .16), var(--color-surface) 22%);
}

html[data-theme="dark"] :is(.result-status-pill.is-correct, .exam-result-v2-status.is-success, .answer-badge-correct) {
    color: #bff0db;
    background: #244838;
}

html[data-theme="dark"] :is(.result-status-pill.is-wrong, .answer-badge-wrong) {
    color: #ffc3cb;
    background: #4a2b32;
}

html[data-theme="dark"] :is(.result-status-pill.is-empty, .exam-result-v2-status.is-progress) {
    color: #c9d2dc;
    background: #333b45;
}

html[data-theme="dark"] .guide-warning,
html[data-theme="dark"] .contact-guidance section:nth-child(2) {
    color: #ecd59f;
    border-color: #665532;
    background: #2b261b;
}

html[data-theme="dark"] .contact-guidance section:nth-child(3) {
    color: #bfe8d7;
    border-color: #356756;
    background: #1d2b26;
}

html[data-theme="dark"] :is(.profile-metric-icon--green, .legend-correct, .stat-correct) {
    color: #abebd1;
    border-color: #356f5a;
    background: #203e33;
}

html[data-theme="dark"] :is(.profile-metric-icon--orange, .legend-skipped, .stat-empty) {
    color: #f3c98f;
    border-color: #705330;
    background: #3d311f;
}

html[data-theme="dark"] :is(.profile-metric-icon--purple) {
    color: #d6c9ff;
    border-color: #5b4a7d;
    background: #332a45;
}

html[data-theme="dark"] :is(.legend-wrong, .stat-wrong) {
    color: #ffc4cc;
    border-color: #704852;
    background: #3a252b;
}

html[data-theme="dark"] :is(.progress-track, .profile-performance-track, .profile-package-track, .history-result-track, .traffic-hub-card-track, .traffic-sign-deck-header-progress > div, .exam-result-v2-progress, .progress-category-track, .profile-active-progress) {
    background: #303741;
}

html[data-theme="dark"] :is(.progress-track span, .profile-performance-track span, .profile-package-track i, .history-result-track span, .traffic-hub-card-track i, .traffic-sign-deck-header-progress i, .exam-result-v2-progress i, .progress-category-track span, .profile-active-progress span) {
    background: linear-gradient(90deg, #60a5fa, #2563eb);
}

html[data-theme="dark"] .progress-trend-bar {
    background: #303741;
}

html[data-theme="dark"] :is(.progress-chart-wrap, .progress-donut, .progress-score-ring, .exam-result-v2-ring) {
    border-color: var(--color-border);
    background-color: var(--color-surface-raised);
}

html[data-theme="dark"] .exam-side-heading {
    border-bottom-color: var(--color-border);
    background:
        radial-gradient(circle at 92% 8%, rgba(120, 162, 244, .10), transparent 34%),
        linear-gradient(135deg, var(--color-surface-raised), var(--color-surface));
}

html[data-theme="dark"] .timer {
    color: var(--color-primary-hover);
}

html[data-theme="dark"] .stat-panel {
    box-shadow: none;
}

html[data-theme="dark"] .stat-panel span,
html[data-theme="dark"] .palette-dot {
    color: #c7d1dc;
    border-color: var(--color-border);
    background: var(--color-surface-raised);
}

html[data-theme="dark"] :is(.palette-dot.palette-current, .palette-dot.current) {
    color: #ffffff;
    border-color: #6c96ed;
    background: #4777d3;
}

html[data-theme="dark"] :is(.palette-dot.palette-correct, .palette-dot.done) {
    color: #bcebd7;
    border-color: #3c765f;
    background: #1d3028;
}

html[data-theme="dark"] .palette-dot.palette-wrong {
    color: #ffc3cb;
    border-color: #80505a;
    background: #372329;
}

html[data-theme="dark"] :is(.palette-dot.palette-skipped, .palette-dot.empty) {
    color: #c9d2dc;
    border-color: #4a5561;
    background: #2f363f;
}

html[data-theme="dark"] .palette-dot.is-current-position:not(.palette-current) {
    box-shadow: 0 0 0 2px var(--color-surface), 0 0 0 4px rgba(120, 162, 244, .45);
}

html[data-theme="dark"] :is(
    table,
    th,
    td,
    .admin-seo-table th,
    .admin-seo-table td
) {
    border-color: var(--color-border);
}

html[data-theme="dark"] :is(th, .admin-seo-table th) {
    color: #c2ccd6;
    background: var(--color-surface-raised);
}

html[data-theme="dark"] :is(td, .admin-seo-table td) {
    color: var(--color-text-muted);
    background: var(--color-surface);
}

html[data-theme="dark"] :is(tr:hover td, .admin-seo-table tr:hover td) {
    background: var(--color-surface-hover);
}

html[data-theme="dark"] .admin-seo-statuses a.is-active {
    color: #ffffff;
    border-color: #4d7be0;
    background: #315fbe;
}

html[data-theme="dark"] .admin-status-badge.status-approved {
    color: #aee9d0;
    background: #244838;
}

html[data-theme="dark"] .admin-status-badge.status-needs_review {
    color: #eac989;
    background: #45371f;
}

html[data-theme="dark"] .admin-status-badge.status-ai_generated {
    color: #d2c3f3;
    background: #3a2d53;
}

html[data-theme="dark"] .admin-seo-table td:last-child a,
html[data-theme="dark"] :is(.guide-text-link, .progress-inline-link, .trust-source-list a, .guide-sources a, .footer-cookie-button) {
    color: var(--color-primary-hover);
}

html[data-theme="dark"] .admin-seo-warning {
    color: #eac989;
    border-color: #604a25;
    background: #2c2519;
}

html[data-theme="dark"] :is(.cookie-consent, .cookie-modal-card, .exam-exit-modal-card) {
    border-color: #46515d;
    background: rgba(27, 31, 36, .98);
    box-shadow: 0 24px 64px rgba(0, 0, 0, .44);
}

html[data-theme="dark"] :is(.cookie-modal-backdrop, .exam-exit-modal-backdrop) {
    background: rgba(5, 7, 10, .78);
}

html[data-theme="dark"] .cookie-modal-head button {
    color: #d3dce6;
    border-color: var(--color-border);
    background: var(--color-surface-raised);
}

html[data-theme="dark"] :is(
    .question-media,
    .question-media-wrap,
    .option-media,
    .lesson-reader-figure,
    .question-detail-media,
    .question-detail-media img,
    .question-detail-media video,
    .traffic-sign-card-image-wrap,
    .admin-question-preview > img
) {
    border-color: var(--color-border);
    background: #eef2f7;
    color: #111827;
}

html[data-theme="dark"] :is(img, picture, video, svg) {
    filter: none;
}

html[data-theme="dark"] .traffic-sign-action,
html[data-theme="dark"] .traffic-sign-undo {
    border-color: #46515d;
    box-shadow: none;
}

html[data-theme="dark"] .traffic-sign-action--review {
    color: #f2bdc4;
    background: #34242a;
}

html[data-theme="dark"] .traffic-sign-action--learned {
    color: #bcebd7;
    background: #20352d;
}

html[data-theme="dark"] .traffic-sign-undo {
    color: #d0d7de;
    background: var(--color-surface-raised);
}

html[data-theme="dark"] .traffic-sign-deck-stage,
html[data-theme="dark"] .contact-guidance {
    background: transparent;
    box-shadow: none;
}

html[data-theme="dark"] .lesson-reader-back,
html[data-theme="dark"] .lesson-reader-next,
html[data-theme="dark"] .traffic-signs-back-link,
html[data-theme="dark"] .category-back-link,
html[data-theme="dark"] .general-exams-back {
    color: var(--color-text-muted);
    border-color: var(--color-border);
    background: var(--color-surface-raised);
}

html[data-theme="dark"] :is(.lesson-reader-back, .lesson-reader-next, .traffic-signs-back-link, .category-back-link, .general-exams-back):hover {
    color: var(--color-text);
    border-color: #53677d;
    background: var(--color-surface-hover);
}

/* Specificity bridges for legacy component rules that predate the token layer. */
html[data-theme="dark"] .home-page .home-eyebrow,
html[data-theme="dark"] .home-page .home-eyebrow > span,
html[data-theme="dark"] .traffic-hub-intro .hub-page-kicker,
html[data-theme="dark"] .lesson-reader-breadcrumb,
html[data-theme="dark"] .lesson-reader-breadcrumb a,
html[data-theme="dark"] .guide-breadcrumb,
html[data-theme="dark"] .guide-breadcrumb a,
html[data-theme="dark"] .guide-article-meta span,
html[data-theme="dark"] .guide-hero-meta span {
    color: var(--color-primary-hover);
    border-color: #405678;
    background: #263141;
}

html[data-theme="dark"] .question-card .explanation-box,
html[data-theme="dark"] .result-review-card .explanation-box,
html[data-theme="dark"] .result-answer-meta,
html[data-theme="dark"] .result-review-card .result-answer-meta,
html[data-theme="dark"] .question-detail-explanation,
html[data-theme="dark"] .question-detail-source,
html[data-theme="dark"] .exam-result-v2-explanation {
    color: var(--color-text-muted);
    border-color: var(--color-border);
    background: var(--color-surface-raised);
}

html[data-theme="dark"] .question-card .explanation-box strong,
html[data-theme="dark"] .result-review-card .explanation-box strong,
html[data-theme="dark"] .result-answer-meta b,
html[data-theme="dark"] .question-detail-explanation h2,
html[data-theme="dark"] .question-detail-source strong {
    color: var(--color-text);
}

html[data-theme="dark"] .question-card .explanation-box p,
html[data-theme="dark"] .result-review-card .explanation-box p,
html[data-theme="dark"] .result-answer-meta small,
html[data-theme="dark"] .question-detail-explanation p,
html[data-theme="dark"] .question-detail-source p {
    color: var(--color-text-muted);
}

html[data-theme="dark"] .exam-row-card .exam-row-title,
html[data-theme="dark"] .lesson-reader-page .lesson-topic-nav-head strong,
html[data-theme="dark"] .lesson-reader-page .lesson-page-toc > strong,
html[data-theme="dark"] .lesson-reader-page .lesson-category-switcher > strong,
html[data-theme="dark"] .guide-detail-page .guide-topic-nav-head strong,
html[data-theme="dark"] .guide-detail-page .guide-toc > strong,
html[data-theme="dark"] .guide-detail-page .guide-facts > strong,
html[data-theme="dark"] .guide-detail-page .guide-koni-box > strong,
html[data-theme="dark"] .guide-index-page .guide-pathfinder-grid > a strong,
html[data-theme="dark"] .guide-index-page .guide-directory-card strong {
    color: var(--color-text);
}

html[data-theme="dark"] .exam-row-card .exam-row-meta,
html[data-theme="dark"] .lesson-reader-page .lesson-topic-nav-head small,
html[data-theme="dark"] .guide-detail-page .guide-topic-nav-list a,
html[data-theme="dark"] .guide-detail-page .guide-toc a,
html[data-theme="dark"] .guide-detail-page .guide-facts li,
html[data-theme="dark"] .guide-detail-page .guide-koni-box p,
html[data-theme="dark"] .guide-index-page .guide-directory-card p,
html[data-theme="dark"] .guide-index-page .guide-pathfinder-grid > a p {
    color: var(--color-text-muted);
}

html[data-theme="dark"] .exam-side-dashboard .exam-side-heading-icon,
html[data-theme="dark"] .exam-side-dashboard .stat-panel span,
html[data-theme="dark"] .guide-index-page .guide-pathfinder-grid > a .guide-pathfinder-icon,
html[data-theme="dark"] .guide-index-page .guide-pathfinder-grid > a .guide-pathfinder-arrow,
html[data-theme="dark"] .guide-index-page .guide-directory-card .guide-directory-index,
html[data-theme="dark"] .guide-index-page .guide-directory-card .guide-directory-arrow,
html[data-theme="dark"] .history-session-arrow,
html[data-theme="dark"] .progress-category-action {
    color: var(--color-primary-hover);
    border-color: #405678;
    background: #263141;
}

html[data-theme="dark"] .exam-side-dashboard .stat-panel .stat-correct {
    color: #abebd1;
    border-color: #356f5a;
    background: #203e33;
}

html[data-theme="dark"] .exam-side-dashboard .stat-panel .stat-wrong {
    color: #ffc4cc;
    border-color: #704852;
    background: #3a252b;
}

html[data-theme="dark"] .exam-side-dashboard .stat-panel .stat-empty,
html[data-theme="dark"] .exam-side-dashboard .stat-panel .stat-answered {
    color: #c9d2dc;
    border-color: #4a5561;
    background: #2f363f;
}

html[data-theme="dark"] .guide-index-page .guide-directory {
    background:
        radial-gradient(circle at 88% 0%, rgba(120, 162, 244, .07), transparent 30%),
        var(--color-page);
}

html[data-theme="dark"] .guide-index-page .guide-directory-card,
html[data-theme="dark"] .guide-index-page .guide-pathfinder-grid > a {
    border-color: var(--color-border);
    background: var(--color-surface);
}

html[data-theme="dark"] .profile-dashboard .profile-nav,
html[data-theme="dark"] .account-workspace-header .profile-nav,
html[data-theme="dark"] .saved-select-all-control {
    color: var(--color-text-muted);
    border-color: var(--color-border);
    background: var(--color-surface-raised);
}

html[data-theme="dark"] .history-score-badge,
html[data-theme="dark"] .repeat-wrong-badge,
html[data-theme="dark"] .saved-collection-badge,
html[data-theme="dark"] .result-summary-topline .is-passed,
html[data-theme="dark"] .result-summary-topline .is-failed {
    color: #d7e5ff;
    border-color: #405678;
    background: #263141;
}

html[data-theme="dark"] .traffic-hub-intro-stats span,
html[data-theme="dark"] .traffic-hub-intro-stats strong {
    color: var(--color-text);
}

html[data-theme="dark"] .lesson-reader-page .lesson-topic-nav-list a > span,
html[data-theme="dark"] .guide-detail-page .guide-topic-nav-list a > span,
html[data-theme="dark"] .guide-detail-page .guide-topic-nav-list a.is-active > span {
    color: var(--color-primary-hover);
    background: #263141;
}

html[data-theme="dark"] .guide-detail-page .guide-sources a,
html[data-theme="dark"] .guide-detail-page .guide-sources a:visited,
html[data-theme="dark"] .trust-source-list a,
html[data-theme="dark"] .trust-source-list a:visited {
    color: #d7e5ff;
    border-color: var(--color-border);
    background: var(--color-surface-raised);
}

html[data-theme="dark"] .guide-detail-page .guide-sources a:hover,
html[data-theme="dark"] .trust-source-list a:hover {
    color: var(--color-text);
    border-color: #53677d;
    background: var(--color-surface-hover);
}

html[data-theme="dark"] .result-review-card.is-wrong .history-detail-option.is-selected:not(.is-correct) {
    color: #ffc9cf;
    border-color: #80505a;
    background: #372329;
}

html[data-theme="dark"] .result-review-card.is-wrong .history-detail-option.is-selected:not(.is-correct) span {
    color: #ffd7dc;
    background: #61343c;
}

html[data-theme="dark"] .exam-result-v2-question-number,
html[data-theme="dark"] .admin-seo-statuses a span {
    color: #d7e5ff;
    border-color: #405678;
    background: #263141;
}

html[data-theme="dark"] .guide-route-list li > span,
html[data-theme="dark"] .guide-index-page .guide-route-list li:last-child > span,
html[data-theme="dark"] .exam-result-v2-review-card .exam-result-v2-question-number {
    color: #d7e5ff;
    border-color: #405678;
    background: #263141;
    background-color: #263141;
}

html[data-theme="dark"] .auth-form label,
html[data-theme="dark"] .admin-seo-panel label,
html[data-theme="dark"] .admin-seo-panel label > span,
html[data-theme="dark"] .admin-seo-panel label > span small {
    color: var(--color-text-muted);
}

html[data-theme="dark"] .admin-seo-table td:first-child strong,
html[data-theme="dark"] .admin-seo-panel label > span strong {
    color: var(--color-text);
}

@media (max-width: 900px) {
    .theme-toggle:not(.theme-toggle--mobile) {
        display: none;
    }
}

@media (max-width: 680px) {
    html[data-theme="dark"] .exam-side-dashboard {
        background: transparent;
        box-shadow: none;
    }

    html[data-theme="dark"] :is(.guide-sources, .guide-related-grid) {
        background: transparent;
        box-shadow: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .theme-toggle,
    html[data-theme="dark"] * {
        scroll-behavior: auto;
    }
}

/* Dark theme regression repair v68.
   Restores missed dark surfaces and contrast without changing layout or light mode. */
html[data-theme="dark"] .home-page,
html[data-theme="dark"] .home-study,
html[data-theme="dark"] .home-topics,
html[data-theme="dark"] .home-final {
    background: var(--color-page);
}

html[data-theme="dark"] .home-benefits {
    border-color: var(--color-border-soft);
    background:
        radial-gradient(circle at 86% 8%, rgba(120, 162, 244, .055), transparent 30%),
        linear-gradient(180deg, var(--color-surface-muted), var(--color-page));
}

html[data-theme="dark"] :is(
    .home-section-heading h2,
    .home-heading-row h2,
    .home-topic-card strong,
    .home-option-card strong,
    .home-benefit h3
) {
    color: var(--color-text);
}

html[data-theme="dark"] :is(
    .home-section-heading > p:last-child:not(.home-section-label),
    .home-heading-row > p,
    .home-topic-card small,
    .home-option-card small,
    .home-benefit p
) {
    color: var(--color-text-muted);
}

html[data-theme="dark"] .home-benefit-grid {
    border-color: var(--color-border);
    background: var(--color-border);
    box-shadow: var(--shadow-soft);
}

html[data-theme="dark"] :is(.home-secondary-action, .home-panel-action) {
    color: #d9e6fb;
    border-color: #46515d;
    background: var(--color-surface-raised);
    box-shadow: none;
}

html[data-theme="dark"] :is(.home-secondary-action, .home-panel-action):hover {
    color: var(--color-text);
    border-color: #5d7390;
    background: var(--color-surface-hover);
}

html[data-theme="dark"] .home-final-action {
    color: #e8effc;
    border-color: #52637a;
    background: #27313e;
    box-shadow: 0 12px 26px rgba(0, 0, 0, .24);
}

html[data-theme="dark"] .home-final-action:hover {
    color: #fff;
    border-color: #6683af;
    background: #303c4c;
}

html[data-theme="dark"] .exam-overview-title {
    color: var(--color-text);
}

html[data-theme="dark"] .exam-overview-description,
html[data-theme="dark"] .exam-overview-ready,
html[data-theme="dark"] .exam-hub-card-copy p,
html[data-theme="dark"] .exam-hub-card-foot > span {
    color: var(--color-text-muted);
}

html[data-theme="dark"] .exam-overview-stats {
    border-color: var(--color-border);
    background: var(--color-surface-raised);
}

html[data-theme="dark"] .exam-overview-stats > span + span::before {
    background: var(--color-border);
}

html[data-theme="dark"] .exam-overview-stats strong {
    color: var(--color-primary-hover);
}

html[data-theme="dark"] .exam-overview-stats small {
    color: var(--color-text-subtle);
}

html[data-theme="dark"] .exam-overview-action {
    color: #dbe8fb;
    border-color: #4a5a6d;
    background: var(--color-surface-raised);
    box-shadow: none;
}

html[data-theme="dark"] .exam-overview-card:hover .exam-overview-action,
html[data-theme="dark"] .exam-overview-card:focus-visible .exam-overview-action {
    color: #fff;
    border-color: #5d8fe8;
    background: #3f73d1;
}

html[data-theme="dark"] .exam-hub-card-copy h3 {
    color: var(--color-text);
}

html[data-theme="dark"] .exam-hub-card-topline > span {
    color: color-mix(in srgb, var(--card-accent) 68%, #d9e2ec);
    border-color: color-mix(in srgb, var(--card-accent) 28%, var(--color-border));
    background: color-mix(in srgb, var(--card-accent) 12%, var(--color-surface-raised));
}

html[data-theme="dark"] .exam-hub-card-foot strong {
    color: color-mix(in srgb, var(--card-accent) 72%, #e6edf6);
    border: 1px solid color-mix(in srgb, var(--card-accent) 30%, var(--color-border));
    background: color-mix(in srgb, var(--card-accent) 13%, var(--color-surface-raised));
}

html[data-theme="dark"] .exam-hub-card:hover .exam-hub-card-foot strong,
html[data-theme="dark"] .exam-hub-card:focus-visible .exam-hub-card-foot strong {
    color: #fff;
    border-color: color-mix(in srgb, var(--card-accent) 68%, #fff);
    background: color-mix(in srgb, var(--card-accent) 72%, #26303b);
}

html[data-theme="dark"] .traffic-sign-deck-header h1,
html[data-theme="dark"] .traffic-sign-card-copy h2 {
    color: var(--color-text);
}

html[data-theme="dark"] .traffic-sign-deck-header p,
html[data-theme="dark"] .traffic-sign-sidebar-card--hint p {
    color: var(--color-text-muted);
}

html[data-theme="dark"] .traffic-sign-deck-header-progress {
    color: var(--color-text-muted);
    border-color: var(--color-border);
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
}

html[data-theme="dark"] .traffic-sign-deck-header-progress span {
    color: var(--color-text-subtle);
}

html[data-theme="dark"] .traffic-sign-deck-header-progress strong {
    color: var(--color-text);
}

html[data-theme="dark"] .traffic-sign-deck-header-progress > div {
    background: #303741;
}

html[data-theme="dark"] .traffic-sign-deck-stack {
    border-color: #46515d;
    background: #323840;
}

html[data-theme="dark"] .traffic-sign-card-copy {
    border-color: var(--color-border);
    background: var(--color-surface);
}

html[data-theme="dark"] .traffic-sign-card-copy span {
    color: #cfe2ff;
    background: #263141;
}

html[data-theme="dark"] .traffic-sign-sidebar-card > span {
    color: var(--color-text-subtle);
}

html[data-theme="dark"] .traffic-sign-sidebar-card--hint strong {
    color: var(--color-text);
}

html[data-theme="dark"] .lesson-reader-header-link {
    color: #d9e4f3;
    border-color: var(--color-border);
    background: var(--color-surface-raised);
}

html[data-theme="dark"] .lesson-reader-header-link:hover {
    color: #fff;
    border-color: #53677d;
    background: var(--color-surface-hover);
}

html[data-theme="dark"] .lesson-question-library-features {
    border-color: var(--color-border);
}

html[data-theme="dark"] .lesson-question-library-features > span {
    border-color: var(--color-border);
    background: var(--color-surface-raised);
}

html[data-theme="dark"] .lesson-question-library-features b {
    color: var(--color-text-subtle);
}

html[data-theme="dark"] .lesson-question-library-features small {
    color: var(--color-text);
}

html[data-theme="dark"] .lesson-question-library-action {
    color: #ddcff8;
    border-color: #5b4e70;
    background: #30293a;
}

html[data-theme="dark"] .lesson-question-library-card:hover .lesson-question-library-action {
    color: #fff;
    border-color: #7d67a4;
    background: #3b3049;
}

html[data-theme="dark"] .trust-hero {
    border-color: var(--color-border-soft);
    background:
        radial-gradient(circle at 82% 18%, rgba(120, 162, 244, .09), transparent 31%),
        linear-gradient(180deg, var(--color-surface), var(--color-surface-muted));
}

html[data-theme="dark"] .trust-hero h1,
html[data-theme="dark"] .trust-copy-section h2,
html[data-theme="dark"] .trust-sources h2,
html[data-theme="dark"] .contact-form-card h2,
html[data-theme="dark"] .contact-guidance h2 {
    color: var(--color-text);
}

html[data-theme="dark"] .trust-hero p,
html[data-theme="dark"] .trust-copy-section p,
html[data-theme="dark"] .trust-copy-section li,
html[data-theme="dark"] .contact-guidance p,
html[data-theme="dark"] .contact-guidance li {
    color: var(--color-text-muted);
}

html[data-theme="dark"] .trust-hero-meta span {
    color: #cfe0ff;
    border-color: #405678;
    background: #263141;
}

html[data-theme="dark"] .trust-section {
    background: var(--color-page);
}

html[data-theme="dark"] .trust-facts > div {
    border-color: var(--color-border);
    background: var(--color-surface);
}

html[data-theme="dark"] .trust-facts span {
    color: var(--color-text-subtle);
}

html[data-theme="dark"] .trust-facts strong {
    color: var(--color-text);
}

html[data-theme="dark"] .trust-note {
    border-color: #405678;
    background: #202b3a;
}

html[data-theme="dark"] .trust-sources {
    border-color: var(--color-border);
    background: var(--color-surface-muted);
}

html[data-theme="dark"] :is(
    .guide-pathfinder-head h2,
    .guide-process-intro h2,
    .guide-directory-head h2,
    .guide-index-note h2,
    .guide-route-card h3,
    .guide-process-phase h3,
    .guide-article h2,
    .guide-related h2,
    .guide-sources h2
) {
    color: var(--color-text);
}

html[data-theme="dark"] :is(
    .guide-pathfinder-head p,
    .guide-process-intro p,
    .guide-directory-head p,
    .guide-index-note p,
    .guide-route-card p,
    .guide-process-phase p,
    .guide-article p
) {
    color: var(--color-text-muted);
}

html[data-theme="dark"] .profile-shortcut-card > em,
html[data-theme="dark"] .profile-recent-list > a > em,
html[data-theme="dark"] .profile-package-list > a > em {
    color: var(--color-primary-hover);
    border-color: #405678;
    background: #263141;
}

html[data-theme="dark"] .profile-shortcut-card:hover > em,
html[data-theme="dark"] .profile-recent-list > a:hover > em,
html[data-theme="dark"] .profile-package-list > a:hover > em {
    color: #fff;
    border-color: #5d8fe8;
    background: #3f73d1;
}

/* Dark theme finishing pass v70.
   Fixes remaining light-theme leaks and restores the rounded premium geometry. */

/* Shared radius language for large content surfaces. */
:root {
    --koni-radius-card: 18px;
    --koni-radius-panel: 22px;
    --koni-radius-hero: 26px;
}

.home-benefit-grid,
.home-benefit,
.traffic-hub-toolbar,
.traffic-hub-card,
.traffic-hub-card-art,
.lesson-library-rail,
.lesson-category-row,
.lesson-category-header,
.lesson-reader-header,
.lesson-reader-content,
.lesson-topic-nav,
.lesson-reader-toc,
.question-library-hero-card,
.question-library-card,
.question-detail-card,
.question-detail-rail-card,
.question-detail-option,
.question-detail-explanation,
.question-detail-source,
.question-related-grid a,
.guide-route-card,
.guide-pathfinder,
.guide-pathfinder-grid,
.guide-pathfinder-grid a,
.guide-process-flow,
.guide-process-phase,
.guide-process-row,
.guide-directory-card,
.guide-index-note,
.guide-topic-nav,
.guide-toc,
.guide-facts,
.guide-koni-box,
.guide-warning,
.guide-related-grid a,
.guide-sources,
.contact-form-card,
.contact-guidance,
.contact-guidance section,
.trust-sidebar-card,
.trust-article,
.trust-facts,
.trust-sources {
    border-radius: var(--koni-radius-card);
}

.home-benefit-grid,
.lesson-category-header,
.lesson-reader-header,
.question-detail-card,
.guide-route-card,
.guide-process-flow,
.guide-index-note,
.contact-form-card,
.trust-article {
    border-radius: var(--koni-radius-panel);
}

/* Home: remove the hard-edged segmented strip. */
.home-benefit-grid {
    overflow: hidden;
    padding: 1px;
}

.home-benefit {
    margin: 0;
}

html[data-theme="dark"] .home-benefit-grid {
    gap: 1px;
    border: 1px solid var(--color-border);
    background: var(--color-border);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .20);
}

html[data-theme="dark"] .home-benefit {
    border: 0;
    background: linear-gradient(180deg, var(--color-surface-raised), var(--color-surface));
}

/* Traffic-sign hub: softer cards and image wells. */
.traffic-hub-toolbar {
    border-radius: var(--koni-radius-card);
}

.traffic-hub-card {
    border-radius: 20px;
}

.traffic-hub-card-art {
    border-radius: 16px;
}

html[data-theme="dark"] .traffic-hub-toolbar {
    border-color: var(--color-border);
    background: var(--color-surface);
}

html[data-theme="dark"] .traffic-hub-card {
    border-color: var(--color-border);
    background: linear-gradient(180deg, var(--color-surface-raised), var(--color-surface));
}

html[data-theme="dark"] .traffic-hub-card-art {
    border-color: #46515d;
    background: #eef2f7;
}

html[data-theme="dark"] .traffic-hub-card-copy h3,
html[data-theme="dark"] .traffic-hub-card-copy strong {
    color: var(--color-text);
}

html[data-theme="dark"] .traffic-hub-card-copy p {
    color: var(--color-text-muted);
}

/* Lesson library / category / reader geometry. */
.lesson-library-rail,
.lesson-category-header,
.lesson-reader-header,
.lesson-topic-nav,
.lesson-reader-toc,
.lesson-reader-content {
    overflow: hidden;
}

.lesson-category-header,
.lesson-reader-header {
    margin-top: 18px;
    padding: 22px 24px 24px;
    border: 1px solid var(--lesson-border);
    box-shadow: 0 16px 38px rgba(18, 44, 78, .07);
}

.lesson-category-header::before,
.lesson-reader-header::before {
    left: 24px;
    width: 88px;
    height: 3px;
}

html[data-theme="dark"] .lesson-library-rail,
html[data-theme="dark"] .lesson-topic-nav,
html[data-theme="dark"] .lesson-reader-toc,
html[data-theme="dark"] .lesson-reader-content,
html[data-theme="dark"] .lesson-category-row {
    border-color: var(--color-border);
    background: linear-gradient(180deg, var(--color-surface-raised), var(--color-surface));
}

html[data-theme="dark"] .lesson-category-header,
html[data-theme="dark"] .lesson-reader-header {
    border-color: var(--color-border);
    background:
        radial-gradient(circle at 88% 0%, rgba(120, 162, 244, .10), transparent 34%),
        linear-gradient(180deg, var(--color-surface-raised), var(--color-surface));
    box-shadow: 0 18px 42px rgba(0, 0, 0, .20);
}

html[data-theme="dark"] .lesson-reader-header-link,
html[data-theme="dark"] .lesson-category-count {
    color: var(--color-text);
    border-color: #46515d;
    background: var(--color-surface-hover);
}

/* Question library: fix pale hero card and unreadable dark-blue titles. */
html[data-theme="dark"] .question-library-hero {
    border-color: var(--color-border-soft);
    background:
        radial-gradient(circle at 84% 14%, rgba(120, 162, 244, .11), transparent 29%),
        linear-gradient(135deg, var(--color-surface-raised), var(--color-surface-muted));
}

html[data-theme="dark"] .question-library-hero-card,
html[data-theme="dark"] .question-library-card {
    border-color: var(--color-border);
    background: linear-gradient(180deg, var(--color-surface-raised), var(--color-surface));
    box-shadow: 0 16px 38px rgba(0, 0, 0, .22);
}

html[data-theme="dark"] .question-library-hero-card strong,
html[data-theme="dark"] .question-library-card h2,
html[data-theme="dark"] .question-library-card h2 a,
html[data-theme="dark"] .question-library-card h2 a:visited {
    color: var(--color-text);
}

html[data-theme="dark"] .question-library-hero-card p,
html[data-theme="dark"] .question-library-card p,
html[data-theme="dark"] .question-library-hero h1 + p {
    color: var(--color-text-muted);
}

html[data-theme="dark"] .question-library-hero-card > span,
html[data-theme="dark"] .question-library-card-meta span,
html[data-theme="dark"] .question-library-stats span {
    color: #d7e5ff;
    border: 1px solid #405678;
    background: #263141;
}

html[data-theme="dark"] .question-library-filters a {
    color: var(--color-text-muted);
    border-color: var(--color-border);
    background: var(--color-surface-raised);
}

html[data-theme="dark"] .question-library-filters a:hover {
    color: var(--color-text);
    border-color: #5c7290;
    background: var(--color-surface-hover);
    box-shadow: none;
}

html[data-theme="dark"] .question-library-filters a.is-active {
    color: #fff;
    border-color: #4d7be0;
    background: #315fbe;
}

html[data-theme="dark"] .question-library-card-link,
html[data-theme="dark"] .question-library-pagination a {
    color: var(--color-primary-hover);
}

/* Question detail: remove white question header while preserving media surfaces. */
html[data-theme="dark"] .question-detail-page {
    background: var(--color-page);
}

html[data-theme="dark"] .question-detail-card,
html[data-theme="dark"] .question-detail-rail-card,
html[data-theme="dark"] .question-related-grid a {
    border-color: var(--color-border);
    background: var(--color-surface);
    box-shadow: 0 16px 38px rgba(0, 0, 0, .22);
}

html[data-theme="dark"] .question-detail-header {
    color: var(--color-text);
    border-bottom-color: var(--color-border);
    background:
        radial-gradient(circle at 92% 8%, rgba(120, 162, 244, .08), transparent 34%),
        linear-gradient(180deg, var(--color-surface-raised), var(--color-surface));
}

html[data-theme="dark"] .question-detail-header h1,
html[data-theme="dark"] .question-detail-option-line strong,
html[data-theme="dark"] .question-detail-explanation h2,
html[data-theme="dark"] .question-detail-rail-card strong,
html[data-theme="dark"] .question-related-grid strong {
    color: var(--color-text);
}

html[data-theme="dark"] .question-detail-option {
    border-color: var(--color-border);
    background: var(--color-surface-raised);
}

html[data-theme="dark"] .question-detail-option.is-correct {
    border-color: #3c765f;
    background: #1d3028;
}

html[data-theme="dark"] .question-detail-option-key {
    color: #d7e5ff;
    border-color: #405678;
    background: #263141;
}

html[data-theme="dark"] .question-detail-option.is-correct .question-detail-option-key {
    color: #dff7ec;
    border-color: #3f876b;
    background: #1f4d3b;
}

html[data-theme="dark"] .question-detail-option p,
html[data-theme="dark"] .question-detail-explanation p,
html[data-theme="dark"] .question-detail-source p,
html[data-theme="dark"] .question-detail-rail-card p {
    color: var(--color-text-muted);
}

html[data-theme="dark"] .question-detail-explanation,
html[data-theme="dark"] .question-detail-source {
    border-color: var(--color-border);
    background: var(--color-surface-raised);
}

html[data-theme="dark"] .question-detail-source {
    border-left-width: 1px;
}

html[data-theme="dark"] .question-detail-source strong {
    color: var(--color-text);
}

html[data-theme="dark"] .question-detail-rail-card.is-soft {
    background: linear-gradient(180deg, #263141, #212a36);
}

/* Guide index and article cards: round the previously sharp shells. */
.guide-pathfinder,
.guide-process-flow,
.guide-process-phase,
.guide-process-row,
.guide-topic-nav,
.guide-toc,
.guide-article,
.guide-related,
.guide-sources {
    overflow: hidden;
}

.guide-process-flow {
    border: 1px solid transparent;
}

.guide-process-phase,
.guide-process-row {
    border-radius: 16px;
}

.guide-directory-card,
.guide-index-note,
.guide-facts,
.guide-koni-box,
.guide-warning,
.guide-related-grid a {
    border-radius: 18px;
}

html[data-theme="dark"] .guide-route-card,
html[data-theme="dark"] .guide-pathfinder,
html[data-theme="dark"] .guide-process-flow,
html[data-theme="dark"] .guide-process-phase,
html[data-theme="dark"] .guide-process-row,
html[data-theme="dark"] .guide-directory-card,
html[data-theme="dark"] .guide-index-note,
html[data-theme="dark"] .guide-topic-nav,
html[data-theme="dark"] .guide-toc,
html[data-theme="dark"] .guide-facts,
html[data-theme="dark"] .guide-koni-box,
html[data-theme="dark"] .guide-related-grid a,
html[data-theme="dark"] .guide-sources {
    border-color: var(--color-border);
    background: linear-gradient(180deg, var(--color-surface-raised), var(--color-surface));
    box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
}

html[data-theme="dark"] .guide-process-flow {
    background: var(--color-surface);
}

html[data-theme="dark"] .guide-warning {
    color: #ecd59f;
    border-color: #665532;
    background: #2b261b;
}

html[data-theme="dark"] .guide-related-grid strong,
html[data-theme="dark"] .guide-facts strong,
html[data-theme="dark"] .guide-koni-box strong {
    color: var(--color-text);
}

html[data-theme="dark"] .guide-related-grid span,
html[data-theme="dark"] .guide-facts li,
html[data-theme="dark"] .guide-koni-box p {
    color: var(--color-text-muted);
}

/* Contact/trust pages: keep hero and information cards dark. */
html[data-theme="dark"] .trust-hero,
html[data-theme="dark"] .contact-hero {
    border-color: var(--color-border-soft);
    background:
        radial-gradient(circle at 82% 18%, rgba(120, 162, 244, .09), transparent 31%),
        linear-gradient(180deg, var(--color-surface), var(--color-surface-muted));
}

html[data-theme="dark"] .contact-form-card,
html[data-theme="dark"] .contact-guidance,
html[data-theme="dark"] .contact-guidance section,
html[data-theme="dark"] .trust-sidebar-card,
html[data-theme="dark"] .trust-article,
html[data-theme="dark"] .trust-facts,
html[data-theme="dark"] .trust-sources {
    border-color: var(--color-border);
    background: linear-gradient(180deg, var(--color-surface-raised), var(--color-surface));
}

@media (max-width: 680px) {
    :root {
        --koni-radius-card: 16px;
        --koni-radius-panel: 18px;
        --koni-radius-hero: 20px;
    }

    .lesson-category-header,
    .lesson-reader-header {
        margin-top: 12px;
        padding: 16px 16px 18px;
    }

    .lesson-category-header::before,
    .lesson-reader-header::before {
        left: 16px;
        width: 64px;
    }
}

/* Dark theme completion v71.
   Screenshot-driven fixes for remaining light leaks, hard-edged shells and
   inconsistent dark surfaces. This block is intentionally route-scoped. */

:root {
    --koni-radius-sm: 12px;
    --koni-radius-md: 16px;
    --koni-radius-lg: 20px;
    --koni-radius-xl: 24px;
}

/* Home benefits: keep individual cards instead of a sharp segmented strip. */
.home-page .home-benefit-grid {
    gap: 14px;
    overflow: visible;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.home-page .home-benefit {
    overflow: hidden;
    border-radius: var(--koni-radius-lg);
}

html[data-theme="dark"] .home-page .home-benefit-grid {
    gap: 14px;
    border: 0;
    background: transparent;
    box-shadow: none;
}

html[data-theme="dark"] .home-page .home-benefit {
    border: 1px solid var(--color-border);
    background: linear-gradient(180deg, var(--color-surface-raised), var(--color-surface));
    box-shadow: 0 14px 32px rgba(0, 0, 0, .18);
}

/* Traffic signs: consistent rounded shells; image wells intentionally stay light. */
.page-traffic-signs :is(
    .traffic-hub-toolbar,
    .traffic-hub-card,
    .traffic-hub-empty,
    .traffic-sign-sidebar-card,
    .traffic-sign-deck-complete
) {
    overflow: hidden;
    border-radius: var(--koni-radius-lg);
}

.page-traffic-signs .traffic-hub-card-art {
    overflow: hidden;
    border-radius: var(--koni-radius-md);
}

.page-traffic-signs .traffic-hub-card-track {
    border-radius: 999px;
}

html[data-theme="dark"] .page-traffic-signs .traffic-hub-toolbar {
    border-color: var(--color-border);
    background: var(--color-surface);
}

html[data-theme="dark"] .page-traffic-signs .traffic-hub-card {
    border-color: var(--color-border);
    background: linear-gradient(180deg, var(--color-surface-raised), var(--color-surface));
    box-shadow: 0 12px 28px rgba(0, 0, 0, .16);
}

/* Lesson library and readers: rounded containers and clean breadcrumbs. */
.page-lessons :is(
    .lesson-library-rail,
    .lesson-module,
    .lesson-guide-list,
    .lesson-guide-row,
    .lesson-question-library-card,
    .lesson-library-cta,
    .lesson-category-header,
    .lesson-category-row,
    .lesson-reader-header,
    .lesson-reader-article,
    .lesson-topic-nav,
    .lesson-page-toc,
    .lesson-category-switcher,
    .lesson-reader-note,
    .lesson-reader-back,
    .lesson-reader-next
) {
    overflow: hidden;
    border-radius: var(--koni-radius-lg);
}

.page-lessons :is(.lesson-category-header, .lesson-reader-header, .lesson-reader-article) {
    border-radius: var(--koni-radius-xl);
}

.page-lessons .lesson-reader-breadcrumb {
    display: flex;
    width: max-content;
    max-width: 100%;
    align-items: center;
    gap: 7px;
    margin-bottom: 14px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

html[data-theme="dark"] .page-lessons .lesson-reader-breadcrumb,
html[data-theme="dark"] .page-lessons .lesson-reader-breadcrumb a,
html[data-theme="dark"] .page-lessons .lesson-reader-breadcrumb span {
    color: var(--color-primary-hover);
    border: 0;
    background: transparent;
}

html[data-theme="dark"] .page-lessons :is(.lesson-category-header, .lesson-reader-header) {
    border-color: var(--color-border);
    background:
        radial-gradient(circle at 90% 0%, rgba(120, 162, 244, .08), transparent 32%),
        linear-gradient(180deg, var(--color-surface-raised), var(--color-surface));
    box-shadow: 0 16px 36px rgba(0, 0, 0, .20);
}

html[data-theme="dark"] .page-lessons :is(
    .lesson-library-rail,
    .lesson-module,
    .lesson-guide-list,
    .lesson-guide-row,
    .lesson-question-library-card,
    .lesson-library-cta,
    .lesson-category-row,
    .lesson-reader-article,
    .lesson-topic-nav,
    .lesson-page-toc,
    .lesson-category-switcher,
    .lesson-reader-note,
    .lesson-reader-back,
    .lesson-reader-next
) {
    border-color: var(--color-border);
    background: linear-gradient(180deg, var(--color-surface-raised), var(--color-surface));
}

html[data-theme="dark"] .page-lessons .lesson-category-row:hover {
    border-color: #53677d;
    background: var(--color-surface-hover);
}

/* Guide index and detail: soften process, navigation and source blocks. */
.page-guide :is(
    .guide-route-card,
    .guide-pathfinder,
    .guide-pathfinder-grid > a,
    .guide-process-flow,
    .guide-process-phase,
    .guide-process-row,
    .guide-directory-card,
    .guide-index-note,
    .guide-topic-nav,
    .guide-toc,
    .guide-facts,
    .guide-koni-box,
    .guide-warning,
    .guide-related,
    .guide-related-grid > a,
    .guide-sources
) {
    overflow: hidden;
    border-radius: var(--koni-radius-lg);
}

.page-guide :is(.guide-pathfinder, .guide-process-flow, .guide-index-note, .guide-sources) {
    border-radius: var(--koni-radius-xl);
}

.page-guide .guide-process-phase {
    border-radius: 18px;
}

.page-guide .guide-process-row {
    border-radius: 14px;
}

.page-guide .guide-sources li a {
    border-radius: var(--koni-radius-sm);
}

html[data-theme="dark"] .page-guide :is(
    .guide-route-card,
    .guide-pathfinder,
    .guide-pathfinder-grid > a,
    .guide-process-flow,
    .guide-process-phase,
    .guide-process-row,
    .guide-directory-card,
    .guide-index-note,
    .guide-topic-nav,
    .guide-toc,
    .guide-facts,
    .guide-koni-box,
    .guide-warning,
    .guide-related-grid > a,
    .guide-sources
) {
    border-color: var(--color-border);
    background: linear-gradient(180deg, var(--color-surface-raised), var(--color-surface));
    box-shadow: 0 14px 32px rgba(0, 0, 0, .16);
}

html[data-theme="dark"] .page-guide .guide-process-flow {
    background: var(--color-surface);
}

html[data-theme="dark"] .page-guide .guide-sources li a {
    color: var(--color-primary-hover);
    border-color: var(--color-border);
    background: var(--color-surface-raised);
}

html[data-theme="dark"] .page-guide .guide-sources li a:hover {
    color: var(--color-text);
    border-color: #53677d;
    background: var(--color-surface-hover);
}

/* Account pages: remove remaining white empty states and chart legend rows. */
.page-account :is(
    .account-workspace-header,
    .profile-metric-card,
    .history-filter-panel,
    .history-results,
    .repeat-action-card,
    .saved-question-card,
    .progress-score-card,
    .progress-signal-card,
    .progress-trend-card,
    .progress-distribution-card,
    .progress-categories-card,
    .progress-category-row,
    .profile-shortcut-card
) {
    border-radius: var(--koni-radius-lg);
}

html[data-theme="dark"] .page-account .history-empty-state,
html[data-theme="dark"] .page-account .progress-empty-panel {
    color: var(--color-text-muted);
    border-color: #46515d;
    background: var(--color-surface-raised);
}

html[data-theme="dark"] .page-account :is(.history-empty-state, .progress-empty-panel) > span {
    color: var(--color-primary-hover);
    background: #263141;
}

html[data-theme="dark"] .page-account :is(.history-empty-state, .progress-empty-panel) strong {
    color: var(--color-text);
}

html[data-theme="dark"] .page-account :is(.history-empty-state, .progress-empty-panel) p {
    color: var(--color-text-muted);
}

html[data-theme="dark"] .page-account .progress-distribution-legend > div {
    color: var(--color-text-muted);
    border-color: var(--color-border);
    background: var(--color-surface-raised);
}

html[data-theme="dark"] .page-account .progress-distribution-legend :is(p, small) {
    color: var(--color-text-muted);
}

html[data-theme="dark"] .page-account .progress-distribution-legend strong {
    color: var(--color-text);
}

html[data-theme="dark"] .page-account .progress-donut::before,
html[data-theme="dark"] .page-account .progress-score-ring::before {
    background: var(--color-surface-raised);
}

html[data-theme="dark"] .page-account .progress-donut :is(strong, small),
html[data-theme="dark"] .page-account .progress-score-ring :is(strong, small) {
    color: var(--color-text);
}

/* Question library and public explanation pages: force readable dark surfaces. */
html[data-theme="dark"] body.page-question-library .question-library-hero-card,
html[data-theme="dark"] body.page-question-library .question-library-card,
html[data-theme="dark"] body.page-question-library .question-detail-card,
html[data-theme="dark"] body.page-question-library .question-detail-rail-card,
html[data-theme="dark"] body.page-question-library .question-related-grid > a {
    color: var(--color-text-muted);
    border-color: var(--color-border);
    background: linear-gradient(180deg, var(--color-surface-raised), var(--color-surface));
    box-shadow: 0 14px 34px rgba(0, 0, 0, .20);
}

html[data-theme="dark"] body.page-question-library :is(
    .question-library-card h2,
    .question-library-card h2 a,
    .question-library-card h2 a:visited,
    .question-library-hero-card strong,
    .question-detail-header h1,
    .question-detail-option-line strong,
    .question-detail-explanation h2,
    .question-detail-rail-card strong,
    .question-related-heading h2,
    .question-related-grid strong
) {
    color: var(--color-text);
}

html[data-theme="dark"] body.page-question-library :is(
    .question-library-card p,
    .question-library-hero-card p,
    .question-detail-option p,
    .question-detail-explanation p,
    .question-detail-source p,
    .question-detail-rail-card p
) {
    color: var(--color-text-muted);
}

html[data-theme="dark"] body.page-question-library .question-library-hero-card,
html[data-theme="dark"] body.page-question-library .question-detail-header {
    background:
        radial-gradient(circle at 92% 8%, rgba(120, 162, 244, .08), transparent 34%),
        linear-gradient(180deg, var(--color-surface-raised), var(--color-surface));
}

html[data-theme="dark"] body.page-question-library .question-detail-option {
    border-color: var(--color-border);
    background: var(--color-surface-raised);
}

html[data-theme="dark"] body.page-question-library .question-detail-option.is-correct {
    border-color: #3c765f;
    background: #1d3028;
}

html[data-theme="dark"] body.page-question-library .question-detail-option.is-wrong {
    border-color: #80505a;
    background: #372329;
}

html[data-theme="dark"] body.page-question-library :is(.question-detail-explanation, .question-detail-source) {
    border-color: var(--color-border);
    background: var(--color-surface-raised);
}

.question-detail-tag-list,
.question-detail-related-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 34px 34px;
    padding: 0;
    list-style: none;
}

.question-detail-tag-list a,
.question-detail-tag-list span,
.question-detail-related-topics a,
.question-detail-related-topics span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 11px;
    border: 1px solid #dce5ef;
    border-radius: 999px;
    color: #3158a5;
    background: #edf4ff;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

html[data-theme="dark"] body.page-question-library :is(
    .question-detail-tag-list a,
    .question-detail-tag-list span,
    .question-detail-related-topics a,
    .question-detail-related-topics span
) {
    color: #d7e5ff;
    border-color: #405678;
    background: #263141;
}

/* Keep deliberate media wells light; all surrounding shells remain dark. */
html[data-theme="dark"] :is(
    .traffic-hub-card-art,
    .traffic-sign-card-image-wrap,
    .question-detail-media img,
    .question-detail-media video,
    .question-detail-option-media,
    .lesson-reader-figure
) {
    background: #eef2f7;
}

@media (max-width: 680px) {
    .page-lessons :is(.lesson-category-header, .lesson-reader-header, .lesson-reader-article),
    .page-guide :is(.guide-pathfinder, .guide-process-flow, .guide-index-note, .guide-sources),
    .page-account :is(.account-workspace-header, .history-results, .progress-trend-card, .progress-distribution-card),
    .page-question-library :is(.question-library-hero-card, .question-detail-card) {
        border-radius: 18px;
    }

    .question-detail-tag-list,
    .question-detail-related-topics {
        margin-right: 18px;
        margin-left: 18px;
    }
}

/* Dark theme precision fixes v72.
   - lesson library rail now reflows before it can clip at narrow/zoomed widths
   - traffic category progress is an inset pill instead of a hard bottom edge
   - guide timeline headings keep readable contrast on dark surfaces */

.lesson-library-rail,
.lesson-library-content,
.lesson-library-rail-metrics,
.lesson-library-rail-metrics span {
    min-width: 0;
    box-sizing: border-box;
}

.lesson-library-rail-metrics span {
    gap: 16px;
}

.lesson-library-rail-metrics b {
    flex: 0 0 auto;
}

@media (max-width: 1120px) {
    .lesson-library-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }

    .lesson-library-rail {
        position: static;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(190px, 240px);
        grid-template-rows: auto auto auto auto;
        gap: 10px 28px;
        align-items: start;
        width: 100%;
        padding: 24px;
        border: 1px solid var(--border);
        border-top: 3px solid var(--brand-600);
        border-radius: 20px;
    }

    .lesson-library-rail-label,
    .lesson-library-rail h1,
    .lesson-library-rail p {
        grid-column: 1;
    }

    .lesson-library-rail h1 {
        margin-top: 5px;
    }

    .lesson-library-rail p {
        max-width: 680px;
        margin-top: 6px;
    }

    .lesson-library-rail-metrics {
        grid-column: 2;
        grid-row: 1 / span 3;
        align-self: center;
        width: 100%;
        margin: 0;
        padding: 12px 0;
    }

    .lesson-library-rail .button {
        grid-column: 2;
        grid-row: 4;
        width: 100%;
        margin-top: 0;
    }
}

@media (max-width: 700px) {
    .lesson-library-layout {
        gap: 24px;
        padding-top: 24px;
    }

    .lesson-library-rail {
        display: block;
        padding: 20px;
        border-radius: 18px;
    }

    .lesson-library-rail h1 {
        font-size: 27px;
    }

    .lesson-library-rail p {
        margin-top: 14px;
    }

    .lesson-library-rail-metrics {
        margin-top: 18px;
        padding: 14px 0;
    }

    .lesson-library-rail .button {
        margin-top: 16px;
    }
}

/* Keep traffic progress away from the rounded card boundary. */
.page-traffic-signs .traffic-hub-card {
    padding-bottom: 25px;
}

.page-traffic-signs .traffic-hub-card-track {
    inset: auto 16px 9px;
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5ebf2;
}

.page-traffic-signs .traffic-hub-card-track i {
    height: 100%;
    border-radius: 999px;
}

html[data-theme="dark"] .page-traffic-signs .traffic-hub-card-track {
    background: #2d3540;
}

@media (max-width: 680px) {
    .page-traffic-signs .traffic-hub-card {
        padding-bottom: 23px;
    }

    .page-traffic-signs .traffic-hub-card-track {
        right: 12px;
        left: 12px;
        bottom: 8px;
    }
}

/* Guide process timeline: explicit dark-theme typography and connector colors. */
html[data-theme="dark"] .guide-index-page .guide-process-phase-head h3,
html[data-theme="dark"] .guide-index-page .guide-process-row h4 {
    color: var(--color-text);
}

html[data-theme="dark"] .guide-index-page .guide-process-phase-head p,
html[data-theme="dark"] .guide-index-page .guide-process-row p {
    color: var(--color-text-muted);
}

html[data-theme="dark"] .guide-index-page .guide-process-row-head > span {
    color: var(--color-text-subtle);
}

html[data-theme="dark"] .guide-index-page .guide-process-node {
    color: #d7e5ff;
    border-color: #4a6283;
    background: #263141;
    box-shadow: 0 0 0 5px var(--color-surface);
}

html[data-theme="dark"] .guide-index-page .guide-process-phase-steps::before {
    background: linear-gradient(180deg, #5277b5, #3b4654);
}

html[data-theme="dark"] .guide-index-page .guide-process-row + .guide-process-row .guide-process-row-body {
    border-top-color: #46515d;
}

html[data-theme="dark"] .guide-index-page .guide-process-row a {
    color: var(--color-primary-hover);
}


/* Dark theme polish v73.
   - traffic sign thumbnails now sit on dark wells
   - lesson library rail gains more breathing room and earlier reflow
   - lesson detail chips / hero become visually consistent
   - guide index/detail hero and source areas get stronger dark-mode structure */

html[data-theme="dark"] .page-traffic-signs .traffic-hub-card-art {
    border-color: #364252;
    background: linear-gradient(180deg, #25303c, #1b222b);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

html[data-theme="dark"] .page-traffic-signs .traffic-hub-card-art img {
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.18));
}

.page-lessons .lesson-library-layout {
    grid-template-columns: minmax(300px, 336px) minmax(0, 1fr);
    gap: clamp(34px, 4.5vw, 62px);
}

.page-lessons .lesson-library-rail {
    padding-right: 6px;
}

@media (max-width: 1180px) {
    .page-lessons .lesson-library-layout {
        grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
        gap: 30px;
    }
}

@media (max-width: 980px) {
    .page-lessons .lesson-library-layout {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .page-lessons .lesson-library-rail {
        position: static;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(210px, 250px);
        gap: 14px 24px;
        align-items: start;
        padding: 24px;
        border: 1px solid var(--border);
        border-top-width: 3px;
        border-radius: 22px;
    }

    .page-lessons .lesson-library-rail-label,
    .page-lessons .lesson-library-rail h1,
    .page-lessons .lesson-library-rail p {
        grid-column: 1;
    }

    .page-lessons .lesson-library-rail h1 {
        margin-top: 6px;
    }

    .page-lessons .lesson-library-rail p {
        margin-top: 8px;
    }

    .page-lessons .lesson-library-rail-metrics {
        grid-column: 2;
        grid-row: 1 / span 3;
        margin: 0;
        padding: 12px 0;
    }

    .page-lessons .lesson-library-rail .button {
        grid-column: 2;
        width: 100%;
        margin-top: 0;
        align-self: end;
    }
}

@media (max-width: 620px) {
    .page-lessons .lesson-library-rail {
        display: block;
        padding: 22px;
        border-radius: 20px;
    }

    .page-lessons .lesson-library-rail h1 {
        font-size: 28px;
    }

    .page-lessons .lesson-library-rail-metrics {
        margin-top: 18px;
        padding: 14px 0;
    }

    .page-lessons .lesson-library-rail .button {
        margin-top: 16px;
    }
}

html[data-theme="dark"] .page-lessons .lesson-reader-page .lesson-reader-header {
    margin-top: 18px;
    padding: 24px 28px 26px;
    border: 1px solid var(--color-border);
    border-radius: 28px;
    background:
        radial-gradient(circle at 92% 8%, rgba(120, 162, 244, 0.09), transparent 32%),
        linear-gradient(180deg, var(--color-surface-raised), var(--color-surface));
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .page-lessons .lesson-reader-page .lesson-reader-header::before {
    left: 28px;
    bottom: 0;
    width: 74px;
    background: linear-gradient(90deg, var(--color-primary), rgba(120, 162, 244, 0.72));
}

html[data-theme="dark"] .page-lessons .lesson-reader-page .lesson-reader-heading {
    gap: 22px;
    margin-top: 13px;
}

html[data-theme="dark"] .page-lessons .lesson-reader-page .lesson-reader-meta {
    gap: 9px;
}

html[data-theme="dark"] .page-lessons .lesson-reader-page .lesson-reader-meta > span {
    color: #d4e1f5;
    border-color: #405678;
    background: #263141;
    box-shadow: none;
}

html[data-theme="dark"] .page-lessons .lesson-reader-page .lesson-reader-meta .lesson-reader-kicker {
    color: #f8fbff;
    border-color: #4d6fb5;
    background: linear-gradient(180deg, #336ff5, #2457cb);
}

html[data-theme="dark"] .page-lessons .lesson-reader-page .lesson-reader-heading h1 {
    color: var(--color-text);
}

html[data-theme="dark"] .page-lessons .lesson-reader-page .lesson-reader-header-link {
    border-color: #405678;
    color: var(--color-text);
    background: rgba(23, 31, 42, 0.72);
    box-shadow: none;
}

html[data-theme="dark"] .page-lessons .lesson-reader-page .lesson-reader-header-link:hover {
    border-color: #55719a;
    color: var(--color-primary-hover);
    background: var(--color-surface-hover);
}

@media (max-width: 680px) {
    html[data-theme="dark"] .page-lessons .lesson-reader-page .lesson-reader-header {
        margin-top: 12px;
        padding: 18px 18px 20px;
        border-radius: 22px;
    }

    html[data-theme="dark"] .page-lessons .lesson-reader-page .lesson-reader-header::before {
        left: 18px;
        width: 60px;
    }
}

html[data-theme="dark"] .page-guide .guide-index-page .guide-hero {
    padding-top: 30px;
    padding-bottom: 24px;
    border-bottom: 0;
    background: transparent;
}

html[data-theme="dark"] .page-guide .guide-index-page .guide-hero-grid {
    align-items: stretch;
    padding: clamp(24px, 3vw, 34px);
    border: 1px solid var(--color-border);
    border-radius: 28px;
    background:
        radial-gradient(circle at 92% 6%, rgba(120, 162, 244, 0.10), transparent 32%),
        linear-gradient(180deg, var(--color-surface-raised), var(--color-surface));
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .page-guide .guide-index-page .guide-hero-copy {
    align-self: center;
}

html[data-theme="dark"] .page-guide .guide-index-page .guide-hero h1,
html[data-theme="dark"] .page-guide .guide-detail-page .guide-article-hero h1 {
    color: var(--color-text);
}

html[data-theme="dark"] .page-guide .guide-index-page .guide-hero-copy > p,
html[data-theme="dark"] .page-guide .guide-detail-page .guide-article-hero > .guide-article-shell > p,
html[data-theme="dark"] .page-guide .guide-detail-page .guide-author {
    color: var(--color-text-muted);
}

html[data-theme="dark"] .page-guide .guide-index-page .guide-route-card {
    padding: 22px;
    border-color: #3c4756;
    background: linear-gradient(180deg, rgba(33, 41, 53, 0.92), rgba(24, 31, 40, 0.92));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

html[data-theme="dark"] .page-guide .guide-index-page .guide-route-card-head strong,
html[data-theme="dark"] .page-guide .guide-index-page .guide-route-list strong {
    color: var(--color-text);
}

html[data-theme="dark"] .page-guide .guide-index-page .guide-route-count {
    color: #d7e5ff;
    border: 1px solid #405678;
    background: #263141;
}

html[data-theme="dark"] .page-guide .guide-index-page .guide-route-list small {
    color: var(--color-text-muted);
}

html[data-theme="dark"] .page-guide .guide-process-flow {
    padding: 12px;
    border-radius: 26px;
}

html[data-theme="dark"] .page-guide .guide-process-phase {
    padding: 24px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(33, 41, 53, 0.82), rgba(24, 31, 40, 0.82));
}

html[data-theme="dark"] .page-guide .guide-process-phase + .guide-process-phase {
    margin-top: 10px;
    border-top: 0;
}

html[data-theme="dark"] .page-guide .guide-process-row {
    padding: 12px 14px;
    border: 1px solid #384555;
    border-radius: 16px;
    background: rgba(20, 27, 36, 0.66);
}

html[data-theme="dark"] .page-guide .guide-process-row + .guide-process-row {
    margin-top: 10px;
}

html[data-theme="dark"] .page-guide .guide-process-row + .guide-process-row .guide-process-row-body {
    padding-top: 2px;
    border-top: 0;
}

html[data-theme="dark"] .page-guide .guide-process-phase-head {
    padding-top: 0;
}

html[data-theme="dark"] .page-guide .guide-detail-page .guide-article-hero {
    padding-top: 28px;
    padding-bottom: 20px;
    border-bottom: 0;
    background: transparent;
}

html[data-theme="dark"] .page-guide .guide-detail-page .guide-article-shell {
    max-width: 1180px;
    padding: clamp(24px, 3vw, 34px);
    border: 1px solid var(--color-border);
    border-radius: 28px;
    background:
        radial-gradient(circle at 92% 6%, rgba(120, 162, 244, 0.10), transparent 32%),
        linear-gradient(180deg, var(--color-surface-raised), var(--color-surface));
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .page-guide .guide-detail-page .guide-sources {
    align-items: stretch;
    padding: 24px;
    border: 1px solid var(--color-border);
    border-radius: 24px;
    background: linear-gradient(180deg, var(--color-surface-raised), var(--color-surface));
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] .page-guide .guide-detail-page .guide-sources > div {
    display: grid;
    gap: 8px;
    align-content: start;
}

html[data-theme="dark"] .page-guide .guide-detail-page .guide-sources ul {
    gap: 10px;
}

html[data-theme="dark"] .page-guide .guide-detail-page .guide-sources a {
    min-height: 56px;
    padding: 14px 16px;
    border-radius: 14px;
    border-color: #3b4756;
    background: rgba(23, 31, 42, 0.76);
}

@media (max-width: 900px) {
    html[data-theme="dark"] .page-guide .guide-index-page .guide-hero-grid,
    html[data-theme="dark"] .page-guide .guide-detail-page .guide-article-shell {
        padding: 22px;
        border-radius: 24px;
    }

    html[data-theme="dark"] .page-guide .guide-index-page .guide-process-flow {
        padding: 10px;
    }

    html[data-theme="dark"] .page-guide .guide-detail-page .guide-sources {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 20px;
    }
}

@media (max-width: 620px) {
    html[data-theme="dark"] .page-guide .guide-index-page .guide-hero {
        padding-top: 20px;
        padding-bottom: 14px;
    }

    html[data-theme="dark"] .page-guide .guide-index-page .guide-hero-grid,
    html[data-theme="dark"] .page-guide .guide-detail-page .guide-article-shell {
        padding: 18px;
        border-radius: 20px;
    }

    html[data-theme="dark"] .page-guide .guide-index-page .guide-route-card {
        padding: 18px;
    }

    html[data-theme="dark"] .page-guide .guide-process-flow {
        padding: 8px;
    }

    html[data-theme="dark"] .page-guide .guide-process-phase,
    html[data-theme="dark"] .page-guide .guide-process-row,
    html[data-theme="dark"] .page-guide .guide-detail-page .guide-sources {
        border-radius: 18px;
    }
}


/* Final visual cleanup v74.
   - removes guide breadcrumb strip artifact on dark hero cards
   - rebalances lesson intro rail width and mobile footprint
   - darkens home proof separators and traffic sign guide lines
   - tidies question detail related topics footer */

html[data-theme="dark"] .page-guide .guide-breadcrumb,
html[data-theme="dark"] .page-guide .guide-breadcrumb a,
html[data-theme="dark"] .page-guide .guide-breadcrumb span {
    border: 0;
    background: transparent;
    box-shadow: none;
}

html[data-theme="dark"] .page-guide .guide-breadcrumb {
    gap: 10px;
    color: #9fb7de;
}

html[data-theme="dark"] .page-guide .guide-breadcrumb a {
    color: #aecaef;
}

.page-lessons .lesson-library-layout {
    grid-template-columns: minmax(320px, 360px) minmax(0, 1fr);
    gap: clamp(34px, 4.2vw, 58px);
}

.page-lessons .lesson-library-rail {
    width: 100%;
    max-width: 100%;
}

html[data-theme="dark"] .page-lessons .lesson-library-rail {
    padding: 24px;
    border: 1px solid var(--color-border);
    border-top-width: 3px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 92% 8%, rgba(120, 162, 244, 0.08), transparent 32%),
        linear-gradient(180deg, var(--color-surface-raised), var(--color-surface));
}

html[data-theme="dark"] .page-lessons .lesson-library-rail h1 {
    font-size: clamp(34px, 2.65vw, 42px);
}

@media (max-width: 980px) {
    .page-lessons .lesson-library-rail {
        margin-inline: 0;
    }
}

@media (max-width: 700px) {
    .page-lessons .lesson-library-layout {
        gap: 22px;
    }

    .page-lessons .lesson-library-rail {
        width: 100%;
        min-width: 0;
    }

    html[data-theme="dark"] .page-lessons .lesson-library-rail {
        padding: 20px;
        border-radius: 20px;
    }

    html[data-theme="dark"] .page-lessons .lesson-library-rail h1 {
        font-size: 26px;
        line-height: 1.12;
    }

    .page-lessons .lesson-library-rail p {
        font-size: 13.5px;
        line-height: 1.62;
    }
}

html[data-theme="dark"] .home-page .home-proof-list {
    border-color: var(--color-border);
    background: linear-gradient(180deg, rgba(32, 40, 52, 0.96), rgba(24, 31, 40, 0.96));
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
}

html[data-theme="dark"] .home-page .home-proof-list > div {
    border-right-color: #334253;
}

html[data-theme="dark"] .home-page .home-proof-icon {
    color: #cfe0ff;
    background: #263141;
}

html[data-theme="dark"] .home-page .home-proof-list dt {
    color: var(--color-text);
}

html[data-theme="dark"] .home-page .home-proof-list dd {
    color: var(--color-text-muted);
}

html[data-theme="dark"] .page-traffic-signs .traffic-hub-card::before {
    display: none;
}

html[data-theme="dark"] .page-traffic-signs .traffic-hub-card-track {
    height: 3px;
    background: rgba(81, 95, 114, 0.36);
}

html[data-theme="dark"] .page-traffic-signs .traffic-hub-card-track i {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .page-question-library .question-detail-related-topics {
    gap: 10px;
    margin-top: 12px;
    align-items: center;
}

html[data-theme="dark"] .page-question-library .question-detail-related-topics a,
html[data-theme="dark"] .page-question-library .question-detail-related-topics span {
    min-height: 34px;
    padding-inline: 13px;
    border-color: #405678;
    background: #263141;
}

@media (max-width: 680px) {
    html[data-theme="dark"] .page-question-library .question-detail-related-topics {
        margin-top: 10px;
        gap: 8px;
    }
}


/* Mobile minimalisation v75.
   Scope is intentionally limited to phones (<= 680px).
   Desktop and tablet layouts remain unchanged. */
@media (max-width: 680px) {
    /* Global mobile chrome */
    .site-header > .shell,
    .site-footer > .shell,
    .site-header .mobile-nav-shell,
    .page-home .shell,
    .page-exams .shell,
    .page-traffic-signs .shell,
    .page-lessons .shell,
    .page-guide .shell {
        width: min(100% - 24px, 1240px) !important;
    }

    .site-header .nav {
        min-height: 58px;
        gap: 10px;
    }

    .site-header .brand-copy {
        column-gap: 7px;
    }

    .site-header .brand-title {
        font-size: 23px;
    }

    .site-header .brand-divider {
        height: 24px;
    }

    .site-header .brand-tagline {
        font-size: 7.5px;
        letter-spacing: 0.065em;
    }

    .site-header .mobile-nav-toggle {
        width: 40px;
        min-width: 40px;
        height: 40px;
        min-height: 40px;
        justify-content: center;
        gap: 0;
        padding: 0;
        border-radius: 12px;
        font-size: 0;
        box-shadow: none;
    }

    .site-header .mobile-nav-toggle span {
        width: 17px;
    }

    .site-header .mobile-nav-panel {
        box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
    }

    .site-header .mobile-nav-shell {
        gap: 10px;
        padding-top: 10px;
        padding-bottom: 12px;
    }

    .site-header .mobile-nav-shell nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .site-header .mobile-nav-shell nav a {
        min-height: 40px;
        padding: 8px 10px;
        border-radius: 10px;
        font-size: 12.5px;
    }

    .site-header .mobile-nav-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .site-header .mobile-nav-actions > * {
        min-width: 0;
        width: 100%;
    }

    .site-footer {
        padding-top: 28px;
        padding-bottom: 22px;
    }

    .footer-grid.footer-grid-enhanced {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 16px;
    }

    .footer-grid-enhanced .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-grid-enhanced .footer-brand p {
        display: none;
    }

    .footer-grid-enhanced .footer-links {
        gap: 7px;
    }

    .footer-grid-enhanced .footer-links strong {
        font-size: 12px;
    }

    .footer-grid-enhanced .footer-links a,
    .footer-grid-enhanced .footer-cookie-button {
        font-size: 11.5px;
        line-height: 1.35;
    }

    /* Home */
    .page-home .home-hero {
        padding: 22px 0 30px;
    }

    .page-home .home-hero::before {
        display: none;
    }

    .page-home .home-hero-grid {
        gap: 18px;
    }

    .page-home .home-eyebrow {
        display: none;
    }

    .page-home .home-hero h1 {
        max-width: 100%;
        font-size: clamp(34px, 10.5vw, 41px);
        line-height: 1.01;
        letter-spacing: -0.045em;
    }

    .page-home .home-lead {
        margin-top: 14px;
        font-size: 14px;
        line-height: 1.56;
    }

    .page-home .home-actions {
        gap: 7px;
        margin-top: 18px;
    }

    .page-home .home-primary-action {
        min-height: 46px;
        border-radius: 14px;
        font-size: 13px;
    }

    .page-home .home-secondary-action {
        min-height: 34px;
        justify-content: center;
        padding: 4px 8px;
        border: 0;
        background: transparent;
        box-shadow: none;
        font-size: 12.5px;
    }

    .page-home .home-proof-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0;
        margin-top: 14px;
        overflow: hidden;
        border: 1px solid var(--color-border, var(--line));
        border-radius: 14px;
        background: var(--color-surface, #fff);
    }

    .page-home .home-proof-list > div {
        min-height: 54px;
        display: grid;
        grid-template-columns: 1fr;
        place-items: center;
        align-content: center;
        gap: 1px;
        padding: 8px 4px;
        text-align: center;
    }

    .page-home .home-proof-list > div + div {
        border-left: 1px solid var(--color-border, var(--line));
    }

    .page-home .home-proof-icon {
        display: none;
    }

    .page-home .home-proof-list dt {
        font-size: 14px;
        line-height: 1;
    }

    .page-home .home-proof-list dd {
        max-width: 86px;
        margin-top: 4px;
        font-size: 8.5px;
        line-height: 1.2;
    }

    .page-home .home-hero-visual {
        width: 100%;
    }

    .page-home .home-feature-deck {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .page-home .home-feature-card,
    .page-home .home-feature-card--exam,
    .page-home .home-feature-card--signs {
        min-height: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto auto;
        gap: 5px 12px;
        padding: 14px;
        border-radius: 16px;
    }

    .page-home .home-feature-topline {
        grid-column: 1 / -1;
        margin: 0;
    }

    .page-home .home-feature-copy {
        grid-column: 1;
        margin: 2px 0 0;
    }

    .page-home .home-feature-copy h2 {
        max-width: 100%;
        font-size: 18px;
        line-height: 1.12;
    }

    .page-home .home-feature-copy p,
    .page-home .home-exam-blueprint,
    .page-home .home-sign-deck,
    .page-home .home-feature-status,
    .page-home .home-feature-index,
    .page-home .home-feature-bottom > span:first-child {
        display: none;
    }

    .page-home .home-feature-bottom {
        grid-column: 2;
        align-self: end;
        margin: 0;
        padding: 0;
        border: 0;
    }

    .page-home .home-feature-link {
        font-size: 11px;
        white-space: nowrap;
    }

    .page-home .home-topics,
    .page-home .home-final,
    .page-home .home-study,
    .page-home .home-benefits {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .page-home .home-section-heading {
        margin-bottom: 14px;
    }

    .page-home .home-section-heading h2 {
        font-size: 27px;
        line-height: 1.08;
    }

    .page-home .home-section-heading > p,
    .page-home .home-heading-row > p {
        font-size: 13px;
        line-height: 1.55;
    }

    .page-home .home-heading-row {
        align-items: end;
        gap: 10px;
    }

    .page-home .home-heading-link {
        font-size: 11px;
        white-space: nowrap;
    }

    .page-home .home-topic-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .page-home .home-topic-card {
        min-height: 0;
        grid-template-columns: 38px minmax(0, 1fr) auto;
        gap: 10px;
        padding: 13px 14px;
        border-radius: 15px;
    }

    .page-home .home-topic-icon {
        width: 38px;
        height: 38px;
        border-radius: 11px;
    }

    .page-home .home-topic-copy strong {
        font-size: 14px;
    }

    .page-home .home-topic-copy small {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 1;
        font-size: 11px;
    }

    .page-home .home-topic-card em {
        width: 28px;
        font-size: 0;
    }

    .page-home .home-topic-card em span {
        font-size: 15px;
    }

    .page-home .home-final-panel {
        grid-template-columns: 1fr;
        grid-template-areas: "copy" "action";
        gap: 14px;
        min-height: 0;
        padding: 18px;
        border-radius: 18px;
    }

    .page-home .home-final-copy h2 {
        font-size: 25px;
        line-height: 1.08;
    }

    .page-home .home-final-copy p:last-child {
        margin-top: 8px;
        font-size: 12.5px;
    }

    .page-home .home-final-panel form,
    .page-home .home-final-action {
        width: 100%;
    }

    .page-home .home-final-mascot {
        display: none;
    }

    .page-home .home-study-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .page-home .home-study-main {
        min-height: 0;
        padding: 17px;
        border-radius: 17px;
    }

    .page-home .home-study-main h3 {
        font-size: 23px;
        line-height: 1.08;
    }

    .page-home .home-study-copy {
        display: none;
    }

    .page-home .home-study-meta {
        gap: 6px;
        margin-top: 14px;
    }

    .page-home .home-study-meta li {
        min-height: 28px;
        padding: 5px 8px;
        font-size: 9.5px;
    }

    .page-home .home-study-main form,
    .page-home .home-panel-action {
        width: 100%;
    }

    .page-home .home-study-options {
        gap: 7px;
    }

    .page-home .home-option-card {
        min-height: 0;
        grid-template-columns: 26px 36px minmax(0, 1fr) 22px;
        gap: 9px;
        padding: 11px 12px;
        border-radius: 14px;
    }

    .page-home .home-option-index {
        font-size: 10px;
    }

    .page-home .home-card-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .page-home .home-option-copy strong {
        font-size: 13px;
    }

    .page-home .home-option-copy small {
        display: none;
    }

    .page-home .home-option-card em {
        width: 22px;
        overflow: hidden;
        font-size: 0;
    }

    .page-home .home-option-card em span {
        font-size: 14px;
    }

    .page-home .home-benefits-layout {
        gap: 16px;
    }

    .page-home .home-benefits .home-section-heading > p:last-child {
        font-size: 12.5px;
        line-height: 1.55;
    }

    .page-home .home-benefit-grid {
        gap: 7px;
    }

    .page-home .home-benefit {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 10px;
        padding: 12px;
        border-radius: 14px;
    }

    .page-home .home-benefit h3 {
        font-size: 13.5px;
    }

    .page-home .home-benefit p {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        font-size: 11px;
        line-height: 1.45;
    }

    /* Exam hub */
    .page-exams .exam-hub-intro-inner {
        gap: 8px;
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .page-exams .exam-hub-intro h1 {
        margin-top: 6px;
        font-size: 30px;
        line-height: 1.05;
    }

    .page-exams .exam-hub-intro p {
        max-width: 100%;
        font-size: 12.5px;
        line-height: 1.48;
    }

    .page-exams .exam-hub-content {
        padding-top: 14px;
        padding-bottom: 34px;
    }

    .page-exams .exam-overview-card {
        gap: 11px;
        padding: 14px;
        border-radius: 16px;
    }

    .page-exams .exam-overview-main {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 10px;
    }

    .page-exams .exam-overview-mark {
        width: 40px;
        height: 40px;
        border-radius: 11px;
    }

    .page-exams .exam-overview-kicker {
        font-size: 8.5px;
    }

    .page-exams .exam-overview-title {
        font-size: 20px;
    }

    .page-exams .exam-overview-description {
        display: none;
    }

    .page-exams .exam-overview-stats > span {
        min-height: 43px;
        padding: 6px 4px;
    }

    .page-exams .exam-overview-stats strong {
        font-size: 15px;
    }

    .page-exams .exam-overview-stats small {
        font-size: 7.5px;
    }

    .page-exams .exam-overview-action {
        min-height: 40px;
        border-radius: 12px;
        font-size: 12px;
    }

    .page-exams .exam-hub-tests {
        margin-top: 28px;
    }

    .page-exams .exam-hub-section-head {
        align-items: end;
        gap: 10px;
        margin-bottom: 12px;
    }

    .page-exams .exam-hub-section-head h2 {
        font-size: 26px;
        line-height: 1.07;
    }

    .page-exams .exam-hub-section-head p {
        font-size: 12px;
        line-height: 1.5;
    }

    .page-exams .exam-hub-section-count {
        display: none;
    }

    .page-exams .exam-hub-card-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .page-exams .exam-hub-card {
        min-height: 0;
        padding: 13px;
        border-radius: 15px;
    }

    .page-exams .exam-hub-card-topline {
        margin-bottom: 8px;
    }

    .page-exams .exam-hub-card-icon {
        width: 39px;
        height: 39px;
        border-radius: 10px;
    }

    .page-exams .exam-hub-card-copy h3 {
        font-size: 17px;
    }

    .page-exams .exam-hub-card-copy p {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 1;
        font-size: 11px;
    }

    .page-exams .exam-hub-card-foot {
        margin-top: 10px;
        padding-top: 9px;
    }

    .page-exams .exam-hub-card-foot > span {
        display: none;
    }

    .page-exams .exam-hub-card-foot strong {
        margin-left: auto;
        font-size: 11px;
    }

    /* Traffic signs */
    .page-traffic-signs .traffic-hub-intro-inner {
        gap: 10px;
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .page-traffic-signs .traffic-hub-intro h1 {
        margin-top: 6px;
        font-size: 30px;
        line-height: 1.05;
    }

    .page-traffic-signs .traffic-hub-intro p {
        font-size: 12.5px;
        line-height: 1.48;
    }

    .page-traffic-signs .traffic-hub-intro-stats {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        border-radius: 13px;
    }

    .page-traffic-signs .traffic-hub-intro-stats span {
        min-height: 44px;
        padding: 7px 10px;
        font-size: 8.5px;
    }

    .page-traffic-signs .traffic-hub-intro-stats strong {
        font-size: 15px;
    }

    .page-traffic-signs .traffic-hub-content {
        padding-top: 12px;
        padding-bottom: 34px;
    }

    .page-traffic-signs .traffic-hub-toolbar {
        gap: 8px;
        margin-bottom: 9px;
        padding: 7px;
        border-radius: 14px;
    }

    .page-traffic-signs .traffic-hub-filters {
        width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .page-traffic-signs .traffic-hub-filters::-webkit-scrollbar {
        display: none;
    }

    .page-traffic-signs .traffic-hub-filters button {
        min-height: 34px;
        flex: 0 0 auto;
        padding: 7px 10px;
        font-size: 9.5px;
    }

    .page-traffic-signs .traffic-hub-toolbar-side {
        display: none;
    }

    .page-traffic-signs .traffic-hub-card-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .page-traffic-signs .traffic-hub-card {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 11px;
        min-height: 0;
        padding: 11px;
        padding-bottom: 15px;
        border-radius: 16px;
    }

    .page-traffic-signs .traffic-hub-card-art {
        width: 72px;
        height: 72px;
        border-radius: 13px;
    }

    .page-traffic-signs .traffic-hub-card-copy {
        min-width: 0;
    }

    .page-traffic-signs .traffic-hub-card-top {
        margin-bottom: 2px;
    }

    .page-traffic-signs .traffic-hub-card-count {
        font-size: 8px;
    }

    .page-traffic-signs .traffic-hub-card-copy h3 {
        margin-top: 3px;
        font-size: 15px;
        line-height: 1.12;
    }

    .page-traffic-signs .traffic-hub-card-copy p {
        display: -webkit-box;
        overflow: hidden;
        margin-top: 4px;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 1;
        font-size: 10px;
    }

    .page-traffic-signs .traffic-hub-card-copy strong {
        margin-top: 7px;
        font-size: 10.5px;
    }

    .page-traffic-signs .traffic-hub-card-progress {
        min-height: 22px;
        padding: 4px 7px;
        font-size: 8px;
    }

    .page-traffic-signs .traffic-hub-card-track {
        left: 11px;
        right: 11px;
        bottom: 7px;
        height: 2px;
        border-radius: 999px;
    }

    /* Lessons */
    .page-lessons .lesson-library-layout {
        gap: 18px;
        padding-top: 18px;
        padding-bottom: 30px;
    }

    .page-lessons .lesson-library-rail {
        display: block;
        padding: 17px;
        border-radius: 17px;
    }

    .page-lessons .lesson-library-rail-label {
        font-size: 9px;
    }

    .page-lessons .lesson-library-rail h1 {
        margin-top: 7px;
        font-size: 25px !important;
        line-height: 1.08;
    }

    .page-lessons .lesson-library-rail > p {
        margin-top: 9px;
        font-size: 12.5px;
        line-height: 1.55;
    }

    .page-lessons .lesson-library-rail-metrics {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-top: 14px;
        padding: 10px 0;
    }

    .page-lessons .lesson-library-rail-metrics span {
        display: grid;
        gap: 2px;
        font-size: 9px;
    }

    .page-lessons .lesson-library-rail-metrics b {
        font-size: 15px;
    }

    .page-lessons .lesson-library-rail .button {
        min-height: 42px;
        margin-top: 12px;
        border-radius: 12px;
        font-size: 12px;
    }

    .page-lessons .lesson-library-section {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .page-lessons .lesson-library-section:first-child {
        padding-top: 0;
    }

    .page-lessons .lesson-library-section-head {
        align-items: end;
        gap: 10px;
        margin-bottom: 12px;
    }

    .page-lessons .lesson-library-section-head h2 {
        font-size: 26px;
        line-height: 1.08;
    }

    .page-lessons .lesson-library-section-head small {
        font-size: 9px;
    }

    .page-lessons .lesson-module-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .page-lessons .lesson-module {
        min-height: 0;
        grid-template-columns: 28px 38px minmax(0, 1fr) 22px;
        gap: 9px;
        padding: 12px;
        border-radius: 15px;
    }

    .page-lessons .lesson-module-index {
        font-size: 9px;
    }

    .page-lessons .lesson-module-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .page-lessons .lesson-module-copy > span {
        font-size: 8px;
    }

    .page-lessons .lesson-module-copy h3 {
        font-size: 15px;
    }

    .page-lessons .lesson-module-copy p {
        display: none;
    }

    .page-lessons .lesson-module-action {
        width: 22px;
        overflow: hidden;
        font-size: 0;
    }

    .page-lessons .lesson-module-action i {
        font-size: 14px;
    }

    .page-lessons .lesson-question-library-card {
        grid-template-columns: 42px minmax(0, 1fr) 24px;
        gap: 10px;
        padding: 14px;
        border-radius: 16px;
    }

    .page-lessons .lesson-question-library-icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .page-lessons .lesson-question-library-copy strong {
        font-size: 15px;
    }

    .page-lessons .lesson-question-library-copy > span,
    .page-lessons .lesson-question-library-features {
        display: none;
    }

    .page-lessons .lesson-question-library-action {
        width: 24px;
        overflow: hidden;
        font-size: 0;
    }

    .page-lessons .lesson-question-library-action b {
        font-size: 14px;
    }

    .page-lessons .lesson-guide-list {
        gap: 7px;
    }

    .page-lessons .lesson-guide-row {
        grid-template-columns: 36px minmax(0, 1fr) auto 22px;
        gap: 9px;
        min-height: 0;
        padding: 11px 12px;
        border-radius: 14px;
    }

    .page-lessons .lesson-guide-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .page-lessons .lesson-guide-copy strong {
        font-size: 13px;
    }

    .page-lessons .lesson-guide-copy small {
        display: none;
    }

    .page-lessons .lesson-guide-count {
        font-size: 9px;
    }

    .page-lessons .lesson-library-cta {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 8px;
        margin-bottom: 30px;
        padding: 17px;
        border-radius: 17px;
    }

    .page-lessons .lesson-library-cta h2 {
        font-size: 22px;
        line-height: 1.1;
    }

    .page-lessons .lesson-library-cta .button {
        width: 100%;
    }

    /* Guide */
    .page-guide .guide-index-page .guide-hero {
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .page-guide .guide-index-page .guide-hero-grid {
        gap: 14px;
        padding: 17px;
        border-radius: 18px;
    }

    .page-guide .guide-index-page .guide-breadcrumb {
        margin-bottom: 9px;
        font-size: 10px;
    }

    .page-guide .guide-index-page .guide-hero-meta {
        gap: 6px;
        margin-bottom: 10px;
    }

    .page-guide .guide-index-page .guide-hero-meta span {
        min-height: 27px;
        padding: 5px 9px;
        font-size: 8.5px;
    }

    .page-guide .guide-index-page .guide-hero h1 {
        font-size: 32px;
        line-height: 1.03;
    }

    .page-guide .guide-index-page .guide-hero-copy > p {
        margin-top: 12px;
        font-size: 13px;
        line-height: 1.55;
    }

    .page-guide .guide-index-page .guide-hero-actions {
        gap: 6px;
        margin-top: 16px;
    }

    .page-guide .guide-index-page .guide-hero-actions .button {
        min-height: 43px;
        border-radius: 12px;
        font-size: 12px;
    }

    .page-guide .guide-index-page .guide-text-link {
        min-height: 34px;
        justify-content: center;
        font-size: 11px;
    }

    .page-guide .guide-index-page .guide-route-card {
        display: none;
    }

    .page-guide .guide-index-page .guide-pathfinder {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .page-guide .guide-index-page .guide-pathfinder-head {
        gap: 8px;
        margin-bottom: 12px;
    }

    .page-guide .guide-index-page .guide-pathfinder-head h2 {
        font-size: 26px;
        line-height: 1.08;
    }

    .page-guide .guide-index-page .guide-pathfinder-head > p {
        font-size: 12px;
        line-height: 1.5;
    }

    .page-guide .guide-index-page .guide-pathfinder-grid {
        gap: 7px;
    }

    .page-guide .guide-index-page .guide-pathfinder-grid > a {
        min-height: 0;
        grid-template-columns: 34px minmax(0, 1fr) 22px;
        gap: 9px;
        padding: 12px;
        border-radius: 14px;
    }

    .page-guide .guide-index-page .guide-pathfinder-icon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        font-size: 9px;
    }

    .page-guide .guide-index-page .guide-pathfinder-grid strong {
        font-size: 13px;
    }

    .page-guide .guide-index-page .guide-pathfinder-grid p {
        display: none;
    }

    .page-guide .guide-index-page .guide-index-layout {
        grid-template-columns: 1fr;
        gap: 14px;
        padding-top: 26px;
        padding-bottom: 26px;
    }

    .page-guide .guide-index-page .guide-process-intro {
        position: static;
    }

    .page-guide .guide-index-page .guide-process-intro h2 {
        font-size: 27px;
        line-height: 1.08;
    }

    .page-guide .guide-index-page .guide-process-intro > p:last-of-type {
        font-size: 12px;
        line-height: 1.5;
    }

    .page-guide .guide-index-page .guide-process-flow {
        padding: 7px;
        border-radius: 17px;
    }

    .page-guide .guide-index-page .guide-process-phase {
        padding: 13px;
        border-radius: 14px;
    }

    .page-guide .guide-index-page .guide-process-phase-head {
        margin-bottom: 9px;
    }

    .page-guide .guide-index-page .guide-process-phase-head h3 {
        font-size: 18px;
    }

    .page-guide .guide-index-page .guide-process-phase-head p {
        font-size: 10.5px;
    }

    .page-guide .guide-index-page .guide-process-row {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 9px;
        padding: 10px;
        border-radius: 13px;
    }

    .page-guide .guide-index-page .guide-process-node {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        font-size: 10px;
    }

    .page-guide .guide-index-page .guide-process-row-head h4 {
        font-size: 13px;
    }

    .page-guide .guide-index-page .guide-process-row-head > span {
        font-size: 8.5px;
    }

    .page-guide .guide-index-page .guide-process-row-body > p {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        font-size: 11px;
        line-height: 1.45;
    }

    .page-guide .guide-index-page .guide-process-row-body > a {
        font-size: 10.5px;
    }

    .page-guide .guide-index-page .guide-directory {
        padding-top: 26px;
        padding-bottom: 26px;
    }

    .page-guide .guide-index-page .guide-directory-head {
        gap: 8px;
        margin-bottom: 12px;
    }

    .page-guide .guide-index-page .guide-directory-head h2 {
        font-size: 26px;
        line-height: 1.08;
    }

    .page-guide .guide-index-page .guide-directory-head > p {
        font-size: 12px;
    }

    .page-guide .guide-index-page .guide-directory-grid {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .page-guide .guide-index-page .guide-directory-card {
        min-height: 0;
        grid-template-columns: 28px minmax(0, 1fr) 22px;
        gap: 9px;
        padding: 12px;
        border-radius: 14px;
    }

    .page-guide .guide-index-page .guide-directory-copy strong {
        font-size: 13px;
    }

    .page-guide .guide-index-page .guide-directory-copy p {
        display: none;
    }

    .page-guide .guide-index-page .guide-index-note {
        gap: 12px;
        margin-top: 20px;
        margin-bottom: 28px;
        padding: 16px;
        border-radius: 16px;
    }

    .page-guide .guide-index-page .guide-index-note-icon {
        display: none;
    }

    .page-guide .guide-index-page .guide-index-note h2 {
        font-size: 22px;
        line-height: 1.1;
    }

    .page-guide .guide-index-page .guide-index-note p:last-child {
        display: none;
    }

    .page-guide .guide-index-page .guide-index-note .button {
        min-height: 42px;
        border-radius: 12px;
        font-size: 12px;
    }
}

@media (max-width: 420px) {
    .site-header > .shell,
    .site-footer > .shell,
    .site-header .mobile-nav-shell,
    .page-home .shell,
    .page-exams .shell,
    .page-traffic-signs .shell,
    .page-lessons .shell,
    .page-guide .shell {
        width: min(100% - 20px, 1240px) !important;
    }

    .site-header .brand-title {
        font-size: 21px;
    }

    .site-header .brand-tagline {
        font-size: 7px;
    }

    .site-header .mobile-nav-shell nav,
    .site-header .mobile-nav-actions {
        grid-template-columns: 1fr;
    }

    .footer-grid.footer-grid-enhanced {
        grid-template-columns: 1fr 1fr;
        gap: 18px 12px;
    }

    .page-home .home-hero h1 {
        font-size: 32px;
    }

    .page-home .home-proof-list dd {
        max-width: 72px;
        font-size: 8px;
    }

    .page-home .home-section-heading h2,
    .page-exams .exam-hub-section-head h2,
    .page-lessons .lesson-library-section-head h2,
    .page-guide .guide-index-page .guide-pathfinder-head h2,
    .page-guide .guide-index-page .guide-directory-head h2 {
        font-size: 24px;
    }

    .page-home .home-heading-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .page-home .home-topic-card {
        grid-template-columns: 36px minmax(0, 1fr) 22px;
    }

    .page-exams .exam-hub-intro h1,
    .page-traffic-signs .traffic-hub-intro h1 {
        font-size: 28px;
    }

    .page-traffic-signs .traffic-hub-card {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .page-traffic-signs .traffic-hub-card-art {
        width: 64px;
        height: 64px;
    }

    .page-lessons .lesson-module {
        grid-template-columns: 24px 34px minmax(0, 1fr) 20px;
    }

    .page-guide .guide-index-page .guide-hero h1 {
        font-size: 29px;
    }
}


/* Mobile minimalisation repair v76.
   Phone-only corrections for the lesson library overflow and home mobile density. */
@media (max-width: 680px) {
    /* Lesson library: force a true single-column flow on phones. */
    .page-lessons .lesson-library-layout {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        padding-top: 16px;
        padding-bottom: 30px;
    }

    .page-lessons .lesson-library-rail,
    .page-lessons .lesson-library-content,
    .page-lessons .lesson-library-section,
    .page-lessons .lesson-module-grid,
    .page-lessons .lesson-module {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .page-lessons .lesson-library-rail {
        position: static !important;
        display: block !important;
        margin: 0 !important;
        padding: 18px !important;
        overflow: hidden;
        border-radius: 18px !important;
    }

    .page-lessons .lesson-library-rail h1,
    .page-lessons .lesson-library-rail p,
    .page-lessons .lesson-library-rail-label,
    .page-lessons .lesson-library-rail-metrics,
    .page-lessons .lesson-library-rail .button {
        grid-column: auto !important;
        grid-row: auto !important;
    }

    .page-lessons .lesson-library-rail h1 {
        max-width: none;
        margin-top: 7px;
        font-size: 24px !important;
        line-height: 1.1;
    }

    .page-lessons .lesson-library-rail > p {
        max-width: none;
        margin-top: 10px;
        font-size: 12.5px;
        line-height: 1.55;
    }

    .page-lessons .lesson-library-rail-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100% !important;
        margin-top: 14px !important;
        padding: 11px 0 !important;
    }

    .page-lessons .lesson-library-rail .button {
        width: 100% !important;
        margin-top: 12px !important;
    }

    .page-lessons .lesson-library-content {
        margin-top: 22px;
        overflow: hidden;
    }

    .page-lessons .lesson-library-section {
        padding-top: 0;
        padding-bottom: 22px;
    }

    .page-lessons .lesson-library-section + .lesson-library-section {
        margin-top: 28px;
        padding-top: 28px;
    }

    .page-lessons .lesson-library-section-head {
        display: flex;
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 12px;
    }

    .page-lessons .lesson-library-section-head h2 {
        max-width: 100%;
        font-size: 25px;
        line-height: 1.08;
        overflow-wrap: anywhere;
    }

    .page-lessons .lesson-library-section-head small {
        align-self: flex-start;
    }

    .page-lessons .lesson-module-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    /* Home hero metrics: keep the compact row dark and readable. */
    html[data-theme="dark"] .page-home .home-proof-list {
        border-color: #344253;
        background: linear-gradient(180deg, #202936, #19212b) !important;
        box-shadow: none;
    }

    html[data-theme="dark"] .page-home .home-proof-list > div {
        background: transparent !important;
    }

    html[data-theme="dark"] .page-home .home-proof-list > div + div {
        border-left-color: #344253 !important;
    }

    html[data-theme="dark"] .page-home .home-proof-list dt {
        color: #f4f7fb !important;
    }

    html[data-theme="dark"] .page-home .home-proof-list dd {
        color: #9eabbc !important;
    }

    /* Home study path: reduce vertical weight and keep arrows aligned. */
    .page-home .home-study {
        padding-top: 34px;
        padding-bottom: 38px;
    }

    .page-home .home-study-grid {
        gap: 8px;
    }

    .page-home .home-study-main {
        min-height: 0 !important;
        gap: 14px;
        padding: 17px !important;
        border-radius: 17px;
    }

    .page-home .home-study-main::after {
        right: -54px;
        bottom: -62px;
        width: 150px;
        height: 150px;
        border-width: 28px;
    }

    .page-home .home-study-main-top {
        gap: 10px;
    }

    .page-home .home-study-number {
        font-size: 25px;
    }

    .page-home .home-study-badge {
        padding: 6px 9px;
        font-size: 9.5px;
    }

    .page-home .home-study-main > div > p:first-child {
        margin-bottom: 5px;
        font-size: 10.5px;
    }

    .page-home .home-study-main h3 {
        max-width: 100%;
        font-size: 25px !important;
        line-height: 1.06;
    }

    .page-home .home-study-meta {
        gap: 5px 12px;
        margin-top: 2px;
    }

    .page-home .home-study-meta li {
        min-height: auto;
        padding: 0 0 0 10px;
        font-size: 9.5px;
    }

    .page-home .home-study-meta li::before {
        width: 4px;
        height: 4px;
    }

    .page-home .home-study-main form,
    .page-home .home-panel-action {
        width: 100%;
    }

    .page-home .home-panel-action {
        min-height: 42px;
        min-width: 0;
        border-radius: 12px;
        font-size: 12px;
    }

    .page-home .home-study-options {
        gap: 7px;
    }

    .page-home .home-option-card {
        min-height: 62px !important;
        grid-template-columns: 34px minmax(0, 1fr) 22px !important;
        gap: 10px !important;
        padding: 10px 12px !important;
        border-radius: 14px !important;
    }

    .page-home .home-option-index {
        display: none;
    }

    .page-home .home-card-icon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .page-home .home-card-icon svg {
        width: 17px;
        height: 17px;
    }

    .page-home .home-option-copy strong {
        font-size: 13.5px;
        line-height: 1.15;
    }

    .page-home .home-option-copy small {
        display: none;
    }

    .page-home .home-option-card em {
        grid-column: 3 !important;
        grid-row: 1 !important;
        justify-self: end;
        align-self: center;
        width: 22px;
        margin: 0 !important;
        overflow: visible;
        font-size: 0;
    }

    .page-home .home-option-card em span {
        font-size: 15px;
    }
}

@media (max-width: 420px) {
    .page-lessons .lesson-library-rail {
        padding: 16px !important;
    }

    .page-lessons .lesson-library-rail h1 {
        font-size: 23px !important;
    }

    .page-lessons .lesson-library-content {
        margin-top: 18px;
    }

    .page-home .home-study-main h3 {
        font-size: 23px !important;
    }

    .page-home .home-option-card {
        min-height: 58px !important;
    }
}

/* Mobile app experience v77.
   Phone-only. Desktop/tablet remain unchanged.
   Focus: stable traffic-sign swipes, compact navigation, shorter reading paths,
   touch-friendly controls and reduced decorative weight. */
@media (max-width: 680px) {
    html {
        scroll-padding-top: 62px;
    }

    html.mobile-menu-open,
    html.mobile-menu-open body {
        overflow: hidden;
    }

    body {
        overflow-x: hidden;
        -webkit-tap-highlight-color: transparent;
        text-rendering: optimizeLegibility;
    }

    main,
    main > *,
    .shell,
    .narrow {
        min-width: 0;
    }

    button,
    a,
    input,
    select,
    textarea {
        touch-action: manipulation;
    }

    .shell,
    .narrow,
    .site-header > .shell,
    .site-footer > .shell,
    .site-header .mobile-nav-shell,
    .page-home .shell,
    .page-exams .shell,
    .page-traffic-signs .shell,
    .page-lessons .shell,
    .page-guide .shell,
    .page-account .shell,
    .page-trust .shell,
    .page-contact .shell,
    .page-question-library .shell {
        width: min(100% - 20px, 1240px) !important;
    }

    /* Compact app header and menu drawer. */
    .site-header {
        z-index: 80;
    }

    .site-header .nav {
        min-height: 58px;
    }

    .site-header .brand-title {
        font-size: 22px;
    }

    .site-header .brand-divider {
        height: 23px;
    }

    .site-header .brand-tagline {
        font-size: 7px;
        line-height: 1.15;
    }

    .site-header .mobile-nav-toggle {
        width: 40px;
        min-width: 40px;
        height: 40px;
        min-height: 40px;
        border-radius: 13px;
    }

    .site-header .mobile-nav-panel:not([hidden]) {
        position: fixed;
        inset: 58px 0 auto;
        z-index: 79;
        max-height: calc(100dvh - 58px);
        overflow-y: auto;
        overscroll-behavior: contain;
        border-radius: 0 0 20px 20px;
    }

    .site-header .mobile-nav-shell {
        gap: 8px;
        padding-top: 10px;
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }

    .site-header .mobile-nav-shell nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .site-header .mobile-nav-shell nav a,
    .site-header .mobile-nav-actions .button,
    .site-header .mobile-nav-actions .theme-toggle {
        min-height: 42px;
        border-radius: 12px;
        font-size: 12px;
    }

    .site-header .mobile-nav-actions {
        gap: 6px;
        padding-top: 8px;
    }

    /* Compact footer. Functional screens hide it completely below. */
    .site-footer {
        padding: 22px 0 max(18px, env(safe-area-inset-bottom));
    }

    .footer-grid.footer-grid-enhanced {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 12px;
    }

    .footer-grid-enhanced .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-grid-enhanced .footer-brand p,
    .footer-support-links {
        display: none;
    }

    .footer-grid-enhanced .footer-links {
        gap: 6px;
    }

    .footer-grid-enhanced .footer-links strong {
        font-size: 11px;
    }

    .footer-grid-enhanced .footer-links a,
    .footer-grid-enhanced .footer-cookie-button {
        font-size: 10.5px;
        line-height: 1.35;
    }

    /* Cookie UI behaves like a bottom sheet. */
    .cookie-consent {
        left: 10px;
        right: 10px;
        bottom: max(10px, env(safe-area-inset-bottom));
        gap: 12px;
        padding: 14px;
        border-radius: 18px;
    }

    .cookie-consent-copy p {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        font-size: 11px;
    }

    .cookie-consent-actions {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .cookie-consent-actions .button:last-child {
        grid-column: 1 / -1;
    }

    .cookie-modal {
        align-items: end;
        padding: 10px;
    }

    .cookie-modal-card {
        max-height: calc(100dvh - 20px);
        overflow-y: auto;
        border-radius: 22px 22px 16px 16px;
    }

    /* Home: keep the first decision path above the fold. */
    .page-home .home-hero {
        padding: 18px 0 24px;
    }

    .page-home .home-hero-grid {
        gap: 14px;
    }

    .page-home .home-hero h1 {
        font-size: clamp(31px, 9.6vw, 38px);
        line-height: 1.01;
    }

    .page-home .home-lead {
        margin-top: 12px;
        font-size: 13.5px;
        line-height: 1.52;
    }

    .page-home .home-actions {
        margin-top: 16px;
    }

    .page-home .home-primary-action {
        min-height: 48px;
    }

    .page-home .home-secondary-action {
        min-height: 38px;
    }

    .page-home .home-proof-list {
        margin-top: 12px;
        border-radius: 13px;
    }

    .page-home .home-proof-list > div {
        min-height: 50px;
        padding: 7px 3px;
    }

    .page-home .home-feature-card,
    .page-home .home-feature-card--exam,
    .page-home .home-feature-card--signs {
        padding: 13px;
        border-radius: 15px;
    }

    .page-home .home-topics,
    .page-home .home-final,
    .page-home .home-study,
    .page-home .home-benefits {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .page-home .home-section-heading h2 {
        font-size: 24px;
    }

    .page-home .home-section-heading > p,
    .page-home .home-heading-row > p,
    .page-home .home-benefits .home-section-heading > p:last-child {
        display: none;
    }

    .page-home .home-topic-card,
    .page-home .home-option-card,
    .page-home .home-benefit {
        box-shadow: none;
    }

    .page-home .home-benefit p {
        -webkit-line-clamp: 1;
    }

    /* Exam centre and category lists: row-based, one action per card. */
    .page-exams .exam-hub-intro-inner,
    .page-exams .general-exams-intro-inner,
    .page-exams .category-hero-grid {
        min-height: 0;
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .page-exams .exam-hub-intro h1,
    .page-exams .general-exams-intro h1,
    .page-exams .category-tests-hero h1 {
        font-size: 28px;
        line-height: 1.05;
    }

    .page-exams .exam-hub-intro p,
    .page-exams .general-exams-intro p,
    .page-exams .category-tests-hero p {
        margin-top: 7px;
        font-size: 12px;
        line-height: 1.45;
    }

    .page-exams .category-hero-panel,
    .page-exams .general-exams-summary {
        display: none;
    }

    .page-exams .exam-hub-content,
    .page-exams .general-exams-content,
    .page-exams .category-tests-section {
        padding-top: 18px;
        padding-bottom: 28px;
    }

    .page-exams .exam-overview-card {
        min-height: 0;
        grid-template-columns: 40px minmax(0, 1fr) auto;
        gap: 10px;
        padding: 14px;
        border-radius: 17px;
    }

    .page-exams .exam-overview-description,
    .page-exams .exam-overview-stats,
    .page-exams .exam-overview-ready {
        display: none;
    }

    .page-exams .exam-overview-title {
        font-size: 18px;
    }

    .page-exams .exam-overview-action {
        min-height: 38px;
        padding-inline: 11px;
        font-size: 11px;
    }

    .page-exams .exam-hub-card-grid,
    .page-exams .general-exam-grid,
    .page-exams .exam-row-grid {
        grid-template-columns: 1fr !important;
        gap: 7px;
    }

    .page-exams .exam-hub-card,
    .page-exams .general-exam-item,
    .page-exams .exam-row-card {
        min-height: 0;
        border-radius: 15px;
        box-shadow: none;
    }

    .page-exams .exam-hub-card {
        grid-template-columns: 38px minmax(0, 1fr) auto;
        gap: 10px;
        padding: 12px;
    }

    .page-exams .exam-hub-card-copy p,
    .page-exams .exam-hub-card-foot > span:first-child,
    .page-exams .general-exam-item-copy p,
    .page-exams .exam-row-kicker {
        display: none;
    }

    .page-exams .general-exam-item,
    .page-exams .exam-row-card {
        grid-template-columns: 38px minmax(0, 1fr) 36px;
        gap: 10px;
        padding: 11px 12px;
    }

    .page-exams .general-exam-item-copy h3,
    .page-exams .exam-row-title {
        font-size: 14px;
    }

    /* Traffic hub. */
    .page-traffic-signs .traffic-hub-intro-inner {
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .page-traffic-signs .traffic-hub-intro h1 {
        font-size: 27px;
    }

    .page-traffic-signs .traffic-hub-intro-copy p,
    .page-traffic-signs .traffic-hub-intro-stats {
        display: none;
    }

    .page-traffic-signs .traffic-hub-content {
        padding-top: 12px;
        padding-bottom: 26px;
    }

    .page-traffic-signs .traffic-hub-toolbar {
        gap: 6px;
        padding: 7px;
        border-radius: 14px;
    }

    .page-traffic-signs .traffic-hub-filters {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
    }

    .page-traffic-signs .traffic-hub-filters button {
        min-height: 34px;
        padding: 6px;
        font-size: 9.5px;
    }

    .page-traffic-signs .traffic-hub-toolbar-side {
        display: none;
    }

    .page-traffic-signs .traffic-hub-card-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .page-traffic-signs .traffic-hub-card {
        min-height: 0;
        grid-template-columns: 70px minmax(0, 1fr);
        gap: 11px;
        padding: 10px;
        border-radius: 16px;
        box-shadow: none;
    }

    .page-traffic-signs .traffic-hub-card-art {
        width: 70px;
        height: 70px;
        border-radius: 13px;
    }

    .page-traffic-signs .traffic-hub-card-art img {
        width: 58px;
        height: 58px;
    }

    .page-traffic-signs .traffic-hub-card-top > span:first-child,
    .page-traffic-signs .traffic-hub-card-copy > p,
    .page-traffic-signs .traffic-hub-card-count {
        display: none;
    }

    .page-traffic-signs .traffic-hub-card-copy h2,
    .page-traffic-signs .traffic-hub-card-copy h3 {
        margin-top: 1px;
        font-size: 15px;
    }

    .page-traffic-signs .traffic-hub-card-copy strong {
        margin-top: 7px;
        font-size: 10.5px;
    }

    .page-traffic-signs .traffic-hub-card-track {
        left: 10px;
        right: 10px;
        bottom: 5px;
    }

    /* Traffic deck: fixed geometry, no scroll anchoring, sticky controls. */
    body.traffic-deck-active .site-footer {
        display: none;
    }

    body.traffic-deck-active main {
        min-height: calc(100dvh - 58px);
    }

    .traffic-sign-deck-page {
        min-height: calc(100dvh - 58px);
        padding: 12px 0 max(18px, env(safe-area-inset-bottom));
        overscroll-behavior-y: contain;
    }

    .traffic-signs-back-link {
        margin-bottom: 9px;
        font-size: 11px;
    }

    .traffic-sign-deck-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 108px;
        align-items: center;
        gap: 10px;
        margin-bottom: 9px;
    }

    .traffic-sign-deck-header .eyebrow,
    .traffic-sign-deck-header p,
    .traffic-sign-deck-header-progress span {
        display: none;
    }

    .traffic-sign-deck-header h1 {
        margin: 0;
        font-size: 23px;
        line-height: 1.05;
    }

    .traffic-sign-deck-header-progress {
        width: 108px;
        margin: 0;
        padding: 9px;
        border-radius: 13px;
        box-shadow: none;
    }

    .traffic-sign-deck-header-progress strong {
        margin: 0 0 6px;
        font-size: 13px;
    }

    .traffic-sign-deck-header-progress > div {
        height: 5px;
    }

    .traffic-sign-deck-layout {
        gap: 9px;
    }

    .traffic-sign-deck-main,
    .traffic-sign-deck-stage,
    .traffic-sign-card,
    .traffic-sign-deck-stack,
    .traffic-sign-deck-actions,
    .traffic-sign-deck-sidebar {
        overflow-anchor: none;
    }

    .traffic-sign-deck-stage {
        min-height: 382px;
        padding: 4px 0 10px;
        contain: layout paint;
    }

    .traffic-sign-deck-stack,
    .traffic-sign-card,
    .traffic-sign-deck-complete {
        width: 100%;
        max-width: 430px;
    }

    .traffic-sign-deck-stack {
        height: 356px;
        border-radius: 21px;
    }

    .traffic-sign-card {
        min-height: 356px;
        height: 356px;
        border-radius: 21px;
        touch-action: pan-y pinch-zoom;
        box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
    }

    .traffic-sign-card-image-wrap {
        flex: 0 0 235px;
        min-height: 235px;
        padding: 14px 16px 6px;
    }

    .traffic-sign-card-image-wrap img {
        width: min(230px, 78%);
        height: 214px;
    }

    .traffic-sign-card-copy {
        min-height: 121px;
        display: grid;
        place-content: center;
        padding: 13px 16px 16px;
    }

    .traffic-sign-card-copy span {
        justify-self: center;
        padding: 4px 8px;
        font-size: 9px;
    }

    .traffic-sign-card-copy h2 {
        margin-top: 8px;
        font-size: 22px;
        line-height: 1.08;
    }

    .traffic-sign-card-badge {
        top: 18px;
        padding: 7px 10px;
        font-size: 12px;
    }

    .traffic-sign-deck-actions {
        position: sticky;
        bottom: max(8px, env(safe-area-inset-bottom));
        z-index: 12;
        width: 100%;
        max-width: 430px;
        grid-template-columns: 1fr 42px 1fr;
        gap: 6px;
        padding: 6px;
        border: 1px solid var(--color-border, var(--line));
        border-radius: 17px;
        background: color-mix(in srgb, var(--color-surface, #fff) 92%, transparent);
        backdrop-filter: blur(14px);
        box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
    }

    .traffic-sign-action,
    .traffic-sign-undo {
        min-height: 44px;
        border-radius: 12px;
    }

    .traffic-sign-action {
        padding: 7px 5px;
        font-size: 11px;
    }

    .traffic-sign-deck-sidebar {
        grid-template-columns: 1fr 1fr;
        gap: 7px;
        max-width: 430px;
        margin-inline: auto;
    }

    .traffic-sign-sidebar-card {
        padding: 11px 12px;
        border-radius: 14px;
        box-shadow: none;
    }

    .traffic-sign-sidebar-card > strong {
        margin-top: 3px;
        font-size: 24px;
    }

    .traffic-sign-sidebar-card--hint {
        display: none;
    }

    .traffic-sign-deck-live {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
    }

    /* Lesson library, category and reader. */
    .page-lessons .lesson-library-layout {
        display: block !important;
        padding-top: 14px;
        padding-bottom: 24px;
    }

    .page-lessons .lesson-library-rail {
        padding: 16px !important;
        border-radius: 17px !important;
    }

    .page-lessons .lesson-library-rail-label {
        font-size: 9px;
    }

    .page-lessons .lesson-library-rail h1 {
        font-size: 23px !important;
    }

    .page-lessons .lesson-library-rail > p {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    .page-lessons .lesson-library-rail-metrics {
        margin-top: 12px !important;
        padding: 10px 0 !important;
    }

    .page-lessons .lesson-library-rail .button {
        min-height: 43px;
    }

    .page-lessons .lesson-library-content {
        margin-top: 18px;
    }

    .page-lessons .lesson-library-section + .lesson-library-section {
        margin-top: 22px;
        padding-top: 22px;
    }

    .page-lessons .lesson-library-section-head h2 {
        font-size: 23px;
    }

    .page-lessons .lesson-module,
    .page-lessons .lesson-guide-row {
        box-shadow: none;
    }

    .page-lessons .lesson-category-header,
    .page-lessons .lesson-reader-header {
        margin-top: 12px;
        padding: 16px;
        border-radius: 18px;
    }

    .page-lessons .lesson-category-heading h1,
    .page-lessons .lesson-reader-heading h1 {
        font-size: 26px;
        line-height: 1.05;
    }

    .page-lessons .lesson-category-heading p,
    .page-lessons .lesson-reader-breadcrumb {
        font-size: 10.5px;
    }

    .page-lessons .lesson-category-content {
        padding-top: 18px;
        padding-bottom: 28px;
    }

    .page-lessons .lesson-category-row {
        grid-template-columns: 36px minmax(0, 1fr) 28px;
        gap: 9px;
        min-height: 0;
        padding: 11px;
        border-radius: 14px;
    }

    .page-lessons .lesson-category-copy p {
        display: none;
    }

    .page-lessons .lesson-reader-layout {
        display: block;
        padding-top: 16px;
        padding-bottom: 28px;
    }

    .page-lessons .lesson-reader-sidebar {
        display: none;
    }

    .page-lessons .lesson-reader-article {
        padding: 18px;
        border-radius: 18px;
        font-size: 14.5px;
        line-height: 1.7;
    }

    .page-lessons .lesson-reader-article h2 {
        margin-top: 24px;
        font-size: 22px;
    }

    .page-lessons .lesson-reader-article h3 {
        margin-top: 20px;
        font-size: 18px;
    }

    .page-lessons .lesson-reader-footer {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    /* Guide index and article. */
    .page-guide .guide-index-page .guide-hero,
    .page-guide .guide-detail-page .guide-article-hero {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .page-guide .guide-index-page .guide-hero-grid,
    .page-guide .guide-detail-page .guide-article-shell {
        padding: 16px;
        border-radius: 18px;
    }

    .page-guide .guide-index-page .guide-breadcrumb,
    .page-guide .guide-detail-page .guide-breadcrumb {
        display: none;
    }

    .page-guide .guide-index-page .guide-hero h1,
    .page-guide .guide-detail-page .guide-article-hero h1 {
        font-size: 28px;
        line-height: 1.04;
    }

    .page-guide .guide-index-page .guide-hero-copy > p,
    .page-guide .guide-detail-page .guide-article-shell > p {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        font-size: 12.5px;
    }

    .page-guide .guide-index-page .guide-hero-actions {
        margin-top: 14px;
    }

    .page-guide .guide-index-page .guide-route-card {
        display: none;
    }

    .page-guide .guide-index-page .guide-pathfinder,
    .page-guide .guide-index-page .guide-index-layout,
    .page-guide .guide-index-page .guide-directory {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .page-guide .guide-index-page .guide-process-intro > p:last-of-type,
    .page-guide .guide-index-page .guide-directory-head > p {
        display: none;
    }

    .page-guide .guide-index-page .guide-process-flow {
        padding: 5px;
        border-radius: 16px;
    }

    .page-guide .guide-index-page .guide-process-phase {
        padding: 11px;
        border-radius: 13px;
    }

    .page-guide .guide-index-page .guide-process-row-body > p {
        -webkit-line-clamp: 1;
    }

    .page-guide .guide-detail-page .guide-article-layout {
        display: block;
        padding-top: 16px;
        padding-bottom: 28px;
    }

    .page-guide .guide-detail-page .guide-article-sidebar {
        display: none;
    }

    .page-guide .guide-detail-page .guide-article {
        font-size: 14.5px;
        line-height: 1.7;
    }

    .page-guide .guide-detail-page .guide-article h2 {
        font-size: 22px;
    }

    .page-guide .guide-detail-page .guide-related-grid {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .page-guide .guide-detail-page .guide-sources {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
        border-radius: 17px;
    }

    .page-guide .guide-detail-page .guide-sources a {
        min-height: 46px;
        padding: 11px 12px;
        border-radius: 12px;
        font-size: 11px;
    }

    /* Account workspace: compact dashboard tiles and horizontally scrollable tabs. */
    .page-account .profile-dashboard {
        padding: 18px 0 32px;
    }

    .page-account .profile-dashboard-shell {
        gap: 12px;
    }

    .page-account .account-workspace-header,
    .page-account .profile-dashboard-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        padding-bottom: 2px;
    }

    .page-account .account-workspace-header h1,
    .page-account .profile-dashboard-header h1 {
        font-size: 27px;
    }

    .page-account .profile-email,
    .page-account .account-workspace-header > div > p:last-child {
        display: none;
    }

    .page-account .profile-nav {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
        scrollbar-width: none;
    }

    .page-account .profile-nav::-webkit-scrollbar {
        display: none;
    }

    .page-account .profile-nav a {
        min-height: 36px;
        flex: 0 0 auto;
        padding: 7px 11px;
        font-size: 11px;
    }

    .page-account .profile-metric-grid,
    .page-account .progress-metric-grid,
    .page-account .history-metric-grid,
    .page-account .saved-metric-grid,
    .page-account .repeat-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .page-account .profile-metric-card {
        min-height: 74px;
        gap: 9px;
        padding: 11px;
        border-radius: 14px;
    }

    .page-account .profile-primary-grid,
    .page-account .profile-secondary-grid,
    .page-account .progress-overview-grid,
    .page-account .progress-analytics-grid,
    .page-account .saved-hero-grid,
    .page-account .repeat-hero-grid {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .page-account .profile-card,
    .page-account .history-filter-panel,
    .page-account .repeat-action-card,
    .page-account .history-results {
        padding: 14px;
        border-radius: 16px;
        box-shadow: none;
    }

    .page-account .profile-recommendation-mascot,
    .page-account .progress-signal-card {
        display: none;
    }

    .page-account .profile-shortcuts,
    .page-account .progress-shortcuts {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .page-account .profile-shortcut-card {
        min-height: 58px;
        padding: 10px 12px;
        border-radius: 14px;
    }

    .page-account .history-filter-primary,
    .page-account .history-filter-secondary,
    .page-account .saved-filter-primary,
    .page-account .repeat-filter-primary {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .page-account .history-session-card,
    .page-account .saved-question-card,
    .page-account .repeat-question-card {
        border-radius: 14px;
        box-shadow: none;
    }

    /* Authentication, legal and contact pages. */
    .page-auth .page-hero,
    .page-trust .page-hero,
    .page-contact .page-hero {
        padding: 24px 0;
    }

    .page-auth .auth-card,
    .page-trust .trust-card,
    .page-contact .contact-card,
    .page-trust .legal-card {
        padding: 18px;
        border-radius: 18px;
        box-shadow: none;
    }

    .page-trust .trust-layout,
    .page-contact .contact-layout {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .page-trust .trust-sidebar,
    .page-contact .trust-sidebar {
        display: none;
    }

    /* Active exam is a focused app screen. Result keeps the compact header. */
    .page-exam-active .site-header,
    .page-exam-active .site-footer {
        display: none;
    }

    .page-exam-active .exam-shell {
        min-height: 100dvh;
        padding-top: 0;
        padding-bottom: max(18px, env(safe-area-inset-bottom));
    }

    .page-exam-active .exam-mobile-status {
        top: 0;
        margin-top: -13px;
        padding-top: max(11px, env(safe-area-inset-top));
    }

    .page-exam-active .question-action-slot {
        position: sticky;
        bottom: max(8px, env(safe-area-inset-bottom));
        z-index: 9;
        padding: 6px;
        border: 1px solid var(--color-border, var(--line));
        border-radius: 16px;
        background: color-mix(in srgb, var(--color-surface, #fff) 92%, transparent);
        backdrop-filter: blur(14px);
    }

    .page-exam-active .exam-side {
        margin-top: 4px;
    }

    .page-exam-result .exam-result-v2-hero,
    .page-exam-result .exam-result-v2-main {
        padding-top: 18px;
        padding-bottom: 28px;
    }

    .page-exam-result .exam-result-v2-hero-grid,
    .page-exam-result .exam-result-v2-category-grid,
    .page-exam-result .exam-result-v2-answer-grid {
        grid-template-columns: 1fr;
    }

    .page-exam-result .exam-result-v2-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .page-exam-result .exam-result-v2-section,
    .page-exam-result .exam-result-v2-review-card {
        border-radius: 16px;
        box-shadow: none;
    }
}

@media (max-width: 420px) {
    .site-header .mobile-nav-shell nav,
    .site-header .mobile-nav-actions {
        grid-template-columns: 1fr 1fr;
    }

    .page-home .home-hero h1 {
        font-size: 31px;
    }

    .page-exams .exam-overview-card {
        grid-template-columns: 36px minmax(0, 1fr);
    }

    .page-exams .exam-overview-end {
        grid-column: 1 / -1;
    }

    .traffic-sign-deck-header {
        grid-template-columns: minmax(0, 1fr) 96px;
    }

    .traffic-sign-deck-header-progress {
        width: 96px;
    }

    .traffic-sign-deck-stage {
        min-height: 362px;
    }

    .traffic-sign-deck-stack,
    .traffic-sign-card {
        height: 338px;
        min-height: 338px;
    }

    .traffic-sign-card-image-wrap {
        flex-basis: 220px;
        min-height: 220px;
    }

    .traffic-sign-card-image-wrap img {
        height: 198px;
    }

    .traffic-sign-card-copy {
        min-height: 118px;
    }

    .traffic-sign-action strong {
        font-size: 10px;
    }

    .page-account .profile-metric-grid,
    .page-account .progress-metric-grid,
    .page-account .history-metric-grid,
    .page-account .saved-metric-grid,
    .page-account .repeat-metric-grid {
        gap: 6px;
    }
}

@media (max-width: 680px) {
    body.traffic-deck-active,
    body.traffic-deck-active .traffic-sign-deck-page,
    body.traffic-deck-active .traffic-sign-deck-page .shell,
    body.traffic-deck-active .traffic-sign-deck-layout {
        overflow-anchor: none;
    }
}

/* Mobile application shell v78.
   Phone-only refinements: persistent bottom navigation, reliable menu drawer,
   explicit exam completion control and shorter task-oriented page headers. */

.exam-finish-modal[hidden] {
    display: none;
}

.exam-finish-modal {
    position: fixed;
    inset: 0;
    z-index: 1210;
    display: grid;
    place-items: center;
    padding: 20px;
}

.exam-finish-modal-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
    border-radius: 14px;
    color: #0d6a4f;
    background: #dff7ee;
    font-size: 20px;
    font-weight: 900;
}

.exam-mobile-finish-form,
.mobile-app-bar,
.mobile-nav-backdrop,
.mobile-nav-panel-head,
.mobile-nav-more {
    display: none;
}

@media (max-width: 680px) {
    :root {
        --mobile-app-bar-height: 64px;
    }

    html {
        scroll-padding-top: 64px;
    }

    body {
        padding-bottom: calc(var(--mobile-app-bar-height) + env(safe-area-inset-bottom));
    }

    html.mobile-menu-open body {
        position: fixed;
        inset-inline: 0;
        width: 100%;
        overflow: hidden;
    }

    .site-header {
        isolation: isolate;
        z-index: 1000;
    }

    .site-header > .shell {
        position: relative;
        z-index: 3;
    }

    .site-header .mobile-nav-toggle[aria-expanded="true"] span {
        background: transparent;
    }

    .site-header .mobile-nav-toggle[aria-expanded="true"] span::before {
        top: 0;
        transform: rotate(45deg);
    }

    .site-header .mobile-nav-toggle[aria-expanded="true"] span::after {
        top: 0;
        transform: rotate(-45deg);
    }

    .site-header .mobile-nav-toggle span::before,
    .site-header .mobile-nav-toggle span::after {
        transition: top 160ms ease, transform 160ms ease;
    }

    .site-header .mobile-nav-panel:not([hidden]) {
        position: fixed;
        inset: var(--mobile-header-height, 58px) 10px calc(var(--mobile-app-bar-height) + 10px + env(safe-area-inset-bottom));
        z-index: 2;
        display: block;
        max-height: none;
        overflow-y: auto;
        overscroll-behavior: contain;
        border: 1px solid var(--color-border, var(--line));
        border-radius: 20px;
        background: var(--color-surface, #fff);
        box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
        animation: mobileMenuIn 170ms ease-out;
    }

    .site-header .mobile-nav-shell {
        width: 100% !important;
        min-height: 100%;
        align-content: start;
        gap: 12px;
        padding: 12px;
    }

    .mobile-nav-panel-head {
        position: sticky;
        top: -12px;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin: -12px -12px 0;
        padding: 14px 14px 12px;
        border-bottom: 1px solid var(--color-border-soft, var(--line));
        background: color-mix(in srgb, var(--color-surface, #fff) 94%, transparent);
        backdrop-filter: blur(16px);
    }

    .mobile-nav-panel-head > div {
        display: grid;
        gap: 1px;
    }

    .mobile-nav-panel-head span {
        color: var(--color-primary, #2463eb);
        font-size: 9px;
        font-weight: 850;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .mobile-nav-panel-head strong {
        color: var(--color-text, #17243a);
        font-size: 19px;
    }

    .mobile-nav-panel-head button {
        width: 38px;
        height: 38px;
        display: grid;
        place-items: center;
        border: 1px solid var(--color-border, var(--line));
        border-radius: 12px;
        color: var(--color-text, #17243a);
        background: var(--color-surface-raised, #f6f8fa);
        font: inherit;
        font-size: 24px;
        line-height: 1;
    }

    .site-header .mobile-nav-shell nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .site-header .mobile-nav-shell nav a {
        min-height: 52px;
        justify-content: center;
        padding: 10px;
        border-color: var(--color-border-soft, transparent);
        border-radius: 14px;
        text-align: center;
    }

    .site-header .mobile-nav-shell nav a.is-active {
        color: var(--color-text, #17243a);
        border-color: color-mix(in srgb, var(--color-primary, #2463eb) 46%, var(--color-border, #d8e1eb));
        background: color-mix(in srgb, var(--color-primary, #2463eb) 13%, var(--color-surface, #fff));
    }

    .mobile-nav-more {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 14px;
        padding: 2px 4px;
    }

    .mobile-nav-more a {
        color: var(--color-text-muted, #66758a);
        font-size: 11px;
        font-weight: 700;
    }

    .site-header .mobile-nav-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mobile-nav-backdrop:not([hidden]) {
        position: fixed;
        inset: 0;
        z-index: 1;
        display: block;
        width: 100%;
        height: 100%;
        padding: 0;
        border: 0;
        background: rgba(4, 8, 14, 0.66);
        backdrop-filter: blur(3px);
    }

    .mobile-app-bar {
        position: fixed;
        inset: auto 8px max(8px, env(safe-area-inset-bottom));
        z-index: 900;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        min-height: var(--mobile-app-bar-height);
        padding: 5px;
        border: 1px solid var(--color-border, var(--line));
        border-radius: 20px;
        background: color-mix(in srgb, var(--color-surface, #fff) 94%, transparent);
        box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
        backdrop-filter: blur(18px) saturate(130%);
    }

    .mobile-app-bar a,
    .mobile-app-bar button {
        min-width: 0;
        display: grid;
        place-items: center;
        align-content: center;
        gap: 3px;
        padding: 4px 2px;
        border: 0;
        border-radius: 15px;
        color: var(--color-text-muted, #66758a);
        background: transparent;
        font: inherit;
        font-size: 9px;
        font-weight: 760;
        text-align: center;
    }

    .mobile-app-bar svg {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .mobile-app-bar a.is-active,
    .mobile-app-bar button[aria-expanded="true"] {
        color: var(--color-primary, #2463eb);
        background: color-mix(in srgb, var(--color-primary, #2463eb) 13%, transparent);
    }

    .site-footer {
        margin-bottom: 4px;
    }

    body.page-home .site-footer,
    body.page-exams .site-footer,
    body.page-traffic-signs .site-footer,
    body.page-lessons .site-footer,
    body.page-guide .site-footer,
    body.page-question-library .site-footer,
    body.page-account .site-footer {
        display: none;
    }

    body.page-exam-active,
    body.traffic-deck-active {
        padding-bottom: 0;
    }

    body.page-exam-active .mobile-app-bar,
    body.traffic-deck-active .mobile-app-bar {
        display: none;
    }

    /* One-tap, confirmed exam completion beside the timer. */
    .page-exam-active .exam-mobile-status {
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 9px;
        padding-inline: 10px;
    }

    .page-exam-active .exam-mobile-summary {
        grid-column: 1;
        grid-row: 1;
    }

    .page-exam-active .exam-mobile-finish-form {
        grid-column: 2;
        grid-row: 1;
    }

    .page-exam-active .exam-mobile-timer {
        grid-column: 3;
        grid-row: 1;
    }

    .exam-mobile-finish-form {
        display: block;
        margin: 0;
    }

    .exam-mobile-finish-button {
        min-width: 58px;
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        padding: 7px 9px;
        border: 1px solid color-mix(in srgb, #dc5268 54%, var(--color-border, #d8e1eb));
        border-radius: 12px;
        color: #dc5268;
        background: color-mix(in srgb, #dc5268 9%, var(--color-surface, #fff));
        font: inherit;
        font-size: 11px;
        font-weight: 850;
        white-space: nowrap;
    }

    .exam-mobile-finish-button span {
        display: grid;
        place-items: center;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        color: #fff;
        background: #dc5268;
        font-size: 10px;
    }

    .exam-mobile-summary,
    .exam-mobile-timer {
        min-width: 0;
    }

    .exam-mobile-summary strong {
        font-size: 14px;
    }

    .exam-mobile-timer {
        text-align: right;
    }

    .page-exam-active .exam-mobile-status .timer {
        font-size: 19px;
    }

    .exam-finish-modal {
        align-items: end;
        padding: 12px;
    }

    .exam-finish-modal-card {
        width: 100%;
        padding: 21px;
        border-radius: 22px 22px 16px 16px;
    }

    /* Category pages: remove brochure-like height, keep only the task. */
    .page-exams .category-tests-hero .category-hero-grid {
        display: block !important;
        min-height: 0 !important;
        padding-top: 16px !important;
        padding-bottom: 16px !important;
    }

    .page-exams .category-tests-hero .category-hero-panel {
        display: none !important;
    }

    .page-exams .category-tests-hero h1 {
        max-width: 100%;
        margin-top: 14px;
        font-size: 30px !important;
        line-height: 1.03 !important;
        letter-spacing: -0.045em;
    }

    .page-exams .category-tests-hero p {
        display: -webkit-box;
        overflow: hidden;
        max-width: 100%;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        font-size: 13px !important;
        line-height: 1.55 !important;
    }

    .page-exams .category-tests-meta {
        flex-wrap: nowrap;
        gap: 7px;
        margin-top: 15px;
        padding-bottom: 2px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .page-exams .category-tests-meta::-webkit-scrollbar {
        display: none;
    }

    .page-exams .category-tests-meta span {
        flex: 0 0 auto;
        padding: 7px 10px;
        font-size: 10.5px;
    }

    .page-exams .category-tests-heading {
        align-items: flex-start;
        gap: 5px;
    }

    .page-exams .category-tests-heading h2 {
        font-size: 25px;
        line-height: 1.08;
    }

    .page-exams .category-tests-heading > p {
        display: none;
    }

    /* Keep mobile hero copy short and actionable. */
    .page-home .home-hero-copy > p {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 4;
    }

    .page-home .home-hero-actions {
        gap: 8px;
    }

    .page-home .home-feature-card--signs p,
    .page-home .home-feature-card--exam p {
        display: none;
    }

    /* Prevent horizontal drift from wide text/cards on all phone views. */
    .page-home main,
    .page-exams main,
    .page-traffic-signs main,
    .page-lessons main,
    .page-guide main,
    .page-question-library main,
    .page-account main {
        overflow: clip;
    }
}

@media (max-width: 390px) {
    .mobile-app-bar {
        inset-inline: 5px;
    }

    .mobile-app-bar a,
    .mobile-app-bar button {
        font-size: 8px;
    }

    .page-exam-active .exam-mobile-status {
        grid-template-columns: minmax(0, 1fr) auto 64px;
        gap: 7px;
    }

    .exam-mobile-finish-button {
        min-width: 52px;
        padding-inline: 7px;
        font-size: 10px;
    }

    .exam-mobile-summary span {
        max-width: 112px;
    }
}

@keyframes mobileMenuIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Premium mobile app takeover v83: one focused install experience, no site chrome. */
.mobile-install-screen {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding:
        max(22px, env(safe-area-inset-top))
        18px
        max(22px, env(safe-area-inset-bottom));
    overflow: hidden;
    isolation: isolate;
    color: #f7f9fd;
    background:
        radial-gradient(circle at 50% -6%, rgba(77, 134, 248, 0.28), transparent 38%),
        radial-gradient(circle at -8% 78%, rgba(29, 88, 196, 0.18), transparent 34%),
        linear-gradient(160deg, #111722 0%, #0b0f16 48%, #080b10 100%);
}

.mobile-install-screen::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -3;
    opacity: 0.16;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 72%);
}

.mobile-install-screen::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -170px;
    z-index: -2;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(122, 165, 248, 0.12);
    border-radius: 50%;
    box-shadow:
        0 0 0 58px rgba(122, 165, 248, 0.035),
        0 0 0 118px rgba(122, 165, 248, 0.025);
}

.mobile-install-ambient {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.mobile-install-ambient span {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    background: #78a2f4;
    box-shadow: 0 0 28px rgba(120, 162, 244, 0.62);
}

.mobile-install-ambient span:nth-child(1) {
    top: 14%;
    left: 9%;
    width: 4px;
    height: 4px;
    opacity: 0.68;
}

.mobile-install-ambient span:nth-child(2) {
    top: 28%;
    right: 11%;
    width: 3px;
    height: 3px;
    opacity: 0.44;
}

.mobile-install-ambient span:nth-child(3) {
    bottom: 20%;
    left: 15%;
    width: 3px;
    height: 3px;
    opacity: 0.34;
}

.mobile-install-shell {
    width: min(100%, 430px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.mobile-install-brand {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 10px;
    margin: 0 0 18px;
}

.mobile-install-brand > strong {
    color: #7fa9fa;
    font-size: 28px;
    line-height: 1;
    letter-spacing: -0.055em;
    text-shadow: 0 8px 22px rgba(65, 120, 228, 0.24);
}

.mobile-install-brand > span {
    width: 1px;
    height: 28px;
    background: linear-gradient(to bottom, transparent, #4e5e74, transparent);
}

.mobile-install-brand > small {
    display: grid;
    gap: 2px;
    color: #eef3fb;
    font-size: 8.5px;
    line-height: 1;
    letter-spacing: 0.09em;
    text-align: left;
}

.mobile-install-brand b {
    font-weight: 850;
}

.mobile-install-visual {
    position: relative;
    width: min(78vw, 292px);
    height: min(58vw, 220px);
    min-height: 196px;
    align-self: center;
    margin: 0 auto 14px;
}

.mobile-install-visual-card {
    position: absolute;
    inset: 4px 34px 2px;
    overflow: hidden;
    border: 1px solid rgba(165, 194, 249, 0.22);
    border-radius: 30px;
    background:
        radial-gradient(circle at 56% 30%, rgba(117, 162, 251, 0.28), transparent 42%),
        linear-gradient(145deg, rgba(38, 50, 69, 0.96), rgba(20, 27, 38, 0.96));
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.mobile-install-visual-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 28%, transparent 70%, rgba(111, 157, 245, 0.08));
    pointer-events: none;
}

.mobile-install-app-label {
    position: absolute;
    top: 15px;
    left: 16px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #dbe7fb;
    font-size: 10px;
    font-weight: 780;
    letter-spacing: 0.02em;
}

.mobile-install-app-label i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #5c98ff;
    box-shadow: 0 0 0 4px rgba(92, 152, 255, 0.12);
}

.mobile-install-mascot {
    position: absolute;
    right: -8px;
    bottom: -44px;
    z-index: 2;
    width: 220px;
    height: 220px;
    object-fit: contain;
    filter: drop-shadow(0 22px 28px rgba(0, 0, 0, 0.34));
}

.mobile-install-orbit {
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(123, 166, 248, 0.18);
    border-radius: 50%;
}

.mobile-install-orbit--outer {
    inset: -22px 10px -12px;
    transform: rotate(-10deg);
}

.mobile-install-orbit--inner {
    inset: 16px 47px 13px;
    border-color: rgba(123, 166, 248, 0.12);
    transform: rotate(12deg);
}

.mobile-install-float {
    position: absolute;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid rgba(175, 201, 250, 0.2);
    border-radius: 14px;
    color: #eef4ff;
    background: rgba(24, 32, 45, 0.88);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(14px) saturate(130%);
}

.mobile-install-float b {
    color: #7da7f8;
    font-size: 19px;
    line-height: 1;
}

.mobile-install-float span {
    max-width: 82px;
    font-size: 9px;
    font-weight: 760;
    line-height: 1.15;
}

.mobile-install-float--exam {
    left: 0;
    bottom: 30px;
}

.mobile-install-float--review {
    right: 0;
    top: 54px;
}

.mobile-install-content {
    text-align: left;
}

.mobile-install-eyebrow {
    margin: 0 0 9px;
    color: #7fa9fa;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.12em;
}

.mobile-install-content h1 {
    margin: 0;
    color: #f8faff;
    font-size: clamp(34px, 9.2vw, 46px);
    line-height: 0.98;
    letter-spacing: -0.052em;
}

.mobile-install-content h1 span {
    color: #8ab1fc;
}

.mobile-install-copy {
    max-width: 390px;
    margin: 16px 0 18px;
    color: #aeb9ca;
    font-size: 14.5px;
    line-height: 1.58;
}

.mobile-install-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 21px;
}

.mobile-install-benefits span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #d9e2f0;
    font-size: 11px;
    font-weight: 720;
}

.mobile-install-benefits i {
    width: 17px;
    height: 17px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(115, 163, 250, 0.3);
    border-radius: 50%;
    color: #8bb3ff;
    background: rgba(73, 126, 226, 0.12);
    font-size: 10px;
    font-style: normal;
}

.mobile-install-button {
    width: 100%;
    min-height: 68px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 13px;
    padding: 10px 12px 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 19px;
    color: #fff;
    background:
        linear-gradient(110deg, rgba(255, 255, 255, 0.12), transparent 34%),
        linear-gradient(135deg, #2f6fe5 0%, #4f86ee 58%, #6b9cf7 100%);
    box-shadow:
        0 20px 42px rgba(39, 102, 222, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 160ms ease, filter 160ms ease;
}

.mobile-install-button:active {
    transform: translateY(1px) scale(0.992);
    filter: brightness(0.98);
}

.mobile-install-play {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 13px;
    background: rgba(10, 26, 54, 0.22);
}

.mobile-install-play svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
}

.mobile-install-button-copy {
    display: grid;
    gap: 3px;
    text-align: left;
}

.mobile-install-button-copy small {
    color: rgba(255, 255, 255, 0.78);
    font-size: 10px;
    line-height: 1;
}

.mobile-install-button-copy strong {
    font-size: 17px;
    line-height: 1.12;
}

.mobile-install-arrow {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #2c67d5;
    background: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    font-weight: 900;
}

.mobile-install-note {
    margin: 14px 0 0;
    color: #6f7b8e;
    font-size: 10.5px;
    line-height: 1.4;
    text-align: center;
}

@media (max-height: 720px) {
    .mobile-install-screen {
        place-items: start center;
        overflow-y: auto;
    }

    .mobile-install-brand {
        margin-bottom: 10px;
    }

    .mobile-install-visual {
        width: min(70vw, 258px);
        height: min(47vw, 180px);
        min-height: 166px;
        margin-bottom: 10px;
    }

    .mobile-install-mascot {
        width: 184px;
        height: 184px;
        bottom: -38px;
    }

    .mobile-install-float {
        min-height: 36px;
        padding: 6px 10px;
    }

    .mobile-install-float--review {
        top: 43px;
    }

    .mobile-install-copy {
        margin-block: 12px 14px;
    }

    .mobile-install-benefits {
        margin-bottom: 16px;
    }
}

@media (max-width: 360px) {
    .mobile-install-screen {
        padding-inline: 15px;
    }

    .mobile-install-visual {
        width: 272px;
    }

    .mobile-install-float--exam {
        left: -4px;
    }

    .mobile-install-float--review {
        right: -4px;
    }

    .mobile-install-content h1 {
        font-size: 34px;
    }

    .mobile-install-benefits {
        gap: 7px 10px;
    }
}


/* Daily exam rolling archive */
.daily-exam-overview-card {
    --overview-accent: #1f7a6d;
}

.daily-exam-feature {
    margin-bottom: 24px;
}

.daily-exam-overview .exam-overview-action {
    text-decoration: none;
}

.daily-exam-overview button.exam-overview-action {
    font: inherit;
    cursor: pointer;
    appearance: none;
}

.daily-exam-actions form {
    margin: 0;
}

.daily-exam-status {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    padding: 2px 7px;
    border: 1px solid color-mix(in srgb, var(--row-accent) 18%, #dce5ef);
    border-radius: 999px;
    color: var(--row-accent);
    background: var(--row-soft);
    font-size: 8.5px;
    font-weight: 820;
    line-height: 1;
}

.daily-exam-status--in-progress {
    color: #8a5a00;
    border-color: #f0d18a;
    background: #fff7de;
}

.daily-exam-status--completed {
    color: #1d7d5a;
    border-color: #bfe4d4;
    background: #effaf5;
}

.daily-exam-status--timed-out {
    color: #9a3d35;
    border-color: #efc3bd;
    background: #fff1ef;
}

@media (max-width: 680px) {
    .daily-exam-actions {
        align-items: stretch;
    }

    .daily-exam-actions .exam-overview-action {
        width: 100%;
    }
}

/* Daily exam homepage and exam hub polish v1 */
.home-page .home-daily-exam-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    max-width: 760px;
    margin-top: 16px;
    padding: 13px 14px;
    border: 1px solid #cfe0f6;
    border-radius: 18px;
    color: #132942;
    background: linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(239, 247, 255, .95));
    box-shadow: 0 15px 34px rgba(20, 55, 99, .08);
}

.home-page .home-daily-exam-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid #bcd4f5;
    border-radius: 15px;
    color: #1f63d6;
    background: #eef5ff;
}

.home-page .home-daily-exam-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-page .home-daily-exam-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.home-page .home-daily-exam-kicker {
    color: #2164cf;
    font-size: 9px;
    font-weight: 820;
    letter-spacing: 0;
    text-transform: uppercase;
}

.home-page .home-daily-exam-copy strong {
    margin-top: 4px;
    color: #10243d;
    font-size: 20px;
    font-weight: 720;
    line-height: 1.1;
    letter-spacing: 0;
}

.home-page .home-daily-exam-copy > span:last-child {
    margin-top: 5px;
    color: #66778d;
    font-size: 11px;
    font-weight: 660;
    line-height: 1.35;
}

.home-page .home-daily-exam-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.home-page .home-daily-exam-actions form {
    margin: 0;
}

.home-page .home-daily-exam-start,
.home-page .home-daily-exam-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid #bfd2ed;
    border-radius: 12px;
    color: #1f5ecf;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(32, 83, 145, .08);
    font: inherit;
    font-size: 10.8px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: color 170ms ease, background 170ms ease, border-color 170ms ease, transform 170ms ease;
}

.home-page .home-daily-exam-start {
    color: #ffffff;
    border-color: #1f63d6;
    background: #1f63d6;
}

.home-page .home-daily-exam-start:hover,
.home-page .home-daily-exam-start:focus-visible,
.home-page .home-daily-exam-link:hover,
.home-page .home-daily-exam-link:focus-visible {
    transform: translateY(-1px);
}

.home-page .home-daily-exam-link:hover,
.home-page .home-daily-exam-link:focus-visible {
    color: #ffffff;
    border-color: #1f63d6;
    background: #1f63d6;
}

.home-page .home-daily-exam-start:disabled {
    cursor: not-allowed;
    opacity: .58;
    transform: none;
}

.page-exams .exam-hub-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
    padding-top: 24px;
}

.page-exams .exam-hub-content > .exam-overview-card {
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    min-height: 220px;
    gap: 16px;
    padding: 22px;
    border-radius: 18px;
}

.page-exams .exam-hub-content > .exam-overview-card--disabled {
    grid-column: 1 / -1;
}

.page-exams .exam-hub-content > .daily-exam-overview-card {
    border-color: #c9e7de;
    background: radial-gradient(circle at 96% 0%, rgba(33, 154, 124, .12), transparent 34%), linear-gradient(135deg, #ffffff 0%, #fbfffd 58%, #eefbf6 100%);
}

.page-exams .exam-hub-content > .daily-exam-overview-card::before {
    background: linear-gradient(180deg, #22a276, #13715e);
}

.page-exams .exam-hub-content > .daily-exam-overview-card .exam-overview-mark {
    color: #137a68;
    border-color: #bfe6dc;
    background: #ecfbf6;
}

.page-exams .exam-hub-content > .exam-overview-card .exam-overview-main {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 14px;
}

.page-exams .exam-hub-content > .exam-overview-card .exam-overview-mark {
    width: 50px;
    height: 50px;
    border-radius: 15px;
}

.page-exams .exam-hub-content > .exam-overview-card .exam-overview-title {
    font-size: 25px;
    line-height: 1.1;
    letter-spacing: 0;
}

.page-exams .exam-hub-content > .exam-overview-card .exam-overview-description {
    max-width: none;
    font-size: 11.5px;
}

.page-exams .exam-hub-content > .exam-overview-card .exam-overview-stats {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-exams .exam-hub-content > .exam-overview-card .exam-overview-stats > span {
    min-height: 62px;
    padding: 9px 8px;
}

.page-exams .exam-hub-content > .exam-overview-card .exam-overview-end {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-width: 0;
    margin-top: auto;
}

.page-exams .exam-hub-content > .exam-overview-card .exam-overview-ready {
    min-width: 0;
}

.page-exams .exam-hub-content > .exam-overview-card .exam-overview-action {
    min-height: 40px;
    padding-inline: 13px;
}

.page-exams .exam-hub-tests {
    grid-column: 1 / -1;
    padding-top: 22px;
}

.page-exams .exam-hub-section-head {
    margin-bottom: 16px;
}

.page-exams .exam-hub-card-grid {
    gap: 14px;
}

@media (max-width: 980px) {
    .page-exams .exam-hub-content {
        grid-template-columns: 1fr;
    }

    .page-exams .exam-hub-content > .exam-overview-card {
        min-height: 0;
    }
}

@media (max-width: 760px) {
    .home-page .home-daily-exam-card {
        grid-template-columns: 44px minmax(0, 1fr);
        align-items: start;
    }

    .home-page .home-daily-exam-icon {
        width: 44px;
        height: 44px;
        border-radius: 13px;
    }

    .home-page .home-daily-exam-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}

@media (max-width: 680px) {
    .page-exams .exam-hub-content {
        gap: 12px;
        padding-top: 16px;
    }

    .page-exams .exam-hub-content > .exam-overview-card {
        gap: 12px;
        padding: 15px;
        border-radius: 16px;
    }

    .page-exams .exam-hub-content > .exam-overview-card .exam-overview-main {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 10px;
    }

    .page-exams .exam-hub-content > .exam-overview-card .exam-overview-mark {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .page-exams .exam-hub-content > .exam-overview-card .exam-overview-title {
        font-size: 20px;
    }

    .page-exams .exam-hub-content > .exam-overview-card .exam-overview-description {
        display: none;
    }

    .page-exams .exam-hub-content > .exam-overview-card .exam-overview-stats > span {
        min-height: 48px;
        padding: 7px 4px;
    }

    .page-exams .exam-hub-content > .exam-overview-card .exam-overview-end {
        gap: 8px;
    }

    .page-exams .exam-hub-content > .exam-overview-card .exam-overview-ready {
        display: none;
    }

    .page-exams .exam-hub-content > .exam-overview-card .exam-overview-action {
        width: 100%;
    }

    .home-page .home-daily-exam-card {
        gap: 11px;
        padding: 12px;
        border-radius: 15px;
    }

    .home-page .home-daily-exam-copy strong {
        font-size: 18px;
    }

    .home-page .home-daily-exam-actions,
    .home-page .home-daily-exam-actions form,
    .home-page .home-daily-exam-start,
    .home-page .home-daily-exam-link {
        width: 100%;
    }
}



/* Exam hub and daily exam layout refresh. */
.page-exams .exam-hub-page {
    background: #f7f9fc;
    color: #13233b;
}

.page-exams .exam-hub-intro {
    background: #ffffff;
    border-bottom: 1px solid #dfe7f0;
}

.page-exams .exam-hub-intro-inner {
    min-height: 254px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 48px;
    padding-top: 54px;
    padding-bottom: 50px;
}

.page-exams .exam-hub-intro-copy {
    max-width: 700px;
}

.page-exams .hub-page-kicker,
.page-exams .exam-hub-label {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    color: #175fca;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-exams .hub-page-kicker::before,
.page-exams .exam-hub-label::before {
    width: 18px;
    height: 2px;
    margin-right: 8px;
    background: #1e6fe5;
    content: "";
}

.page-exams .exam-hub-intro h1 {
    max-width: 630px;
    margin: 13px 0 12px;
    color: #13233b;
    font-size: 46px;
    line-height: 1.07;
    letter-spacing: 0;
}

.page-exams .exam-hub-intro-copy > p {
    max-width: 635px;
    margin: 0;
    color: #63748a;
    font-size: 16px;
    line-height: 1.65;
}

.page-exams .exam-hub-intro-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(76px, 1fr));
    margin: 0;
    border: 1px solid #dbe5f0;
    border-radius: 8px;
    background: #f8fbff;
    overflow: hidden;
}

.page-exams .exam-hub-intro-facts > div {
    min-width: 76px;
    padding: 16px 18px;
    border-right: 1px solid #dbe5f0;
    text-align: center;
}

.page-exams .exam-hub-intro-facts > div:last-child {
    border-right: 0;
}

.page-exams .exam-hub-intro-facts dt,
.page-exams .exam-hub-intro-facts dd {
    margin: 0;
}

.page-exams .exam-hub-intro-facts dt {
    color: #173d77;
    font-size: 23px;
    font-weight: 850;
    line-height: 1;
}

.page-exams .exam-hub-intro-facts dd {
    margin-top: 6px;
    color: #64758b;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.page-exams .exam-hub-content {
    padding-top: 52px;
    padding-bottom: 78px;
}

.page-exams .exam-hub-section-intro {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 22px;
}

.page-exams .exam-hub-section-intro h2 {
    margin: 6px 0 0;
    color: #172b47;
    font-size: 29px;
    line-height: 1.16;
    letter-spacing: 0;
}

.page-exams .exam-hub-section-intro > p {
    max-width: 356px;
    margin: 0;
    color: #68798e;
    font-size: 14px;
    line-height: 1.58;
}

.page-exams .exam-hub-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.page-exams .exam-hub-feature {
    min-height: 366px;
    display: flex;
    flex-direction: column;
    padding: 25px;
    border: 1px solid #d8e3ef;
    border-radius: 8px;
    box-shadow: 0 14px 32px rgba(28, 47, 76, 0.06);
}

.page-exams .exam-hub-feature--daily {
    border-color: #123961;
    background: #14375f;
    color: #ffffff;
}

.page-exams .exam-hub-feature--general {
    background: #ffffff;
}

.page-exams .exam-hub-feature-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.page-exams .exam-hub-feature-icon {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
}

.page-exams .exam-hub-feature-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.page-exams .exam-hub-feature--daily .exam-hub-feature-icon {
    background: #d9f2ee;
    color: #087d72;
}

.page-exams .exam-hub-feature--general .exam-hub-feature-icon {
    background: #eaf2ff;
    color: #1b66d2;
}

.page-exams .exam-hub-feature-badge {
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 760;
    line-height: 1.1;
}

.page-exams .exam-hub-feature--daily .exam-hub-feature-badge {
    background: rgba(217, 242, 238, 0.13);
    color: #d7f2ec;
}

.page-exams .exam-hub-feature--general .exam-hub-feature-badge {
    border: 1px solid #d9e5f4;
    background: #f8fbff;
    color: #345476;
}

.page-exams .exam-hub-feature-copy {
    margin-top: 25px;
}

.page-exams .exam-hub-feature-copy p {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.page-exams .exam-hub-feature--daily .exam-hub-feature-copy p {
    color: #9edbd2;
}

.page-exams .exam-hub-feature--general .exam-hub-feature-copy p {
    color: #2868c6;
}

.page-exams .exam-hub-feature-copy h3 {
    max-width: 390px;
    margin: 0;
    font-size: 27px;
    line-height: 1.16;
    letter-spacing: 0;
}

.page-exams .exam-hub-feature--general .exam-hub-feature-copy h3 {
    color: #142842;
}

.page-exams .exam-hub-feature-copy > span {
    display: block;
    max-width: 420px;
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.55;
}

.page-exams .exam-hub-feature--daily .exam-hub-feature-copy > span {
    color: #c7dae8;
}

.page-exams .exam-hub-feature--general .exam-hub-feature-copy > span {
    color: #677b94;
}

.page-exams .exam-hub-feature-stats {
    display: flex;
    gap: 0;
    margin: auto 0 21px;
    padding-top: 25px;
}

.page-exams .exam-hub-feature-stats > div {
    min-width: 82px;
    padding-right: 18px;
    margin-right: 18px;
    border-right: 1px solid;
}

.page-exams .exam-hub-feature-stats > div:last-child {
    padding-right: 0;
    margin-right: 0;
    border-right: 0;
}

.page-exams .exam-hub-feature--daily .exam-hub-feature-stats > div {
    border-color: rgba(216, 241, 238, 0.22);
}

.page-exams .exam-hub-feature--general .exam-hub-feature-stats > div {
    border-color: #dce6f1;
}

.page-exams .exam-hub-feature-stats dt,
.page-exams .exam-hub-feature-stats dd {
    margin: 0;
}

.page-exams .exam-hub-feature-stats dt {
    font-size: 21px;
    font-weight: 850;
    line-height: 1;
}

.page-exams .exam-hub-feature--general .exam-hub-feature-stats dt {
    color: #173e77;
}

.page-exams .exam-hub-feature-stats dd {
    margin-top: 5px;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.page-exams .exam-hub-feature--daily .exam-hub-feature-stats dd {
    color: #abc6db;
}

.page-exams .exam-hub-feature--general .exam-hub-feature-stats dd {
    color: #77889c;
}

.page-exams .exam-hub-feature-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 13px 18px;
}

.page-exams .exam-hub-feature-actions form {
    margin: 0;
}

.page-exams .exam-hub-feature-button {
    min-height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.page-exams .exam-hub-feature--daily .exam-hub-feature-button {
    border-color: #d9f2ee;
    background: #d9f2ee;
    color: #0c453f;
}

.page-exams .exam-hub-feature--general .exam-hub-feature-button {
    border-color: #1c62cb;
    background: #1c62cb;
    color: #ffffff;
}

.page-exams .exam-hub-feature-actions > a,
.page-exams .exam-hub-feature-actions > span {
    color: inherit;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.4;
}

.page-exams .exam-hub-feature--daily .exam-hub-feature-actions > a {
    color: #dcebf8;
}

.page-exams .exam-hub-feature--general .exam-hub-feature-actions > span {
    color: #667d98;
    font-weight: 650;
}

.page-exams .exam-hub-feature-actions > a:hover {
    text-decoration: underline;
}

.page-exams .exam-hub-subjects {
    margin-top: 68px;
}

.page-exams .exam-hub-subject-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.page-exams .exam-hub-subject-card {
    --subject-accent: #1d6cdc;
    min-height: 246px;
    display: flex;
    flex-direction: column;
    padding: 20px;
    border: 1px solid #dae4ef;
    border-top: 3px solid var(--subject-accent);
    border-radius: 8px;
    background: #ffffff;
    color: #172b47;
    text-decoration: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.page-exams .exam-hub-subject-card:hover,
.page-exams .exam-hub-subject-card:focus-visible {
    transform: translateY(-2px);
    border-color: var(--subject-accent);
    box-shadow: 0 14px 28px rgba(32, 52, 82, 0.1);
}

.page-exams .exam-hub-subject-card:focus-visible {
    outline: 3px solid rgba(37, 102, 204, 0.2);
    outline-offset: 3px;
}

.page-exams .exam-hub-subject-card--traffic { --subject-accent: #1673e6; }
.page-exams .exam-hub-subject-card--first-aid { --subject-accent: #dd5174; }
.page-exams .exam-hub-subject-card--engine { --subject-accent: #cb7a22; }
.page-exams .exam-hub-subject-card--ethics { --subject-accent: #109475; }

.page-exams .exam-hub-subject-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.page-exams .exam-hub-subject-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--subject-accent) 30%, white);
    border-radius: 8px;
    background: color-mix(in srgb, var(--subject-accent) 8%, white);
    color: var(--subject-accent);
}

.page-exams .exam-hub-subject-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.page-exams .exam-hub-subject-topline > span:last-child {
    padding: 5px 7px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--subject-accent) 8%, white);
    color: var(--subject-accent);
    font-size: 10px;
    font-weight: 800;
}

.page-exams .exam-hub-subject-card h3 {
    margin: 27px 0 8px;
    color: #182d4b;
    font-size: 18px;
    line-height: 1.23;
    letter-spacing: 0;
}

.page-exams .exam-hub-subject-card p {
    margin: 0;
    color: #6d7e94;
    font-size: 12px;
    line-height: 1.55;
}

.page-exams .exam-hub-subject-card > strong {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 18px;
    color: var(--subject-accent);
    font-size: 12px;
}

.page-exams .exam-hub-subject-card > strong b {
    font-size: 17px;
    font-weight: 600;
}

.page-exams .exam-hub-unavailable {
    padding: 32px;
    border: 1px solid #dae4ef;
    border-radius: 8px;
    background: #ffffff;
}

.page-exams .exam-hub-unavailable h2 {
    margin: 8px 0;
    color: #172b47;
    font-size: 25px;
}

.page-exams .exam-hub-unavailable p {
    margin: 0;
    color: #6b7c91;
}

.home-page .home-daily-band {
    padding: 0 0 68px;
    background: #ffffff;
}

.home-page .home-daily-panel {
    min-height: 150px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) auto auto;
    align-items: center;
    gap: 30px;
    padding: 23px 28px;
    border: 1px solid #d8e5f2;
    border-left: 4px solid #1c66d1;
    border-radius: 8px;
    background: #f7fbff;
    box-shadow: 0 12px 28px rgba(28, 55, 93, 0.06);
}

.home-page .home-daily-heading {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.home-page .home-daily-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 1px solid #bdd8fa;
    border-radius: 8px;
    background: #eaf3ff;
    color: #1a66cc;
}

.home-page .home-daily-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.home-page .home-daily-kicker {
    display: block;
    margin-bottom: 5px;
    color: #2167c8;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.home-page .home-daily-heading h2 {
    margin: 0;
    color: #173052;
    font-size: 23px;
    line-height: 1.1;
    letter-spacing: 0;
}

.home-page .home-daily-heading p {
    margin: 6px 0 0;
    color: #6a7d94;
    font-size: 13px;
    line-height: 1.45;
}

.home-page .home-daily-details {
    display: flex;
    align-items: stretch;
    border: 1px solid #d9e6f3;
    border-radius: 7px;
    background: #ffffff;
    overflow: hidden;
}

.home-page .home-daily-details > span {
    min-width: 66px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 11px 13px;
    border-right: 1px solid #d9e6f3;
    text-align: center;
}

.home-page .home-daily-details > span:last-child {
    min-width: 104px;
    border-right: 0;
}

.home-page .home-daily-details b {
    color: #19437c;
    font-size: 17px;
    line-height: 1.15;
}

.home-page .home-daily-details small {
    margin-top: 4px;
    color: #70839a;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.home-page .home-daily-details .home-daily-date b {
    font-size: 12px;
}

.home-page .home-daily-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 11px 15px;
}

.home-page .home-daily-actions form {
    margin: 0;
}

.home-page .home-daily-start {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 15px;
    border-color: #1d62c5;
    border-radius: 6px;
    background: #1d62c5;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
}

.home-page .home-daily-start:hover:not(:disabled) {
    border-color: #164e9f;
    background: #164e9f;
}

.home-page .home-daily-archive {
    color: #285d9e;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.home-page .home-daily-archive:hover {
    text-decoration: underline;
}

@media (max-width: 1040px) {
    .page-exams .exam-hub-intro-inner {
        gap: 30px;
    }

    .page-exams .exam-hub-subject-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-page .home-daily-panel {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .home-page .home-daily-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    .page-exams .exam-hub-intro-inner {
        min-height: 0;
        grid-template-columns: 1fr;
        align-items: start;
        gap: 28px;
        padding-top: 38px;
        padding-bottom: 36px;
    }

    .page-exams .exam-hub-intro h1 {
        font-size: 35px;
    }

    .page-exams .exam-hub-intro-facts {
        width: 100%;
    }

    .page-exams .exam-hub-intro-facts > div {
        flex: 1 1 0;
    }

    .page-exams .exam-hub-content {
        padding-top: 38px;
        padding-bottom: 54px;
    }

    .page-exams .exam-hub-section-intro {
        display: block;
        margin-bottom: 18px;
    }

    .page-exams .exam-hub-section-intro > p {
        max-width: 520px;
        margin-top: 10px;
    }

    .page-exams .exam-hub-section-intro h2 {
        font-size: 25px;
    }

    .page-exams .exam-hub-feature-grid {
        grid-template-columns: 1fr;
    }

    .page-exams .exam-hub-feature {
        min-height: 336px;
    }

    .page-exams .exam-hub-subjects {
        margin-top: 50px;
    }

    .home-page .home-daily-band {
        padding-bottom: 52px;
    }

    .home-page .home-daily-panel {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 22px;
    }

    .home-page .home-daily-actions {
        grid-column: auto;
        justify-content: flex-start;
    }
}

@media (max-width: 500px) {
    .page-exams .exam-hub-intro h1 {
        font-size: 31px;
    }

    .page-exams .exam-hub-intro-copy > p {
        font-size: 14px;
    }

    .page-exams .exam-hub-intro-facts > div {
        min-width: 0;
        padding: 14px 8px;
    }

    .page-exams .exam-hub-intro-facts dt {
        font-size: 20px;
    }

    .page-exams .exam-hub-feature {
        min-height: 0;
        padding: 21px;
    }

    .page-exams .exam-hub-feature-copy h3 {
        font-size: 24px;
    }

    .page-exams .exam-hub-feature-stats > div {
        min-width: 0;
        flex: 1 1 0;
        padding-right: 10px;
        margin-right: 10px;
    }

    .page-exams .exam-hub-feature-actions,
    .page-exams .exam-hub-feature-actions form,
    .page-exams .exam-hub-feature-button {
        width: 100%;
    }

    .page-exams .exam-hub-feature-actions > a,
    .page-exams .exam-hub-feature-actions > span {
        width: 100%;
    }

    .page-exams .exam-hub-subject-grid {
        grid-template-columns: 1fr;
    }

    .page-exams .exam-hub-subject-card {
        min-height: 210px;
    }

    .home-page .home-daily-heading {
        align-items: flex-start;
    }

    .home-page .home-daily-heading h2 {
        font-size: 21px;
    }

    .home-page .home-daily-details {
        width: 100%;
    }

    .home-page .home-daily-details > span {
        min-width: 0;
        flex: 1 1 0;
        padding: 10px 7px;
    }

    .home-page .home-daily-details > span:last-child {
        min-width: 0;
    }

    .home-page .home-daily-actions,
    .home-page .home-daily-actions form,
    .home-page .home-daily-start {
        width: 100%;
    }

    .home-page .home-daily-archive {
        text-align: center;
    }
}


/* Resolve the legacy hub grid so the redesigned sections remain full width. */
.page-exams .exam-hub-content {
    display: block;
    grid-template-columns: none;
    gap: 0;
}


/* Final spacing and simplified exam hub treatment. */
.home-page .home-daily-band {
    padding-bottom: 22px;
}

.home-page .home-topics {
    padding-top: 30px;
}

.page-exams .exam-hub-page,
.page-exams .exam-hub-intro {
    background: #ffffff;
}

.page-exams .exam-hub-intro-inner {
    min-height: 0;
    padding-top: 40px;
    padding-bottom: 34px;
}

.page-exams .exam-hub-intro h1 {
    margin-top: 10px;
    font-size: 39px;
}

.page-exams .exam-hub-content {
    padding-top: 34px;
    padding-bottom: 60px;
}

.page-exams .exam-hub-start .exam-hub-section-intro {
    display: none;
}

.page-exams .exam-hub-feature-grid {
    gap: 14px;
}

.page-exams .exam-hub-feature {
    min-height: 286px;
    padding: 23px 24px;
    border-color: #dbe5ef;
    box-shadow: none;
}

.page-exams .exam-hub-feature--daily {
    border-top: 3px solid #168374;
    background: #f6fbfa;
    color: #173d3a;
}

.page-exams .exam-hub-feature--general {
    border-top: 3px solid #1e67cd;
    background: #ffffff;
}

.page-exams .exam-hub-feature-copy {
    margin-top: 19px;
}

.page-exams .exam-hub-feature--daily .exam-hub-feature-copy p {
    color: #147868;
}

.page-exams .exam-hub-feature--daily .exam-hub-feature-copy h3 {
    color: #193f3b;
}

.page-exams .exam-hub-feature--daily .exam-hub-feature-copy > span {
    color: #5e7774;
}

.page-exams .exam-hub-feature-stats {
    margin-bottom: 18px;
    padding-top: 20px;
}

.page-exams .exam-hub-feature--daily .exam-hub-feature-stats > div {
    border-color: #d6e6e3;
}

.page-exams .exam-hub-feature--daily .exam-hub-feature-stats dt {
    color: #17564e;
}

.page-exams .exam-hub-feature--daily .exam-hub-feature-stats dd {
    color: #718783;
}

.page-exams .exam-hub-feature--daily .exam-hub-feature-badge {
    background: #e0f2ee;
    color: #19665d;
}

.page-exams .exam-hub-feature--daily .exam-hub-feature-button {
    border-color: #137c6d;
    background: #137c6d;
    color: #ffffff;
}

.page-exams .exam-hub-feature--daily .exam-hub-feature-actions > a {
    color: #34716a;
}

.page-exams .exam-hub-subjects {
    margin-top: 46px;
    padding-top: 34px;
    border-top: 1px solid #e3eaf2;
}

.page-exams .exam-hub-subjects .exam-hub-section-intro {
    margin-bottom: 18px;
}

.page-exams .exam-hub-subject-card {
    min-height: 214px;
    padding: 18px;
    box-shadow: none;
}

.page-exams .exam-hub-subject-card h3 {
    margin-top: 21px;
}

@media (max-width: 760px) {
    .home-page .home-daily-band {
        padding-bottom: 14px;
    }

    .home-page .home-topics {
        padding-top: 26px;
    }

    .page-exams .exam-hub-intro-inner {
        padding-top: 30px;
        padding-bottom: 28px;
    }

    .page-exams .exam-hub-intro h1 {
        font-size: 33px;
    }

    .page-exams .exam-hub-content {
        padding-top: 24px;
        padding-bottom: 46px;
    }

    .page-exams .exam-hub-feature {
        min-height: 0;
    }

    .page-exams .exam-hub-subjects {
        margin-top: 34px;
        padding-top: 26px;
    }
}


/* Slightly tighter vertical rhythm for the two primary exam cards. */
.page-exams .exam-hub-feature {
    min-height: 266px;
    padding-top: 21px;
    padding-bottom: 21px;
}

.page-exams .exam-hub-feature-copy {
    margin-top: 16px;
}

.page-exams .exam-hub-feature-stats {
    margin-bottom: 15px;
    padding-top: 16px;
}


/* KONI Android app promotion. */
.home-page .home-app-promo {
    padding: 78px 0;
    border-top: 1px solid #e4ebf3;
    border-bottom: 1px solid #e4ebf3;
    background: #f4f8fd;
}

.home-page .home-app-promo-layout {
    min-height: 365px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
    align-items: center;
    gap: 76px;
}

.home-page .home-app-promo-copy {
    max-width: 590px;
}

.home-page .home-app-promo-copy h2 {
    max-width: 560px;
    margin: 8px 0 15px;
    color: #173052;
    font-size: 39px;
    line-height: 1.1;
    letter-spacing: 0;
}

.home-page .home-app-promo-copy > p:not(.home-section-label) {
    max-width: 545px;
    margin: 0;
    color: #60748e;
    font-size: 16px;
    line-height: 1.65;
}

.home-page .home-app-promo-points {
    display: grid;
    gap: 8px;
    margin: 23px 0 25px;
    padding: 0;
    color: #29496e;
    font-size: 13px;
    font-weight: 720;
    list-style: none;
}

.home-page .home-app-promo-points li {
    display: flex;
    align-items: center;
    gap: 9px;
}

.home-page .home-app-promo-points li::before {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #1b68d6;
    content: "";
}

.home-page .home-app-download {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 11px 16px;
    border: 1px solid #1a60c4;
    border-radius: 6px;
    background: #1a60c4;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.home-page .home-app-download:hover {
    border-color: #124b9d;
    background: #124b9d;
}

.home-page .home-app-download b {
    font-size: 19px;
    font-weight: 500;
}

.home-page .home-app-promo-visual {
    min-height: 315px;
    position: relative;
    display: grid;
    place-items: end center;
    overflow: hidden;
    border: 1px solid #cfe0f2;
    border-radius: 8px;
    background: #e4effb;
}

.home-page .home-app-promo-visual::before {
    width: 210px;
    height: 210px;
    position: absolute;
    right: -38px;
    top: -50px;
    border: 1px solid #bcd4ed;
    border-radius: 50%;
    content: "";
}

.home-page .home-app-promo-visual::after {
    width: 158px;
    height: 158px;
    position: absolute;
    left: -45px;
    bottom: -52px;
    border: 1px solid #c5dcef;
    border-radius: 50%;
    content: "";
}

.home-page .home-app-promo-label {
    position: absolute;
    z-index: 1;
    left: 22px;
    top: 21px;
    color: #2862a1;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-page .home-app-promo-visual img {
    width: min(100%, 310px);
    height: auto;
    position: relative;
    z-index: 1;
    display: block;
    object-fit: contain;
    object-position: bottom center;
}

@media (max-width: 900px) {
    .home-page .home-app-promo {
        padding: 60px 0;
    }

    .home-page .home-app-promo-layout {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 0.65fr);
        gap: 34px;
    }

    .home-page .home-app-promo-copy h2 {
        font-size: 33px;
    }
}

@media (max-width: 680px) {
    .home-page .home-app-promo {
        padding: 48px 0;
    }

    .home-page .home-app-promo-layout {
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .home-page .home-app-promo-copy h2 {
        font-size: 29px;
    }

    .home-page .home-app-promo-copy > p:not(.home-section-label) {
        font-size: 14px;
    }

    .home-page .home-app-promo-visual {
        min-height: 244px;
        order: -1;
    }

    .home-page .home-app-promo-visual img {
        width: min(100%, 240px);
    }
}


/* Compact Android prompt and dark-theme repairs for the exam surfaces. */
.home-page .home-app-prompt {
    width: min(430px, calc(100vw - 40px));
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 65;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 14px 16px 14px 14px;
    border: 1px solid #d8e3ef;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(23, 43, 71, 0.18);
}

.home-page .home-app-prompt[hidden] {
    display: none;
}

.home-page .home-app-prompt > img {
    width: 42px;
    height: 42px;
    display: block;
    border-radius: 8px;
}

.home-page .home-app-prompt-copy {
    min-width: 0;
    padding-right: 12px;
}

.home-page .home-app-prompt-copy > span {
    display: block;
    margin-bottom: 2px;
    color: #2666c7;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.home-page .home-app-prompt-copy strong {
    display: block;
    color: #183354;
    font-size: 14px;
    line-height: 1.25;
}

.home-page .home-app-prompt-copy p {
    margin: 3px 0 0;
    color: #718198;
    font-size: 11px;
    line-height: 1.35;
}

.home-page .home-app-prompt > a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border-radius: 6px;
    background: #1d62c5;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.home-page .home-app-prompt > a:hover {
    background: #174f9f;
}

.home-page .home-app-prompt-close {
    width: 24px;
    height: 24px;
    position: absolute;
    right: 6px;
    top: 5px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #74849a;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.home-page .home-app-prompt-close:hover {
    color: #1c3456;
}

body:has(.cookie-consent:not([hidden])) .home-app-prompt {
    display: none;
}

html[data-theme="dark"] .page-exams .exam-hub-page,
html[data-theme="dark"] .page-exams .exam-hub-intro {
    background: #10161d;
}

html[data-theme="dark"] .page-exams .exam-hub-intro {
    border-color: #26313d;
}

html[data-theme="dark"] .page-exams .exam-hub-intro h1,
html[data-theme="dark"] .page-exams .exam-hub-section-intro h2,
html[data-theme="dark"] .page-exams .exam-hub-subject-card h3 {
    color: #edf3fb;
}

html[data-theme="dark"] .page-exams .exam-hub-intro-copy > p,
html[data-theme="dark"] .page-exams .exam-hub-section-intro > p,
html[data-theme="dark"] .page-exams .exam-hub-subject-card p {
    color: #aebaca;
}

html[data-theme="dark"] .page-exams .exam-hub-intro-facts,
html[data-theme="dark"] .page-exams .exam-hub-intro-facts > div,
html[data-theme="dark"] .page-exams .exam-hub-feature,
html[data-theme="dark"] .page-exams .exam-hub-subject-card,
html[data-theme="dark"] .page-exams .exam-hub-unavailable {
    border-color: #2a3746;
}

html[data-theme="dark"] .page-exams .exam-hub-intro-facts {
    background: #171f29;
}

html[data-theme="dark"] .page-exams .exam-hub-intro-facts dt,
html[data-theme="dark"] .page-exams .exam-hub-feature--general .exam-hub-feature-stats dt {
    color: #b8d2ff;
}

html[data-theme="dark"] .page-exams .exam-hub-intro-facts dd,
html[data-theme="dark"] .page-exams .exam-hub-feature--general .exam-hub-feature-stats dd {
    color: #a9b6c7;
}

html[data-theme="dark"] .page-exams .exam-hub-feature--daily {
    background: #132421;
}

html[data-theme="dark"] .page-exams .exam-hub-feature--general,
html[data-theme="dark"] .page-exams .exam-hub-subject-card,
html[data-theme="dark"] .page-exams .exam-hub-unavailable {
    background: #171f29;
}

html[data-theme="dark"] .page-exams .exam-hub-feature--daily .exam-hub-feature-copy h3,
html[data-theme="dark"] .page-exams .exam-hub-feature--general .exam-hub-feature-copy h3 {
    color: #f0f5fb;
}

html[data-theme="dark"] .page-exams .exam-hub-feature--daily .exam-hub-feature-copy > span,
html[data-theme="dark"] .page-exams .exam-hub-feature--general .exam-hub-feature-copy > span,
html[data-theme="dark"] .page-exams .exam-hub-feature--daily .exam-hub-feature-stats dd {
    color: #aebdca;
}

html[data-theme="dark"] .page-exams .exam-hub-feature--daily .exam-hub-feature-stats dt {
    color: #9ee3d8;
}

html[data-theme="dark"] .page-exams .exam-hub-feature--general .exam-hub-feature-stats > div {
    border-color: #314153;
}

html[data-theme="dark"] .page-exams .exam-hub-subjects {
    border-color: #2a3541;
}

html[data-theme="dark"] .home-page .home-daily-band {
    background: #10161d;
}

html[data-theme="dark"] .home-page .home-daily-panel {
    border-color: #29435f;
    border-left-color: #4387ee;
    background: #151f2a;
    box-shadow: none;
}

html[data-theme="dark"] .home-page .home-daily-icon {
    border-color: #365576;
    background: #1a2e45;
    color: #8ab9ff;
}

html[data-theme="dark"] .home-page .home-daily-kicker {
    color: #79afff;
}

html[data-theme="dark"] .home-page .home-daily-heading h2,
html[data-theme="dark"] .home-page .home-daily-details b {
    color: #edf4ff;
}

html[data-theme="dark"] .home-page .home-daily-heading p,
html[data-theme="dark"] .home-page .home-daily-details small {
    color: #aebdcb;
}

html[data-theme="dark"] .home-page .home-daily-details,
html[data-theme="dark"] .home-page .home-daily-details > span {
    border-color: #304154;
    background: #192431;
}

html[data-theme="dark"] .home-page .home-daily-start {
    border-color: #3377db;
    background: #3377db;
}

html[data-theme="dark"] .home-page .home-daily-archive {
    color: #99c2ff;
}

html[data-theme="dark"] .home-page .home-app-prompt {
    border-color: #2e3a48;
    background: #1a222d;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] .home-page .home-app-prompt-copy strong {
    color: #f0f5fb;
}

html[data-theme="dark"] .home-page .home-app-prompt-copy p {
    color: #aab7c6;
}

html[data-theme="dark"] .home-page .home-app-prompt-close {
    color: #aab7c6;
}

html[data-theme="dark"] .home-page .home-app-prompt-close:hover {
    color: #ffffff;
}

@media (max-width: 620px) {
    .home-page .home-app-prompt {
        width: min(100% - 24px, 430px);
        right: 12px;
        bottom: 12px;
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 10px;
        padding: 13px 42px 13px 13px;
    }

    .home-page .home-app-prompt > img {
        width: 38px;
        height: 38px;
    }

    .home-page .home-app-prompt > a {
        grid-column: 2;
        justify-self: start;
        min-height: 32px;
        margin-top: 1px;
    }
}
