.knowledge-workspace {
    flex: 1;
    min-width: 0;
    min-height: 100vh;
    padding: 28px;
    overflow-y: auto;
    background: #f1f4f8;
}

.quiz-sidebar-section {
    padding: 18px;
}

.quiz-sidebar-section h2 {
    margin: 0 0 12px;
    font-size: 17px;
}

.quiz-sidebar-section h2:not(:first-child) {
    margin-top: 24px;
}

.quiz-choice-group {
    display: grid;
    gap: 10px;
}

.quiz-choice-card {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
}

.quiz-choice-card:hover {
    border-color: #2563eb;
}

.quiz-choice-card input {
    margin-top: 3px;
}

.quiz-choice-card span {
    display: grid;
    gap: 3px;
    font-size: 13px;
}

.quiz-choice-card strong {
    font-size: 14px;
}

.quiz-primary-button {
    border: 0;
    border-radius: 7px;
    padding: 11px 16px;
    background: #1d4ed8;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.quiz-primary-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.quiz-status {
    margin: 15px 0;
    font-size: 13px;
    line-height: 1.4;
}

.quiz-panel {
    width: min(980px, 100%);
    margin: 0 auto;
    padding: 28px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 6px 24px rgb(15 23 42 / 10%);
}

.quiz-exercise-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
}

.quiz-exercise-header h2 {
    margin: 0;
}

.quiz-exercise-header p {
    margin: 5px 0 0;
}

.quiz-exercise-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

.quiz-progress-bar {
    height: 8px;
    margin: 22px 0;
    overflow: hidden;
    border-radius: 10px;
    background: #e2e8f0;
}

#quiz-progress-fill {
    width: 0;
    height: 100%;
    background: #2563eb;
    transition: width 0.2s ease;
}

.quiz-question-card {
    padding: 24px;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    background: #f8fafc;
}

.quiz-question-card h3 {
    margin: 8px 0 22px;
    font-size: 22px;
}

.quiz-answer-list {
    display: grid;
    gap: 9px;
}

.quiz-answer-option {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #ffffff;
    cursor: pointer;
}

.quiz-answer-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #94a3b8;
    border-radius: 7px;
    background: #ffffff;
    font-size: 15px;
}

.quiz-navigation {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-top: 22px;
}

.quiz-navigation button {
    min-height: 42px;
}

.quiz-result-header {
    padding-bottom: 20px;
    border-bottom: 1px solid #dbe3ee;
}

.quiz-score-main {
    margin-top: 12px;
    font-size: 24px;
    font-weight: 800;
}

.quiz-correction-card {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
}

.quiz-correction-card.is-correct {
    border-left: 6px solid #16a34a;
}

.quiz-correction-card.is-wrong {
    border-left: 6px solid #dc2626;
}

.quiz-correction-card h3 {
    margin-top: 0;
}

.quiz-correction-answer {
    margin: 7px 0;
}

.quiz-correction-answer strong {
    display: inline-block;
    min-width: 145px;
}

@media (max-width: 760px) {
    .knowledge-workspace {
        padding: 12px;
    }

    .quiz-panel {
        padding: 18px;
    }

    .quiz-exercise-header {
        display: grid;
    }

    .quiz-exercise-actions button {
        width: 100%;
    }

    .quiz-navigation {
        display: grid;
    }

    .quiz-navigation button {
        width: 100%;
    }
}

.quiz-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.quiz-secondary-button {
    border: 1px solid #1d4ed8;
    border-radius: 7px;
    padding: 11px 16px;
    background: #ffffff;
    color: #1d4ed8;
    font-weight: 700;
    cursor: pointer;
}

.quiz-secondary-button:hover {
    background: #eff6ff;
}

.quiz-score-details {
    margin: 7px 0 0;
    color: #475569;
}

.quiz-correction-question {
    margin-bottom: 18px;
}

.quiz-correction-answer {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin: 12px 0;
}

.quiz-answer-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quiz-map-answer-button {
    border: 1px solid #94a3b8;
    border-radius: 6px;
    padding: 7px 10px;
    background: #ffffff;
    color: #0f172a;
    text-align: left;
    cursor: pointer;
}

.quiz-map-answer-button:hover:not(:disabled) {
    border-color: #2563eb;
    background: #eff6ff;
}

.quiz-map-answer-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.quiz-empty-answer {
    color: #64748b;
    font-style: italic;
}

.quiz-correction-map-area {
    margin-top: 18px;
}

.quiz-correction-map-caption {
    margin: 0 0 8px;
    color: #475569;
    font-size: 13px;
}

.quiz-correction-map {
    width: 100%;
    height: 280px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #e2e8f0;
}

@media (max-width: 760px) {
    .quiz-correction-answer {
        grid-template-columns: 1fr;
    }

    .quiz-map-answer-button {
        width: 100%;
    }

    .quiz-result-actions {
        display: grid;
    }

    .quiz-result-actions button {
        width: 100%;
    }

    .quiz-correction-map {
        height: 230px;
    }
}
