/* ════════════════════════════════════════════════════════════════════════════════════════════════
   🎨 CỔNG HỌC VIÊN — GIAO DIỆN V2 "3D hiện đại" (13/10/2026). Xem docs/cong-hoc-vien-giao-dien-v2.md.

   V2 KHÔNG phải trang thứ hai: cùng MỘT DOM, cùng mọi nút/id/trình nghe sự kiện của V1 trong
   public/index.html — chỉ là một lớp áo. MỌI luật ở đây đều đứng sau `html.gd-v2`, nên khi học viên
   chọn V1 (mặc định) thì tệp này không chạm vào bất cứ thứ gì. Phần tử V2 thêm vào (ảnh 3D, mũi tên,
   tiêu đề phụ…) mang lớp `.v2-chi` — ẩn hẳn ở V1. Phần tử chỉ của V1 mà V2 thay thế mang `.v1-chi`.
   Đổi qua lại = bật/tắt lớp `gd-v2` trên <html> (public/cong-v2.js), không tải lại trang.
   ════════════════════════════════════════════════════════════════════════════════════════════════ */

.v2-chi { display: none !important; }
html.gd-v2 .v1-chi { display: none !important; }

html.gd-v2 {
  --v2-nen: #FBF5E9;
  --v2-the: #FFFCF6;
  --v2-oliu: #586B35;
  --v2-oliu-dam: #3E5221;
  --v2-la: #91A95D;
  --v2-kem: #F3E9D2;
  --v2-vang: #E0B65A;
  --v2-dat: #D97961;
  --v2-lam: #7EAAC7;
  --v2-tim: #A58AC7;
  --v2-chu: #2F3427;
  --v2-chu-phu: #827762;
  --v2-vien: #EADCC2;
  --v2-bong: 0 18px 34px -24px rgba(96, 74, 30, .55), 0 2px 6px -4px rgba(96, 74, 30, .18);
  --v2-serif: "Noto Serif", "Chu Hiem", Cambria, Georgia, serif;
}
html.gd-v2 body {
  background:
    radial-gradient(1200px 520px at 85% -120px, rgba(255, 244, 214, .9), transparent 70%),
    var(--v2-nen);
  color: var(--v2-chu);
}

/* ── Khung trang: rộng ra cho lưới hai cột ngang; các mục chữ dày đặc vẫn giữ bề ngang dễ đọc ── */
html.gd-v2 .portal-wrap { max-width: 1080px; position: relative; padding-left: 20px; padding-right: 20px; }
html.gd-v2 #pane-home, html.gd-v2 #pane-quiz, html.gd-v2 #pane-me,
html.gd-v2 #login-view { max-width: 700px; margin-left: auto; margin-right: auto; }
html.gd-v2 #pane-home { width: 100%; }

