/* Trải nghiệm học mới của StaffSite (Dự án 2). Nạp sau learn.css, dùng token --brand-* và token của learn.css.
   Wrapper .learn-page, tiền tố lx-. Mỗi màn hình có một khối có chú thích bên dưới. */

.learn-page {
    --lx-series-1: var(--brand-primary);
    --lx-series-2: var(--brand-accent);
    --lx-series-3: var(--brand-secondary);
    --lx-series-4: #6b7280;
    --lx-done: #0f7b0f;
    --lx-late: #b7791f;
    --lx-overdue: #c0392b;
    --lx-locked: #c5cad6;
    --lx-surface: #ffffff;
    --lx-muted-surface: #f6f7fb;
    --lx-ink: #1f2937;
    --lx-ink-muted: #5a6178;
    --lx-grid: #e3e6ee;
}

/* ===== Khối dùng chung ===== */
.learn-page .lx-card { background: var(--lx-surface); border: 1px solid var(--border); border-radius: 18px; padding: 20px; box-sizing: border-box; min-width: 0; }
.learn-page .lx-card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 12px; margin-bottom: 14px; }
.learn-page .lx-card-title { margin: 0; font-size: 18px; font-weight: 800; color: var(--lx-ink); }
.learn-page .lx-card-sub { margin: 4px 0 0; font-size: 13px; color: var(--lx-ink-muted); }
.learn-page .lx-link { font-size: 13px; font-weight: 700; color: var(--primary); }

.learn-page .lx-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--gray-light); color: var(--lx-ink); }
.learn-page .lx-chip.ok { background: var(--success-light); color: var(--success); }
.learn-page .lx-chip.warn { background: var(--warning-light); color: var(--warning); }
.learn-page .lx-chip.bad { background: var(--danger-light); color: var(--danger); }
.learn-page .lx-chip.muted { background: var(--lx-muted-surface); color: var(--lx-ink-muted); border: 1px solid var(--border); }
.learn-page .lx-chip.info { background: color-mix(in srgb, var(--brand-primary) 12%, white); color: var(--primary); }

.learn-page .lx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 2px solid transparent; font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; box-sizing: border-box; background: var(--lx-muted-surface); color: var(--primary); }
.learn-page .lx-btn.primary { background: var(--primary); color: #fff; }
.learn-page .lx-btn.primary:hover { background: color-mix(in srgb, var(--primary) 88%, black); }
.learn-page .lx-btn.ghost { background: transparent; border-color: var(--border); color: var(--lx-ink); }
.learn-page .lx-btn.ghost:hover { background: var(--lx-muted-surface); }
.learn-page .lx-btn.lg { min-height: 52px; font-size: 16px; padding: 0 26px; }
.learn-page .lx-btn:disabled { opacity: .5; cursor: not-allowed; }
.learn-page .lx-btn:focus-visible, .learn-page .lx-tab:focus-visible, .learn-page .lx-node:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.learn-page .lx-progress { display: block; height: 8px; border-radius: 4px; background: var(--gray-light); overflow: hidden; }
.learn-page .lx-progress > span { display: block; height: 100%; border-radius: 4px; background: var(--lx-series-1); }

.learn-page .lx-ring { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.learn-page .lx-ring svg { display: block; }
.learn-page .lx-ring-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--lx-ink); font-size: 15px; }

.learn-page .lx-sr-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 10px; }
.learn-page .lx-sr-table th, .learn-page .lx-sr-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--lx-grid); }
.learn-page .lx-sr-table th { font-weight: 700; color: var(--lx-ink-muted); }
.learn-page .lx-table-toggle { margin-top: 8px; background: none; border: 0; padding: 0; min-height: 32px; font: inherit; font-size: 13px; font-weight: 700; color: var(--primary); cursor: pointer; text-decoration: underline; }

.learn-page .lx-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 24px 12px; color: var(--lx-ink-muted); }
.learn-page .lx-empty img { width: 120px; height: 120px; object-fit: contain; }
.learn-page .lx-empty strong { color: var(--lx-ink); font-size: 16px; }

