/* Buổi học + Sổ từ */
.steps { display: flex; gap: 4px; margin: 0 0 14px; }
.steps .st { flex: 1; text-align: center; opacity: .45; }
.steps .st span { display: grid; place-items: center; width: 36px; height: 36px; margin: 0 auto; border-radius: 50%; background: #fff; box-shadow: 0 3px 0 rgba(43,45,66,.08); font-size: 18px; }
.steps .st small { display: block; font-size: 11px; font-weight: 800; margin-top: 3px; }
.steps .st.on { opacity: 1; }
.steps .st.on span { background: var(--orange); color: #fff; box-shadow: 0 3px 0 var(--orange-d); }
.steps .st.done { opacity: .9; }
.steps .st.done span { background: var(--green); color: #fff; }

.line-card { padding: 14px; }
.line-en { font-size: 18px; font-weight: 600; line-height: 1.5; -webkit-user-select: text; user-select: text; }
.line-vi { margin-top: 8px; color: var(--ink-2); font-size: 15px; font-weight: 600; background: #F7F3FF; border-radius: 12px; padding: 8px 10px; }
.kw { background: linear-gradient(transparent 55%, #FFE08A 55%); border-radius: 3px; cursor: pointer; font-weight: 800; }
.tip-sum { cursor: pointer; font-weight: 800; color: var(--orange-d); font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 0; border-radius: 999px; padding: 6px 12px; background: #F1ECFF; color: var(--purple-d); font-weight: 800; font-size: 14px; cursor: pointer; }
.chip i { font-style: normal; opacity: .65; font-weight: 700; margin-right: 4px; }
.chip.g { background: #E9FBF8; color: var(--teal-d); }
.chip.big { font-size: 18px; padding: 10px 16px; background: #fff; color: var(--ink); box-shadow: 0 3px 0 rgba(43,45,66,.1); }
.chip.big.on { background: var(--orange); color: #fff; box-shadow: 0 3px 0 var(--orange-d); }
.mk { width: 44px; height: 44px; border-radius: 14px; border: 3px solid var(--line); background: #fff; font-size: 20px; cursor: pointer; flex: none; filter: grayscale(.8); opacity: .7; }
.mk.on-k { border-color: var(--green); background: #E3F7EC; filter: none; opacity: 1; }
.mk.on-l { border-color: var(--pink); background: #FDE5F2; filter: none; opacity: 1; }
.sel-add { position: absolute; z-index: 60; box-shadow: 0 6px 18px rgba(0,0,0,.18), 0 3px 0 var(--purple-d); }

.kcard h2 { font-size: 28px; }
.kc-sec { margin-top: 12px; font-size: 15px; }
.kc-sec ul { margin: 6px 0 0; padding-left: 20px; }
.kc-sec.warn { background: #FFF1DA; border-radius: 12px; padding: 8px 10px; font-weight: 700; }
.kc-ex { margin-top: 6px; background: #FFFBF0; border-left: 4px solid var(--yellow); border-radius: 10px; padding: 6px 10px; }
.kc-formula { margin-top: 10px; font-family: ui-monospace, Consolas, monospace; font-weight: 800; font-size: 17px; background: #2B2D42; color: #FFD166; border-radius: 12px; padding: 10px 12px; }

.timer-card { position: relative; width: 230px; height: 230px; margin: 4px auto 0; }
.timer-card .ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.timer-card .ring circle { fill: none; stroke-width: 12; }
.timer-card .ring .bg { stroke: #fff; }
.timer-card .ring .fg { stroke: var(--teal); stroke-linecap: round; transition: stroke-dashoffset 1s linear, stroke .3s; }
.timer-card .ring .fg.warn { stroke: var(--red); }
.timer-card .t-mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.timer-card .t-num { font-family: 'Baloo 2'; font-weight: 800; font-size: 54px; line-height: 1; }
.timer-card .t-sub { color: var(--ink-2); font-weight: 700; font-size: 14px; margin-top: 4px; }
.timer-card.paused .t-num { color: var(--muted); }
.timer-card .t-num.over, .timer-card .t-sub.over { color: var(--red-d); }   /* het gio: dem "+mm:ss qua gio", khong khoa bai */
.cap-clock.over { background: #FDE7EC; color: var(--red-d); }
/* de doc hieu (gop y 24/10): chip dem nguoc o man Doc & lam bai, cham de doi so phut */
.rd-clock { border: 0; cursor: pointer; color: var(--ink); }
.rd-clock.over { background: #FDE7EC; color: var(--red-d); }
.rd-note { align-items: center; }
.sticky-actions .inner.rd-bar { grid-template-columns: auto 1fr; }
.rd-bar #rd-app { font-size: 15px; padding-left: 12px; padding-right: 12px; }
/* man sau cham: hoc tiep noi bat, on nhanh thu nho */
.next-card { border: 3px solid var(--green, #3BB273); }
.quick-rv { align-items: center; gap: 10px; padding: 12px 14px; }
.later-card { border-left-color: var(--purple, #8B5CF6); }

.tbar { display: flex; height: 18px; border-radius: 999px; overflow: hidden; background: #F2EBDD; }
.tbar i { display: block; height: 100%; }
.dot { width: 14px; height: 14px; border-radius: 50%; flex: none; }
u.ul { text-decoration-thickness: 3px; text-underline-offset: 3px; text-decoration-color: var(--pink); font-weight: 900; }
.clip { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.passage-card { border-left: 6px solid var(--purple); }
.passage-card details.para { border-top: 2px solid var(--line); padding: 10px 0 4px; }
.passage-card details.para summary { cursor: pointer; list-style: none; }
.passage-card details.para summary::before { content: '▸ '; color: var(--purple); font-weight: 900; }
.passage-card details.para[open] summary::before { content: '▾ '; }
.sents { margin: 8px 0 0; padding-left: 26px; display: grid; gap: 8px; font-size: 15px; font-weight: 600; }
.sents .anchor { font-weight: 900; color: var(--purple-d); font-family: Georgia, serif; }
.sents .snote { margin-top: 3px; font-size: 13px; color: var(--teal-d); }
.sess-card { padding: 14px; border-left: 6px solid var(--orange); }
.sess-card.is-paused { border-left-color: var(--muted); opacity: .9; }
.mini-steps { display: flex; gap: 4px; margin-top: 10px; }
.mini-steps i { flex: 1; height: 6px; border-radius: 999px; background: #EFE7D6; }
.mini-steps i.done { background: var(--green); }
.mini-steps i.on { background: var(--orange); }
.paused-chip { background: #EFE7D6; }
.sess-btns .btn { white-space: nowrap; }

/* Hiểu đề trình bày theo đề gốc (góp ý 10/2026): ảnh đề trên cùng, tiêu đề bài, lựa chọn A/B/C/D xuống dòng */
.src-imgs { background: #fff; border-radius: 18px; padding: 10px 12px; box-shadow: 0 3px 0 rgba(43,45,66,.08); }
.src-imgs > summary { font-weight: 800; cursor: pointer; }
.src-strip { display: flex; gap: 8px; overflow-x: auto; margin-top: 10px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.src-strip img { height: 190px; max-width: 82%; object-fit: contain; border-radius: 12px; background: #F7F3EA; flex: none; scroll-snap-align: start; cursor: zoom-in; }
.und-head { padding: 4px 2px 0; border-bottom: 3px solid var(--line); padding-bottom: 10px; }
.und-head .und-ht { font-family: 'Baloo 2'; font-weight: 800; font-size: 19px; line-height: 1.3; }
.qno.und-exno { background: #C3A6FF; color: #fff; }
.line-card.pas { border-left: 6px solid #BFEDE8; }
.lopts { display: grid; gap: 4px; margin-top: 8px; }
.lopt { font-size: 17px; font-weight: 600; line-height: 1.45; }
.lopt .ol { color: var(--purple-d); margin-right: 2px; }
.lopts.tf { display: flex; gap: 8px; flex-wrap: wrap; }
.lopts.tf .lopt { background: #F4EEE2; border-radius: 999px; padding: 2px 12px; font-size: 15px; }
.und-bar .btn.big { font-size: 17px; padding: 12px 10px; line-height: 1.25; }

/* Góp ý 10/2026 (đợt 2): gợi ý số phút, câu cảm thán, tick từ mới, báo bố mẹ */
.sug-card .owl { margin: 0 auto; }
.sug-t { font-family: 'Baloo 2'; font-size: 21px; font-weight: 800; line-height: 1.3; margin-top: 4px; }
.sug-t b { color: var(--green-d); }
.sug-pick { font-weight: 700; }
details#own > summary { cursor: pointer; }
.score-hero .cheer { margin-top: 8px; font-weight: 800; font-size: 17px; background: rgba(255,255,255,.22); border-radius: 12px; padding: 6px 10px; display: inline-block; }
.nw-row { display: flex; gap: 10px; align-items: center; padding: 8px 4px; border-bottom: 2px solid var(--line); cursor: pointer; }
.nw-row:last-child { border-bottom: 0; }
.nw-row input[type=checkbox] { width: 24px; height: 24px; flex: none; accent-color: var(--green); }
.day-done { background: linear-gradient(135deg, #E3F7EC, #EAF2FF); }
.par-tools { margin-top: 4px; }
.par-tools > summary { cursor: pointer; text-align: center; padding: 6px; }
/* gop y 22/10: the buoi hoc 3 nut (Hoc tiep / Tam dung con N lan / Bo) vua 1 hang tren dien thoai nho */
.sess-btns { gap: 6px; }
.sess-btns .btn.ghost { padding-left: 10px; padding-right: 10px; }
.sess-btns .pz-left { margin-left: 4px; padding: 0 6px; border-radius: 999px; background: #EDE7DA; font-size: 11px; font-weight: 900; }
/* gop y 23/10 (HA2): Hieu de bai nhieu anh chia theo anh + 🎯 hoc tung cau (undsplit.js) */
.und-imgbar { position: sticky; top: 56px; z-index: 15; background: var(--bg, #FFF8EC); padding: 6px 0 8px; margin-bottom: 6px; }
.und-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.und-chips .fchip { flex: none; }
.und-chips .fchip small { font-weight: 700; opacity: .8; }
.und-chips .fchip.seen:not(.on)::after { content: ' ✓'; color: var(--green-d); }
.und-prog { margin-top: 4px; }
.und-imghead { display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 14px; padding: 8px; border: 2px solid var(--line); }
.und-imghead img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; cursor: zoom-in; flex: none; }
.und-imgnext { margin: 6px 0 10px; }
.und-focus-btn { margin-bottom: 10px; }
.und-focus-btn small { display: block; font-weight: 700; opacity: .75; font-size: 12px; }
.para-crop canvas.fig, .uf-crop canvas.fig { max-width: 100%; border-radius: 10px; border: 2px solid var(--line); display: block; margin: 6px 0; cursor: zoom-in; }
body.uf-on { overflow: hidden; }
.und-focus { position: fixed; inset: 0; z-index: 80; background: var(--bg, #FFF8EC); display: flex; flex-direction: column; }
.uf-top { display: flex; align-items: center; gap: 8px; padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 4px; font-size: 18px; }
.uf-bar { height: 6px; background: #EDE7DA; margin: 0 12px; border-radius: 999px; overflow: hidden; }
.uf-bar i { display: block; height: 100%; background: var(--green); transition: width .2s; }
.uf-body { flex: 1; overflow-y: auto; padding: 10px 12px 16px; max-width: 720px; width: 100%; margin: 0 auto; }
.uf-head { margin-bottom: 6px; font-weight: 700; }
.uf-crop { margin-bottom: 8px; }
.uf-nav { display: flex; gap: 8px; padding: 8px 12px calc(10px + env(safe-area-inset-bottom, 0px)); max-width: 720px; width: 100%; margin: 0 auto; }
