*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100%;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #111;
    background: #fff;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
    height: auto;
}

.page-main {
    min-height: 100vh;
}

.test-shell {
    width: min(100% - 32px, 640px);
    margin: 0 auto;
    padding: 24px 0 40px;
}

.test-progress {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #555;
}

.test-progress strong {
    color: #111;
}

.test-card {
    border: 1px solid #cfcfcf;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
}

.test-title {
    margin: 0 0 12px;
    font-size: 28px;
    line-height: 1.15;
}

.test-lead {
    margin: 0 0 16px;
    color: #333;
}

.test-note {
    margin: 0 0 24px;
    font-size: 14px;
    color: #555;
}

.test-form {
    display: grid;
    gap: 16px;
}

.form-field {
    display: grid;
    gap: 6px;
}

.form-field span {
    font-size: 14px;
    font-weight: 700;
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    border: 1px solid #aaa;
    border-radius: 6px;
    padding: 12px 14px;
    color: #111;
    background: #fff;
}

.form-field textarea {
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    outline: 2px solid #111;
    outline-offset: 1px;
}

.input-prefix {
    display: flex;
    align-items: stretch;
}

.input-prefix > span {
    display: flex;
    align-items: center;
    padding: 0 10px;
    border: 1px solid #aaa;
    border-right: 0;
    border-radius: 6px 0 0 6px;
    font-size: 14px;
    font-weight: 400;
    color: #555;
    background: #f5f5f5;
    white-space: nowrap;
}

.input-prefix input {
    min-width: 0;
    border-radius: 0 6px 6px 0;
}

.primary-button {
    width: 100%;
    border: 0;
    border-radius: 6px;
    padding: 14px 18px;
    font-weight: 700;
    color: #fff;
    background: #111;
}

.form-error {
    margin: 0 0 16px;
    border: 1px solid #b00020;
    border-radius: 6px;
    padding: 12px 14px;
    color: #b00020;
    background: #fff5f7;
}

.test-message {
    margin: 0 0 16px;
    border: 1px solid #cfcfcf;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 15px;
    line-height: 1.45;
    background: #fff;
}

.test-message-info {
    border-color: #9fb7d8;
    color: #1d3f66;
    background: #f3f8ff;
}

.test-message-success {
    border-color: #8bbf9a;
    color: #255b33;
    background: #f1fbf4;
}

.test-message-warning {
    border-color: #d4a72c;
    color: #5f4300;
    background: #fff8e3;
}

.test-message-error {
    border-color: #d64a4a;
    color: #8d1010;
    background: #fff4f1;
}

.test-shell-narrow {
    max-width: 560px;
}

.test-state-card {
    text-align: left;
}

.test-state-card .test-title {
    margin-bottom: 14px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.question-header {
    margin-bottom: 24px;
}

.question-section {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
}

.question-title {
    font-size: 24px;
}

.question-instruction {
    margin-bottom: 0;
}

.answer-list {
    display: grid;
    gap: 12px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.answer-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    border: 1px solid #aaa;
    border-radius: 8px;
    padding: 14px;
    cursor: pointer;
}

.answer-option-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.answer-option-control {
    position: relative;
    flex: 0 0 auto;
    width: 25px;
    height: 20px;
    margin-top: 2px;
    border: 2px solid #888;
    border-radius: 5px;
    background: #fff;
	overflow: visible;
}

.answer-option-control::after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 2px;
    bottom: -1px;
    width: 25px;
    height: 27px;
    background: currentColor;
    clip-path: polygon(
        0 40%,
        25% 33%,
        38% 65%,
        83% 0,
        90% 18%,
        40% 100%
    );
    opacity: 0;
    transform: scale(0.75);
    transform-origin: left bottom;
    transition:
        opacity 0.12s ease,
        transform 0.12s ease;
}

.answer-option-input:checked + .answer-option-control::after {
    opacity: 1;
    transform: scale(1);
}

.answer-option-input:focus-visible + .answer-option-control {
    outline: 2px solid #111;
    outline-offset: 3px;
}

.answer-option-content {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.answer-option-text {
    line-height: 1.4;
}

.answer-option-note {
    font-size: 14px;
    line-height: 1.4;
    color: #666;
}

.answer-selection-status {
    display: flex;
    align-items: center;
    gap: 18px;
    width: 100%;
    margin: 0 0 18px;
    border: 1px solid;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.4;
}

.answer-selection-status > span:first-child {
    flex: 0 0 auto;
    white-space: nowrap;
    font-weight: 700;
}

.answer-selection-summary {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-weight: 700;
}

.answer-selection-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 30px;
    border: 1px solid;
    border-radius: 6px;
    padding: 0 8px;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
}

