:root {
    color-scheme: light;
    --ink: #16201c;
    --muted: #5c6a62;
    --soft: #eef4f0;
    --line: #d8e4dd;
    --paper: #f6faf7;
    --panel: #ffffff;
    --green: #167a4b;
    --green-deep: #0f5b38;
    --saffron: #f09a2a;
    --blue: #2364aa;
    --red: #bf3131;
    --shadow: 0 18px 45px rgba(19, 43, 31, .11);
    --shadow-soft: 0 10px 24px rgba(26, 58, 42, .08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background:
        linear-gradient(180deg, #eaf4ee 0, rgba(246, 250, 247, 0) 380px),
        linear-gradient(90deg, rgba(240, 154, 42, .08), rgba(35, 100, 170, .07)),
        var(--paper);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

button,
input {
    font: inherit;
}

select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 40px 10px 13px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
    cursor: pointer;
}

.archive-form {
    width: 100%;
    display: grid;
    gap: 8px;
}

.archive-form label {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(14px);
}

.topbar-inner {
    width: min(1180px, calc(100% - 32px));
    min-height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0;
    text-decoration: none;
    color: var(--ink);
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: block;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(15, 91, 56, .16);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
    white-space: nowrap;
}

.date-pill {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 13px;
    background: #fff;
    color: var(--green-deep);
    font-weight: 800;
}

.home-link {
    border: 1px solid rgba(22, 122, 75, .28);
    border-radius: 999px;
    padding: 9px 14px;
    background: #fff;
    color: var(--green-deep);
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: var(--shadow-soft);
}

.home-link:hover,
.home-link:focus-visible {
    border-color: var(--green);
    color: var(--green);
    outline: none;
}

main {
    width: min(1180px, calc(100% - 32px));
    margin: 30px auto 56px;
}

.layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}

.quiz-shell,
.side-panel,
.result-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.quiz-head {
    padding: 18px 22px;
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 10px;
    background:
        linear-gradient(120deg, rgba(22, 122, 75, .09), rgba(240, 154, 42, .07)),
        #fff;
}

.headline-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 22px;
}

.head-actions {
    width: min(320px, 100%);
    display: grid;
    gap: 10px;
}

.language-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 5px;
    background: rgba(255, 255, 255, .76);
}

.lang-btn {
    min-height: 36px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--muted);
    font-weight: 900;
    cursor: pointer;
}

.lang-btn.active {
    background: var(--green);
    color: #fff;
    box-shadow: var(--shadow-soft);
}

.kicker {
    width: fit-content;
    border: 1px solid rgba(22, 122, 75, .2);
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, .72);
    color: var(--green);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 8px;
}

h1 {
    margin: 0;
    font-size: clamp(22px, 2.4vw, 30px);
    line-height: 1.12;
    letter-spacing: 0;
    max-width: 620px;
}

.summary {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

.quiz-notice {
    margin-top: 14px;
    border: 1px solid rgba(240, 154, 42, .34);
    border-radius: 8px;
    padding: 11px 13px;
    background: #fff8ec;
    color: #785018;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.45;
}

.access-panel {
    padding: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 252, 250, .98)),
        #fff;
}

.access-box {
    max-width: 620px;
    border: 1px solid rgba(22, 122, 75, .22);
    border-radius: 8px;
    padding: 18px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.access-box h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
}

.access-box p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.access-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.mock-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.home-shell {
    overflow: hidden;
}

.home-shell .quiz-head {
    padding: 24px;
    background:
        linear-gradient(135deg, rgba(22, 122, 75, .12), rgba(240, 154, 42, .1)),
        linear-gradient(180deg, #fff, #f8fcfa);
}

.home-shell .summary {
    max-width: 760px;
    font-size: 16px;
}

.language-note {
    width: fit-content;
    margin-inline: auto;
    border: 1px solid rgba(22, 122, 75, .28);
    border-radius: 999px;
    padding: 9px 14px;
    background: #fff;
    color: var(--green-deep);
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.language-note p {
    margin: 0;
}

.language-note p:first-child {
    font-size: 18px;
    font-weight: 900;
    line-height: 1.12;
}

.language-note p:last-child {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
}

.home-shell .question-area {
    padding: 20px;
    display: block;
}

.mock-card {
    min-height: 190px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    display: grid;
    align-content: space-between;
    gap: 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(248, 252, 250, .96)),
        #fff;
    color: var(--ink);
    text-decoration: none;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.mock-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--green), var(--saffron));
}

