feat(cefr): dual mistake ingestion, 1-tap options breakdown, and 260 curated questions

This commit is contained in:
2026-10-06 15:57:07 +03:00
parent a00b330f74
commit a2eb26ced5
7 changed files with 1277 additions and 95 deletions
+169
View File
@@ -4664,6 +4664,175 @@ body {
font-size: 18px;
}
/* Dual Gap Ingestion (Correct + Chosen Mistake) */
.cefr-dual-ingested-box {
background: rgba(239, 68, 68, 0.1);
border: 1px solid rgba(239, 68, 68, 0.25);
border-radius: var(--radius-md);
padding: 12px 14px;
margin-top: 10px;
animation: fadeIn 0.2s ease-out;
}
.dual-ingested-header {
display: flex;
align-items: center;
gap: 8px;
font-size: 13px;
color: var(--text-main);
margin-bottom: 8px;
}
.dual-ingested-chips {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.ingested-chip {
background: var(--bg-card);
border: 1px solid var(--border-color);
border-radius: var(--radius-sm);
padding: 6px 10px;
font-size: 12.5px;
color: var(--text-main);
display: flex;
align-items: center;
gap: 5px;
}
.ingested-chip.chip-target {
border-left: 3px solid #10b981;
}
.ingested-chip.chip-chosen {
border-left: 3px solid #ef4444;
}
.ingested-chip .chip-label {
font-size: 10.5px;
font-weight: 700;
text-transform: uppercase;
color: var(--text-muted);
}
/* Words Breakdown (All 4 Options with In-library/Add buttons) */
.cefr-words-breakdown {
margin-top: 16px;
padding-top: 14px;
border-top: 1px solid var(--border-color);
text-align: left;
}
.words-breakdown-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10px;
flex-wrap: wrap;
gap: 6px;
}
.wb-title {
font-size: 13px;
font-weight: 700;
color: var(--text-main);
display: flex;
align-items: center;
gap: 6px;
}
.wb-hint {
font-size: 11.5px;
color: var(--text-muted);
}
.words-breakdown-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
gap: 8px;
}
.word-breakdown-card {
background: var(--bg-surface);
border: 1px solid var(--border-color);
border-radius: var(--radius-md);
padding: 9px 11px;
display: flex;
flex-direction: column;
gap: 4px;
transition: all 0.15s ease;
}
.word-breakdown-card.is-target {
border-color: rgba(16, 185, 129, 0.4);
background: rgba(16, 185, 129, 0.05);
}
.word-breakdown-card.is-chosen-mistake {
border-color: rgba(239, 68, 68, 0.4);
background: rgba(239, 68, 68, 0.05);
}
.wb-card-top {
display: flex;
justify-content: space-between;
align-items: baseline;
gap: 6px;
}
.wb-term {
font-size: 14px;
color: var(--text-main);
font-weight: 700;
}
.wb-pos {
font-size: 10px;
font-weight: 700;
color: var(--text-muted);
text-transform: uppercase;
}
.wb-trans {
font-size: 12px;
color: var(--text-muted);
line-height: 1.35;
flex-grow: 1;
}
.wb-action-wrap {
margin-top: 6px;
}
.wb-badge {
font-size: 11px;
font-weight: 700;
padding: 3px 6px;
border-radius: 4px;
display: inline-flex;
align-items: center;
gap: 4px;
}
.wb-badge.badge-auto-added {
color: #ef4444;
background: rgba(239, 68, 68, 0.12);
}
.wb-badge.badge-in-lib,
.wb-badge.badge-just-added {
color: #10b981;
background: rgba(16, 185, 129, 0.12);
}
.btn-add-option-word {
width: 100%;
font-size: 11px;
padding: 4px 8px;
border-radius: var(--radius-sm);
}
/* Next Button Bar */
.cefr-next-bar {
margin-top: 10px;