/* ============================================================
   WebEdu — HỌC SINH: web .edw-hs-*, app .edm-hs-*, chung .edu-gami-* (XP · streak · nhiệm vụ · huy hiệu · biểu đồ)
   Chế độ giao diện: .is-kid (Nhí) chữ to, mascot · .is-adult (Người lớn) gọn
   ============================================================ */

/* ---------- hero Hôm nay ---------- */
.edw-hs-hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.edw-hs-greet, .edm-hs-greet { font-size: var(--fs-xl); font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.edm-hs-greet { font-size: var(--fs-sm); font-weight: 600; opacity: .85; }
.edw-hs-sub { opacity: .85; font-size: var(--fs-sm); margin-top: 4px; }
.edw-hs-mascot, .edm-hs-mascot { font-size: 56px; line-height: 1; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .2)); position: relative; z-index: 1; }
.is-kid .edw-hs-mascot, .is-kid .edm-hs-mascot { font-size: 68px; animation: eduBob 2.4s ease-in-out infinite; }
@keyframes eduBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.edm-hs-hero { padding: 16px; margin-bottom: 6px; }
.edm-hs-hero-row { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.edm-hs-hero-text { flex: 1 1 auto; min-width: 0; }
.edm-hs-name { font-size: var(--fs-lg); font-weight: 800; line-height: 1.2; }
.edm-hs-mascot { font-size: 44px; }
.edm-hs-bell { position: relative; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.edm-hs-bell .edu-badge { position: absolute; top: -2px; right: -2px; }
.edw-hs-cols { align-items: start; }
.edw-hs-col > .edu-section:first-child { margin-top: 0; }
.edw-hs-gami, .edm-hs-gami { margin-bottom: 0; }
.edw-hs-clear, .edm-hs-clear { color: var(--text-3); font-size: var(--fs-sm); display: flex; align-items: center; gap: 10px; }
.edm-hs-clear-ico { font-size: 22px; }
.is-kid .edm-hs-clear { font-size: var(--fs); }
.edw-hs-time, .edm-hs-time { flex-direction: column; line-height: 1.1; width: 48px; flex-basis: 48px; }
.edw-hs-time b, .edm-hs-time b { font-size: var(--fs-sm); }
.edw-hs-time small, .edm-hs-time small { font-size: 10px; opacity: .8; }
.edm-hs-todo.is-late .edu-row-ico { background: var(--danger-soft); color: var(--danger); }
.edm-hs-todo.is-open .edu-row-ico { background: var(--ok-soft); color: var(--ok); }
.edm-hs-shortcuts { margin-top: 20px; }
.edm-hs-shortcut { display: flex; flex-direction: column; align-items: center; gap: 8px; font: inherit; font-weight: 700; color: var(--primary); cursor: pointer; margin: 0; }
.is-kid .edm-hs-shortcut { font-size: var(--fs-md); padding: 20px 16px; }

/* ---------- nhận xét / sao ---------- */
.edw-hs-review, .edm-hs-review { cursor: pointer; }
.edw-hs-review + .edw-hs-review, .edm-hs-review + .edm-hs-review { margin-top: 10px; }
.edw-hs-review-head, .edm-hs-review-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.edw-hs-review-stars, .edm-hs-review-stars { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.edw-hs-review-text, .edm-hs-review-text { font-style: italic; color: var(--text-1); line-height: 1.55; margin-top: 6px; }
.edu-gami-star { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); font-size: var(--fs-xs); font-weight: 700; }
.edu-gami-star img { width: 22px; height: 22px; border-radius: 50%; object-fit: contain; background: #fff; }
.edu-gami-stars-wrap { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.edu-gami-star-lg { padding: 8px 12px 8px 8px; border-radius: var(--r); font-size: var(--fs-sm); align-items: center; }
.edu-gami-star-lg img, .edu-gami-star-emoji { width: 36px; height: 36px; font-size: 26px; display: inline-flex; align-items: center; justify-content: center; }
.edu-gami-star-text { display: flex; flex-direction: column; min-width: 0; }
.edu-gami-star-text small { color: var(--text-2); font-weight: 500; font-size: var(--fs-xs); }
.edw-hs-danhgia, .edm-hs-danhgia { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.edw-hs-danhgia-row, .edm-hs-danhgia-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: var(--fs-sm); padding: 6px 10px; border-radius: var(--r-sm); background: var(--surface-2); }
.edw-hs-danhgia-ten, .edm-hs-danhgia-ten { font-weight: 600; }
.edw-hs-star-total, .edm-hs-star-total { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; background: linear-gradient(135deg, rgba(252, 218, 12, .22), var(--surface)); }
.edw-hs-star-big, .edm-hs-star-big { font-size: 48px; line-height: 1; }
.edw-hs-score, .edm-hs-score { font-weight: 800; font-size: var(--fs-md); color: var(--primary); }
.edw-hs-score.is-good, .edm-hs-score.is-good { color: var(--ok); } .edw-hs-score.is-mid, .edm-hs-score.is-mid { color: var(--warn); } .edw-hs-score.is-low, .edm-hs-score.is-low { color: var(--danger); }
.edw-hs-note, .edm-hs-note { white-space: normal; font-style: italic; }

/* ---------- gamification ---------- */
.edu-gami-top { display: flex; align-items: center; gap: 14px; }
.edu-gami-streak { flex: 1 1 auto; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r); background: var(--surface-3); }
.edu-gami-streak.is-on { background: linear-gradient(135deg, rgba(230, 126, 34, .16), rgba(252, 218, 12, .16)); }
.edu-gami-streak.is-today .edu-gami-fire { animation: eduFlame 1.4s ease-in-out infinite; }
@keyframes eduFlame { 0%, 100% { transform: scale(1) rotate(-3deg); } 50% { transform: scale(1.12) rotate(3deg); } }
.edu-gami-fire { font-size: 30px; line-height: 1; filter: grayscale(1); opacity: .5; }
.edu-gami-streak.is-on .edu-gami-fire { filter: none; opacity: 1; }
.edu-gami-streak-text { display: flex; flex-direction: column; line-height: 1.15; }
.edu-gami-streak-num { font-size: var(--fs-xl); font-weight: 800; color: var(--accent-orange); }
.edu-gami-streak-label { font-size: var(--fs-xs); font-weight: 600; color: var(--text-2); }
.edu-gami-streak-best { font-size: 10px; color: var(--text-3); margin-top: 2px; }
.edu-gami-level { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.edu-gami-level-text { display: flex; flex-direction: column; line-height: 1.2; }
.edu-gami-xp { font-weight: 800; font-size: var(--fs-md); color: var(--primary); }
.edu-gami-need { font-size: var(--fs-xs); color: var(--text-3); }
.edu-gami-tasks { margin-top: 14px; }
.edu-gami-tasks-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.edu-gami-tasks-title { font-weight: 700; font-size: var(--fs-sm); }
.edu-gami-tasks-count { font-size: var(--fs-xs); font-weight: 800; color: var(--text-3); background: var(--surface-3); padding: 2px 8px; border-radius: 999px; }
.edu-gami-tasks-count.is-done { background: var(--ok-soft); color: var(--ok); }
.edu-gami-progress { margin-bottom: 8px; }
.edu-gami-progress .edu-progress-bar { background: linear-gradient(90deg, var(--primary), var(--teal)); }
.edu-gami-task { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: var(--r-sm); transition: background .15s; }
.edu-gami-task.is-claim { cursor: pointer; background: var(--primary-soft); }
.edu-gami-task.is-claim:active { background: var(--primary-soft2); }
.edu-gami-task.is-done { opacity: .72; }
.edu-gami-task-check { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--border-strong); display: inline-flex; align-items: center; justify-content: center; color: var(--text-3); flex: 0 0 auto; }
.edu-gami-task.is-done .edu-gami-task-check { background: var(--ok); border-color: var(--ok); color: #fff; }
.edu-gami-task.is-claim .edu-gami-task-check { border-color: var(--primary); color: var(--primary); }
.edu-gami-task-label { flex: 1 1 auto; font-size: var(--fs-sm); font-weight: 600; }
.edu-gami-task.is-done .edu-gami-task-label { text-decoration: line-through; color: var(--text-3); }
.edu-gami-task-xp { font-size: var(--fs-xs); font-weight: 800; color: var(--accent-orange); white-space: nowrap; }
.edu-gami-task-xp.is-done { color: var(--ok); }
.edu-gami-alldone { margin-top: 8px; padding: 10px; border-radius: var(--r-sm); background: var(--ok-soft); color: var(--ok); font-weight: 700; font-size: var(--fs-sm); text-align: center; }
.is-kid .edu-gami-task-label { font-size: var(--fs); }
.is-kid .edu-gami-streak-num { font-size: var(--fs-xxl); }
.is-adult .edu-gami-fire { font-size: 22px; }

/* huy hiệu */
.edu-gami-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.edu-gami-badges-mini { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
.edu-gami-badge { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 10px 6px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--border); position: relative; min-width: 0; }
.edu-gami-badge:not(.is-earned) { opacity: .55; filter: grayscale(1); }
.edu-gami-badge.is-earned { background: linear-gradient(180deg, rgba(252, 218, 12, .22), var(--surface)); border-color: rgba(230, 126, 34, .35); }
.edu-gami-badge.is-new::after { content: 'Mới'; position: absolute; top: -6px; right: -4px; background: var(--danger); color: #fff; font-size: 9px; font-weight: 800; border-radius: 999px; padding: 1px 6px; }
.edu-gami-badge-ico { width: 48px; height: 48px; border-radius: 50%; background: var(--surface); color: var(--accent-orange); display: flex; align-items: center; justify-content: center; box-shadow: var(--sh-1); }
.edu-gami-badge.is-earned .edu-gami-badge-ico { background: var(--accent-yellow); color: var(--accent-yellow-ink); box-shadow: 0 6px 14px rgba(252, 218, 12, .35); }
.edu-gami-badge-name { font-size: var(--fs-xs); font-weight: 700; line-height: 1.2; }
.edu-gami-badge-sub { font-size: 10px; color: var(--text-3); line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.edu-gami-badge-sheet { text-align: center; padding-bottom: 4px; }
.edu-gami-badge-sheet-title { font-size: var(--fs-xl); font-weight: 800; margin-bottom: 14px; }
.edu-gami-badge-sheet.is-kid .edu-gami-badge-sheet-title { font-size: var(--fs-xxl); }
.edu-gami-badge-big { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px; margin-bottom: 14px; border-radius: var(--r-lg); background: linear-gradient(180deg, rgba(252, 218, 12, .25), var(--surface)); }
.edu-gami-badge-big .edu-gami-badge-ico { width: 84px; height: 84px; background: var(--accent-yellow); color: var(--accent-yellow-ink); box-shadow: 0 10px 24px rgba(252, 218, 12, .45); }
.edu-gami-badge-big .edu-gami-badge-name { font-size: var(--fs-md); }
.edu-gami-badge-descr { font-size: var(--fs-sm); color: var(--text-2); }
.edu-gami-badge-xp { font-weight: 800; color: var(--accent-orange); }
.edu-gami-sheet .edu-sheet { max-width: 420px; }
.edu-gami-pop { animation: eduPop .45s var(--ease); }

/* biểu đồ tiến bộ */
.edu-gami-chart { position: relative; }
.edu-gami-chart-svg { width: 100%; height: 150px; display: block; font-family: var(--font); }
.edu-gami-chart-grid line { stroke: var(--border); stroke-dasharray: 3 3; }
.edu-gami-chart-grid text { fill: var(--text-3); font-size: 9px; }
.edu-gami-chart-area { fill: var(--primary-soft); stroke: none; }
.edu-gami-chart-line { fill: none; stroke: var(--primary); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.edu-gami-chart-pt circle { fill: var(--surface); stroke: var(--primary); stroke-width: 2.5; cursor: pointer; }
.edu-gami-chart-pt text { fill: var(--text-1); font-size: 10px; font-weight: 700; }
.edu-gami-chart-pt .edu-gami-chart-x { fill: var(--text-3); font-size: 8.5px; font-weight: 500; }
.edu-gami-chart-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--text-3); font-size: var(--fs-sm); }
.edu-gami-chart-note { margin-top: 8px; font-size: var(--fs-sm); color: var(--text-2); font-weight: 600; text-align: center; }

/* ---------- kết quả ---------- */
.edm-hs-tabs { padding-bottom: 8px; }
.edm-hs-kpis { margin-bottom: 4px; }
.edm-hs-subject { overflow: hidden; }
.edm-hs-subject-head { cursor: pointer; }
.edm-hs-subject .edu-list { border-top: 1px solid var(--border); background: var(--surface-2); }
.edm-hs-subject .edu-list .edu-row { padding-left: 20px; flex-wrap: wrap; }
.edm-hs-subject .edu-list .edu-row > .edu-btn { margin: 6px 0 0 auto; }
.edm-hs-lb-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.edm-hs-lb-tools .edu-seg { flex: 1 1 200px; }
.edm-hs-anon, .edw-toolbar .edu-switch { width: auto; height: auto; background: transparent; display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-xs); color: var(--text-2); }
.edm-hs-anon::after, .edw-toolbar .edu-switch::after { display: none; }
.edm-hs-anon input, .edw-toolbar .edu-switch input { width: 18px; height: 18px; accent-color: var(--primary); }
.edm-hs-anon em, .edw-toolbar .edu-switch em { font-style: normal; font-weight: 600; }
.edm-hs-lb-me, .edw-hs-lb-me { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; background: var(--primary-soft); border-color: var(--primary-line); }
.edm-hs-lb-rank, .edw-hs-lb-rank { font-size: var(--fs-xl); font-weight: 800; color: var(--primary); }
.edm-hs-lb-pos { font-weight: 800; font-size: var(--fs-md); background: var(--surface-3); color: var(--text-2); }
.edm-hs-lb .edu-row.is-top .edm-hs-lb-pos { background: var(--accent-yellow); color: var(--accent-yellow-ink); font-size: 20px; }
.edm-hs-lb .edu-row.is-me, .edw-table tr.is-me td { background: var(--primary-soft); }

/* ---------- lịch học ---------- */
.edw-hs-cal-nav { display: flex; align-items: center; gap: 6px; }
.edw-hs-cal-nav .edu-btn { margin: 0; }
.edw-hs-cal-title { font-weight: 800; font-size: var(--fs-lg); min-width: 180px; text-align: center; text-transform: capitalize; }
/* 7 cột bằng nhau: minmax(0, 1fr) — 1fr (= minmax(auto, 1fr)) để chữ dài trong ô đẩy cột giãn, lưới lệch */
.edw-hs-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); overflow: hidden; }
.edw-hs-week-col { min-width: 0; border-right: 1px solid var(--border); min-height: 260px; display: flex; flex-direction: column; }
.edw-hs-week-col:last-child { border-right: 0; }
.edw-hs-week-col.is-today { background: var(--primary-soft); }
.edw-hs-week-head { display: flex; flex-direction: column; align-items: center; padding: 10px 4px 8px; border-bottom: 1px solid var(--border); gap: 2px; }
.edw-hs-week-dow { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--text-3); }
.edw-hs-week-num { font-size: var(--fs-lg); font-weight: 800; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.edw-hs-week-col.is-today .edw-hs-week-num { background: var(--primary); color: #fff; }
.edw-hs-week-body { padding: 8px 6px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.edw-hs-week-empty { color: var(--text-3); text-align: center; font-size: var(--fs-sm); padding-top: 12px; }
.edw-hs-ev { padding: 8px; border-radius: var(--r-sm); background: var(--info-soft); border-left: 3px solid var(--info); cursor: pointer; font-size: var(--fs-xs); display: flex; flex-direction: column; gap: 2px; }
.edw-hs-ev.is-present { background: var(--ok-soft); border-left-color: var(--ok); }
.edw-hs-ev.is-absent { background: var(--danger-soft); border-left-color: var(--danger); }
.edw-hs-ev.is-past:not(.is-present):not(.is-absent) { opacity: .7; }
.edw-hs-ev-time { font-weight: 800; color: var(--text-2); }
.edw-hs-ev-title { font-weight: 700; color: var(--text-1); font-size: var(--fs-sm); line-height: 1.25; }
.edw-hs-ev-sub { color: var(--text-3); display: flex; align-items: center; gap: 4px; }
.edw-hs-ev .edu-chip { align-self: flex-start; margin-top: 4px; }
.edw-hs-ev-title { overflow-wrap: anywhere; }
.edw-hs-ev-sm { flex-direction: row; gap: 4px; padding: 3px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; min-width: 0; }
.edw-hs-ev-more { font-size: 10px; color: var(--text-3); padding-left: 4px; }
.edw-hs-month { overflow: hidden; }
.edw-hs-month-head { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--surface-2); border-bottom: 1px solid var(--border); }
.edw-hs-month-head span { padding: 8px; text-align: center; font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--text-3); }
.edw-hs-month-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--border); }
.edw-hs-month-row:last-child { border-bottom: 0; }
.edw-hs-month-cell { min-width: 0; min-height: 92px; padding: 6px; border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 3px; }
.edw-hs-month-cell:last-child { border-right: 0; }
.edw-hs-month-cell.is-out { background: var(--surface-2); opacity: .6; }
.edw-hs-month-cell.is-today .edw-hs-month-num { background: var(--primary); color: #fff; }
.edw-hs-month-num { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-size: var(--fs-sm); font-weight: 700; margin-bottom: 2px; }
.edw-hs-sum { margin-top: 16px; }
.edm-hs-week { padding: 4px 0 8px; }
.edm-hs-week-nav { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.edm-hs-week-nav .edu-btn { margin: 0; }
.edm-hs-week-title { flex: 1; border: 0; background: transparent; font: inherit; font-weight: 800; color: var(--text-1); text-transform: capitalize; }
.edm-hs-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 4px; }
.edm-hs-day { border: 0; background: transparent; border-radius: var(--r); padding: 6px 0 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--text-2); font: inherit; }
.edm-hs-day-dow { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--text-3); }
.edm-hs-day-num { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: var(--fs-md); }
.edm-hs-day.is-today .edm-hs-day-num { color: var(--primary); box-shadow: inset 0 0 0 2px var(--primary-line); }
.edm-hs-day.is-on .edm-hs-day-num { background: var(--primary); color: #fff; box-shadow: var(--sh-primary); }
.edm-hs-day-dots { display: flex; gap: 2px; height: 6px; }
.edm-hs-day-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--primary); }
.edm-hs-day-dots i.is-present { background: var(--ok); } .edm-hs-day-dots i.is-absent { background: var(--danger); }
.edm-hs-buoi.is-past { opacity: .8; }
.edm-hs-buoi.is-today .edu-row-title { color: var(--primary); }
.is-kid .edm-hs-day-num { width: 36px; height: 36px; }