/* ── Đầu trang ── */
html.gd-v2 header.top {
  border-bottom: none; padding: 14px 0 6px; margin-bottom: 18px; padding-right: 128px; min-height: 64px;
}
html.gd-v2 header.top .brand {
  font-family: var(--v2-serif); font-size: .92rem; letter-spacing: .1em; color: #B98A2A; font-weight: 800;
}
html.gd-v2 header.top h1.v1-chi + .v2-tieude, html.gd-v2 .v2-tieude {
  display: block !important; margin: 2px 0 0; font-family: var(--v2-serif); font-weight: 800;
  font-size: clamp(1.75rem, 5.2vw, 2.7rem); line-height: 1.12; letter-spacing: -.01em; color: var(--v2-oliu-dam);
}
html.gd-v2 .v2-phu { display: block !important; margin-top: 6px; font-size: clamp(.9rem, 2.4vw, 1.08rem); color: #6E6655; }
/* Chuông + nút cài đặt nổi ở góc phải đầu trang (chuông vẫn là CHÍNH nút của V1, chỉ dời chỗ bằng CSS). */
html.gd-v2 #student-notif-bell-wrap { position: absolute !important; top: 18px; right: 88px; z-index: 5; }
html.gd-v2 #v2-cai-dat-btn { display: flex !important; position: absolute; top: 18px; right: 20px; z-index: 5; }
html.gd-v2 #student-notif-bell-btn, html.gd-v2 #v2-cai-dat-btn {
  width: 56px; height: 56px; min-height: 0 !important; padding: 0 !important; border-radius: 50% !important;
  align-items: center; justify-content: center; display: flex;
  background: radial-gradient(circle at 35% 30%, #FFFFFF, #F6EEDD) !important; color: #6E6655;
  border: 1px solid var(--v2-vien) !important; box-shadow: 0 10px 22px -14px rgba(96, 74, 30, .7), inset 0 1px 0 #fff;
  font-size: 1.45rem !important; cursor: pointer;
}
html.gd-v2 #student-notif-bell-btn .v2-icn, html.gd-v2 #v2-cai-dat-btn .v2-icn { display: block !important; width: 34px; height: 34px; object-fit: contain; }
html.gd-v2 #student-notif-bell-btn.v2-co-anh { font-size: 0 !important; }
html.gd-v2 #student-notif-bell-btn.v2-co-anh #student-notif-badge { font-size: .72rem; }
html.gd-v2 #student-notif-badge { top: -2px !important; right: -2px !important; }
/* 🔥 Chuỗi ngày học (#chuoi-goc, mặc định nằm góc phải trên) phải ĐỨNG RIÊNG, không chui dưới chuông + bánh răng:
   màn rộng = cùng hàng, bên trái chuông; điện thoại = hàng dưới hai nút, sát phải (xem khối ≤640px). */
html.gd-v2 #chuoi-goc { right: 154px !important; top: 28px !important; }
html.gd-v2 #nut-tieng-anh { right: 270px !important; top: 26px !important; }

/* ── Thẻ chào (chính là .dash-head của V1) + tranh ba lô ── */
html.gd-v2 .dash-head {
  position: relative; display: flex; align-items: center; gap: 22px; min-height: 168px;
  margin: 72px 0 20px; padding: 26px 320px 26px 28px; box-sizing: border-box;
  border-radius: 30px; border: 1px solid var(--v2-vien);
  background: linear-gradient(105deg, rgba(255, 252, 244, .97) 0%, rgba(250, 244, 228, .94) 55%, rgba(241, 236, 214, .9) 100%);
  box-shadow: var(--v2-bong), inset 0 1px 0 rgba(255, 255, 255, .95);
}
html.gd-v2 #dash-avatar-slot .avatar-circle {
  width: 84px !important; height: 84px !important; font-size: 2.3rem !important; font-family: var(--v2-serif);
  box-shadow: 0 0 0 4px #FFF8E6, 0 0 0 7px #D9AE4E, 0 10px 20px -8px rgba(120, 90, 20, .6);
}
html.gd-v2 #dash-avatar-slot .avatar-circle.placeholder {
  background: radial-gradient(circle at 35% 30%, #E9C46A, #C99A2E 70%, #B5841F); color: #FFF9EA;
}
html.gd-v2 .dash-head .who .name {
  font-family: var(--v2-serif); font-weight: 800; font-size: clamp(1.35rem, 3.6vw, 2.05rem); color: #2E3A1C; line-height: 1.2;
}
html.gd-v2 .dash-head .who .cls { font-size: clamp(.95rem, 2.4vw, 1.12rem); color: #6E6655; margin-top: 6px; }
html.gd-v2 .v2-tiendo { display: block !important; margin-top: 14px; height: 14px; max-width: 340px; border-radius: 99px;
  background: #EFE7D3; box-shadow: inset 0 1px 2px rgba(96, 74, 30, .18); overflow: hidden; }
html.gd-v2 .v2-tiendo > i { display: block; height: 100%; width: 0; border-radius: 99px;
  background: linear-gradient(180deg, #8EA35A, #5E7536); transition: width .6s ease; }
html.gd-v2 .v2-balo {
  display: block !important; position: absolute; right: 26px; bottom: -4px; width: auto; height: 290px;
  aspect-ratio: 677 / 720; object-fit: contain; object-position: right bottom; pointer-events: none;
  filter: drop-shadow(0 14px 18px rgba(96, 74, 30, .18));
}

/* ── Tiêu đề khu "Luyện tập thêm" ── */
html.gd-v2 .v2-khu { display: flex !important; align-items: center; gap: 14px; margin: 8px 4px 18px; flex-wrap: wrap; }
html.gd-v2 .v2-khu .la { width: 22px; height: 30px; flex: none; border-radius: 0 100% 0 100%; transform: rotate(-12deg);
  background: linear-gradient(135deg, #A9BE6E, #5E7536); box-shadow: inset -2px -2px 0 rgba(0, 0, 0, .08); }
html.gd-v2 .v2-khu .ten { font-family: var(--v2-serif); font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  font-size: 1.12rem; color: #4E5A2B; }
html.gd-v2 .v2-khu .gach { flex: 1; min-width: 40px; height: 1px; background: linear-gradient(90deg, #DCCDA8, transparent); }
html.gd-v2 .v2-khu .phu { font-size: .92rem; color: #7A705C; }

/* ── Lưới thẻ luyện tập ── */
html.gd-v2 #pane-practice .tile-grid { gap: 18px; grid-template-columns: 1fr 1fr; margin-bottom: 26px; }
html.gd-v2 #pane-practice .tile-btn {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 46%;
  grid-template-areas: "nm anh" "sb anh" "mui anh";
  grid-template-rows: auto auto 1fr; align-items: start; justify-items: start; text-align: left;
  gap: 0 10px; min-height: 172px; padding: 26px 18px 22px 28px; overflow: hidden;
  border-radius: 28px; border: 1px solid var(--v2-vien);
  background: linear-gradient(180deg, var(--t-n1, #FFFCF6), var(--t-n2, #F6EEDD));
  box-shadow: var(--v2-bong), inset 0 1px 0 rgba(255, 255, 255, .95);
}
html.gd-v2 #pane-practice .tile-btn.v2-trai {
  grid-template-columns: 46% minmax(0, 1fr); grid-template-areas: "anh nm" "anh sb" "anh mui"; padding: 22px 26px 20px 16px;
}
html.gd-v2 #pane-practice .tile-btn > .ic { grid-area: anh; align-self: center; justify-self: center; }
html.gd-v2 #pane-practice .tile-btn.v2-co-anh > .ic { display: none; }
html.gd-v2 #pane-practice .tile-btn:not(.v2-co-anh) > .ic {
  width: 112px; height: 112px; border-radius: 34px; display: flex; align-items: center; justify-content: center;
  font-size: 3.4rem; background: radial-gradient(circle at 35% 30%, #FFFFFF, var(--t-n2, #F1E6CC));
  box-shadow: 0 14px 24px -16px rgba(96, 74, 30, .7), inset 0 1px 0 #fff;
}
html.gd-v2 #pane-practice .tile-btn > .ic svg { width: 76px; height: 76px; }
html.gd-v2 #pane-practice .tile-btn > .nm {
  grid-area: nm; font-family: var(--v2-serif); font-weight: 800; font-size: clamp(1.18rem, 2.5vw, 1.6rem);
  line-height: 1.2; color: var(--t-chu, #2F4A22); letter-spacing: -.005em;
}
html.gd-v2 #pane-practice .tile-btn > .sb { grid-area: sb; font-size: clamp(.86rem, 1.9vw, 1.04rem); color: #7A705C; margin-top: 8px; line-height: 1.35; }
html.gd-v2 #pane-practice .tile-btn > .v2-anh {
  display: block !important; grid-area: anh; align-self: center; justify-self: center;
  width: 100%; height: 150px; object-fit: contain; pointer-events: none;
}
html.gd-v2 #pane-practice .tile-btn > .v2-mui {
  display: flex !important; grid-area: mui; align-self: end; margin-top: 16px;
  width: 50px; height: 50px; border-radius: 50%; align-items: center; justify-content: center;
  background: var(--t-mui, #8FA67A); color: #fff;
  box-shadow: 0 8px 16px -8px var(--t-mui, #8FA67A), inset 0 1px 0 rgba(255, 255, 255, .35);
}
html.gd-v2 #pane-practice .tile-btn.v2-trai > .v2-mui { justify-self: end; }
html.gd-v2 #pane-practice .tile-btn > .v2-mui svg { width: 24px; height: 24px; }
html.gd-v2 #dashboard-view #pane-practice .tile-btn:active { transform: scale(.975); filter: brightness(.97); }
@media (hover: hover) {
  html.gd-v2 #dashboard-view #pane-practice .tile-btn:hover {
    transform: translateY(-3px); border-color: #D9C79F;
    box-shadow: 0 24px 40px -24px rgba(96, 74, 30, .6), inset 0 1px 0 #fff;
  }
}
html.gd-v2 #dashboard-view #pane-practice .tile-btn:focus-visible { outline: 3px solid rgba(88, 107, 53, .6); outline-offset: 3px; }

/* Bảng màu từng ô — dịu, theo ảnh mẫu. */
html.gd-v2 .tile-btn[data-v2="nghe"]       { --t-n1:#F1F7FB; --t-n2:#DFECF4; --t-chu:#1F4766; --t-mui:#6E93B0; }
html.gd-v2 .tile-btn[data-v2="phat-am"]    { --t-n1:#FFF9EC; --t-n2:#F8ECCF; --t-chu:#82291F; --t-mui:#D9A73A; }
html.gd-v2 .tile-btn[data-v2="tra-tu"]     { --t-n1:#FFFDF6; --t-n2:#F5F0E1; --t-chu:#2F4A22; --t-mui:#8DA27A; }
html.gd-v2 .tile-btn[data-v2="kho-chu"]    { --t-n1:#FFFBF2; --t-n2:#F6EDD9; --t-chu:#6A3714; --t-mui:#AE7A4C; }
html.gd-v2 .tile-btn[data-v2="bo-thu"]     { --t-n1:#FFFCF5; --t-n2:#F8EEE2; --t-chu:#82291F; --t-mui:#D65D55; }
html.gd-v2 .tile-btn[data-v2="ve-chu"]     { --t-n1:#FFFBF2; --t-n2:#F6EDDB; --t-chu:#6A3714; --t-mui:#C9A06A; }
html.gd-v2 .tile-btn[data-v2="phon-gian"]  { --t-n1:#FDF3F1; --t-n2:#F7E0DC; --t-chu:#82291F; --t-mui:#D65D55; }
html.gd-v2 .tile-btn[data-v2="video"]      { --t-n1:#F3F7FC; --t-n2:#E2EBF5; --t-chu:#1F3D6B; --t-mui:#5B86C9; }
html.gd-v2 .tile-btn[data-v2="viet-chu"]   { --t-n1:#FDF3F1; --t-n2:#F7E0DC; --t-chu:#82291F; --t-mui:#D65D55; }
html.gd-v2 .tile-btn[data-v2="so-chu"]     { --t-n1:#F7F3FC; --t-n2:#EAE2F5; --t-chu:#2B336B; --t-mui:#8B6FC4; }
html.gd-v2 .tile-btn[data-v2="ghi-chep"]   { --t-n1:#FDF3F1; --t-n2:#F7E0DC; --t-chu:#82291F; --t-mui:#DD6B5C; }
html.gd-v2 .tile-btn[data-v2="giao-trinh"] { --t-n1:#FFFBF2; --t-n2:#F6EDDB; --t-chu:#82291F; --t-mui:#B5885A; }
html.gd-v2 .tile-btn[data-v2="giao-tiep"]  { --t-n1:#F5F8EC; --t-n2:#E5EDD3; --t-chu:#2F4A22; --t-mui:#5E7A44; }
html.gd-v2 .tile-btn[data-v2="quan-hung"]  { --t-n1:#F5F8EC; --t-n2:#E5EDD3; --t-chu:#2F4A22; --t-mui:#7A8C3C; }
html.gd-v2 .tile-btn[data-v2="thinh-van"]  { --t-n1:#F7F8EE; --t-n2:#EAEEDA; --t-chu:#2F4A22; --t-mui:#7FA05A; }
html.gd-v2 .tile-btn[data-v2="audio"]      { --t-n1:#FFFBF2; --t-n2:#F6EDDB; --t-chu:#72291B; --t-mui:#B5885A; }
html.gd-v2 .tile-btn[data-v2="hsk"]        { --t-n1:#FFFBF2; --t-n2:#F6EDDB; --t-chu:#82291F; --t-mui:#E0AE36; }
html.gd-v2 .tile-btn[data-v2="tocfl"]      { --t-n1:#FFFBF2; --t-n2:#F6EDDB; --t-chu:#82291F; --t-mui:#D9534A; }
html.gd-v2 .tile-btn[data-v2="than-ngu-gioi"] { --t-n1:#FFF8F2; --t-n2:#F7E6DB; --t-chu:#72291B; --t-mui:#C0564A; }

/* ── "Cùng về đích" (cung-ve-dich.js vẽ, V2 chỉ mặc áo) ── */
html.gd-v2 #cvd-host .cvd-strip {
  position: relative; margin: 6px 0 10px; padding: 26px 28px 24px; border-radius: 30px;
  border: 1px solid #E3DABF; background: linear-gradient(135deg, #FBF7EA 0%, #F2F1DE 60%, #ECEFD9 100%);
  box-shadow: var(--v2-bong), inset 0 1px 0 rgba(255, 255, 255, .9);
}
html.gd-v2 #cvd-host .cvd-strip .hd { font-family: var(--v2-serif); font-size: clamp(1.12rem, 2.6vw, 1.5rem); color: #2F4A22; margin-bottom: 10px; }
html.gd-v2 #cvd-host .cvd-strip .cvd-note { font-size: .98rem; color: #7A705C; line-height: 1.55; }
html.gd-v2 #cvd-host .cvd-strip .cvd-note[style] { font-size: clamp(1rem, 2.2vw, 1.18rem); color: #A2701A !important; font-family: var(--v2-serif); }
html.gd-v2 #cvd-host .cvd-sets { gap: 10px; margin-top: 16px; }
html.gd-v2 #cvd-host .cvd-set {
  min-height: 48px; padding: 10px 20px; font-size: 1rem; font-weight: 700; border-radius: 999px;
  background: #FFFCF4; border: 1px solid #E5D8B9; color: #4E4A36; box-shadow: 0 6px 14px -12px rgba(96, 74, 30, .8);
}
html.gd-v2 #cvd-host .cvd-set.on {
  background: linear-gradient(180deg, #6C8040, #4C5F2A); border-color: #4C5F2A; color: #fff;
  box-shadow: 0 10px 18px -10px rgba(62, 82, 33, .9);
}
html.gd-v2 #cvd-host .cvd-act { gap: 10px; margin-top: 12px; }
html.gd-v2 #cvd-host .cvd-btn {
  min-height: 52px; padding: 12px 22px; font-size: 1.04rem; border-radius: 999px;
  background: linear-gradient(180deg, #6C8040, #4C5F2A); box-shadow: 0 10px 18px -10px rgba(62, 82, 33, .9);
}
html.gd-v2 #cvd-host .cvd-btn.soft { background: #EFE7D3; color: #3E4A22; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7); }
html.gd-v2 #cvd-host .cvd-strip::after {
  content: ""; position: absolute; right: 18px; bottom: 10px; width: 170px; height: 128px; pointer-events: none;
  background: var(--v2-anh-cvd, none) right bottom / contain no-repeat;
}
@media (min-width: 760px) {
  html.gd-v2 #cvd-host .cvd-strip { padding-right: 32px; padding-bottom: 28px; }
  html.gd-v2 #cvd-host .cvd-strip > .cvd-note:last-of-type { margin-right: 190px; min-height: 40px; }
}
@media (max-width: 759px) { html.gd-v2 #cvd-host .cvd-strip::after { display: none; } }

/* ── Tiêu đề khu ở các mục khác: dịu lại cho hợp tông ── */
html.gd-v2 .sec-title { font-family: var(--v2-serif); color: #6B6A3E; letter-spacing: .12em; }

/* ── Thanh 4 mục dưới chân ── */
html.gd-v2 body.has-tabbar { padding-bottom: 118px; }
html.gd-v2 #tabbar {
  max-width: 1040px; margin: 0 auto; gap: 8px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 251, 242, .96); border: 1px solid var(--v2-vien); border-bottom: none; border-radius: 30px 30px 0 0;
  box-shadow: 0 -14px 34px -24px rgba(96, 74, 30, .7);
}
html.gd-v2 .tabbtn { min-height: 68px; border-radius: 20px; color: #6E6655; }
html.gd-v2 .tabbtn .lb { font-family: var(--v2-serif); font-size: .92rem; font-weight: 800; }
html.gd-v2 .tabbtn.active { background: #E6EDD2; color: var(--v2-oliu-dam); }
html.gd-v2 .tabbtn .v2-tabanh { display: block !important; width: 40px; height: 40px; object-fit: contain; margin-bottom: 1px; }
html.gd-v2 .tabbtn.v2-co-anh > .ic:not(.av) { display: none; }
html.gd-v2 .tabbtn:not(.active) .v2-tabanh { filter: saturate(.7); opacity: .85; }
html.gd-v2 .tabbtn .ic.av { opacity: .9; }
html.gd-v2 .tbadge { top: 4px; margin-right: -30px; min-width: 26px; height: 26px; line-height: 26px; font-size: .84rem;
  background: linear-gradient(180deg, #E0584A, #B83A2E); border: 2px solid #FFFBF2; }

/* Điện thoại hẹp ⇒ khe nhỏ + chữ nhỏ một chút cho vừa (thanh 4 mục; ⚙️ Cài đặt gộp vào «Tôi» 8/11/2026) */
@media (max-width: 480px) {
  html.gd-v2 #tabbar { gap: 3px; padding-left: 8px; padding-right: 8px; }
  html.gd-v2 .tabbtn .lb { font-size: .8rem; }
  html.gd-v2 .tabbtn .v2-tabanh { width: 36px; height: 36px; }
}

/* ── Khối chọn giao diện (có ở CẢ V1 lẫn V2, trong khu ⚙️ Cài đặt cuối tab «Tôi») ── */
.gd-chon { margin: 0 0 14px; padding: 15px 16px; border-radius: 18px; border: 1px solid #e2d4b3; background: #fffdf6; }
.gd-chon .gd-dau { font-weight: 800; font-size: 1.02rem; color: #4a4130; }
.gd-chon .gd-mo { font-size: .88rem; color: #786d4f; margin-top: 3px; line-height: 1.5; }
.gd-chon .gd-hai { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.gd-chon .gd-nut {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-height: 66px; padding: 12px 14px;
  border-radius: 15px; border: 1.5px solid #e3d6b6; background: #fffdf7; color: #4a4130; font-family: inherit;
  text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform .16s cubic-bezier(.34, 1.56, .64, 1), background-color .15s ease;
}
.gd-chon .gd-nut b { font-size: 1rem; }
.gd-chon .gd-nut span { font-size: .84rem; color: #786d4f; }
.gd-chon .gd-nut[aria-checked="true"] { background: linear-gradient(180deg, #67743e, #4e5a2c); border-color: #4e5a2c; color: #fff; }
.gd-chon .gd-nut[aria-checked="true"] span { color: rgba(255, 255, 255, .85); }
.gd-chon .gd-nut:active { transform: scale(.96); }
.gd-chon .gd-nut:focus-visible { outline: 3px solid rgba(122, 132, 80, .55); outline-offset: 2px; }
html.gd-v2 .gd-chon { border-radius: 24px; border-color: var(--v2-vien); background: var(--v2-the); box-shadow: var(--v2-bong); }

/* ════════════ Màn vừa (máy tính bảng dọc) ════════════ */
@media (max-width: 900px) {
  html.gd-v2 #pane-practice .tile-btn { min-height: 160px; padding: 22px 14px 18px 22px; }
  html.gd-v2 #pane-practice .tile-btn > .v2-anh { height: 128px; }
}

/* ════════════ Điện thoại: hai cột dọc (ảnh trên, chữ dưới) ════════════ */
@media (max-width: 640px) {
  html.gd-v2 .portal-wrap { padding-left: 16px; padding-right: 16px; }
  html.gd-v2 header.top { padding-right: 112px; margin-bottom: 8px; }
  html.gd-v2 header.top .brand { font-size: .78rem; }
  html.gd-v2 #student-notif-bell-wrap { top: 18px; right: 74px; }
  html.gd-v2 #chuoi-goc { right: 16px !important; top: 74px !important; }
  html.gd-v2 #v2-cai-dat-btn { top: 18px; right: 16px; }
  html.gd-v2 #student-notif-bell-btn, html.gd-v2 #v2-cai-dat-btn { width: 48px; height: 48px; }
  html.gd-v2 #student-notif-bell-btn .v2-icn, html.gd-v2 #v2-cai-dat-btn .v2-icn { width: 28px; height: 28px; }
  html.gd-v2 #nut-tieng-anh { position: static !important; display: inline-block; margin-top: 10px; }

  html.gd-v2 .dash-head { margin-top: 118px; padding: 18px 18px 20px; flex-wrap: wrap; gap: 14px; min-height: 0; align-items: flex-start; }
  html.gd-v2 .dash-head .who { flex-basis: calc(100% - 100px); }
  html.gd-v2 #dash-avatar-slot .avatar-circle { width: 64px !important; height: 64px !important; font-size: 1.8rem !important; }
  /* Điện thoại: tranh ba lô ngồi TRÊN mép thẻ (chỉ chạm viền 12px) — đặt trong thẻ là đè lên tên. */
  html.gd-v2 .v2-balo { height: 128px; right: 10px; bottom: calc(100% - 14px); }
  html.gd-v2 .dash-head .who .name { padding-right: 0; }
  html.gd-v2 .v2-tiendo { max-width: none; }

  html.gd-v2 .v2-khu { margin-bottom: 14px; gap: 10px; }
  html.gd-v2 .v2-khu .ten { font-size: .98rem; }
  html.gd-v2 .v2-khu .phu { flex-basis: 100%; font-size: .86rem; margin-left: 32px; }

  html.gd-v2 #pane-practice .tile-grid { gap: 12px; }
  html.gd-v2 #pane-practice .tile-btn, html.gd-v2 #pane-practice .tile-btn.v2-trai {
    grid-template-columns: minmax(0, 1fr); grid-template-areas: "anh" "nm" "sb" "mui"; grid-template-rows: auto auto auto 1fr;
    min-height: 0; padding: 12px 14px 14px; border-radius: 24px;
  }
  html.gd-v2 #pane-practice .tile-btn > .v2-anh { height: 92px; justify-self: center; }
  html.gd-v2 #pane-practice .tile-btn:not(.v2-co-anh) > .ic { width: 84px; height: 84px; border-radius: 26px; font-size: 2.6rem; margin: 4px 0; }
  html.gd-v2 #pane-practice .tile-btn > .ic svg { width: 58px; height: 58px; }
  html.gd-v2 #pane-practice .tile-btn > .nm { font-size: 1.1rem; margin-top: 8px; }
  html.gd-v2 #pane-practice .tile-btn > .sb { font-size: .84rem; margin-top: 4px; }
  html.gd-v2 #pane-practice .tile-btn > .v2-mui,
  html.gd-v2 #pane-practice .tile-btn.v2-trai > .v2-mui { justify-self: end; width: 44px; height: 44px; margin-top: 10px; }
  html.gd-v2 #pane-practice .tile-btn > .v2-mui svg { width: 20px; height: 20px; }

  html.gd-v2 #cvd-host .cvd-strip { padding: 18px 16px; border-radius: 24px; }
  html.gd-v2 #cvd-host .cvd-set { padding: 9px 14px; font-size: .95rem; min-height: 46px; }
  html.gd-v2 #cvd-host .cvd-btn { padding: 11px 16px; font-size: .98rem; }

  html.gd-v2 #tabbar { gap: 4px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px)); border-radius: 24px 24px 0 0; }
  html.gd-v2 .tabbtn { min-height: 62px; }
  html.gd-v2 .tabbtn .lb { font-size: .82rem; }
  html.gd-v2 .tabbtn .v2-tabanh { width: 30px; height: 30px; }
  html.gd-v2 body.has-tabbar { padding-bottom: 104px; }
}
@media (max-width: 380px) {
  html.gd-v2 #pane-practice .tile-btn { padding: 10px 11px 12px; }
  html.gd-v2 #pane-practice .tile-btn > .nm { font-size: 1.02rem; }
  html.gd-v2 #pane-practice .tile-btn > .v2-anh { height: 80px; }
  html.gd-v2 .v2-balo { height: 116px; }
}

@media (prefers-reduced-motion: reduce) {
  html.gd-v2 .v2-tiendo > i { transition: none; }
  html.gd-v2 #dashboard-view #pane-practice .tile-btn, .gd-chon .gd-nut { transition: none !important; }
}

/* ════════════ 📣 Hộp bung "Chọn giao diện" (cả V1 lẫn V2 đều thấy — cong-v2.js · moHoi) ════════════ */
#gdh-phu {
  position: fixed; inset: 0; z-index: 12000; display: flex; align-items: flex-start; justify-content: center;
  padding: 18px 14px calc(18px + env(safe-area-inset-bottom, 0px)); overflow-y: auto;
  background: rgba(36, 30, 18, .58); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.gdh-hop {
  position: relative; margin: auto; width: 100%; max-width: 560px; box-sizing: border-box; padding: 24px 20px 16px;
  border-radius: 28px; border: 1px solid #EADCC2; color: #2F3427; font-family: "Noto Serif", "Chu Hiem", Cambria, Georgia, serif;
  background: radial-gradient(700px 260px at 80% -60px, #FFF4D6, transparent 70%), #FFFCF6;
  box-shadow: 0 30px 70px -24px rgba(60, 45, 20, .7);
}
.gdh-x { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; padding: 0;
  background: rgba(96, 74, 30, .08); color: #6E6655; font-size: 1.05rem; cursor: pointer; }
.gdh-nhan { font-size: .78rem; font-weight: 800; letter-spacing: .12em; color: #B98A2A; padding-right: 48px; }
.gdh-tieude { font-size: 1.55rem; font-weight: 800; color: #3E5221; line-height: 1.2; margin-top: 6px; padding-right: 40px; }
.gdh-mo { font-size: 1rem; color: #6E6655; line-height: 1.55; margin-top: 8px; }
.gdh-hai { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.gdh-the {
  display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 12px 12px 14px; border-radius: 22px;
  border: 2px solid #EADCC2; background: #FFFDF8; color: #2F3427; font-family: inherit; text-align: left; cursor: pointer;
  box-shadow: 0 12px 24px -20px rgba(96, 74, 30, .8); -webkit-tap-highlight-color: transparent;
  transition: transform .16s cubic-bezier(.34, 1.56, .64, 1), border-color .15s ease, box-shadow .15s ease;
}
.gdh-the b { font-size: 1.08rem; margin-top: 8px; }
.gdh-the small { font-size: .86rem; color: #7A705C; line-height: 1.4; }
.gdh-chon { display: flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 10px; border-radius: 999px;
  font-weight: 800; font-size: 1rem; color: #fff; background: linear-gradient(180deg, #6C8040, #4C5F2A);
  box-shadow: 0 10px 18px -12px rgba(62, 82, 33, .9); }
.gdh-the[data-gd="v1"] .gdh-chon { background: linear-gradient(180deg, #A08A52, #7D6A38); }
.gdh-the[aria-pressed="true"] { border-color: #5E7536; box-shadow: 0 0 0 3px rgba(94, 117, 54, .25); }
.gdh-the:active { transform: scale(.97); }
.gdh-the:focus-visible, .gdh-x:focus-visible, .gdh-sau:focus-visible { outline: 3px solid rgba(88, 107, 53, .6); outline-offset: 3px; }
@media (hover: hover) { .gdh-the:hover { border-color: #C9B98F; transform: translateY(-2px); } }
/* Ảnh xem trước dựng bằng CSS (không phải ảnh chụp màn hình): V1 = ô vuông giữa biểu tượng cũ; V2 = thẻ ngang + hình 3D. */
.gdh-xem { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px; border-radius: 16px; min-height: 112px; box-sizing: border-box; }
.gdh-xem1 { background: #FAF3E6; }
.gdh-xem1 span { display: flex; align-items: center; justify-content: center; border-radius: 12px; font-size: 1.35rem;
  border: 1px solid #e2d4b3; background: linear-gradient(180deg, #fffdf6, #f5eeda); min-height: 44px; }
.gdh-xem2 { background: #FBF5E9; }
.gdh-o2 { position: relative; display: flex; align-items: center; justify-content: flex-end; padding: 2px 4px; border-radius: 12px;
  border: 1px solid #EADCC2; background: linear-gradient(180deg, #FFFCF6, #F3EBD8); min-height: 44px; }
.gdh-o2:nth-child(1) { background: linear-gradient(180deg, #F1F7FB, #DFECF4); }
.gdh-o2:nth-child(2) { background: linear-gradient(180deg, #FFF9EC, #F8ECCF); }
.gdh-o2 img { width: 36px; height: 36px; object-fit: contain; }
.gdh-o2 i { position: absolute; left: 7px; top: 9px; width: 40%; height: 5px; border-radius: 9px; background: #8B7C5C; opacity: .55;
  box-shadow: 0 9px 0 -1px rgba(139, 124, 92, .4); }
.gdh-ghi { font-size: .92rem; color: #7A705C; line-height: 1.5; margin-top: 14px; text-align: center; }
.gdh-ghi b { color: #4E5A2B; }
.gdh-sau { display: block; margin: 6px auto 0; min-height: 46px; padding: 0 18px; border: 0; background: none; color: #7A705C;
  font-family: inherit; font-size: .98rem; font-weight: 700; text-decoration: underline; cursor: pointer; }
.gdh-bao { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 12001;
  padding: 12px 20px; border-radius: 999px; background: #3E5221; color: #fff; font-weight: 800; font-size: .98rem;
  box-shadow: 0 14px 30px -14px rgba(30, 40, 15, .8); white-space: nowrap; }
@media (max-width: 420px) {
  .gdh-hop { padding: 20px 14px 12px; border-radius: 24px; }
  .gdh-tieude { font-size: 1.32rem; }
  .gdh-hai { gap: 9px; }
  .gdh-the { padding: 9px 9px 12px; border-radius: 18px; }
  .gdh-xem { min-height: 96px; gap: 5px; padding: 6px; }
  .gdh-xem1 span, .gdh-o2 { min-height: 38px; }
  .gdh-o2 img { width: 30px; height: 30px; }
  .gdh-the b { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) { .gdh-the { transition: none; } }
