.identity-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9998;
}

.identity-modal-card {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    width: min(460px, calc(100% - 32px));
    box-sizing: border-box;
    padding: 36px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
    font-family: "Inter", sans-serif;
}

.identity-modal-card form,
.identity-modal-field {
    display: flex;
    flex-direction: column;
}

.identity-modal-card form { gap: 16px; }
.identity-modal-field { gap: 6px; }

.identity-modal-title {
    margin: 0;
    color: #1a1d2d;
    font-size: 22px;
    font-weight: 700;
}

.identity-modal-sub {
    margin: 0;
    color: #4a5568;
    font-size: 15px;
    line-height: 1.5;
}

.identity-modal-label {
    color: #1a1d2d;
    font-size: 14px;
    font-weight: 600;
}

.identity-modal-input {
    box-sizing: border-box;
    width: 100%;
    padding: 10px 12px;
    border: 2px solid rgba(29, 31, 36, 0.12);
    border-radius: 6px;
    background: #fff;
    font: 500 17px "Inter", sans-serif;
}

.identity-modal-input:focus {
    border-color: #324dd4;
    outline: none;
}

.identity-modal-error {
    margin: 0;
    color: #dc2626;
    font-size: 13px;
}

.identity-modal-button {
    width: 100%;
    margin-top: 4px;
    padding: 12px 20px;
    border: 0;
    border-radius: 24px;
    background: #1a1d2d;
    color: #fff;
    cursor: pointer;
    font: 600 16px "Inter", sans-serif;
}

.quiz-load-state {
    margin: 24px auto;
    padding: 18px 22px;
    width: min(760px, calc(100% - 40px));
    box-sizing: border-box;
    border-radius: 10px;
    background: #f3f4f6;
    color: #1a1d2d;
    font: 600 15px/1.5 "Inter", sans-serif;
    text-align: center;
}

.quiz-load-state.is-error { color: #991b1b; background: #fef2f2; }
.quiz-load-state button { margin: 12px 5px 0; }

@media (max-width: 520px) {
    .identity-modal-card { padding: 26px 22px; }
}
