/* ===== Góc học tập (dashboard.html, dashboard.js) =====
   Bố cục kiểu bảng điều khiển: thanh bên trái + các thẻ lớn nhiều màu. Vẫn theo hệ v3 của TOEX:
   viền mực 2px, bóng cứng, chữ Fraunces cho tiêu đề, màu Glacier / vàng / cam / xanh lá / đỏ / tím nhạt. */
.dash { --dk: #121212; --dp: #FFFDF8; }
.dash [hidden] { display: none !important; }
.dash #nbGate, .dash #gmGate, .dash #gmAccount, .dash #nbAccount { display: none !important; } /* trang đã có khung đăng nhập + tài khoản chung */
.dash-wrap { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; padding: 104px clamp(16px, 2vw, 32px) 64px; } /* trải hết chiều rộng màn hình; chừa thanh menu cố định */
.dash .p-nav-in { width: calc(100% - clamp(32px, 4vw, 64px)); max-width: none; } /* thanh đầu trang trải rộng theo */

/* ---- thanh bên ---- */
.dash-side { position: sticky; top: 100px; align-self: start; display: flex; flex-direction: column; gap: 14px; max-height: calc(100vh - 118px); padding: 18px 14px; border: 2px solid var(--dk); border-radius: 22px; background: var(--dp); box-shadow: 4px 4px 0 var(--dk); overflow: auto; }
.dash-side-head small { display: block; font-family: "Plus Jakarta Sans", sans-serif; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--tx-muted, #5C4D3C); }
.dash-side-head b { display: block; margin-top: 4px; font-family: var(--v3-display, "Fraunces", serif); font-size: 21px; font-weight: 900; line-height: 1.2; color: var(--dk); }
.dash-nav { display: flex; flex-direction: column; gap: 2px; }
.dash-nav-label { margin: 4px 8px 4px; font-family: "Plus Jakarta Sans", sans-serif; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--tx-muted, #5C4D3C); }
.dash-nav a { display: flex; align-items: center; gap: 12px; min-height: 38px; padding: 0 12px; border: 2px solid transparent; border-radius: 12px; color: var(--dk); font-weight: 700; font-size: 15px; text-decoration: none; }
.dash-nav a svg { width: 20px; height: 20px; flex: none; }
.dash-nav a:hover { background: #F7F0DF; }
.dash-nav a[aria-current="page"] { border-color: var(--dk); background: #86A3BB; box-shadow: 2px 2px 0 var(--dk); }
.dash-nav a:focus-visible { outline: 3px solid #F07A3C; outline-offset: 2px; }
.dash-me { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 2px solid rgba(18, 18, 18, .12); }
.dash-av { display: grid; place-items: center; width: 38px; height: 38px; border: 2px solid var(--dk); border-radius: 50%; background: #DCE8F1; font-weight: 800; overflow: hidden; }
.dash-av img { width: 100%; height: 100%; object-fit: cover; }
.dash-me b { flex: 1; min-width: 0; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-logout { flex-basis: 100%; display: inline-flex; align-items: center; min-height: 36px; padding: 0 4px; border: 0; background: none; color: #B4413B; font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; text-align: left; }

/* ---- khung chung ---- */
.dash-main { min-width: 0; }
.dash-hero { position: relative; margin-bottom: 20px; padding: clamp(22px, 3.4vw, 36px); border: 2px solid var(--dk); border-radius: 26px; background: #EBC24F; color: var(--dk); box-shadow: 5px 5px 0 var(--dk); overflow: hidden; }
.dash-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 253, 248, .22); pointer-events: none; }
.dash-hero > small { display: block; font-family: "Plus Jakarta Sans", sans-serif; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.dash-hero h1, .dash-hero p, .dash-card h2 { color: inherit; }
:root body.v3 .dash-hero h1 { color: inherit !important; } /* đè body.v3 h1 (chữ mực) để tiêu đề trên nền tối đọc được */
.dash-hero h1 { margin: 6px 0 8px; font-family: var(--v3-display, "Fraunces", serif); font-weight: 900; font-size: clamp(32px, 4.6vw, 56px); line-height: 1.04; letter-spacing: -.02em; }
.dash-hero p { max-width: 720px; font-size: 16px; line-height: 1.65; }
.dash-hero.ink { background: #1E1F22; color: #F7F0DF; }
.dash-hero.ink .gm-btn.ghost { background: transparent; color: #F7F0DF; border-color: #F7F0DF; }
.dash-hero.glacier { background: #86A3BB; } .dash-hero.green { background: #8FB08A; } .dash-hero.yellow { background: #EBC24F; }
.dash-hero.teal { background: #2F6F66; color: #FFFDF8; } .dash-hero.lilac { background: #AE9BCF; } .dash-hero.orange { background: #F0965E; }
.dash-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.dash-chips span { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 12px; border-radius: 999px; background: rgba(255, 253, 248, .2); border: 1.5px solid currentColor; font-weight: 700; font-size: 13.5px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; } .dot.g { background: #6FBF73; } .dot.y { background: #EBC24F; } .dot.b { background: #86A3BB; }
.dash-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 2px solid var(--dk); border-radius: 999px; background: var(--dp); color: var(--dk); font-size: 13px; font-weight: 800; }
.dash-sub { font-size: 14px; line-height: 1.55; color: inherit; opacity: .82; }
.dash-note { margin-top: 12px; font-size: 12.5px; line-height: 1.5; opacity: .85; }
.dash-back { display: inline-flex; align-items: center; min-height: 40px; margin-bottom: 14px; padding: 0 14px; border: 2px solid var(--dk); border-radius: 12px; background: var(--dp); color: var(--dk); font: inherit; font-weight: 800; cursor: pointer; }
.dash-msg { min-height: 0; margin: -6px 0 12px; font-weight: 700; } .dash-msg.ok { color: #3F7D4E; } .dash-msg.bad { color: #B4413B; }

/* ---- lưới thẻ ---- */
.dash-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.dash-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px; border: 2px solid var(--dk); border-radius: 22px; background: var(--dp); color: var(--dk); box-shadow: 4px 4px 0 var(--dk); min-width: 0; }
.dash-card h2 { font-family: var(--v3-display, "Fraunces", serif); font-weight: 900; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.1; }
.dash-card a:not(.gm-btn):not(.dash-bucket) { color: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.dash-card.span2 { grid-column: span 2; }
.dash-card.yellow { background: #F2D27A; } .dash-card.glacier { background: #B7CCDA; } .dash-card.lilac { background: #CFC2E6; }
.dash-card.orange { background: #F5B58A; } .dash-card.green { background: #BFD3B6; } .dash-card.paper { background: var(--dp); }
.dash-goal-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.dash-big { font-family: var(--v3-display, "Fraunces", serif); font-weight: 900; font-size: clamp(56px, 7vw, 92px); line-height: .95; letter-spacing: -.03em; }
.dash-big small { font-size: .32em; opacity: .7; }
.dash-select { display: flex; flex-direction: column; gap: 6px; font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.dash-select select { min-height: 52px; min-width: 170px; padding: 0 14px; border: 2px solid var(--dk); border-radius: 14px; background: var(--dp); color: var(--dk); font: inherit; font-size: 22px; font-weight: 800; letter-spacing: 0; box-shadow: 3px 3px 0 var(--dk); }
.dash-streak { display: flex; align-items: baseline; gap: 10px; }
.dash-streak b { font-family: var(--v3-display, "Fraunces", serif); font-weight: 900; font-size: 64px; line-height: 1; }
.dash-streak span { font-weight: 800; }
.dash-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: auto; }
.dash-week span { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 800; }
.dash-week i { width: 28px; height: 28px; border: 2px solid var(--dk); border-radius: 50%; background: var(--dp); }
.dash-week .on i { background: #F07A3C; } .dash-week .today i { box-shadow: 0 0 0 3px rgba(18, 18, 18, .25); }
.dash-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; font-size: 13px; }
.dash-cal b { font-size: 11px; opacity: .7; }
.dash-cal span { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; font-weight: 700; }
.dash-cal span.on { background: #EBC24F; border: 2px solid var(--dk); }
.dash-cal span.today { outline: 2px dashed var(--dk); outline-offset: 1px; }
.dash-buckets { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dash-bucket { display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 2px solid var(--dk); border-radius: 16px; background: var(--dp); color: var(--dk); text-decoration: none; }
.dash-bucket b { font-family: var(--v3-display, "Fraunces", serif); font-size: 30px; line-height: 1; }
.dash-bucket span { font-weight: 800; font-size: 13.5px; }
.dash-bucket i { height: 6px; border-radius: 3px; background: rgba(18, 18, 18, .12); overflow: hidden; }
.dash-bucket i::before { content: ""; display: block; width: var(--p); height: 100%; background: currentColor; }
.dash-bucket.green i::before { background: #3F7D4E; } .dash-bucket.yellow i::before { background: #C99A1B; } .dash-bucket.glacier i::before { background: #4E7391; } .dash-bucket.red i::before { background: #B4413B; }
.dash-due { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border-radius: 14px; background: rgba(255, 253, 248, .55); font-weight: 700; font-size: 14px; }
.dash-due .gm-btn { min-height: 40px; }
.dash-skills { display: flex; flex-direction: column; gap: 8px; }
.dash-skills a { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 10px 14px; border: 2px solid var(--dk); border-radius: 14px; background: var(--dp); text-decoration: none !important; }
.dash-skills small { grid-column: 1; font-weight: 600; font-size: 12.5px; opacity: .8; }
.dash-skills span { grid-row: 1 / 3; grid-column: 2; font-size: 18px; }
.dash-recent { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.dash-recent li { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 10px 14px; border: 2px solid var(--dk); border-radius: 14px; background: #F7F0DF; }
.dash-recent small { opacity: .75; }
.dash-more { align-self: flex-start; }

/* ---- lộ trình ---- */
.dash-road { padding-bottom: 28px; }
.dash-steps { list-style: none; display: flex; justify-content: space-between; gap: 10px; max-width: 560px; margin: 0 0 22px; position: relative; }
.dash-steps::before { content: ""; position: absolute; left: 18px; right: 18px; top: 17px; height: 2px; background: rgba(255, 253, 248, .5); }
.dash-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 800; font-size: 13.5px; }
.dash-steps b { display: grid; place-items: center; width: 36px; height: 36px; border: 2px solid currentColor; border-radius: 50%; background: #2F6F66; }
.dash-steps .on b, .dash-steps .done b { background: #FFFDF8; color: #2F6F66; }
.dash-quiz { margin-top: 18px; padding: 18px; border: 2px solid var(--dk); border-radius: 20px; background: var(--dp); color: var(--dk); box-shadow: 4px 4px 0 var(--dk); max-width: 920px; }
.dash-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dash-opts button { display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 0 16px; border: 2px solid var(--dk); border-radius: 14px; background: var(--dp); color: var(--dk); font: inherit; font-size: 16.5px; font-weight: 700; text-align: left; cursor: pointer; box-shadow: 0 3px 0 rgba(18, 18, 18, .2); }
.dash-opts button b { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border: 2px solid var(--dk); border-radius: 8px; font-size: 13px; }
.dash-opts button:hover { background: #F7F0DF; }
.dash-opts button.on { background: #EBC24F; box-shadow: 3px 3px 0 var(--dk); }
.dash-quiz-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 2px solid rgba(18, 18, 18, .1); font-size: 14px; }
.dash-path { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-bottom: 18px; }
.dash-range { font-family: var(--v3-display, "Fraunces", serif); font-size: 26px; font-weight: 900; }
.dash-warn { margin-bottom: 18px; padding: 14px 16px; border: 2px solid var(--dk); border-radius: 14px; background: #F7E2DC; font-weight: 700; }
.dash-todo { padding-left: 20px; line-height: 1.8; }

/* ---- đua top ---- */
.dash-top-hero .dash-pill { margin-bottom: 4px; }
.dash-top-hero > small { margin-top: 18px; }
.dash-count { display: flex; gap: 10px; margin-top: 8px; }
.dash-count span { display: grid; place-items: center; min-width: 72px; padding: 10px 8px; border: 2px solid var(--dk); border-radius: 14px; background: #1E1F22; color: #FFFDF8; }
.dash-count b { font-family: var(--v3-display, "Fraunces", serif); font-size: 30px; line-height: 1; }
.dash-count small { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.dash-top-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.dash-myrank small { font-weight: 800; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; }
.dash-podium { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 12px; margin: 10px 0 16px; }
.dash-podium > div { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 10px; border: 2px solid var(--dk); border-radius: 18px; background: #DCE8F1; text-align: center; }
.dash-podium .p1 { background: #EBC24F; padding-top: 26px; } .dash-podium .p3 { background: #FAE5D2; }
.dash-podium em { font-style: normal; font-size: 26px; line-height: 1; }
.dash-podium i, .dash-rows i { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border: 2px solid var(--dk); border-radius: 50%; background: var(--dp); font-style: normal; font-weight: 900; font-size: 24px; }
.dash-podium i img, .dash-rows i img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.dash-podium i b { position: absolute; bottom: -8px; display: grid; place-items: center; width: 24px; height: 24px; border: 2px solid var(--dk); border-radius: 50%; background: #F07A3C; font-size: 12px; }
.dash-podium strong { margin-top: 6px; font-size: 15px; overflow-wrap: anywhere; }
.dash-podium span { font-family: var(--v3-display, "Fraunces", serif); font-size: 26px; font-weight: 900; }
.dash-podium span small { font-family: "Quicksand", sans-serif; font-size: 13px; font-weight: 700; }
.dash-podium .me, .dash-rows .me { outline: 3px solid #F07A3C; outline-offset: 2px; }
.dash-rows { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.dash-rows li { display: grid; grid-template-columns: 32px 40px 1fr auto; align-items: center; gap: 12px; padding: 8px 14px; border: 2px solid var(--dk); border-radius: 14px; background: #F7F0DF; }
.dash-rows li > b { font-weight: 900; text-align: center; }
.dash-rows i { width: 40px; height: 40px; font-size: 16px; }

/* ---- bộ từ ---- */
.dash-count-line { margin: 0 0 12px; font-weight: 700; }
.dash-sets { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.dash-set { position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 300px; padding: 24px 20px; border: 2px solid var(--dk); border-radius: 24px; background: #CFC2E6; color: var(--dk); box-shadow: 4px 4px 0 var(--dk); font: inherit; text-align: center; text-decoration: none; cursor: pointer; overflow: hidden; }
.dash-set:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--dk); }
.dash-set h2 { font-family: var(--v3-display, "Fraunces", serif); font-weight: 900; font-size: 26px; line-height: 1.1; }
.dash-set p { font-size: 14px; line-height: 1.55; opacity: .85; }
.dash-set small { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.dash-set.ink { background: #1E1F22; color: #F7F0DF; }
.dash-set.glacier { background: #B7CCDA; } .dash-set.orange { background: #F5B58A; } .dash-set.lilac { background: #CFC2E6; }
.dash-set-add { display: grid; place-items: center; margin: auto auto 0; width: 70%; padding: 22px 10px; border: 2px dashed currentColor; border-radius: 18px; font-weight: 800; line-height: 1.6; }
.dash-set-words { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.dash-set-words i { align-self: center; padding: 6px 16px; border: 2px solid var(--dk); border-radius: 12px; background: var(--dp); font-style: normal; font-weight: 700; box-shadow: 2px 2px 0 var(--dk); }
.dash-set-words i:nth-child(odd) { transform: rotate(-3deg); } .dash-set-words i:nth-child(even) { transform: rotate(2deg); }
.dash-words { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.dash-words li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; padding: 12px 14px; border: 2px solid var(--dk); border-radius: 14px; background: var(--dp); }
.dash-words b { font-size: 17px; } .dash-words small { grid-column: 1; font-size: 12px; opacity: .7; } .dash-words span { grid-column: 1; font-size: 14px; }
.dash-words li > :last-child { grid-column: 2; grid-row: 1 / 4; }
.dash-words button { min-height: 36px; padding: 0 12px; border: 2px solid var(--dk); border-radius: 10px; background: #EBC24F; color: var(--dk); font: inherit; font-weight: 800; cursor: pointer; }
.dash-words em { padding: 3px 10px; border: 1.5px solid var(--dk); border-radius: 999px; font-style: normal; font-size: 12px; font-weight: 800; }
.dash-words .lv3 { background: #BFD3B6; } .dash-words .lv2 { background: #F2D27A; } .dash-words .lv1 { background: #B7CCDA; } .dash-words .lv0 { background: #F7E2DC; }

/* ---- thống kê ---- */
.dash-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.dash-kpis .dash-card { gap: 6px; }
.dash-kpis small { font-weight: 800; font-size: 14px; opacity: .8; }
.dash-kpis b { font-family: var(--v3-display, "Fraunces", serif); font-size: 44px; line-height: 1; }
.dash-kpis em { font-style: normal; font-size: 12.5px; opacity: .75; }
.dash-ic { display: grid; place-items: center; width: 36px; height: 36px; border: 2px solid var(--dk); border-radius: 50%; font-weight: 900; }
.dash-ic.yellow { background: #EBC24F; } .dash-ic.green { background: #8FB08A; } .dash-ic.red { background: #E6918E; } .dash-ic.glacier { background: #86A3BB; }
.dash-chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.dash-legend { display: flex; gap: 14px; font-size: 13px; font-weight: 700; }
.dash-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 6px; border: 1.5px solid var(--dk); border-radius: 3px; vertical-align: -1px; }
.dash-legend .a::before, .dash-bars i.a { background: #EBC24F; } .dash-legend .b::before, .dash-bars i.b { background: #6E9C77; }
.dash-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; height: 240px; margin-top: 14px; padding-top: 10px; border-top: 2px dashed rgba(18, 18, 18, .12); }
.dash-bars > div { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.dash-bars .bars { flex: 1; display: flex; align-items: flex-end; gap: 6px; width: 100%; max-width: 64px; }
.dash-bars i { flex: 1; min-height: 3px; border: 1.5px solid var(--dk); border-bottom: 0; border-radius: 6px 6px 0 0; }
.dash-bars small { font-weight: 800; font-size: 12px; padding: 2px 10px; border-radius: 999px; }
.dash-bars .today small { background: #86A3BB; border: 1.5px solid var(--dk); }

/* ---- trò chơi / lịch sử trong dashboard ---- */
.dash .gm-hub { margin-bottom: 24px; }
.dash .gm-history h2 { font-family: var(--v3-display, "Fraunces", serif); font-weight: 900; font-size: 26px; margin-bottom: 12px; }

/* ---- màn hình nhỏ: thanh bên thành dải tab cuộn ngang ---- */
@media (max-width: 1100px) {
  .dash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-top-body { grid-template-columns: 1fr; }
  .dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .dash-wrap { grid-template-columns: 1fr; gap: 16px; padding: 88px 16px 48px; }
  .dash-side { position: static; max-height: none; padding: 12px; border-radius: 18px; }
  .dash-nav { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; scrollbar-width: thin; }
  .dash-nav-label, .dash-side-head { display: none; }
  .dash-nav a { flex: none; min-height: 40px; padding: 0 12px; font-size: 14px; white-space: nowrap; }
  .dash-me { display: none !important; }
}
@media (max-width: 640px) {
  .dash-grid { grid-template-columns: 1fr; }
  .dash-card.span2 { grid-column: auto; }
  .dash-opts { grid-template-columns: 1fr; }
  .dash-count span { min-width: 0; flex: 1; }
  .dash-podium { gap: 6px; } .dash-podium i { width: 48px; height: 48px; font-size: 18px; } .dash-podium span { font-size: 20px; }
  .dash-rows li { grid-template-columns: 24px 36px 1fr auto; gap: 8px; padding: 8px 10px; }
  .dash-bars { height: 180px; gap: 4px; }
}

/* ---- dải Đua Top + ngày thi + câu hôm nay (Tổng quan) ---- */
.dash-strip { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding: 12px 18px; border: 2px solid var(--dk); border-radius: 18px; background: #1E1F22; color: #F7F0DF; box-shadow: 4px 4px 0 var(--dk); text-decoration: none; }
.dash-strip-ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: #EBC24F; font-size: 20px; }
.dash-strip small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.dash-strip b { font-size: 15px; }
.dash-strip-pts { font-weight: 700; font-size: 13.5px; opacity: .9; }
.dash-strip-go { margin-left: auto; color: #EBC24F; font-weight: 800; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.dash-card.red { background: #F2A99F; }
.dash-tag { align-self: flex-start; padding: 4px 10px; border: 2px solid var(--dk); border-radius: 999px; background: var(--dp); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.dash-date { display: flex; flex-direction: column; gap: 6px; margin-top: auto; font-weight: 800; font-size: 13px; }
.dash-date input { min-height: 46px; padding: 0 12px; border: 2px solid var(--dk); border-radius: 12px; background: var(--dp); color: var(--dk); font: inherit; font-size: 16px; }
.dash-quote { cursor: text; }
.dash-quote > p:first-of-type { font-size: 16.5px; font-weight: 700; line-height: 1.5; }
.dash-quote-next { margin-top: auto; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 800; font-size: 14px; text-decoration: underline; cursor: pointer; }

/* ---- sổ ghi chú ---- */
.dash-hero.plum { background: #6B2D4F; color: #FFF6EA; }
.dash-notes { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 18px; align-items: start; }
.dash-sessions { gap: 12px; }
.dash-sessions-head b { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.dash-newsession { display: flex; flex-direction: column; gap: 8px; }
.dash-newsession input, .dash-noteform textarea { width: 100%; padding: 10px 12px; border: 2px solid var(--dk); border-radius: 12px; background: var(--dp); color: var(--dk); font: inherit; font-size: 15px; }
.dash-newsession .gm-btn { min-height: 42px; background: #AE9BCF; }
.dash-sessions-list { display: flex; flex-direction: column; gap: 6px; }
.dash-sessions-list button { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 42px; padding: 0 12px; border: 2px solid transparent; border-radius: 12px; background: #F7F0DF; color: var(--dk); font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.dash-sessions-list button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-sessions-list button small { flex: none; padding: 1px 8px; border-radius: 999px; background: var(--dp); font-size: 12px; }
.dash-sessions-list button.on { border-color: var(--dk); background: #CFC2E6; box-shadow: 2px 2px 0 var(--dk); }
.dash-noteform { margin-bottom: 16px; }
.dash-noteform textarea { resize: vertical; min-height: 84px; }
.dash-noteform-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.dash-colors { display: flex; gap: 8px; }
.dash-colors .sw { width: 30px; height: 30px; border: 2px solid var(--dk); border-radius: 50%; cursor: pointer; }
.dash-colors .sw.on { box-shadow: 0 0 0 3px var(--dp), 0 0 0 5px var(--dk); }
.sw.yellow, .dash-note.yellow { background: #F8E7B5; } .sw.glacier, .dash-note.glacier { background: #DCE8F1; } .sw.green, .dash-note.green { background: #DDE8D6; }
.sw.orange, .dash-note.orange { background: #FAE0CC; } .sw.red, .dash-note.red { background: #F7DAD5; } .sw.lilac, .dash-note.lilac { background: #E6DDF2; }
.dash-board-notes { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.dash-note { display: flex; flex-direction: column; gap: 10px; min-height: 140px; padding: 16px; border: 2px solid var(--dk); border-radius: 6px 6px 18px 6px; box-shadow: 3px 3px 0 var(--dk); color: var(--dk); }
.dash-note:nth-child(3n+1) { transform: rotate(-.6deg); } .dash-note:nth-child(3n+2) { transform: rotate(.5deg); }
.dash-note p { flex: 1; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.55; }
.dash-note footer { display: flex; align-items: center; justify-content: space-between; font-size: 12px; opacity: .8; }
.dash-note footer button { border: 0; background: none; color: #B4413B; font: inherit; font-weight: 800; cursor: pointer; text-decoration: underline; }
.dash-empty { grid-column: 1 / -1; padding: 30px; text-align: center; font-weight: 700; opacity: .8; }
.dash-empty-big { align-items: center; padding: 48px 20px; text-align: center; }
.dash-empty-big b { font-size: 15px; letter-spacing: .1em; text-transform: uppercase; }
.dash-empty-ic { font-size: 36px; }

/* ---- lịch sử: lọc kỹ năng ---- */
.dash-skilltabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 10px; }
.dash-skilltabs button { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border: 2px solid var(--dk); border-radius: 14px; background: var(--dp); color: var(--dk); font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; }
.dash-skilltabs button small { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #F7F0DF; font-size: 12px; }
.dash-skilltabs button.on { background: #1E1F22; color: #FFFDF8; }
.dash-off { display: none !important; }

/* ---- chia sẻ website (khung) ---- */
.dash-share { max-width: 920px; margin: 0 auto; }
.dash-soon { margin-bottom: 16px; padding: 12px 16px; border: 2px dashed var(--dk); border-radius: 14px; background: #FFF6EA; font-weight: 700; }
.dash-box { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; padding: 22px 24px; border: 2px solid var(--dk); border-radius: 20px; background: var(--dp); color: var(--dk); box-shadow: 6px 6px 0 var(--dk); }
.dash-box-title { font-family: "Plus Jakarta Sans", sans-serif; font-size: 17px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.dash-box-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.dash-box-row.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dash-box-row.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dash-box-row > .dash-box { margin-bottom: 0; } .dash-box-row { margin-bottom: 18px; }
.dash-stat { background: #FBF6EC; }
.dash-stat small { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.dash-stat b { font-family: var(--v3-display, "Fraunces", serif); font-size: 34px; line-height: 1; }
b.orange { color: #C4581D; } b.olive { color: #4F6B33; } b.yellow { color: #A97F0B; } b.glacier { color: #3E5D78; }
.dash-ref-row { display: flex; flex-wrap: wrap; gap: 12px; }
.dash-ref-row input { flex: 1; min-width: 220px; min-height: 50px; padding: 0 14px; border: 2px solid var(--dk); border-radius: 12px; background: #FBF6EC; color: var(--dk); font-family: ui-monospace, monospace; font-size: 14px; }
.dash-ref-code { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 2px solid var(--dk); border-radius: 14px; background: #FBF6EC; }
.dash-ref-code b { font-size: 20px; }
.gm-btn.green, .gm-btn.olive { background: #6E8B4E; color: #FFFDF8; } .gm-btn.yellow { background: #F2D27A; } .gm-btn.ink { background: #1E1F22; color: #FFFDF8; } .gm-btn.wide { width: 100%; }
.dash-bank { display: flex; flex-direction: column; gap: 12px; }
.dash-bank input { min-height: 50px; padding: 0 14px; border: 2px solid var(--dk); border-radius: 12px; background: var(--dp); font: inherit; }
.dash-empty-i { font-family: Georgia, serif; font-style: italic; opacity: .75; }
.dash-policy ul { padding-left: 22px; line-height: 2; font-size: 16px; }
.dash-share-h { margin: 6px 0 14px; font-family: "Plus Jakarta Sans", sans-serif; font-size: 22px; font-weight: 800; text-transform: uppercase; }
.dash-share-sub { margin: -8px 0 16px; font-family: Georgia, serif; font-size: 16px; opacity: .8; }
.dash-idea { background: #FBF6EC; } .dash-idea h3, .dash-step h3 { font-family: "Plus Jakarta Sans", sans-serif; font-size: 17px; font-weight: 800; text-transform: uppercase; }
.dash-idea p, .dash-step p { line-height: 1.6; opacity: .85; }
.dash-idea-ic, .dash-step svg { color: #4F6B33; }
.dash-video { display: grid; place-items: center; aspect-ratio: 16 / 9; margin-bottom: 18px; border: 2px solid var(--dk); border-radius: 20px; background: #1E1F22; color: #F7F0DF; box-shadow: 6px 6px 0 var(--dk); overflow: hidden; font-weight: 700; }
.dash-video iframe, .dash-video video { width: 100%; height: 100%; border: 0; }
.dash-step { position: relative; background: #FBF6EC; }
.dash-step-n { display: grid; place-items: center; width: 32px; height: 32px; border: 2px solid var(--dk); border-radius: 50%; background: #EBC24F; font-weight: 900; }
@media (max-width: 860px) { .dash-notes { grid-template-columns: 1fr; } .dash-box-row, .dash-box-row.two, .dash-box-row.four { grid-template-columns: 1fr 1fr; } .dash-strip { flex-wrap: wrap; } .dash-strip-go { margin-left: 0; } }
@media (max-width: 520px) { .dash-box-row, .dash-box-row.two, .dash-box-row.four { grid-template-columns: 1fr; } .dash-box { padding: 18px; } }
html[lang="en"] .dash-quote .dash-vi { display: none; } /* bản tiếng Anh: không cần dòng dịch */

/* ---- luyện thi TOEIC (khung) ---- */
.dash-nav a.sub { min-height: 34px; padding-left: 44px; font-size: 14px; }
.dash-nav a.sub svg { width: 16px; height: 16px; }
.dash-progress { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); align-items: center; gap: 16px; margin-bottom: 22px; padding: 18px 22px; border: 2px solid var(--dk); border-radius: 20px; background: var(--dp); box-shadow: 4px 4px 0 var(--dk); }
.dash-progress.slim { display: flex; gap: 28px; }
.dash-progress small { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.dash-progress b { font-family: var(--v3-display, "Fraunces", serif); font-size: 22px; font-weight: 900; }
.dash-progress b.red { color: #B4413B; font-size: 28px; }
.dash-progress-main { display: flex; align-items: center; gap: 12px; }
.dash-progress-main b { font-family: inherit; font-size: 14px; }
.sq { display: inline-block; width: 9px; height: 9px; border-radius: 2px; } .sq.glacier { background: #86A3BB; } .sq.green { background: #8FB08A; } .sq.red { background: #E6918E; } .sq.yellow { background: #EBC24F; }
.dash-ring { display: grid; place-items: center; width: 46px; height: 46px; border: 3px solid rgba(18, 18, 18, .15); border-radius: 50%; background: var(--dp); font-size: 12px; font-weight: 800; flex: none; }
.dash-ring.big { width: 52px; height: 52px; border-color: #8FB08A; }
.dash-sec-h { display: flex; align-items: center; gap: 12px; margin: 8px 0 14px; font-family: var(--v3-display, "Fraunces", serif); font-size: 26px; font-weight: 900; }
.dash-sec-h::after { content: ""; flex: 1; border-bottom: 2px dotted rgba(18, 18, 18, .2); }
.dash-count-badge { order: 2; display: grid; place-items: center; min-width: 30px; height: 30px; border-radius: 50%; background: #B4413B; color: #FFFDF8; font-family: "Plus Jakarta Sans", sans-serif; font-size: 13px; }
.dash-continue { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-bottom: 26px; padding: 20px 24px; border: 2px solid var(--dk); border-radius: 20px; background: #F7E2DC; box-shadow: 4px 4px 0 var(--dk); }
.dash-continue > div { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 4px; }
.dash-mascot { font-size: 56px; line-height: 1; }
.dash-bubble { align-self: flex-start; padding: 5px 12px; border: 2px solid var(--dk); border-radius: 12px 12px 12px 2px; background: var(--dp); font-size: 13.5px; font-weight: 800; }
.dash-bar { display: block; max-width: 360px; height: 8px; margin-top: 6px; border-radius: 4px; background: rgba(18, 18, 18, .12); overflow: hidden; } .dash-bar i { display: block; height: 100%; background: #B4413B; }
.dash-parts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-bottom: 26px; }
.dash-part { position: relative; display: grid; grid-template-columns: 82px 1fr; grid-template-rows: auto 1fr auto; gap: 4px 14px; min-height: 190px; padding: 18px; border: 2px solid var(--dk); border-radius: 20px; background: #F7E2DC; color: var(--dk); box-shadow: 4px 4px 0 var(--dk); text-decoration: none; }
.dash-part:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--dk); }
.dash-part.orange { background: #FAE5D2; } .dash-part.green { background: #E6EBE2; } .dash-part.glacier { background: #DCE8F1; } .dash-part.lilac { background: #ECE5F5; }
.dash-part > small { grid-column: 1 / -1; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.dash-book { grid-row: 2 / 4; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 10px; border: 2px solid var(--dk); border-radius: 4px 10px 10px 4px; background: #8E3B4A; color: #FFFDF8; box-shadow: 3px 3px 0 var(--dk); min-height: 110px; }
.dash-part.orange .dash-book { background: #A9783D; } .dash-part.green .dash-book { background: #4F6B33; } .dash-part.glacier .dash-book { background: #3E5D78; } .dash-part.lilac .dash-book { background: #5B4A80; }
.dash-book i { font-style: normal; font-size: 9px; font-weight: 800; padding: 2px 4px; border-radius: 3px; background: var(--dp); color: var(--dk); align-self: flex-start; margin-bottom: auto; }
.dash-book em { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.dash-book b { font-family: var(--v3-display, "Fraunces", serif); font-size: 28px; line-height: 1; }
.dash-part h3 { align-self: end; overflow-wrap: anywhere; font-family: var(--v3-display, "Fraunces", serif); font-size: 21px; font-weight: 900; line-height: 1.1; }
.dash-part p { font-size: 13.5px; opacity: .85; padding-right: 50px; }
.dash-part .dash-ring { position: absolute; right: 14px; bottom: 14px; }
.dash-chiprow { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.dash-chiprow button, .dash-seg button { min-height: 40px; padding: 0 16px; border: 2px solid var(--dk); border-radius: 999px; background: var(--dp); color: var(--dk); font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; }
.dash-chiprow.small button { min-height: 34px; font-size: 13.5px; }
.dash-chiprow button.on { background: #B4413B; color: #FFFDF8; }
.dash-tests { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 6px 0 26px; }
.dash-test { display: flex; flex-direction: column; gap: 8px; padding: 18px; border: 2px solid var(--dk); border-radius: 20px; background: #F7E2DC; box-shadow: 4px 4px 0 var(--dk); }
.dash-test.orange { background: #FAE5D2; } .dash-test.green { background: #E6EBE2; } .dash-test.glacier { background: #DCE8F1; }
.dash-test small { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.dash-test h3 { font-family: "Plus Jakarta Sans", sans-serif; font-size: 40px; font-weight: 900; line-height: 1; letter-spacing: -.01em; }
.dash-test p { font-weight: 700; } .dash-test p span { margin-left: 10px; padding-left: 10px; border-left: 2px solid rgba(18, 18, 18, .2); font-weight: 600; opacity: .8; }
.dash-test-text { font-weight: 500 !important; font-size: 14px; opacity: .85; }
.dash-test-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.dash-soon-btn { display: flex; align-items: center; min-height: 38px; padding: 0 10px; border: 1.5px solid rgba(18, 18, 18, .25); border-radius: 10px; background: rgba(255, 253, 248, .8); font-size: 12.5px; font-weight: 800; opacity: .75; }
.dash-seg { display: inline-flex; gap: 4px; margin-bottom: 14px; padding: 4px; border: 2px solid var(--dk); border-radius: 999px; background: #F7F0DF; }
.dash-seg button { min-height: 34px; border: 0; background: transparent; }
.dash-seg button.on { background: var(--dp); box-shadow: 0 0 0 2px var(--dk); }
@media (max-width: 860px) { .dash-progress { grid-template-columns: 1fr 1fr; } .dash-progress-main { grid-column: 1 / -1; } }

/* ---- nền tảng · từ vựng / ngữ pháp / căn bản / IPA (khung) ---- */
.dash-sec-sub { margin: -8px 0 14px; font-size: 15px; opacity: .85; }
.dash-review { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-bottom: 18px; padding: 20px 24px; border: 2px solid var(--dk); border-radius: 20px; background: #F7E2DC; box-shadow: 4px 4px 0 var(--dk); }
.dash-review-n { text-align: center; } .dash-review-n b { display: block; font-family: var(--v3-display, "Fraunces", serif); font-size: 40px; line-height: 1; color: #B4413B; }
.dash-review-n small { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.dash-review-t { flex: 1; min-width: 220px; } .dash-review-t h2 { font-family: var(--v3-display, "Fraunces", serif); font-size: 28px; font-weight: 900; }
.dash-review-a { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; } .dash-review-a a:not(.gm-btn) { font-weight: 800; color: inherit; }
.dash-vgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.dash-vcard { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 2px solid var(--dk); border-radius: 20px; background: var(--dp); box-shadow: 4px 4px 0 var(--dk); }
.dash-vcard.wide { grid-column: span 2; background: #FAE5D2; } .dash-vcard.dashed { border-style: dashed; box-shadow: none; }
.dash-vcard h2 { font-family: var(--v3-display, "Fraunces", serif); font-size: 28px; font-weight: 900; } .dash-vcard p { line-height: 1.6; opacity: .9; }
.dash-vcard .gm-btn { align-self: flex-start; margin-top: auto; } .dash-vcard .gm-actions { align-items: center; margin-top: auto; } .dash-vcard .gm-actions a:not(.gm-btn) { font-weight: 800; color: inherit; }
.dash-vcard small { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.dash-cefr-bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; text-align: center; font-size: 11px; font-weight: 800; }
.dash-cefr-bars i { display: block; height: 10px; margin-bottom: 4px; border-radius: 4px; } .dash-cefr-bars .l0, .dash-cefr-bars .l1 { background: #8FB08A; } .dash-cefr-bars .l2, .dash-cefr-bars .l3 { background: #EBC24F; height: 16px; } .dash-cefr-bars .l4, .dash-cefr-bars .l5 { background: #D56461; }
.dash-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-bottom: 26px; }
.dash-topic { display: flex; flex-direction: column; gap: 12px; padding: 18px; border: 2px solid var(--dk); border-radius: 20px; background: #FAE5D2; box-shadow: 4px 4px 0 var(--dk); }
.dash-topic.green { background: #E6EBE2; } .dash-topic.glacier { background: #DCE8F1; } .dash-topic.lilac { background: #ECE5F5; } .dash-topic.red { background: #F7E2DC; }
.dash-topic > small { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.dash-topic > div { display: flex; align-items: center; gap: 14px; } .dash-topic h3 { font-size: 19px; font-weight: 800; line-height: 1.25; }
.dash-topic-ic { display: grid; place-items: center; flex: none; width: 64px; height: 64px; border: 2px solid var(--dk); border-radius: 16px; background: var(--dp); font-size: 30px; }
.dash-topic footer, .dash-lex footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; font-size: 13.5px; font-weight: 700; }
.dash-topic footer em, .dash-lex footer em { padding: 3px 10px; border: 1.5px solid rgba(18, 18, 18, .3); border-radius: 999px; font-style: normal; font-size: 11.5px; font-weight: 800; background: var(--dp); }
.dash-units { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-bottom: 26px; }
.dash-unit { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 2px solid var(--dk); border-radius: 14px; background: var(--dp); color: var(--dk); text-decoration: none; }
a.dash-unit:hover { background: #F7F0DF; }
.dash-unit small { font-size: 12px; font-weight: 800; opacity: .5; } .dash-unit div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dash-unit b { font-size: 15.5px; } .dash-unit span { font-size: 12.5px; opacity: .7; } .dash-unit em { font-style: normal; }
.dash-lexgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-bottom: 26px; }
.dash-lex { display: flex; flex-direction: column; gap: 8px; min-height: 180px; padding: 18px 20px; border: 2px solid var(--dk); border-radius: 20px; background: var(--dp); color: var(--dk); box-shadow: 4px 4px 0 var(--dk); text-decoration: none; }
a.dash-lex:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--dk); }
.dash-lex small { font-size: 12px; font-weight: 800; letter-spacing: .08em; opacity: .75; }
.dash-lex h3 { font-family: var(--v3-display, "Fraunces", serif); font-size: 24px; font-weight: 900; line-height: 1.15; color: #A6403A; }
.dash-lex.green h3 { color: #4F6B33; } .dash-lex.yellow h3 { color: #9A7409; } .dash-lex.orange h3 { color: #B4561C; }
.dash-lex p { font-size: 14px; line-height: 1.55; opacity: .85; }
.dash-cefr { font-family: "Plus Jakarta Sans", sans-serif !important; font-size: 48px !important; line-height: 1 !important; }
.dash-basics { gap: 0; padding: 0; overflow: hidden; }
.dash-basics-head { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 18px 22px; border-bottom: 2px solid rgba(18, 18, 18, .1); }
.dash-basics-head h2 { flex: 1; font-size: 20px; font-weight: 800; }
.dash-basics-p { min-width: 160px; } .dash-basics-p small { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; }
.dash-path-map { position: relative; list-style: none; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 30px 16px 40px; background-image: radial-gradient(circle, rgba(18, 18, 18, .08) 1.4px, transparent 2px); background-size: 22px 22px; }
.dash-here { display: flex; flex-direction: column; align-items: center; font-size: 46px; line-height: 1; }
.dash-here span { margin-top: 6px; padding: 4px 10px; border-radius: 8px; background: #1E1F22; color: #FFFDF8; font-size: 12px; font-weight: 800; }
.dash-stage { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 2px dashed var(--dk); border-radius: 10px; background: var(--dp); font-size: 13px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.dash-stage > span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #EBC24F; font-size: 11px; letter-spacing: 0; }
.dash-node { display: flex; align-items: center; gap: 12px; } .dash-node.l { transform: translateX(-70px); flex-direction: row-reverse; } .dash-node.r { transform: translateX(70px); }
.dash-node-b { display: grid; place-items: center; width: 60px; height: 60px; border: 3px solid var(--dk); border-radius: 50%; background: var(--dp); color: var(--dk); font-weight: 900; font-size: 20px; text-decoration: none; box-shadow: 0 4px 0 rgba(18, 18, 18, .25); }
.dash-node.open .dash-node-b { background: #B4413B; color: #FFFDF8; }
.dash-node-t { padding: 6px 12px; border: 2px solid rgba(18, 18, 18, .2); border-radius: 10px; background: var(--dp); font-weight: 800; font-size: 14px; }
.dash-ipa-wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 1fr); gap: 22px; align-items: start; }
.dash-ipa-chart h3, .dash-ipa-detail h3 { margin: 14px 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.dash-ipa-chart h3:first-child { margin-top: 0; }
.dash-ipa-grid { display: grid; gap: 8px; } .dash-ipa-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } .dash-ipa-grid.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.dash-ipa { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 60px; padding: 8px 4px; border: 2px solid transparent; border-radius: 12px; color: var(--dk); font: inherit; cursor: pointer; }
.dash-ipa b { font-size: 21px; font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif; } .dash-ipa small { font-size: 12px; text-decoration: underline; text-underline-offset: 2px; }
.dash-ipa.v { background: #F7DAD5; } .dash-ipa.d { background: #F8E7B5; } .dash-ipa.c0 { background: #EEF2F5; } .dash-ipa.c1 { background: #CFDDE8; }
.dash-ipa:hover { border-color: rgba(18, 18, 18, .35); } .dash-ipa.on { border-color: var(--dk); box-shadow: 3px 3px 0 var(--dk); }
.dash-ipa-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: 12.5px; }
.dash-ipa-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 6px; border: 1px solid rgba(18, 18, 18, .3); border-radius: 50%; vertical-align: -1px; }
.dash-ipa-legend .v::before { background: #F7DAD5; } .dash-ipa-legend .d::before { background: #F8E7B5; } .dash-ipa-legend .c0::before { background: #EEF2F5; } .dash-ipa-legend .c1::before { background: #CFDDE8; }
.dash-ipa-detail { position: sticky; top: 100px; gap: 4px; }
.dash-ipa-head { display: flex; align-items: center; gap: 16px; } .dash-ipa-head h2 { font-size: 22px !important; font-family: "Plus Jakarta Sans", sans-serif !important; }
.dash-ipa-head small { display: block; margin-bottom: 8px; opacity: .75; } .dash-ipa-head .gm-btn { min-height: 38px; }
.dash-ipa-big { display: grid; place-items: center; flex: none; width: 84px; height: 84px; border: 2px solid var(--dk); border-radius: 18px; background: #F7DAD5; font-size: 34px; font-weight: 800; }
.dash-ipa-words { display: flex; flex-wrap: wrap; gap: 8px; }
.dash-ipa-words button { min-height: 38px; padding: 0 12px; border: 2px solid var(--dk); border-radius: 999px; background: var(--dp); color: var(--dk); font: inherit; font-weight: 700; cursor: pointer; }
.dash-ipa-tag { padding: 2px 8px; border: 2px solid var(--dk); border-radius: 8px; }
@media (max-width: 1100px) { .dash-vgrid { grid-template-columns: 1fr 1fr; } .dash-ipa-wrap { grid-template-columns: 1fr; } .dash-ipa-detail { position: static; } }
@media (max-width: 640px) { .dash-vgrid { grid-template-columns: 1fr; } .dash-vcard.wide { grid-column: auto; } .dash-ipa-grid.six { grid-template-columns: repeat(4, minmax(0, 1fr)); } .dash-node.l { transform: translateX(-30px); } .dash-node.r { transform: translateX(30px); } }
.dash-tip { margin-top: 12px; font-size: 12.5px; opacity: .75; }

/* ---- kỹ năng: Nghe / Nói / Đọc / Viết (khung) ---- */
.dash-sec-r { order: 1; margin-left: auto; font-family: "Plus Jakarta Sans", sans-serif; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.dash-shelf { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 28px; padding: 22px 12px 18px; border-bottom: 10px solid #E8D9C8; border-radius: 0 0 6px 6px; background: linear-gradient(transparent 70%, rgba(18, 18, 18, .04)); }
.dash-shelf-item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px; border-radius: 16px; color: var(--dk); text-align: center; text-decoration: none; }
a.dash-shelf-item:hover { background: #F7F0DF; }
.dash-shelf-item.soon { opacity: .75; }
.dash-shelf-ic { display: grid; place-items: center; width: 84px; height: 72px; margin-bottom: 6px; border: 2px solid var(--dk); border-radius: 14px; background: var(--dp); font-size: 38px; box-shadow: 3px 3px 0 var(--dk); }
.dash-shelf-item b { font-size: 18px; } .dash-shelf-item small { font-size: 13px; font-weight: 700; opacity: .75; }
.dash-courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-bottom: 26px; }
.dash-course { position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 200px; padding: 20px; border: 2px solid var(--dk); border-radius: 20px; background: #FAE5D2; color: var(--dk); box-shadow: 4px 4px 0 var(--dk); text-decoration: none; }
.dash-course.green { background: #E6EBE2; } .dash-course.glacier { background: #DCE8F1; } .dash-course.red { background: #F7E2DC; }
a.dash-course:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--dk); }
.dash-course-ic { display: grid; place-items: center; width: 84px; height: 62px; margin-bottom: 12px; border: 2px solid var(--dk); border-radius: 8px; background: var(--dp); font-size: 32px; }
.dash-course .dash-ring { position: absolute; top: 18px; right: 18px; }
.dash-course h3 { font-size: 19px; font-weight: 800; line-height: 1.25; } .dash-course small { font-size: 12.5px; font-weight: 600; opacity: .7; }
.dash-course p { margin-top: 6px; font-size: 14px; opacity: .85; }
.dash-course em { align-self: flex-start; margin-top: auto; padding: 3px 10px; border: 1.5px solid rgba(18, 18, 18, .3); border-radius: 999px; background: var(--dp); font-style: normal; font-size: 11.5px; font-weight: 800; }
.dash-articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin-bottom: 26px; }
.dash-article { display: flex; flex-direction: column; gap: 6px; padding-bottom: 16px; border: 2px solid var(--dk); border-radius: 18px; background: var(--dp); color: var(--dk); box-shadow: 4px 4px 0 var(--dk); overflow: hidden; text-decoration: none; }
.dash-article h3, .dash-article p { padding: 0 16px; } .dash-article h3 { margin-top: 8px; font-size: 17px; font-weight: 800; } .dash-article p { font-size: 13.5px; opacity: .8; }
.dash-article-img { display: grid; place-items: center; aspect-ratio: 16 / 10; border-bottom: 2px solid var(--dk); background: #FAE5D2; font-size: 40px; }
.dash-article-img.green { background: #E6EBE2; } .dash-article-img.glacier { background: #DCE8F1; } .dash-article-img.red { background: #F7E2DC; }
.dash-yt { margin-bottom: 26px; } .dash-yt h2 { font-size: 22px !important; }

/* thanh bên: mục con ẩn, bấm mục cha mới sổ ra */
.dash-nav a.sub { display: none; }
.dash-nav a.sub.show { display: flex; animation: dashSub .18s ease; }
@keyframes dashSub { from { opacity: 0; transform: translateY(-3px); } }
.dash-caret { margin-left: auto; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .18s; opacity: .7; }
.dash-nav a[aria-expanded="true"] .dash-caret { transform: rotate(225deg) translate(-1px, -1px); }
@media (prefers-reduced-motion: reduce) { .dash-nav a.sub.show { animation: none; } .dash-caret { transition: none; } }

/* ---- mascot TOEX trong góc học tập (bộ assets/toex-study-club) ---- */
.dash-hero-img { position: absolute; right: 18px; bottom: 0; z-index: 1; height: 88%; max-height: 210px; width: auto; pointer-events: none; filter: drop-shadow(3px 3px 0 rgba(18, 18, 18, .15)); }
.dash-hero > :not(.dash-hero-img) { position: relative; z-index: 2; }
.dash-hero h1, .dash-hero p { max-width: min(720px, calc(100% - 170px)); }
.dash-road .dash-hero-img, .dash-top-hero .dash-hero-img { height: 200px; top: 18px; bottom: auto; }
.dash-mascot { width: 96px; height: auto; }
.dash-empty-img { width: 120px; height: auto; margin-bottom: 4px; }
.dash-empty img { display: block; width: 90px; margin: 0 auto 8px; }
.dash-here img { width: 92px; height: auto; }
.dash-top2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 26px; }
.dash-kicker { font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.dash-goal2 { position: relative; overflow: hidden; min-height: 250px; }
.dash-goal-n { display: flex; align-items: baseline; gap: 8px; } .dash-goal-n b { font-family: var(--v3-display, "Fraunces", serif); font-size: 72px; font-weight: 900; line-height: 1; } .dash-goal-n span { font-weight: 800; opacity: .55; font-size: 20px; }
.dash-goal2 input[type=range] { width: min(320px, 70%); height: 8px; appearance: none; -webkit-appearance: none; border-radius: 4px; background: linear-gradient(90deg, #B4413B var(--p), rgba(18, 18, 18, .12) var(--p)); cursor: pointer; }
.dash-goal2 input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border: 2px solid var(--dk); border-radius: 50%; background: var(--dp); box-shadow: 2px 2px 0 var(--dk); }
.dash-goal2 input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border: 2px solid var(--dk); border-radius: 50%; background: var(--dp); }
.dash-goal-scale { display: flex; justify-content: space-between; width: min(320px, 70%); font-size: 12.5px; font-weight: 700; opacity: .8; }
.dash-goal2 .dash-sub { max-width: 60%; }
.dash-goal-img { position: absolute; right: -6px; bottom: -6px; width: 190px; height: auto; pointer-events: none; }
.dash-next { position: relative; overflow: hidden; background: linear-gradient(120deg, #FFFDF8, #E6EBE2); }
.dash-next h2 { max-width: calc(100% - 110px); }
.dash-next-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dash-next-chips > * { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border: 1.5px solid rgba(18, 18, 18, .2); border-radius: 10px; background: var(--dp); font-size: 13.5px; font-weight: 800; }
.dash-next-chips select { border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.dash-next-prog { display: flex; justify-content: space-between; max-width: calc(100% - 110px); margin-top: 6px; font-weight: 700; }
.dash-bar.wide { max-width: calc(100% - 110px); }
.dash-next-img { position: absolute; right: 8px; top: 14px; width: 110px; height: auto; pointer-events: none; }
.dash-polaroids { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 16px; margin-bottom: 28px; }
.dash-polaroid { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 10px 10px 16px; border: 2px solid var(--dk); border-radius: 6px; background: var(--dp); color: var(--dk); box-shadow: 3px 4px 0 var(--dk); text-decoration: none; transition: transform .15s; }
.dash-polaroid:nth-child(odd) { transform: rotate(-1.2deg); } .dash-polaroid:nth-child(even) { transform: rotate(1deg); }
.dash-polaroid:hover { transform: rotate(0) translateY(-4px); }
.dash-tape { position: absolute; top: -10px; left: 50%; width: 58px; height: 18px; transform: translateX(-50%) rotate(-2deg); background: rgba(235, 194, 79, .75); border: 1px solid rgba(18, 18, 18, .15); }
.dash-photo { position: relative; display: grid; place-items: end center; aspect-ratio: 1 / .95; border: 2px solid var(--dk); border-radius: 3px; overflow: hidden; background: #D56461; background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, .08) 0 2px, transparent 2px 14px); }
.dash-photo.yellow { background-color: #EBC24F; } .dash-photo.green { background-color: #8E9F7E; } .dash-photo.glacier { background-color: #86A3BB; } .dash-photo.orange { background-color: #E58344; } .dash-photo.lilac { background-color: #AE9BCF; } .dash-photo.green2 { background-color: #6F8F6A; }
.dash-photo img { width: 86%; height: auto; margin-bottom: -6%; }
.dash-photo em { position: absolute; right: 6px; bottom: 6px; padding: 2px 8px; border: 1.5px solid var(--dk); border-radius: 4px; background: var(--dp); font-style: normal; font-size: 10.5px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; transform: rotate(-4deg); }
.dash-polaroid b { font-family: var(--v3-display, "Fraunces", serif); font-size: 22px; font-weight: 900; }
.dash-polaroid small { font-size: 12.5px; line-height: 1.45; opacity: .8; }
@media (max-width: 1280px) { .dash-polaroids { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 860px) { .dash-top2 { grid-template-columns: 1fr; } .dash-polaroids { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dash-hero-img { height: 110px; opacity: .9; } .dash-hero h1, .dash-hero p { max-width: calc(100% - 90px); } }
@media (max-width: 520px) { .dash-hero-img { display: none; } .dash-hero h1, .dash-hero p { max-width: none; } .dash-goal-img { width: 120px; } .dash-goal2 .dash-sub { max-width: none; } }
@media (prefers-reduced-motion: reduce) { .dash-polaroid { transition: none; } }

/* màn hình rộng: lưới thẻ giãn thêm cột */
@media (min-width: 1600px) { .dash-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .dash-vgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .dash-kpis { gap: 22px; } }

/* ---- theo ghi chú chủ web 25/10/2026: thanh mục con, Tổng quan 3 thẻ + gợi ý theo thời gian, tra từ khi bôi đen ---- */
.dash-subnav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.dash-subnav a { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border: 2px solid var(--dk); border-radius: 999px; background: var(--dp); color: var(--dk); font-weight: 800; font-size: 15px; text-decoration: none; }
.dash-subnav a:hover { background: #F7F0DF; }
.dash-subnav a[aria-current="page"] { background: #86A3BB; box-shadow: 2px 2px 0 var(--dk); }
.dash-subnav a:focus-visible { outline: 3px solid #F07A3C; outline-offset: 2px; }

.dash-top3 { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.dash-top3 .dash-goal2 { min-height: 0; }
.dash-top3 .dash-goal2 .dash-sub { max-width: none; }
.dash-top3 .dash-goal2 input[type=range], .dash-top3 .dash-goal-scale { width: 100%; }
.dash-bands { display: flex; flex-wrap: wrap; gap: 6px; }
.dash-bands button { min-height: 34px; min-width: 50px; padding: 0 10px; border: 1.5px solid rgba(18, 18, 18, .25); border-radius: 10px; background: var(--dp); color: var(--dk); font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; }
.dash-bands button.on { border: 2px solid var(--dk); background: #1E1F22; color: #FFFDF8; }
.dash-streakcard .dash-week { margin-top: 4px; }
.dash-streakcard .dash-sub, .dash-exam .dash-sub { margin: 0; }

.dash-time { margin-bottom: 18px; }
.dash-time-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; }
.dash-time-head h2 { margin: 4px 0 0; font-family: var(--v3-display, "Fraunces", serif); font-size: clamp(22px, 2.4vw, 28px); font-weight: 900; line-height: 1.2; }
.dash-time-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.dash-time-opts button { min-height: 42px; padding: 0 16px; border: 2px solid var(--dk); border-radius: 12px; background: var(--dp); color: var(--dk); font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; }
.dash-time-opts button.on { background: #F07A3C; box-shadow: 2px 2px 0 var(--dk); }
.dash-plan { display: grid; gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; }
.dash-plan li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 14px; border: 1.5px solid rgba(18, 18, 18, .18); border-radius: 14px; background: rgba(255, 253, 248, .6); }
.dash-plan li > b { display: grid; place-items: center; width: 30px; height: 30px; border: 2px solid var(--dk); border-radius: 50%; background: #86A3BB; font-size: 14px; }
.dash-plan a, .dash-plan a span, .dash-plan a small { text-decoration: none !important; }
.dash-plan a { display: flex; flex-direction: column; gap: 2px; color: var(--dk); }
.dash-plan a span { font-weight: 800; font-size: 16px; }
.dash-plan a small { font-size: 13px; opacity: .75; }
.dash-plan a:hover span { text-decoration: underline !important; }
.dash-plan em { font-style: normal; font-weight: 800; font-size: 13.5px; white-space: nowrap; }
.dash-time-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 6px; font-size: 14px; font-weight: 700; }
.dash-time-prog select { margin-left: 6px; border: 1.5px solid rgba(18, 18, 18, .25); border-radius: 8px; background: var(--dp); color: inherit; font: inherit; font-size: 13px; cursor: pointer; }
.dash-time .dash-bar.wide { max-width: none; }

.dash-lookup-box { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 26px; }
.dash-lookup-box h2 { margin: 4px 0 0; font-size: 17px; font-weight: 800; line-height: 1.4; }
.dash-lookup-in { display: flex; gap: 8px; flex: 0 1 380px; }
.dash-lookup-in input { flex: 1; min-width: 0; min-height: 44px; padding: 0 14px; border: 2px solid var(--dk); border-radius: 12px; background: var(--dp); color: var(--dk); font: inherit; font-size: 16px; }

.dash-lookup { position: fixed; z-index: 1000; width: min(340px, calc(100vw - 16px)); display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border: 2px solid var(--dk); border-radius: 16px; background: var(--dp); color: var(--dk); box-shadow: 4px 4px 0 var(--dk); font-size: 15px; }
.dash-lookup header { display: flex; align-items: center; gap: 8px; }
.dash-lookup header b { font-family: var(--v3-display, "Fraunces", serif); font-size: 22px; font-weight: 900; }
.dash-lookup header span { font-size: 14px; opacity: .75; }
.dash-lookup header button { display: grid; place-items: center; width: 34px; height: 34px; border: 1.5px solid rgba(18, 18, 18, .25); border-radius: 10px; background: transparent; color: inherit; font-size: 16px; cursor: pointer; }
.dash-lookup header [data-say] { margin-left: auto; }
.dash-lookup-vi { margin: 0; font-weight: 800; font-size: 17px; }
.dash-lookup ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.45; }
.dash-lookup ul small { display: inline-block; min-width: 64px; margin-right: 6px; font-weight: 800; opacity: .7; }
.dash-lookup footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dash-lookup-in-book { font-weight: 800; font-size: 14px; color: #3F6B3A; }
.dash-lookup .dash-msg { margin: 0; }

@media (max-width: 1100px) { .dash-top3 { grid-template-columns: 1fr 1fr; } .dash-top3 .dash-goal2 { grid-column: 1 / -1; } }
@media (max-width: 640px) { .dash-top3 { grid-template-columns: 1fr; } .dash-plan li { grid-template-columns: 30px minmax(0, 1fr); } .dash-plan em { grid-column: 2; } }
.dash-grid > .dash-full { grid-column: 1 / -1; }
#lich-su { margin-top: 30px; }

/* ---- 03/11: Tiến độ — điểm theo thời gian + điểm yếu theo Part (dashboard.js scoreChart / weakParts) ---- */
.dash-prog2 { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; margin-top: 18px; }
.dash-prog2 h2 { margin: 0; font-size: 20px; }
.dash-legend-sc .f::before { background: #2F4A62; border-radius: 50%; }
.dash-legend-sc .h::before { background: var(--dp, #fff); border-color: #2F4A62; border-radius: 50%; }
.dash-legend-sc .t::before { height: 0; border: 0; border-top: 2px dashed #C9693A; border-radius: 0; vertical-align: 3px; }
.dash-sc-last { margin: 10px 0 0; font-size: 14px; }
.dash-sc-last .up { color: #3F7A4E; font-weight: 800; } .dash-sc-last .down { color: #A8442E; font-weight: 800; }
.dash-sc-svg { display: block; width: 100%; height: auto; margin-top: 8px; overflow: visible; }
.dash-sc-svg text { font: 700 11px/1 Quicksand, system-ui, sans-serif; fill: currentColor; opacity: .62; }
.dash-sc-svg .g { stroke: currentColor; stroke-opacity: .12; stroke-width: 1; }
.dash-sc-svg .tg { stroke: #C9693A; stroke-width: 2; stroke-dasharray: 6 5; }
.dash-sc-svg .ln { fill: none; stroke: #86A3BB; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.dash-sc-svg .pt circle { fill: #2F4A62; stroke: #fff; stroke-width: 2; }
.dash-sc-svg .pt.h circle { fill: #fff; stroke: #2F4A62; stroke-width: 2.5; }
.dash-sc-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 14px; padding: 18px; border: 2px dashed rgba(18, 18, 18, .18); border-radius: 14px; }
.dash-sc-empty p { margin: 0; }
.dash-weak-list { display: grid; gap: 10px; margin-top: 14px; }
.dash-weak-row { display: grid; grid-template-columns: 58px minmax(0, 1fr) minmax(80px, 1.1fr) 92px; align-items: center; gap: 10px; font-size: 14px; }
.dash-weak-row .nm { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; opacity: .75; font-size: 13px; }
.dash-weak-row .bar { height: 12px; border: 1.5px solid var(--dk); border-radius: 999px; background: var(--dp, #fff); overflow: hidden; }
.dash-weak-row .bar i { display: block; height: 100%; background: #86A3BB; }
.dash-weak-row.weakest .bar i { background: #E39A63; }
.dash-weak-row.weakest b { color: #A8442E; }
.dash-weak-row em { font-style: normal; font-weight: 700; font-size: 12.5px; text-align: right; white-space: nowrap; }
.dash-weak-row.none { opacity: .5; }
.dash-weak-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 16px 0 0; font-size: 14px; }
@media (max-width: 900px) { .dash-prog2 { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .dash-weak-row { grid-template-columns: 52px minmax(0, 1fr) 84px; }
  .dash-weak-row .nm { display: none; }
  .dash-sc-svg text { font-size: 12px; }
}
html[data-theme="dark"] .dash-sc-svg .pt circle { fill: #86A3BB; stroke: #1e2731; }
html[data-theme="dark"] .dash-sc-svg .pt.h circle { fill: #1e2731; stroke: #86A3BB; }
html[data-theme="dark"] .dash-sc-svg .ln { stroke: #5f7f99; }
html[data-theme="dark"] .dash-sc-empty { border-color: rgba(255, 255, 255, .2); }
html[data-theme="dark"] .dash-legend-sc .f::before { background: #86A3BB; }
html[data-theme="dark"] .dash-legend-sc .h::before { background: #1e2731; border-color: #86A3BB; }
/* 03/11: điểm dự đoán (Tổng quan + Tiến độ) và chứng nhận hoàn thành (Tiến độ) */
.dash-prog3 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 18px; margin-top: 18px; align-items: start; }
.dash-prog3 h2 { margin: 0; font-size: 20px; }
html.moi .rg-du-doan { grid-column: 1 / -1; }
.rg-du-doan, .dash-du-doan { display: flex; flex-direction: column; gap: 12px; }
.dd-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.dd-total small { display: block; font-size: 13px; opacity: .72; }
.dd-total b.nil { font: 700 16px/1.4 "Be Vietnam Pro", system-ui, sans-serif; opacity: .75; }
.dd-total b { font: 800 30px/1.15 Unbounded, "Be Vietnam Pro", system-ui, sans-serif; color: #2F4A62; }
.dd-conf { padding: 5px 12px; border: 1.5px solid currentColor; border-radius: 999px; font-weight: 800; font-size: 13px; }
.dd-conf.tho { color: #A8442E; } .dd-conf.vua { color: #8A6A1F; } .dd-conf.cao { color: #3F7A4E; }
.dd-rows { display: grid; gap: 10px; }
.rg-du-doan .dd-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 26px; }
.dd-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 4px 10px; }
.dd-row small { font-size: 13.5px; font-weight: 700; }
.dd-row strong { font-size: 18px; color: #2F4A62; }
.dd-row em { grid-column: 1 / -1; font-style: normal; font-size: 12.5px; opacity: .7; }
.dd-bar { grid-column: 1 / -1; position: relative; display: block; height: 12px; border: 1.5px solid var(--dk, #1f2a35); border-radius: 999px; background: var(--dp, #fff); overflow: hidden; }
.dd-bar i { position: absolute; top: 0; bottom: 0; background: #86A3BB; border-radius: 999px; }
.dd-bar b { position: absolute; top: -1px; bottom: -1px; width: 3px; margin-left: -1.5px; background: #2F4A62; }
.dd-bar.none { opacity: .35; }
.dd-note, .dd-empty { margin: 0; font-size: 13.5px; line-height: 1.5; }
.dd-note b { color: #A8442E; }
.dash-cn-list { display: grid; gap: 12px; margin-top: 12px; }
.dash-cn-row { display: grid; grid-template-columns: minmax(120px, .8fr) minmax(0, 1.6fr) auto; align-items: center; gap: 10px 16px; padding: 12px 14px; border: 1.5px solid rgba(31, 42, 53, .18); border-radius: 14px; }
.dash-cn-row.ok { border-color: #86A3BB; background: rgba(134, 163, 187, .12); }
.dash-cn-row.got { border-color: #2F4A62; }
.dash-cn-name b { display: block; font-size: 15px; }
.dash-cn-name small { display: block; margin-top: 2px; font-size: 12.5px; opacity: .72; }
.dash-cn-tag { margin-left: 4px; padding: 1px 7px; border-radius: 6px; background: #E39A63; color: #1f2a35; font-size: 11px; vertical-align: 2px; }
.dash-cn-row ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; }
.dash-cn-row li { display: flex; align-items: center; gap: 7px; }
.dash-cn-row li i { flex: none; display: inline-grid; place-items: center; width: 17px; height: 17px; border: 1.5px solid currentColor; border-radius: 5px; font-style: normal; font-size: 12px; font-weight: 900; opacity: .55; }
.dash-cn-row li.done i { opacity: 1; background: #2F4A62; border-color: #2F4A62; color: #fff; }
.dash-cn-row li em { margin-left: auto; font-style: normal; font-weight: 800; font-size: 12.5px; opacity: .7; }
.dash-cn-act { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; justify-content: flex-end; }
.dash-cn-lock { font-size: 13px; opacity: .6; white-space: nowrap; }
.dash-cn-ten { display: grid; gap: 4px; font-size: 12.5px; font-weight: 700; }
.dash-cn-ten input { min-width: 0; width: 200px; padding: 8px 10px; border: 1.5px solid #2F4A62; border-radius: 10px; font: 600 15px "Be Vietnam Pro", system-ui, sans-serif; background: #fff; color: #1f2a35; }
@media (max-width: 1100px) { .dash-prog3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .rg-du-doan .dd-rows { grid-template-columns: 1fr; }
  .dash-cn-row { grid-template-columns: 1fr; }
  .dash-cn-act { justify-content: flex-start; }
  .dash-cn-ten input { width: 100%; }
  .dd-total b { font-size: 26px; }
}
html[data-theme="dark"] .dd-total b, html[data-theme="dark"] .dd-row strong { color: #b9cde0; }
html[data-theme="dark"] .dd-bar b { background: #eef2f6; }
html[data-theme="dark"] .dd-conf.tho, html[data-theme="dark"] .dd-note b { color: #f0a58a; } html[data-theme="dark"] .dd-conf.vua { color: #e6c46e; } html[data-theme="dark"] .dd-conf.cao { color: #8fcf9e; }
html[data-theme="dark"] .dash-cn-row { border-color: rgba(255, 255, 255, .2); }
html[data-theme="dark"] .dash-cn-row.got, html[data-theme="dark"] .dash-cn-row.ok { border-color: #86A3BB; }
html[data-theme="dark"] .dash-cn-row li.done i { background: #86A3BB; border-color: #86A3BB; color: #1e2731; }
html[data-theme="dark"] .dash-legend-sc .f::before { box-shadow: 0 0 0 1.5px #eef2f6; } /* chấm "Đề đầy đủ" rõ hơn trên nền tối */
