/* ===== Thanh trên Góc học tập (thanh-tren.js) + hộp hướng dẫn lần đầu (huong-dan.js) – 31/10/2026, chỉ bản Ghibli (html.gb) =====
   Kính sáng: trắng 82%, viền trắng, chữ xanh rừng #3A4A32, nút chính cam #B25D2A. Chữ Be Vietnam Pro / Lora. */
html.gb { --tt-kinh: rgba(255, 253, 246, .84); --tt-vien: rgba(255, 255, 255, .72); --tt-chu: #2B3424; --tt-phu: #625E51; --tt-rung: #3A4A32; --tt-cam: #B25D2A; }

/* ---------- thanh ---------- */
html.gb .tt-cho { margin: 0; }
html.gb .tt-bar.tt-dinh { position: fixed; top: 10px; margin: 0; box-sizing: border-box; }
html.gb .tt-bar { position: sticky; top: 10px; z-index: 40; display: flex; align-items: center; gap: 12px; margin: 0 0 18px; padding: 8px 10px; border: 1px solid var(--tt-vien); border-radius: 18px;
  background: rgba(255, 255, 255, .58); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); box-shadow: 0 6px 22px rgba(20, 32, 18, .12); font-family: "Be Vietnam Pro", system-ui, sans-serif; }
