/* ── theEducator AI Course Engine — Frontend Styles ── */

:root {
    --ce-primary: #4f46e5; --ce-success: #059669; --ce-warning: #d97706; --ce-danger: #dc2626;
    --ce-bg: #f8fafc; --ce-card: #fff; --ce-border: #e2e8f0;
    --ce-text: #1e293b; --ce-muted: #64748b; --ce-radius: 10px;
}

/* ── Course Viewer Layout ── */
.eai-ce-course-viewer { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--ce-text); }
.eai-ce-cv-header { padding: 20px 0 16px; border-bottom: 1px solid var(--ce-border); margin-bottom: 0; }
.eai-ce-cv-course-title { font-size: 26px; font-weight: 800; margin: 0 0 8px; }
.eai-ce-cv-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.eai-ce-cv-progress { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ce-muted); }
.eai-ce-cv-progress .eai-ce-progress-bar { flex: 1; max-width: 300px; }

.eai-ce-cv-layout { display: grid; grid-template-columns: 240px 1fr; gap: 0; min-height: 70vh; }
@media (max-width: 700px) { .eai-ce-cv-layout { grid-template-columns: 1fr; } }

/* ── Nav sidebar ── */
.eai-ce-cv-nav { border-right: 1px solid var(--ce-border); padding: 16px 0; background: #fff; position: sticky; top: 60px; max-height: 80vh; overflow-y: auto; }
.eai-ce-cv-nav-module { margin-bottom: 4px; }
.eai-ce-cv-nav-module-title { padding: 8px 16px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--ce-muted); background: #f8fafc; }
.eai-ce-cv-nav ul { list-style: none; margin: 0; padding: 0; }
.eai-ce-cv-nav-page { display: flex; align-items: center; gap: 8px; padding: 8px 16px; font-size: 13px; color: var(--ce-text); text-decoration: none; transition: background .1s; }
.eai-ce-cv-nav-page:hover { background: #f1f5f9; color: var(--ce-primary); }
.eai-ce-cv-nav-page.eai-ce-cv-active { background: #ede9fe; color: var(--ce-primary); font-weight: 600; }
.eai-ce-cv-nav-page.eai-ce-cv-complete { color: var(--ce-success); }
.eai-ce-cv-status-icon { font-size: 12px; width: 16px; text-align: center; flex-shrink: 0; }

/* ── Main content ── */
.eai-ce-cv-main { padding: 24px 32px; }

.eai-ce-cv-page-header { margin-bottom: 20px; }
.eai-ce-cv-page-title { font-size: 24px; font-weight: 800; margin: 0 0 10px; }
.eai-ce-cv-concepts { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.eai-ce-concept-chip { background: #ede9fe; color: #5b21b6; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.eai-ce-cv-read-time { font-size: 12px; color: var(--ce-muted); }

/* ── Page image thumbnail + lightbox ── */
.eai-ce-cv-image-thumb { margin: 20px auto; display: block; text-align: center; }
.eai-ce-cv-img-thumbnail {
    width: 660px; max-width: 100%; height: 480px; object-fit: cover;
    border-radius: 10px; border: 1px solid var(--ce-border);
    cursor: zoom-in; display: inline-block;
    transition: opacity .15s, box-shadow .15s;
}
.eai-ce-cv-img-thumbnail:hover { opacity: .9; box-shadow: 0 6px 24px rgba(0,0,0,.15); }
.eai-ce-cv-image-thumb figcaption { font-size: 12px; color: var(--ce-muted); margin-top: 6px; }

/* Lightbox overlay */
.eai-ce-lightbox {
    position: fixed; inset: 0; z-index: 99999;
    background: rgba(0,0,0,.82);
    display: flex; align-items: center; justify-content: center;
    cursor: zoom-out;
}
.eai-ce-lightbox img {
    max-width: 90vw; max-height: 88vh;
    border-radius: 10px; box-shadow: 0 8px 40px rgba(0,0,0,.5);
    display: block; cursor: default;
}
.eai-ce-lightbox-close {
    position: absolute; top: 18px; right: 22px;
    background: rgba(255,255,255,.15); border: none; color: #fff;
    font-size: 28px; line-height: 1; cursor: pointer;
    border-radius: 50%; width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.eai-ce-lightbox-close:hover { background: rgba(255,255,255,.3); }
.eai-ce-cv-image img { max-width: 100%; border-radius: 8px; border: 1px solid var(--ce-border); }

/* ── Lesson content ── */
.eai-ce-lesson-content { line-height: 1.7; font-size: 15px; }
.eai-ce-lesson-content h2 { font-size: 20px; font-weight: 700; margin: 28px 0 10px; border-bottom: 2px solid var(--ce-border); padding-bottom: 6px; }
.eai-ce-lesson-content h3 { font-size: 17px; font-weight: 700; margin: 20px 0 8px; }
.eai-ce-lesson-content p  { margin: 0 0 14px; }
.eai-ce-lesson-content ul, .eai-ce-lesson-content ol { margin: 0 0 14px 20px; }
.eai-ce-lesson-content li { margin-bottom: 4px; }
.eai-ce-lesson-content table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 14px; }
.eai-ce-lesson-content th, .eai-ce-lesson-content td { border: 1px solid var(--ce-border); padding: 8px 12px; text-align: left; }
.eai-ce-lesson-content th { background: #f8fafc; font-weight: 700; }
.eai-ce-lesson-content dl dt { font-weight: 700; margin-top: 10px; }
.eai-ce-lesson-content dl dd { margin-left: 16px; color: var(--ce-muted); }

.eai-ce-lesson-content .eai-ce-example {
    background: #f0fdf4; border-left: 4px solid var(--ce-success);
    border-radius: 0 8px 8px 0; padding: 14px 16px; margin: 16px 0;
}
.eai-ce-lesson-content .eai-ce-misconception {
    background: #fff7ed; border-left: 4px solid var(--ce-warning);
    border-radius: 0 8px 8px 0; padding: 14px 16px; margin: 16px 0;
}
.eai-ce-lesson-content .eai-ce-callout {
    background: #eff6ff; border: 1px solid #bfdbfe;
    border-radius: 8px; padding: 14px 16px; margin: 16px 0;
}
.eai-ce-lesson-content .eai-ce-exclusion {
    background: #fef2f2; border-left: 4px solid var(--ce-danger);
    border-radius: 0 8px 8px 0; padding: 12px 16px; margin: 16px 0;
    font-size: 13px; color: var(--ce-danger);
}

/* ── Summary / Retrieval ── */
.eai-ce-cv-summary { background: #eff6ff; border-radius: 8px; padding: 14px 16px; margin: 20px 0; font-size: 14px; }
.eai-ce-cv-retrieval { background: #f8fafc; border: 1px solid var(--ce-border); border-radius: 8px; padding: 16px; margin: 20px 0; }
.eai-ce-cv-retrieval h3 { margin: 0 0 10px; font-size: 16px; }
.eai-ce-cv-retrieval ul { margin: 0 0 0 16px; }

/* ── Spec Coverage Box ── */
.eai-ce-cv-spec-coverage {
    border: 1px solid #c7d2fe; background: #eef2ff;
    border-radius: 8px; padding: 12px 16px; margin: 0 0 20px;
}
.eai-ce-cv-spec-header {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.eai-ce-cv-spec-header strong { font-size: 13px; color: #3730a3; }
.eai-ce-cv-spec-icon { font-size: 14px; }
.eai-ce-cv-spec-count {
    margin-left: 4px; background: #c7d2fe; color: #3730a3;
    font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px;
}
.eai-ce-cv-spec-toggle {
    margin-left: auto; background: none; border: 1px solid #a5b4fc;
    color: #4338ca; border-radius: 4px; padding: 3px 10px;
    font-size: 12px; cursor: pointer;
}
.eai-ce-cv-spec-toggle:hover { background: #c7d2fe; }
.eai-ce-cv-spec-list {
    list-style: none; margin: 12px 0 0; padding: 0;
    display: flex; flex-direction: column; gap: 6px;
}
.eai-ce-cv-spec-point {
    display: flex; gap: 8px; align-items: baseline;
    font-size: 13px; color: #1e293b; padding: 6px 10px;
    background: #fff; border-radius: 6px; border: 1px solid #e0e7ff;
}
.eai-ce-cv-spec-code {
    font-size: 11px; font-weight: 700; color: #4338ca;
    background: #e0e7ff; padding: 1px 6px; border-radius: 4px;
    white-space: nowrap; flex-shrink: 0;
}
.eai-ce-cv-spec-text { line-height: 1.5; }
.eai-ce-cv-spec-recall .eai-ce-cv-spec-code { background: #fef3c7; color: #92400e; }
.eai-ce-cv-spec-application .eai-ce-cv-spec-code { background: #dcfce7; color: #166534; }
.eai-ce-cv-spec-edit-hint { font-size:11px; color:#6366f1; margin-left:4px; }
.eai-ce-cv-spec-editable { border-bottom: 1px dashed #a5b4fc; cursor: text; border-radius: 2px; flex: 1; }
.eai-ce-cv-spec-editable:focus { outline: none; background: #fff; border-bottom: 2px solid #6366f1; padding: 1px 2px; }
.eai-ce-cv-spec-editable.eai-ce-spec-saving { opacity: 0.5; }
.eai-ce-cv-spec-editable.eai-ce-spec-saved { border-bottom-color: #059669; }
.eai-ce-spec-drag-handle { cursor: grab; color: #94a3b8; font-size: 14px; flex-shrink: 0; padding: 0 4px; }
.eai-ce-spec-drag-handle:active { cursor: grabbing; }
.eai-ce-spec-remove-btn {
    flex-shrink: 0; margin-left: 6px; background: none; border: none;
    color: #94a3b8; cursor: pointer; font-size: 13px; padding: 0 2px; line-height: 1;
    opacity: 0; transition: opacity .15s;
}
.eai-ce-cv-spec-point:hover .eai-ce-spec-remove-btn { opacity: 1; }
.eai-ce-spec-remove-btn:hover { color: var(--ce-danger); }
.eai-ce-spec-search-results { margin-top: 6px; display: flex; flex-direction: column; gap: 4px; max-height: 220px; overflow-y: auto; }
.eai-ce-spec-search-row {
    padding: 7px 10px; background: #fff; border: 1px solid #e0e7ff;
    border-radius: 6px; font-size: 13px; cursor: pointer;
    transition: background .1s;
}
.eai-ce-spec-search-row:hover { background: #eef2ff; border-color: #a5b4fc; }

/* ── Activities ── */
.eai-ce-cv-activities { margin-top: 32px; }
.eai-ce-cv-activities h3 { font-size: 18px; margin-bottom: 16px; }
.eai-ce-activity { background: var(--ce-card); border: 1px solid var(--ce-border); border-radius: 10px; padding: 20px; margin-bottom: 16px; }
.eai-ce-activity-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
.eai-ce-activity-header h4 { margin: 0; font-size: 16px; }
.eai-ce-activity-meta { display: flex; gap: 6px; }
.eai-ce-activity-prompt { font-size: 15px; font-weight: 600; margin-bottom: 16px; line-height: 1.5; }
.eai-ce-response-input { width: 100%; border: 1px solid var(--ce-border); border-radius: 8px; padding: 12px; font-size: 14px; font-family: inherit; resize: vertical; box-sizing: border-box; }
.eai-ce-response-input:focus { border-color: var(--ce-primary); outline: none; box-shadow: 0 0 0 3px rgba(79,70,229,.1); }
.eai-ce-activity-submit { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.eai-ce-submit-status { padding: 10px 14px; border-radius: 6px; font-size: 13px; }

/* ── AI Feedback ── */
.eai-ce-feedback { margin-top: 16px; border: 1px solid var(--ce-border); border-radius: 8px; overflow: hidden; }
.eai-ce-feedback-score { padding: 12px 16px; background: #f8fafc; font-size: 15px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--ce-border); }
.eai-ce-grade-band { padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.eai-ce-band-high { background: #dcfce7; color: #166534; }
.eai-ce-band-mid  { background: #fef3c7; color: #92400e; }
.eai-ce-band-low  { background: #fee2e2; color: #991b1b; }
.eai-ce-feedback-section { padding: 10px 16px; border-bottom: 1px solid #f1f5f9; font-size: 14px; }
.eai-ce-feedback-section:last-child { border-bottom: none; }
.eai-ce-feedback-section ul { margin: 6px 0 0 16px; padding: 0; }
.eai-ce-feedback-section p  { margin: 6px 0 0; }

/* ── Nav footer ── */
.eai-ce-cv-nav-footer { display: flex; justify-content: space-between; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--ce-border); }

/* ── Progress bar ── */
.eai-ce-progress-bar { height: 8px; background: #e2e8f0; border-radius: 99px; overflow: hidden; }
.eai-ce-progress-fill { height: 100%; background: var(--ce-primary); border-radius: 99px; transition: width .4s; }
.eai-ce-progress-fill-student { background: var(--ce-success); }

/* ── Badges & buttons (frontend) ── */
.eai-ce-badge { display: inline-block; padding: 3px 9px; border-radius: 4px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; background: #e2e8f0; color: #475569; }
.eai-ce-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: 7px; font-size: 14px; font-weight: 600; cursor: pointer; border: none; text-decoration: none; transition: all .15s; }
.eai-ce-btn-primary { background: var(--ce-primary); color: #fff; }
.eai-ce-btn-primary:hover { background: #4338ca; }
.eai-ce-btn-secondary { background: #fff; color: var(--ce-text); border: 1px solid var(--ce-border); }
.eai-ce-btn-lg { padding: 12px 24px; font-size: 16px; }
.eai-ce-btn-sm { padding: 6px 12px; font-size: 13px; }

/* ── Student Dashboard ── */
.eai-ce-student-dash { padding: 16px 0; }
.eai-ce-sd-header { margin-bottom: 24px; }
.eai-ce-sd-header h2 { font-size: 24px; font-weight: 800; margin: 0 0 4px; }
.eai-ce-sd-greeting { color: var(--ce-muted); margin: 0; }
.eai-ce-sd-courses h3, .eai-ce-sd-feedback h3 { font-size: 18px; margin: 0 0 14px; }
.eai-ce-sd-course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-bottom: 28px; }
.eai-ce-sd-course-card { background: #fff; border: 1px solid var(--ce-border); border-radius: 10px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.eai-ce-sd-course-card h4 { margin: 0; font-size: 15px; font-weight: 700; }
.eai-ce-sd-course-stats { display: flex; justify-content: space-between; font-size: 13px; color: var(--ce-muted); }

.eai-ce-sd-feedback-list { display: flex; flex-direction: column; gap: 10px; }
.eai-ce-sd-fb-item { background: #fff; border: 1px solid var(--ce-border); border-radius: 8px; padding: 12px 16px; }
.eai-ce-sd-fb-header { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; margin-bottom: 4px; }
.eai-ce-sd-fb-course { font-weight: 700; }
.eai-ce-sd-fb-page  { color: var(--ce-muted); }
.eai-ce-sd-fb-score { margin-left: auto; font-weight: 700; background: #f1f5f9; padding: 2px 8px; border-radius: 4px; }
.eai-ce-sd-fb-date  { font-size: 11px; color: var(--ce-muted); }
.eai-ce-sd-fb-comment { margin: 0; font-size: 13px; color: var(--ce-muted); }

/* ── Teacher Dashboard ── */
.eai-ce-teacher-dash { padding: 16px 0; }
.eai-ce-td-header { margin-bottom: 20px; }
.eai-ce-td-header h2 { font-size: 24px; font-weight: 800; margin: 0 0 4px; }
.eai-ce-td-header h3 { color: var(--ce-muted); font-weight: 400; margin: 0; font-size: 16px; }
.eai-ce-td-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
@media (max-width:700px) { .eai-ce-td-kpis { grid-template-columns: repeat(2,1fr); } }
.eai-ce-td-kpi { background: #fff; border: 1px solid var(--ce-border); border-radius: 10px; padding: 14px; text-align: center; }
.eai-ce-td-kpi-val { display: block; font-size: 30px; font-weight: 800; color: var(--ce-primary); }
.eai-ce-td-kpi-label { font-size: 12px; color: var(--ce-muted); text-transform: uppercase; letter-spacing: .4px; }
.eai-ce-td-kpi-warn .eai-ce-td-kpi-val { color: var(--ce-danger); }
.eai-ce-td-section { margin-bottom: 28px; }
.eai-ce-td-section h3 { font-size: 18px; margin-bottom: 14px; }
.eai-ce-td-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.eai-ce-td-table th { background: #f8fafc; padding: 10px 12px; border-bottom: 2px solid var(--ce-border); text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--ce-muted); }
.eai-ce-td-table td { padding: 10px 12px; border-bottom: 1px solid #f1f5f9; }
.eai-ce-td-table tr:hover td { background: #f8fafc; }
.eai-ce-td-row-warn td { background: #fff7ed !important; }
.eai-ce-td-student-name { font-weight: 600; }
.eai-ce-td-student-email { font-size: 12px; color: var(--ce-muted); }
.eai-ce-score-badge { padding: 3px 8px; border-radius: 4px; font-weight: 700; font-size: 13px; }
.eai-ce-score-high { background: #dcfce7; color: #166534; }
.eai-ce-score-mid  { background: #fef3c7; color: #92400e; }
.eai-ce-score-low  { background: #fee2e2; color: #991b1b; }
.eai-ce-td-no-data { color: #d1d5db; }
.eai-ce-misconception-list { display: flex; flex-direction: column; gap: 6px; }
.eai-ce-misconception-item { display: flex; align-items: baseline; gap: 10px; padding: 8px 12px; background: #fff; border: 1px solid var(--ce-border); border-radius: 6px; font-size: 14px; }
.eai-ce-misconception-count { font-weight: 700; color: var(--ce-danger); min-width: 28px; }

/* ── Activity Tabs ── */
.eai-ce-act-tab-bar { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 16px; border-bottom: 2px solid var(--ce-border); padding-bottom: 0; }
.eai-ce-act-tab {
    padding: 8px 16px; border: none; background: none; cursor: pointer;
    font-size: 14px; font-weight: 600; color: var(--ce-muted);
    border-bottom: 3px solid transparent; margin-bottom: -2px;
    display: inline-flex; align-items: center; gap: 6px;
    transition: color .15s, border-color .15s;
}
.eai-ce-act-tab:hover { color: var(--ce-primary); }
.eai-ce-act-tab-active { color: var(--ce-primary); border-bottom-color: var(--ce-primary); }
.eai-ce-act-tab-count { font-size: 11px; background: #e2e8f0; color: #475569; border-radius: 10px; padding: 1px 6px; font-weight: 700; }
.eai-ce-act-tab-active .eai-ce-act-tab-count { background: #ede9fe; color: var(--ce-primary); }
.eai-ce-act-tab-score { font-size: 11px; font-weight: 700; color: #475569; background: #f1f5f9; border-radius: 10px; padding: 1px 7px; }
.eai-ce-act-tab-active .eai-ce-act-tab-score { background: #ede9fe; color: var(--ce-primary); }
.eai-ce-act-tab-tick { color: var(--ce-success); font-weight: 800; }
.eai-ce-act-tab-panel { display: none; }
.eai-ce-act-tab-panel-active { display: block; }

/* ── Q-nav (question number buttons within a panel) ── */
.eai-ce-act-q-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.eai-ce-act-q-btn {
    padding: 5px 12px; border: 2px solid var(--ce-border); border-radius: 6px;
    background: #fff; color: var(--ce-text); font-size: 13px; font-weight: 600;
    cursor: pointer; transition: all .15s;
}
.eai-ce-act-q-btn:hover { border-color: var(--ce-primary); color: var(--ce-primary); }
.eai-ce-act-q-btn-active { border-color: var(--ce-primary); background: #ede9fe; color: var(--ce-primary); }
.eai-ce-act-q-btn-done { border-color: var(--ce-success); color: var(--ce-success); }
.eai-ce-act-q-btn-done.eai-ce-act-q-btn-active { background: #dcfce7; }
.eai-ce-act-q-score { font-size: 11px; font-weight: 700; opacity: 0.85; }
.eai-ce-act-q-max { font-size: 11px; font-weight: 600; opacity: 0.5; }
.eai-ce-act-q-hidden { display: none; }

/* ── MCQ Activity ── */
.eai-ce-mcq-options { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.eai-ce-mcq-option {
    display: flex; align-items: center; gap: 12px;
    width: 100%; padding: 12px 16px; border-radius: 8px;
    border: 2px solid var(--ce-border); background: #fff;
    cursor: pointer; font-size: 15px; text-align: left;
    color: #1e293b;
    transition: border-color .15s, background .15s;
}
.eai-ce-mcq-option:hover:not(:disabled) { border-color: var(--ce-primary); background: #f5f3ff; }
.eai-ce-mcq-option.eai-ce-mcq-selected { border-color: var(--ce-primary); background: #ede9fe; }
.eai-ce-mcq-option.eai-ce-mcq-correct { border-color: var(--ce-success); background: #dcfce7; color: #166534; pointer-events: none; }
.eai-ce-mcq-option.eai-ce-mcq-wrong { border-color: var(--ce-danger); background: #fee2e2; color: #991b1b; pointer-events: none; }
.eai-ce-mcq-letter {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
    background: #e2e8f0; color: #1e293b; font-weight: 700; font-size: 13px;
}
.eai-ce-mcq-option.eai-ce-mcq-selected .eai-ce-mcq-letter { background: var(--ce-primary); color: #fff; }
.eai-ce-mcq-option.eai-ce-mcq-correct .eai-ce-mcq-letter { background: var(--ce-success); color: #fff; }
.eai-ce-mcq-option.eai-ce-mcq-wrong .eai-ce-mcq-letter { background: var(--ce-danger); color: #fff; }

.eai-ce-mcq-result { padding: 12px 16px; border-radius: 8px; margin: 12px 0; font-size: 14px; }
.eai-ce-mcq-result strong { display: block; font-size: 16px; margin-bottom: 4px; }
.eai-ce-mcq-result p { margin: 0; }
.eai-ce-mcq-result-correct { background: #dcfce7; border: 1px solid #86efac; color: #166534; }
.eai-ce-mcq-result-wrong { background: #fee2e2; border: 1px solid #fca5a5; color: #991b1b; }

/* ── Attempt History ── */
.eai-ce-attempt-history-bar { margin-top: 16px; }
.eai-ce-attempt-history-toggle {
    background: none; border: none; color: var(--ce-muted);
    font-size: 13px; cursor: pointer; padding: 4px 0;
}
.eai-ce-attempt-history-toggle:hover { color: var(--ce-primary); }
.eai-ce-attempt-history { margin-top: 8px; }
.eai-ce-attempt-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.eai-ce-attempt-table th { background: #f8fafc; padding: 7px 10px; border-bottom: 2px solid var(--ce-border); text-align: left; color: var(--ce-muted); font-size: 11px; text-transform: uppercase; }
.eai-ce-attempt-table td { padding: 7px 10px; border-bottom: 1px solid #f1f5f9; }

/* ── Badge variants ── */
.eai-ce-badge-type { background: #e0f2fe; color: #0369a1; }
.eai-ce-badge-attempts { background: #f3e8ff; color: #6b21a8; }
