/* ===== Góc học tập — tệp gộp 1/2, SINH BỞI tools/gop-css-goc.js — đừng sửa tay, sửa tệp nguồn rồi chạy lại =====
   Nguồn theo thứ tự: phần viết tay đầu theme-dark.css (nút lên đầu trang) · dashboard-tid.css.
   (games.css vẫn nạp riêng ở chỗ cũ, trước color-pass.css: dời ra sau thì system.css hết đè min-height 44px của .gm-chip trên điện thoại.)
   Nạp sau dashboard.css, trước lessons.css. Mỗi phần mở bằng dòng "######## [tên tệp nguồn] ########".
   Đã bỏ quy tắc chết (html[data-theme="dark"], class không còn dùng). */

/* ######## [theme-dark.css] ######## */
/* =====================================================================
   GIAO DIỆN TỐI — nền than, thẻ than sáng hơn một bậc, chữ kem sáng (kiểu "dark mode" thật)
   Bật bằng html[data-theme="dark"] (theme.js). Nạp CUỐI mỗi trang để đè các stylesheet khác.
   Phần đầu viết tay; phần sau dòng "TỰ SINH" do tools/build-dark.js tạo từ CSS gốc — sửa màu ở CSS gốc rồi chạy lại script.
   ===================================================================== */