/* ---------- buổi học ---------- */
.edw-hs-session-head, .edm-hs-session-head { display: flex; flex-direction: column; gap: 8px; }
.edw-hs-session-lop, .edm-hs-session-lop { font-weight: 800; font-size: var(--fs-lg); }
.edw-hs-session-meta, .edm-hs-session-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: var(--fs-sm); color: var(--text-2); }
.edw-hs-session-meta > div, .edm-hs-session-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.edw-hs-session-head .edu-chip, .edm-hs-session-dd .edu-chip { align-self: flex-start; }
.edw-hs-photos, .edm-hs-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.edw-hs-photos img, .edm-hs-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-sm); cursor: zoom-in; }

/* ---------- bài học ---------- */
.edw-hs-search, .edm-hs-search { position: relative; margin-bottom: 0; flex: 1 1 auto; }
.edw-hs-search edu-icon, .edm-hs-search edu-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.edw-hs-search .edu-input, .edm-hs-search .edu-input { padding-left: 40px; width: 100%; min-width: 0; }
.edm-hs-search { margin: 4px 0 12px; display: flex; align-items: center; gap: 6px; }
.edm-hs-search .edu-btn { margin: 0; flex: 0 0 auto; }
.edw-hs-courses, .edm-hs-courses { gap: 14px; }
.edw-hs-course, .edm-hs-course { overflow: hidden; cursor: pointer; margin: 0; font: inherit; color: var(--text-1); text-align: left; padding: 0; display: flex; flex-direction: column; }
.edw-hs-course:hover { box-shadow: var(--sh-2); }
.edw-hs-course-img, .edm-hs-course-img { height: 130px; background: var(--primary-soft) center / cover no-repeat; display: flex; align-items: center; justify-content: center; color: var(--primary); }
.edm-hs-course-img { height: 96px; }
.edw-hs-course-name, .edm-hs-course-name { font-weight: 800; line-height: 1.3; }
.edm-hs-course-body { padding: 10px 12px 12px; }
.edm-hs-course-sub { font-size: var(--fs-xs); color: var(--text-3); margin-top: 2px; }
.is-kid .edm-hs-course-name { font-size: var(--fs-md); }
.edw-hs-lesson-title { margin: 0 0 0 10px; font-size: var(--fs-xl); font-weight: 800; }
.edw-hs-lesson-banner, .edm-hs-lesson-hero { height: 160px; background: var(--primary-soft) center / cover no-repeat; margin-bottom: 12px; }
.edw-hs-lesson-list .edu-row { cursor: pointer; }
.edw-hs-lesson-list .edu-row.is-active { background: var(--primary-soft); }
.edw-hs-lesson-list .edu-row.is-active .edu-row-title { color: var(--primary); }
.edw-hs-lesson-no, .edm-hs-lesson-no { font-weight: 800; overflow: hidden; }
.edw-hs-lesson-no img, .edm-hs-lesson-no img { width: 100%; height: 100%; object-fit: cover; }
.edw-hs-viewer { overflow: hidden; }
.edw-hs-viewer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.edw-hs-viewer-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.edw-hs-viewer-actions .edu-btn { margin: 0; }
.edw-hs-iframe { display: block; width: 100%; height: 560px; border: 0; background: #000; }

/* ---------- chế độ Nhí (toàn cục) ---------- */
[data-ui="1"] .edu-section-title { font-size: var(--fs); text-transform: none; letter-spacing: 0; color: var(--text-2); }
[data-ui="1"] .edu-row-title { font-size: var(--fs-md); }
[data-ui="1"] .edu-chip { font-size: var(--fs-sm); padding: 4px 12px; }

@media (max-width: 1024px) { .edw-hs-week-col { min-height: 200px; } .edw-hs-iframe { height: 420px; } }
@media (max-width: 767px) {
  .edw-hs-week { grid-template-columns: 1fr; }
  .edw-hs-week-col { border-right: 0; border-bottom: 1px solid var(--border); min-height: 0; }
  .edw-hs-week-head { flex-direction: row; justify-content: flex-start; gap: 8px; }
  .edw-hs-month-cell { min-height: 60px; }
  .edw-hs-ev-sm { display: none; }
  .edw-hs-month-cell .edw-hs-ev-more { display: none; }
  .edw-hs-iframe { height: 300px; }
  .edw-hs-hero { flex-direction: row; }
}

/* ===== Kết quả học tập (web) — làm lại 24/10: tổng quan (vòng điểm TB + ô số) · biểu đồ · thẻ môn, mỗi bài 1 dòng ===== */
.edw-hsr-head { align-items: flex-end; }
.edw-hsr-tabs { flex: 0 0 auto; }
.edw-hsr-tabs .edu-seg-item { padding: 0 14px; }
.edw-hsr-overview { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.edw-hsr-avg { display: flex; align-items: center; gap: 18px; padding: 18px 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--sh-1); position: relative; overflow: hidden; }
.edw-hsr-avg::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 5px; background: linear-gradient(180deg, var(--primary), var(--navy)); }
.edw-hsr-ring { position: relative; width: 104px; height: 104px; flex: 0 0 auto; }
.edw-hsr-ring .edu-ring-label { display: none; }
.edw-hsr-ring.is-good .edu-ring-fg { stroke: var(--ok); } .edw-hsr-ring.is-mid .edu-ring-fg { stroke: var(--accent-orange); } .edw-hsr-ring.is-low .edu-ring-fg { stroke: var(--danger); }
.edw-hsr-ring-v { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.edw-hsr-ring-v b { font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--text-1); }
.edw-hsr-ring-v small { font-size: var(--fs-sm); font-weight: 700; color: var(--text-3); margin: 8px 0 0 2px; }
.edw-hsr-ring.is-good .edw-hsr-ring-v b { color: var(--ok); } .edw-hsr-ring.is-mid .edw-hsr-ring-v b { color: var(--accent-orange); } .edw-hsr-ring.is-low .edw-hsr-ring-v b { color: var(--danger); }
.edw-hsr-avg-l { font-weight: 800; font-size: var(--fs-md); color: var(--text-1); }
.edw-hsr-avg-s { font-size: var(--fs-sm); color: var(--text-3); margin-top: 2px; }
.edw-hsr-avg-note { margin-top: 8px; font-size: var(--fs-sm); font-weight: 600; color: var(--primary); }
.edw-hsr-tile { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 16px 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--sh-1); }
.edw-hsr-tile-ico { width: 36px; height: 36px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: var(--primary-soft); color: var(--primary); margin-bottom: 6px; }
.edw-hsr-tile.is-ok .edw-hsr-tile-ico { background: var(--ok-soft); color: var(--ok); }
.edw-hsr-tile.is-warn .edw-hsr-tile-ico { background: var(--warn-soft); color: var(--warn); }
.edw-hsr-tile b { font-size: var(--fs-xl); font-weight: 800; line-height: 1.1; color: var(--text-1); }
.edw-hsr-tile > span:last-child { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--text-3); }
.edw-hsr-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 18px; align-items: start; }
.edw-hsr-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sh-1); padding: 16px 18px; }
.edw-hsr-subjects .edw-hsr-card + .edw-hsr-card { margin-top: 14px; }
.edw-hsr-card-t { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.edw-hsr-card-t > span:last-child:not(.edw-hsr-tb) { text-transform: none; letter-spacing: 0; font-weight: 500; }
.edw-hsr-mon { font-size: var(--fs-md); font-weight: 800; color: var(--text-1); text-transform: none; letter-spacing: 0; display: flex; align-items: baseline; gap: 8px; }
.edw-hsr-mon em { font-style: normal; font-size: var(--fs-xs); font-weight: 600; color: var(--text-3); }
.edw-hsr-tb { text-transform: none; letter-spacing: 0; font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); background: var(--surface-3); border-radius: 999px; padding: 4px 12px; }
.edw-hsr-tb b { font-size: var(--fs); font-weight: 800; color: var(--text-1); }
.edw-hsr-tb.is-good b { color: var(--ok); } .edw-hsr-tb.is-mid b { color: var(--accent-orange); } .edw-hsr-tb.is-low b { color: var(--danger); }
.edw-hsr-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--border); }
.edw-hsr-score { flex: 0 0 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--surface-3); color: var(--text-3); }
.edw-hsr-score b { font-size: var(--fs-lg); font-weight: 800; }
.edw-hsr-score.is-good { background: var(--ok-soft); color: var(--ok); } .edw-hsr-score.is-mid { background: var(--warn-soft); color: var(--accent-orange); } .edw-hsr-score.is-low { background: var(--danger-soft); color: var(--danger); }
.edw-hsr-main { flex: 1 1 auto; min-width: 0; }
.edw-hsr-name { font-weight: 700; color: var(--text-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.edw-hsr-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: var(--fs-xs); color: var(--text-3); margin-top: 3px; }
.edw-hsr-cot { font-weight: 700; color: var(--primary); background: var(--primary-soft); border-radius: 6px; padding: 0 6px; }
.edw-hsr-note { display: flex; align-items: flex-start; gap: 5px; margin-top: 5px; font-size: var(--fs-sm); font-style: italic; color: var(--text-2); }
.edw-hsr-act { flex: 0 0 auto; margin: 0; }
.edw-hsr-empty { padding: 4px; }
.edw-hs-results .edu-gami-chart-svg { height: auto; }
@media (max-width: 1100px) {
  .edw-hsr-overview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .edw-hsr-avg { grid-column: 1 / -1; }
  .edw-hsr-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .edw-hsr-overview { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .edw-hsr-tile { padding: 12px; }
  .edw-hsr-tabs { width: 100%; overflow-x: auto; }
}

/* ===== Kết quả học tập — bảng điểm v2 (24/10 tối): hàng KPI 4 ô bằng nhau + sổ điểm dạng bảng native (nhóm theo môn) ===== */
.edw-hsr-tabs .edu-seg-item.is-on { background: var(--primary); color: #fff; box-shadow: var(--sh-primary); }
.edw-hsr-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 14px; margin-bottom: 18px; align-items: stretch; }
.edw-hsr-kpi { display: flex; align-items: center; gap: 14px; min-height: 96px; padding: 16px 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--sh-1); position: relative; overflow: hidden; }
.edw-hsr-kpi::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--primary); opacity: .85; }
.edw-hsr-kpi.is-ok::after { background: var(--ok); } .edw-hsr-kpi.is-warn::after { background: var(--accent-orange); }
.edw-hsr-kpi.is-main.is-good::after { background: var(--ok); } .edw-hsr-kpi.is-main.is-mid::after { background: var(--accent-orange); } .edw-hsr-kpi.is-main.is-low::after { background: var(--danger); }
.edw-hsr-kpi-ico { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--primary-soft); color: var(--primary); }
.edw-hsr-kpi.is-ok .edw-hsr-kpi-ico { background: var(--ok-soft); color: var(--ok); }
.edw-hsr-kpi.is-warn .edw-hsr-kpi-ico { background: var(--warn-soft); color: var(--accent-orange); }
.edw-hsr-kpi-txt { display: flex; flex-direction: column; min-width: 0; }
.edw-hsr-kpi-txt b { font-weight: 800; color: var(--text-1); }
.edw-hsr-kpi-txt small { font-size: var(--fs-xs); color: var(--text-3); font-weight: 600; margin-top: 2px; }
.edw-hsr-kpi-v { font-size: var(--fs-xxl); line-height: 1.05; letter-spacing: -.02em; }
.edw-hsr-kpi-v i { font-style: normal; font-size: var(--fs-md); color: var(--text-3); font-weight: 700; margin-left: 2px; }
.edw-hsr-kpi-ring { position: relative; flex: 0 0 64px; width: 64px; height: 64px; }
.edw-hsr-kpi-ring .edu-ring-label { display: none; }
.edw-hsr-kpi-ring > span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: var(--fs-lg); font-weight: 800; color: var(--text-1); }
.edw-hsr-kpi.is-good .edu-ring-fg { stroke: var(--ok); } .edw-hsr-kpi.is-mid .edu-ring-fg { stroke: var(--accent-orange); } .edw-hsr-kpi.is-low .edu-ring-fg { stroke: var(--danger); }
.edw-hsr-kpi.is-good .edw-hsr-kpi-ring > span { color: var(--ok); } .edw-hsr-kpi.is-mid .edw-hsr-kpi-ring > span { color: var(--accent-orange); } .edw-hsr-kpi.is-low .edw-hsr-kpi-ring > span { color: var(--danger); }
.edw-hsr-kpi.is-main .edw-hsr-kpi-txt b { font-size: var(--fs-md); }
/* sổ điểm */
.edw-gb { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sh-1); overflow: hidden; margin-bottom: 18px; }
.edw-gb-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.edw-gb-head b { font-size: var(--fs-md); font-weight: 800; display: block; }
.edw-gb-head > div:first-child span { font-size: var(--fs-xs); color: var(--text-3); }
.edw-gb-legend { display: flex; gap: 12px; font-size: var(--fs-xs); color: var(--text-3); font-weight: 600; }
.edw-gb-legend span { display: inline-flex; align-items: center; gap: 5px; }
.edw-gb-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.edw-gb-legend i.is-good { background: var(--ok); } .edw-gb-legend i.is-mid { background: var(--accent-orange); } .edw-gb-legend i.is-low { background: var(--danger); }
.edw-gb-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--fs-sm); }
.edw-gb-table thead th { position: sticky; top: 64px; z-index: 2; background: var(--surface-2); text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); padding: 10px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.edw-gb-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--text-2); }
.edw-gb-table tbody:last-child tr:last-child td { border-bottom: 0; }
.edw-gb-table tbody tr:not(.edw-gb-group):hover td { background: var(--surface-2); }
.edw-gb-group td { background: var(--primary-soft); border-bottom: 1px solid var(--primary-line); padding: 9px 14px; }
.edw-gb-mon { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; color: var(--primary); font-size: var(--fs-sm); }
.edw-gb-count { margin-left: 10px; font-size: var(--fs-xs); color: var(--text-3); font-weight: 600; }
.edw-gb-avg { float: right; font-size: var(--fs-xs); font-weight: 700; color: var(--text-2); background: var(--surface); border-radius: 999px; padding: 3px 12px; }
.edw-gb-avg b { font-size: var(--fs-sm); font-weight: 800; color: var(--text-1); }
.edw-gb-avg.is-good b { color: var(--ok); } .edw-gb-avg.is-mid b { color: var(--accent-orange); } .edw-gb-avg.is-low b { color: var(--danger); }
.edw-gb-table .is-no { width: 44px; text-align: center; color: var(--text-3); font-variant-numeric: tabular-nums; }
.edw-gb-table .is-cot { width: 100px; }
.edw-gb-table .is-date { width: 110px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.edw-gb-table .is-raw { width: 100px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.edw-gb-table .is-s10 { width: 96px; text-align: center; }
.edw-gb-table th.is-s10 { text-align: center; }
.edw-gb-table .is-st { width: 120px; }
.edw-gb-table .is-act { width: 96px; text-align: right; }
.edw-gb-table .is-act .edu-btn { margin: 0; }
.edw-gb-name { font-weight: 700; color: var(--text-1); }
.edw-gb-note { display: flex; align-items: flex-start; gap: 5px; margin-top: 3px; font-size: var(--fs-xs); font-style: italic; color: var(--text-3); }
.edw-gb-cot { display: inline-block; font-size: var(--fs-xs); font-weight: 700; color: var(--primary); background: var(--primary-soft); border-radius: 6px; padding: 2px 8px; }
.edw-gb-dash { color: var(--text-3); }
.edw-gb-score { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 32px; padding: 0 8px; border-radius: 10px; font-weight: 800; font-size: var(--fs-md); background: var(--surface-3); color: var(--text-3); font-variant-numeric: tabular-nums; }
.edw-gb-score.is-good { background: var(--ok-soft); color: var(--ok); } .edw-gb-score.is-mid { background: var(--warn-soft); color: var(--accent-orange); } .edw-gb-score.is-low { background: var(--danger-soft); color: var(--danger); }
.edw-gb-table tr.is-pending .edw-gb-name { color: var(--text-2); }
.edw-hsr-chart { margin-bottom: 18px; }
.edw-hsr-chart .edu-gami-chart { max-width: 600px; margin: 0 auto; }
@media (max-width: 1100px) { .edw-hsr-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .edw-gb-table .is-raw, .edw-gb-table .is-no { display: none; } }
@media (max-width: 767px) { .edw-gb-table .is-cot, .edw-gb-table .is-date { display: none; } .edw-gb-table td, .edw-gb-table th { padding: 10px; } }
/* ===== Buổi đã học (hs/schedule/history*.html, 24/10): KPI dùng lại .edw-hsr-kpis · thẻ danh sách theo tháng · ô ngày tô theo điểm danh ===== */
.edw-hs-cal-right { display: flex; align-items: center; gap: 10px; }
.edw-hs-cal-right .edu-btn { margin: 0; }
.edw-hsh-head { align-items: flex-end; }
.edw-hsh-head .edu-btn { margin: 0; }
.edw-hsr-kpi.is-danger::after { background: var(--danger); }
.edw-hsr-kpi.is-danger .edw-hsr-kpi-ico { background: var(--danger-soft); color: var(--danger); }
.edw-hsh-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sh-1); overflow: hidden; margin-bottom: 18px; }
.edw-hsh-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.edw-hsh-seg { flex: 0 1 auto; }
.edw-hsh-seg .edu-seg-item { flex: 0 0 auto; padding: 0 14px; }
.edw-hsh-seg .edu-seg-item.is-on { background: var(--primary); color: #fff; box-shadow: var(--sh-primary); }
.edw-hsh-seg-n { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; font-size: 11px; font-weight: 800; background: var(--surface); color: var(--text-2); }
.edw-hsh-seg .edu-seg-item.is-on .edw-hsh-seg-n { background: rgba(255, 255, 255, .22); color: #fff; }
.edw-hsh-lop { width: auto; min-width: 200px; max-width: 280px; margin: 0; }
.edw-hsh-month { display: flex; align-items: center; gap: 8px; padding: 9px 16px; background: var(--primary-soft); border-bottom: 1px solid var(--primary-line); color: var(--primary); font-size: var(--fs-sm); }
.edw-hsh-month b { font-weight: 800; }
.edw-hsh-month span { margin-left: auto; font-size: var(--fs-xs); font-weight: 700; color: var(--text-3); }
.edw-hsh-row { display: flex; align-items: flex-start; gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background .15s var(--ease); outline: none; }
.edw-hsh-row:hover, .edw-hsh-row:focus-visible { background: var(--surface-2); }
.edw-hsh-group:last-of-type .edw-hsh-row:last-child { border-bottom: 0; }
/* ô ngày: viền trái + nền theo điểm danh */
.edw-hsh-date { flex: 0 0 64px; width: 64px; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px 4px; border-radius: 14px; background: var(--surface-3); color: var(--text-2); line-height: 1.1; border-left: 4px solid var(--border); }
.edw-hsh-date b { font-size: 24px; font-weight: 800; color: var(--text-1); margin: 2px 0; font-variant-numeric: tabular-nums; }
.edw-hsh-date small { font-size: 11px; font-weight: 700; color: var(--text-3); }
.is-ok > .edw-hsh-date, .edw-hsh-date.is-ok { background: var(--ok-soft); border-left-color: var(--ok); }
.is-warn > .edw-hsh-date, .edw-hsh-date.is-warn { background: var(--warn-soft); border-left-color: var(--accent-orange); }
.is-info > .edw-hsh-date, .edw-hsh-date.is-info { background: var(--info-soft); border-left-color: var(--info); }
.is-danger > .edw-hsh-date, .edw-hsh-date.is-danger { background: var(--danger-soft); border-left-color: var(--danger); }
.edw-hsh-date.is-sm { flex-basis: 48px; width: 48px; padding: 6px 2px; border-radius: 12px; border-left-width: 3px; }
.edw-hsh-date.is-sm b { font-size: 19px; }
.edw-hsh-main { flex: 1 1 auto; min-width: 0; }
.edw-hsh-title { font-weight: 800; font-size: var(--fs-md); color: var(--text-1); line-height: 1.3; }
.edw-hsh-today { display: inline-block; margin-left: 8px; vertical-align: 2px; font-size: 11px; font-weight: 800; color: #fff; background: var(--primary); border-radius: 999px; padding: 2px 8px; }
.edw-hsh-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 3px; font-size: var(--fs-xs); color: var(--text-3); font-weight: 600; }
.edw-hsh-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.edw-hsh-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.edw-hsh-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; line-height: 1; padding: 5px 10px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); border: 1px solid transparent; white-space: nowrap; }
.edw-hsh-chip.is-dd.is-ok { background: var(--ok-soft); color: var(--ok); border-color: var(--ok); }
.edw-hsh-chip.is-dd.is-warn { background: var(--warn-soft); color: var(--accent-orange); border-color: var(--accent-orange); }
.edw-hsh-chip.is-dd.is-info { background: var(--info-soft); color: var(--info); border-color: var(--info); }
.edw-hsh-chip.is-dd.is-danger { background: var(--danger-soft); color: var(--danger); border-color: var(--danger); }
.edw-hsh-chip.is-dd.is-none { background: var(--surface); color: var(--text-3); border: 1px dashed var(--border); }
.edw-hsh-chip.is-nd { background: var(--primary-soft); color: var(--primary); }
.edw-hsh-chip.is-hl { background: var(--info-soft); color: var(--info); }
.edw-hsh-chip.is-bai { background: var(--warn-soft); color: var(--accent-orange); }
.edw-hsh-chip.is-bai.is-full { background: var(--ok-soft); color: var(--ok); }
.edw-hsh-chip.is-diem.is-good { background: var(--ok); color: #fff; } .edw-hsh-chip.is-diem.is-mid { background: var(--accent-orange); color: #fff; } .edw-hsh-chip.is-diem.is-low { background: var(--danger); color: #fff; }
.edw-hsh-chip.is-sao { background: #fff6d6; color: #a86b00; }
.edw-hsh-chips.is-sm { margin-top: 6px; gap: 5px; }
.edw-hsh-chips.is-sm .edw-hsh-chip { font-size: 11px; padding: 4px 8px; }
.edw-hsh-nx { display: flex; align-items: flex-start; gap: 7px; margin-top: 10px; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); border-left: 3px solid var(--primary-line); font-size: var(--fs-sm); color: var(--text-2); font-style: italic; }
.edw-hsh-nx edu-icon { flex: 0 0 auto; margin-top: 2px; color: var(--primary); }
.edw-hsh-nx.is-sm { margin-top: 6px; padding: 6px 10px; font-size: var(--fs-xs); }
.edw-hsh-nx.is-sm span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.edw-hsh-go { flex: 0 0 auto; align-self: center; display: inline-flex; align-items: center; gap: 4px; padding: 8px 10px 8px 14px; border-radius: 999px; font-size: var(--fs-sm); font-weight: 700; color: var(--primary); background: var(--primary-soft); }
.edw-hsh-row:hover .edw-hsh-go { background: var(--primary); color: #fff; }
.edw-hsh-more { display: flex; justify-content: center; padding: 14px; border-top: 1px solid var(--border); }
.edw-hsh-more .edu-btn { margin: 0; }
.edw-hsh-end { text-align: center; padding: 12px; font-size: var(--fs-xs); color: var(--text-3); font-weight: 600; border-top: 1px solid var(--border); }
.edw-hsh-card .edu-empty { padding: 36px 16px; }
/* app */
.edm-hsh-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.edm-hsh-kpi { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); border-bottom: 3px solid var(--primary); }
.edm-hsh-kpi b { font-size: var(--fs-xl); font-weight: 800; color: var(--text-1); line-height: 1.1; }
.edm-hsh-kpi small { font-size: 11px; color: var(--text-3); font-weight: 700; margin-top: 2px; }
.edm-hsh-kpi.is-ok { border-bottom-color: var(--ok); } .edm-hsh-kpi.is-danger { border-bottom-color: var(--danger); } .edm-hsh-kpi.is-warn { border-bottom-color: var(--accent-orange); }
.edm-hsh-filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 10px; -webkit-overflow-scrolling: touch; }
.edm-hsh-filter { flex: 0 0 auto; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); border-radius: 999px; padding: 7px 12px; font-size: var(--fs-sm); font-weight: 700; }
.edm-hsh-filter span { margin-left: 4px; font-size: 11px; color: var(--text-3); }
.edm-hsh-filter.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }
.edm-hsh-filter.is-on span { color: rgba(255, 255, 255, .8); }
.edm-hsh-lop { margin-bottom: 10px; }
.edm-hsh-lop .edu-input { width: 100%; box-sizing: border-box; }
.edm-hsh-month-n { float: right; font-size: var(--fs-xs); color: var(--text-3); font-weight: 600; text-transform: none; }
.edm-hsh-row { align-items: flex-start; }
.edm-hsh-row .edu-row-chev { align-self: center; }
.edm-hsh-link .edu-row-sub { white-space: normal; }
@media (max-width: 1100px) { .edw-hsh-go span { display: none; } .edw-hsh-go { padding: 8px; } }
@media (max-width: 767px) { .edw-hsh-row { gap: 10px; padding: 12px; } .edw-hsh-date { flex-basis: 52px; width: 52px; } .edw-hsh-lop { max-width: none; width: 100%; } }
/* ===== Kết quả học tập v3 (24/10): KPI hàng đầu · dưới chia trái 60% sổ điểm / phải 40% biểu đồ tiến bộ + phân bố điểm ===== */
.edw-hsr-split { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; align-items: start; margin-bottom: 18px; }
.edw-hsr-split.is-single { grid-template-columns: minmax(0, 1fr); }
.edw-hsr-split > .edw-gb { margin-bottom: 0; }
.edw-role:has(> .edw-hs-results), .edw-hs-results.edw-page { max-width: 1480px; }
.edw-hsr-split .edw-gb-table .is-no, .edw-hsr-split .edw-gb-table .is-raw { display: none; }
.edw-hsr-split .edw-gb { overflow-x: auto; }
.edw-hsr-split .edw-gb-table td.is-name { min-width: 160px; }
.edw-hsr-split .edw-gb-legend { display: none; }
.edw-hsr-aside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 80px; min-width: 0; }
.edw-hsr-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sh-1); overflow: hidden; }
.edw-hsr-panel-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.edw-hsr-panel-h b { display: block; font-size: var(--fs-md); font-weight: 800; color: var(--text-1); }
.edw-hsr-panel-h span { font-size: var(--fs-xs); color: var(--text-3); }
.edw-hsr-panel-h > edu-icon { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--primary-soft); color: var(--primary); }
.edw-hsr-panel-b { padding: 14px 18px 16px; }
.edw-hsr-panel-b.edw-hsr-chart { margin: 0; padding: 12px 12px 10px; }
.edw-hsr-panel-b.edw-hsr-chart .edu-gami-chart { max-width: none; margin: 0; }
.edw-hsr-dist-bar { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: var(--surface-3); margin-bottom: 14px; gap: 2px; }
.edw-hsr-dist-bar i { display: block; min-width: 0; }
.edw-hsr-dist-bar i.is-good { background: var(--ok); } .edw-hsr-dist-bar i.is-mid { background: var(--accent-orange); } .edw-hsr-dist-bar i.is-low { background: var(--danger); }
.edw-hsr-dist-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px dashed var(--border); font-size: var(--fs-sm); color: var(--text-2); }
.edw-hsr-dist-row:first-of-type, .edw-hsr-dist-bar + .edw-hsr-dist-row { border-top: 0; }
.edw-hsr-dist-row span { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.edw-hsr-dist-row i { width: 10px; height: 10px; border-radius: 3px; background: var(--text-3); }
.edw-hsr-dist-row b { font-size: var(--fs-md); font-weight: 800; color: var(--text-1); font-variant-numeric: tabular-nums; min-width: 28px; text-align: right; }
.edw-hsr-dist-row.is-good i { background: var(--ok); } .edw-hsr-dist-row.is-good b { color: var(--ok); }
.edw-hsr-dist-row.is-mid i { background: var(--accent-orange); } .edw-hsr-dist-row.is-mid b { color: var(--accent-orange); }
.edw-hsr-dist-row.is-low i { background: var(--danger); } .edw-hsr-dist-row.is-low b { color: var(--danger); }
.edw-hsr-dist-row.is-wait i { background: var(--info); }
@media (max-width: 1500px) { .edw-hsr-split .edw-gb-table .is-cot { display: none; } }
@media (max-width: 1280px) { .edw-hsr-split { grid-template-columns: minmax(0, 1fr); } .edw-hsr-aside { position: static; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } .edw-hsr-split .edw-gb-table .is-cot { display: table-cell; } }
@media (max-width: 900px) { .edw-hsr-aside { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px) { .edw-hsr-split .edw-gb-table .is-cot { display: none; } }

/* ===== Chi tiết buổi học HS v2 (hs/schedule/session_body.html, 25/10): phần đầu (ô ngày, lớp, giờ, GV, điểm danh, sao, 3 thống kê) · chính: nội dung dạng bước + bài tập dạng thẻ + ảnh · phụ: thầy cô nhận xét ===== */
.edw-role:has(> .edw-hs-session) { max-width: 1320px; }
.hss { display: flex; flex-direction: column; gap: 18px; }
.hss-hero { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 22px 24px; border-radius: 22px; color: #fff; background: linear-gradient(135deg, var(--primary) 0%, var(--navy, #14286e) 100%); box-shadow: var(--sh-primary); overflow: hidden; }
.hss-hero::after { content: ''; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .08); pointer-events: none; }
.hss-date { position: relative; z-index: 1; width: 92px; padding: 10px 6px 12px; border-radius: 18px; background: #fff; color: var(--primary); text-align: center; box-shadow: 0 8px 24px rgba(10, 20, 60, .25); display: flex; flex-direction: column; line-height: 1.1; }
.hss-date small { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); }
.hss-date small:first-child { color: var(--danger); }
.hss-date b { font-size: 38px; font-weight: 800; margin: 2px 0; color: var(--text-1); font-variant-numeric: tabular-nums; }
.hss-hero-main { position: relative; z-index: 1; min-width: 0; }
.hss-kicker { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.hss-phase { background: rgba(255, 255, 255, .18); border-radius: 999px; padding: 3px 10px; text-transform: none; letter-spacing: 0; opacity: 1; }
.hss-hero h1 { margin: 6px 0 8px; font-size: 26px; font-weight: 800; line-height: 1.25; color: #fff; }
.hss-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: var(--fs-sm); opacity: .92; }
.hss-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.hss-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.hss-dd, .hss-starpill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 800; background: rgba(255, 255, 255, .16); color: #fff; }
.hss-dd.dd-present { background: #22c55e; } .hss-dd.dd-late { background: #f59e0b; } .hss-dd.dd-excused { background: #38bdf8; } .hss-dd.dd-absent { background: #ef4444; }
.hss-starpill { background: #ffd54a; color: #5c3b00; }
.hss-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 96px); gap: 10px; }
.hss-stats > div { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px 6px; border-radius: 16px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); }
.hss-stats b { font-size: 24px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.hss-stats b i { font-style: normal; font-size: 14px; opacity: .7; }
.hss-stats small { margin-top: 5px; font-size: 11px; font-weight: 700; opacity: .85; }
/* lưới chính / phụ */
.hss-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.hss-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; order: 1; }
.hss-side { order: 2; position: sticky; top: 84px; display: flex; flex-direction: column; gap: 18px; }
.hss-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--sh-1); overflow: hidden; }
.hss-card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.hss-card-h b { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-md); font-weight: 800; color: var(--text-1); }
.hss-card-h b edu-icon { color: var(--primary); }
.hss-card-h span { display: block; margin-top: 2px; font-size: var(--fs-xs); color: var(--text-3); font-weight: 600; }
.hss-card-h .edu-btn { margin: 0; flex: 0 0 auto; }
.hss-card-b { padding: 16px 18px; }
/* lời dặn */
.hss-note { display: flex; gap: 10px; padding: 12px 14px; margin-bottom: 14px; border-radius: 14px; background: #fff8e1; border: 1px solid #ffe08a; color: #7a5600; }
.hss-note b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.hss-note p { margin: 3px 0 0; color: var(--text-1); line-height: 1.5; white-space: pre-line; }
/* nội dung dạng bước */
.hss-steps { list-style: none; margin: 0; padding: 0; position: relative; }
.hss-steps::before { content: ''; position: absolute; left: 13px; top: 18px; bottom: 18px; width: 2px; background: var(--border); }
.hss-step { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.hss-step + .hss-step { border-top: 1px dashed var(--border); }
.hss-step.is-click { cursor: pointer; }
.hss-step.is-click:hover .hss-step-main b { color: var(--primary); }
.hss-step-no { position: relative; z-index: 1; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--surface); border: 2px solid var(--primary); color: var(--primary); font-size: 12px; font-weight: 800; }
.hss-step-ico { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--primary-soft); color: var(--primary); }
.hss-step-ico.is-de { background: var(--warn-soft); color: var(--accent-orange); }
.hss-step-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hss-step-main b { font-weight: 700; color: var(--text-1); line-height: 1.35; transition: color .15s var(--ease); }
.hss-step-main small { font-size: var(--fs-xs); color: var(--text-3); }
.hss-step-act { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; }
.hss-mini { display: inline-flex; align-items: center; gap: 2px; padding: 6px 10px; border-radius: 999px; border: 0; background: var(--surface-3); color: var(--text-2); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.hss-mini.is-de { background: var(--primary); color: #fff; }
.hss-mini.is-de.is-done { background: var(--ok-soft); color: var(--ok); }
.hss-mini.is-de.is-late { background: var(--danger-soft); color: var(--danger); }
.hss-mini.is-de.is-soon { background: var(--info-soft); color: var(--info); }
/* bài tập dạng thẻ */
.hss-tasks { display: flex; flex-direction: column; gap: 10px; }
.hss-task { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); border-left: 4px solid var(--border-strong, var(--border)); background: var(--surface); cursor: pointer; transition: all .15s var(--ease); }
.hss-task:hover { border-color: var(--primary-line); box-shadow: var(--sh-1); }
.hss-task.is-open { border-left-color: var(--primary); } .hss-task.is-done { border-left-color: var(--ok); } .hss-task.is-late { border-left-color: var(--danger); } .hss-task.is-soon { border-left-color: var(--info); }
.hss-task-ico { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-3); color: var(--text-2); }
.hss-task.is-open .hss-task-ico { background: var(--primary-soft); color: var(--primary); } .hss-task.is-done .hss-task-ico { background: var(--ok-soft); color: var(--ok); } .hss-task.is-late .hss-task-ico { background: var(--danger-soft); color: var(--danger); }
.hss-task-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hss-task-main b { font-weight: 700; color: var(--text-1); }
.hss-task-main small { font-size: var(--fs-xs); color: var(--text-3); }
.hss-task-hl { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-xs); color: var(--primary); font-weight: 600; margin-top: 2px; }
.hss-score { flex: 0 0 auto; font-size: 20px; font-weight: 800; color: var(--ok); font-variant-numeric: tabular-nums; }
.hss-score small { font-size: 12px; color: var(--text-3); font-weight: 700; }
.hss-task-btn { flex: 0 0 auto; padding: 7px 12px; border-radius: 10px; font-size: 12.5px; font-weight: 800; background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.hss-task-btn.is-open { background: var(--primary); color: #fff; } .hss-task-btn.is-done { background: var(--ok-soft); color: var(--ok); } .hss-task-btn.is-late { background: var(--danger-soft); color: var(--danger); } .hss-task-btn.is-soon { background: var(--info-soft); color: var(--info); }
/* nhận xét */
.hss-quote { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; }
.hss-quote > div { flex: 1 1 auto; min-width: 0; padding: 10px 14px; border-radius: 4px 16px 16px 16px; background: var(--primary-soft); }
.hss-quote b { font-size: 12px; font-weight: 800; color: var(--primary); }
.hss-quote p { margin: 4px 0 0; color: var(--text-1); line-height: 1.55; white-space: pre-line; }
.hss-stars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.hss-star { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: #fff8e1; border: 1px solid #ffe08a; min-width: 0; }
.hss-star-ico { flex: 0 0 34px; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; }
.hss-star-ico img { width: 34px; height: 34px; object-fit: contain; }
.hss-star-ico i { font-style: normal; font-size: 24px; }
.hss-star-t { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.hss-star-t b { font-size: var(--fs-sm); font-weight: 800; color: #7a5600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hss-star-t small { font-size: 11px; color: var(--text-3); }
.hss-crit-h { font-size: 12px; font-weight: 800; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.hss-crit-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px dashed var(--border); font-size: var(--fs-sm); color: var(--text-2); }
.hss-crit-row:first-of-type { border-top: 0; }
/* trống */
.hss-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 26px 18px; color: var(--text-3); }
.hss-empty > span { width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-3); color: var(--text-3); margin-bottom: 6px; }
.hss-empty b { color: var(--text-1); font-weight: 800; }
.hss-empty small { font-size: var(--fs-xs); max-width: 300px; line-height: 1.5; }
.hss-empty.is-inline { flex-direction: row; text-align: left; padding: 8px 0; gap: 12px; }
.hss-empty.is-inline > span { margin: 0; flex: 0 0 44px; }
.hss-empty.is-inline b { display: block; }
.hss-empty.is-inline small { display: block; max-width: none; }
.hss-empty.is-inline { flex-wrap: wrap; } .hss-empty.is-inline b, .hss-empty.is-inline small { flex: 1 1 60%; }
/* ảnh */
.hss-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.hss-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; cursor: zoom-in; }
/* khổ hẹp + app */
@media (max-width: 1100px) {
  .hss-grid { grid-template-columns: minmax(0, 1fr); }
  .hss-side { position: static; order: 0; }
  .hss-hero { grid-template-columns: auto minmax(0, 1fr); }
  .hss-stats { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .hss-hero { padding: 16px; gap: 14px; border-radius: 18px; }
  .hss-date { width: 72px; } .hss-date b { font-size: 30px; }
  .hss-hero h1 { font-size: 20px; }
  .hss-stats b { font-size: 20px; }
  .hss-star { padding: 7px 8px; } .hss-star-ico { flex-basis: 28px; width: 28px; height: 28px; } .hss-star-ico i { font-size: 20px; }
  .hss-step-act .hss-mini:not(.is-de) { display: none; }
  .hss-task { flex-wrap: wrap; } .hss-task-main { flex-basis: calc(100% - 56px); }
  .hss-task-btn { margin-left: 52px; }
}
.edm-hs-session .hss { padding-bottom: 12px; }

/* ===================== HS · Cuộc thi (menu riêng, 26/10) — contests.part.html · contest_sheet.html · leaderboard_sheet.html ===================== */
.edu-ct { --ct-r: 20px; padding-bottom: 8px; }
.edu-ct-hero { position: relative; overflow: hidden; border-radius: var(--ct-r); padding: 22px 24px; color: #fff; background: radial-gradient(120% 160% at 100% 0%, rgba(255, 210, 90, .35), transparent 55%), linear-gradient(135deg, #5b3fd6 0%, var(--primary) 55%, var(--navy) 100%); box-shadow: 0 14px 34px rgba(var(--primary-rgb), .25); }
.edu-ct-hero-in { display: flex; align-items: center; gap: 14px; }
.edu-ct-hero-ico { width: 52px; height: 52px; border-radius: 16px; flex: 0 0 auto; background: rgba(255, 255, 255, .18); color: #ffd25a; display: flex; align-items: center; justify-content: center; }
.edu-ct-hero h1 { margin: 0; font-size: 26px; font-weight: 800; color: #fff; }
.edu-ct-hero p { margin: 4px 0 0; font-size: var(--fs-sm); color: rgba(255, 255, 255, .85); }
.edu-ct-hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; max-width: 560px; }
.edu-ct-hero-stats button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 14px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 14px; background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .85); font: inherit; font-size: var(--fs-xs); font-weight: 700; cursor: pointer; text-align: left; }
.edu-ct-hero-stats button b { font-size: 22px; color: #fff; line-height: 1.1; }
.edu-ct-hero-stats button.is-on { background: #fff; color: var(--primary); border-color: #fff; }
.edu-ct-hero-stats button.is-on b { color: var(--primary); }
.edu-ct-bar { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; flex-wrap: wrap; }
.edu-ct-bar-t { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-md); font-weight: 800; }
.edu-ct-bar .edu-input { width: 240px; margin-left: auto; }
.edu-ct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.edu-ct-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--ct-r); background: var(--surface); overflow: hidden; cursor: pointer; box-shadow: var(--sh-1); transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s; outline: none; }
.edu-ct-card:hover, .edu-ct-card:focus-visible { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: rgba(var(--primary-rgb), .35); }
.edu-ct-card.is-live { border-color: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.edu-ct-card.is-danger { border-color: rgba(200, 30, 30, .45); }
.edu-ct-cover { position: relative; height: 104px; display: flex; align-items: center; justify-content: center; }
.edu-ct-cover.is-t0, .edu-ctd-hero.is-t0 { background: linear-gradient(135deg, #6a5cff, #3d7bff); }
.edu-ct-cover.is-t1, .edu-ctd-hero.is-t1 { background: linear-gradient(135deg, #ff8a3d, #ff5f6d); }
.edu-ct-cover.is-t2, .edu-ctd-hero.is-t2 { background: linear-gradient(135deg, #11b981, #0e9f9a); }
.edu-ct-cover.is-t3, .edu-ctd-hero.is-t3 { background: linear-gradient(135deg, #b44cf0, #6a5cff); }
.edu-ct-cover.is-t4, .edu-ctd-hero.is-t4 { background: linear-gradient(135deg, #f7b500, #ff7a00); }
.edu-ct-cover.is-t5, .edu-ctd-hero.is-t5 { background: linear-gradient(135deg, #00a8e8, #2f6bff); }
.edu-ct-cover::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 15% 120%, rgba(255, 255, 255, .25) 0 30%, transparent 31%), radial-gradient(circle at 92% -10%, rgba(255, 255, 255, .18) 0 26%, transparent 27%); }
.edu-ct-medal { position: relative; width: 58px; height: 58px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: #f2a300; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(0, 0, 0, .18); }
.edu-ct-type, .edu-ct-form { position: absolute; top: 10px; z-index: 1; max-width: 46%; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: #1b2440; font-size: 11px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.edu-ct-type { left: 10px; } .edu-ct-form { right: 10px; background: rgba(0, 0, 0, .28); color: #fff; }
.edu-ct-live { position: absolute; bottom: 10px; left: 10px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--ok); color: #fff; font-size: 11px; font-weight: 800; }
.edu-ct-live i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: edu-ct-blink 1s ease-in-out infinite; }
@keyframes edu-ct-blink { 50% { opacity: .3; } }
.edu-ct-body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 14px 16px 14px; gap: 8px; }
.edu-ct-title { font-size: var(--fs-md); font-weight: 800; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.edu-ct-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: var(--fs-xs); color: var(--text-3); font-weight: 600; }
.edu-ct-meta span { display: inline-flex; align-items: center; gap: 4px; }
.edu-ct-state { display: flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 10px; background: var(--surface-2); color: var(--text-2); font-size: var(--fs-sm); font-weight: 700; }
.edu-ct-state.is-register { background: var(--primary-soft); color: var(--primary); }
.edu-ct-state.is-enter, .edu-ct-state.is-resume { background: var(--ok-soft); color: var(--ok); }
.edu-ct-state.is-pending, .edu-ct-state.is-wait { background: var(--info-soft); color: var(--info); }
.edu-ct-state.is-rejected, .edu-ct-state.is-locked { background: var(--danger-soft); color: var(--danger); }
.edu-ct-card.is-danger .edu-ct-state { background: var(--danger-soft); color: var(--danger); }
.edu-ct-card.is-warn .edu-ct-state.is-register, .edu-ct-card.is-warn .edu-ct-state.is-wait { background: var(--warn-soft); color: var(--accent-orange); }
.edu-ct-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.edu-ct-tag { padding: 2px 9px; border-radius: 999px; border: 1px solid var(--border); font-size: 11.5px; font-weight: 700; color: var(--text-2); }
.edu-ct-tag.is-sbd { background: var(--ink, var(--text-1)); border-color: transparent; color: var(--surface); }
.edu-ct-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 6px; }
.edu-ct-foot .edu-btn { margin: 0; flex: 0 0 auto; }
.edu-ct-foot-sub { font-size: var(--fs-xs); color: var(--text-3); font-weight: 600; }
.edu-ct-score { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 6px; }
.edu-ct-score b { font-size: 22px; font-weight: 800; color: var(--primary); } .edu-ct-score small { color: var(--text-3); font-weight: 700; }
.edu-ct-rank { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: #fff3cd; color: #a06a00; font-size: 11.5px; font-weight: 800; }

/* popup chi tiết */
.edu-sheet.edu-ct-sheet { overflow: hidden; position: relative; }
.edu-sheet.edu-ct-sheet .edu-sheet-body { padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.edu-sheet.edu-ct-sheet .edu-sheet-grip { position: absolute; left: 50%; top: 0; margin-left: -20px; z-index: 3; background: rgba(255, 255, 255, .75); }
.edu-web .edu-sheet.edu-ct-sheet { max-width: 720px; height: min(860px, 90vh); }
.edu-ctd { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.edu-ctd-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.edu-ctd-hero { position: relative; min-height: 190px; display: flex; align-items: flex-end; overflow: hidden; }
.edu-ctd-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 10% 130%, rgba(255, 255, 255, .25) 0 34%, transparent 35%), linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .28)); }
.edu-ctd-medal { position: absolute; right: 26px; top: 46px; width: 72px; height: 72px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: #f2a300; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 26px rgba(0, 0, 0, .2); }
.edu-ctd-x { position: absolute; right: 14px; top: 14px; z-index: 2; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .3); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.edu-ctd-hero-in { position: relative; z-index: 1; padding: 20px 22px 34px; color: #fff; max-width: calc(100% - 110px); }
.edu-ctd-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.edu-ctd-chips span { padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .22); font-size: 11.5px; font-weight: 800; }
.edu-ctd-hero h2 { margin: 0; font-size: 24px; line-height: 1.22; font-weight: 800; color: #fff; }
.edu-ctd-facts { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; margin: -22px 18px 0; position: relative; z-index: 2; }
.edu-ctd-facts > div { display: flex; flex-direction: column; gap: 2px; padding: 11px 13px; border-radius: 15px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--sh-2); min-width: 0; }
.edu-ctd-facts edu-icon { color: var(--primary); margin-bottom: 3px; }
.edu-ctd-facts span { font-size: 11.5px; color: var(--text-3); font-weight: 600; }
.edu-ctd-facts b { font-size: var(--fs-sm); font-weight: 800; }
.edu-ctd-pad { padding: 12px 20px 20px; }
.edu-ctd-ok { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--ok-soft); }
.edu-ctd-ok-ico { width: 40px; height: 40px; border-radius: 50%; background: var(--ok); color: #fff; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; animation: edu-ct-pop .4s var(--ease); }
@keyframes edu-ct-pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }
.edu-ctd-ok b, .edu-ctd-status b { display: block; font-size: var(--fs); }
.edu-ctd-ok small, .edu-ctd-status small { display: block; font-size: var(--fs-xs); color: var(--text-2); margin-top: 2px; }
.edu-ctd-status { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); color: var(--text-2); }
.edu-ctd-status.is-register { background: var(--primary-soft); color: var(--primary); }
.edu-ctd-status.is-enter, .edu-ctd-status.is-resume, .edu-ctd-status.is-review { background: var(--ok-soft); color: var(--ok); }
.edu-ctd-status.is-pending, .edu-ctd-status.is-wait { background: var(--info-soft); color: var(--info); }
.edu-ctd-status.is-rejected, .edu-ctd-status.is-locked { background: var(--danger-soft); color: var(--danger); }
.edu-ctd-ticket { display: flex; flex-wrap: wrap; margin-top: 10px; border: 1.5px dashed var(--border-strong); border-radius: 14px; overflow: hidden; }
.edu-ctd-ticket > div { flex: 1 1 140px; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.edu-ctd-ticket > div + div { border-left: 1.5px dashed var(--border-strong); }
.edu-ctd-ticket span { font-size: 11px; color: var(--text-3); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.edu-ctd-ticket b { font-size: var(--fs-md); font-weight: 800; }
.edu-ctd-sec { margin-top: 20px; }
.edu-ctd-sec h3 { margin: 0 0 10px; font-size: 17px; font-weight: 800; }
.edu-ctd-result { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px; border-radius: 16px; background: linear-gradient(135deg, rgba(var(--primary-rgb), .08), rgba(242, 163, 0, .1)); }
.edu-ctd-score b { font-size: 36px; font-weight: 800; color: var(--primary); line-height: 1; } .edu-ctd-score small { display: block; color: var(--text-3); font-weight: 700; margin-top: 2px; }
.edu-ctd-score.is-wait b { font-size: var(--fs-md); color: var(--text-1); }
.edu-ctd-rank { display: flex; align-items: center; gap: 10px; margin-left: auto; padding: 10px 14px; border-radius: 14px; background: #fff3cd; color: #a06a00; }
.edu-ctd-rank b { display: block; font-size: 18px; } .edu-ctd-rank small { display: block; font-size: var(--fs-xs); }
.edu-ctd-err { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--warn-soft); font-size: var(--fs-sm); display: flex; gap: 8px; align-items: center; }
.edu-ctd-cas { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.edu-ctd-ca { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 14px; background: var(--surface); font: inherit; text-align: left; color: var(--text-1); cursor: pointer; }
.edu-ctd-ca:disabled { cursor: default; }
.edu-ctd-ca b { font-size: var(--fs-sm); } .edu-ctd-ca span { font-size: var(--fs-xs); color: var(--text-2); } .edu-ctd-ca small { font-size: 11px; color: var(--text-3); font-weight: 700; }
.edu-ctd-ca.is-on, .edu-ctd-ca.is-mine { border-color: var(--primary); background: var(--primary-soft); }
.edu-ctd-ca.is-off { opacity: .5; }
.edu-ctd-ca-ok { position: absolute; right: 10px; top: 10px; color: var(--primary); }
.edu-ctd-html { font-size: var(--fs); line-height: 1.65; color: var(--text-2); }
.edu-ctd-html p { margin: 0 0 8px; } .edu-ctd-html ul, .edu-ctd-html ol { margin: 0 0 8px; padding-left: 20px; }
.edu-ctd-rules { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.edu-ctd-rules li { display: flex; align-items: flex-start; gap: 8px; font-size: var(--fs-sm); line-height: 1.5; color: var(--text-2); }
.edu-ctd-rules edu-icon { color: var(--primary); flex: 0 0 auto; margin-top: 2px; }
.edu-ctd-bar { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--border); background: var(--surface); }
.edu-mobile .edu-ctd-bar { padding-bottom: calc(12px + var(--sab, 0px)); }
.edu-ctd-bar .edu-btn { margin: 0; height: 46px; border-radius: 14px; }
.edu-ctd-sp { flex: 1 1 auto; }
.edu-ctd-main { min-width: 170px; font-weight: 800; }

/* bảng xếp hạng */
.edu-web .edu-sheet.edu-ct-lb-sheet { max-width: 560px; }
.edu-ctlb-head { margin-bottom: 14px; } .edu-ctlb-head b { display: block; font-size: var(--fs-md); } .edu-ctlb-head span { font-size: var(--fs-xs); color: var(--text-3); }
.edu-ctlb-podium { display: grid; grid-template-columns: 1fr 1.1fr 1fr; align-items: end; gap: 10px; margin-bottom: 16px; }
.edu-ctlb-podium > div { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px 30px; border-radius: 16px 16px 6px 6px; text-align: center; background: var(--surface-2); }
.edu-ctlb-podium .is-1 { padding-top: 22px; padding-bottom: 44px; background: linear-gradient(180deg, #fff3cd, #ffe08a); }
.edu-ctlb-podium .is-2 { background: linear-gradient(180deg, #f1f3f7, #dfe3ea); }
.edu-ctlb-podium .is-3 { background: linear-gradient(180deg, #fdebdc, #f5cfae); }
.edu-ctlb-podium b { font-size: var(--fs-sm); line-height: 1.25; } .edu-ctlb-podium small { font-weight: 800; color: var(--text-2); }
.edu-ctlb-podium i { position: absolute; bottom: 6px; font-style: normal; font-weight: 800; font-size: 18px; color: rgba(0, 0, 0, .35); }
.edu-ctlb-ava { width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 800; box-shadow: var(--sh-1); }
.edu-ctlb-podium .is-1 .edu-ctlb-ava { color: #f2a300; width: 52px; height: 52px; }
.edu-ctlb-list { display: flex; flex-direction: column; gap: 6px; }
.edu-ctlb-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.edu-ctlb-row.is-me { border-color: var(--primary); background: var(--primary-soft); }
.edu-ctlb-no { width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto; background: var(--surface-3); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: var(--fs-sm); }
.edu-ctlb-no.is-r1 { background: #ffd25a; } .edu-ctlb-no.is-r2 { background: #d6dbe4; } .edu-ctlb-no.is-r3 { background: #f2c39a; }
.edu-ctlb-who { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.edu-ctlb-who b { font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .edu-ctlb-who em { font-style: normal; color: var(--primary); }
.edu-ctlb-who small { font-size: 11.5px; color: var(--text-3); }
.edu-ctlb-sc { font-weight: 800; color: var(--primary); }
.edu-ctlb-gap { text-align: center; color: var(--text-3); }

/* app / màn hẹp */
.edu-ct.is-app .edu-ct-hero { border-radius: 0 0 24px 24px; padding: 18px 16px; box-shadow: none; }
.edu-ct.is-app .edu-ct-hero h1 { font-size: 22px; }
.edu-ct.is-app .edu-ct-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 14px; }
.edu-ct.is-app .edu-empty { margin: 0 14px; }
@media (max-width: 760px) {
  .edu-ct-hero { padding: 18px 16px; }
  .edu-ct-hero-stats button { padding: 8px 10px; } .edu-ct-hero-stats button b { font-size: 18px; }
  .edu-ct-bar .edu-input { width: 100%; }
  .edu-ctd-facts { grid-template-columns: 1fr 1fr; margin: -20px 12px 0; } .edu-ctd-facts > div:first-child { grid-column: 1 / -1; }
  .edu-ctd-pad { padding: 10px 14px 18px; }
  .edu-ctd-hero-in { max-width: 100%; } .edu-ctd-medal { width: 56px; height: 56px; top: 54px; right: 18px; }
  .edu-ctd-main { min-width: 0; flex: 1 1 auto; }
  .edu-ctd-rank { margin-left: 0; }
}
.edu-mobile .edu-ctd-facts { grid-template-columns: 1fr 1fr; margin: -20px 12px 0; }
.edu-mobile .edu-ctd-facts > div:first-child { grid-column: 1 / -1; }
.edu-mobile .edu-ctd-main { min-width: 0; flex: 1 1 auto; }
/* thẻ lối vào "Cuộc thi" (Hôm nay · màn Bài thi) */
.edu-ct-home { display: flex; align-items: center; gap: 12px; width: 100%; margin: 0 0 14px; padding: 12px 14px; border: 1px solid rgba(242, 163, 0, .35); border-radius: 16px; background: linear-gradient(135deg, #fff8e1, #fff1cc); color: #6b4a00; font: inherit; text-align: left; cursor: pointer; }
.edu-ct-home:hover { border-color: #f2a300; }
.edu-ct-home-ico { width: 42px; height: 42px; border-radius: 13px; flex: 0 0 auto; background: #f2a300; color: #fff; display: flex; align-items: center; justify-content: center; }
.edu-ct-home-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.edu-ct-home-t b { font-size: var(--fs-md); color: #3d2a00; } .edu-ct-home-t small { font-size: var(--fs-xs); color: #7a5a10; }
.edm-content > .edu-ct-home, .edm-exam-list > .edu-ct-home { width: calc(100% - 28px); margin: 12px 14px 4px; }
