/* =============================================================
   Lộ trình học (/lo-trinh) — dùng token trong style.css
   ============================================================= */

.lp-wrap { padding-block: 20px var(--space-xl); }
.lp-wrap [hidden] { display: none !important; }

/* ── Buttons ─────────────────────────────────────────────────── */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 22px;
  border: 2px solid transparent; border-radius: var(--radius-pill);
  font: inherit; font-weight: 800; font-size: 15px; line-height: 1.2;
  cursor: pointer; text-decoration: none;
  transition: background var(--transition), border-color var(--transition), transform var(--transition), opacity var(--transition);
}
.lp-btn:active { transform: scale(.97); }
.lp-btn:focus-visible { outline: 3px solid var(--secondary); outline-offset: 2px; }
.lp-btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.lp-btn-primary { background: var(--primary); color: #fff; }
.lp-btn-primary:hover:not([disabled]) { background: var(--primary-dark); }
.lp-btn-ghost { background: var(--bg-card); color: var(--primary-dark); border-color: var(--border-strong); }
.lp-btn-ghost:hover:not([disabled]) { border-color: var(--primary); }
.lp-btn-text { background: none; color: var(--text-secondary); padding-inline: 10px; }
.lp-btn-text:hover { color: var(--text); }
.lp-btn-lg { min-height: 52px; padding: 14px 28px; font-size: 16px; }
.lp-btn-block { width: 100%; }

/* ── Landing ─────────────────────────────────────────────────── */
.lp-hero {
  background: var(--primary-light);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 5vw, 48px);
  margin-bottom: var(--space-lg);
}
.lp-hero-badge {
  display: inline-block; margin: 8px 0 12px;
  background: #fff; color: var(--primary-dark);
  font-weight: 800; font-size: 13px; padding: 4px 12px; border-radius: var(--radius-pill);
}
.lp-hero h1 { font-size: clamp(26px, 5vw, 40px); line-height: 1.2; font-weight: 900; margin: 0 0 12px; color: var(--text); }
.lp-hero h1 em { font-style: normal; color: var(--primary); }
.lp-hero p { font-size: 16px; color: var(--text-secondary); max-width: 620px; margin: 0 0 20px; }
.lp-hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }

.lp-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-md); margin-bottom: var(--space-xl); }
.lp-step { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.lp-step-num {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--secondary-light); color: var(--secondary-dark); font-weight: 900;
  margin-bottom: 10px;
}
.lp-step h3 { font-size: 17px; margin: 0 0 6px; }
.lp-step p { font-size: 14px; color: var(--text-secondary); margin: 0; }

.lp-ages-head { margin-bottom: 18px; }
.lp-ages-head h2 { font-size: clamp(22px, 3.5vw, 28px); font-weight: 900; margin: 0 0 4px; }
.lp-ages-head p { margin: 0; color: var(--text-secondary); font-size: 15px; }

