.testing-page {
    color: #272d37;
    background: #fafafa;
    font-family: "Geist", Arial, sans-serif;
}

.testing-page .site-main {
    font-family: "Geist", Arial, sans-serif;
}

.testing-page .home-header__brand {
    flex-basis: 275px;
}

.testing-page .home-header__nav {
    gap: 32px;
}

.testing-page .home-header__nav a {
    line-height: 22px;
}

.test-breadcrumbs {
    display: flex;
    min-height: 82px;
    padding-top: 64px;
    gap: 8px;
    align-items: flex-start;
    color: #ced1d7;
    font-family: "Inter", "Geist", Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
}

.test-breadcrumbs a {
    color: #5f6d7e;
    text-decoration: none;
}

.test-breadcrumbs [aria-current="page"] {
    color: #272d37;
}

.test-detail-heading {
    padding-top: 40px;
}

.test-detail-heading h1 {
    margin: 0;
    color: #272d37;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 600;
    line-height: 1.12;
}

.test-overview {
    display: flex;
    padding-top: 40px;
    flex-direction: column;
    gap: 10px;
}

.test-card {
    display: grid;
    min-height: 300px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    background: #fff;
    border-radius: 20px;
}

.test-card__image {
    min-height: 300px;
    background-color: #e9eaed;
    background-image: url("../img/test1.jpg");
    background-position: center 57%;
    background-size: cover;
}

