.eqv2__button,
.eqv2__question.is-feedback-view .eqv2__explanation a {
    font-size: 1rem;
}

.eqv2__start > p {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    line-height: 1.6;
}

.eqv2__start-image {
    border-radius: clamp(0.75rem, 1.5vw, 1.25rem);
    display: block;
    height: auto;
    margin: clamp(1.25rem, 3vw, 2.5rem) auto 0;
    max-height: min(38vh, 420px);
    max-width: min(100%, 760px);
    object-fit: contain;
    width: auto;
}

.eqv2__result-feedback {
    margin: 0.75rem auto 0;
    max-width: 900px;
}

.eqv2__percentage {
    font-size: clamp(2.25rem, 5vw, 3rem);
    margin: 0.2em auto 0;
}

.eqv2__result > h2,
.eqv2__result-feedback [data-result-feedback-summary],
.eqv2__result-feedback [data-result-feedback-title] {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
}

.eqv2__result-feedback [data-result-feedback-title] {
    margin-top: 0.75rem;
}

.eqv2__question-header {
    max-width: none;
    position: relative;
}

.eqv2__question-header > h2,
.eqv2__question-header > p {
    margin-left: auto;
    margin-right: auto;
    max-width: 900px;
}

.eqv2__question-header > .eqv2__question-text {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 0.65rem;
    margin-top: 0.65rem;
}

.eqv2__question-header > .eqv2__instruction {
    font-size: clamp(1.125rem, 1.75vw, 1.3125rem);
    line-height: 1.5;
    margin-top: 0.5rem;
}