/* Mỗi nhóm tuổi 1 tông màu (xoay vòng) */
.lp-tone-0 { --tone: var(--secondary-dark); --tone-bg: var(--secondary-light); --tone-dot: #FFD2BE; }
.lp-tone-1 { --tone: #2A87A8; --tone-bg: #E3F3F9; --tone-dot: #BFE3F1; }
.lp-tone-2 { --tone: #B57A10; --tone-bg: #FBF0D9; --tone-dot: #F4DDA8; }
.lp-tone-3 { --tone: var(--accent-purple); --tone-bg: #EFE9F7; --tone-dot: #D9CCEE; }
.lp-tone-4 { --tone: var(--primary-dark); --tone-bg: var(--primary-light); --tone-dot: #B7E4CF; }

.lp-age-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.lp-age-card {
  display: flex; flex-direction: column; text-align: left;
  padding: 0; overflow: hidden;
  background: var(--bg-card); border: 2px solid var(--border); border-radius: var(--radius-lg);
  font: inherit; color: var(--text); cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.lp-age-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--tone); }
.lp-age-card:focus-visible { outline: 3px solid var(--tone); outline-offset: 3px; }

.lp-age-art {
  position: relative; display: grid; place-items: center;
  height: 132px; background: var(--tone-bg); overflow: hidden;
}
/* Hoạ tiết nền: 2 vòng tròn + chấm bi */
.lp-age-art::before, .lp-age-art::after {
  content: ''; position: absolute; border-radius: 50%; background: var(--tone-dot);
}
.lp-age-art::before { width: 150px; height: 150px; right: -48px; top: -56px; opacity: .7; }
.lp-age-art::after {
  width: 88px; height: 88px; left: -26px; bottom: -34px; opacity: .55;
  box-shadow: 150px -18px 0 -36px var(--tone-dot);
}
.lp-age-emoji, .lp-age-art img {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 84px; height: 84px; border-radius: 50%;
  background: #fff; box-shadow: 0 6px 18px rgba(35, 40, 33, .12);
  font-size: 46px; line-height: 1;
  transition: transform .3s ease;
}
.lp-age-art img { object-fit: cover; padding: 10px; }
.lp-age-card:hover .lp-age-emoji, .lp-age-card:hover .lp-age-art img { transform: scale(1.08) rotate(-6deg); }
.lp-age-range {
  position: absolute; z-index: 1; left: 12px; top: 12px;
  background: #fff; color: var(--tone);
  font-size: 12px; font-weight: 900; padding: 4px 10px; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-xs);
}
.lp-age-body { display: flex; flex-direction: column; gap: 4px; flex: 1; padding: 14px 16px 16px; }
.lp-age-body strong { font-size: 16px; font-weight: 900; line-height: 1.3; }
.lp-age-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.45; }
.lp-age-go { margin-top: auto; padding-top: 10px; font-size: 14px; font-weight: 900; color: var(--tone); }
.lp-age-go span { display: inline-block; transition: transform var(--transition); }
.lp-age-card:hover .lp-age-go span { transform: translateX(4px); }

@media (max-width: 480px) {
  .lp-age-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .lp-age-art { height: 108px; }
  .lp-age-emoji, .lp-age-art img { width: 68px; height: 68px; font-size: 36px; }
  .lp-age-body { padding: 12px; }
  .lp-age-body strong { font-size: 15px; }
  /* Thẻ lẻ cuối cùng: trải 2 cột, bố cục ngang */
  .lp-age-card:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; }
  .lp-age-card:last-child:nth-child(odd) .lp-age-art { width: 42%; height: auto; min-height: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-age-card, .lp-age-emoji, .lp-age-art img, .lp-age-go span { transition: none; }
  .lp-age-card:hover { transform: none; }
}

/* ── App shell ───────────────────────────────────────────────── */
.lp-app { max-width: 720px; margin: 0 auto; }
.lp-topbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; min-height: 44px; }
.lp-profile-chip { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14px; color: var(--text-secondary); }
.lp-profile-chip .lp-ava-sm { font-size: 20px; }

.lp-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(18px, 4vw, 32px);
}
.lp-card + .lp-card { margin-top: var(--space-md); }
.lp-card h2 { font-size: clamp(20px, 4vw, 26px); font-weight: 900; margin: 0 0 6px; line-height: 1.25; }
.lp-sub { color: var(--text-secondary); margin: 0 0 20px; font-size: 15px; }
.lp-label { display: block; font-weight: 800; font-size: 14px; margin: 18px 0 8px; }
.lp-input {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 2px solid var(--border); border-radius: var(--radius);
  font: inherit; font-size: 16px; background: #fff; color: var(--text);
}
.lp-input:focus { outline: none; border-color: var(--primary); }
.lp-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 24px; }
.lp-actions-split { justify-content: space-between; }
.lp-note { font-size: 13px; color: var(--text-muted); margin-top: 12px; }
.lp-error { color: #B42318; font-weight: 700; font-size: 14px; }

/* ── Choice grid (tuổi, mục tiêu, avatar, tự đánh giá, nhịp học) ─ */
.lp-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.lp-choices-1 { grid-template-columns: 1fr; }
.lp-choice {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left;
  min-height: 56px; padding: 14px 16px;
  background: #fff; border: 2px solid var(--border); border-radius: var(--radius);
  font: inherit; color: var(--text); cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.lp-choice:hover { border-color: var(--border-strong); }
.lp-choice:focus-visible { outline: 3px solid var(--secondary); outline-offset: 2px; }
.lp-choice.is-on { border-color: var(--primary); background: var(--primary-light); }
.lp-choice strong { font-size: 15px; font-weight: 800; }
.lp-choice span { font-size: 13px; color: var(--text-secondary); }
.lp-choice .lp-tag { font-size: 11px; font-weight: 800; color: var(--secondary-dark); text-transform: uppercase; letter-spacing: .03em; }

.lp-avatars { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-ava {
  width: 52px; height: 52px; font-size: 28px; line-height: 1;
  border: 2px solid var(--border); border-radius: 50%; background: #fff; cursor: pointer;
}
.lp-ava.is-on { border-color: var(--primary); background: var(--primary-light); }

/* ── Danh sách hồ sơ ─────────────────────────────────────────── */
.lp-profiles { display: grid; gap: 10px; }
.lp-profile {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; background: #fff;
  border: 2px solid var(--border); border-radius: var(--radius);
}
.lp-profile-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; background: none; border: 0; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.lp-profile-main .lp-ava-lg { font-size: 36px; }
.lp-profile-main strong { display: block; font-size: 16px; }
.lp-profile-main span { display: block; font-size: 13px; color: var(--text-secondary); }
.lp-profile:hover { border-color: var(--primary); }

/* ── Test ────────────────────────────────────────────────────── */
.lp-progress { height: 10px; background: var(--bg-alt); border-radius: var(--radius-pill); overflow: hidden; margin-bottom: 8px; }
.lp-progress > i { display: block; height: 100%; background: var(--primary); border-radius: inherit; transition: width .4s ease; }
.lp-progress-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-muted); font-weight: 700; margin-bottom: 16px; }
.lp-cheer { background: var(--secondary-light); color: var(--secondary-dark); font-weight: 800; border-radius: var(--radius); padding: 8px 14px; margin-bottom: 14px; font-size: 14px; }
.lp-instr { font-weight: 800; color: var(--text-secondary); font-size: 15px; margin: 0 0 12px; }
.lp-prompt { font-size: clamp(18px, 3.5vw, 22px); font-weight: 800; line-height: 1.4; margin: 0 0 18px; }
.lp-prompt-emoji { font-size: 84px; line-height: 1.1; text-align: center; margin: 4px 0 18px; }
.lp-blank { display: inline-block; min-width: 64px; border-bottom: 3px solid var(--primary); margin: 0 4px; }
.lp-passage {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; margin: 0 0 16px; font-size: 16px; line-height: 1.6; white-space: pre-line;
}
.lp-qimg { display: block; max-width: 100%; max-height: 240px; margin: 0 auto 16px; border-radius: var(--radius); }
.lp-play {
  display: flex; align-items: center; gap: 10px; margin: 0 auto 18px;
  min-height: 56px; padding: 10px 22px;
  background: var(--secondary); color: #fff; border: 0; border-radius: var(--radius-pill);
  font: inherit; font-weight: 800; font-size: 16px; cursor: pointer;
}
.lp-play[disabled] { opacity: .5; cursor: not-allowed; }
.lp-play svg { flex-shrink: 0; }

.lp-opts { display: grid; gap: 10px; }
.lp-opts-big { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
.lp-opt {
  min-height: 52px; padding: 12px 16px; text-align: left;
  background: #fff; border: 2px solid var(--border); border-radius: var(--radius);
  font: inherit; font-size: 16px; font-weight: 700; color: var(--text); cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.lp-opt:hover { border-color: var(--border-strong); }
.lp-opt:focus-visible { outline: 3px solid var(--secondary); outline-offset: 2px; }
.lp-opt.is-on { border-color: var(--primary); background: var(--primary-light); }
.lp-opts-big .lp-opt { min-height: 96px; font-size: 44px; text-align: center; padding: 8px; }
.lp-opt img { max-width: 100%; max-height: 80px; }

/* Sắp xếp câu */
.lp-answer-line {
  min-height: 60px; display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start;
  padding: 10px; margin-bottom: 14px;
  border: 2px dashed var(--border-strong); border-radius: var(--radius); background: var(--bg);
}
.lp-answer-line:empty::before { content: 'Chạm vào các từ bên dưới theo đúng thứ tự'; color: var(--text-muted); font-size: 14px; padding: 8px 4px; }
.lp-tokens { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-token {
  min-height: 44px; padding: 8px 14px; background: #fff;
  border: 2px solid var(--border-strong); border-radius: var(--radius-sm);
  font: inherit; font-size: 16px; font-weight: 800; color: var(--text); cursor: pointer;
}
.lp-token.is-used { visibility: hidden; }

/* Ghép cặp */
.lp-match { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.lp-match-col { display: grid; gap: 10px; align-content: start; }
.lp-match .lp-opt { text-align: center; }
.lp-match .lp-opt.is-paired { border-color: var(--accent-teal); background: #E6F4FA; }
.lp-pair-num { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-teal); color: #fff; font-size: 12px; margin-right: 6px; vertical-align: middle; }

.lp-q-actions { display: flex; flex-wrap: wrap-reverse; gap: 10px; justify-content: space-between; align-items: center; margin-top: 22px; }

/* ── Kết quả ─────────────────────────────────────────────────── */
.lp-result-head { text-align: center; }
.lp-level-badge {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  width: 132px; height: 132px; border-radius: 50%;
  background: var(--primary); color: #fff; margin: 4px auto 14px;
  box-shadow: 0 0 0 8px var(--primary-light);
}
.lp-level-badge b { font-size: 34px; font-weight: 900; line-height: 1; }
.lp-level-badge small { font-size: 13px; font-weight: 800; opacity: .9; margin-top: 4px; }
.lp-result-head h2 { margin-bottom: 4px; }
.lp-bars { display: grid; gap: 12px; margin: 8px 0 4px; }
.lp-bar-row { display: grid; grid-template-columns: 84px 1fr 44px; align-items: center; gap: 10px; font-size: 14px; font-weight: 800; }
.lp-bar { height: 12px; background: var(--bg-alt); border-radius: var(--radius-pill); overflow: hidden; }
.lp-bar > i { display: block; height: 100%; border-radius: inherit; background: var(--primary); }
.lp-bar.is-weak > i { background: var(--secondary); }
.lp-bar-row em { font-style: normal; text-align: right; color: var(--text-secondary); }
.lp-list { margin: 0; padding-left: 20px; }
.lp-list li { margin: 4px 0; }
.lp-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.lp-h3 { font-size: 16px; font-weight: 900; margin: 0 0 8px; }
.lp-warn { background: var(--pro-bg); color: var(--pro-text); border-radius: var(--radius); padding: 10px 14px; font-size: 14px; font-weight: 700; margin-top: 14px; }
.lp-inline-form { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-inline-form .lp-input { flex: 1 1 220px; }

/* ── Nhịp học ────────────────────────────────────────────────── */
.lp-estimate { background: var(--primary-light); border-radius: var(--radius); padding: 14px 16px; margin-top: 18px; font-size: 15px; }
.lp-estimate strong { color: var(--primary-dark); }
.lp-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-seg .lp-choice { min-height: 44px; padding: 8px 16px; flex: 0 0 auto; align-items: center; }

/* ── Lộ trình ────────────────────────────────────────────────── */
.lp-path-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.lp-path-who { display: flex; gap: 12px; align-items: center; }
.lp-path-who .lp-ava-lg { font-size: 44px; }
.lp-path-who strong { display: block; font-size: 18px; font-weight: 900; }
.lp-path-who span { display: block; font-size: 14px; color: var(--text-secondary); }
.lp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.lp-chip { background: var(--bg-alt); border-radius: var(--radius-pill); padding: 5px 12px; font-size: 13px; font-weight: 800; color: var(--text-secondary); border: 0; font-family: inherit; }
button.lp-chip { cursor: pointer; }
button.lp-chip:hover { background: var(--border); }

.lp-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.lp-timeline::before { content: ''; position: absolute; left: 19px; top: 24px; bottom: 24px; width: 3px; background: var(--border); border-radius: 2px; }
.lp-stage { position: relative; padding-left: 54px; margin-bottom: 14px; }
.lp-stage-dot {
  position: absolute; left: 0; top: 14px;
  width: 41px; height: 41px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-card); border: 3px solid var(--border-strong);
  font-weight: 900; font-size: 13px; color: var(--text-secondary);
}
.lp-stage.is-current .lp-stage-dot { background: var(--primary); border-color: var(--primary); color: #fff; }
.lp-stage-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.lp-stage.is-current .lp-stage-card { border: 2px solid var(--primary); box-shadow: var(--shadow-sm); }
.lp-stage-toggle {
  width: 100%; display: flex; gap: 10px; align-items: flex-start; justify-content: space-between;
  padding: 16px 18px; background: none; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer;
}
.lp-stage-toggle strong { display: block; font-size: 16px; font-weight: 900; }
.lp-stage-toggle span { display: block; font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.lp-stage-toggle .lp-caret { flex-shrink: 0; transition: transform var(--transition); margin-top: 2px; }
.lp-stage.is-open .lp-caret { transform: rotate(180deg); }
.lp-stage-body { padding: 0 18px 18px; }
.lp-units { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.lp-unit { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; padding: 12px 14px; background: var(--bg); border-radius: var(--radius); }
.lp-unit strong { display: block; font-size: 15px; }
.lp-unit span { display: block; font-size: 13px; color: var(--text-secondary); }
.lp-unit-tag { flex-shrink: 0; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: var(--radius-pill); background: var(--secondary-light); color: var(--secondary-dark); }
.lp-unit-tag.is-goal { background: var(--primary-light); color: var(--primary-dark); }
.lp-optional { margin-top: 12px; }
.lp-optional summary { cursor: pointer; font-weight: 800; font-size: 14px; color: var(--text-secondary); }
.lp-soon { background: var(--bg-alt); border-radius: var(--radius); padding: 12px 14px; font-size: 14px; color: var(--text-secondary); margin-top: 14px; }

.lp-loading { text-align: center; padding: 48px 16px; color: var(--text-secondary); font-weight: 700; }
.lp-spinner { width: 40px; height: 40px; margin: 0 auto 14px; border: 4px solid var(--primary-light); border-top-color: var(--primary); border-radius: 50%; animation: lp-spin .8s linear infinite; }
@keyframes lp-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .lp-spinner { animation-duration: 2.4s; }
  .lp-progress > i { transition: none; }
}

@media (max-width: 480px) {
  .lp-bar-row { grid-template-columns: 70px 1fr 40px; }
  .lp-match { gap: 8px; }
  .lp-actions .lp-btn { flex: 1 1 auto; }
}

/* ── Lịch học theo ngày ─────────────────────────────────────── */
.lp-today {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: 16px; padding: 16px 18px;
  background: var(--primary-light); border-radius: var(--radius-lg);
}
.lp-today-txt { flex: 1 1 240px; min-width: 0; }
.lp-today-k { display: block; font-size: 12px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--primary-dark); margin-bottom: 4px; }
.lp-today-txt strong { display: block; font-size: 17px; font-weight: 900; }
.lp-today-txt span:last-child { display: block; font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.lp-today.is-done { background: var(--secondary-light); }

.lp-plan-progress { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-size: 13px; font-weight: 800; color: var(--text-secondary); }
.lp-plan-bar { flex: 1; height: 8px; background: var(--bg-alt); border-radius: var(--radius-pill); overflow: hidden; }
.lp-plan-bar > i { display: block; height: 100%; background: var(--primary); border-radius: inherit; transition: width .4s ease; }

.lp-stage.is-done .lp-stage-dot { background: var(--primary-light); border-color: var(--primary); color: var(--primary-dark); }

.lp-days { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.lp-day { border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; }
.lp-day.is-current { border: 2px solid var(--primary); background: var(--bg-card); }
.lp-day.is-done { background: var(--bg); }
.lp-day.is-locked { opacity: .6; }
.lp-day-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.lp-day-head strong { font-size: 14px; font-weight: 900; }
.lp-day-head span { font-size: 12px; font-weight: 800; color: var(--text-secondary); }
.lp-day.is-current .lp-day-head span { color: var(--primary-dark); }

.lp-lessons { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lp-lesson {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; min-height: 44px;
  background: var(--bg); border: 0; border-radius: var(--radius);
  font: inherit; color: inherit; text-align: left; cursor: pointer;
  transition: background var(--transition);
}
.lp-lesson:hover:not([disabled]) { background: var(--bg-alt); }
.lp-lesson:focus-visible { outline: 3px solid var(--secondary); outline-offset: 2px; }
.lp-lesson[disabled] { cursor: not-allowed; }
.lp-lesson-ico {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 900;
  background: var(--bg-card); border: 2px solid var(--border-strong); color: var(--text-secondary);
}
.lp-lesson.is-done .lp-lesson-ico { background: var(--primary); border-color: var(--primary); color: #fff; }
.lp-lesson.is-current { background: var(--primary-light); }
.lp-lesson.is-current .lp-lesson-ico { border-color: var(--primary); color: var(--primary-dark); }
.lp-lesson.is-locked .lp-lesson-ico { border-style: dashed; font-size: 12px; }
.lp-lesson-txt { flex: 1; min-width: 0; }
.lp-lesson-txt strong { display: block; font-size: 15px; }
.lp-lesson-txt span { display: block; font-size: 13px; color: var(--text-secondary); }
.lp-lesson-go { flex-shrink: 0; font-size: 13px; font-weight: 800; color: #fff; background: var(--primary); padding: 5px 12px; border-radius: var(--radius-pill); }

.lp-lesson-card .lp-today-k { margin-bottom: 8px; }
.lp-lesson-card .lp-soon { margin-top: 0; }
.lp-center { text-align: center; }

/* ── Trình học bài ──────────────────────────────────────────── */
.lp-btn-sm { min-height: 36px; padding: 6px 14px; font-size: 13px; }
.lp-objective { background: var(--primary-light); color: var(--primary-dark); border-radius: var(--radius); padding: 12px 14px; font-weight: 800; font-size: 15px; }
.lp-count { font-size: 12px; font-weight: 800; color: var(--text-muted); margin-left: 6px; }
.lp-say {
  flex-shrink: 0; display: inline-grid; place-items: center; vertical-align: middle;
  width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--primary-light); color: var(--primary-dark);
  transition: background var(--transition), transform var(--transition);
}
.lp-say:hover { background: var(--primary); color: #fff; }
.lp-say:active { transform: scale(.92); }
.lp-say:focus-visible { outline: 3px solid var(--secondary); outline-offset: 2px; }
.lp-vex .lp-say { width: 28px; height: 28px; margin-left: 2px; }
.lp-vex .lp-say svg { width: 15px; height: 15px; }

.lp-vocab { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.lp-vcard { display: flex; gap: 12px; align-items: flex-start; padding: 12px; background: var(--bg); border-radius: var(--radius); }
.lp-vpic { flex-shrink: 0; width: 56px; height: 56px; display: grid; place-items: center; font-size: 40px; line-height: 1; background: var(--bg-card); border-radius: var(--radius); overflow: hidden; }
.lp-vpic img { width: 100%; height: 100%; object-fit: cover; }
.lp-vbody { min-width: 0; flex: 1; }
.lp-vword { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lp-vword strong { font-size: 18px; font-weight: 900; overflow-wrap: anywhere; }
.lp-ipa { display: block; font-size: 13px; color: var(--text-muted); font-family: 'Segoe UI', 'Noto Sans', system-ui, sans-serif; }
.lp-vmean { display: block; font-weight: 800; font-size: 14px; margin-top: 2px; }
.lp-vex { display: block; font-size: 13px; color: var(--text-secondary); margin-top: 6px; font-style: italic; }
.lp-vex em { display: block; font-style: normal; color: var(--text-muted); }

.lp-patterns { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.lp-patterns li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; background: var(--bg); border-radius: var(--radius); }
.lp-patterns strong { display: block; font-size: 16px; }
.lp-patterns span { display: block; font-size: 14px; color: var(--text-secondary); }
.lp-patterns small { display: block; font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.lp-text-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.lp-text-head .lp-h3 { margin: 0; }
.lp-passage-vi { margin-top: 8px; color: var(--text-secondary); }
.lp-explain { font-size: 15px; line-height: 1.65; background: var(--secondary-light); border-radius: var(--radius); padding: 12px 14px; }
.lp-write { width: 100%; min-height: 120px; resize: vertical; font: inherit; line-height: 1.5; }
.lp-parent { background: var(--secondary-light); }
.lp-parent p:last-child { margin: 0; font-size: 15px; }

.lp-opt.is-right { border-color: var(--primary); background: var(--primary-light); color: var(--primary-dark); }
.lp-opt.is-wrong { border-color: #d64545; background: #fdecec; color: #9b1c1c; }
.lp-opt[disabled] { cursor: default; }
.lp-feedback { margin-top: 18px; padding: 12px 14px; border-radius: var(--radius); display: grid; gap: 4px; font-size: 14px; }
.lp-feedback strong { font-size: 16px; }
.lp-feedback.is-right { background: var(--primary-light); color: var(--primary-dark); }
.lp-feedback.is-wrong { background: #fdecec; color: #9b1c1c; }

.lp-stars { display: block; font-size: 44px; letter-spacing: 4px; color: #f5b301; line-height: 1.1; margin-bottom: 6px; }
.lp-stars i { font-style: normal; color: var(--border); }
.lp-next-msg { font-weight: 800; margin: 4px 0 0; }
