/* ═══ Bài học hôm nay (daily.js) ═══ */
.daily-summary { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.daily-size summary { cursor: pointer; color: var(--text-2); font-size: .92em; }
.daily-size form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; margin-top: 8px; }
.daily-size label { display: flex; flex-direction: column; gap: 4px; font-size: .9em; }
.daily-size input { width: 7em; }
.daily-summary > div:first-child { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.daily-bar { height: 10px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.daily-bar i { display: block; height: 100%; border-radius: inherit; background: var(--success); transition: width .3s ease; }

.daily-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.daily-panel-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 8px; }
.daily-panel-head h2 { margin: 0; font-size: 1.1em; }
.daily-count { padding: 1px 9px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); font-size: .85em; font-weight: 700; }
.daily-panel-head .primary, .daily-done-tag { margin-left: auto; }
.daily-done-tag { color: var(--success-text); font-weight: 700; }
.daily-practice { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; padding: 10px 12px; border-radius: var(--radius); background: var(--surface-3); }
.daily-practice span { flex-basis: 100%; color: var(--text-2); font-size: .92em; }

.daily-pr { max-width: 640px; margin: 0 auto; }
.daily-pr-head { display: flex; align-items: center; gap: 10px; }
.daily-pr-head .daily-bar { flex: 1; }
.daily-pr-hint { margin: 6px 0 0; text-align: center; font-size: 1.4em; letter-spacing: .15em; color: var(--text-2); }
.daily-pr-form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.daily-pr-form input { flex: 1 1 200px; min-width: 0; }
.daily-pr-feedback { margin-top: 14px; overflow-wrap: anywhere; }
.daily-pr-feedback div { margin-top: 8px; }
.daily-pr-feedback .ok { color: var(--success-text); font-weight: 700; }
.daily-pr-feedback .bad { color: var(--danger-text); font-weight: 700; }
.daily-pr .gm-choice.correct { border-color: var(--success-border); background: var(--success-soft); color: var(--success-text); }
.daily-pr .gm-choice.wrong { border-color: var(--danger-text); background: var(--danger-soft); }
.daily-pr-end { text-align: center; }
.daily-pr-icon { font-size: 2.6em; }
.daily-pr-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }

.daily-list { list-style: none; margin: 0; padding: 0; }
.daily-list li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--border); min-width: 0; }
.daily-check {
  flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%;
  border: 2px solid var(--border-strong); color: var(--on-primary); font-size: .8em; font-weight: 800;
}
.daily-list li.done .daily-check { background: var(--success); border-color: var(--success); }
.daily-item { min-width: 0; overflow-wrap: anywhere; }
.daily-item b { font-size: 1.05em; }
.daily-list li.done .daily-item { opacity: .6; }
.daily-list li.done .daily-item b, .daily-list li.done .daily-item > div:first-child { text-decoration: line-through; }
.daily-ipa { color: var(--text-2); font-family: ui-monospace, monospace; font-size: .9em; }
.daily-sub { color: var(--text-2); font-size: .92em; margin-top: 2px; }
.daily-say { padding: 0 6px; border: none; background: none; }

/* ═══ Lộ trình IELTS (roadmap.js) ═══ */
.rm { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.rm h2 { margin: 0; font-size: 1.1em; }
.rm-lead { margin: 0; color: var(--text-2); max-width: 65ch; }
.rm-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.rm-chip { padding: 2px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-text); font-size: .85em; font-weight: 700; }
.rm-count { margin-left: auto; color: var(--text-2); font-size: .9em; font-variant-numeric: tabular-nums; }
.rm-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; }
.rm-form label { display: flex; flex-direction: column; gap: 4px; font-size: .9em; }
.rm-settings summary { cursor: pointer; color: var(--text-2); font-size: .92em; }
.rm-settings form { margin-top: 8px; }
.rm-note { margin: 8px 0 0; font-size: .88em; }
.rm-alert { margin: 0; padding: 8px 12px; border-radius: var(--radius); background: var(--warn-soft); color: var(--warn-text); }

.rm-track { display: flex; gap: 4px; }
.rm-phase { min-width: 3.5em; display: flex; flex-direction: column; gap: 4px; }
.rm-bar { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.rm-bar i { display: block; height: 100%; background: var(--success); }
.rm-phase.now .rm-bar i { background: var(--primary); }
.rm-phase span { color: var(--text-2); font-size: .78em; line-height: 1.25; overflow-wrap: anywhere; }
.rm-phase.now span { color: var(--text); font-weight: 700; }
.rm-phase small { display: block; font-weight: 400; color: var(--text-2); font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .rm-phase span { font-size: .7em; } }

.rm-blocks { list-style: none; margin: 0; padding: 0; }
.rm-blocks li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--border); min-width: 0; }
.rm-block { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.rm-min { color: var(--text-2); font-size: .88em; font-variant-numeric: tabular-nums; }
button.rm-tick { padding: 0; cursor: pointer; background: transparent; }
button.rm-tick:hover:not(:disabled) { border-color: var(--success); background: transparent; }
.rm-blocks li.done .rm-tick { background: var(--success); border-color: var(--success); }
.rm-blocks li.done .rm-block { opacity: .6; }
.rm-blocks li.done .rm-block b { text-decoration: line-through; }
.rm-blocks li > button:last-child, .rm-blocks li > a:last-child { flex: none; }
.rm-score { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 4px; }

.rm-bands h3 { margin: 0; font-size: 1em; }
.rm-bands .rm-head button { margin-left: auto; }
.rm-table-wrap { overflow-x: auto; margin-top: 8px; }
.rm-band-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .92em; }
.rm-band-table th, .rm-band-table td { padding: 6px 8px; border-bottom: 1px solid var(--border); text-align: center; white-space: nowrap; }
.rm-band-table th[scope="row"], .rm-band-table thead th:first-child { text-align: left; }
.rm-band-table thead th { color: var(--text-2); font-weight: 600; }
.rm-band-table tr.now { background: var(--primary-soft); }

.rm-dialog { width: min(480px, calc(100vw - 32px)); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); color: var(--text); }
.rm-dialog::backdrop { background: var(--overlay); }
.rm-dialog h3 { margin-top: 0; }
.rm-dialog label { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; font-size: .9em; font-weight: 600; color: var(--text-2); }
.rm-score-bands { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 10px; }
@media (max-width: 600px) { .rm-score-bands { grid-template-columns: repeat(2, 1fr); } }
.rm-dialog .fc-modal-footer { align-items: center; }
.rm-dialog .fc-modal-footer [role="status"] { margin-right: auto; }
