/* Compact navigation keeps text readable and preserves every study action. */
#subjectsGrid { grid-template-columns:repeat(3,minmax(0,1fr));gap:8px; }
#subjectsGrid .study-card { min-height:0;padding:12px;gap:4px;border-radius:10px; }
#subjectsGrid .card-icon { display:none; }
#subjectsGrid .card-name { margin:0;font-size:17px;line-height:1.4;overflow-wrap:anywhere; }
#subjectsGrid .card-sub { margin:0;font-size:14px;line-height:1.4; }
#subjectsGrid .card-bottom { margin-top:4px;gap:6px;flex-wrap:wrap;font-size:14px;line-height:1.4; }
#subjectsGrid .card-bottom strong { display:none; }
#subjectsGrid .mini-track { margin-top:4px;height:4px; }
#topicsGrid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px; }
#topicsGrid .compact-topic { padding:12px;border-radius:10px;min-width:0; }
#topicsGrid .compact-topic h2 { font-size:16px;line-height:1.4;margin:0 0 5px;overflow-wrap:anywhere; }
#topicsGrid .compact-topic-counts,#topicsGrid .compact-topic-progress { font-size:14px;line-height:1.4;margin:3px 0; }
#topicsGrid .compact-topic-actions { display:flex;flex-wrap:wrap;gap:5px;margin-top:7px; }
#topicsGrid .compact-topic-actions button { font-size:14px;line-height:1.3;min-height:40px;padding:5px 8px;flex:1 1 auto; }
#wrongReviewSubjects { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:start; }
#wrongReviewSubjects > button,#wrongReviewSubjects > p { grid-column:1/-1; }
#wrongReviewSubjects .wrong-review-card { padding:12px;border-radius:10px; }
#wrongReviewSubjects .wrong-review-card h2 { font-size:17px;line-height:1.4;margin:0 0 5px; }
#wrongReviewSubjects .wrong-review-card > p { font-size:14px;line-height:1.45;margin:4px 0;overflow-wrap:anywhere; }
#wrongReviewSubjects .review-head-actions { gap:5px;margin-top:8px; }
#wrongReviewSubjects .review-head-actions button { min-height:40px;padding:6px 9px;font-size:14px;line-height:1.3; }
@media(min-width:1200px) { #subjectsGrid,#topicsGrid { grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media(max-width:900px) { #subjectsGrid,#topicsGrid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:520px) {
 #subjectsGrid .study-card,#topicsGrid .compact-topic { padding:10px; }
 #wrongReviewSubjects { grid-template-columns:1fr; }
 #subjectsGrid .card-name { font-size:16px; }
}
@media(max-width:340px) { #subjectsGrid,#topicsGrid { grid-template-columns:1fr; } }
.wrong-card-progress { width:100%;height:7px;accent-color:var(--brand); }
.review-selection-field { display:grid;gap:6px;font-size:16px; }
.review-selection-field select { min-height:44px;font-size:16px;max-width:100%; }

.home-stat-list > div:has(small) { flex-wrap:wrap; }
.home-stat-list small { flex-basis:100%;font-size:14px;line-height:1.4;color:var(--muted); }
#wrongSavedSetCards { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px; }
@media(max-width:520px) { #wrongSavedSetCards { grid-template-columns:1fr; } }

.wrong-kind-checks { border:1px solid var(--line);border-radius:10px;padding:8px 12px;margin:12px 0; }
.wrong-kind-checks legend { padding:0 5px;font-size:16px;font-weight:700; }
