/* Задание для ученика */

.mee-mp {
    margin: 16px 0 24px;
}

.mee-mp-instructions {
    margin-bottom: 12px;
    color: #555;
    font-size: 0.95em;
}

.mee-mp-message {
    margin-bottom: 14px;
    min-height: 24px;
    font-size: 0.95em;
}

.mee-mp-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.mee-mp-left,
.mee-mp-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.mee-mp button.mee-mp-card {
    display: block !important;
    width: 100% !important;
    min-height: 58px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 14px 16px !important;
    border: 2px solid #d6dce4 !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #222 !important;
    text-align: left !important;
    font-family: inherit !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    text-transform: none !important;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    box-shadow: none !important;
    opacity: 1 !important;
    cursor: pointer;
    transition: border-color .15s, background-color .15s;
}

.mee-mp button.mee-mp-card:hover:not(:disabled) {
    border-color: #2271b1 !important;
    background: #f3f8ff !important;
}

.mee-mp button.mee-mp-card:focus-visible {
    outline: 2px solid #2271b1;
    outline-offset: 3px;
}

.mee-mp button.mee-mp-selected {
    border-color: #2271b1 !important;
    background: #eaf3ff !important;
}

.mee-mp button.mee-mp-wrong {
    border-color: #d63638 !important;
    background: #fff4f4 !important;
    cursor: default;
}

.mee-mp button.mee-mp-wrong small {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #b32d2e;
}

.mee-mp button.mee-mp-card:disabled {
    cursor: default;
}

.mee-mp-merged {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 14px 16px;
    border: 2px solid #249342;
    border-radius: 10px;
    background: #f0faf2;
    color: #17682d;
    font-size: 16px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.mee-mp-merged > span {
    min-width: 0;
}

.mee-mp-join {
    flex-shrink: 0;
    font-weight: 700;
}

.mee-mp-sync {
    margin-top: 14px;
}

/* Редактор QSM */

.mee-mp-editor .correct-header,
.mee-mp-editor .answer-correct-div,
.mee-mp-editor .answer-point-div {
    display: none !important;
}

.mee-mp-editor-note {
    padding: 12px;
    background: #eef5fc;
    border-left: 4px solid #2271b1;
}

.mee-mp-admin-right {
    display: none;
}

.mee-mp-editor .answers-single {
    flex-wrap: wrap;
    gap: 8px;
}

.mee-mp-editor .answer-text-div,
.mee-mp-editor .mee-mp-admin-right {
    display: block;
    flex: 1 1 220px;
    min-width: 0;
}

.mee-mp-editor .mee-mp-right-input {
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .mee-mp-columns {
        gap: 10px;
    }

    .mee-mp button.mee-mp-card {
        padding: 12px 10px !important;
        font-size: 14px !important;
    }

    .mee-mp-merged {
        flex-wrap: wrap;
        padding: 12px 10px;
        gap: 6px;
        font-size: 14px;
    }
}