.cefr-quiz { margin-top: 12px; }
.cq-tagline { margin-top: -6px; margin-bottom: 8px; }
.cq-desc { margin-top: -6px; margin-bottom: 14px; }
.cq-header { display: flex; align-items: center; justify-content: flex-start; gap: 1rem; }
.cq-levels-inline { display: inline-flex; align-items: center; gap: 6px; margin-left: 1rem; }
.cq-start { display: flex; flex-direction: column; align-items: stretch; }
.cq-start-btn { font-weight: 600; width: 100%; margin-top: 12px; }
.cq-intro { background: #ffffff; border: 1px solid #eaeaea; border-radius: 12px; padding: 16px; margin-bottom: 0; width: 100%; max-width: 880px; }
.cq-hero { display: flex; align-items: center; gap: 12px; width: 100%; flex: 1; }
.cq-hero-text { flex: 1; min-width: 0; }
.cq-accent-bar { width: 6px; height: 60px; border-radius: 6px; background: var(--cefr-a1, #60a5fa); flex-shrink: 0; }
.cq-hero-title { margin: 0; font-size: 1.25rem; font-weight: 800; color: #111827; }
.cq-hero-sub { margin: 2px 0 0; color: #4b5563; }
.cq-bullets { margin: 10px 0 8px; padding-left: 18px; color: #374151; }
.cq-bullets li { margin: 4px 0; }
.cq-badges { display: inline-flex; align-items: center; gap: 6px; }
.cq-quiz { margin-top: 12px; }
.cq-quiz .cq-question h4 { margin-bottom: 14px; }
.cq-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cq-level { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; padding: 4px 10px; border-radius: 9999px; background: #ffffff; color: #1f2937; border: 0; }
.cq-level .cefr-blob { width: 14px; height: 14px; }
.cq-timer { font-weight: 600; color: #555; }
.cq-progress { height: 10px; background: #f8fafc; border-radius: 9999px; overflow: hidden; margin-bottom: 12px; border: 1px solid #eaeaea; }
.cq-progress-fill { height: 100%; background: #60a5fa; transition: width 0.3s ease; }
.cq-question { min-height: 120px; }
.cq-actions { display: flex; justify-content: flex-end; margin-top: 12px; gap: 8px; }
.cq-results { margin-top: 18px; }
.cq-results-title { margin-bottom: 6px; }
.cq-results-sub { color: #6b7280; margin-bottom: 8px; }
.cq-final-level { display: inline-flex; align-items: center; gap: 8px; font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.cq-final-level .cefr-blob { width: 16px; height: 16px; }
.cq-results-date { color: #6b7280; font-size: 0.9rem; margin-bottom: 8px; }
.cq-final-desc { color: #374151; background: #f3f4f6; padding: 10px; border-radius: 8px; }
.cq-sep { margin: 16px 0; }
.cq-review-title { margin-bottom: 8px; }
.cq-review-list { display: grid; gap: 8px; }
.cq-review-item { border: 1px solid #e5e7eb; border-left-width: 5px; border-radius: 8px; padding: 10px; background: #fafafa; }
.cq-review-item.correct { border-left-color: #2ecc71; }
.cq-review-item.incorrect { border-left-color: #e53e3e; }
.cq-options-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.cq-img-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cq-img { background: #ffffff; border: 2px solid #e5e7eb; border-radius: 10px; cursor: pointer; overflow: hidden; transition: transform .2s; }
.cq-img:hover { transform: scale(1.02); }
.cq-caption { text-transform: capitalize; font-size: 0.9rem; color: #555; padding: 6px 8px; }
.cq-img-el { width: 100%; height: 140px; object-fit: cover; }
.cq-option { display: block; width: 100%; text-align: left; border: 2px solid #e5e7eb; border-radius: 10px; padding: 14px; margin: 6px 0; background: #ffffff; color: #111827; }
.cq-option:hover { background: #fbfbfb; }
.cq-option.selected, .cq-img.selected { border-color: var(--cefr-a1, #60a5fa); }
.cq-audio-btn { background: #3b82f6; color: #fff; border-radius: 9999px; width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; }
.cq-textarea { width: 100%; margin-top: 10px; padding: 10px; border: 2px solid #e5e7eb; border-radius: 10px; min-height: 96px; }
.cq-blank { border: none; border-bottom: 2px solid #9ca3af; background: transparent; text-align: center; font-weight: 600; color: #3b82f6; width: 120px; margin: 0 4px; }
.cq-blank:focus { outline: none; border-bottom-color: #3b82f6; }
.d-none { display: none !important; }

/* Scoped utility shims (to replace Tailwind-like classes used in component markup) */
.cefr-quiz .text-sm { font-size: 0.875rem; }
.cefr-quiz .text-lg { font-size: 1.125rem; }
.cefr-quiz .text-success { color: #2ecc71; }
.cefr-quiz .text-danger { color: #e53e3e; }
.cefr-quiz .bg-white { background: #ffffff; }
.cefr-quiz .p-2 { padding: 8px; }
.cefr-quiz .rounded { border-radius: 8px; }
.cefr-quiz .mt-2 { margin-top: 8px; }

/* Fix CEFR blobs overflow on mobile */
@media (max-width: 768px) {
    .cq-header {
        flex-wrap: wrap;
        gap: 0.5rem;
        width: 100%;
        max-width: 100%;
    }
    
    .cq-levels-inline {
        margin-left: 0;
        flex-wrap: wrap;
        width: 100%;
        max-width: 100%;
    }
    
    .cefr-quiz {
        overflow-x: hidden;
        max-width: 100%;
    }
    
    .cefr-test-container {
        overflow-x: hidden;
        max-width: 100%;
    }
    
    .tpd-cefr-level-display {
        flex-wrap: wrap;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .cq-badges {
        flex-wrap: wrap;
        max-width: 100%;
    }
    
    .cq-intro {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .cq-hero-text {
        width: 100%;
    }
}