.learn-page .lx-tab-list { display: flex; flex-wrap: wrap; gap: 6px; }
.learn-page .lx-tab { min-height: 36px; padding: 0 14px; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; border: 1px solid var(--border); background: #fff; color: var(--lx-ink); }
.learn-page .lx-tab[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Biểu đồ */
.lx-chart-host { position: relative; width: 100%; }
.lx-chart-host svg { display: block; width: 100%; height: auto; overflow: visible; }
.lx-chart-host .lx-ax-text { font-size: 11px; fill: #5a6178; font-family: inherit; }
.lx-chart-host .lx-ax-text.strong { font-weight: 800; fill: #1f2937; }
.lx-chart-host .lx-grid-line { stroke: #e3e6ee; stroke-width: 1; }
.lx-chart-host .lx-target-line { stroke: #6b7280; stroke-width: 2; stroke-dasharray: 5 4; fill: none; }
.lx-chart-host .lx-hit { fill: transparent; cursor: default; }
.lx-chart-host .lx-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 12px; color: #1f2937; }
.lx-chart-host .lx-legend li { display: inline-flex; align-items: center; gap: 6px; }
.lx-chart-host .lx-legend-swatch { width: 14px; height: 4px; border-radius: 2px; display: inline-block; }
.lx-tooltip { position: fixed; z-index: 3000; pointer-events: none; max-width: 260px; padding: 6px 10px; border-radius: 8px; background: #1f2937; color: #fff; font-size: 12px; line-height: 1.4; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); white-space: pre-line; }
.lx-tooltip[hidden] { display: none; }

/* Thanh dưới trên điện thoại (nằm ngoài .learn-page nên scope theo body) */
.home-page .lx-tabbar { display: none; }
@media (max-width: 767px) {
    .home-page.lx-has-tabbar .hp-main { padding-bottom: 84px; }
    .home-page .lx-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-top: 1px solid #e3e6ee; box-shadow: 0 -2px 10px rgba(0, 0, 0, .06); padding-bottom: env(safe-area-inset-bottom); }
    .home-page .lx-tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; min-width: 44px; padding: 6px 2px; text-decoration: none; color: #5a6178; font-size: 11px; font-weight: 600; }
    .home-page .lx-tabbar a i { font-size: 22px; }
    .home-page .lx-tabbar a[aria-current="page"] { color: var(--primary); font-weight: 800; }
    .home-page .lx-tabbar a:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
    .home-page .lx-tabbar-dot { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #c0392b; color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; box-sizing: border-box; }
    .home-page .lx-tabbar-dot[hidden] { display: none; }
}

/* Menu chính của học viên trong thanh trên cùng */
.home-page .hp-nav-links a[aria-current="page"] { color: var(--primary); border-bottom-color: var(--primary); font-weight: 700; }
.home-page .hp-notif-all { display: block; padding: 10px 16px; text-align: center; font-weight: 700; font-size: 13px; color: var(--primary); text-decoration: none; border-top: 1px solid #e3e6ee; }

@media print {
    .home-page .hp-nav, .home-page .hp-footer, .home-page .lx-tabbar, .home-page .hp-bg-blobs { display: none !important; }
    .home-page .hp-main { padding: 0; }
}

/* ===== F11: Hôm nay (#lx-today) ===== */
.learn-page .lx-s0 { --lx-strip: var(--lx-series-1); }
.learn-page .lx-s1 { --lx-strip: var(--lx-series-2); }
.learn-page .lx-s2 { --lx-strip: var(--lx-series-3); }
.learn-page .lx-s3 { --lx-strip: var(--lx-series-4); }

.learn-page .lx-hero { display: flex; flex-wrap: wrap-reverse; align-items: center; justify-content: space-between; gap: 20px; background: color-mix(in srgb, var(--brand-accent) 8%, white); border-color: color-mix(in srgb, var(--brand-accent) 25%, white); padding: 24px; }
.learn-page .lx-hero-text { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.learn-page .lx-hero-date { margin: 0; font-size: 14px; font-weight: 700; color: var(--lx-ink-muted); }
.learn-page .lx-hero-title { margin: 0; font-size: 28px; line-height: 1.2; font-weight: 800; color: var(--lx-ink); }
.learn-page .lx-hero-lead { margin: 0; font-size: 16px; line-height: 1.6; color: var(--lx-ink); }
.learn-page .lx-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.learn-page .lx-hero-mascot { width: 130px; height: 130px; object-fit: contain; flex: 0 0 auto; }
.learn-page .lx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.learn-page .lx-chips .lx-chip { background: #fff; border: 1px solid var(--border); padding: 6px 12px; font-size: 13px; }
.learn-page .lx-chips .lx-chip.bad { background: var(--danger-light); border-color: transparent; }
.learn-page .lx-chips .lx-chip.warn { background: var(--warning-light); border-color: transparent; }

.learn-page .lx-kicker { font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--lx-ink-muted); }
.learn-page .lx-continue { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.learn-page .lx-continue .lx-card-head { align-self: stretch; margin-bottom: 0; }
.learn-page .lx-continue-title { margin: 0; font-size: 18px; font-weight: 800; color: var(--lx-ink); }

.learn-page .lx-cols { display: flex; flex-direction: column; gap: 20px; align-items: stretch; }
.learn-page .lx-side-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.learn-page .lx-task-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.learn-page .lx-task { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-left: 6px solid var(--lx-strip, var(--lx-series-1)); border-radius: 14px; background: #fff; }
.learn-page .lx-task.is-done { background: var(--lx-muted-surface); }
.learn-page .lx-task.is-done .lx-task-title { text-decoration: line-through; text-decoration-color: #9aa1b5; }
.learn-page .lx-task-icon { font-size: 24px; color: var(--primary); flex: 0 0 auto; }
.learn-page .lx-task-main { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.learn-page .lx-task-title { font-weight: 700; color: var(--lx-ink); overflow-wrap: anywhere; }
.learn-page .lx-empty-filter { margin: 12px 0 0; color: var(--lx-ink-muted); font-size: 14px; }

.learn-page .lx-upcoming { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.learn-page .lx-upcoming li { display: flex; gap: 12px; align-items: flex-start; }
.learn-page .lx-upcoming li > div { display: flex; flex-direction: column; min-width: 0; font-size: 14px; }
.learn-page .lx-upcoming-date { flex: 0 0 auto; min-width: 84px; padding: 6px 8px; border-radius: 10px; background: var(--lx-muted-surface); font-size: 12px; font-weight: 800; text-align: center; color: var(--lx-ink); }

.learn-page .lx-path-mini-list { display: flex; flex-direction: column; gap: 10px; }
.learn-page .lx-path-mini { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--lx-muted-surface); border-left: 6px solid var(--lx-strip, var(--lx-series-1)); text-decoration: none; color: inherit; }
.learn-page .lx-path-mini:hover { background: var(--gray-light); }
.learn-page .lx-path-mini-main { flex: 1 1 140px; min-width: 0; display: flex; flex-direction: column; }
.learn-page .lx-path-mini-main strong { color: var(--lx-ink); font-size: 14px; }

.learn-page .lx-survey-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.learn-page .lx-survey-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--lx-muted-surface); }
.learn-page .lx-survey-card > div { display: flex; flex-direction: column; }
.learn-page .lx-badge-toast { display: flex; align-items: center; gap: 12px; }
.learn-page .lx-badge-toast p { margin: 2px 0 0; font-size: 13px; color: var(--lx-ink-muted); }

@media (min-width: 960px) {
    .learn-page .lx-cols { flex-direction: row; }
    .learn-page .lx-main-col { flex: 3 1 0; align-self: flex-start; }
    .learn-page .lx-side-col { flex: 2 1 0; }
    .learn-page .lx-hero-mascot { width: 150px; height: 150px; }
}
@media (max-width: 767px) {
    .learn-page .lx-hero-title { font-size: 24px; }
    .learn-page .lx-task .lx-btn { width: 100%; }
}

/* ===== F12: Bản đồ lộ trình và Khám phá lộ trình ===== */
.learn-page .lx-path-tabs { margin-bottom: -4px; }
.learn-page a.lx-tab { display: inline-flex; align-items: center; text-decoration: none; }
.learn-page a.lx-tab[aria-current="page"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.learn-page .lx-path-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.learn-page .lx-path-title h1 { display: flex; align-items: center; gap: 10px; }
.learn-page .lx-path-head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.learn-page .lx-stats { display: grid; grid-template-columns: 1fr; gap: 12px; }
.learn-page .lx-stat { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; }
.learn-page .lx-stat-label { font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--lx-ink-muted); }
.learn-page .lx-stat strong { font-size: 18px; color: var(--lx-ink); }
.learn-page .lx-view-switch { display: flex; gap: 6px; }
.learn-page .lx-view-switch .lx-tab { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }

.learn-page .lx-map-card { padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.learn-page .lx-map-wrap { position: relative; width: 100%; }
.learn-page .lx-map-svg { display: block; width: 100%; height: auto; }
.learn-page .lx-map-text { font-size: 13px; font-family: inherit; fill: var(--lx-ink-muted); }
.learn-page .lx-map-text.strong { font-weight: 800; fill: var(--lx-ink); }
.learn-page .lx-node { cursor: pointer; outline: none; }
.learn-page .lx-node:focus-visible circle:first-of-type { stroke: var(--accent); stroke-width: 5; }
.learn-page .lx-map-pop { position: absolute; z-index: 5; width: min(92%, 420px); max-height: 70%; overflow: auto; background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 12px 32px rgba(0, 0, 0, .2); padding: 12px; box-sizing: border-box; }
.learn-page .lx-map-pop-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; color: var(--lx-ink); }
.learn-page .lx-map-pop-close { min-width: 44px; min-height: 44px; border: 0; border-radius: 10px; background: var(--lx-muted-surface); cursor: pointer; font-size: 18px; color: var(--lx-ink); }
.learn-page .lx-map-pop .ln-path-item { padding: 8px 10px; }
.learn-page .lx-map-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--lx-ink); }
.learn-page .lx-map-legend li { display: inline-flex; align-items: center; gap: 6px; }
.learn-page .lx-dot { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; color: #fff; font-size: 12px; }
.learn-page .lx-dot--done { background: var(--lx-done); }
.learn-page .lx-dot--late { background: var(--lx-late); }
.learn-page .lx-dot--today { background: var(--brand-primary); }
.learn-page .lx-dot--overdue { background: var(--lx-overdue); }
.learn-page .lx-dot--locked { background: var(--lx-locked); }
.learn-page .lx-dot--flag { background: #fff; color: var(--lx-ink); border: 1px solid var(--border); }
.learn-page .lx-reward { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.learn-page .lx-reward img { width: 96px; height: 96px; object-fit: contain; flex: 0 0 auto; }
.learn-page .lx-list-days { display: flex; flex-direction: column; gap: 20px; }

.learn-page .lx-discover { display: flex; flex-direction: column; gap: 4px; }
.learn-page .lx-discover-card { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.learn-page .lx-discover-cover { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 12px; }

@media (min-width: 768px) {
    .learn-page .lx-stats { grid-template-columns: repeat(3, 1fr); }
    .learn-page .lx-map-card { padding: 16px; }
}

/* ===== F13: Lịch học tổng hợp (#lx-planner) ===== */
.learn-page .lx-stats-4 { grid-template-columns: repeat(2, 1fr); }
.learn-page .lx-grid-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--lx-ink); }
.learn-page .lx-grid-legend li { display: inline-flex; align-items: center; gap: 4px; }
.learn-page .lx-weekend-swatch { width: 14px; height: 14px; border-radius: 3px; background: #eceef4; border: 1px solid var(--border); display: inline-block; }
.learn-page .lx-grid-scroll { overflow-x: auto; max-width: 100%; }
.learn-page .lx-grid { border-collapse: separate; border-spacing: 3px; min-width: 760px; width: 100%; font-size: 12px; }
.learn-page .lx-grid th { font-weight: 700; color: var(--lx-ink-muted); text-align: center; padding: 4px 2px; white-space: nowrap; }
.learn-page .lx-grid th.is-today { color: var(--lx-ink); border-bottom: 3px solid var(--primary); }
.learn-page .lx-grid th.is-off { background: #eceef4; border-radius: 6px; }
.learn-page .lx-grid .lx-grid-path { position: sticky; left: 0; z-index: 1; background: #fff; text-align: left; min-width: 150px; max-width: 200px; white-space: normal; padding-right: 8px; }
.learn-page .lx-grid .lx-grid-path a { color: var(--lx-ink); text-decoration: none; display: inline-flex; align-items: flex-start; gap: 6px; font-size: 13px; }
.learn-page .lx-grid-dot { flex: 0 0 auto; width: 10px; height: 10px; margin-top: 4px; border-radius: 50%; background: var(--lx-strip, var(--lx-series-1)); }
.learn-page .lx-cell { height: 34px; min-width: 40px; text-align: center; border-radius: 6px; background: var(--lx-muted-surface); color: var(--lx-ink); font-size: 16px; }
.learn-page .lx-cell.is-off { background: #eceef4; }
.learn-page .lx-cell.is-today { outline: 2px solid var(--primary); outline-offset: -2px; }
.learn-page .lx-cell.has-work { background: var(--lx-strip, var(--lx-series-1)); color: #fff; }
.learn-page .lx-cell.has-work i { color: #fff; }
.learn-page .lx-suggestions { display: flex; flex-direction: column; gap: 12px; }
.learn-page .lx-suggest { display: flex; align-items: center; gap: 16px; background: color-mix(in srgb, var(--brand-accent) 8%, white); }
.learn-page .lx-suggest img { width: 88px; height: 88px; object-fit: contain; flex: 0 0 auto; }
.learn-page .lx-suggest-body p { margin: 0 0 10px; line-height: 1.5; color: var(--lx-ink); }
.learn-page .lx-suggest-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.learn-page .lx-dup-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.learn-page .lx-dup-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 10px 12px; border-radius: 12px; background: var(--lx-muted-surface); font-size: 14px; }
@media (min-width: 768px) {
    .learn-page .lx-stats-4 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 560px) {
    .learn-page .lx-suggest { flex-direction: column; align-items: flex-start; }
}

/* ===== F14: Năng lực của tôi (#lx-competency) ===== */
.learn-page .lx-stats-2 { grid-template-columns: 1fr; }
.learn-page .lx-comp-hero { display: flex; align-items: center; gap: 20px; background: color-mix(in srgb, var(--brand-accent) 8%, white); }
.learn-page .lx-comp-hero img { width: 120px; height: 120px; object-fit: contain; flex: 0 0 auto; }
.learn-page .lx-comp-hero-title { margin: 0; font-size: 22px; font-weight: 800; color: var(--lx-ink); }
.learn-page .lx-comp-hero-sub { margin: 6px 0 0; font-size: 15px; line-height: 1.6; color: var(--lx-ink); }
.learn-page .lx-ready { display: flex; align-items: center; gap: 16px; }
.learn-page .lx-ready > div, .learn-page .lx-peer { display: flex; flex-direction: column; gap: 4px; }
.learn-page .lx-ready-number { font-size: 26px; color: var(--lx-ink); }
.learn-page .lx-select { min-height: 44px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; font: inherit; background: #fff; color: var(--lx-ink); max-width: 100%; }
.learn-page .lx-comp-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.learn-page .lx-comp-table th, .learn-page .lx-comp-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--lx-grid); color: var(--lx-ink); }
.learn-page .lx-comp-table thead th { font-size: 12px; font-weight: 800; color: var(--lx-ink-muted); text-transform: uppercase; letter-spacing: .03em; }
.learn-page .lx-row-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; border: 0; background: none; font: inherit; font-weight: 800; color: var(--primary); cursor: pointer; text-align: left; }
.learn-page .lx-row-btn i { transition: transform .15s; }
.learn-page .lx-row-btn[aria-expanded="true"] i { transform: rotate(90deg); }
.learn-page .lx-row-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.learn-page .lx-up { color: var(--lx-done); font-weight: 800; white-space: nowrap; }
.learn-page .lx-down { color: var(--lx-overdue); font-weight: 800; white-space: nowrap; }
.learn-page .lx-comp-detail > td { background: var(--lx-muted-surface); padding: 12px; }
.learn-page .lx-sub-title { margin: 14px 0 8px; font-size: 15px; color: var(--lx-ink); }
.learn-page .lx-sugg-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.learn-page .lx-sugg { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; background: #fff; border: 1px solid var(--border); }
.learn-page .lx-sugg-cover { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; }
.learn-page .lx-sugg-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; font-size: 14px; color: var(--lx-ink); }
.learn-page .lx-award-grid { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.learn-page .lx-award { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 12px; border-radius: 14px; background: var(--lx-muted-surface); font-size: 13px; }
@media (min-width: 768px) {
    .learn-page .lx-stats-2 { grid-template-columns: repeat(2, 1fr); }
    .learn-page .lx-sugg-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .learn-page .lx-comp-hero { flex-direction: column; align-items: flex-start; }
}

/* ===== Thông báo và Cài đặt học tập ===== */
.learn-page .lx-inbox-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.learn-page .lx-inbox-schedule { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.learn-page .lx-inbox-schedule p { margin: 0; flex: 1 1 260px; color: var(--lx-ink); }
.learn-page .lx-inbox-tabs { display: flex; gap: 8px; overflow-x: auto; margin: 16px 0; padding-bottom: 4px; }
.learn-page .lx-inbox-tabs .lx-tab { flex-shrink: 0; text-decoration: none; }
.learn-page .lx-inbox-day-title { font-size: 14px; font-weight: 800; color: var(--lx-ink-muted); margin: 16px 0 8px; }
.learn-page .lx-inbox-item { display: flex; gap: 14px; padding: 14px; margin-bottom: 10px; border: 1px solid var(--border); border-radius: 16px; background: var(--lx-surface); }
.learn-page .lx-inbox-item.is-unread { background: var(--lx-muted-surface); }
.learn-page .lx-inbox-mascot { width: 56px; height: 56px; object-fit: contain; flex-shrink: 0; }
.learn-page .lx-inbox-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.learn-page .lx-inbox-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.learn-page .lx-inbox-time { font-size: 12px; color: var(--lx-ink-muted); }
.learn-page .lx-inbox-title { margin: 0; font-size: 15px; font-weight: 800; color: var(--lx-ink); overflow-wrap: anywhere; }
.learn-page .lx-inbox-text { margin: 0; font-size: 14px; color: var(--lx-ink-muted); overflow-wrap: anywhere; }
.learn-page .lx-inbox-more { margin: 8px auto 0; display: flex; max-width: 240px; }
.learn-page .lx-settings .lx-card { margin-top: 16px; }
.learn-page .lx-set-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 12px; }
.learn-page .lx-set-field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--lx-ink); }
.learn-page .lx-set-field input[type="number"], .learn-page .lx-set-field input[type="time"], .learn-page .lx-set-field input[type="text"] { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; font: inherit; box-sizing: border-box; }
.learn-page .lx-set-hint { margin: 6px 0 0; font-size: 12px; color: var(--lx-ink-muted); }
.learn-page .lx-set-check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; font-weight: 600; margin-top: 8px; }
.learn-page .lx-set-actions { margin-top: 20px; display: flex; justify-content: flex-end; }

/* ── Menu trên cùng khi đã đăng nhập: 7 mục không vừa thanh ngang ở màn hình hẹp, dùng ngăn kéo như điện thoại ── */
.home-page.lx-has-tabbar .hp-nav-links a { white-space: nowrap; }
@media (min-width: 768px) and (max-width: 1179px) {
    .home-page.lx-has-tabbar .hp-nav-hamburger { display: flex; }
    .home-page.lx-has-tabbar .hp-nav-links {
        display: flex; position: fixed; top: 80px; left: 0; right: 0; bottom: 0; z-index: 100;
        background: var(--surface-lowest); flex-direction: column; align-items: stretch; justify-content: flex-start;
        gap: 0; padding: var(--stack-md) var(--gutter); transform: translateX(-100%); transition: transform .3s ease; overflow-y: auto;
    }
    .home-page.lx-has-tabbar .hp-nav-links.is-open { transform: translateX(0); }
    .home-page.lx-has-tabbar .hp-nav-links a { padding: 16px 4px; border-bottom: 1px solid var(--outline-variant); font-size: 18px; }
    .home-page.lx-has-tabbar .hp-nav:has(.hp-nav-links.is-open) { backdrop-filter: none; -webkit-backdrop-filter: none; }
    .home-page.lx-has-tabbar .hp-nav-trail { margin-left: auto; }
}