/* nút chuyển sáng/tối — mượn class của nút ngôn ngữ, chỉ chỉnh phần riêng */
.theme-toggle .tt-ico { display: inline-grid; place-items: center; line-height: 0; }
.theme-toggle .tt-ico svg { display: block; }
.theme-toggle.pill-icon, .theme-toggle.nav-pill, .theme-toggle.p-pill { gap: 0; padding-left: 0; padding-right: 0; width: 40px; justify-content: center; }
.theme-toggle.side-link { gap: 12px; }
/* nút ngôn ngữ nổi ở góc: nút giao diện là ô vuông tròn bên trái nó (vị trí do theme.js tính) */
.lang-pill.theme-toggle, .lang.theme-toggle, .p-lang-float.theme-toggle { padding-left: 0 !important; padding-right: 0 !important; width: 42px; justify-content: center; display: inline-flex; align-items: center; }
/* nút lên đầu trang (theme.js) */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 55; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 3px solid #121212; border-radius: 50%; background: var(--v3-paper, #FFFDF8); color: #121212; box-shadow: 3px 3px 0 #121212; cursor: pointer; animation: toTopIn .2s ease; }
.to-top:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 #121212; background: var(--v3-yellow, #EBC24F); }
.to-top:focus-visible { outline: 3px solid var(--v3-cta, #F07A3C); outline-offset: 3px; }
.to-top[hidden] { display: none; }
@keyframes toTopIn { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 600px) { .to-top { right: 14px; bottom: 14px; width: 42px; height: 42px; } }
@media print { .to-top { display: none !important; } }
html.theme-switching, html.theme-switching *, html.theme-switching *::before, html.theme-switching *::after {
  transition: background-color .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease, fill .3s ease !important;
}
/* ngoại lệ giữ sáng: logo TOEX cần nền giấy để hiện đúng màu */
/* ảnh chụp: dịu nhẹ cho hợp nền tối */

/* ######## [dashboard-tid.css] ######## */
/* ===== Góc học tập — giao diện kiểu The IELTS Dictionary, chủ đề TOEIC (25/10/2026) =====
   Nạp SAU dashboard.css và theme-dark.css. Đổi "lớp áo" cho mọi tab: nền xám nhạt, thẻ màu bão hoà không viền,
   bo góc 30px, chữ Quicksand đậm, nút bo tròn; thanh bên là dải biểu tượng, rê chuột thì mở rộng.
   Trang Tổng quan dùng lưới riêng .tid-grid (dashboard.js → renderOverview). */
.dash {
  --t-bg: #F3F5F8; --t-card: #FFFFFF; --t-ink: #1B1D22; --t-muted: #6B7280; --t-line: rgba(27, 29, 34, .09); --t-soft: #F4F6FA;
  --t-yellow: #FFC238; --t-blue: #5278F5; --t-purple: #8E6BDB; --t-green: #20B989; --t-coral: #FF6555; --t-orange: #FF9442; --t-teal: #187866; --t-pink: #FF8FA3; --t-lav: #E6DBFA;
  --t-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 18px rgba(16, 24, 40, .06);
  --v3-display: "Quicksand", "Plus Jakarta Sans", system-ui, sans-serif;
  --dk: var(--t-ink); --dp: var(--t-card);
}
body.dash { background: var(--t-bg) !important; }
.dash-wrap, .dash-lookup { font-family: "Quicksand", "Plus Jakarta Sans", system-ui, sans-serif; color: var(--t-ink); }
.dash-wrap b, .dash-wrap strong, .dash-wrap h1, .dash-wrap h2, .dash-wrap h3 { font-weight: 700; }

/* ---- bỏ viền mực + bóng cứng ở mọi thành phần, thay bằng viền mảnh ---- */
.dash-wrap [class^="dash-"], .dash-wrap [class*=" dash-"], .dash-wrap [class^="dash-"] > :is(i, b, span, button), .dash-wrap .gm-btn, .dash-lookup { box-shadow: none; border-color: var(--t-line); }
.dash-wrap [class^="dash-"]:not(input, textarea, select), .dash-wrap [class*=" dash-"]:not(input, textarea, select) { border-width: 1.5px; }

/* ---- thẻ và hero ---- */
.dash-wrap .dash-card, .dash-wrap .tid-card { border: 0; border-radius: 30px; background: var(--t-card); color: var(--t-ink); box-shadow: var(--t-shadow); }
.dash-wrap .dash-hero { border: 0; border-radius: 30px; box-shadow: none; background: var(--t-yellow); color: var(--t-ink); }
.dash-wrap .dash-hero::after { background: rgba(255, 255, 255, .16); width: 260px; height: 260px; }
.dash-wrap .dash-hero > small { font-family: inherit; letter-spacing: .14em; font-weight: 700; }
.dash-wrap .dash-hero h1 { font-weight: 700; letter-spacing: -.01em; }
/* màu: xanh / tím / lục / san hô / cam / teal chữ trắng; vàng chữ mực */
.dash-wrap :is(.dash-hero, .dash-card).glacier { background: var(--t-blue); color: #fff; }
.dash-wrap :is(.dash-hero, .dash-card).lilac, .dash-wrap :is(.dash-hero, .dash-card).plum { background: var(--t-purple); color: #fff; }
.dash-wrap :is(.dash-hero, .dash-card):is(.green, .green2) { background: var(--t-green); color: #fff; }
.dash-wrap :is(.dash-hero, .dash-card).red { background: var(--t-coral); color: #fff; }
.dash-wrap :is(.dash-hero, .dash-card).orange { background: var(--t-orange); color: #fff; }
.dash-wrap :is(.dash-hero, .dash-card).teal { background: var(--t-teal); color: #fff; }
.dash-wrap :is(.dash-hero, .dash-card).yellow { background: var(--t-yellow); color: #1B1D22; }
.dash-wrap :is(.dash-hero, .dash-card).ink { background: #1B1D22; color: #fff; }
.dash-wrap :is(.dash-hero, .dash-card).paper { background: var(--t-card); color: var(--t-ink); }
.dash-wrap :is(.dash-hero, .dash-card):is(.glacier, .lilac, .plum, .green, .green2, .red, .orange, .teal, .ink) :is(.dash-sub, p, small, em, a:not(.gm-btn)) { color: rgba(255, 255, 255, .88); }
.dash-wrap .dash-sub { color: var(--t-muted); }
.dash-wrap .dash-hero .dash-sub { color: inherit; opacity: .85; }
.dash-wrap .dash-sec-h { font-weight: 700; font-size: 24px; }
.dash-wrap .dash-sec-h::after { border-bottom: 1.5px dashed var(--t-line); }

/* ---- nút ---- */
.dash-wrap .gm-btn { min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--t-coral); color: #fff; font-family: inherit; font-weight: 700; box-shadow: none; transition: transform .12s, filter .12s; }
.dash-wrap .gm-btn:hover { transform: translateY(-1px); box-shadow: none; filter: brightness(1.05); }
.dash-wrap .gm-btn.ink { background: #1B1D22; color: #fff; }
.dash-wrap .gm-btn.ghost { background: rgba(255, 255, 255, .92); color: #1B1D22; border: 0; }
.dash-wrap .dash-card.paper .gm-btn.ghost, .dash-wrap .dash-card:not([class*=" "]) .gm-btn.ghost { background: var(--t-soft); color: var(--t-ink); }
.dash-wrap .dash-hero.ink .gm-btn.ghost { background: rgba(255, 255, 255, .14); color: #fff; }
.dash-wrap a:focus-visible, .dash-wrap button:focus-visible, .dash-wrap input:focus-visible, .dash-wrap select:focus-visible { outline: 3px solid var(--t-blue); outline-offset: 2px; }

/* ---- ô nhập ---- */
.dash-wrap :is(input:not([type=range]):not([type=checkbox]):not([type=radio]), textarea, select) { border: 1.5px solid var(--t-line) !important; border-radius: 14px; background: var(--t-soft); color: var(--t-ink); font-family: inherit; }

/* ---- chip, nhãn, thanh tiến độ ---- */
.dash-wrap .dash-chips span, .dash-wrap .dash-pill { border: 0; border-radius: 999px; background: rgba(255, 255, 255, .28); color: inherit; font-weight: 700; }
.dash-wrap .dash-bar { background: var(--t-line); } .dash-wrap .dash-bar i { background: var(--t-coral); }

/* ---- các khối con hay dùng trong mọi tab: nền mềm, không viền ---- */
.dash-wrap :is(.dash-bucket, .dash-recent li, .dash-opts button, .dash-rows li, .dash-words li, .dash-set, .dash-box, .dash-part, .dash-test, .dash-vcard, .dash-topic, .dash-unit, .dash-lex, .dash-course, .dash-article, .dash-review, .dash-progress, .dash-continue, .dash-book, .dash-skills a, .dash-podium > div, .dash-note, .dash-quiz, .dash-plan li) { border: 0; border-radius: 20px; background: var(--t-soft); }
.dash-wrap .dash-card:is(.glacier, .lilac, .green, .red, .orange, .teal, .yellow) :is(.dash-bucket, .dash-recent li) { background: rgba(255, 255, 255, .95); color: #1B1D22; }
.dash-wrap .dash-card:is(.glacier, .lilac, .green, .red, .orange, .teal, .yellow) :is(.dash-bucket, .dash-recent li) :is(span, small) { color: #4B5563; }
.dash-wrap :is(.dash-set, .dash-vcard, .dash-test, .dash-part, .dash-course, .dash-topic) { transition: transform .15s; }
.dash-wrap :is(.dash-set, .dash-vcard, .dash-test, .dash-part, .dash-course, .dash-topic):hover { transform: translateY(-3px); }
.dash-wrap .dash-set.ink { background: #1B1D22; color: #fff; }
.dash-wrap .dash-set.lilac { background: var(--t-purple); color: #fff; } .dash-wrap .dash-set.glacier { background: var(--t-blue); color: #fff; } .dash-wrap .dash-set.orange { background: var(--t-orange); color: #fff; }
.dash-wrap .dash-set :is(p, small) { color: inherit; opacity: .88; }
.dash-wrap .dash-ic, .dash-wrap .dash-step-n, .dash-wrap .dash-shelf-ic, .dash-wrap .dash-course-ic { border: 0; border-radius: 14px; }
.dash-wrap .dash-skilltabs button, .dash-wrap .dash-chiprow button, .dash-wrap .dash-seg button { border: 0; border-radius: 999px; background: var(--t-card); box-shadow: var(--t-shadow); }
.dash-wrap .dash-skilltabs button.on, .dash-wrap .dash-chiprow button.on, .dash-wrap .dash-seg button.on { background: var(--t-ink); color: var(--t-card); }
.dash-wrap .dash-polaroid { border: 0; border-radius: 26px; background: var(--t-card); box-shadow: var(--t-shadow); transform: none !important; padding: 10px 10px 16px; }
.dash-wrap .dash-polaroid:hover { transform: translateY(-4px) !important; }
.dash-wrap .dash-photo { border: 0; border-radius: 20px; background-image: none; }
.dash-wrap .dash-photo.yellow { background-color: var(--t-yellow); } .dash-wrap .dash-photo.green { background-color: var(--t-green); } .dash-wrap .dash-photo.glacier { background-color: var(--t-blue); } .dash-wrap .dash-photo.orange { background-color: var(--t-orange); } .dash-wrap .dash-photo.lilac { background-color: var(--t-purple); } .dash-wrap .dash-photo.green2 { background-color: var(--t-teal); } .dash-wrap .dash-photo { background-color: var(--t-coral); }
.dash-wrap .dash-photo em { border: 0; border-radius: 999px; transform: none; background: rgba(255, 255, 255, .95); color: #1B1D22; }
.dash-wrap .dash-polaroid b { font-weight: 700; }

/* ---- thanh mục con (Sổ từ vựng, Trò chơi) ---- */
.dash-wrap .dash-subnav a { border: 0; background: var(--t-card); color: var(--t-ink); box-shadow: var(--t-shadow); font-weight: 700; }
.dash-wrap .dash-subnav a[aria-current="page"] { background: var(--t-blue); color: #fff; }

/* ---- thanh bên: dải biểu tượng ---- */
.dash-side-top { display: flex; align-items: center; gap: 8px; }
.dash-search { position: relative; display: flex; align-items: center; flex: 1; min-width: 0; height: 44px; border-radius: 14px; background: var(--t-soft); }
.dash-search svg { position: absolute; left: 13px; width: 20px; height: 20px; color: var(--t-muted); pointer-events: none; }
.dash-wrap .dash-search input { width: 100%; height: 44px; padding: 0 58px 0 42px; border: 0 !important; background: transparent; font-size: 15px; }
.dash-search kbd { position: absolute; right: 8px; padding: 2px 6px; border-radius: 6px; background: var(--t-card); color: var(--t-muted); font: 700 11px/1.4 "Quicksand", sans-serif; }
.dash-pin { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border: 0; border-radius: 12px; background: transparent; color: var(--t-muted); cursor: pointer; }
.dash-pin:hover { background: var(--t-soft); color: var(--t-ink); }
.dash-pin svg { width: 22px; height: 22px; }
.dash-wrap .dash-side { border: 0; border-radius: 26px; background: var(--t-card); box-shadow: var(--t-shadow); gap: 10px; }
.dash-wrap .dash-side-head { display: none; }
.dash-wrap .dash-nav-label { font-family: inherit; font-weight: 700; color: var(--t-muted); }
.dash-wrap .dash-nav a { min-height: 42px; border: 0; border-radius: 14px; color: var(--t-ink); font-weight: 600; }
.dash-wrap .dash-nav a:hover { background: var(--t-soft); }
.dash-wrap .dash-nav a[aria-current="page"] { background: var(--t-blue); color: #fff; box-shadow: 0 6px 14px rgba(79, 124, 247, .3); }
.dash-wrap .dash-me { border-top: 1.5px solid var(--t-line); }
.dash-wrap .dash-av { border: 0; background: var(--t-lav); }

/* thanh bên kiểu TID (máy tính): sát mép trái, cao hết màn hình; thu gọn 84px, mở rộng 280px đẩy nội dung sang phải */
.dash-brand, .dash-search-ic, .dash-lang { display: none; }
@media (min-width: 861px) {
  body.dash > header[data-p-nav], body.dash > .p-nav { display: none !important; } /* như TID: không có thanh đầu trang */
  .dash-wrap { display: block; padding: 22px clamp(16px, 2vw, 28px) 64px calc(84px + clamp(16px, 2vw, 28px)); transition: padding-left .25s ease; }
  body.dash-pinned .dash-wrap { padding-left: calc(256px + clamp(16px, 2vw, 28px)); }
  .dash-wrap .dash-side { position: fixed; left: 0; top: 0; bottom: 0; z-index: 60; width: 84px; max-height: none; padding: 18px 12px 14px; border: 0; border-right: 1.5px solid var(--t-line); border-radius: 0; box-shadow: none; overflow-x: hidden; overflow-y: auto; scrollbar-width: none; transition: width .25s ease; }
  .dash-side::-webkit-scrollbar { display: none; }
  body.dash-pinned .dash-wrap .dash-side { width: 256px; padding: 18px 16px 14px; }
  .dash-brand { display: flex; flex-direction: column; align-items: center; gap: 14px; }
  body.dash-pinned .dash-brand { flex-direction: row; gap: 10px; }
  .dash-logo { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--t-ink); text-decoration: none; }
  .dash-logo img { width: 44px; height: 44px; flex: none; padding: 5px; border-radius: 14px; background: var(--t-soft); }
  .dash-logo span { display: none; flex-direction: column; line-height: 1.05; } .dash-logo b { font-size: 19px; letter-spacing: .02em; } .dash-logo small { font-size: 10.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--t-muted); }
  body.dash-pinned .dash-logo { flex: 1; } body.dash-pinned .dash-logo span { display: flex; }
  .dash-theme { display: grid; place-items: center; width: 44px; height: 44px; border: 2.5px solid #F5B400; border-radius: 14px; background: #1B1D22; color: #FFC02E; cursor: pointer; box-shadow: 0 4px 10px rgba(245, 180, 0, .25); transition: transform .15s; }
  .dash-theme:hover { transform: rotate(-12deg) scale(1.05); } .dash-theme .tt-ico { display: grid; }
  .dash-wrap .dash-pin { display: grid; width: 40px; height: 40px; }
  .dash-pin-arrow { transition: transform .25s; transform-box: fill-box; transform-origin: center; } body.dash-pinned .dash-pin-arrow { transform: scaleX(-1); }
  .dash-side-top { display: block; margin-top: 4px; }
  .dash-search-ic { display: grid; place-items: center; width: 100%; height: 44px; border: 0; border-radius: 14px; background: transparent; color: var(--t-ink); cursor: pointer; }
  .dash-search-ic:hover { background: var(--t-soft); } .dash-search-ic svg { width: 22px; height: 22px; }
  .dash-side-top .dash-search { display: none; }
  body.dash-pinned .dash-search-ic { display: none; } body.dash-pinned .dash-side-top .dash-search { display: flex; }
  /* thu gọn: chỉ còn biểu tượng */
  body:not(.dash-pinned) .dash-side :is(.dash-nav a span, .dash-caret, .dash-me b, .dash-logout, .dash-lang span, .dash-lang b) { display: none !important; }
  body:not(.dash-pinned) .dash-side .dash-nav a.sub { display: none !important; }
  body:not(.dash-pinned) .dash-side .dash-nav-label { visibility: hidden; height: 0; margin: 8px 6px; border-top: 1.5px solid var(--t-line); overflow: hidden; }
  body:not(.dash-pinned) .dash-side .dash-nav a { justify-content: center; padding: 0; }
  body:not(.dash-pinned) .dash-side .dash-me { justify-content: center; }
  .dash-nav a, .dash-nav-label { white-space: nowrap; }
  .dash-lang { display: flex; align-items: center; gap: 12px; min-height: 42px; margin-top: auto; padding: 0 12px; border: 0; border-radius: 14px; background: transparent; color: var(--t-ink); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; }
  .dash-lang:hover { background: var(--t-soft); } .dash-lang svg { width: 20px; height: 20px; flex: none; } .dash-lang b { margin-left: auto; padding: 2px 8px; border-radius: 8px; background: var(--t-soft); font-size: 12px; }
  body:not(.dash-pinned) .dash-lang { justify-content: center; padding: 0; }
  .dash-side .dash-me { margin-top: 0; }
}
@media (max-width: 860px) {
  .dash-side-top { display: none; }
  .dash-wrap .dash-side { border-radius: 20px; }
}

/* ===== Trang Tổng quan (lưới kiểu TID) ===== */
.tid-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 30px; }
.tid-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; overflow: hidden; min-width: 0; }
.tid-card::before { content: ""; position: absolute; right: -70px; bottom: -90px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255, 255, 255, .12); pointer-events: none; }
.tid-white::before, .tid-wide::before, .tid-recent::before { display: none; }
.tid-card h2 { margin: 0; font-size: 26px; line-height: 1.15; letter-spacing: -.01em; color: inherit; }
.tid-card .tid-big { font-size: clamp(34px, 3.6vw, 54px); line-height: 1.02; letter-spacing: -.02em; }
.tid-sub, .tid-month { margin: 0; font-size: 14px; font-weight: 600; opacity: .85; }
.tid-month { font-size: 20px; font-weight: 700; opacity: .55; margin-top: -6px; }
.tid-kicker { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--t-muted); }
.tid-chip { align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .2); font-size: 12.5px; font-weight: 700; }
.tid-chip.yellow { background: var(--t-yellow); color: #1B1D22; }
.tid-btn { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; font: inherit; font-size: 14.5px; font-weight: 700; text-decoration: none; cursor: pointer; }
.tid-btn.white { background: #fff; color: #1B1D22; }
.tid-btn.ghost { background: rgba(255, 255, 255, .92); color: var(--t-coral); }
.tid-btn:hover { filter: brightness(.97); }
.tid-yellow { background: var(--t-yellow) !important; color: #1B1D22 !important; }
.tid-blue { background: var(--t-blue) !important; color: #fff !important; }
.tid-purple { background: var(--t-purple) !important; color: #fff !important; }
.tid-green { background: var(--t-green) !important; color: #fff !important; }
.tid-coral { background: var(--t-coral) !important; color: #fff !important; }
.tid-white { background: var(--t-card) !important; color: var(--t-ink) !important; }
.tid-card a:not(.tid-btn):not(.tid-bucket):not(.tid-skill) { color: inherit; font-weight: 700; }

/* mục tiêu điểm + bánh xe chọn điểm */
.tid-goal { grid-column: span 2; min-height: 380px; padding: 30px 34px; }
.tid-hello { align-self: flex-start; padding: 7px 14px; border-radius: 999px; background: #fff; font-size: 13.5px; font-weight: 700; color: #1B1D22; }
.tid-goal .tid-big { margin-top: 18px; max-width: 58%; }
.tid-goal-n { display: flex; align-items: baseline; gap: 6px; } .tid-goal-n b { font-size: clamp(56px, 6vw, 84px); line-height: 1; letter-spacing: -.03em; } .tid-goal-n span { font-size: 22px; font-weight: 700; opacity: .55; }
.tid-goal-sub { max-width: 52%; margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.5; }
.tid-picker { position: absolute; right: 34px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; width: 200px; z-index: 1; }
.tid-picker > small { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .7; }
.tid-wheel-wrap { position: relative; width: 100%; }
.tid-wheel { height: 200px; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; padding: 80px 0; mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent); outline: none; overscroll-behavior: contain; }
.tid-wheel::-webkit-scrollbar { display: none; }
.tid-wheel button { display: block; width: 100%; height: 40px; border: 0; background: none; color: #1B1D22; font: 700 22px/40px "Quicksand", sans-serif; opacity: .45; scroll-snap-align: center; cursor: pointer; position: relative; z-index: 2; }
.tid-wheel button[aria-selected="true"] { opacity: 1; font-size: 32px; }
.tid-wheel-lens { position: absolute; left: 0; right: 0; top: 50%; height: 56px; transform: translateY(-50%); border-radius: 18px; background: #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, .1); pointer-events: none; z-index: 1; }
.tid-wheel:focus-visible + .tid-wheel-lens { outline: 3px solid var(--t-blue); outline-offset: 2px; }
.tid-wheel button { z-index: 2; }
.tid-goal-img { position: absolute; right: 18px; top: 16px; width: 96px; height: auto; pointer-events: none; opacity: .95; }

/* chuỗi ngày học */
.tid-streak { min-height: 380px; }
.tid-ring { position: relative; display: grid; place-items: center; width: 190px; height: 190px; margin: 10px auto 4px; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .45); }
.tid-ring > div { display: grid; place-items: center; width: 118px; height: 118px; border-radius: 50%; background: #fff; color: #1B1D22; box-shadow: 0 0 0 10px rgba(255, 255, 255, .18); text-align: center; }
.tid-ring b { font-size: 46px; line-height: 1; } .tid-ring small { display: block; margin-top: -18px; font-size: 11.5px; font-weight: 700; color: #6B7280; }
.tid-ring img { position: absolute; width: 50px; height: 50px; object-fit: cover; object-position: top; border-radius: 50%; background: #fff; border: 3px solid rgba(255, 255, 255, .9); }
.tid-ring img.a { left: 0; top: 18px; } .tid-ring img.b { right: -4px; top: 70px; } .tid-ring img.c { left: 44px; bottom: -8px; }
.tid-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: auto; padding: 10px; border-radius: 20px; background: rgba(255, 255, 255, .14); }
.tid-week span { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; }
.tid-week i { width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .25); border: 2px solid rgba(255, 255, 255, .55); }
.tid-week .on i { background: var(--t-orange); border-color: #fff; }
.tid-week .today { background: #fff; color: #1B1D22; border-radius: 12px; padding: 4px 0; }
.tid-week .today i { border-color: var(--t-orange); }

/* lịch hoạt động */
.tid-cal { min-height: 380px; }
.tid-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px 2px; margin-top: 6px; text-align: center; font-size: 13.5px; font-weight: 700; }
.tid-days b { font-size: 11px; color: var(--t-muted); }
.tid-days span { display: grid; place-items: center; width: 32px; height: 32px; margin: 0 auto; border-radius: 50%; }
.tid-days span.on { background: var(--t-yellow); color: #1B1D22; }
.tid-days span.today { background: var(--t-coral); color: #fff; }
.tid-days span.on.today { box-shadow: 0 0 0 3px var(--t-yellow); }

/* từ vựng */
.tid-vocab { min-height: 400px; }
.tid-buckets { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.tid-bucket { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 18px; background: #fff; color: #1B1D22; text-decoration: none; transition: transform .15s; }
.tid-bucket:hover { transform: translateY(-2px); }
.tid-bucket i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-style: normal; font-size: 13px; font-weight: 700; color: #fff; }
.tid-bucket.lv3 i { background: var(--t-green); } .tid-bucket.lv2 i { background: var(--t-yellow); } .tid-bucket.lv1 i { background: var(--t-blue); } .tid-bucket.lv0 i { background: var(--t-coral); }
.tid-bucket b { font-size: 26px; line-height: 1.1; } .tid-bucket span { font-size: 12.5px; font-weight: 700; color: #6B7280; }
.tid-words { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; border-radius: 18px; background: rgba(255, 255, 255, .15); }
.tid-words span { padding: 3px 10px; border-radius: 999px; background: #fff; color: #1B1D22; font-size: 12.5px; font-weight: 700; }
.tid-vocab .tid-btn { margin-top: auto; }

/* ngày thi + câu hôm nay */
.tid-exam { grid-column: span 2; min-height: 400px; padding: 0; }
.tid-exam-top { position: relative; display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 108px; padding: 18px 24px; background: rgba(255, 255, 255, .22); }
.tid-ticket { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 22px; border-radius: 16px; background: #fff; color: #1B1D22; cursor: pointer; }
.tid-ticket small { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--t-coral); }
.tid-ticket b { font-size: 13.5px; }
.tid-ticket input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0 !important; }
.tid-dots { display: flex; align-items: center; gap: 6px; font-size: 18px; } .tid-dots i { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.tid-count { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: #E8402E; color: #fff; text-align: center; box-shadow: 0 0 0 6px rgba(255, 255, 255, .25); }
.tid-count b { font-size: 26px; line-height: 1; } .tid-count small { margin-top: -14px; font-size: 10.5px; font-weight: 700; }
.tid-exam-img { position: absolute; right: 18px; bottom: 6px; width: 64px; height: auto; }
.tid-exam-body { display: flex; flex-direction: column; gap: 14px; flex: 1; padding: 26px 24px 24px; }
.tid-quote { display: flex; gap: 12px; margin-top: auto; padding: 16px 18px; border-radius: 20px; background: #fff; color: #1B1D22; }
.tid-quote-ic { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: #FFE3DE; color: var(--t-coral); font-size: 20px; font-weight: 700; }
.tid-quote small { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--t-coral); }
.tid-quote small:last-child { text-transform: none; letter-spacing: 0; color: #6B7280; }
.tid-quote p { margin: 4px 0 2px; font-size: 15.5px; font-weight: 700; line-height: 1.45; }
.tid-quote .tid-vi { font-size: 13.5px; font-weight: 500; font-style: italic; color: #4B5563; }
.tid-quote button { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }

/* tổng quan kỹ năng */
.tid-skills { min-height: 400px; gap: 8px; }
.tid-skills-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.tid-skills-head h2 { font-size: 22px; } .tid-skills-head a { font-size: 13px; white-space: nowrap; }
.tid-skill { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 18px; background: rgba(255, 255, 255, .88); color: #1B1D22; text-decoration: none; transition: transform .15s; }
.tid-skill:hover { transform: translateY(-2px); }
.tid-skill i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #E3F6EF; font-style: normal; font-size: 16px; }
.tid-skill span { display: flex; flex-direction: column; min-width: 0; }
.tid-skill small { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--t-green); }
.tid-skill b { font-size: 13.5px; } .tid-skill em { font-style: normal; font-size: 12px; color: #6B7280; }
.tid-skill strong { display: flex; flex-direction: column; align-items: flex-end; font-size: 18px; } .tid-skill strong small { color: #9CA3AF; letter-spacing: 0; text-transform: none; }

/* gợi ý luyện tập + lượt chơi */
.tid-wide { grid-column: 1 / -1; }
.tid-bar { display: block; height: 8px; border-radius: 4px; background: var(--t-soft); overflow: hidden; } .tid-bar i { display: block; height: 100%; border-radius: 4px; background: var(--t-coral); }
.dash-wrap .dash-time-opts button { border: 0; border-radius: 999px; background: var(--t-soft); color: var(--t-ink); font-family: inherit; font-weight: 700; }
.dash-wrap .dash-time-opts button.on { background: var(--t-coral); color: #fff; }
.dash-wrap .dash-plan li > b { border: 0; background: var(--t-blue); color: #fff; }
.dash-wrap .dash-time-head h2 { font-family: inherit; font-weight: 700; }
.tid-recent { margin-top: 26px; }
.dash-wrap .dash-recent li { border: 0; }

/* bong bóng tra từ */
.dash-lookup { border: 0; border-radius: 20px; background: var(--t-card); color: var(--t-ink); box-shadow: 0 18px 44px rgba(16, 24, 40, .2); }
.dash-lookup header b { font-family: "Quicksand", sans-serif; font-weight: 700; }
.dash-lookup .gm-btn { min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--t-coral); color: #fff; box-shadow: none; }
.dash-lookup header button { border: 0; background: var(--t-soft); }

/* ---- màn hình nhỏ ---- */
@media (max-width: 1280px) { .tid-picker { width: 170px; right: 22px; } .tid-goal .tid-big, .tid-goal-sub { max-width: 54%; } }
@media (max-width: 1100px) {
  .tid-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tid-goal, .tid-exam { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .tid-grid { grid-template-columns: 1fr; }
  .tid-goal { padding: 24px; min-height: 0; }
  .tid-goal .tid-big, .tid-goal-sub { max-width: none; }
  .tid-picker { position: static; transform: none; width: 100%; max-width: 260px; margin: 6px auto 0; }
  .tid-goal-img { width: 70px; }
  .tid-streak, .tid-cal, .tid-vocab, .tid-skills, .tid-exam { min-height: 0; }
  .tid-exam-top { flex-wrap: wrap; } .tid-exam-img { display: none; }
}

/* chỉnh sau khi xem thử */
.tid-wheel { position: relative; z-index: 2; }
.tid-wheel-lens { z-index: 1; }
.tid-goal-img { width: 84px; top: 14px; right: 24px; }
.tid-skill { grid-template-columns: 30px minmax(0, 1fr) auto; padding: 9px 12px; }
.tid-skill i { width: 30px; height: 30px; font-size: 14px; }
.tid-skill em, .tid-skill strong small { display: none; }
.tid-skill small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tid-skill b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tid-week .today { padding: 4px 2px; }

/* ---- trò chơi (games.js) và sổ từ (notebook.js) trong góc học tập: cùng lớp áo ---- */
.dash-wrap :is([class^="gm-"], [class*=" gm-"], [class^="nb-"], [class*=" nb-"]) { box-shadow: none; border-color: var(--t-line); }
.dash-wrap :is([class^="gm-"], [class*=" gm-"], [class^="nb-"], [class*=" nb-"]):not(input, textarea, select) { border-width: 1.5px; }
.dash-wrap :is(.gm-card, .gm-panel, .nb-bucket, .nb-due, .gm-hist, .gm-hub > *) { border: 0; border-radius: 26px; background: var(--t-card); color: var(--t-ink); box-shadow: var(--t-shadow); }
.dash-wrap .gm-card { transition: transform .15s; } .dash-wrap .gm-card:hover { transform: translateY(-3px); }
.dash-wrap :is(.gm-ic, .gm-chip, .gm-stat, .gm-tag, .gm-opt, .gm-node, .gm-q, .gm-mail, .gm-explain div, .gm-clues div, .gm-cells div, .nb-rows li, .gm-banner, .gm-record) { border: 0; border-radius: 16px; background: var(--t-soft); color: var(--t-ink); }
.dash-wrap .gm-opt:hover { background: var(--t-lav); }
.dash-wrap .nb-bucket:nth-child(1) { background: #DDF4EC; } .dash-wrap .nb-bucket:nth-child(2) { background: #FFF1CC; } .dash-wrap .nb-bucket:nth-child(3) { background: #E3EBFF; } .dash-wrap .nb-bucket:nth-child(4) { background: #FFE3DE; }
.dash-wrap .nb-due { background: var(--t-blue); color: #fff; }
.dash-wrap .dash-set-words i { border: 0; background: rgba(255, 255, 255, .92); color: #1B1D22; border-radius: 999px; }
.dash-wrap .gm-hist table th { color: var(--t-muted); }

/* chuỗi ngày học: 3 mascot quay vòng quanh vòng tròn, mặt luôn thẳng */
@keyframes tidOrbit { to { transform: rotate(360deg); } }
@keyframes tidUpright { to { transform: rotate(-360deg); } }
.tid-orbit { position: absolute; inset: -2px; border-radius: 50%; animation: tidOrbit 16s linear infinite; pointer-events: none; }
.tid-ring .tid-orbit img { position: absolute; width: 50px; height: 50px; animation: tidUpright 16s linear infinite; }
.tid-ring .tid-orbit img.a { left: -12px; top: 22px; right: auto; bottom: auto; }
.tid-ring .tid-orbit img.b { left: 152px; top: 22px; right: auto; bottom: auto; }
.tid-ring .tid-orbit img.c { left: 70px; top: 165px; right: auto; bottom: auto; }
.tid-streak:hover .tid-orbit, .tid-streak:hover .tid-orbit img { animation-duration: 6s; }
@media (prefers-reduced-motion: reduce) { .tid-orbit, .tid-ring .tid-orbit img { animation: none; } }

/* lưới Tổng quan đổi theo bề rộng vùng nội dung (thanh bên mở rộng thì hẹp lại, như TID) */
.dash-main { container-type: inline-size; container-name: dmain; }
@container dmain (max-width: 1180px) {
  .tid-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tid-goal, .tid-exam { grid-column: 1 / -1; }
}
@container dmain (max-width: 620px) {
  .tid-grid { grid-template-columns: 1fr; }
  .tid-goal { padding: 24px; min-height: 0; }
  .tid-goal .tid-big, .tid-goal-sub { max-width: none; }
  .tid-picker { position: static; transform: none; width: 100%; max-width: 260px; margin: 6px auto 0; }
}

/* ===== chỉnh theo góp ý art director (ChatGPT, 25/10/2026): bớt chói, bo góc 4 cấp, chữ có thứ bậc ===== */
.dash-wrap .dash-card, .dash-wrap .tid-card, .dash-wrap .dash-hero { border-radius: 24px; }
.tid-bucket, .tid-skill, .tid-quote, .tid-week, .tid-words, .dash-wrap :is(.dash-bucket, .dash-recent li, .dash-set, .dash-box, .dash-part, .dash-test, .dash-vcard, .dash-topic, .dash-plan li, .dash-note, .dash-quiz) { border-radius: 16px; }
.dash-wrap .gm-btn, .tid-btn, .dash-wrap .dash-time-opts button { border-radius: 12px; }
.tid-card h2 { font-size: 24px; } .tid-card .tid-big { font-size: clamp(32px, 3.4vw, 52px); }
.tid-goal-img { width: 68px; }
/* chuỗi ngày: vòng mờ hơn, chấm tuần nhỏ hơn */
.tid-ring { border-color: rgba(255, 255, 255, .25); }
.tid-week i { width: 22px; height: 22px; }
/* từ vựng: 4 số gọn một hàng */
.tid-buckets { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.tid-bucket { padding: 10px 8px; align-items: center; text-align: center; gap: 0; }
.tid-bucket i { width: 20px; height: 20px; font-size: 11px; margin-bottom: 4px; } .tid-bucket b { font-size: 22px; } .tid-bucket span { font-size: 11px; line-height: 1.2; }
.tid-words span:nth-child(n+5) { display: none; }
.tid-vocab, .tid-skills, .tid-exam { min-height: 320px; }
/* ngày thi chưa đặt / còn xa: nền nhạt, chữ san hô */
.tid-coral-soft { background: #FFF1EE !important; color: #1B1D22 !important; }
.tid-coral-soft .tid-exam-top { background: rgba(255, 101, 85, .08); }
.tid-coral-soft .tid-big { color: #D9483A; font-size: clamp(28px, 2.8vw, 40px); }
.tid-coral-soft .tid-btn.ghost { background: #FF6555; color: #fff; }
.tid-coral-soft .tid-dots i { background: #FF6555; opacity: .5; }
.tid-coral-soft .tid-quote { box-shadow: 0 1px 2px rgba(16, 24, 40, .06); }
.tid-coral-soft::before { display: none; }
.tid-exam-body { gap: 12px; padding: 20px 24px 22px; } .tid-exam-top { min-height: 92px; }
/* thanh bên: nhãn mảnh, chữ menu 14.5px */
.dash-wrap .dash-nav-label { font-size: 10.5px; letter-spacing: .08em; }
.dash-wrap .dash-nav a { font-size: 14.5px; font-weight: 500; min-height: 42px; border-radius: 12px; }
.dash-wrap .dash-nav a[aria-current="page"] { font-weight: 700; }

/* ===== vòng 3: chỉ Mục tiêu + Chuỗi ngày là khối màu mạnh; Từ vựng, Kỹ năng nền nhạt ===== */
.tid-purple { background: #F0EAFE !important; color: #1B1D22 !important; }
.tid-purple h2 { color: #6B46C8; } .tid-purple::before { background: rgba(142, 107, 219, .1); }
.tid-purple .tid-bucket { box-shadow: 0 1px 2px rgba(16, 24, 40, .06); }
.tid-purple .tid-words { background: rgba(142, 107, 219, .1); }
.tid-purple .tid-btn.white { background: #8E6BDB; color: #fff; }
.tid-green { background: #EAF8F3 !important; color: #1B1D22 !important; }
.tid-green h2 { color: #178A68; } .tid-green::before { background: rgba(32, 185, 137, .1); }
.tid-green .tid-skill { background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .06); }
.tid-green .tid-skills-head a { color: #178A68; }
/* Mục tiêu: thấp hơn, bộ chọn sát nội dung, có thanh cuộn mảnh */
.tid-goal { min-height: 340px; padding: 26px 30px; }
.tid-picker { right: 80px; gap: 12px; }
.tid-wheel-wrap::after { content: ""; position: absolute; right: -14px; top: 18px; bottom: 18px; width: 3px; border-radius: 3px; background: #E6A925; opacity: .35; }
.tid-streak, .tid-cal { min-height: 340px; }
/* chữ phụ dùng Inter */
.tid-sub, .tid-chip, .tid-goal-sub, .tid-days, .tid-skill small, .tid-skill b, .tid-bucket span, .tid-quote .tid-vi, .dash-plan a small, .dash-time-foot { font-family: "Quicksand", system-ui, sans-serif; }
.tid-sub { font-size: 14px; font-weight: 500; }
@container dmain (max-width: 1180px) { .tid-picker { right: 60px; } }
/* vòng 3b: thẻ nền nhạt rõ chữ hơn */
.tid-purple h2 { color: #5B36B8; } .tid-purple .tid-sub { color: #3F3554; opacity: 1; }
.tid-green h2 { color: #12734F; } .tid-green .tid-sub { color: #2B4A3F; opacity: 1; }
/* thanh bên cố định phải cao đúng bằng màn hình để cuộn được (align-self: start cũ làm nó cao theo nội dung) */
@media (min-width: 861px) { .dash-wrap .dash-side { align-self: stretch; height: 100vh; height: 100dvh; overscroll-behavior: contain; scrollbar-width: thin; } .dash-side::-webkit-scrollbar { display: block; width: 6px; } .dash-side::-webkit-scrollbar-thumb { background: var(--t-line); border-radius: 3px; } }

/* ===== vòng 4 theo góp ý toàn Góc học tập (ChatGPT 8.2/10): bìa Part, bài đọc, chương Phát âm, Chia sẻ… ===== */
@keyframes dUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes dPeek { 0%, 100% { transform: translateY(4px); } 50% { transform: translateY(-3px); } }

/* --- 7 bìa Part đồng bộ --- */
.dash-wrap .dash-part { grid-template-columns: 96px 1fr; min-height: 200px; border: 0; border-radius: 20px; background: var(--t-card); color: var(--t-ink); box-shadow: var(--t-shadow); text-decoration: none; transition: transform .2s; }
.dash-wrap .dash-part:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(16, 24, 40, .12); }
.dash-wrap .dash-part > small { color: var(--t-muted); letter-spacing: .12em; }
.dash-cover { position: relative; grid-row: 2 / 4; display: flex; flex-direction: column; justify-content: flex-end; min-height: 136px; padding: 10px 10px 12px; border-radius: 6px 14px 14px 6px; color: #fff; overflow: hidden; box-shadow: inset 6px 0 0 rgba(0, 0, 0, .14), 0 6px 14px rgba(16, 24, 40, .14); }
.dash-cover.coral { background: linear-gradient(160deg, #FF8A73, #FF6555); } .dash-cover.orange { background: linear-gradient(160deg, #FFB067, #FF9442); } .dash-cover.yellow { background: linear-gradient(160deg, #FFD36B, #FFB72E); color: #1B1D22; }
.dash-cover.blue { background: linear-gradient(160deg, #7E9BFF, #5278F5); } .dash-cover.purple { background: linear-gradient(160deg, #AE8FEA, #8E6BDB); } .dash-cover.green { background: linear-gradient(160deg, #4FCBA2, #20B989); } .dash-cover.teal { background: linear-gradient(160deg, #2E9C86, #187866); }
.dash-cover > small { position: absolute; left: 10px; top: 10px; padding: 2px 6px; border-radius: 5px; background: rgba(255, 255, 255, .92); color: #1B1D22; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.dash-cover > i { position: absolute; right: 8px; top: 30px; font-style: normal; font-size: 30px; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .18)); transition: transform .3s; }
.dash-cover > em { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .9; position: relative; z-index: 1; }
.dash-cover > b { font-size: 34px; line-height: 1; position: relative; z-index: 1; }
.dash-cover > img { position: absolute; right: -12px; bottom: -14px; width: 58px; height: auto; opacity: .95; animation: dPeek 3.2s ease-in-out infinite; }
.dash-wrap .dash-part:hover .dash-cover > i { transform: rotate(-10deg) scale(1.12); }
.dash-wrap .dash-part h3 { font-family: inherit; font-weight: 700; font-size: 20px; }
.dash-wrap .dash-part p { font-family: "Quicksand", system-ui, sans-serif; color: var(--t-muted); opacity: 1; }
.dash-wrap .dash-ring { border: 0; background: conic-gradient(var(--t-green) calc(var(--p, 0) * 1%), var(--t-soft) 0); }
.dash-wrap .dash-progress .dash-ring { position: relative; }
.dash-wrap .dash-ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--t-card); }
.dash-wrap .dash-ring { isolation: isolate; } .dash-wrap .dash-ring::before { z-index: -1; }

/* --- bài đọc: hình thu nhỏ theo loại văn bản --- */
.dash-wrap .dash-article { border: 0; border-radius: 18px; background: var(--t-card); box-shadow: var(--t-shadow); transition: transform .2s; }
.dash-wrap .dash-article:hover { transform: translateY(-4px); }
.dash-wrap .dash-article.soon { opacity: 1; }
.dash-article-img.doc { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; border: 0; overflow: hidden; font-size: 0; }
.dash-article-img.doc.t0 { background: #FFF1E6; } .dash-article-img.doc.t1 { background: #EAF8F3; } .dash-article-img.doc.t2 { background: #ECF1FF; } .dash-article-img.doc.t3 { background: #FFF0EE; }
.dt-paper { position: relative; display: flex; flex-direction: column; gap: 5px; width: 62%; min-height: 76%; padding: 10px 11px; border-radius: 6px; background: #fff; color: #252934; box-shadow: 0 8px 18px rgba(16, 24, 40, .12); transform: rotate(-2deg); transition: transform .3s; font: 600 8.5px/1.25 "Quicksand", system-ui, sans-serif; text-align: left; }
.dash-article:nth-child(even) .dt-paper { transform: rotate(2deg); }
.dash-article:hover .dt-paper { transform: rotate(0) scale(1.04); }
.dt-paper .ln { display: block; height: 4px; border-radius: 2px; background: #E4E7EE; } .dt-paper .ln.short { width: 60%; }
.dt-bar { display: flex; gap: 3px; margin-bottom: 2px; } .dt-bar b { width: 5px; height: 5px; border-radius: 50%; background: #FF6555; } .dt-bar b + b { background: #FFC238; } .dt-bar b + b + b { background: #20B989; }
.dt-meta { color: #667085; } .dt-meta.strong { color: #1B1D22; font-weight: 700; }
.dt-big { font: 800 22px/1 "Quicksand", sans-serif; color: #FF6555; } .dt-big2 { font: 800 14px/1 "Quicksand", sans-serif; color: #1B1D22; }
.doc.ad .dt-paper { align-items: center; justify-content: center; text-align: center; background: linear-gradient(160deg, #FFF8E1, #fff); }
.dt-mast { font: 800 9px/1 "Quicksand", sans-serif; letter-spacing: .06em; border-bottom: 1.5px solid #1B1D22; padding-bottom: 3px; }
.dt-head { font: 800 10.5px/1.2 "Quicksand", sans-serif; } .dt-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; } .dt-cols > span { display: flex; flex-direction: column; gap: 4px; }
.dt-title { font: 800 9.5px/1.2 "Quicksand", sans-serif; letter-spacing: .04em; } .dt-title.big { font: 800 15px/1.1 "Quicksand", sans-serif; color: #8E6BDB; }
.dt-sign { margin-top: auto; color: #5278F5; font-size: 9px; }
.doc.ticket .dt-paper { width: 74%; min-height: 0; background: linear-gradient(90deg, #fff 70%, #EEF3FF 70%); }
.dt-small { font-size: 7.5px; letter-spacing: .1em; color: #667085; } .dt-route { font: 800 16px/1 "Quicksand", sans-serif; } .dt-route em { font-style: normal; color: #5278F5; font-size: 13px; }
.dt-perf { border-top: 1.5px dashed #C9CFDA; margin: 2px 0; }
.dt-cross { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: #20B989; color: #fff; font-size: 15px; }
.doc.screen .dt-paper { background: none; box-shadow: none; padding: 0; align-items: center; transform: none; }
.dt-screen { display: flex; flex-direction: column; gap: 5px; width: 100%; padding: 9px 10px; border: 4px solid #1B1D22; border-radius: 6px; background: #fff; }
.dt-stand { width: 26%; height: 6px; border-radius: 0 0 4px 4px; background: #1B1D22; }
.doc.event .dt-paper { align-items: center; justify-content: center; text-align: center; background: linear-gradient(160deg, #F3EEFF, #fff); }

/* --- Phát âm: các chương thay cho bản đồ chấm --- */
.dash-wrap .dash-basics { margin-bottom: 16px; }
.dash-chapters { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.dash-chapter { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 20px; background: var(--t-card); box-shadow: var(--t-shadow); overflow: hidden; animation: dUp .45s calc(var(--i) * 80ms) both; }
.dash-chapter-n { position: absolute; right: 14px; top: -6px; font: 800 74px/1 "Quicksand", sans-serif; color: var(--ac, #5278F5); opacity: .12; pointer-events: none; }
.dash-chapter.c0 { --ac: #5278F5; } .dash-chapter.c1 { --ac: #FF9442; } .dash-chapter.c2 { --ac: #20B989; }
.dash-chapter header small { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ac); }
.dash-chapter header h2 { margin: 2px 0 0; font-size: 22px; } .dash-chapter header span { font: 500 13px "Quicksand", sans-serif; color: var(--t-muted); }
.dash-chapter .dash-bar { max-width: none; } .dash-chapter .dash-bar i { background: var(--ac); }
.dash-chapter ol { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.dash-chapter li > a, .dash-chapter li > .lk { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; min-height: 48px; padding: 6px 12px; border-radius: 12px; background: var(--t-soft); color: var(--t-ink); text-decoration: none; font-weight: 600; }
.dash-chapter li > a { box-shadow: inset 0 0 0 1.5px var(--ac); background: var(--t-card); transition: transform .15s; } .dash-chapter li > a:hover { transform: translateX(4px); }
.dash-chapter li b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--t-card); color: var(--t-muted); font-size: 13px; }
.dash-chapter li.open b { background: var(--ac); color: #fff; }
.dash-chapter li em { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--t-muted); } .dash-chapter li.open em { color: var(--ac); }
.dash-chapter-img { position: absolute; right: 8px; bottom: -10px; width: 86px; height: auto; opacity: .9; pointer-events: none; }
.dash-chapter.c0 ol { padding-right: 70px; }

/* --- Lexical: ký hiệu gợi ý; Giáo trình: tiến độ + sắc riêng từng chương --- */
.dash-lex { position: relative; }
.dash-lex-g { position: absolute; right: 14px; top: 12px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--t-soft); font-style: normal; font-size: 20px; font-weight: 700; color: var(--t-ink); }
.dash-wrap .dash-units.cur .dash-unit { border-left: 4px solid var(--ac); }
.dash-units.c0 { --ac: #5278F5; } .dash-units.c1 { --ac: #FF9442; } .dash-units.c2 { --ac: #20B989; } .dash-units.c3 { --ac: #8E6BDB; } .dash-units.c4 { --ac: #FF6555; } .dash-units.c5 { --ac: #187866; }
.dash-wrap .dash-sec-sub { font: 500 13.5px "Quicksand", sans-serif; color: var(--t-muted); margin: -8px 0 12px; }

/* --- Nghe / Nói / Viết: kệ có ô hình lớn, Viết mỗi nhóm một sắc --- */
.dash-wrap .dash-shelf { border: 0; border-radius: 20px; background: var(--t-card); box-shadow: var(--t-shadow); padding: 20px 14px; }
.dash-wrap .dash-shelf-ic { width: 92px; height: 72px; border: 0; border-radius: 16px; box-shadow: none; font-size: 36px; transition: transform .2s; }
.dash-wrap .dash-shelf-item:nth-child(5n+1) .dash-shelf-ic { background: #FFF1E6; } .dash-wrap .dash-shelf-item:nth-child(5n+2) .dash-shelf-ic { background: #F0EAFE; } .dash-wrap .dash-shelf-item:nth-child(5n+3) .dash-shelf-ic { background: #ECF1FF; } .dash-wrap .dash-shelf-item:nth-child(5n+4) .dash-shelf-ic { background: #EAF8F3; } .dash-wrap .dash-shelf-item:nth-child(5n+5) .dash-shelf-ic { background: #FFF0EE; }
.dash-wrap .dash-shelf-item:hover .dash-shelf-ic { transform: translateY(-4px) rotate(-3deg); }
.dash-wrap .dash-course { border: 0; border-radius: 18px; box-shadow: var(--t-shadow); background: var(--t-card); transition: transform .2s; }
.dash-wrap .dash-course:hover { transform: translateY(-3px); }
.dash-wrap .dash-course-ic { border: 0; border-radius: 14px; background: var(--t-soft); width: 64px; height: 56px; font-size: 28px; }
.dash-wrap .dash-courses.writing.sec0 .dash-course { background: #EEF3FF; } .dash-wrap .dash-courses.writing.sec1 .dash-course { background: #F3EEFF; } .dash-wrap .dash-courses.writing.sec2 .dash-course { background: #FFF6E6; }
.dash-wrap .dash-courses.writing .dash-course-ic { background: #fff; }
.dash-mini-mail { display: block; margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: #fff; border: 1px solid #E3E7EE; font: 500 11.5px/1.45 "Quicksand", sans-serif; color: #475467; }
.dash-mini-mail b { display: block; color: #1B1D22; font-weight: 700; }

/* --- Chia sẻ: hero + 3 bước --- */
.dash-share-hero { margin-bottom: 16px; }
.dash-share-hero .dash-pill { display: inline-block; margin-top: 12px; padding: 6px 12px; background: rgba(255, 255, 255, .25); }
.dash-share-hero h1 { color: #fff; }
:root body.v3 .dash-share-hero h1 { color: #fff !important; }
.dash-wrap .dash-share { max-width: none; }
.dash-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 10px; margin-bottom: 16px; }
.dash-flow-step { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 18px; background: var(--t-card); box-shadow: var(--t-shadow); animation: dUp .45s calc(var(--i) * 100ms) both; }
.dash-flow-step svg { flex: none; color: #FF9442; } .dash-flow-step h3 { margin: 0; font-size: 16px; } .dash-flow-step p { margin: 2px 0 0; font: 500 13px/1.45 "Quicksand", sans-serif; color: var(--t-muted); }
.dash-flow-step .dash-step-n { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: #FF9442; color: #fff; font-weight: 700; }
.dash-flow-arrow { align-self: center; font-size: 22px; color: var(--t-muted); }
.dash-wrap .dash-box { border: 0; border-radius: 18px; background: var(--t-card); box-shadow: var(--t-shadow); }
@media (max-width: 860px) { .dash-flow { grid-template-columns: 1fr; } .dash-flow-arrow { display: none; } }

/* --- Flashcard to hơn như thẻ học thật --- */
.dash-wrap .nb-card { max-width: 600px; }
.dash-wrap .nb-card .gm-q { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 300px; border-radius: 18px; background: linear-gradient(160deg, #fff, #F6F8FC); box-shadow: 0 10px 24px rgba(16, 24, 40, .08); }
.dash-wrap .nb-card .gm-q .w { font-size: clamp(34px, 4vw, 48px); }
.dash-wrap .nb-card [data-back]:not([hidden]) { animation: dUp .35s both; }

/* --- trạng thái trống thấp hơn; vòng mascot chậm lại --- */
.dash-wrap .ex-empty { padding: 22px 20px; } .dash-wrap .ex-empty img { width: 110px; }
.tid-orbit, .tid-ring .tid-orbit img { animation-duration: 12s; }
@media (prefers-reduced-motion: reduce) { .dash-cover > img, .dash-chapter, .dash-flow-step { animation: none; } }
