.rata-el { --el-line: color-mix(in srgb, currentColor 18%, transparent); --el-soft: color-mix(in srgb, var(--el-accent, #5b3df5) 10%, transparent); --el-bg: var(--wp--preset--color--base, #fff); }
.rata-el-list, .rata-el-detail { max-width: 1120px; margin: 0 auto; padding: 32px 16px 64px; }
.rata-el-topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 24px; }
.rata-el-topics a { border: 1px solid var(--el-line); border-radius: 999px; padding: 2px 12px; text-decoration: none; font-size: .9em; }
.rata-el-topics a.is-on { background: var(--el-accent); border-color: var(--el-accent); color: #fff; }
.rata-el-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.rata-el-card { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--el-line); border-radius: 12px; padding: 12px; text-decoration: none; color: inherit; }
.rata-el-card h2 { font-size: 1.05em; margin: 0; line-height: 1.3; }
.rata-el-card h2 a { text-decoration: none; color: inherit; }
.rata-el-card p { margin: 0; font-size: .88em; opacity: .8; }
.rata-el-card .rata-el-btn { margin-top: auto; }
.rata-el-thumb { aspect-ratio: 16 / 8; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: var(--el-soft); font-size: .85em; }
.rata-el-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rata-el-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; font-size: .92em; }
.rata-el-exp { color: #b91c1c; }
.rata-el-soon { color: #b45309; }
.rata-el-pages { margin-top: 24px; display: flex; gap: 8px; }
.rata-el-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.rata-el-body { min-width: 0; }
.rata-el-lead { font-size: 1.1em; opacity: .8; }
/* Trang giới thiệu: tiêu đề nổi bật, mô tả ngắn đi liền dưới. */
.rata-el-detail .rata-el-body > h1 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 2.9rem); line-height: 1.15; font-weight: 700; letter-spacing: -.01em; margin: 0 0 12px; text-wrap: balance; }
.rata-el-detail .rata-el-lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); line-height: 1.6; margin: 0 0 12px; }
/* Thẻ khóa học ở cuối trang, kiểu viên như thẻ của theme. */
.rata-el-tags { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--el-line); }
.rata-el-tags h2 { font-size: 1rem; margin: 0 0 12px; }
.rata-el-tagrow { display: flex; flex-wrap: wrap; gap: .5rem; }
.rata-el-tagrow a { display: inline-block; padding: .25rem .75rem; border: 1px solid var(--f-border, var(--el-line)); border-radius: 999px; color: var(--f-muted, inherit); font-size: .8125rem; line-height: 1.5; text-decoration: none; }
.rata-el-tagrow a:hover, .rata-el-tagrow a:focus-visible { border-color: var(--f-accent, var(--el-accent)); color: var(--f-text, inherit); }
.rata-el-by, .rata-el-sub { font-size: .92em; opacity: .75; }
.rata-el-intro { line-height: 1.65; }
.rata-el-intro > :first-child { margin-top: 0; }
.rata-el-pre { border: 1px solid var(--el-line); border-radius: 8px; padding: 8px 12px; }
.rata-el-ok { color: #15803d; font-weight: 600; }
.rata-el-note { border-left: 3px solid #b45309; padding: 8px 12px; background: color-mix(in srgb, #b45309 10%, transparent); }
.rata-el-soon-box { border-left: 3px solid #b45309; padding: 8px 12px; background: color-mix(in srgb, #b45309 10%, transparent); font-weight: 600; }
.rata-el-outline { border: 1px solid var(--el-line); border-radius: 10px; overflow: hidden; font-size: .94em; }
.rata-el-outline details { border-bottom: 1px solid var(--el-line); }
.rata-el-outline details:last-child { border-bottom: 0; }
.rata-el-outline .ch { font-weight: 700; padding: 8px 12px; background: var(--el-soft); display: flex; justify-content: space-between; gap: 8px; cursor: pointer; list-style: none; }
.rata-el-outline .ch::-webkit-details-marker { display: none; }
.rata-el-outline .ch::before { content: "▾"; margin-right: 6px; opacity: .6; }
.rata-el-outline details:not([open]) .ch::before { content: "▸"; }
.rata-el-outline .ch span { flex: 1; }
.rata-el-chd { margin: 0; padding: 6px 12px; font-size: .9em; opacity: .8; border-top: 1px solid var(--el-line); }
.rata-el-outline .it { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--el-line); align-items: baseline; }
.rata-el-outline .it a { text-decoration: none; }
.rata-el-outline small { white-space: nowrap; opacity: .7; font-weight: 400; }
.rata-el-files { margin: 0; padding-left: 18px; }
.rata-el-buy { border: 1px solid var(--el-line); border-radius: 12px; padding: 18px; position: sticky; top: 24px; display: flex; flex-direction: column; gap: 10px; }
.rata-el-cover { border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 9; }
.rata-el-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rata-el-buy .price { font-size: 1.7em; font-weight: 800; }
.rata-el-buy dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; font-size: .92em; margin: 4px 0 0; }
.rata-el-buy dd { margin: 0; font-weight: 600; }
.rata-el-btn { display: inline-block; width: 100%; text-align: center; background: var(--el-accent); color: #fff !important; border: 0; border-radius: 8px; padding: 10px 14px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.rata-el-btn--ghost { background: transparent; color: var(--el-accent) !important; border: 1px solid var(--el-accent); }
.rata-el-btn:disabled { opacity: .5; cursor: default; }
.rata-el-done { border: 1px solid var(--el-accent); background: var(--el-soft); border-radius: 12px; padding: 18px 20px; margin-bottom: 24px; }
.rata-el-done h2 { margin: 0 0 4px; }
.rata-el-bar { border: 1px solid currentColor; border-radius: 8px; padding: 8px 12px; font-size: .94em; }

/* Khu vực học */
.rata-el-learn { min-height: 100vh; display: flex; flex-direction: column; background: var(--el-bg); }
.lp-top { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 8px 16px; border-bottom: 1px solid var(--el-line); position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 6; background: var(--el-bg); }
.lp-exit { text-decoration: none; white-space: nowrap; }
.lp-menu { font: inherit; background: none; border: 1px solid var(--el-line); border-radius: 6px; padding: 2px 9px; cursor: pointer; color: inherit; }
.lp-name { flex: 1 1 200px; min-width: 0; }
.lp-remain { font-size: .9em; opacity: .75; white-space: nowrap; }
.lp-top .rata-el-btn { width: auto; padding: 7px 14px; }
.rata-el-ring { width: 38px; height: 38px; flex: none; }
.rata-el-ring circle { fill: none; stroke-width: 4; }
.rata-el-ring .bg { stroke: var(--el-soft); }
.rata-el-ring .fg { stroke: var(--el-accent); }
.rata-el-ring text { fill: currentColor; font-size: 9.5px; font-weight: 700; }
.lp-body { display: grid; grid-template-columns: clamp(300px, 26vw, 380px) minmax(0, 1fr); flex: 1; }
.side-off .lp-body { grid-template-columns: minmax(0, 1fr); }
.side-off .lp-side { display: none; }
.lp-side { border: 0; border-right: 1px solid var(--el-line); border-radius: 0; align-self: start; position: sticky; top: var(--lp-top, 56px); max-height: calc(100vh - var(--lp-top, 56px)); overflow-y: auto; overscroll-behavior: contain; }
.lp-side .it { align-items: center; justify-content: flex-start; }
.lp-side .it > a, .lp-side .it > span:not(.ic) { flex: 1; min-width: 0; }
.lp-side .ic { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--el-line); flex: none; display: grid; place-items: center; font-size: 10px; }
.lp-side .it.done .ic { background: #15803d; border-color: #15803d; color: #fff; }
.lp-side .it.on { background: var(--el-soft); font-weight: 700; }
.lp-side .it.on .ic { border-color: var(--el-accent); }
.lp-side .it.lock { opacity: .6; }
.lp-main { padding: 24px; max-width: 880px; width: 100%; margin: 0 auto; }
.lp-main h1 { margin: 0 0 16px; font-size: 1.6em; }
.lp-tabs { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--el-line); }
.lp-tab { font: inherit; background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 14px; cursor: pointer; color: inherit; opacity: .7; margin-bottom: -1px; }
.lp-tab[aria-pressed="true"] { opacity: 1; font-weight: 700; border-bottom-color: var(--el-accent); }
.lp-tab:focus-visible { outline: 2px solid var(--el-accent); outline-offset: -2px; }
.lp-panel { padding: 16px 0; }
/* Tab Thảo luận để nguyên giao diện của addon Bình luận: chỉ chỉnh ô Ghi chú. */
#lp-ghi textarea { width: 100%; }
.lp-desc { margin: -4px 0 16px; opacity: .8; }
.lp-foot { display: flex; justify-content: space-between; gap: 12px; align-items: center; border-top: 1px solid var(--el-line); padding-top: 14px; margin-top: 24px; }
.lp-foot a { text-decoration: none; }
.rata-el-learn .fox40-cta, .rata-el-learn .fox40-doc-tools { display: none; }
.rata-el-team-buy { font-size: .92em; }
.rata-el-team-buy input[type=number] { width: 70px; }
.rata-el-msg { color: #b91c1c; }
.rata-el-saved { font-size: .85em; opacity: .7; }

/* Tài khoản */
.rata-el-subtabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.rata-el-subtabs a { border: 1px solid var(--el-line); border-radius: 999px; padding: 3px 12px; text-decoration: none; font-size: .92em; }
.rata-el-subtabs a.is-on { background: var(--el-accent); border-color: var(--el-accent); color: #fff; }
.rata-el-pbar { display: inline-block; width: 90px; height: 6px; border-radius: 9px; background: var(--el-soft); vertical-align: middle; margin-right: 8px; overflow: hidden; }
.rata-el-pbar i { display: block; height: 100%; background: var(--el-accent); }
.rata-el-note-item { border-bottom: 1px solid var(--el-line); padding: 10px 0; }
.rata-el-note-item h3 { font-size: 1em; margin: 0; }
.rata-el-note-item p { margin: 4px 0 0; }
.rata-el-table { width: 100%; border-collapse: collapse; }
.rata-el-table th, .rata-el-table td { text-align: left; padding: 8px; border-bottom: 1px solid var(--el-line); }
@media (max-width: 860px) {
	/* Điện thoại: ảnh lớn, tên, mô tả, giảng viên rồi mới tới khối giá; phần còn lại của trang ở dưới. */
	.rata-el-grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
	.rata-el-grid > .rata-el-body { display: contents; }
	.rata-el-grid > .rata-el-body > .rata-el-note, .rata-el-hero, .rata-el-grid > .rata-el-body > h1, .rata-el-lead, .rata-el-by { order: -2; }
	.rata-el-buy { position: static; order: -1; align-self: stretch; width: auto; margin: 8px 0 28px; }
	.rata-el-grid > .rata-el-body > h1 { margin-top: 4px; }
	.rata-el-by { margin: 0 0 8px; }
	.lp-body { grid-template-columns: minmax(0, 1fr); }
	/* align-self: stretch, height: ngăn kéo cao tới đáy màn hình để cuộn được (align-self: start thu chiều cao về nội dung). */
	.lp-side { position: fixed; top: var(--lp-top, 56px); left: 0; bottom: 0; align-self: stretch; height: calc(100dvh - var(--lp-top, 56px)); width: min(320px, 86vw); max-height: none; z-index: 20; background: var(--el-bg); border-right: 1px solid var(--el-line); box-shadow: 8px 0 24px rgba(0, 0, 0, .18); }
	.side-off .lp-side { display: none; }
	.lp-main { padding: 18px 16px; }
}

/* Biến thể */
.rata-el-vchip { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 999px; font-size: 11px; line-height: 18px; font-weight: 600; color: #fff; background: var(--vc, #555); vertical-align: middle; }
.rata-el-vlegend { font-size: 14px; }
.lp-vars { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--f-border, #e5e5e5); font-size: 13px; }
.lp-vars select { max-width: 100%; }
.lp-vchips { display: flex; flex-wrap: wrap; gap: 4px; }
.lp-vchips button { padding: 2px 9px; border: 1px solid var(--vc, currentColor); border-radius: 999px; background: transparent; color: inherit; font: inherit; font-size: 12px; cursor: pointer; }
.lp-vchips button[aria-pressed="true"] { background: var(--vc, var(--el-accent, #1d2327)); border-color: var(--vc, var(--el-accent, #1d2327)); color: #fff; }
.rata-el-outline .it.buy a { opacity: .75; }
.rata-el-outline .it[hidden] { display: none; }
.lp-cmp { display: inline-block; margin: 4px 12px; font-size: 12px; }
.lp-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.lp-compare ul { margin: 8px 0 0; padding-left: 18px; }
.lp-compare li small { display: block; opacity: .75; }
.rata-el-opts { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.rata-el-opts .opt { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; padding: 10px; border: 1px solid var(--f-border, #e5e5e5); border-radius: 10px; }
.rata-el-opts .opt.have { border-color: var(--el-accent, #1d2327); }
.rata-el-opts .opt small { display: block; font-size: 12px; opacity: .75; }
.rata-el-opts .opt .p { text-align: right; font-weight: 700; }
.rata-el-opts .opt .p s { font-weight: 400; opacity: .6; }
.rata-el-opts .opt > :last-child { grid-column: 1 / -1; }

/* Thành phần bài */
.lp-meta { margin: -4px 0 12px; font-size: 13.5px; opacity: .75; }
.lp-related { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--f-border, #e5e5e5); }
.lp-related h2 { font-size: 18px; }
.rata-el-frame { max-width: 860px; margin: 0 auto; padding: 24px 20px; }
.lp-frame-note { font-size: 13px; opacity: .7; }

/* Trình xem PDF */
.rata-el-pdf { margin: 16px 0; border: 1px solid var(--f-border, #e5e5e5); border-radius: 10px; overflow: hidden; background: var(--f-surface, #fff); }
.rata-el-pdf__bar { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: space-between; padding: 8px 10px; border-bottom: 1px solid var(--f-border, #e5e5e5); font-size: 13.5px; }
.rata-el-pdf__tools { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.rata-el-pdf__tools button, .rata-el-pdf__tools a { padding: 3px 9px; border: 1px solid var(--f-border, #dcdcde); border-radius: 6px; background: transparent; color: inherit; font: inherit; cursor: pointer; text-decoration: none; }
.rata-el-pdf__view { position: relative; max-height: 80vh; overflow: auto; text-align: center; background: #f3f3f3; }
.rata-el-pdf:fullscreen .rata-el-pdf__view { max-height: none; height: calc(100vh - 48px); }
.rata-el-pdf__view canvas { display: block; margin: 0 auto; }
.rata-el-pdf__msg { padding: 24px; margin: 0; }

/* Chứng nhận */
.rata-el-cert-page { max-width: 960px; margin: 0 auto; padding: 32px 20px; }
.rata-el-cert-status { display: inline-block; padding: 4px 12px; border-radius: 999px; font-weight: 700; }
.rata-el-cert-status.is-ok { background: #e6f4ea; color: #1a7f37; }
.rata-el-cert-status.is-off { background: #fdecea; color: #b32d2e; }
.rata-el-cert-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
.rata-el-cert-facts dt { opacity: .7; }
.rata-el-cert canvas { display: block; width: 100%; height: auto; border: 1px solid var(--f-border, #e5e5e5); border-radius: 8px; }
.rata-el-cert figcaption { margin-top: 10px; }

/* Xem như học viên (mở từ Studio). */
.lp-asbar{position:sticky;top:0;z-index:60;margin:0;padding:8px 16px;background:#fff4d6;color:#4a3800;font-size:14px;text-align:center;border-bottom:1px solid #f0d58a}

/* Mục lục bài học: khối đầu bài nằm trong luồng nội dung (không dính lên nội dung khi cuộn); nút tròn ghim cạnh phải hiện khi đã cuộn qua khối. */
.rata-el .lp-toc{margin:0 0 1.5rem}
.rata-el .lp-toc .fox40-toc{position:static;top:auto;max-height:none}
.rata-el-tocfab{transition:opacity .2s,transform .2s}
.rata-el-tocfab.is-near{opacity:0;visibility:hidden;pointer-events:none;transform:scale(.85)}
@media (max-width:782px){.rata-el-tocfab{top:auto!important;bottom:84px;right:16px}.rata-el-tocfab~.fox40-toc-panel{top:auto;bottom:140px;right:16px;left:16px;width:auto}}

/* Mục lục bài học dạng cây: tiêu đề H2 là nhánh chính có số thứ tự, H3/H4 là nhánh con nối bằng đường kẻ. */
.rata-el :is(.lp-toc .fox40-toc, .fox40-toc-panel) ol{counter-reset:lptoc;margin:0;padding:0;list-style:none}
.rata-el :is(.lp-toc .fox40-toc, .fox40-toc-panel) li{counter-increment:lptoc;position:relative;margin:.3rem 0}
.rata-el :is(.lp-toc .fox40-toc, .fox40-toc-panel) > ol > li > a::before,.rata-el .fox40-toc-panel__body > ol > li > a::before{content:counter(lptoc) ". ";color:var(--f-muted,#6b7280);font-variant-numeric:tabular-nums}
.rata-el :is(.lp-toc .fox40-toc, .fox40-toc-panel) ol ol{margin:.25rem 0 .35rem .45rem;padding-left:0;border-left:1px solid color-mix(in srgb,currentColor 28%,transparent)}
.rata-el :is(.lp-toc .fox40-toc, .fox40-toc-panel) ol ol > li{padding-left:1rem}
.rata-el :is(.lp-toc .fox40-toc, .fox40-toc-panel) ol ol > li::before{content:"";position:absolute;left:0;top:.72em;width:.7rem;border-top:1px solid color-mix(in srgb,currentColor 28%,transparent)}
.rata-el :is(.lp-toc .fox40-toc, .fox40-toc-panel) ol ol > li:last-child{background:linear-gradient(var(--el-bg,#fff),var(--el-bg,#fff)) no-repeat -1px calc(.72em + 1px)/1px 100%}

/* Biểu tượng quyền xem trong mục lục. */
.rata-el-eye { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; margin-left: 8px; line-height: 0; }
.rata-el-eye svg { display: block; }
.rata-el-eye svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rata-el-eye.is-open { color: #15803d; }
.rata-el-eye.is-shut { color: var(--el-muted, #8a8f98); }

/* Trang giới thiệu: ảnh đại diện lớn đầu trang. */
.rata-el-hero { border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; margin-bottom: 20px; }
.rata-el-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Mục lục trang học: đầu mục lục, dòng tên phần gọn. */
.lp-sidehead { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--el-line); font-size: .9em; }
.lp-close { display: none; font: inherit; background: none; border: 1px solid var(--el-line); border-radius: 6px; padding: 0 8px; line-height: 26px; cursor: pointer; color: inherit; }
.lp-side .ch { padding: 6px 12px; font-size: .88em; line-height: 1.3; align-items: center; }
.lp-side .ch small { font-size: .9em; }
.lp-side .it { padding: 7px 12px; line-height: 1.35; }
.lp-scrim { position: fixed; inset: 0; z-index: 19; background: rgba(0, 0, 0, .35); }
@media (max-width: 860px) {
	.lp-close { display: inline-block; }
	.lp-side { width: min(360px, 88vw); }
}

/* Thanh trên trang học, màn hẹp: một dòng; tên khóa học một dòng có dấu …; ẩn số ngày còn lại; nút gọn. */
@media (max-width: 860px) {
	.lp-top { flex-wrap: nowrap; gap: 8px; padding: 8px 12px; }
	.lp-name { flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .95em; }
	.lp-top .rata-el-ring, .lp-top svg { flex: none; }
	.lp-remain { display: none; }
	.lp-top .rata-el-btn { flex: none; padding: 6px 10px; font-size: .85em; white-space: nowrap; }
}

/* Danh sách khóa học: bộ lọc danh mục dạng cây ở cột trái; điện thoại gập vào nút Lọc. */
.rata-el-catalog { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: start; margin-top: 20px; }
.rata-el-catalog.no-tree { grid-template-columns: minmax(0, 1fr); }
.rata-el-tree { position: sticky; top: calc(var(--f-header-h, 72px) + 16px); }
.rata-el-treebox > summary { display: none; }
.rata-el-treehd { margin: 0 0 8px; font-size: .78em; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .65; }
.rata-el-tree ul { list-style: none; margin: 0; padding: 0; }
.rata-el-tree ul ul { margin: 2px 0 4px 14px; padding-left: 10px; border-left: 1px solid var(--el-line); }
.rata-el-tree li { margin: 0; }
.rata-el-tree li.leaf, .rata-el-tree li > details > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rata-el-tree li.leaf, .rata-el-tree li > details > summary { padding: 5px 10px; border-radius: 8px; }
.rata-el-tree li > details > summary { cursor: pointer; list-style: none; }
.rata-el-tree li > details > summary::-webkit-details-marker { display: none; }
.rata-el-tree li > details > summary::before { content: "▸"; margin-right: -2px; opacity: .55; font-size: .8em; order: -1; }
.rata-el-tree li > details[open] > summary::before { content: "▾"; }
.rata-el-tree li > details > summary a, .rata-el-tree li.leaf a { flex: 1 1 auto; text-decoration: none; color: inherit; }
.rata-el-tree a.is-on { color: var(--el-accent); font-weight: 700; }
.rata-el-tree li.leaf:has(> a.is-on), .rata-el-tree li > details > summary:has(> a.is-on) { background: color-mix(in srgb, var(--el-accent) 12%, transparent); }
.rata-el-tree li.leaf:hover, .rata-el-tree li > details > summary:hover { background: color-mix(in srgb, var(--el-accent) 7%, transparent); }
.rata-el-tree small { flex: none; min-width: 22px; padding: 0 6px; border-radius: 999px; font-size: .75em; line-height: 18px; text-align: center; opacity: .75; border: 1px solid var(--el-line); }
@media (max-width: 860px) {
	.rata-el-catalog { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.rata-el-tree { position: static; }
	.rata-el-treebox { border: 1px solid var(--el-line); border-radius: 12px; }
	.rata-el-treebox > summary { display: flex; gap: 6px; align-items: center; padding: 10px 14px; cursor: pointer; list-style: none; }
	.rata-el-treebox > summary::-webkit-details-marker { display: none; }
	.rata-el-treebox > summary::after { content: "▾"; margin-left: auto; opacity: .6; }
	.rata-el-treebox[open] > summary { border-bottom: 1px solid var(--el-line); }
	.rata-el-treebox[open] > summary::after { content: "▴"; }
	.rata-el-treebox > .rata-el-treehd { display: none; }
	.rata-el-treebox > ul { padding: 8px 6px 10px; }
}

/* Trạng thái bài như Tutor: ổ khóa (cần đăng ký), đồng hồ (chờ tới lượt); bài kế chưa mở; điều kiện nghe. */
.rata-el-eye.is-lock,
.rata-el-eye.is-wait { color: var(--el-muted, #8a8f98); }
.rata-el-try { white-space: nowrap; }
.rata-el-since { margin: 8px 0 0; font-size: .85em; opacity: .75; }
.lp-off { opacity: .45; cursor: not-allowed; }
.lp-need { font-size: .82em; opacity: .8; white-space: nowrap; }
.rata-el-btn[disabled] { opacity: .5; cursor: not-allowed; }
.rata-el-buy .rata-el-btn + .rata-el-btn { margin-top: 8px; }
