html {
    min-height: 100%;
}

body.pro-test-page {
    min-height: 100vh;
    margin: 0;
    background: #edf3f4;
    color: #172532;
    font-family: "PingFang SC", "Google Sans", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
}

.pro-test-page,
.pro-test-page * {
    box-sizing: border-box;
}

.pro-test-shell {
    width: min(100%, 520px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 18px 16px 26px;
    background: #f7faf9;
}

.pro-test-loading {
    margin: 40vh 0 0;
    color: #6f7f88;
    font-size: 15px;
    text-align: center;
}

.pro-identity-card {
    display: flex;
    min-height: calc(100vh - 44px);
    flex-direction: column;
    justify-content: center;
    padding: 18px 0 30px;
}

.pro-identity-kicker {
    display: inline-flex;
    align-self: center;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    margin: 0 0 16px;
    padding: 0 12px 0 6px;
    border: 1px solid #cfe7e3;
    border-radius: 999px;
    background: linear-gradient(180deg, #fff, #f1fbf8);
    color: #157963;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
}

.pro-identity-kicker span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 24px;
    border-radius: 999px;
    background: #102638;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

.pro-identity-card h1 {
    margin: 0;
    color: #102638;
    font-size: 27px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.25;
    text-align: center;
}

.pro-identity-card p {
    max-width: 360px;
    margin: 10px auto 0;
    color: #667781;
    font-size: 14px;
    line-height: 1.55;
    text-align: center;
}

.pro-identity-card p::after {
    display: block;
    width: 54px;
    height: 2px;
    margin: 18px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #176f84, #18a37a);
    content: "";
}

.pro-identity-options {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.pro-identity-option {
    width: 100%;
    min-height: 88px;
    padding: 15px 16px;
    border: 1px solid #dfe8ea;
    border-radius: 16px;
    background: #fff;
    color: #172532;
    text-align: left;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.pro-identity-option strong {
    display: block;
    color: #102638;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.2;
}

.pro-identity-option span {
    display: block;
    margin-top: 7px;
    color: #667781;
    font-size: 13px;
    line-height: 1.45;
}

.pro-identity-option:hover,
.pro-identity-option:focus {
    border-color: #9ed7d1;
    background: #f8fdfc;
    outline: none;
    transform: translateY(-1px);
}

.pro-test-hero {
    padding: 12px 2px 14px;
}

.pro-test-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 6px;
}

.pro-test-title-row h1 {
    min-width: 0;
    margin: 0;
    color: #102638;
    font-size: 25px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.22;
}

.pro-test-title-badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 0 10px 0 5px;
    border: 1px solid #cfe7e3;
    border-radius: 999px;
    background: linear-gradient(180deg, #fff, #f1fbf8);
    color: #157963;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.pro-test-title-badge span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 22px;
    border-radius: 999px;
    background: #102638;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.pro-test-hero p {
    margin: 0;
    color: #647481;
    font-size: 12px;
    line-height: 1.55;
}

.pro-progress {
    margin: 18px 0 0;
}

.pro-progress__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    color: #657580;
    font-size: 13px;
    font-weight: 700;
}

.pro-progress__row strong {
    color: #0f2538;
    font-size: 17px;
}

.pro-progress__track {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #dce8e9;
}

.pro-progress__track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #176f84, #18a37a);
    transition: width 180ms ease;
}

.pro-question-card {
    margin: 14px 0 16px;
    padding: 20px 16px 34px;
    border: 1px solid #e1ebeb;
    border-radius: 22px;
    background: #fff;
}

.pro-question-card h2 {
    margin: 0;
    color: #14283a;
    font-size: 19px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.36;
}

.pro-question-card>p {
    margin: 10px 0 0;
    color: #7b8993;
    font-size: 13px;
}

.pro-option-descriptions {
    display: grid;
    gap: 16px;
    margin-top: 28px;
}

.pro-option-description {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    width: 100%;
    padding: 12px 12px;
    border: 1px solid #e3eded;
    border-radius: 12px;
    background: #f8fbfb;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.pro-option-description:hover,
.pro-option-description:focus {
    border-color: #9ed7d1;
    background: #f4fbfa;
    outline: none;
    transform: translateY(-1px);
}

.pro-option-description.is-selected {
    border-color: #18a37a;
    background: #ecfbf6;
}

.pro-option-description__label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e4f4f0;
    color: #157963;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
}

.pro-option-description p {
    align-self: center;
    margin: 0;
    color: #263847;
    font-size: 14px;
    line-height: 1.45;
}

.pro-test-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

.pro-prev {
    min-height: 36px;
    margin-top: 60px;
    padding: 0 4px;
    border: 0;
    background: transparent;
    color: #667681;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
}

.pro-prev:hover,
.pro-prev:focus {
    color: #15806b;
    outline: none;
}

.pro-prev[hidden] {
    display: none;
}

.pro-test-note {
    margin: 14px 0 0;
    padding: 0 2px;
    border-radius: 0;
    background: transparent;
    color: #667781;
    font-size: 12px;
    line-height: 1.55;
    text-align: center;
}

.pro-submit-mask {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(17, 33, 42, 0.5);
}

.pro-submit-card {
    width: min(100%, 360px);
    padding: 24px 22px 30px;
    border-radius: 22px;
    background: #fff;
    text-align: center;
}

.pro-submit-card h2 {
    margin: 0 0 10px;
    color: #102638;
    font-size: 21px;
    font-weight: 900;
}

.pro-submit-card p {
    margin: 0 0 18px;
    color: #6f7d86;
    font-size: 14px;
    line-height: 1.55;
}

.pro-submit-actions {
    display: grid;
    gap: 16px;
}

.pro-submit-actions button {
    min-height: 46px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

.pro-submit-ok {
    border: 0;
    background: linear-gradient(90deg, #176f84, #18a37a);
    color: #fff;
}

.pro-submit-cancel {
    border: 1px solid #dfe7e8;
    background: #fff;
    color: #687782;
}

@media (min-width: 760px) {
    .pro-test-shell {
        width: min(100%, 760px);
        padding: 28px 26px 36px;
    }

    .pro-identity-card {
        min-height: calc(100vh - 64px);
    }

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

}

@media (prefers-reduced-motion: reduce) {
    .pro-identity-option,
    .pro-option-description,
    .pro-progress__track span {
        transition: none;
    }
}
