/* Lộ trình học: giao diện sinh viên (thẻ Lộ trình) và giảng viên (trang Lộ trình học). */
.pt-probe { position: fixed; left: -9999px; top: 0; width: 320px; height: 180px; overflow: hidden; pointer-events: none; }
.pt-probe iframe { width: 320px; height: 180px; border: 0; }

.pt-bar { width: 100%; height: 10px; border: 0; border-radius: 6px; overflow: hidden; background: var(--line); accent-color: var(--ok); appearance: none; }
.pt-bar::-webkit-progress-bar { background: var(--line); border-radius: 6px; }
.pt-bar::-webkit-progress-value { background: var(--ok); border-radius: 6px; }
.pt-bar::-moz-progress-bar { background: var(--ok); border-radius: 6px; }

.pt-ic { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); font-size: .95rem; }
.pt-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.pt-stat { font-size: .92rem; color: var(--muted); }
.pt-stat.ok { color: var(--ok); }
.pt-stat.lock { color: var(--muted); font-style: italic; }
.pt-late { color: var(--bad); }
.pt-note { white-space: pre-line; }

/* Nhiệm vụ cá nhân */
.pt-tasks { gap: 10px; }
.pt-tasks-head { display: flex; align-items: center; gap: 12px; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.pt-target { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: #fff; font-size: 1.5rem; }
.pt-tasks-head strong { font-size: 1.15rem; }
.pt-caret { flex: 0 0 auto; color: var(--muted); }
.pt-tasklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.pt-taskgroup { margin-top: 8px; padding: 6px 0; font-weight: 600; border-bottom: 1px solid var(--line); }
.pt-task button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 2px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; border-bottom: 1px solid var(--line); }
.pt-task button:hover { background: var(--accent-soft); }
.pt-task .pt-due { flex: 0 0 auto; white-space: nowrap; }

/* Lộ trình và tuần */
.pt-path h2 { margin: 0; }
.pt-sum { display: flex; flex-direction: column; gap: 6px; }
.pt-week { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.pt-week > summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; list-style: none; }
.pt-week > summary::-webkit-details-marker { display: none; }
.pt-week > summary::before { content: '▸'; margin-right: 8px; color: var(--muted); }
.pt-week[open] > summary::before { content: '▾'; }
.pt-wt { font-weight: 600; flex: 1 1 auto; }
.pt-week.locked > summary { opacity: .7; }
.pt-sec { padding: 4px 14px 10px; }
.pt-sec h4 { margin: 10px 0 6px; font-size: .95rem; color: var(--accent); display: flex; align-items: center; gap: 8px; }
.pt-letter { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; }
.pt-step { border-radius: 10px; padding: 8px 10px; background: var(--bg); margin-bottom: 8px; border: 1px solid transparent; }
.pt-step.flash { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.pt-step.done { background: var(--ok-soft); }
.pt-step.locked { opacity: .65; }
.pt-row { display: flex; align-items: center; gap: 10px; }
.pt-act { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; flex: 0 0 auto; }
.pt-lockico { font-size: 1.1rem; }
.pt-player { margin-top: 10px; }
.pt-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; }
.pt-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pt-info { margin: 6px 0 0; color: var(--muted); }

@media (max-width: 640px) {
  .pt-row { flex-wrap: wrap; }
  .pt-act { width: 100%; justify-content: flex-start; padding-left: 40px; }
  .pt-task button { flex-wrap: wrap; }
}

/* Giảng viên */
.pt-admin .grow { flex: 1 1 220px; }
.pt-classes { display: flex; flex-direction: column; gap: 8px; }
.pt-cls { max-width: 460px; }
.pt-bweek { gap: 8px; }
.pt-whead { align-items: flex-end; }
.pt-bstep { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.pt-bact { display: flex; gap: 4px; flex: 0 0 auto; }
.pt-add { padding-top: 4px; border-top: 1px dashed var(--line); }
.pt-tw { overflow-x: auto; }
.pt-prog th { min-width: 90px; vertical-align: bottom; }
.pt-c { text-align: center; cursor: pointer; white-space: nowrap; }
.pt-c.ok { background: var(--ok-soft); color: var(--ok); font-weight: 600; }
.pt-c.lock { color: var(--muted); }
.pt-c:hover { outline: 2px solid var(--accent); outline-offset: -2px; }

/* Điều kiện giữa các lộ trình */
.pt-need ul { margin: 6px 0 0 18px; padding: 0; }
.pt-reqrow { align-items: flex-end; }
.pt-stat.late { color: var(--bad); }

/* Diễn đàn */
.fm-threads { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.fm-threads button { display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 10px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.fm-threads button:hover { background: var(--accent-soft); }
.fm-new summary { display: inline-block; cursor: pointer; margin-bottom: 8px; list-style: none; }
.fm-new summary::-webkit-details-marker { display: none; }
.fm-post { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.fm-post.gv { border-color: var(--gold); background: var(--gold-soft); }
.fm-post.mine { border-color: var(--accent); }
.fm-post p { margin: 6px 0 0; }
.fm-row { cursor: pointer; }
.fm-row:hover { background: var(--accent-soft); }