.mock-card::after {
    content: ">";
    position: absolute;
    right: 16px;
    bottom: 14px;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #eef6f1;
    color: var(--green-deep);
    font-weight: 900;
}

.mock-card:hover {
    border-color: rgba(22, 122, 75, .45);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.archive-card {
    grid-column: 2;
    border-color: rgba(240, 154, 42, .42);
    background:
        linear-gradient(180deg, rgba(255, 249, 237, .98), rgba(255, 255, 255, .98)),
        #fff;
}

.archive-card::before {
    background: linear-gradient(90deg, var(--saffron), var(--green));
}

.premium-pill {
    width: fit-content;
    border-radius: 999px;
    padding: 7px 10px;
    background: #fff3dc;
    color: #875410;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.archive-shell {
    overflow: hidden;
}

.archive-list {
    display: grid;
    gap: 16px;
    padding: 20px;
}

.archive-empty {
    border: 1px dashed rgba(22, 122, 75, .35);
    border-radius: 8px;
    padding: 20px;
    background: #f8fcfa;
    color: var(--muted);
    text-align: center;
}

.archive-date-group {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.archive-date-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.archive-date-head h2 {
    margin: 0;
    color: var(--ink);
    font-size: 20px;
    line-height: 1.2;
}

.archive-date-head span {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 7px 10px;
    background: #fff3dc;
    color: #875410;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.archive-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.archive-category-card {
    min-height: 92px;
    border: 1px solid rgba(22, 122, 75, .18);
    border-radius: 8px;
    padding: 13px;
    display: grid;
    align-content: space-between;
    gap: 10px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 252, 250, .98)),
        #fff;
    color: var(--ink);
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.archive-category-card:hover {
    border-color: rgba(22, 122, 75, .45);
    box-shadow: var(--shadow-soft);
    transform: translateY(-1px);
}

.archive-category-card strong {
    font-size: 16px;
    line-height: 1.2;
}

.archive-category-card span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.archive-more {
    display: flex;
    justify-content: center;
    padding-top: 4px;
}

.archive-more .btn {
    min-width: 190px;
}

.mock-card h2 {
    margin: 0;
    font-size: 21px;
    line-height: 1.16;
}

.mock-card p {
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.mock-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.mock-time {
    width: fit-content;
    border-radius: 999px;
    padding: 7px 10px;
    background: #eef6f1;
    color: var(--green-deep);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.mock-number {
    color: rgba(22, 32, 28, .18);
    font-size: 26px;
    line-height: 1;
    font-weight: 900;
}

.mock-cta {
    align-self: end;
    color: var(--green-deep);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}


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

.stat {
    min-height: 62px;
    border: 1px solid #d9e6df;
    border-radius: 8px;
    padding: 9px 10px;
    background: linear-gradient(180deg, #ffffff, #f7faf8);
    box-shadow: var(--shadow-soft);
}

.stat strong {
    display: block;
    font-size: 18px;
    line-height: 1.1;
}

.stat span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.countdown-card {
    border: 1px solid #d9e6df;
    border-radius: 8px;
    padding: 10px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.page-countdown {
    width: min(420px, 100%);
    margin: 24px auto 0;
    text-align: center;
}

.countdown-card span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.countdown-card strong {
    display: block;
    margin-top: 3px;
    color: var(--green-deep);
    font-size: 20px;
    line-height: 1.1;
}

.countdown-card small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.progress-wrap {
    height: 12px;
    border-radius: 999px;
    background: #e8eee9;
    overflow: hidden;
    border: 1px solid #dbe6df;
}

.progress-bar {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--green), var(--saffron));
    transition: width .25s ease;
}

.progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.progress-head strong {
    color: var(--green-deep);
    font-size: 14px;
}

.question-area {
    padding: 18px 22px;
    background:
        linear-gradient(180deg, #fff, #fbfdfc);
    display: grid;
    grid-template-rows: auto auto auto minmax(68px, auto) auto auto auto;
    position: relative;
}

.info-btn {
    position: static;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--blue);
    font-weight: 900;
    font-style: italic;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
}

.info-btn:disabled {
    cursor: not-allowed;
    opacity: .42;
}

.info-btn.active {
    background: var(--blue);
    color: #fff;
}

.question-date {
    width: min(360px, 100%);
    margin-bottom: 10px;
}

.available-calendar {
    display: none;
    width: min(360px, 100%);
    margin: -2px 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.available-calendar.open {
    display: block;
}

.calendar-toggle {
    position: relative;
    width: min(360px, 100%);
    min-height: 56px;
    border: 1px solid rgba(22, 122, 75, .35);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(240, 249, 244, .98)),
        #fff;
    color: var(--green-deep);
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    margin: -2px 0 10px;
    padding: 10px 42px 10px 46px;
    text-align: left;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.calendar-toggle::before {
    content: "\25A6";
    position: absolute;
    left: 14px;
    top: 50%;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: grid;
    place-items: center;
    background: var(--green);
    color: #fff;
    font-size: 14px;
    line-height: 1;
    transform: translateY(-50%);
}

.calendar-toggle::after {
    content: "\2304";
    position: absolute;
    right: 14px;
    top: 50%;
    color: var(--green-deep);
    font-size: 18px;
    transform: translateY(-50%);
}

.calendar-toggle:hover,
.calendar-toggle:focus-visible {
    border-color: var(--green);
    box-shadow: 0 16px 34px rgba(17, 86, 57, .14);
    transform: translateY(-1px);
    outline: none;
}

.calendar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day,
.calendar-weekday {
    min-height: 28px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
}

.calendar-weekday {
    color: var(--muted);
    min-height: 18px;
    font-size: 10px;
}

.calendar-day {
    border: 1px solid transparent;
    background: #f6faf7;
    color: #9aa59f;
}

.calendar-day.available {
    border-color: rgba(22, 122, 75, .35);
    background: #e7f7ed;
    color: var(--green-deep);
    cursor: pointer;
}

.calendar-day.selected {
    background: var(--green);
    color: #fff;
}

.question-language {
    width: min(280px, 100%);
    margin-bottom: 8px;
}

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


.question-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border-radius: 999px;
    padding: 7px 11px;
    background: #edf5ff;
    color: var(--blue);
    font-weight: 800;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    border-radius: 999px;
    padding: 6px 9px;
    background: #eef6f1;
    color: var(--green-deep);
    font-size: 12px;
    font-weight: 700;
}

.question {
    min-height: 68px;
    margin: 0 0 6px;
    font-size: clamp(20px, 2.4vw, 28px);
    line-height: 1.18;
    letter-spacing: 0;
    display: flex;
    align-items: flex-start;
}

.options {
    display: grid;
    gap: 7px;
    min-height: 270px;
    align-content: start;
}

.option {
    width: 100%;
    min-height: 58px;
    display: grid;
    grid-template-columns: 34px 1fr;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--ink);
    background: #fff;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(20, 41, 30, .05);
    transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.option:hover {
    border-color: var(--green);
    background: #f5fbf7;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(20, 41, 30, .08);
}

.option:disabled {
    cursor: default;
    opacity: .92;
    transform: none;
}

.option.selected {
    border-color: var(--blue);
    background: #eef5ff;
}

.option.correct {
    border-color: var(--green);
    background: #eaf7ef;
    color: #123d2a;
}

.option.wrong {
    border-color: var(--red);
    background: #fff0f0;
    color: #632121;
}

.option-key {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    background: var(--ink);
    font-weight: 800;
    font-size: 14px;
}

.option.correct .option-key {
    background: var(--green);
}

.option.wrong .option-key {
    background: var(--red);
}

.explanation {
    min-height: 52px;
    margin-top: 8px;
    border: 1px solid #f2d39d;
    border-left: 5px solid var(--saffron);
    padding: 10px 12px;
    background: #fff8ed;
    color: #61420f;
    border-radius: 0 8px 8px 0;
}

.controls {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auto-next-toggle {
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 10px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #fff;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.auto-next-toggle .auto-icon {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--soft);
    color: var(--green-deep);
    font-size: 14px;
    line-height: 1;
}

.auto-next-toggle.active {
    border-color: rgba(22, 122, 75, .45);
    background: #effaf3;
    color: var(--green-deep);
}

.btn {
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 11px 18px;
    background: #fff;
    color: var(--ink);
    font-weight: 800;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.btn.primary {
    border-color: var(--green);
    background: linear-gradient(135deg, var(--green), var(--green-deep));
    color: #fff;
}

.btn.secondary {
    color: var(--green-deep);
}

.btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

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

.side-panel {
    position: sticky;
    top: 0;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 100vh;
    height: 100vh;
    overflow: auto;
    background:
        linear-gradient(180deg, rgba(22, 122, 75, .06), rgba(35, 100, 170, .04)),
        #fff;
}

.sidebar-toggle {
    display: none;
}

.side-section {
    display: grid;
    gap: 10px;
}

.map-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 2px;
}

.side-bottom {
    margin-top: auto;
    display: grid;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, .76), #fff);
}

.side-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.side-title {
    margin: 0;
    font-size: 20px;
}

.side-subtitle {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

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

.jump {
    aspect-ratio: 1;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--muted);
    font-weight: 800;
    cursor: pointer;
    transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.jump:hover {
    transform: translateY(-1px);
    border-color: var(--blue);
}

.jump.current {
    border-color: var(--blue);
    color: #fff;
    background: var(--blue);
}

.jump.done {
    border-color: var(--green);
    color: var(--green-deep);
    background: #eaf7ef;
}

.jump.correct {
    border-color: var(--green);
    color: #fff;
    background: var(--green);
}

.jump.wrong {
    border-color: var(--red);
    color: #fff;
    background: var(--red);
}

.pipeline {
    display: grid;
    gap: 10px;
}

.pipeline-row {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 10px;
    align-items: start;
    color: var(--muted);
    font-size: 14px;
}

.dot {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: #eef6f1;
    color: var(--green);
    font-weight: 900;
}

.result-panel {
    display: none;
    margin-top: 24px;
    padding: 28px;
    background:
        linear-gradient(135deg, rgba(35, 100, 170, .08), rgba(240, 154, 42, .08)),
        #fff;
}

.result-panel.show {
    display: block;
}

.score-line {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
}

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

.review-item {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 15px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.review-item.correct {
    border-color: rgba(22, 122, 75, .35);
    background: #f2fbf5;
}

.review-item.wrong {
    border-color: rgba(191, 49, 49, .3);
    background: #fff6f6;
}

.review-item strong {
    display: block;
    margin-bottom: 6px;
}

.muted {
    color: var(--muted);
}

footer {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 34px;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

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

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

    .archive-card {
        grid-column: auto;
    }

    .headline-row {
        align-items: stretch;
        flex-direction: column;
    }

    .side-panel {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 40;
        width: min(80vw, 360px);
        height: 100vh;
        max-height: none;
        overflow: visible;
        border-radius: 0;
        transform: translateX(105%);
        transition: transform .22s ease;
    }

    body.sidebar-open .side-panel {
        transform: translateX(0);
    }

    body.sidebar-open::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 35;
        background: rgba(10, 24, 18, .38);
    }

    .sidebar-toggle {
        position: fixed;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 46;
        width: 40px;
        height: 54px;
        display: grid;
        place-items: center;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--green);
        color: #fff;
        font-size: 22px;
        font-weight: 900;
        font-family: Arial, Helvetica, sans-serif;
        line-height: 1;
        box-shadow: var(--shadow);
        cursor: pointer;
        transition: right .22s ease;
    }

    body.sidebar-open .sidebar-toggle {
        right: min(80vw, 360px);
        border-radius: 8px 0 0 8px;
        border-right: 0;
    }

    .side-title-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }
}

@media (max-width: 640px) {
    .topbar-inner,
    main,
    footer {
        width: min(100% - 22px, 1180px);
    }

    .topbar-inner {
        min-height: 62px;
    }

    .nav-actions {
        font-size: 12px;
    }

    .brand-text {
        display: inline;
        font-size: 15px;
    }

    .question-area,
    .result-panel {
        padding: 14px;
    }

    .quiz-head {
        padding: 14px;
    }

    .question-area {
        grid-template-rows: auto auto auto minmax(84px, auto) auto auto auto;
    }

    .question {
        min-height: 84px;
        margin-bottom: 5px;
    }

    .options {
        min-height: 266px;
        gap: 7px;
    }

    .archive-form {
        max-width: none;
    }

    .question-meta,
    .controls {
        align-items: stretch;
    }

    .option {
        grid-template-columns: 30px 1fr;
        padding: 11px;
    }

    .option-key {
        width: 30px;
        height: 30px;
    }

    .mock-grid {
        grid-template-columns: 1fr;
    }

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

    .archive-date-head {
        align-items: flex-start;
        flex-direction: column;
    }
}