html.gb .tt-bar.tt-dinh { background: rgba(255, 255, 255, .86); } /* đang dính khi cuộn: đặc hơn để chữ phía sau không lộ */
html.gb.gb-toi .tt-bar.tt-dinh { background: rgba(16, 24, 14, .9); }
/* đổi hình nền đã có ở thanh trên → bỏ mục "Hình nền" cuối thanh bên và nút nổi của doi-nen.js ở Góc học tập */
html.gb body.dash :is(.dash-nav .dn-mo-nav, .dn-nut):not(#hz) { display: none !important; }
html.gb .tt-kinh { background: rgba(255, 253, 246, .97); border: 1px solid var(--tt-vien); -webkit-backdrop-filter: blur(20px) saturate(1.3); backdrop-filter: blur(20px) saturate(1.3); box-shadow: 0 14px 40px rgba(20, 32, 18, .22); color: var(--tt-chu); }
html.gb .tt-tim { position: relative; flex: 1 1 auto; max-width: 560px; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 10px 0 14px; border: 1px solid var(--tt-vien); border-radius: 12px; background: var(--tt-kinh); color: var(--tt-phu); }
html.gb .tt-tim:focus-within { border-color: var(--tt-rung); box-shadow: 0 0 0 3px rgba(58, 74, 50, .18); }
html.gb .tt-bar .tt-tim input:not(#hz) { flex: 1; min-width: 0; height: 100% !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; outline: 0; background: transparent !important; box-shadow: none !important; color: var(--tt-chu); font: 600 15px/1 "Be Vietnam Pro", system-ui, sans-serif; } /* :not(#hz): thắng kiểu ô nhập chung (khung trắng lồng trong ô tìm) */
html.gb .tt-tim input::placeholder { color: var(--tt-phu); font-weight: 500; }
html.gb .tt-tim kbd { padding: 3px 7px; border: 1px solid rgba(58, 74, 50, .22); border-radius: 6px; background: rgba(255, 255, 255, .7); color: var(--tt-phu); font: 600 11.5px/1 ui-monospace, monospace; }
html.gb .tt-phai { position: relative; display: flex; align-items: center; gap: 8px; margin-left: auto; }
html.gb .tt-nhanh { display: inline-flex; align-items: center; gap: 8px; height: 44px; white-space: nowrap; padding: 0 16px; border-radius: 12px; background: var(--tt-rung); color: #FFFDF6 !important; font: 700 15px/1 "Be Vietnam Pro", system-ui, sans-serif; text-decoration: none; }
html.gb .tt-nhanh:hover { background: #2E3C27; }
html.gb .tt-ic, html.gb .tt-av { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--tt-vien); border-radius: 12px; background: var(--tt-kinh); color: var(--tt-rung); cursor: pointer; }
html.gb .tt-ic:hover, html.gb .tt-ic[aria-expanded="true"] { background: #fff; }
html.gb .tt-av { overflow: hidden; border-radius: 50%; background: var(--tt-rung); color: #FFFDF6; font: 700 16px/1 "Be Vietnam Pro", sans-serif; }
html.gb .tt-av img { width: 100%; height: 100%; object-fit: cover; }
html.gb .tt-av[hidden] { display: none; }
html.gb :is(.tt-tim, .tt-nhanh, .tt-ic, .tt-av, .tt-pop button, .tt-pop a, .tt-goi button):focus-visible { outline: 2px solid var(--tt-cam); outline-offset: 2px; }
/* nút nhạc đang phát: các vạch nhún nhẹ */
html.gb .tt-ic.dang-phat { background: var(--tt-rung); color: #FFFDF6; }
html.gb .tt-ic.dang-phat path { transform-origin: center; animation: tt-nhun 1s ease-in-out infinite alternate; }
@keyframes tt-nhun { from { transform: scaleY(.55); } to { transform: scaleY(1); } }

/* gợi ý ô tìm (nền gần đặc: kính lồng trong thanh kính không làm mờ được nền phía sau) */
html.gb .tt-goi { position: absolute; left: 0; right: 0; top: calc(100% + 8px); max-height: min(60vh, 420px); overflow: auto; padding: 6px; border-radius: 12px; }
html.gb .tt-goi button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: transparent !important; color: var(--tt-chu) !important; text-align: left; cursor: pointer; }
html.gb .tt-goi button svg { flex: none; width: 18px; height: 18px; color: var(--tt-rung); }
html.gb .tt-goi button[aria-selected="true"], html.gb .tt-goi button:hover { background: rgba(58, 74, 50, .1) !important; }
html.gb .tt-goi b { display: block; font: 600 14.5px/1.3 "Be Vietnam Pro", sans-serif; color: var(--tt-chu) !important; }
html.gb .tt-goi small { display: block; font: 500 12.5px/1.3 "Be Vietnam Pro", sans-serif; color: var(--tt-phu) !important; }
html.gb .tt-rong { margin: 0; padding: 10px; font: 500 14px/1.45 "Be Vietnam Pro", sans-serif; color: var(--tt-phu); }

/* popup nhạc / tài khoản */
html.gb .tt-pop { position: absolute; right: 0; top: calc(100% + 10px); z-index: 50; width: 320px; max-width: calc(100vw - 24px); padding: 14px; border-radius: 14px; }
html.gb .tt-pop[hidden] { display: none; }
html.gb .tt-pop-h { margin: 0 0 10px; font: 600 17px/1.3 Lora, Georgia, serif; color: var(--tt-rung); }
html.gb .tt-kenh { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
html.gb .tt-kenh button { padding: 9px 10px; border: 1px solid rgba(58, 74, 50, .14); border-radius: 10px; background: rgba(255, 255, 255, .7); color: var(--tt-chu); text-align: left; cursor: pointer; }
html.gb .tt-kenh button:hover { border-color: var(--tt-rung); }
html.gb .tt-kenh b { display: block; font: 600 13.5px/1.3 "Be Vietnam Pro", sans-serif; }
html.gb .tt-kenh small { display: block; margin-top: 2px; font: 500 11.5px/1.3 "Be Vietnam Pro", sans-serif; color: var(--tt-phu); }
html.gb .tt-dk { display: flex; align-items: center; gap: 12px; margin: 12px 0 10px; }
html.gb .tt-phat { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--tt-cam); color: #fff; cursor: pointer; }
html.gb .tt-am { flex: 1; display: grid; gap: 4px; font: 600 12px/1 "Be Vietnam Pro", sans-serif; color: var(--tt-phu); }
html.gb .tt-am input { width: 100%; accent-color: var(--tt-rung); }
html.gb .tt-link { display: flex; gap: 6px; }
html.gb .tt-link input { flex: 1; min-width: 0; height: 38px; padding: 0 10px; border: 1px solid rgba(58, 74, 50, .2); border-radius: 8px; background: #fff; color: var(--tt-chu); font: 500 13.5px/1 "Be Vietnam Pro", sans-serif; }
html.gb .tt-link button { height: 38px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--tt-rung); color: #FFFDF6; font: 700 13.5px/1 "Be Vietnam Pro", sans-serif; cursor: pointer; }
html.gb .tt-ghi { margin: 8px 0 0; font: 500 12px/1.45 "Be Vietnam Pro", sans-serif; color: var(--tt-phu); }
html.gb .tt-tk { width: 250px; padding: 8px; }
html.gb .tt-tk .tt-pop-h { padding: 6px 8px 8px; margin: 0 0 4px; border-bottom: 1px solid rgba(58, 74, 50, .14); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.gb .tt-tk :is(a, button) { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 8px; border: 0; border-radius: 8px; background: transparent !important; color: var(--tt-chu) !important; font: 600 14px/1.2 "Be Vietnam Pro", sans-serif; text-align: left; text-decoration: none; cursor: pointer; }
html.gb .tt-tk :is(a, button):hover { background: rgba(58, 74, 50, .1) !important; }
html.gb .tt-tk svg { color: var(--tt-rung); }
html.gb .tt-yt { position: fixed; left: -9999px; top: 0; width: 240px; height: 240px; pointer-events: none; } /* YouTube cần khung ≥ 200×200 mới phát */
html.gb .tt-yt iframe { width: 100%; height: 100%; border: 0; }

/* điện thoại: ô tìm một hàng, các nút một hàng; bỏ chữ "Học nhanh" */
@media (max-width: 640px) { /* một hàng, dính ngay dưới thanh đầu trang (cao 60px); ô tìm thu thành nút kính lúp, chạm vào thì mở rộng */
  html.gb .tt-bar { top: 66px; gap: 6px; margin-bottom: 14px; padding: 6px; border-radius: 14px; }
  html.gb .tt-tim { flex: 0 0 36px; width: 36px; height: 36px; padding: 0; justify-content: center; cursor: pointer; }
  html.gb .tt-tim:not(.mo) :is(input, kbd) { display: none; }
  html.gb .tt-tim.mo { position: absolute; left: 6px; right: 6px; top: 6px; z-index: 3; width: auto; height: 36px; padding: 0 10px 0 12px; justify-content: flex-start; cursor: text; }
  html.gb .tt-tim kbd { display: none; }
  html.gb .tt-phai { gap: 5px; min-width: 0; }
  html.gb :is(.tt-ic, .tt-av) { width: 36px; height: 36px; border-radius: 10px; }
  html.gb .tt-av { border-radius: 50%; }
  html.gb .tt-nhanh { height: 36px; padding: 0 10px; gap: 5px; font-size: 14px; border-radius: 10px; }
  html.gb .tt-bar .tt-pop { position: absolute; left: -6px; right: -6px; top: calc(100% + 12px); bottom: auto; width: auto; max-width: none; max-height: calc(100dvh - 240px); overflow: auto; } /* thả xuống ngay dưới thanh (kính mờ của thanh làm position: fixed tính theo thanh) */
  html.gb .tt-phai { position: static; }
  html.gb :is(.tt-ic, .tt-av, .tt-nhanh) { position: relative; }
  html.gb :is(.tt-ic, .tt-av, .tt-nhanh, .tt-tim:not(.mo))::after { content: ""; position: absolute; inset: -4px; } /* vùng chạm 44px, hình giữ 36px */
}
@media (min-width: 901px) { html.gb body.dash .dash-side .dash-side-top { display: none !important; } } /* ô tra từ đã chuyển lên thanh trên */

/* ---------- hướng dẫn lần đầu ---------- */
html.gb .hd-lop { position: fixed; inset: 0; z-index: 9990; }
html.gb .hd-den { position: fixed; z-index: 9991; border-radius: 14px; pointer-events: none; box-shadow: 0 0 0 2px rgba(255, 253, 246, .95), 0 0 0 200vmax rgba(12, 18, 10, .62);
  transition: left .32s ease, top .32s ease, width .32s ease, height .32s ease; }
html.gb .hd-den.hd-toan { left: 50% !important; top: 50% !important; width: 0 !important; height: 0 !important; box-shadow: 0 0 0 200vmax rgba(12, 18, 10, .62); }
html.gb .hd-the { position: fixed; z-index: 9992; width: min(380px, calc(100vw - 24px)); padding: 20px 20px 16px; border: 1px solid rgba(255, 255, 255, .8); border-radius: 16px;
  background: rgba(255, 253, 246, .9); -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3);
  box-shadow: 0 0 0 1px rgba(58, 74, 50, .08), 0 18px 50px rgba(10, 16, 8, .38), inset 0 1px 0 rgba(255, 255, 255, .9); color: var(--tt-chu); font-family: "Be Vietnam Pro", system-ui, sans-serif;
  animation: hd-hien .24s ease both; transition: left .32s ease, top .32s ease; }
html.gb .hd-the.hd-rong { width: min(440px, calc(100vw - 24px)); }
html.gb .hd-the.hd-giua { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(460px, calc(100vw - 32px)); padding: 26px 26px 20px; animation: none; }
html.gb .hd-the h2 { margin: 0 0 8px; font: 600 20px/1.3 Lora, Georgia, serif; color: var(--tt-rung); }
html.gb .hd-the.hd-giua h2 { font-size: 24px; }
html.gb .hd-nho { display: block; margin: 0 0 6px; font: 700 12px/1 "Be Vietnam Pro", sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--tt-cam); }
html.gb .hd-the .hd-tat { display: block; margin: 12px 0 0 auto; min-height: 32px; padding: 0 2px; border: 0; background: none; color: var(--tt-phu); font: 600 13px/1.2 "Be Vietnam Pro", sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
html.gb .hd-the .hd-tat:hover { color: var(--tt-chu); }
html.gb.gb-toi .hd-nho { color: #F0B98C; }
html.gb.gb-toi .hd-the .hd-tat { color: #C9C4B5; }
html.gb .hd-the p { margin: 0; font: 500 15px/1.6 "Be Vietnam Pro", sans-serif; color: #3F3D35; }
html.gb .hd-luoi { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 0; }
html.gb .hd-luoi > div { display: grid; grid-template-columns: 32px 1fr; column-gap: 10px; align-items: center; padding: 9px 10px; border: 1px solid rgba(58, 74, 50, .12); border-radius: 10px; background: rgba(255, 255, 255, .66); }
html.gb .hd-luoi span { grid-row: span 2; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: rgba(58, 74, 50, .1); color: var(--tt-rung); }
html.gb .hd-luoi b { font: 700 14px/1.25 "Be Vietnam Pro", sans-serif; color: var(--tt-chu); }
html.gb .hd-luoi small { font: 500 12.5px/1.35 "Be Vietnam Pro", sans-serif; color: var(--tt-phu); }
html.gb .hd-anh { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
html.gb .hd-anh img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .9); }
html.gb .hd-chan { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
html.gb .hd-so { font: 700 14px/1 "Be Vietnam Pro", sans-serif; color: #4F4B40; white-space: nowrap; }
html.gb .hd-nut { display: flex; gap: 8px; justify-content: flex-end; }
html.gb .hd-giua .hd-nut { margin-top: 20px; }
html.gb .hd-nut button { min-height: 42px; padding: 0 16px; border-radius: 10px; font: 700 14.5px/1 "Be Vietnam Pro", sans-serif; cursor: pointer; }
html.gb .hd-phu { border: 1px solid rgba(58, 74, 50, .28); background: rgba(255, 255, 255, .7); color: var(--tt-rung); }
html.gb .hd-phu:hover { background: #fff; }
html.gb .hd-lui { padding: 0 12px !important; }
html.gb .hd-chinh { border: 0; background: var(--tt-cam); color: #fff; }
html.gb .hd-chinh:hover { background: #9C4F22; }
html.gb .hd-nut button:focus-visible { outline: 2px solid var(--tt-rung); outline-offset: 2px; }
@keyframes hd-hien { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  html.gb .hd-the.hd-day { left: 12px !important; right: 12px; top: auto !important; bottom: calc(12px + env(safe-area-inset-bottom)); width: auto; max-height: 62vh; overflow: auto; padding: 16px 16px 14px; }
  html.gb .hd-the h2 { font-size: 18px; } html.gb .hd-the p { font-size: 14.5px; }
  html.gb .hd-anh { display: none; }
  html.gb .hd-luoi { gap: 6px; } html.gb .hd-luoi > div { padding: 7px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html.gb :is(.hd-den, .hd-the) { transition: none !important; animation: none !important; }
  html.gb .tt-ic.dang-phat path { animation: none; }
}

/* 04/11: điện thoại – thanh đầu chung (practice.js) có nút chuông "đang cập nhật"; Góc học tập đã có chuông thật ở thanh trên → ẩn nút trùng */
body:has(.tt-bar) .p-nav button.p-pill.round[data-soon] { display: none !important; } /* không dựa vào aria-label: bản EN dịch thành "Notifications" */

/* ---------- nền tối (html.gb-toi, nút trăng / mặt trời ở thanh trên) – kính tối, chữ kem; tương phản chữ ≥ 4.5:1 ---------- */
html.gb.gb-toi { --tt-kinh: rgba(24, 32, 22, .9); --tt-vien: rgba(255, 255, 255, .16); --tt-chu: #EEEBE2; --tt-phu: #C9C4B5; color-scheme: dark; }
/* khối nội dung (kinh-oq.js gắn .oq-k cho mọi khối sáng) + các thẻ kính của goc-ghibli.css */
html.gb.gb-toi .oq-k.oq-k.oq-k.oq-k, html.gb.gb-toi .dash-main :is(.rg-card, .rg-banner, .dash-hero, .ex-hero, .dc-hero, .dash-card, .dash-box, .gm-card, .gm-panel, .ex-top, .ex-shelf, .rg-fact, .rg-paper):not(.oq-bo):not(#hz) {
  background: rgba(20, 28, 18, .76) !important; background-image: none !important; border-color: rgba(255, 255, 255, .13) !important; box-shadow: 0 4px 16px rgba(0, 0, 0, .28) !important; }
html.gb.gb-toi .oq-nhan.oq-nhan.oq-nhan, html.gb.gb-toi .dash-main .rg-now > div:not(#hz) { background: rgba(20, 28, 18, .78) !important; background-image: none !important; border-color: rgba(255, 255, 255, .13) !important; }
html.gb.gb-toi .dash-main .rg-now > div *:not(#hz) { color: #EEEBE2 !important; }
html.gb.gb-toi .gt-sang.gt-sang.gt-sang:not(#hz) { color: #EEEBE2 !important; -webkit-text-fill-color: currentColor; text-shadow: none !important; }
html.gb.gb-toi .dash-main :is(small, .dash-sub, .rg-vi, [class*="sub"]).gt-sang.gt-sang:not(#hz) { color: #CFCABB !important; }
html.gb.gb-toi .dash-main :is(textarea, input:not([type="range"]):not([type="checkbox"]):not([type="radio"])):not(.tt-bar *):not(#hz) { background: rgba(16, 24, 14, .58) !important; /* 04/11: .08 gần trong suốt – ô tìm, ô gõ nằm trên tranh sáng khó đọc */ color: #EEEBE2 !important; border-color: rgba(255, 255, 255, .18) !important; }
html.gb.gb-toi .dash-main :is(h1, h2, h3) svg.rg-leaf { opacity: .85; }
/* thanh bên */
html.gb.gb.gb-toi .dash-wrap .dash-side:not(#hz) { background: rgba(16, 24, 14, .74) !important; border-right-color: rgba(255, 255, 255, .1) !important; }
html.gb.gb.gb-toi .dash-wrap .dash-side :is(.dash-nav a, .dash-nav-label, .dash-side-head, .dash-lang, .dash-search-ic, .dash-pin, .dash-me, .dash-me *, .dash-logo span *, .dn-mo-nav):not(#hz) { color: #EEEBE2 !important; }
html.gb.gb.gb-toi .dash-wrap .dash-side :is(.dash-nav a, .dash-pin, .dash-search-ic, .dn-mo-nav) svg:not(#hz) { color: #D9D4C6 !important; stroke: currentColor !important; }
html.gb.gb.gb-toi .dash-wrap .dash-nav-label:not(#hz) { color: #B5B09F !important; border-color: rgba(255, 255, 255, .12) !important; }
html.gb.gb.gb-toi .dash-wrap .dash-nav a[aria-current="page"]:not(#hz) { background: rgba(255, 255, 255, .16) !important; color: #fff !important; }
html.gb.gb.gb-toi .dash-wrap .dash-nav a:not([aria-current="page"]):hover:not(#hz) { background: rgba(255, 255, 255, .08) !important; }
/* thanh trên + bảng bật ra */
html.gb.gb-toi .tt-bar { background: rgba(16, 24, 14, .6); border-color: rgba(255, 255, 255, .14); }
html.gb.gb-toi .tt-kinh { background: rgba(24, 32, 22, .97); }
html.gb.gb-toi :is(.tt-tim, .tt-ic) { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: #EEEBE2; }
html.gb.gb-toi .tt-ic:hover, html.gb.gb-toi .tt-ic[aria-expanded="true"] { background: rgba(255, 255, 255, .16); }
html.gb.gb-toi .tt-bar .tt-phai .tt-ic.tt-ic[aria-pressed="true"]:not(#hz) { background: rgba(255, 255, 255, .16) !important; border-color: rgba(255, 255, 255, .3) !important; color: #F3D9A4 !important; box-shadow: none !important; }
html.gb.gb-toi .tt-bar .tt-phai .tt-ic.tt-ic[aria-pressed="true"] *:not(#hz) { color: inherit !important; border-color: transparent !important; } /* thắng kiểu "đang chọn" của kinh-oq.js */
html.gb.gb-toi .tt-tim:focus-within { border-color: #CFE0B8; box-shadow: 0 0 0 3px rgba(207, 224, 184, .2); }
html.gb.gb-toi .tt-tim kbd { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); color: #C9C4B5; }
html.gb.gb-toi .tt-nhanh { background: #E9E3D2; color: #26301F !important; }
html.gb.gb-toi .tt-nhanh:hover { background: #fff; }
html.gb.gb-toi :is(.tt-pop-h, .tt-goi button svg, .tt-tk svg) { color: #CFE0B8; }
html.gb.gb-toi .tt-pop-h { border-color: rgba(255, 255, 255, .14) !important; }
html.gb.gb-toi .tt-goi button[aria-selected="true"], html.gb.gb-toi .tt-goi button:hover, html.gb.gb-toi .tt-tk :is(a, button):hover { background: rgba(255, 255, 255, .1) !important; }
html.gb.gb-toi .tt-kenh button:not([aria-pressed="true"]) { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #EEEBE2; }
html.gb.gb-toi .tt-link input { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); color: #EEEBE2; }
html.gb.gb-toi .tt-link button { background: #E9E3D2; color: #26301F; }
html.gb.gb-toi .tt-am input { accent-color: #CFE0B8; }
/* hộp hướng dẫn */
html.gb.gb-toi .hd-the { background: rgba(24, 32, 22, .94); border-color: rgba(255, 255, 255, .18); box-shadow: 0 18px 50px rgba(0, 0, 0, .5); color: #EEEBE2; }
html.gb.gb-toi .hd-the h2 { color: #DCE8C8; }
html.gb.gb-toi .hd-the p, html.gb.gb-toi .hd-luoi b { color: #EEEBE2; }
html.gb.gb-toi :is(.hd-so, .hd-luoi small) { color: #C9C4B5; }
html.gb.gb-toi .hd-luoi > div { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); }
html.gb.gb-toi .hd-luoi span { background: rgba(207, 224, 184, .14); color: #CFE0B8; }
html.gb.gb-toi .hd-phu { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .24); color: #EEEBE2; }
html.gb.gb-toi .hd-phu:hover { background: rgba(255, 255, 255, .16); }
@media (prefers-reduced-motion: no-preference) { html.gb :is(.oq-k, .dash-side, .tt-bar, .tt-tim, .tt-ic) { transition: background-color .25s ease, color .25s ease; } }

/* ---------- bảng Âm thanh học tập (1/11/2026) ---------- */
html.gb .tt-nhac { width: 380px; max-height: min(78vh, 680px); overflow: auto; overscroll-behavior: contain; padding: 14px 16px 12px; }
html.gb .tt-nh-dau { display: flex; align-items: center; gap: 4px; margin-bottom: 4px; }
html.gb .tt-nh-dau .tt-pop-h { flex: 1; margin: 0; }
html.gb .tt-nh-nho { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--tt-phu); cursor: pointer; }
html.gb .tt-nh-nho:hover, html.gb .tt-nh-nho[aria-expanded="true"] { background: rgba(58, 74, 50, .1); color: var(--tt-chu); }
html.gb .tt-nh-h { margin: 12px 0 7px; font: 700 11.5px/1 "Be Vietnam Pro", sans-serif; letter-spacing: .07em; text-transform: uppercase; color: var(--tt-phu); }
html.gb .tt-ons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
html.gb .tt-tns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
html.gb .tt-nhac [data-am] { display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid rgba(58, 74, 50, .16); background: rgba(255, 255, 255, .62); color: var(--tt-chu); font: 600 13.5px/1.15 "Be Vietnam Pro", sans-serif; cursor: pointer; }
html.gb .tt-nhac .tt-on { height: 42px; border-radius: 999px; }
html.gb .tt-nhac .tt-on span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(58, 74, 50, .1); }
html.gb .tt-nhac .tt-on svg { width: 15px; height: 15px; }
html.gb .tt-nhac .tt-tn { flex-direction: column; gap: 5px; min-height: 66px; padding: 8px 4px; border-radius: 12px; font-size: 12.5px; text-align: center; }
html.gb .tt-nhac [data-am]:hover { border-color: var(--tt-rung); }
html.gb .tt-nhac [data-am].nho { border-style: dashed; border-color: var(--tt-rung); } /* đã chọn lần trước, chưa phát */
html.gb .tt-nhac [data-am][aria-pressed="true"] span { background: rgba(255, 255, 255, .18); }
html.gb .tt-tung { display: grid; gap: 6px; margin-top: 10px; padding: 10px; border-radius: 10px; background: rgba(58, 74, 50, .07); }
html.gb .tt-tung label { display: grid; grid-template-columns: 80px 1fr; align-items: center; gap: 8px; font: 600 12.5px/1.2 "Be Vietnam Pro", sans-serif; color: var(--tt-chu); }
html.gb .tt-tung input { accent-color: var(--tt-rung); }
html.gb .tt-tung small { font: 500 12.5px/1.4 "Be Vietnam Pro", sans-serif; color: var(--tt-phu); }
html.gb .tt-nhac .tt-am { display: flex; align-items: center; gap: 10px; margin: 12px 0 4px; color: var(--tt-phu); }
html.gb .tt-nhac .tt-am input { flex: 1; }
html.gb .tt-nh-yt { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(58, 74, 50, .14); }
html.gb .tt-nhac .tt-link { align-items: center; gap: 8px; }
html.gb .tt-nhac .tt-link > span { display: none; }
html.gb .tt-nhac .tt-link input { height: 40px; border-radius: 999px; padding: 0 14px; }
html.gb .tt-nhac .tt-link button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; }
html.gb .tt-goiy { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
html.gb .tt-goiy button { padding: 6px 10px; border: 1px solid rgba(58, 74, 50, .16); border-radius: 999px; background: rgba(255, 255, 255, .62); color: var(--tt-chu); font: 600 12px/1.2 "Be Vietnam Pro", sans-serif; cursor: pointer; }
html.gb .tt-ghi a { color: var(--tt-cam); font-weight: 700; }
html.gb .tt-bai { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 8px; border-radius: 12px; background: rgba(58, 74, 50, .07); }
html.gb .tt-bai img { width: 56px; height: 40px; flex: none; object-fit: cover; border-radius: 8px; }
html.gb .tt-bai span { flex: 1; min-width: 0; }
html.gb .tt-bai b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 13.5px/1.3 "Be Vietnam Pro", sans-serif; color: var(--tt-chu); }
html.gb .tt-bai small { font: 500 12px/1.3 "Be Vietnam Pro", sans-serif; color: var(--tt-phu); }
html.gb .tt-bai :is(a, button) { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border: 0; border-radius: 8px; background: transparent; color: var(--tt-phu); cursor: pointer; }
html.gb .tt-bai :is(a, button):hover { background: rgba(58, 74, 50, .1); color: var(--tt-chu); }
html.gb .tt-nhac .tt-dk { justify-content: center; gap: 18px; margin: 12px 0 2px; }
html.gb .tt-nhac .tt-phat { width: 48px; height: 48px; }
html.gb.gb-toi .tt-nhac [data-am]:not([aria-pressed="true"]), html.gb.gb-toi .tt-goiy button:not([aria-pressed="true"]) { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #EEEBE2; }
html.gb.gb-toi .tt-nhac .tt-on:not([aria-pressed="true"]) span { background: rgba(255, 255, 255, .1); }
html.gb.gb-toi :is(.tt-tung, .tt-bai) { background: rgba(255, 255, 255, .06); }
html.gb.gb-toi .tt-nh-yt { border-color: rgba(255, 255, 255, .14); }
html.gb.gb-toi :is(.tt-tung label, .tt-bai b) { color: #EEEBE2; }
html.gb.gb-toi .tt-nhac [data-am].nho { border-color: #CFE0B8; }
@media (max-width: 640px) {
  html.gb .tt-bar .tt-nhac { padding: 12px; }
  html.gb .tt-tns { gap: 6px; } html.gb .tt-nhac .tt-tn { min-height: 60px; font-size: 12px; }
}
html.gb .tt-bar .tt-phai .tt-ic.tt-ic.dang-phat:not(#hz) { background: var(--tt-rung) !important; border-color: var(--tt-rung) !important; color: #FFFDF6 !important; } /* nút âm thanh đang phát: thắng kiểu "đang chọn" của chon-xanh.js */
html.gb .tt-bar .tt-phai .tt-ic.tt-ic.dang-phat:not(#hz) * { color: inherit !important; }

/* ---------- chuông thông báo lớp học (04/11/2026) ---------- */
html.gb .tt-chuong[hidden] { display: none; }
html.gb .tt-chuong { position: relative; }
html.gb .tt-so { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; box-sizing: border-box; border-radius: 10px; background: var(--tt-cam); color: #FFFDF6; font: 700 11px/19px "Be Vietnam Pro", sans-serif; font-style: normal; text-align: center; box-shadow: 0 0 0 2px #FFFDF6; }
html.gb .tt-so[hidden] { display: none; }
html.gb .tt-tb { width: 360px; max-height: min(70vh, 520px); overflow: auto; }
html.gb .tt-tb-lop { margin: 10px 4px 4px; font: 700 12px/1.3 "Be Vietnam Pro", sans-serif; letter-spacing: .04em; text-transform: uppercase; color: var(--tt-phu); }
html.gb .tt-tb-muc { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 8px; border: 0; border-radius: 10px; background: none; color: var(--tt-chu); text-align: left; cursor: pointer; font-family: "Be Vietnam Pro", sans-serif; }
html.gb .tt-tb-muc:hover { background: rgba(58, 74, 50, .09); }
html.gb .tt-tb-ic { flex: none; min-width: 52px; padding: 4px 6px; border-radius: 8px; background: var(--tt-rung); color: #FFFDF6; font: 700 11.5px/1.2 "Be Vietnam Pro", sans-serif; text-align: center; }
html.gb .tt-tb-muc[data-muc="chat"] .tt-tb-ic { background: #4A6A85; }
html.gb .tt-tb-nd { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
html.gb .tt-tb-nd b { font-size: 14px; font-weight: 600; }
html.gb .tt-tb-nd small { font-size: 13px; color: var(--tt-phu); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.gb .tt-tb-muc time { flex: none; font-size: 11.5px; color: var(--tt-phu); }
html.gb .tt-tb .tt-rong { margin: 4px; color: var(--tt-phu); font-size: 14px; line-height: 1.5; }
html.gb.gb-toi .tt-so { box-shadow: 0 0 0 2px #1d2a1a; }
@media (max-width: 640px) { html.gb .tt-tb { width: auto; } html.gb .tt-tb-muc time { display: none; } }
html.gb .tt-tb-day { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(58, 74, 50, .16); }
html.gb .tt-tb-day p { margin: 8px 2px 0; font: 500 12.5px/1.45 "Be Vietnam Pro", sans-serif; color: var(--tt-phu); }
html.gb .tt-tb-nut { width: 100%; min-height: 44px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--tt-rung); color: #FFFDF6; font: 600 14px "Be Vietnam Pro", sans-serif; cursor: pointer; }
html.gb .tt-tb-nut.phu { background: none; border: 1px solid var(--tt-rung); color: var(--tt-rung); }
html.gb .tt-tb-nut:disabled { opacity: .55; cursor: wait; }
