/* me.css - Tiến độ, Lộ trình, Cài đặt, Hướng dẫn (phase 6). Only uses :root tokens from style.css. */

/* ---- Tiến độ ---- */
.headline { display: flex; flex-wrap: wrap; gap: .2rem 1.2rem; justify-content: space-between; color: var(--muted); margin: -.2rem 0 .4rem; }
.headline b { color: var(--accent); font-size: 1.15rem; }
.stage { margin: .9rem 0 1.1rem; }
.stage h4 { margin: 0 0 .35rem; }
.stage.cur { border-left: 3px solid var(--accent); padding-left: calc(.7rem - 3px); margin-left: -.7rem; }
.prow2 { display: grid; grid-template-columns: 5.2rem 1fr; gap: .1rem .6rem; align-items: center; margin: .45rem 0; }
.prow2 .pl { color: var(--muted); font-size: .9rem; }
.prow2 .pt { grid-column: 2; color: var(--muted); font-size: .8rem; margin-top: -.1rem; }
@media (min-width: 640px) {
  .prow2 { grid-template-columns: 5.2rem 1fr 11rem; }
  .prow2 .pt { grid-column: auto; margin-top: 0; text-align: right; }
}
.tbar { position: relative; display: flex; height: 8px; background: var(--hm0); border-radius: 99px; overflow: hidden; }
.tbar i { display: block; height: 100%; }
.tbar .k { background: var(--accent); }
.tbar .l { background: var(--hm2); }
html[data-fx="on"] .tbar i { transition: width var(--d-slow) var(--e-out); }
.hm.today { outline: 2px solid var(--accent); outline-offset: 1px; }
.btn.ghostbtn { margin-top: .7rem; background: transparent; border-color: transparent; color: var(--muted); padding-left: 0; }
.btn.ghostbtn:hover { color: var(--accent); }
.warn a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* gập: Kế hoạch theo tuần / Giáo trình giấy / Đề thi thử / Nâng cao */
.fold { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin: .8rem 0; box-shadow: var(--shadow); }
.fold > summary { cursor: pointer; padding: .8rem 1rem; min-height: 48px; display: flex; align-items: center; font-weight: 600; list-style: none; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::before { content: "▸"; color: var(--muted); margin-right: .55rem; display: inline-block; }
.fold[open] > summary::before { content: "▾"; }
.fold > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 14px; }
.fold > summary:hover { color: var(--accent); }
.foldbody { padding: 0 1rem 1rem; }
.foldbody h4 { margin: 1rem 0 .3rem; }
.foldbody h4:first-child { margin-top: .2rem; }

/* ---- Lộ trình ---- */
.backlink { margin: 0 0 .2rem; }
.backlink a { color: var(--accent); display: inline-block; padding: .5rem 0; min-height: 44px; box-sizing: border-box; }

/* ---- Cài đặt ---- */
.setlabel { font-size: .92rem; color: var(--muted); margin: .6rem 0 .3rem; }
.optrow { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .4rem; }
.optchip { position: relative; display: block; margin: 0; }
.optchip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.optchip span { display: flex; align-items: center; min-height: 44px; padding: 0 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); }
.optchip input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.optchip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.check { min-height: 44px; display: flex; align-items: center; gap: .5rem; }
.check input { width: 1.25rem; height: 1.25rem; flex: none; accent-color: var(--accent); }
.deckrow { align-items: center; border-bottom: 1px solid var(--line); }
.deckrow:last-of-type { border-bottom: 0; }
.gmodes .check { align-items: flex-start; padding: .2rem 0; }

/* ---- Hướng dẫn (modal 3 trang) ---- */
.guide-dots { display: flex; gap: .4rem; justify-content: center; margin: .8rem 0 .2rem; }
.guide-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.guide-dots i.on { background: var(--accent); }
.guide-nav { display: flex; gap: .5rem; justify-content: space-between; margin-top: .8rem; }
.guide-nav .btn { min-height: 44px; }
.guide-body { min-height: 13rem; }
.guide-body h3 { font-size: 1.2rem; margin-right: 2rem; }
.guide-body ul, .guide-body ol { padding-left: 1.3rem; }
.guide-body li { margin: .3rem 0; }
.form label.check { flex-direction: row; margin: 0; color: var(--ink); font-size: 1rem; }
.form label.check.small { font-size: .85rem; color: var(--muted); }
.form label.optchip { margin: 0; flex-direction: row; }
.deckrow { flex-wrap: nowrap; }
.deckrow label.check.small { flex: none; white-space: nowrap; }
.deckrow label.check:first-child { min-width: 0; }
