/* Интерфейс ученика */

.mee-sp-question {
    margin: 16px 0;
}

.mee-sp-instructions {
    margin-bottom: 14px;
    font-size: 0.95em;
    color: #555;
}

.mee-sp-question .mee-sp-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.mee-sp-question .mee-sp-card {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 12px !important;
    padding: 16px;
    border: 1px solid #d7dce2;
    border-radius: 10px;
    background: #fff;
    color: #222;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
    cursor: grab;
}

.mee-sp-question .mee-sp-handle {
    flex: 0 0 auto;
    color: #8b929b;
    font-size: 24px;
    user-select: none;
}

.mee-sp-question .mee-sp-text {
    flex: 1 1 auto;
    min-width: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.5;
}

.mee-sp-question .mee-sp-controls {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 6px;
}

.mee-sp-question .mee-sp-controls button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 38px !important;
    height: 36px !important;
    min-width: 38px !important;
    min-height: 36px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid #ccd1d8 !important;
    border-radius: 6px !important;
    background: #f5f7fa !important;
    color: #333 !important;
    font-size: 20px !important;
    line-height: 1 !important;
    cursor: pointer;
    box-shadow: none !important;
}

.mee-sp-question .mee-sp-controls button:hover:not(:disabled) {
    background: #e5edf8 !important;
}

.mee-sp-question .mee-sp-controls button:focus-visible {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

.mee-sp-question .mee-sp-controls button:disabled {
    opacity: 0.3;
    cursor: default;
}

.mee-sp-question .mee-sp-dragging {
    opacity: 0.5;
}

.mee-sp-live {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

/* Встроенный редактор QSM */

.mee-sp-editor .correct-header,
.mee-sp-editor .answer-correct-div,
.mee-sp-editor .answer-point-div {
    display: none !important;
}

.mee-sp-editor-note {
    padding: 12px;
    border-left: 4px solid #2271b1;
    background: #eef5fc;
}

.mee-sp-editor .answers-single {
    flex-wrap: wrap;
}

.mee-sp-editor .answer-text-div {
    flex: 1 1 auto;
    min-width: 0;
}

.mee-sp-editor textarea.mee-sp-admin-text {
    display: block;
    width: 100%;
    min-height: 100px;
    resize: vertical;
    box-sizing: border-box;
}

.mee-sp-admin-controls {
    display: flex;
    gap: 6px;
    width: 100%;
    margin-top: 8px;
}

@media (max-width: 600px) {
    .mee-sp-question .mee-sp-card {
        gap: 8px;
        padding: 12px;
    }

    .mee-sp-question .mee-sp-handle {
        display: none;
    }

    .mee-sp-question .mee-sp-controls button {
        width: 42px !important;
        height: 42px !important;
    }
}