/* [TD-38 · Lô 2] Khối "🎯 Dạng bài cần luyện" ở chi tiết từng con (Tổng quan).
   Mọi class mang tiền tố .dash-weak- nên KHÔNG tranh chấp với ai — đặt ở đâu trong
   thứ tự nạp cũng không đổi kết quả. Chỉ dùng token màu; màu đỏ/cam giữ nghĩa
   "sai"/"cảnh báo", không đổi theo theme. */
.dash-weak-note {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 0 8px;
}

.dash-weak-empty {
    font-size: 15px;
    color: var(--text-muted);
    background: var(--surface-white);
    border: 1.5px dashed var(--border-card);
    border-radius: var(--radius-md);
    padding: 14px;
}

.dash-weak-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dash-weak-row {
    background: var(--surface-white);
    border: 1.5px solid var(--orange-line);
    border-left-width: 5px;
    border-radius: var(--radius-md);
}

.dash-weak-row.is-heavy {
    border-color: var(--red-line);
}

.dash-weak-sum {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 8px 12px;
    cursor: pointer;
    list-style: none;
}

.dash-weak-sum::-webkit-details-marker {
    display: none;
}

.dash-weak-rank {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--orange-tint);
    color: var(--orange-text);
    font-weight: 800;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dash-weak-row.is-heavy .dash-weak-rank {
    background: var(--red-soft);
    color: var(--red-700);
}

.dash-weak-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dash-weak-title {
    font-weight: 800;
    font-size: 15px;
    color: var(--text-strong);
    overflow-wrap: anywhere;
}

.dash-weak-hint {
    font-size: 13px;
    color: var(--text-muted);
}

.dash-weak-score {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 12px;
    color: var(--text-muted);
}

.dash-weak-score strong {
    font-size: 15px;
    color: var(--orange-text);
}

.dash-weak-row.is-heavy .dash-weak-score strong {
    color: var(--red-700);
}

.dash-weak-eg {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 4px 12px 12px 48px;
    font-size: 14px;
    color: var(--text-strong);
    overflow-wrap: anywhere;
}

.dash-weak-eg-k {
    font-weight: 700;
    color: var(--text-muted);
}

.dash-weak-wrong {
    font-weight: 800;
    color: var(--red-700);
}

.dash-weak-right {
    font-weight: 800;
    color: var(--green-text);
}

.dash-weak-more {
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 8px;
}

/* ==========================================================================
   [TD-38 · Lô 3] Thanh "🎯 Luyện các dạng hay sai" trên màn làm bài.
   Tông xanh trung tính (cùng ý với khối lời giải): đây là chỗ GIÚP ĐỠ, không phải phán xét,
   nên KHÔNG dùng đỏ/xanh lá/cam — ba màu đó mang nghĩa sai/đúng/thưởng.
   Class tiền tố .weak-bar nên không tranh chấp với ai.
   ========================================================================== */
.weak-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 0 12px;
    padding: 12px 14px;
    background: var(--surface-subtle);
    border: 1.5px solid var(--border-card);
    border-radius: var(--radius-md);
}

.weak-bar.hidden-section {
    display: none;
}

.weak-bar-text {
    flex: 1 1 220px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 15px;
    color: var(--text-strong);
}

.weak-bar-text span {
    font-size: 14px;
    color: var(--text-muted);
}

.weak-bar-result {
    font-size: 15px;
    color: var(--text-strong);
}

.weak-bar-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Vùng chạm ≥ 44px. white-space: normal vì button mặc định nowrap sẽ cắt cụt nhãn ở màn hẹp. */
.weak-bar-btn {
    min-height: 44px;
    padding: 8px 16px;
    border: 0;
    border-radius: var(--radius-md);
    background: var(--blue-600);
    color: var(--text-inverse);
    font-family: inherit;
    font-size: 16px;
    font-weight: 800;
    white-space: normal;
    cursor: pointer;
}

.weak-bar-btn-quiet {
    background: var(--surface-white);
    color: var(--text-strong);
    border: 1.5px solid var(--border-card);
}