.eqv2__question-header > .eqv2__instruction::before {
    content: "—";
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.eqv2__question-tools {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
    margin: 0 0 1.25rem auto;
}

.eqv2__tool-button {
    align-items: center;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 0.55rem;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 0.9rem;
    gap: 0.45rem;
    line-height: 1.2;
    padding: 0.55rem 0.75rem;
}

.eqv2__tool-button:hover,
.eqv2__tool-button[aria-expanded="true"],
.eqv2__tool-button[aria-pressed="true"] {
    background: #fff;
    color: #17383b;
}

.eqv2__tool-button > span[aria-hidden="true"] {
    font-size: 1.15em;
    line-height: 1;
}

.eqv2__choices {
    gap: 0.75rem;
    inline-size: fit-content;
    margin-left: auto;
    margin-right: auto;
    max-width: 1100px;
    width: fit-content;
}

.eqv2__choice {
    background: transparent;
    border: 0;
    border-radius: 0.6rem;
    box-sizing: border-box;
    color: #fff;
    font-size: clamp(1.05rem, 2vw, 1.45rem);
    gap: 0.85rem;
    padding: 0.75rem 0.5rem;
    width: 100%;
}

.eqv2__choice:hover {
    background: rgba(255, 255, 255, 0.06);
}

.eqv2__choices--images {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: min(100%, 1100px);
}

.eqv2__choice--image {
    align-items: stretch;
    display: flex;
    flex: 1 1 160px;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 210px;
    min-width: 0;
}

.eqv2__choice--image > img {
    border-radius: 0.35rem;
    display: block;
    height: auto;
    max-width: 100%;
    width: 100%;
}

.eqv2__choice-caption {
    align-items: center;
    display: flex;
    gap: 0.65rem;
    justify-content: center;
}

.eqv2__choice:has(input:checked) {
    background: rgba(0, 157, 105, 0.12);
    border-color: transparent;
}

.eqv2__choice input[type="radio"],
.eqv2__choice input[type="checkbox"] {
    appearance: none;
    background-color: #fff;
    border: 4px solid #009d69;
    box-sizing: border-box;
    flex: 0 0 1.5rem;
    height: 1.5rem;
    margin: 0;
    width: 1.5rem;
}

.eqv2__choice input[type="radio"] {
    border-radius: 50%;
}

.eqv2__choice input[type="radio"]:checked {
    background: radial-gradient(circle, #009d69 0 38%, #fff 42% 100%);
}

.eqv2__choice input[type="checkbox"] {
    border-radius: 0.25rem;
}

.eqv2__choice input[type="checkbox"]:checked {
    background-color: #009d69;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.4' d='m3 8 3 3 7-7'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 85%;
}

.eqv2__choice input:disabled {
    cursor: not-allowed;
    opacity: 0.72;
}

.eqv2.is-feedback-correct {
    background: #237b4b;
}

.eqv2.is-feedback-wrong {
    background: #8d006b;
}

.eqv2.is-feedback-view .eqv2__progress {
    display: none;
}

.eqv2__question.is-feedback-view {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: clamp(390px, 58vh, 680px);
}

.eqv2__question.is-feedback-view > :not(.eqv2__feedback):not(.eqv2__explanation) {
    display: none;
}

.eqv2__question.is-feedback-view .eqv2__feedback {
    background: transparent;
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin: 0 auto 1.5rem;
    max-width: 1100px;
    padding: 0;
    white-space: pre-line;
}

.eqv2__question.is-feedback-view .eqv2__feedback::after {
    align-items: center;
    background: #fff;
    border-radius: 50%;
    box-sizing: border-box;
    display: flex;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    height: clamp(76px, 10vw, 112px);
    justify-content: center;
    line-height: 1;
    margin: 1.25rem auto 0;
    width: clamp(76px, 10vw, 112px);
}

.eqv2__question.is-feedback-view .eqv2__feedback.is-correct::after {
    color: #237b4b;
    content: "✓";
}

.eqv2__question.is-feedback-view .eqv2__feedback.is-wrong::after {
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M30 30 70 70M70 30 30 70' fill='none' stroke='%238d006b' stroke-linecap='round' stroke-width='13'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 58%;
    content: "";
}

.eqv2__question.is-feedback-view .eqv2__explanation {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    line-height: 1.45;
    max-width: 1200px;
}

.eqv2__question.is-feedback-view .eqv2__explanation p {
    margin: 1.15rem auto;
}

.eqv2__question.is-feedback-view .eqv2__explanation .eqv2__learn-more {
    margin-top: 1.75rem;
}

.eqv2__question.is-feedback-view .eqv2__explanation ul,
.eqv2__question.is-feedback-view .eqv2__explanation ol {
    box-sizing: border-box;
    margin: 1rem auto;
    max-width: 1000px;
    padding-left: 1.6em;
    text-align: left;
    width: fit-content;
}

.eqv2__question.is-feedback-view .eqv2__explanation li {
    padding-left: 0.3em;
    text-align: left;
}

.eqv2__question.is-feedback-view .eqv2__explanation li + li {
    margin-top: 0.45em;
}

.eqv2__question.is-feedback-view .eqv2__explanation a {
    background: #fff;
    border-radius: 999px;
    color: #111;
    display: inline-block;
    font-weight: 700;
    max-width: 100%;
    padding: 0.65rem 1.5rem;
    text-decoration: none;
    width: fit-content;
}

.eqv2.is-feedback-wrong .eqv2__footer .eqv2__button {
    background: #006a70;
}

.eqv2__footer {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.eqv2__footer .eqv2__button {
    margin-top: 1.5rem;
}

.eqv2.is-feedback-view .eqv2__footer .eqv2__button--secondary {
    background: transparent;
    border-color: #fff;
}

.eqv2__cards {
    align-items: flex-start;
}

.eqv2__choice-image {
    margin: 0 auto 2rem;
    max-width: 900px;
}

.eqv2__choice-image img {
    border-radius: 1rem;
    display: block;
    height: auto;
    margin: 0 auto;
    max-width: 100%;
}

@media (max-width: 420px) {
    .eqv2__choice--image {
        flex-basis: 100%;
    }
}

.eqv2__cards > .eqv2__card {
    align-content: center;
    align-self: flex-start;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
    padding: 0.75rem 1rem;
}

.eqv2__cards > .eqv2__card > span {
    line-height: 1.25;
}

.eqv2__card--text,
.eqv2__card--text * {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.eqv2__card-placeholder {
    align-self: flex-start;
    background: transparent;
    border: 3px dashed rgba(255, 255, 255, 0.85);
    border-radius: 1rem;
    box-sizing: border-box;
    flex: 0 0 auto;
}

.eqv2__cards > .eqv2__card--image {
    background: transparent;
    border: 0;
    border-radius: 0;
    max-width: 220px;
    padding: 0.25rem;
    width: clamp(120px, 15vw, 220px);
}

.eqv2__card--image > img {
    display: block;
    height: auto;
    max-height: 180px;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
    width: 100%;
}

.eqv2__drop-zone .eqv2__card--image {
    background: transparent;
    border: 0;
    max-width: 94%;
    padding: 0.2rem;
    width: 94%;
}

.eqv2__drop-zone .eqv2__card--image > img {
    max-height: 120px;
}

.eqv2__match--hotspot .eqv2__image-stage > .eqv2__drop-zone {
    background: transparent;
    border-color: transparent;
}

.eqv2__match--hotspot .eqv2__image-stage {
    overflow: visible;
}

.eqv2__match--hotspot .eqv2__image-stage:has(> img) {
    aspect-ratio: auto;
}

.eqv2__match--hotspot .eqv2__image-stage > img,
.eqv2__match--hotspot .eqv2__image-stage > .eqv2__image-placeholder {
    border-radius: 1rem;
}

.eqv2__match--hotspot .eqv2__image-stage > img {
    display: block;
    height: auto;
    object-fit: initial;
    width: 100%;
}

.eqv2__match--hotspot .eqv2__image-stage > .eqv2__drop-zone > span {
    display: none;
}

.eqv2__match--hotspot .eqv2__image-stage > .eqv2__drop-zone.is-over {
    background: rgba(255, 220, 83, 0.2);
    border-color: #ffdc53;
}

.eqv2__target-grid > .eqv2__drop-zone {
    box-sizing: border-box;
    flex: 0 1 calc((100% - 5rem) / 6);
    min-width: 0;
    overflow: hidden;
    padding-top: 2.5rem;
    position: relative;
}

.eqv2__target-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 1200px) {
    .eqv2__target-grid > .eqv2__drop-zone {
        flex-basis: calc((100% - 3rem) / 4);
    }
}

.eqv2__target-grid > .eqv2__drop-zone > strong {
    left: 0.5rem;
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.eqv2__target-grid > .eqv2__drop-zone > .eqv2__target-bar {
    background: var(--eqv2-bar-color, #a50032);
    bottom: 0;
    height: var(--eqv2-bar-height, 0%);
    left: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    transition: height 0.25s ease;
    z-index: 1;
}

.eqv2__target-grid > .eqv2__drop-zone > .eqv2__card--image {
    align-items: center;
    box-sizing: border-box;
    display: flex;
    height: calc(100% - 2rem);
    justify-content: center;
    left: calc(50% + (var(--eqv2-zone-index, 0) * 2px));
    margin: 0;
    max-height: calc(100% - 2rem);
    max-width: calc(100% - 2rem);
    position: absolute;
    top: calc(50% + (var(--eqv2-zone-index, 0) * 2px));
    transform: translate(-50%, -50%) rotate(calc((var(--eqv2-zone-index, 0) - 1) * 0.5deg));
    width: calc(100% - 2rem);
    z-index: calc(5 + var(--eqv2-zone-index, 0));
}

.eqv2__target-grid > .eqv2__drop-zone > .eqv2__card--image > img {
    height: 100%;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    width: 100%;
}

.eqv2__target-grid > .eqv2__drop-zone > .eqv2__card--text {
    box-sizing: border-box;
    max-height: calc(100% - 1rem);
    max-width: calc(100% - 1rem);
}

.eqv2__drag-ghost.eqv2__card--image {
    background: transparent;
    border: 0;
    max-width: 220px;
    padding: 0.25rem;
    width: clamp(120px, 15vw, 220px);
}

.eqv2__cards--image-stack {
    box-sizing: border-box;
    display: block;
    height: clamp(330px, 52vw, 420px);
    margin: 0 auto 1rem;
    max-width: 620px;
    position: relative;
    width: min(90vw, 620px);
}

.eqv2__cards--image-stack.is-empty::after {
    border: 3px dashed rgba(255, 255, 255, 0.9);
    border-radius: 1rem;
    box-sizing: border-box;
    content: "";
    height: 100%;
    left: 50%;
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    width: min(64vw, 420px);
}

.eqv2__cards--image-stack > .eqv2__card--image {
    left: calc(50% + (var(--eqv2-stack-offset) * 16px));
    max-width: 420px;
    position: absolute;
    top: calc(var(--eqv2-stack-index) * 16px);
    transform: translateX(-50%) rotate(calc((var(--eqv2-stack-index) - 2.5) * 0.35deg));
    width: min(64vw, 420px);
    z-index: calc(10 + var(--eqv2-stack-index));
}

.eqv2__cards--image-stack > .eqv2__card--image > img {
    max-height: 315px;
    width: 100%;
}

.eqv2__cards--image-stack > .eqv2__card--image:focus-visible {
    z-index: 100;
}

.eqv2__match.is-alternative-mode .eqv2__card {
    cursor: pointer;
}

.eqv2__assignment-dialog {
    background: #006a70;
    border: 0;
    border-radius: 1.25rem;
    box-shadow: 0 1.25rem 4rem rgba(0, 0, 0, 0.35);
    box-sizing: border-box;
    color: #fff;
    max-width: min(92vw, 620px);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    text-align: left;
    width: 100%;
}

.eqv2__assignment-dialog::backdrop {
    background: rgba(0, 48, 52, 0.78);
}

.eqv2__assignment-dialog h3 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    margin: 0 2.5rem 0.75rem 0;
}

.eqv2__assignment-dialog p {
    margin: 0 0 1.25rem;
}

.eqv2__assignment-dialog.is-card-detail .eqv2__dialog-field,
.eqv2__assignment-dialog.is-card-detail [data-modal-assign] {
    display: none;
}

.eqv2__dialog-close {
    align-items: center;
    background: transparent;
    border: 0;
    color: #fff;
    cursor: pointer;
    display: flex;
    font-size: 2rem;
    height: 2.5rem;
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: absolute;
    right: 0.75rem;
    top: 0.65rem;
    width: 2.5rem;
}

.eqv2__dialog-field {
    display: grid;
    font-weight: 700;
    gap: 0.4rem;
}

.eqv2__dialog-field select {
    appearance: none;
    background: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 12'%3E%3Cpath d='m2 2 8 8 8-8' fill='none' stroke='%2317383b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'/%3E%3C/svg%3E");
    background-position: right 1.25rem center;
    background-repeat: no-repeat;
    background-size: 0.9rem auto;
    border: 2px solid #006a70;
    border-radius: 0.5rem;
    box-sizing: border-box;
    font: inherit;
    color: #17383b;
    min-height: 3rem;
    padding: 0.45rem 3rem 0.45rem 0.6rem;
    width: 100%;
}

.eqv2__dialog-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.eqv2__dialog-actions button {
    background: #e7eeee;
    border: 0;
    border-radius: 999px;
    color: #17383b;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 0.7rem 1.15rem;
}

.eqv2__dialog-actions button.is-primary {
    background: #8d006b;
    color: #fff;
}

.eqv2__dialog-actions [data-modal-remove] {
    margin-right: auto;
}

.eqv2__alternative-panel {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 1rem;
    box-sizing: border-box;
    color: #17383b;
    margin: 0 auto 2rem;
    max-width: 900px;
    padding: 1rem;
    text-align: left;
    width: min(94%, 900px);
}

.eqv2__alternative-panel[hidden] {
    display: none;
}

.eqv2__alternative-panel h3,
.eqv2__alternative-panel p {
    margin: 0 0 0.6rem;
}

.eqv2__alternative-list {
    display: grid;
    gap: 0.55rem;
}

.eqv2__alternative-row {
    align-items: center;
    border-top: 1px solid #d6dddd;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 64px minmax(130px, 1fr) minmax(190px, 1fr);
    padding-top: 0.55rem;
}

.eqv2__alternative-row > img {
    height: 48px;
    object-fit: contain;
    width: 64px;
}

.eqv2__alternative-row--text {
    grid-template-columns: minmax(130px, 1fr) minmax(190px, 1fr);
}

.eqv2__alternative-row select {
    box-sizing: border-box;
    font: inherit;
    min-height: 2.5rem;
    width: 100%;
}

@media (max-width: 700px) {
    .eqv2__target-grid > .eqv2__drop-zone > .eqv2__card[data-assigned-target] {
        touch-action: pan-y;
    }

    .eqv2__match--hotspot .eqv2__image-stage .eqv2__drop-zone > .eqv2__card--text[data-assigned-target] {
        align-items: center;
        background: #fff;
        border: 3px solid #006a70;
        border-radius: 50%;
        box-sizing: border-box;
        color: #006a70;
        cursor: pointer;
        display: flex;
        font-size: 1rem;
        font-weight: 700;
        height: 2.75rem;
        justify-content: center;
        margin: auto;
        max-width: none;
        padding: 0;
        width: 2.75rem;
    }

    .eqv2__match--hotspot .eqv2__image-stage .eqv2__drop-zone > .eqv2__card--text[data-assigned-target] > span {
        clip: rect(1px, 1px, 1px, 1px);
        clip-path: inset(50%);
        height: 1px;
        overflow: hidden;
        position: absolute;
        width: 1px;
    }

    .eqv2__match--hotspot .eqv2__image-stage .eqv2__drop-zone > .eqv2__card--text[data-assigned-target]::after {
        content: attr(data-card-number);
    }

    .eqv2__target-grid > .eqv2__drop-zone {
        flex-basis: calc((100% - 1rem) / 2);
    }

    .eqv2__dialog-actions {
        display: flex;
        flex-wrap: wrap;
    }

    .eqv2__dialog-actions button,
    .eqv2__dialog-actions [data-modal-remove] {
        flex: 1 1 auto;
        margin: 0;
        width: auto;
    }

    .eqv2__choices {
        box-sizing: border-box;
        max-width: 100%;
        width: 100%;
    }

    .eqv2__question.is-feedback-view .eqv2__explanation ul,
    .eqv2__question.is-feedback-view .eqv2__explanation ol {
        max-width: 100%;
        width: 100%;
    }

    .eqv2__question-tools {
        justify-content: center;
    }

    .eqv2__tool-button {
        font-size: 0.78rem;
    }

    .eqv2__cards > .eqv2__card--image {
        width: clamp(100px, 30vw, 160px);
    }

    .eqv2__cards--image-stack {
        height: clamp(270px, 78vw, 340px);
        margin-bottom: 0.75rem;
        width: min(94vw, 430px);
    }

    .eqv2__cards--image-stack.is-empty::after {
        height: 100%;
        top: 0;
        width: min(68vw, 300px);
    }

    .eqv2__cards--image-stack > .eqv2__card--image {
        left: calc(50% + (var(--eqv2-stack-offset) * 10px));
        max-width: 300px;
        top: calc(var(--eqv2-stack-index) * 10px);
        width: 68vw;
    }

    .eqv2__alternative-row {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .eqv2__alternative-row--text {
        grid-template-columns: minmax(0, 1fr);
    }

    .eqv2__alternative-row > img {
        grid-row: 1 / 3;
        height: 42px;
        width: 52px;
    }

    .eqv2__alternative-row > label {
        grid-column: 2;
    }

    .eqv2__alternative-row--text > label {
        grid-column: 1;
    }
}

@media (max-width: 420px) {
    .eqv2__target-grid > .eqv2__drop-zone {
        flex-basis: 100%;
    }
}