.test-card__content {
    display: flex;
    padding: 24px;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.test-card__content > span {
    color: #5f6d7e;
    font-size: 18px;
    line-height: 28px;
}

.test-card__content h1 {
    margin: 0;
    color: #272d37;
    font-size: 32px;
    font-weight: 600;
    line-height: 36px;
}

.test-card__content p {
    max-width: 535px;
    margin: 0;
    color: #5f6d7e;
    font-size: 16px;
    line-height: 26px;
}

.test-progress {
    display: flex;
    min-height: 154px;
    padding: 32px;
    gap: 24px;
    align-items: center;
    background: #fff;
    border-radius: 20px;
}

.test-progress__main {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 16px;
}

.test-progress__heading {
    display: flex;
    gap: 20px;
    align-items: baseline;
    justify-content: space-between;
}

.test-progress__heading h2 {
    margin: 0;
    color: #272d37;
    font-size: 24px;
    font-weight: 600;
    line-height: 30px;
}

.test-progress__heading > span {
    color: #919ba7;
    font-size: 15px;
    font-weight: 500;
    line-height: 22px;
}

.test-progress__heading b {
    font-weight: inherit;
}

.test-progress__track {
    width: 100%;
    height: 10px;
    overflow: hidden;
    background: #edf0f5;
    border-radius: 6px;
    box-shadow: inset 0 0 0 1px #eaebf0;
}

.test-progress__track > span {
    display: block;
    width: 0;
    height: 100%;
    background: #2b63d9;
    border-radius: inherit;
    transition: width 180ms ease;
}

.test-timer {
    display: flex;
    width: 128px;
    height: 90px;
    flex: 0 0 128px;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    justify-content: center;
    background: #edf0f5;
    border-radius: 18px;
}

.test-timer > span {
    color: #5f6d7e;
    font-family: "Inter", "Geist", Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 16px;
}

.test-timer time {
    color: #2b63d9;
    font-size: 24px;
    font-weight: 600;
    line-height: 28px;
}

.test-form-section {
    padding: 24px 0 40px;
}

.test-form {
    display: flex;
    padding: 40px;
    flex-direction: column;
    gap: 40px;
    background: #fff;
    border-radius: 20px;
}

.test-groups {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.question-section {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.question-section + .question-section--introduced {
    margin-top: 12px;
    padding-top: 40px;
    border-top: 1px solid #e2e5eb;
}

.question-section > h2 {
    margin: 0;
    color: #5f6d7e;
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
}

.test-question {
    min-width: 0;
    padding: 0;
    margin: 0;
    border: 0;
}

.test-question__heading {
    display: flex;
    width: 100%;
    min-height: 52px;
    padding: 0;
    margin: 0 0 16px;
    gap: 14px;
    align-items: flex-start;
}

.test-question__number {
    display: inline-flex;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    align-items: center;
    justify-content: center;
    color: #1d1d1b;
    background: #d8d8d8;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    line-height: 17px;
}

.test-question__heading b {
    color: #272d37;
    font-size: 18px;
    font-weight: 500;
    line-height: 26px;
}

.test-question--compact .test-question__heading {
    min-height: 26px;
}

.answer-grid {
    display: grid;
    padding-left: 40px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
}

.answer-option {
    position: relative;
    display: flex;
    min-height: 72px;
    padding: 0 20px;
    gap: 14px;
    align-items: center;
    background: #fff;
    border-radius: 13px;
    box-shadow: inset 0 0 0 1px #e2e5eb;
    cursor: pointer;
    transition: background-color 160ms ease, box-shadow 160ms ease;
}

.answer-option:hover {
    background: #f8faff;
    box-shadow: inset 0 0 0 1px #b1ccfb;
}

.answer-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.answer-option__letter {
    display: inline-flex;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    align-items: center;
    justify-content: center;
    color: #2250c3;
    background: #b1ccfb;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    line-height: 17px;
}

.answer-option__text {
    min-width: 0;
    flex: 1;
    color: #272d37;
    font-size: 18px;
    font-weight: 500;
    line-height: 26px;
}

.answer-option > i {
    display: block;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    background: #fff;
    border: 2px solid #d8d8d8;
    border-radius: 50%;
}

.answer-option:has(input:focus-visible) {
    outline: 3px solid var(--color-primary-500);
    outline-offset: 3px;
}

.answer-option:has(input:checked) {
    background: #f4f7ff;
    box-shadow: inset 0 0 0 2px #2b63d9;
}

.answer-option input:checked ~ i {
    border: 6px solid #2b63d9;
}

.test-complete {
    display: flex;
    min-height: 126px;
    gap: 24px;
    align-items: flex-start;
}

.test-complete .button {
    width: 260px;
}

.test-complete__message {
    margin: 12px 0 0;
    color: #5f6d7e;
    font-size: 15px;
    line-height: 22px;
}

.testing-footer {
    height: 169px;
    margin-top: 0;
}

.testing-footer .home-footer__nav {
    min-height: 104px;
    grid-template-columns: 212fr 263fr 122fr 161fr;
}

.testing-footer .home-footer__column--more .site-footer__copyright {
    margin-top: 0;
}

@media (max-width: 75rem) {
    .testing-page .home-header__brand {
        flex-basis: 306px;
    }

    .testing-page .home-header__nav {
        gap: clamp(16px, 5vw, 32px);
    }

    .testing-footer {
        height: auto;
    }
}

@media (max-width: 48rem) {
    .test-breadcrumbs {
        min-height: 66px;
        padding-top: 40px;
        overflow-x: auto;
        white-space: nowrap;
    }

    .test-card {
        grid-template-columns: 1fr;
    }

    .test-card__image {
        min-height: clamp(210px, 56vw, 300px);
    }

    .test-card__content {
        min-height: 220px;
    }

    .test-progress {
        padding: 24px;
    }

    .test-form {
        padding: 28px 24px;
    }

    .answer-grid {
        padding-left: 40px;
        grid-template-columns: 1fr;
    }

    .test-question__heading,
    .test-question--compact .test-question__heading {
        min-height: 0;
    }

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

@media (max-width: 36rem) {
    .testing-page .home-header__brand {
        flex-basis: auto;
    }

    .test-breadcrumbs {
        font-size: 13px;
    }

    .test-card__content h1 {
        font-size: 28px;
        line-height: 34px;
    }

    .test-progress {
        padding: 20px;
        flex-direction: column;
        align-items: stretch;
    }

    .test-timer {
        width: 100%;
        height: 72px;
        flex-basis: 72px;
        flex-direction: row;
    }

    .test-form {
        padding: 24px 16px;
    }

    .question-section > h2,
    .test-question__heading b,
    .answer-option__text {
        font-size: 16px;
        line-height: 24px;
    }

    .answer-grid {
        padding-left: 0;
    }

    .answer-option {
        min-height: 64px;
        padding: 0 14px;
        gap: 10px;
    }

    .test-complete {
        min-height: 112px;
        flex-direction: column;
        gap: 0;
    }

    .test-complete .button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .test-progress__track > span {
        transition: none;
    }
}

/* Dynamic catalog, start and player states. */
.testing-page {
    min-height: 60vh;
}

.test-catalog {
    padding-top: 40px;
    padding-bottom: 80px;
}

.test-catalog__header {
    max-width: 820px;
    margin-bottom: 32px;
}

.test-catalog__header > span,
.test-catalog-card > span {
    color: #2250c3;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.test-catalog__header h1 {
    margin: 8px 0 16px;
    color: #272d37;
    font-size: clamp(36px, 5vw, 48px);
    line-height: 1.1;
}

.test-catalog__header p,
.test-catalog-card p,
.test-start__card > p {
    color: #5f6d7e;
    font-size: 18px;
    line-height: 1.55;
}

.test-heading-note {
    display: grid;
    gap: 6px;
    margin-bottom: 15px;
}

.test-heading-note h1,
.test-heading-note .test-demo-note {
    margin: 0;
}

.test-heading-note .test-demo-note {
    color: #737e8c;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;
}

.testing-page .test-participant-greeting,
.results-page .test-participant-greeting {
    margin: 12px 0 0;
    color: #272d37;
    font-size: 18px;
    font-weight: 500;
    line-height: 26px;
}

.test-participant-greeting strong {
    font-weight: 600;
}

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

.test-catalog__grid--subtests {
    grid-template-columns: 1fr;
}

.test-catalog-card {
    display: flex;
    min-width: 0;
    min-height: 300px;
    padding: 28px;
    flex-direction: column;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #e2e5eb;
    border-radius: 20px;
}

.test-catalog-card.test-catalog-card--subtest {
    min-height: 0;
    flex-direction: row;
    gap: 32px;
    align-items: center;
    justify-content: space-between;
}

.test-catalog-card__content {
    min-width: 0;
}

.test-catalog-card--subtest h2 {
    margin: 0;
}

.test-catalog-card--subtest .test-catalog-card__duration {
    margin: 8px 0 0;
    color: #5f6d7e;
    font-size: 15px;
    line-height: 1.5;
}

.test-catalog-card--subtest .button {
    flex: 0 0 auto;
}

.test-catalog-card h2 {
    margin: 12px 0 0;
    color: #272d37;
    font-size: 26px;
    line-height: 1.2;
}

.test-catalog-card p {
    flex: 1;
    overflow-wrap: anywhere;
}

.test-catalog-card__meta {
    margin: 0 0 20px;
    color: #5f6d7e;
    font-size: 14px;
}

.test-start {
    padding-top: 24px;
    padding-bottom: 64px;
}

.test-start__card,
.test-state {
    padding: 32px;
    background: #fff;
    border-radius: 20px;
}

.test-start__card h2,
.test-state h1,
.test-state h2 {
    margin: 0 0 16px;
}

.test-participant-modal {
    width: min(680px, calc(100% - 32px));
    max-height: calc(100dvh - 32px);
    padding: 0;
    overflow: auto;
    color: #272d37;
    background: #fff;
    border: 0;
    border-radius: 20px;
    box-shadow: 0 24px 64px rgb(16 24 40 / 28%);
}

.test-participant-modal::backdrop {
    background: rgb(16 24 40 / 62%);
    backdrop-filter: blur(4px);
}

.test-participant-modal__content {
    position: relative;
    padding: 36px;
}

.test-participant-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    width: 40px;
    height: 40px;
    padding: 0;
    place-items: center;
    color: #5f6d7e;
    background: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
}

.test-participant-modal__close:hover {
    color: #272d37;
    background: #f2f4f7;
}

.test-participant-modal__close:focus-visible {
    outline: 3px solid #3478ed;
    outline-offset: 2px;
}

.test-participant-modal__label {
    color: #2250c3;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.test-participant-modal h2 {
    margin: 0 0 8px;
    color: #272d37;
    font-size: clamp(28px, 5vw, 36px);
    line-height: 1.15;
}

.test-participant-modal__label + h2 {
    margin-top: 8px;
}

.test-participant-modal__content > p {
    margin: 0;
    color: #5f6d7e;
    font-size: 17px;
    line-height: 1.5;
}

.test-registration {
    margin-top: 24px;
}

.test-registration__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.test-registration__grid .form-field:first-child {
    grid-column: 1 / -1;
}

.test-registration__consent {
    display: flex;
    max-width: 680px;
    margin: 0 0 20px;
    gap: 12px;
    align-items: flex-start;
    color: #5f6d7e;
    font-size: 14px;
    line-height: 1.45;
}

.test-registration__consent input {
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
    flex: 0 0 20px;
    accent-color: var(--color-primary-600);
}

.test-registration__consent a {
    color: #2250c3;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.test-registration > .button {
    width: 100%;
}

.test-state {
    margin-top: 64px;
    margin-bottom: 64px;
}

.test-state--error {
    border: 1px solid #efb4b0;
}

.test-status {
    min-height: 24px;
    margin: 12px 0 0;
    color: #5f6d7e;
    line-height: 24px;
}

.test-status--error,
.test-state--error {
    color: #b42318;
}

.test-rich-text {
    max-width: 100%;
    color: #434b57;
    overflow-wrap: anywhere;
}

.test-rich-text > :first-child {
    margin-top: 0;
}

.test-rich-text > :last-child {
    margin-bottom: 0;
}

.test-rich-text img,
.test-rich-text table {
    max-width: 100%;
}

.test-rich-text table {
    display: block;
    overflow-x: auto;
    border-collapse: collapse;
}

.test-rich-text th,
.test-rich-text td {
    padding: 8px 10px;
    border: 1px solid #d8dce3;
}

.test-player__loading {
    padding-top: 64px;
    padding-bottom: 64px;
    color: #5f6d7e;
    font-size: 18px;
    text-align: center;
}

.test-overview--player {
    position: sticky;
    top: 0;
    z-index: 20;
    padding-top: 0;
}

.test-overview--player .test-progress {
    border: 1px solid #e7e9ed;
    box-shadow: 0 8px 24px rgb(23 32 51 / 8%);
}

.test-card__image--custom {
    background-image: none;
}

.test-card__image--custom img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.question-section__body {
    min-width: 0;
}

.question-section__questions {
    display: grid;
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 32px;
}

.question-section__questions > .test-question:not(.test-question--single_choice):not(.test-question--shared_bank_choice) {
    grid-column: 1 / -1;
}

.test-question--single_choice .answer-grid,
.test-question--shared_bank_choice .answer-grid {
    grid-template-columns: 1fr;
}

.test-stimulus-panel {
    position: sticky;
    top: 170px;
    z-index: 10;
    overflow: hidden;
    background: #f5f7fb;
    border: 1px solid #e2e5eb;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgb(23 32 51 / 8%);
}

.test-stimulus-panel summary {
    display: flex;
    min-height: 52px;
    padding: 13px 20px;
    gap: 16px;
    align-items: center;
    color: #272d37;
    cursor: pointer;
    list-style: none;
}

.test-stimulus-panel summary::-webkit-details-marker {
    display: none;
}

.test-stimulus-panel summary::before {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    content: "";
    border-right: 2px solid #2250c3;
    border-bottom: 2px solid #2250c3;
    transform: rotate(45deg) translateY(-2px);
}

.test-stimulus-panel:not([open]) summary::before {
    transform: rotate(-45deg) translateX(-2px);
}

.test-stimulus-panel summary strong {
    font-size: 16px;
    line-height: 24px;
}

.test-stimulus-panel__action {
    margin-left: auto;
    color: #2250c3;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
}

.test-stimulus-panel[open] summary {
    border-bottom: 1px solid #e2e5eb;
}

.test-stimulus-panel__content {
    max-height: calc(40vh - 53px);
    padding: 20px;
    overflow: auto;
}

.test-stimulus-panel__content > :first-child {
    margin-top: 0;
}

.test-stimulus-panel__content > :last-child {
    margin-bottom: 0;
}

.test-stimulus-mobile-trigger {
    display: none;
}

.test-stimulus-sheet {
    position: fixed;
    inset: auto 0 0;
    width: 100%;
    max-width: none;
    max-height: 85dvh;
    padding: 0;
    margin: 0;
    overflow: visible;
    background: transparent;
    border: 0;
}

.test-stimulus-sheet::backdrop {
    background: rgb(16 24 40 / 58%);
    backdrop-filter: blur(2px);
}

.test-stimulus-sheet__surface {
    display: flex;
    max-height: 85dvh;
    overflow: hidden;
    flex-direction: column;
    background: #fff;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -16px 48px rgb(16 24 40 / 22%);
    animation: test-sheet-in 180ms ease-out;
}

.test-stimulus-sheet__header {
    position: relative;
    display: flex;
    min-height: 64px;
    padding: 20px 56px 12px 20px;
    align-items: center;
    border-bottom: 1px solid #e2e5eb;
    touch-action: pan-y;
}

.test-stimulus-sheet__header h2 {
    margin: 0;
    color: #272d37;
    font-size: 20px;
    line-height: 28px;
}

.test-stimulus-sheet__handle {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 40px;
    height: 4px;
    background: #c8cdd5;
    border-radius: 2px;
    transform: translateX(-50%);
}

.test-stimulus-sheet__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    padding: 0;
    color: #5f6d7e;
    background: #f2f4f7;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    font-size: 26px;
    line-height: 34px;
}

.test-stimulus-sheet__content {
    padding: 20px;
    overflow: auto;
    overscroll-behavior: contain;
}

.test-stimulus-sheet__content > :first-child {
    margin-top: 0;
}

.test-stimulus-sheet__content > :last-child {
    margin-bottom: 0;
}

@keyframes test-sheet-in {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.test-question__heading > .test-question__prompt {
    width: auto;
    height: auto;
    min-width: 0;
    overflow-wrap: anywhere;
    color: #272d37;
    font-size: 18px;
    font-weight: 500;
    line-height: 26px;
    display: block;
    flex: 1 1 auto;
    background-color: unset;
}

.test-question__prompt > :first-child,
.answer-option__text > :first-child {
    margin-top: 0;
}

.test-question__prompt > :last-child,
.answer-option__text > :last-child {
    margin-bottom: 0;
}

.answer-option--checkbox > i {
    border-radius: 5px;
}

.answer-option--checkbox input:checked ~ i {
    position: relative;
    background: #2b63d9;
    border: 2px solid #2b63d9;
}

.answer-option--checkbox input:checked ~ i::after {
    position: absolute;
    top: 1px;
    left: 5px;
    width: 5px;
    height: 10px;
    content: "";
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.answer-grid--matching {
    grid-template-columns: 1fr;
    padding-left: 0;
    gap: 16px;
}

.matching-row {
    display: grid;
    padding: 20px;
    gap: 16px;
    background: #f8f9fb;
    border: 1px solid #e2e5eb;
    border-radius: 12px;
}

.matching-row__source {
    display: flex;
    min-width: 0;
    gap: 14px;
    align-items: flex-start;
    overflow-wrap: anywhere;
}

.matching-row__source > b {
    display: inline-flex;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    align-items: center;
    justify-content: center;
    color: #2250c3;
    background: #b1ccfb;
    border-radius: 6px;
    font-size: 13px;
    line-height: 17px;
}

.matching-row__source > span {
    min-width: 0;
    color: #272d37;
    font-size: 18px;
    font-weight: 500;
    line-height: 26px;
}

.matching-row__source > span > :first-child,
.matching-option__text > :first-child {
    margin-top: 0;
}

.matching-row__source > span > :last-child,
.matching-option__text > :last-child {
    margin-bottom: 0;
}

.matching-picker {
    display: grid;
    padding-left: 40px;
    gap: 12px;
}

.matching-picker__toggle {
    position: relative;
    display: grid;
    width: 100%;
    min-height: 56px;
    padding: 12px 48px 12px 16px;
    gap: 3px;
    color: #272d37;
    background: #fff;
    border: 1px solid #cbd1da;
    border-radius: 10px;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.matching-picker__toggle::after {
    position: absolute;
    top: 50%;
    right: 20px;
    width: 8px;
    height: 8px;
    content: "";
    border-right: 2px solid #2250c3;
    border-bottom: 2px solid #2250c3;
    transform: translateY(-65%) rotate(45deg);
}

.matching-picker__toggle[aria-expanded="true"]::after {
    transform: translateY(-20%) rotate(225deg);
}

.matching-picker__toggle.has-selection {
    background: #f4f7ff;
    border-color: #b1ccfb;
}

.matching-picker__caption {
    color: #5f6d7e;
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
}

.matching-picker__value {
    overflow-wrap: anywhere;
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
}

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

.matching-picker__options[hidden] {
    display: none;
}

.matching-option {
    position: relative;
    display: flex;
    min-height: 64px;
    padding: 10px 16px;
    gap: 12px;
    align-items: center;
    background: #fff;
    border-radius: 10px;
    box-shadow: inset 0 0 0 1px #e2e5eb;
    cursor: pointer;
}

.matching-option:hover {
    background: #f8faff;
    box-shadow: inset 0 0 0 1px #b1ccfb;
}

.matching-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.matching-option__letter {
    display: inline-flex;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    align-items: center;
    justify-content: center;
    color: #2250c3;
    background: #b1ccfb;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.matching-option__text {
    min-width: 0;
    flex: 1;
    overflow-wrap: anywhere;
    color: #272d37;
    font-size: 16px;
    line-height: 22px;
}

.matching-option > i {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    background: #fff;
    border: 2px solid #d8d8d8;
    border-radius: 50%;
}

.matching-option:has(input:checked) {
    background: #f4f7ff;
    box-shadow: inset 0 0 0 2px #2b63d9;
}

.matching-option input:checked ~ i {
    border: 6px solid #2b63d9;
}

.matching-picker__reset {
    width: fit-content;
    padding: 0;
    color: #5f6d7e;
    background: transparent;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.test-media {
    margin-top: 0;
}

.test-media audio,
.test-media video {
    display: block;
    width: 100%;
    max-height: 420px;
}

.test-media audio {
    background: transparent;
}

.test-media video {
    background: #111;
    border-radius: 10px;
}

.test-media__status {
    display: block;
    min-height: 20px;
    margin-top: 8px;
    color: #5f6d7e;
    font-size: 14px;
    line-height: 20px;
}

.test-media__status.is-error {
    color: #b42318;
}

.test-media__status:empty {
    display: none;
}

.test-player__actions {
    display: flex;
    padding-bottom: 64px;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.test-player__actions .test-status {
    width: 100%;
}

.test-offline-lock {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 200;
    max-width: 420px;
    padding: 16px 20px;
    color: #fff;
    background: #b42318;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgb(0 0 0 / 20%);
}

.test-player.is-expired .test-timer {
    background: #fff0ee;
}

.test-timer.is-urgent time {
    color: #b42318;
}

.matching-picker__toggle:focus-visible,
.matching-option:has(input:focus-visible),
.matching-picker__reset:focus-visible,
.test-stimulus-panel summary:focus-visible,
.test-player__actions button:focus-visible,
.test-start button:focus-visible,
.test-catalog a:focus-visible {
    outline: 3px solid #3478ed;
    outline-offset: 3px;
}

@media (max-width: 64rem) {
    .test-catalog__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 48rem) {
    .question-section__questions {
        grid-template-columns: 1fr;
    }

    .test-catalog {
        padding-top: 24px;
        padding-bottom: 48px;
    }

    .test-catalog__grid {
        grid-template-columns: 1fr;
    }

    .test-catalog-card {
        min-height: 260px;
        padding: 24px;
    }

    .test-catalog-card.test-catalog-card--subtest {
        min-height: 0;
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }

    .test-start__card,
    .test-state {
        padding: 24px;
    }

    .test-form-section {
        padding-top: 12px;
    }

    .test-overview--player {
        top: 0;
    }

    .test-overview--player .test-progress {
        min-height: 90px;
        padding: 16px;
        flex-direction: row;
        align-items: center;
    }

    .test-overview--player .test-timer {
        width: 100px;
        height: 62px;
        flex: 0 0 100px;
    }

    .test-stimulus-panel {
        display: none;
    }

    .test-stimulus-mobile-trigger {
        position: sticky;
        top: 106px;
        z-index: 12;
        display: inline-flex;
        min-height: 38px;
        padding: 8px 16px;
        margin-right: -24px;
        margin-bottom: -12px;
        align-self: flex-end;
        align-items: center;
        color: #fff;
        background: #2250c3;
        border: 0;
        border-radius: 20px 0 0 20px;
        box-shadow: 0 6px 18px rgb(34 80 195 / 28%);
        cursor: pointer;
        font: inherit;
        font-size: 14px;
        font-weight: 600;
    }

    .matching-picker__options {
        grid-template-columns: 1fr;
    }

    .test-player__actions .button {
        flex: 1 1 150px;
    }
}

@media (max-width: 36rem) {
    .test-catalog-card .button,
    .test-start .button {
        width: 100%;
    }

    .test-registration__grid {
        grid-template-columns: 1fr;
    }

    .test-registration__grid .form-field:first-child {
        grid-column: auto;
    }

    .test-participant-modal__content {
        padding: 28px 20px 20px;
    }

    .test-participant-modal__close {
        top: 10px;
        right: 10px;
    }

    .test-stimulus-mobile-trigger {
        margin-right: -16px;
    }

    .matching-row {
        padding: 14px;
    }

    .matching-picker {
        padding-left: 0;
    }

    .test-player__actions {
        padding-bottom: 40px;
    }

    .test-overview--player .test-progress__heading h2 {
        font-size: 17px;
        line-height: 22px;
    }

    .test-overview--player .test-timer {
        width: 84px;
        flex-basis: 84px;
        flex-direction: column;
    }
}