.answer-selection-hint {
    font-weight: 600;
}

.answer-option:has(.answer-option-input:disabled) {
    cursor: not-allowed;
    opacity: 0.48;
}

.completion-shell {
    position: relative;
    z-index: 1;
    width: min(100% - 24px, 760px);
    margin: 0 auto;
    padding: 24px 0 40px;
}

.completion-card {
    border: 1px solid;
    border-radius: 18px;
    padding: 22px 18px;
}

.completion-hero {
    margin-bottom: 32px;
}

.completion-kicker {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.completion-title {
    margin: 0 0 10px;
    font-size: clamp(32px, 8vw, 48px);
    line-height: 1.05;
}

.completion-lead {
    margin: 0 0 22px;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
}

.completion-card p {
    margin-top: 0;
}

.completion-section {
    margin-top: 34px;
}

.completion-section-title {
    margin: 0 0 18px;
    font-size: 25px;
    line-height: 1.2;
}

.completion-subtitle {
    margin: 28px 0 14px;
    font-size: 21px;
    line-height: 1.25;
}

.completion-message-example {
    margin: 18px 0 22px;
    border-left: 4px solid;
    border-radius: 0 8px 8px 0;
    padding: 14px 16px;
    font-weight: 700;
}

.completion-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 56px;
    border: 2px solid;
    border-radius: 9px;
    padding: 13px 16px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
	transition:
		color 0.15s ease,
		border-color 0.15s ease,
		background 0.15s ease,
		box-shadow 0.15s ease;	
}

.completion-action-caption {
    margin: 8px 0 0;
    font-size: 13px;
    text-align: center;
}

.completion-divider {
    height: 1px;
    margin: 36px 0 0;
}

.completion-feature-list {
    display: grid;
    gap: 12px;
    margin: 20px 0 26px;
    padding: 0;
    list-style: none;
}

.completion-feature-list li {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 10px;
    align-items: start;
}

.completion-closing {
    margin-top: 38px;
    border-top: 1px solid;
    padding-top: 26px;
    text-align: center;
}

.completion-closing p {
    margin-bottom: 5px;
}

.completion-closing strong {
    display: block;
    margin-top: 15px;
    font-size: 19px;
}


.completion-route {
    position: relative;
}

.completion-route::before {
    content: "";
    position: absolute;
    top: 14px;
    bottom: 14px;
    left: 13px;
    width: 2px;
}

.route-stage {
    position: relative;
    margin: 0 0 42px;
    padding-left: 44px;
}

.route-stage-marker {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 2px solid;
    border-radius: 50%;
    font-size: 15px;
    font-weight: 800;
}

.route-stage-name {
    min-height: 28px;
    margin: 0 0 12px;
    padding-top: 3px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.07em;
    line-height: 1.25;
    text-transform: uppercase;
}

.route-stage .completion-hero,
.route-stage .completion-section {
    margin-top: 0;
}

.route-stage-future {
    min-height: 36px;
    margin-bottom: 22px;
}

.route-stage-future .route-stage-name {
    margin-bottom: 0;
}

.completion-topic-list {
    display: grid;
    gap: 9px;
    margin: 16px 0 24px;
    padding-left: 20px;
}

.completion-closing-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
}

.completion-logo {
    height: auto;
    border-radius: 0;
}

.completion-logo-floating {
    display: none;
}

.completion-logo-inline {
    display: block;
    position: static;
    flex: 0 0 auto;
    width: 56px;
}

.completion-closing-text {
    min-width: 0;
}

.completion-closing-text strong {
    display: block;
    margin-top: 12px;
}


pre{
	background-color: azure !important;
}

@media (max-width: 600px) {
    .answer-selection-status {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }
}

@media (max-width: 520px) {
    .answer-selection-status {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }
}

@media (min-width: 700px) {
    .test-shell {
        padding-top: 48px;
    }

    .test-card {
        padding: 32px;
    }
	
    .completion-shell {
        padding-top: 48px;
    }

    .completion-card {
        padding: 38px 42px;
    }
}

@media (min-width: 1050px) {
    .completion-logo-inline {
        display: none;
    }

    .completion-logo-floating {
        display: block;
        position: fixed;
        z-index: 2;
        top: 50%;
        left: calc(50% - 512px);
        width: 108px;
        transform: translateY(-50%);
        pointer-events: none;
    }

    .completion-closing-brand {
        display: block;
        text-align: center;
    }
}