/* ============================================================
   OTTER2 PLAIN THEME — "Babbel sạch" (owner order 2026-11-21)
   Loaded LAST (link just before </body>) so it wins over the
   per-section colour system. Palette:
     headings  #16283F (navy)   body text #3C4756 (slate)
     accent    #F97316 (orange) hover     #EA580C
     surface   #FFFFFF / #F7F8FA          border #E3E8EF
   Protected, never touched here: .ttt-rainbow title,
   Hán-Việt red #9f1239 in learning content, user themes
   ([data-theme] rules keep their own colours).
   ============================================================ */
body.otter2-body{
  color:#3C4756;
  font-family:system-ui,"Segoe UI",Roboto,"Helvetica Neue",Arial,"PingFang SC","Noto Sans SC",sans-serif;
}
body.otter2-body h1, body.otter2-body h2, body.otter2-body h3,
body.otter2-body h4, body.otter2-body h5, body.otter2-body h6{
  color:#16283F;
}
/* Hán-Việt names stay red everywhere in learning content,
   including the vocab-path quiz whose question colour is a
   user preference (default is navy now). */
.ttc-han-viet{ color:#9f1239; }
#ttcDailyVocab .ttc-path-q .ttc-han-viet{ color:#9f1239 !important; }
/* One consistent keyboard-focus ring in the accent colour. */
:focus-visible{ outline:2px solid #F97316; outline-offset:2px; }
::selection{ background:#FFEDD5; }

/* ============================================================
   SIDEBAR TRÁI DESKTOP — Mẫu 1 "Ba cột cổ điển" (anh Huy chốt
   2026-11-22; mèo áp dụng 2026-11-23 qua file override này,
   KHÔNG sửa otter2-shell.js và KHÔNG đụng index2.html):
   - Mục đang chọn: nền cam nhạt #FFEDD5 + chữ cam đậm #9A3412
     + thanh cam mảnh ở cạnh trái — đúng mẫu đã duyệt (trước đây
     mỗi mục một màu riêng trên nền gần như trắng, kèm viền focus
     lồng trong nút trông như ngoặc lạ).
   - Thêm nhãn nhóm HỌC TẬP / TIỆN ÍCH như mẫu.
   - Nén nhịp dọc để cả 6 mục điều hướng hiện đủ, không phải
     cuộn riêng trong cột, ở màn hình laptop thấp (≥768px);
     dải rất thấp (≤700px) vẫn dùng nấc nén sẵn của shell.
   - Thống kê tiến độ gói vào 1 thẻ nhỏ; hồ sơ vẫn ghim ở đáy.
   Chỉ đổi màu trên theme sáng mặc định; theme đêm giữ nguyên.
   ============================================================ */
@media (min-width:900px){
  #ttcShellSidebar .ttc-shell-nav::before,
  #ttcShellSidebar .ttc-shell-util::before{
    font-size:10.5px; font-weight:800; letter-spacing:.08em; color:#94a3b8;
  }
  #ttcShellSidebar .ttc-shell-nav::before{ content:"HỌC TẬP"; padding:0 6px; }
  #ttcShellSidebar .ttc-shell-util{
    border-top:1px solid #f1f5f9; margin-top:6px; padding-top:8px;
  }
  #ttcShellSidebar .ttc-shell-util::before{ content:"TIỆN ÍCH"; padding:0 6px 4px; }
  #ttcShellSidebar .ttc-shell-item:focus-visible{ outline-color:#F97316; }
}
html:not([data-theme="night"]) #ttcShellSidebar .ttc-shell-item:hover{ background:#FFF7ED; }
html:not([data-theme="night"]) #ttcShellSidebar .ttc-shell-item.is-active{
  background:#FFEDD5; color:#9A3412; box-shadow:inset 3px 0 0 #F97316;
}
html:not([data-theme="night"]) #ttcShellSidebar .ttc-shell-item.is-active .ttc-shell-ico{ background:#FFE0BD; }
html:not([data-theme="night"]) #ttcShellSidebar .ttc-shell-stats{
  background:#F7F8FA; border:1px solid #E3E8EF; border-radius:14px;
}
@media (min-width:900px) and (min-height:701px){
  #ttcShellSidebar{ padding-top:10px; }
  #ttcShellSidebar .ttc-shell-brand{ padding:0 6px 4px; }
  #ttcShellSidebar .ttc-shell-brand img{ width:34px; height:34px; }
  #ttcShellSidebar .ttc-shell-search{ margin:0 14px 6px; padding:7px 12px; }
  #ttcShellSidebar .ttc-shell-nav{ padding:2px 0 0; gap:2px; }
  #ttcShellSidebar .ttc-shell-item{ padding:7px 12px; }
  #ttcShellSidebar .ttc-shell-item .ttc-shell-ico{ width:28px; height:28px; font-size:14px; }
  #ttcShellSidebar .ttc-shell-util{ gap:3px; }
  #ttcShellSidebar .ttc-script-switch{ padding:6px 10px; }
  #ttcShellSidebar .otter2-theme-slot{ padding:0 6px; }
  #ttcShellSidebar #ttcMenuBtn{ padding:8px 12px; }
  #ttcShellSidebar .ttc-shell-stats{ padding:8px 12px 6px; }
  #ttcShellSidebar .ttc-shell-stats .ttc-shell-stats-num{ font-size:22px; }
  #ttcShellSidebar .ttc-shell-stats .ttc-shell-stats-bar{ margin:5px 0 3px; height:6px; }
  #ttcShellSidebar .ttc-shell-profile{ padding-top:6px; margin-top:4px; }
  #ttcShellSidebar .ttc-shell-avatar{ width:38px; height:38px; }
  #ttcShellSidebar .ttc-shell-pbtn{ padding:7px 12px; margin-top:5px; }
}

/* ============================================================
   ĐIỆN THOẠI — Mẫu 2 "Phòng học dẫn đầu" (anh Huy chốt
   2026-11-22; mèo áp dụng 2026-11-23, cùng file override này):
   - Thanh trên gom thành 1 thẻ trắng bo góc như mẫu (hiện các
     nút đang rời rạc trên nền trong suốt). GIỮ NGUYÊN mọi nút:
     Giản/Phồn + Giao diện + Chat Online chỉ có ở header (menu
     ☰ cố ý không chứa, xem otter2-menu.js) nên không ẩn nút nào.
   - Thanh dưới: mục đang chọn chữ cam đậm #EA580C + chấm cam
     dưới chân — đúng mẫu (trước đây mỗi mục một màu riêng).
   - Thẻ Học tiếp giữ nguyên ảnh Bé Rái Cá (mẫu vẽ thẻ cam
     không ảnh; ép gradient sẽ đè lên ảnh linh vật của web).
   ============================================================ */
@media (max-width:899px){
  #otter2Nav{
    background:#ffffff; border:1px solid #E3E8EF; border-radius:20px;
    box-shadow:0 1px 5px rgba(20,50,80,.06); padding:8px 10px 10px; margin:0 0 10px;
  }
}
@media (max-width:767px){
  #ttcShellBottomBar .ttc-shell-bitem{ position:relative; }
  #ttcShellBottomBar .ttc-shell-bitem.is-active{ color:#EA580C; font-weight:800; }
  #ttcShellBottomBar .ttc-shell-bitem.is-active::after{
    content:""; position:absolute; left:50%; transform:translateX(-50%); bottom:3px;
    width:5px; height:5px; border-radius:50%; background:#F97316;
  }
}

/* ===== 2026-11-23 (Meo): cum nut noi goc duoi phai - nang khoi thanh dieu huong =====
   Anh Huy bao: nut "Tro chuyen cung Be" + be rai ca dan duong de len thanh duoi,
   che muc Tin nhan. Chi ap dung mobile (<=767px, noi co thanh duoi):
   - nut chat: bottom 64px -> 80px (+safe-area), cach han mep tren thanh duoi (~66px);
   - be rai ca (.guide-wrap): bottom 124px -> 142px (+safe-area) de chan be dung
     tren nut chat, khong cham thanh duoi. Desktop giu nguyen. */
@media (max-width:767px){
  html body #aichatLauncher{bottom:calc(80px + env(safe-area-inset-bottom,0px))}
  body .guide-wrap{bottom:calc(142px + env(safe-area-inset-bottom,0px))}
  body .guide-otter{scale:.65}
}

/* ============================================================
   DESKTOP TRANG CHỦ — mẫu dashboard Mondly (anh Huy chốt tối
   2026-11-23, thay hướng cam của Mẫu 1 cho khu nội dung):
   - Nền khu học: xám oải hương nhẹ; thẻ trắng bo 24, viền rất
     nhạt + bóng mềm; tiêu đề thẻ gần đen #14161A.
   - Thẻ khóa học tím nằm TRONG thẻ trắng "Khóa tự học" (chi
     tiết chính của mẫu): tím gradient, nhãn cam, thanh tiến độ
     VÀNG; thẻ "Học tiếp" giữ nền trắng + nút đen.
   - Ô phòng học (.otter2-feature) + ô cấp HSK (.otter2-dash-
     lvcell): nền xám rất nhạt bo 14–16 như ô kỹ năng trong mẫu,
     hover nhuốm tím nhạt.
   - Cột phải: hàng nhiệm vụ bo 14, nhãn phải (.mins) thành viên
     thuốc xám; nút chính "Vào học ngay" màu ĐEN như nút "Go to
     tasks" trong mẫu; nút Bảng thành tích trắng viền.
   - Cột trái: mục đang chọn thành viên ĐEN chữ trắng như mục
     chọn trên thanh điều hướng của mẫu (thay nền cam nhạt của
     Mẫu 1 ban sáng — anh Huy đã chốt lại theo mẫu mới).
   - Thẻ từ vựng: bo 16, viền nhạt, hover viền tím nhạt (chỉ
     khung thẻ; chữ Hán/Hán-Việt/pinyin giữ nguyên).
   Chỉ desktop ≥900px + theme sáng; KHÔNG đụng .ttt-rainbow,
   .ttc-han-viet, index2.html hay JS nào.
   ============================================================ */
@media (min-width:900px){
  html:not([data-theme="night"]) #otter2-home{
    background:linear-gradient(180deg,#EFEDF6 0%,#E8E6F1 100%);
  }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-card{
    background:#ffffff; border:1px solid #ECECF1; border-radius:24px;
    box-shadow:0 10px 30px rgba(31,35,52,.06);
  }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-card h2,
  html:not([data-theme="night"]) #otter2-home .otter2-dash-card h3{ color:#14161A; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-sub{ color:#8A8F98; }

  /* Thẻ "Học tiếp": thẻ trắng như mẫu, nhãn cấp viên tím nhạt,
     nút chính màu đen. */
  html:not([data-theme="night"]) #otter2-home .otter2-dash-continue .otter2-dash-kicker{
    background:#F2EFFF; color:#6C4CF1; border-radius:999px; padding:4px 12px;
    justify-self:start; font-weight:700;
  }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-continue h3{ color:#14161A; font-size:21px; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-continue img{
    border-radius:20px; box-shadow:0 8px 22px rgba(31,35,52,.12);
  }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-continue .otter2-dash-ctared{
    background:#14161A; color:#ffffff; border-radius:12px; font-weight:800;
  }

  /* Thẻ khóa học TÍM nằm trong thẻ trắng "Khóa tự học" — đúng
     chi tiết chính của mẫu Mondly: thẻ tím bo 18, nhãn cam,
     thanh tiến độ VÀNG trên rãnh trắng mờ, nút trắng chữ tím. */
  html:not([data-theme="night"]) #otter2-home .otter2-dash-hero{
    background:linear-gradient(135deg,#7C5CFC 0%,#5B3DF0 58%,#4A2FD6 100%);
    border-radius:18px; color:#ffffff;
  }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-hero h3{ color:#ffffff; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-hero p{ color:rgba(255,255,255,.85); }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-hero .otter2-dash-badge{
    background:#FF8A3D; color:#ffffff; border-radius:999px;
  }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-hero .otter2-dash-prow{ color:#ffffff; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-hero .otter2-dash-hero-cta{
    background:#ffffff; color:#4326C9; border-radius:10px; font-weight:800;
  }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-hero .otter2-dash-bar{
    background:rgba(255,255,255,.28); height:9px; border-radius:99px;
  }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-hero .otter2-dash-bar > i{
    background:#FFC531; border-radius:99px;
  }

  html:not([data-theme="night"]) #otter2-home .otter2-feature{
    background:#F6F6F8; border:1.5px solid transparent; border-radius:16px;
  }
  html:not([data-theme="night"]) #otter2-home .otter2-feature:hover{
    background:#F2EFFF; border-color:#D9CFFF;
  }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-lvcell{
    background:#F6F6F8; border:1.5px solid transparent; border-radius:14px;
  }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-lvcell:hover{
    background:#F2EFFF; border-color:#D9CFFF;
  }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-lvcell b{ color:#14161A; }

  html:not([data-theme="night"]) #otter2-home .otter2-dash-task{ border-radius:14px; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-task:hover{ background:#F6F6F8; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-task .tt small{ color:#8A8F98; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-task .mins{
    background:#F1F1F4; border-radius:999px; padding:4px 10px; color:#3F4356; font-weight:700;
  }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-cta{
    background:#14161A; color:#ffffff; border-radius:12px; font-weight:700;
  }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-cta:hover{ background:#000000; }
  html:not([data-theme="night"]) #otter2-home .ttc-shell-ach-btn{
    background:#ffffff; color:#14161A; border:1.5px solid #E4E6EA; border-radius:12px; font-weight:700;
  }

  html:not([data-theme="night"]) #ttcShellSidebar .ttc-shell-item.is-active{
    background:#14161A; color:#ffffff; box-shadow:none; border-radius:12px;
  }
  html:not([data-theme="night"]) #ttcShellSidebar .ttc-shell-item.is-active:hover{ background:#14161A; }
  html:not([data-theme="night"]) #ttcShellSidebar .ttc-shell-item.is-active .ttc-shell-ico{
    background:rgba(255,255,255,.16);
  }

  html:not([data-theme="night"]) .otter2-hsk1-card{ border-color:#ECECF1; border-radius:16px; }
  html:not([data-theme="night"]) .otter2-hsk1-card:hover{ border-color:#C9B8FF; }
}

/* ============================================================
   Mondly v2 (khuya 2026-11-23): anh Huy hỏi "giống chỗ nào?" —
   bản v1 mới mượn màu (tím/đen/oải hương), chưa giống KHUNG:
   mẫu thật có (1) toàn bộ web nằm trong 1 CỬA SỔ trắng bo góc
   lớn trên nền oải hương, (2) thẻ PHẲNG viền mảnh gần như
   không bóng, (3) đầu trang là dòng chào to thay vì 1 thẻ,
   (4) cam gần như biến mất khỏi các nút chính. Khối này làm
   nốt phần CSS làm được: đóng khung cửa sổ cho .otter2-shell
   (cột trái cố định vẫn nằm ngoài khung — giới hạn CSS),
   thẻ phẳng, thẻ Học tiếp thành dòng chào, nút thi + nút
   Đăng nhập thành đen. Chưa đẩy khi anh Huy chưa duyệt.
   ============================================================ */
@media (min-width:900px){
  html:not([data-theme="night"]) body.otter2-body{ background:#E6E4EF; }
  html:not([data-theme="night"]) .otter2-shell{
    border-radius:28px; margin:16px 16px 16px 0;
    box-shadow:0 24px 60px rgba(31,35,52,.14);
  }
  html:not([data-theme="night"]) #otter2-home{ background:transparent; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-card{
    border:1px solid #E8EAEF; border-radius:20px;
    box-shadow:0 1px 3px rgba(16,24,40,.05);
  }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-card.otter2-dash-continue{
    background:transparent; border-color:transparent; box-shadow:none;
  }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-continue h3{ font-size:26px; }
  html:not([data-theme="night"]) #otter2-home .ttc-exam-panel-btn{
    background:#14161A; color:#ffffff;
  }
  html:not([data-theme="night"]) #ttcShellSidebar .ttc-shell-pbtn{ background:#14161A; }
}

/* ============================================================
   MONDLY v3 (khuya 2026-11-23, Cá — lệnh anh Huy: "sửa lại toàn
   bộ nút và giao diện web theo đúng mẫu anh gửi, sai là anh bắt
   làm lại"): tiếp nối khối Mondly của Mèo (5de8a13 → 0a098ab →
   dcc412d3). Phần Mèo đã làm đúng mẫu được GIỮ NGUYÊN (thẻ tím
   trong thẻ Khóa tự học, nút đen, nền oải hương, thẻ phẳng).
   Khối này làm nốt phần KHUNG còn thiếu so với bản vẽ:
   (1) sidebar trái thành THANH TRÊN nằm trong cửa sổ (logo +
       thanh viên thuốc điều hướng + tìm kiếm/menu/tài khoản);
   (2) thẻ Học tiếp thành DÒNG CHÀO to (tên học viên thật do
       otter2-shell.js renderGreeting điền);
   (3) thanh công cụ phụ #ttcMondlySubbar (Giản/Phồn · Giao diện ·
       Chat Online — các nút THẬT do shell.js dời vào);
   (4) hàng chip LỘ TRÌNH (chip cấp đang học TÍM + "· đang học");
   (5) lưới cột giữa đúng thứ tự mẫu + thẻ Hoạt động hiện lại ở
       cột phải (số thật; web không có dữ liệu chuỗi ngày nên
       KHÔNG vẽ chip ⚡/chuỗi ngày như bản vẽ — luật số liệu thật).
   Chỉ desktop + theme sáng; đêm giữ khung cũ của Mèo/shell.
   KHÔNG đụng .ttt-rainbow, .ttc-han-viet, màu đúng/sai.
   ============================================================ */

/* Viên trạng thái bài học mỗi ngày: bản cũ chữ trắng trên nền
   #F7F8FA = tàng hình (cả điện thoại lẫn máy tính). Sửa mọi bề
   ngang: Đã phát hành = xanh dương nhạt chữ navy như mẫu; Sắp
   mở = xám; hôm nay = tím. */
.otter2-dash-status{ background:#F1F1F4; color:#5B6472; }
.otter2-dash-status.done{ background:#E1EBFD; color:#1D4ED8; }
.otter2-dash-status.today{ background:#6C4CF1; color:#ffffff; }

/* Thanh công cụ phụ: mặc định ẩn — chỉ bật ở desktop ≥1021px
   theme sáng (khối dưới); <1021px/đêm các nút thật trở về vị trí
   cũ do placeUtility của shell.js quản. */
#ttcMondlySubbar{ display:none; }

/* ---------- (1) THANH TRÊN TRONG CỬA SỔ — desktop ≥900px ---------- */
@media (min-width:900px){
  html:not([data-theme="night"]) body.otter2-body{ padding-left:0; padding-top:76px; }
  html:not([data-theme="night"]) #ttcShellSidebar{
    top:12px; left:50%; transform:translateX(-50%); bottom:auto;
    width:min(var(--otter2-max), calc(100% - 24px)); height:64px;
    flex-direction:row; align-items:center; gap:10px;
    padding:0 16px; overflow:visible;
    background:#ffffff; border:1px solid rgba(203,208,225,.85);
    border-bottom:1px solid #F1F1F4; border-radius:22px 22px 0 0;
    box-shadow:none;
  }
  /* Cửa sổ dính liền dưới thanh trên thành MỘT khung như mẫu */
  html:not([data-theme="night"]) .otter2-shell{
    margin:0 auto 28px; border-top:0; border-radius:0 0 28px 28px;
  }
  html:not([data-theme="night"]) #ttcShellSidebar .ttc-shell-brand{
    border-bottom:0; padding:0; flex:none; gap:10px;
  }
  html:not([data-theme="night"]) #ttcShellSidebar .ttc-shell-brand img{
    width:40px; height:40px; border-radius:50%;
  }
  html:not([data-theme="night"]) #ttcShellSidebar .ttc-shell-brand-name{
    font-size:16.5px; white-space:nowrap;
  }
  html:not([data-theme="night"]) #ttcShellSidebar .ttc-shell-brand-sub{ display:none; }
  /* Tìm kiếm -> nút tròn như mẫu */
  html:not([data-theme="night"]) #ttcShellSidebar .ttc-shell-search{
    order:3; flex:none; width:44px; height:44px; margin:0; padding:0;
    border-radius:50%; border:1px solid #E8EAEF; background:#ffffff;
    justify-content:center; gap:0;
  }
  html:not([data-theme="night"]) #ttcShellSidebar .ttc-shell-search:hover{
    background:#F7F7F9; border-color:#E8EAEF; color:#16283F;
  }
  html:not([data-theme="night"]) #ttcShellSidebar .ttc-shell-search-tx{ display:none; }
  html:not([data-theme="night"]) #ttcShellSidebar .ttc-shell-search-ico{ font-size:17px; }
  /* Điều hướng -> thanh viên thuốc xám nhạt ở giữa, mục chọn ĐEN */
  html:not([data-theme="night"]) #ttcShellSidebar .ttc-shell-nav{
    order:2; flex:1 1 auto; min-width:0; flex-direction:row; align-items:center;
    justify-content:center; gap:2px; padding:4px; margin:0 4px;
    background:#F1F1F4; border-radius:999px;
    overflow-x:auto; overflow-y:hidden; scrollbar-width:none;
  }
  html:not([data-theme="night"]) #ttcShellSidebar .ttc-shell-nav::-webkit-scrollbar{ display:none; }
  html:not([data-theme="night"]) #ttcShellSidebar .ttc-shell-nav::before{ display:none; }
  html:not([data-theme="night"]) #ttcShellSidebar .ttc-shell-item{
    flex:none; width:auto; padding:8px 13px; border-radius:999px;
    font-size:14.5px; gap:0; background:transparent; box-shadow:none;
  }
  html:not([data-theme="night"]) #ttcShellSidebar .ttc-shell-item .ttc-shell-ico{ display:none; }
  html:not([data-theme="night"]) #ttcShellSidebar .ttc-shell-item:hover{ background:#E7E7EC; }
  html:not([data-theme="night"]) #ttcShellSidebar .ttc-shell-item.is-active{
    background:#14161A; color:#ffffff; box-shadow:none;
  }
  html:not([data-theme="night"]) #ttcShellSidebar .ttc-shell-item.is-active:hover{ background:#14161A; }
  /* Cụm tiện ích ở thanh trên: chỉ còn nút Menu (tròn) */
  html:not([data-theme="night"]) #ttcShellSidebar .ttc-shell-util{
    order:4; flex:none; flex-direction:row; padding:0; margin:0; gap:0;
  }
  html:not([data-theme="night"]) #ttcShellSidebar .ttc-shell-util::before{ display:none; }
  html:not([data-theme="night"]) #ttcShellSidebar #ttcMenuBtn{
    width:44px; height:44px; margin:0; padding:0; border-radius:50%;
    justify-content:center; gap:0; border:1px solid #E8EAEF; background:#ffffff;
    box-shadow:none;
  }
  html:not([data-theme="night"]) #ttcShellSidebar #ttcMenuBtn:hover{ background:#F7F7F9; border-color:#E8EAEF; }
  html:not([data-theme="night"]) #ttcShellSidebar #ttcMenuBtn .ttc-shell-util-lbl{ display:none; }
  /* Thống kê của sidebar ẩn ở thanh trên (đã có ở thẻ Hoạt động) */
  html:not([data-theme="night"]) #ttcShellSidebar .ttc-shell-stats{ display:none; }
  /* Hồ sơ -> avatar tròn TÍM + mũi tên xuống + nút Đăng nhập viên đen */
  html:not([data-theme="night"]) #ttcShellSidebar > div:last-child{
    order:5; flex:none; display:flex; align-items:center;
  }
  html:not([data-theme="night"]) #ttcShellSidebar .ttc-shell-profile{
    border-top:0; padding:0; margin:0; gap:0;
  }
  html:not([data-theme="night"]) #ttcShellSidebar .ttc-shell-profile > div{ display:none; }
  html:not([data-theme="night"]) #ttcShellSidebar .ttc-shell-avatar{
    background:#6C4CF1; width:42px; height:42px;
  }
  html:not([data-theme="night"]) #ttcShellSidebar .ttc-shell-profile::after{
    content:"▾"; color:#8A8F98; font-size:12px; margin-left:5px;
  }
  html:not([data-theme="night"]) #ttcShellSidebar .ttc-shell-pbtn{
    width:auto; margin:0 0 0 10px; padding:9px 16px; border-radius:999px;
    font-size:13.5px; white-space:nowrap;
  }
}
/* Dải 900–1199px: thanh trên nén lại cho vừa */
@media (min-width:900px) and (max-width:1199px){
  html:not([data-theme="night"]) #ttcShellSidebar{ gap:6px; padding:0 10px; }
  /* Thanh viên thuốc hẹp: căn trái để cuộn ngang được từ đầu,
     tránh mục đầu bị cắt khuất sau logo khi căn giữa tràn hai phía */
  html:not([data-theme="night"]) #ttcShellSidebar .ttc-shell-nav{ justify-content:flex-start; }
  html:not([data-theme="night"]) #ttcShellSidebar .ttc-shell-brand-name{ font-size:15px; }
  html:not([data-theme="night"]) #ttcShellSidebar .ttc-shell-item{ padding:7px 9px; font-size:13.5px; }
  html:not([data-theme="night"]) #ttcShellSidebar .ttc-shell-pbtn{ padding:8px 12px; font-size:12.5px; }
}


/* Thanh công cụ phụ hiện từ 900px (placeUtility dời nút vào từ 900px;
   ẩn ở dải này sẽ làm mất nút Giản/Phồn + Giao diện + Chat). */
@media (min-width:900px){
/* Thanh công cụ phụ: nền xám rất nhạt full-width trong cửa sổ */
html:not([data-theme="night"]) #ttcMondlySubbar{
  display:flex; align-items:center; justify-content:space-between; gap:8px;
  background:#F7F7F9; border:1px solid #ECECF1; border-radius:16px;
  padding:6px 10px; margin:2px 0 14px;
}
html:not([data-theme="night"]) #ttcMondlySubbar .ttc-script-switch{
  background:#ffffff; border:1px solid #E8EAEF; color:#14161A;
  box-shadow:0 1px 3px rgba(16,24,40,.08); min-height:38px;
  padding:0 18px; font-size:13.5px;
}
html:not([data-theme="night"]) #ttcMondlySubbar .ttc-script-switch:hover{ background:#F7F7F9; }
html:not([data-theme="night"]) #ttcMondlySubbar .ttc-script-switch[aria-pressed="true"]{
  background:#14161A; color:#ffffff; border-color:#14161A; box-shadow:none;
}
html:not([data-theme="night"]) #ttcMondlySubbar .otter2-theme-slot{
  display:flex; align-items:center; gap:9px; position:relative;
  width:auto; padding:0 8px;
}
html:not([data-theme="night"]) #ttcMondlySubbar #otter2ThemeNavBtn{
  font-size:0; width:34px; height:34px; padding:0;
  background:transparent; border:0; box-shadow:none; border-radius:50%;
}
html:not([data-theme="night"]) #ttcMondlySubbar #otter2ThemeNavBtn::before{
  content:"🦦"; font-size:19px; line-height:1;
}
html:not([data-theme="night"]) #ttcMondlySubbar .ttc-shell-util-lbl{
  font-size:14px; font-weight:600; color:#3F4356;
}
html:not([data-theme="night"]) #ttcMondlySubbar #otter2ChatOnlineBtn{
  display:inline-flex; align-items:center; width:auto; height:auto;
  min-height:38px; padding:6px 10px; background:transparent; border:0;
  box-shadow:none; border-radius:999px; font-size:17px;
}
html:not([data-theme="night"]) #ttcMondlySubbar #otter2ChatOnlineBtn::after{
  content:"Chat Online"; font-size:14px; font-weight:600; color:#3F4356; margin-left:8px;
}
html:not([data-theme="night"]) #ttcMondlySubbar #otter2ChatOnlineBtn:hover{ background:#ECECF1; }
}

/* ---------- (2)(3)(4)(5) TRANG CHỦ — desktop ≥1021px ---------- */
@media (min-width:1021px){

  /* (2) Dòng chào: thẻ Học tiếp phẳng thành một dòng chào to */
  html:not([data-theme="night"]) #otter2-home .otter2-dash-continue{
    display:flex; align-items:center; gap:18px; padding:4px 4px 0;
  }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-continue .otter2-dash-kicker{ display:none; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-continue img{ display:none; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-continue p{ display:none; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-continue h3{
    margin:0; font-size:clamp(24px, 2.6vw, 32px); font-weight:800;
    letter-spacing:-.01em; color:#14161A;
  }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-continue .otter2-dash-ctared{
    width:auto; margin-left:auto; min-height:48px; padding:12px 24px;
    border-radius:999px; flex:none;
  }

  /* (4) Hàng chip LỘ TRÌNH */
  html:not([data-theme="night"]) #otter2-home .otter2-dash-strip{
    display:flex; align-items:center; gap:8px; background:transparent;
    border:0; box-shadow:none; border-radius:0; padding:0; margin:0;
    overflow:visible;
  }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-strip::before{
    content:"LỘ TRÌNH"; font-size:11px; font-weight:800;
    letter-spacing:.09em; color:#8A8F98; margin-right:2px; flex:none;
  }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-chip{
    flex:none; background:#F1F1F4; border:0; border-radius:999px;
    padding:9px 15px; font-size:13.5px; font-weight:700; color:#3F4356;
    min-height:0; box-shadow:none; white-space:nowrap;
  }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-chip small{ display:none; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-chip:hover{ background:#E7E7EC; color:#14161A; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-chip.is-cur{ background:#6C4CF1; color:#ffffff; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-chip.is-cur::after{
    content:" · đang học"; font-weight:600;
  }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-chip.is-cur:hover{ background:#6C4CF1; color:#ffffff; }

  /* (5) Thẻ Khóa tự học: các hàng phòng học ngang + nút tròn "›" */
  html:not([data-theme="night"]) #otter2-home .otter2-dash-course .otter2-feature{
    flex-direction:row; align-items:center; justify-content:flex-start;
    text-align:left; min-height:60px; height:auto; padding:10px 14px; gap:12px;
  }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-course .otter2-feature .otter2-ico{
    margin:0; flex:none;
  }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-course .otter2-feature::after{
    content:"›"; margin-left:auto; flex:none; width:34px; height:34px;
    border-radius:50%; background:#ffffff; border:1px solid #E8EAEF;
    display:grid; place-items:center; font-size:19px; font-weight:700;
    color:#3F4356; line-height:1;
  }

  /* (5) Thẻ Trình độ & kỹ năng: nút đầu thẻ thành viên xám nhạt,
     ô kỹ năng xám nhạt bo 16, thanh tiến độ từ vựng TÍM */
  html:not([data-theme="night"]) #otter2-home .otter2-dash-retest{
    background:#F1F1F4; color:#14161A; border:0;
  }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-retest:hover{ background:#E7E7EC; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-skill{ background:#F6F6F8; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-track > i{ background:#6C4CF1; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-skilltile{
    background:#F6F6F8; border:1.5px solid transparent; border-radius:16px;
  }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-skilltile:hover{
    background:#F2EFFF; border-color:#D9CFFF;
  }

  /* (5) Cột phải: thẻ Hoạt động hiện lại (shell V2 từng ẩn) */
  html:not([data-theme="night"]) #otter2-home .otter2-dash-card[aria-labelledby="otter2DashActTitle"]{
    display:block;
  }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-lvcell.has{ background:#F2EFFF; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-lvcell.has b::after{ background:#6C4CF1; }
  /* Cột phải sticky: chừa thanh trên cố định */
  html:not([data-theme="night"]) #otter2-home .otter2-dash-side{ top:92px; }
  /* Nhiệm vụ hôm nay: vòng icon nhuốm màu nhẹ như mẫu */
  html:not([data-theme="night"]) #otter2-home .otter2-dash-task .ic.c1{ background:#FFEEDD; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-task .ic.c2{ background:#FFF3C4; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-task .ic.c3{ background:#E2F7E5; }

  /* Thẻ Luyện thi HSK: chip cấp đang chọn TÍM + ô cúp nhuốm tím */
  html:not([data-theme="night"]) #otter2-home .ttc-exam-panel-chip.is-cur{
    background:#6C4CF1; border-color:#6C4CF1; color:#ffffff;
  }
  html:not([data-theme="night"]) #otter2-home .ttc-exam-panel-trophy{
    background:#F2EFFF; border-color:#E4DEFF; border-radius:16px;
  }

  /* Lộ trình HSK 1–9 (thẻ nấc): nấc đang học TÍM như chip */
  html:not([data-theme="night"]) #otter2-home .otter2-dash-step{
    background:#F6F6F8; border:1.5px solid transparent; border-radius:16px;
  }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-step:hover{
    background:#F2EFFF; border-color:#D9CFFF;
  }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-step.is-cur{
    background:#6C4CF1; border-color:#6C4CF1; color:#ffffff;
  }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-step.is-cur small{ color:rgba(255,255,255,.85); }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-step.is-cur .learned{ color:#FFE9A8; }

  /* Bài học mỗi ngày: hàng bài bo góc + hover xám nhạt như bảng mẫu */
  html:not([data-theme="night"]) #otter2-home .otter2-dash-lesson{
    border-radius:14px; padding:12px 10px;
  }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-lesson:hover{ background:#F7F7F9; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-thumb{ background:#F2EFFF; }
  /* Nút chính của thẻ Học theo video (truyện kể) -> viên ĐEN như mẫu */
  html:not([data-theme="night"]) #otter2-home .ttc-story-panel-btn{
    background:#14161A; border-color:#14161A; color:#ffffff;
    border-radius:999px; box-shadow:none;
  }
}

/* Thứ tự cột giữa ≥1280px (2 cột): chào → công cụ phụ đã ở ngoài
   lưới; trong lưới: chào → LỘ TRÌNH → Khóa tự học | cụm thi+kỹ
   năng → Bài học mỗi ngày → Lộ trình 1–9. */
@media (min-width:1280px){
  html:not([data-theme="night"]) #otter2-home .otter2-dash-continue{ grid-column:1/-1; grid-row:1; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-strip{ grid-column:1/-1; grid-row:2; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-course{ grid-column:1; grid-row:3; }
  html:not([data-theme="night"]) #otter2-home .ttc-exam-midstack{ grid-column:2; grid-row:3; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-main > section[aria-labelledby="otter2DashLessonsTitle"]{ grid-column:1/-1; grid-row:4; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-main > .otter2-dash-road{ grid-column:1/-1; grid-row:5; }
}
/* 1021–1279px: cột giữa 1 cột (như shell đã định) + chèn hàng
   công cụ/LỘ TRÌNH vào đúng thứ tự dọc. */
@media (min-width:1021px) and (max-width:1279px){
  html:not([data-theme="night"]) #otter2-home .otter2-dash-continue{ grid-column:1; grid-row:1; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-strip{ grid-column:1; grid-row:2; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-main > .otter2-dash-road{ grid-column:1; grid-row:3; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-main > .otter2-dash-course{ grid-column:1; grid-row:4; }
  html:not([data-theme="night"]) #otter2-home .ttc-exam-midstack{ grid-column:1; grid-row:5; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-main > section[aria-labelledby="otter2DashLessonsTitle"]{ grid-column:1/-1; grid-row:6; }
}

/* ============================================================
   MONDLY v4 (sáng 2026-11-24, Cá — vòng sửa 2 theo lời chê của
   anh Huy trên ảnh v3: "giản và phồn em ghép chung à cá? anh
   thấy mẫu chưa giống nhé. cột trái của anh gộp vào mà! nhìn
   nó gọn và đủ cả màn hình nhé" + lệnh bổ sung 07:07: BỎ HẲN
   thẻ Học theo video VÀ thẻ Luyện thi HSK khỏi trang chủ — kể
   cả thẻ thi nhỏ ở cột phải — vì Thi HSK đã có nút trên thanh
   ngang trên cùng):
   (1) GIẢN/PHỒN TÁCH RIÊNG: 2 nút .ttc-seg-btn do shell.js dựng
       trong #ttcMondlySubbar (gạt gộp cũ #ttcScriptSwitch ẩn ở
       ngữ cảnh này nhưng vẫn là nút bị bấm hộ — đúng cơ chế
       chuyển đổi gốc); nút đang chọn = viên TRẮNG; 4 mục của
       thanh rải đều flex:1 như mẫu.
   (2) CỘT TRÁI GỘP ĐÚNG MẪU: ẩn hàng nút cũ .otter2-feature-row,
       hiện 4 hàng phòng học .ttc-dash-rooms do shell.js dựng
       (icon + tên + mô tả nhỏ + nút tròn "›", bấm qua ô kỹ năng
       thật); thẻ tím giữ nguyên ở trên.
   (3) GỌN + ĐỦ MỘT MÀN HÌNH: cửa sổ rộng ~100%−80px (mép ~40px
       ở 1440); bỏ khỏi bề mặt: thẻ Luyện thi, thẻ Học theo
       video, thẻ Bảng thành tích riêng, section Lộ trình 1–9;
       cột giữa chỉ còn thẻ Trình độ & kỹ năng (viên "▶ Thi lại"
       #ttcDashRetest do shell.js dựng mở khu thi thật; ô kỹ
       năng có thanh + viên trạng thái TRUNG TÍNH — web không có
       dữ kiện thật theo kỹ năng, luật số liệu thật cấm bịa mức
       Khá/Đang lên/Ổn như bản vẽ); cột phải chỉ còn Hoạt động
       (nút 🏆 nhỏ = nút Bảng thành tích THẬT được shell.js dời
       sang) + Nhiệm vụ hôm nay; bảng Bài học mỗi ngày mảnh (số
       tròn thay chữ Hán do shell.js đổi ở ngữ cảnh này, bỏ ô
       tìm kiếm, viên tiến độ "—"); dòng chào bỏ viên "Học
       tiếp", chữ xám như mẫu; nén padding/cỡ chữ toàn trang chủ.
   Chỉ desktop + theme sáng; đêm giữ khung v3, mobile giữ Mẫu 2.
   KHÔNG đụng .ttt-rainbow, .ttc-han-viet, màu đúng/sai.
   ============================================================ */

/* ---------- (1) THANH CÔNG CỤ PHỤ: 4 MỤC RẢI ĐỀU ---------- */
@media (min-width:900px){
  html:not([data-theme="night"]) #ttcMondlySubbar{
    justify-content:flex-start; gap:4px; padding:6px 8px; margin:2px 0 10px;
    background:#FAFAFB;
  }
  html:not([data-theme="night"]) #ttcMondlySubbar #ttcScriptSwitch{ display:none !important; }
  html:not([data-theme="night"]) #ttcMondlySubbar .ttc-seg-btn{
    display:flex; flex:1 1 0; align-items:center; justify-content:center; gap:7px;
    background:transparent; border:1px solid transparent; border-radius:999px;
    min-height:38px; padding:7px 10px; cursor:pointer;
    font:inherit; font-size:14px; font-weight:600; color:#3F4356;
  }
  html:not([data-theme="night"]) #ttcMondlySubbar .ttc-seg-btn::before{
    font-size:16px; font-weight:700; color:#14161A; line-height:1;
  }
  html:not([data-theme="night"]) #ttcMondlySubbar .ttc-seg-simplified::before{ content:"\7B80"; }
  html:not([data-theme="night"]) #ttcMondlySubbar .ttc-seg-traditional::before{ content:"\7E41"; }
  html:not([data-theme="night"]) #ttcMondlySubbar .ttc-seg-btn:hover{ background:#F1F1F4; }
  html:not([data-theme="night"]) #ttcMondlySubbar .ttc-seg-btn[aria-pressed="true"]{
    background:#ffffff; color:#14161A; font-weight:700;
    border-color:#E8EAEF; box-shadow:0 1px 3px rgba(16,24,40,.10);
  }
  html:not([data-theme="night"]) #ttcMondlySubbar .otter2-theme-slot{
    flex:1 1 0; justify-content:center; padding:0;
  }
  html:not([data-theme="night"]) #ttcMondlySubbar #otter2ChatOnlineBtn{
    flex:1 1 0; justify-content:center;
  }
}

/* ---------- (2)+(3) TRANG CHỦ GỌN MỘT MÀN HÌNH ---------- */
@media (min-width:1021px){
  /* Cửa sổ gần hết chiều ngang (mép ~40px ở bề ngang 1440) */
  html:not([data-theme="night"]) #ttcShellSidebar{ width:min(1400px, calc(100% - 80px)); }
  html:not([data-theme="night"]) .otter2-shell{ width:min(1400px, calc(100% - 80px)); }

  /* Bỏ khỏi bề mặt trang chủ (chức năng vẫn tới được như cũ:
     thi qua thanh ngang trên cùng, truyện qua thanh ngang,
     thành tích qua nút 🏆 ở thẻ Hoạt động) */
  html:not([data-theme="night"]) #otter2-home #otter2ExamPanel,
  html:not([data-theme="night"]) #otter2-home #otter2StoryVideoPanel,
  html:not([data-theme="night"]) #otter2-home #otter2VideoPanel{ display:none !important; }
  html:not([data-theme="night"]) #ttcShellRailAch{ display:none !important; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-road{ display:none !important; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-search{ display:none; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-course .otter2-feature-row{ display:none; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-hero p,
  html:not([data-theme="night"]) #otter2-home .otter2-dash-hero .otter2-dash-hero-cta{ display:none; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-note{ display:none; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-tag{ display:none; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-continue .otter2-dash-ctared{ display:none; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-skilltile small{ display:none; }

  /* Nén nhịp chung toàn trang chủ */
  html:not([data-theme="night"]) #otter2-home{ gap:12px; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-card{ padding:13px 15px; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-head{ margin-bottom:9px; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-head h2{ font-size:16px; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-main{ gap:12px; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-side{ gap:12px; }

  /* Dòng chào: chữ xám như mẫu, không viên Học tiếp */
  html:not([data-theme="night"]) #otter2-home .otter2-dash-continue{ padding:0 4px; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-continue h3{
    font-size:clamp(22px, 2.3vw, 29px); color:#9BA1A9;
  }
  /* Hàng chip LỘ TRÌNH thấp hơn */
  html:not([data-theme="night"]) #otter2-home .otter2-dash-chip{ padding:6px 12px; font-size:13px; }

  /* Cột trái: thẻ tím nén + 4 hàng phòng học đúng mẫu */
  html:not([data-theme="night"]) #otter2-home .otter2-dash-hero{ padding:12px 14px; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-hero h3{ font-size:17px; margin:7px 0 0; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-prow{ margin-top:10px; font-size:12px; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-bar{ margin-top:5px; }
  html:not([data-theme="night"]) #otter2-home .ttc-dash-rooms{ display:grid; gap:7px; margin-top:10px; }
  html:not([data-theme="night"]) #otter2-home .ttc-dash-room{
    display:flex; align-items:center; gap:11px; width:100%; box-sizing:border-box;
    padding:8px 12px; border:1.5px solid transparent; border-radius:14px;
    background:#F6F6F8; color:#14161A; font:inherit; text-align:left; cursor:pointer;
  }
  html:not([data-theme="night"]) #otter2-home .ttc-dash-room:hover{ background:#F2EFFF; border-color:#D9CFFF; }
  html:not([data-theme="night"]) #otter2-home .ttc-dash-room-ico{ font-size:19px; line-height:1; flex:none; }
  html:not([data-theme="night"]) #otter2-home .ttc-dash-room-main{ flex:1; min-width:0; display:grid; }
  html:not([data-theme="night"]) #otter2-home .ttc-dash-room-main strong{ font-size:13.5px; font-weight:700; color:#14161A; }
  html:not([data-theme="night"]) #otter2-home .ttc-dash-room-main small{ font-size:11.5px; color:#8A8F98; font-weight:600; }
  html:not([data-theme="night"]) #otter2-home .ttc-dash-room-chev{
    flex:none; width:28px; height:28px; border-radius:50%;
    background:#ffffff; border:1px solid #E8EAEF;
    display:grid; place-items:center; font-size:17px; font-weight:700; color:#3F4356; line-height:1;
  }

  /* Cột giữa: thẻ Trình độ & kỹ năng — viên Thi lại + ô có thanh/viên */
  html:not([data-theme="night"]) #otter2-home #ttcDashRetest{
    display:inline-flex; align-items:center; min-height:32px; padding:6px 13px;
    background:#ffffff; border:1px solid #E4E6EA; border-radius:999px;
    font:inherit; font-size:12.5px; font-weight:700; color:#14161A; cursor:pointer;
  }
  html:not([data-theme="night"]) #otter2-home #ttcDashRetest:hover{ background:#F7F7F9; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-levelbig .lv{ font-size:38px; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-levelbig .meta{ font-size:12px; line-height:1.45; }
  html:not([data-theme="night"]) #otter2-home .ttc-meta-line{ display:block; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-skill{ margin-top:10px; padding:9px 12px; border-radius:12px; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-skill h4{ margin-bottom:6px; font-size:13px; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-track{ height:8px; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-skill .cap{ margin-top:5px; font-size:12px; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-skillgrid{ gap:8px; margin-top:9px; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-skilltile{
    display:flex; flex-direction:column; gap:7px; padding:10px 12px; min-height:0;
  }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-skilltile strong{ font-size:13.5px; }
  html:not([data-theme="night"]) #otter2-home .ttc-tile-bar{
    display:block; height:6px; border-radius:99px; background:#E7E7EC; overflow:hidden;
  }
  html:not([data-theme="night"]) #otter2-home .ttc-tile-bar > i{ display:block; height:100%; width:0; background:#C9CBD4; border-radius:99px; }
  html:not([data-theme="night"]) #otter2-home .ttc-tile-pill{
    display:inline-flex; align-self:flex-end; padding:2px 9px; border-radius:999px;
    background:#F1F1F4; color:#8A8F98; font-size:10.5px; font-weight:800; line-height:1.5;
  }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-skilltile[data-dash-goto="auto"]{
    border-style:dashed; border-color:#D8D8E0; background:#FBFBFC;
  }

  /* Cột phải: Hoạt động + Nhiệm vụ (nút thành tích THẬT: v4.2 dời
     vào thẻ riêng #ttcShellRailAch — xem khối MONDLY v4.2 cuối file) */
  html:not([data-theme="night"]) #otter2-home .otter2-dash-actnum .n{ font-size:36px; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-lvgrid{ margin-top:10px; gap:6px; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-lvcell{ padding:5px 4px; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-task{ padding:7px 2px; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-task .ic{ width:36px; height:36px; font-size:16px; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-cta{ margin-top:10px; padding:11px; min-height:44px; font-size:14.5px; }

  /* Bài học mỗi ngày: bảng mảnh như mẫu */
  html:not([data-theme="night"]) #otter2-home section[aria-labelledby="otter2DashLessonsTitle"] .otter2-dash-head{ flex-wrap:wrap; }
  html:not([data-theme="night"]) #otter2-home section[aria-labelledby="otter2DashLessonsTitle"] .otter2-dash-sub{ order:3; flex:1 1 100%; margin-top:1px; }
  html:not([data-theme="night"]) #otter2-home #ttcLessonsPlus{
    display:grid; place-items:center; width:30px; height:30px; border-radius:50%;
    background:#ffffff; border:1px solid #E8EAEF; color:#3F4356;
    font-size:18px; font-weight:600; line-height:1; text-decoration:none; order:2; margin-left:auto;
  }
  html:not([data-theme="night"]) #otter2-home #ttcLessonsPlus:hover{ background:#F7F7F9; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-lesson{
    grid-template-columns:30px minmax(0,1fr) auto auto; gap:10px;
    padding:6px 8px; border-radius:10px;
  }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-thumb{
    width:30px; height:30px; font-size:13.5px; background:#F2EFFF; color:#4326C9;
  }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-lesson-main strong{ font-size:13.5px; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-lesson-main small{
    font-size:12px; margin-top:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-status{ padding:4px 8px; font-size:11px; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-lesson::after{
    content:"—"; padding:4px 9px; border-radius:7px; background:#F1F1F4; color:#8A8F98;
    font-size:11px; font-weight:800; line-height:1.35; white-space:nowrap;
  }
}

/* ============================================================
   MONDLY v4.1 — nén nhịp đợt 2 (sau ảnh kiểm chứng v4: đáy thẻ
   Bài học còn tràn ~120px khỏi màn 1024). Chỉ siết thêm
   padding/chiều cao ở đúng ngữ cảnh Mondly ≥1021px sáng; tên ô
   kỹ năng thống nhất màu mực như mẫu (ô phát âm đang cam do
   luật cũ của theme). Không đổi cấu trúc, không đổi số liệu.
   ============================================================ */
@media (min-width:1021px){
  html:not([data-theme="night"]) #otter2-home{ gap:10px; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-card{ padding:11px 14px; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-head{ margin-bottom:7px; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-main{ gap:10px; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-side{ gap:10px; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-continue{ padding:0 4px; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-continue h3{ font-size:clamp(21px, 2.2vw, 27px); }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-chip{ padding:5px 11px; }
  /* Cột trái */
  html:not([data-theme="night"]) #otter2-home .otter2-dash-hero{ padding:10px 12px; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-prow{ margin-top:8px; }
  html:not([data-theme="night"]) #otter2-home .ttc-dash-rooms{ gap:6px; margin-top:8px; }
  html:not([data-theme="night"]) #otter2-home .ttc-dash-room{ padding:6px 10px; }
  /* Cột giữa */
  html:not([data-theme="night"]) #otter2-home .otter2-dash-levelbig .lv{ font-size:34px; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-skill{ margin-top:8px; padding:7px 11px; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-skillgrid{ gap:7px; margin-top:8px; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-skilltile{ gap:6px; padding:8px 11px; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-skilltile strong{ color:#14161A; }
  html:not([data-theme="night"]) #otter2-home .ttc-tile-bar{ height:5px; }
  /* Cột phải */
  html:not([data-theme="night"]) #otter2-home .otter2-dash-actnum .n{ font-size:32px; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-lvgrid{ margin-top:8px; gap:5px; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-lvcell{ padding:4px; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-task{ padding:5px 2px; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-cta{ margin-top:8px; padding:9px; min-height:42px; }
  /* Bảng bài học */
  html:not([data-theme="night"]) #otter2-home .otter2-dash-lesson{ padding:2px 8px; }
  html:not([data-theme="night"]) #otter2-home .otter2-dash-thumb{ width:28px; height:28px; font-size:13px; }
}
@media (min-width:900px){
  html:not([data-theme="night"]) #ttcMondlySubbar{ margin:2px 0 8px; }
  html:not([data-theme="night"]) #ttcMondlySubbar .ttc-seg-btn{ min-height:36px; }
}

/* ============================================================
   MONDLY v4.2 (sáng 2026-11-24, Cá — anh Huy xem bản v4 trên
   máy thật, chê nút Bảng thành tích nấp sau icon 🏆 nhỏ ở góc
   thẻ Hoạt động khó thấy, và DUYỆT phương án "làm thẻ Bảng
   thành tích riêng dưới thẻ Nhiệm vụ hôm nay"): thay cho cách
   dời nút vào thẻ Hoạt động của v4, nay ở ngữ cảnh Mondly:
   - Thẻ #ttcShellRailAch (shell.js buildRailAch dựng sẵn trong
     cột phải .otter2-dash-side, ngay dưới thẻ Nhiệm vụ) HIỆN
     LẠI, giữ phong cách thẻ Mondly (trắng, bo góc, viền mảnh —
     nó vốn là .otter2-dash-card nên thừa hưởng đủ).
   - Tiêu đề thêm 🏆 bằng ::before (engine Giản/Phồn không
     dịch nhầm chữ trong CSS).
   - Số #ttcShellAchNum = số từ đã học THẬT của học viên,
     renderStats của shell cập nhật cùng nguồn số liệu với thẻ
     Hoạt động (không vẽ "hạng N" — web không tính sẵn thứ hạng
     cá nhân ở máy khách); số + dòng phụ xếp cùng một hàng cho
     gọn chiều cao.
   - Nút bấm trong thẻ là CHÍNH nút THẬT #otter2DashAchBtn do
     shell.js (mondlyAchBtn) dời vào, nhãn "Xem bảng thành
     tích" hiện rõ, dạng viên đen như nút chính của mẫu; nút
     mồi #ttcShellAchBtn của shell ẩn đi ở ngữ cảnh này.
   Cột phải được shell ghim sticky ở ≥1021px nên thẻ thêm vào
   không đội chiều cao tổng của trang chủ. Chỉ desktop ≥1021px
   + theme sáng; đêm/mobile/tablet giữ nguyên như cũ.
   ============================================================ */
@media (min-width:1021px){
  html:not([data-theme="night"]) #ttcShellRailAch{ display:block !important; }
  html:not([data-theme="night"]) #ttcShellRailAch .otter2-dash-head{ margin-bottom:3px; }
  html:not([data-theme="night"]) #ttcShellRailAchTitle::before{ content:"🏆 "; }
  html:not([data-theme="night"]) #ttcShellRailAch .ttc-shell-ach-num{
    display:inline-block; vertical-align:middle; font-size:27px;
  }
  html:not([data-theme="night"]) #ttcShellRailAch .ttc-shell-ach-lbl{
    display:inline-block; vertical-align:middle; margin:0 0 0 8px; font-size:12px;
  }
  html:not([data-theme="night"]) #ttcShellRailAch #ttcShellAchBtn{ display:none !important; }
  html:not([data-theme="night"]) #ttcShellRailAch #otter2DashAchBtn{
    display:block; width:100%; box-sizing:border-box; margin-top:9px;
    padding:9px 12px; min-height:38px; border-radius:12px;
    background:#14161A; border:1px solid #14161A; color:#ffffff;
    font:inherit; font-size:14px; font-weight:700; text-align:center; cursor:pointer;
  }
  html:not([data-theme="night"]) #ttcShellRailAch #otter2DashAchBtn:hover{ background:#000000; }
}

/* ============================================================
   VÁ LỖI CỘT PHẢI STICKY ĐÈ DẢI PHẢI KHU TỪ VỰNG (2026-11-24)
   Cơ chế lỗi (đã đo thực nghiệm trên bản thật, desktop ≥1021px):
   cột phải .otter2-dash-side được shell ghim sticky (top:92px),
   nhưng vì .otter2-dash là display:contents nên khối chứa của
   sticky là TOÀN BỘ #otter2-home — cột phải trượt theo suốt
   chiều cao trang chủ, không nhả ra ở cuối dashboard. Panel
   #otter2HskJourney là hàng lưới full-width nằm dưới dashboard
   nên khi cuộn qua khu từ vựng, cột phải đứng yên phủ lên dải
   phải 350px của panel ở mọi vị trí cuộn (đo: sideVp cố định
   top:92..bottom:762, x:1029..1379 trong suốt 53.000px cuộn).
   Thẻ từ .otter2-hsk1-card có position:relative nên vẫn nổi
   trên cột phải (bấm được), nhưng nền panel tĩnh + các khe
   giữa thẻ bị cột phải vẽ đè → dải phải của workspace lem
   nhem, nội dung tĩnh trong dải bị che thật (cùng cơ chế đã
   che nút pinyin trước đây).
   Cách sửa (ít xâm lấn nhất — không đổi DOM, không đổi lưới,
   không đổi diện mạo dashboard): nâng cả panel journey thành
   một lớp xếp chồng riêng (position:relative + z-index:2) nằm
   TRÊN cột phải sticky. Khi cuộn tới khu từ vựng, panel (nền
   trắng đục) trượt phủ lên cột phải thay vì bị đè; khi còn ở
   vùng dashboard, journey chưa chồng lấn cột phải nên diện
   mạo + hành vi sticky giữ nguyên 100%. Chỉ áp ở ≥1021px —
   nơi sticky tồn tại; mobile/tablet giữ nguyên như cũ. Mọi
   theme (sticky của shell không phân biệt theme). Bé hướng
   dẫn (z-index ~200050) và modal chi tiết thẻ (12500) vẫn
   nổi trên panel như cũ.
   ============================================================ */
@media (min-width:1021px){
  #otter2-home #otter2HskJourney{ position:relative; z-index:2; }
}

/* ============================================================
   MONDLY BẢN ĐÊM (2026-11-25, Cá — anh Huy báo: bật Ban đêm thì
   web tụt về GIAO DIỆN CŨ: sidebar dọc trắng + dashboard cũ).
   Nguyên nhân: toàn bộ các khối Mondly v1–v4.2 ở trên đều gói
   trong html:not([data-theme="night"]) nên ban đêm không áp.
   Khối này là BẢN GƯƠNG TỰ ĐỘNG của chính các luật đó: giữ
   nguyên thứ tự cascade + mọi thuộc tính bố cục, chỉ thay bảng
   màu sáng -> tối (nền #16283F/#1E293B, viền #334155, chữ
   #F1F5F9/#CBD5E1, mục đang chọn = viên CAM #F97316 cho nổi
   trên nền tối). shell.js placeUtility đồng thời cho ban đêm
   dùng chung thanh công cụ phụ #ttcMondlySubbar như ban ngày.
   Tiêu đề 7 màu + tên Hán-Việt đỏ: KHÔNG luật nào ở đây chạm
   vào (.ttt-rainbow / .ttc-han-viet không xuất hiện).
   ============================================================ */
html[data-theme="night"] #ttcShellSidebar .ttc-shell-item:hover{background:#431407}
html[data-theme="night"] #ttcShellSidebar .ttc-shell-item.is-active{background:#431407;color:#FDBA74;box-shadow:inset 3px 0 0 #F97316}
html[data-theme="night"] #ttcShellSidebar .ttc-shell-item.is-active .ttc-shell-ico{background:#7C2D12}
html[data-theme="night"] #ttcShellSidebar .ttc-shell-stats{background:#1E293B;border:1px solid #334155;border-radius:14px}
@media (min-width:900px){
html[data-theme="night"] #otter2-home{background:linear-gradient(180deg,#0B1220 0%,#0F172A 100%)}
html[data-theme="night"] #otter2-home .otter2-dash-card{background:#16283F;border:1px solid #334155;border-radius:24px;box-shadow:0 10px 30px rgba(31,35,52,.06)}
html[data-theme="night"] #otter2-home .otter2-dash-card h2,html[data-theme="night"] #otter2-home .otter2-dash-card h3{color:#F1F5F9}
html[data-theme="night"] #otter2-home .otter2-dash-sub{color:#94A3B8}
html[data-theme="night"] #otter2-home .otter2-dash-continue .otter2-dash-kicker{background:#2A2350;color:#6C4CF1;border-radius:999px;padding:4px 12px;justify-self:start;font-weight:700}
html[data-theme="night"] #otter2-home .otter2-dash-continue h3{color:#F1F5F9;font-size:21px}
html[data-theme="night"] #otter2-home .otter2-dash-continue img{border-radius:20px;box-shadow:0 8px 22px rgba(31,35,52,.12)}
html[data-theme="night"] #otter2-home .otter2-dash-continue .otter2-dash-ctared{background:#F97316;color:#ffffff;border-radius:12px;font-weight:800}
html[data-theme="night"] #otter2-home .otter2-dash-hero{background:linear-gradient(135deg,#7C5CFC 0%,#5B3DF0 58%,#4A2FD6 100%);border-radius:18px;color:#ffffff}
html[data-theme="night"] #otter2-home .otter2-dash-hero h3{color:#ffffff}
html[data-theme="night"] #otter2-home .otter2-dash-hero p{color:rgba(255,255,255,.85)}
html[data-theme="night"] #otter2-home .otter2-dash-hero .otter2-dash-badge{background:#FF8A3D;color:#ffffff;border-radius:999px}
html[data-theme="night"] #otter2-home .otter2-dash-hero .otter2-dash-prow{color:#ffffff}
html[data-theme="night"] #otter2-home .otter2-dash-hero .otter2-dash-hero-cta{background:#16283F;color:#C4B5FD;border-radius:10px;font-weight:800}
html[data-theme="night"] #otter2-home .otter2-dash-hero .otter2-dash-bar{background:rgba(255,255,255,.28);height:9px;border-radius:99px}
html[data-theme="night"] #otter2-home .otter2-dash-hero .otter2-dash-bar > i{background:#FFC531;border-radius:99px}
html[data-theme="night"] #otter2-home .otter2-feature{background:#1E293B;border:1.5px solid transparent;border-radius:16px}
html[data-theme="night"] #otter2-home .otter2-feature:hover{background:#2A2350;border-color:#5B21B6}
html[data-theme="night"] #otter2-home .otter2-dash-lvcell{background:#1E293B;border:1.5px solid transparent;border-radius:14px}
html[data-theme="night"] #otter2-home .otter2-dash-lvcell:hover{background:#2A2350;border-color:#5B21B6}
html[data-theme="night"] #otter2-home .otter2-dash-lvcell b{color:#F1F5F9}
html[data-theme="night"] #otter2-home .otter2-dash-task{border-radius:14px}
html[data-theme="night"] #otter2-home .otter2-dash-task:hover{background:#1E293B}
html[data-theme="night"] #otter2-home .otter2-dash-task .tt small{color:#94A3B8}
html[data-theme="night"] #otter2-home .otter2-dash-task .mins{background:#0B1220;border-radius:999px;padding:4px 10px;color:#CBD5E1;font-weight:700}
html[data-theme="night"] #otter2-home .otter2-dash-cta{background:#F97316;color:#ffffff;border-radius:12px;font-weight:700}
html[data-theme="night"] #otter2-home .otter2-dash-cta:hover{background:#EA580C}
html[data-theme="night"] #otter2-home .ttc-shell-ach-btn{background:#16283F;color:#F1F5F9;border:1.5px solid #334155;border-radius:12px;font-weight:700}
html[data-theme="night"] #ttcShellSidebar .ttc-shell-item.is-active{background:#F97316;color:#ffffff;box-shadow:none;border-radius:12px}
html[data-theme="night"] #ttcShellSidebar .ttc-shell-item.is-active:hover{background:#F97316}
html[data-theme="night"] #ttcShellSidebar .ttc-shell-item.is-active .ttc-shell-ico{background:rgba(255,255,255,.16)}
html[data-theme="night"] .otter2-hsk1-card{border-color:#334155;border-radius:16px}
html[data-theme="night"] .otter2-hsk1-card:hover{border-color:#C9B8FF}
}
@media (min-width:900px){
html[data-theme="night"] body.otter2-body{background:#0B1220}
html[data-theme="night"] .otter2-shell{border-radius:28px;margin:16px 16px 16px 0;box-shadow:0 24px 60px rgba(31,35,52,.14)}
html[data-theme="night"] #otter2-home{background:transparent}
html[data-theme="night"] #otter2-home .otter2-dash-card{border:1px solid #334155;border-radius:20px;box-shadow:0 1px 3px rgba(16,24,40,.05)}
html[data-theme="night"] #otter2-home .otter2-dash-card.otter2-dash-continue{background:transparent;border-color:transparent;box-shadow:none}
html[data-theme="night"] #otter2-home .otter2-dash-continue h3{font-size:26px}
html[data-theme="night"] #otter2-home .ttc-exam-panel-btn{background:#F97316;color:#ffffff}
html[data-theme="night"] #ttcShellSidebar .ttc-shell-pbtn{background:#F97316}
}
@media (min-width:900px){
html[data-theme="night"] body.otter2-body{padding-left:0;padding-top:76px}
html[data-theme="night"] #ttcShellSidebar{top:12px;left:50%;transform:translateX(-50%);bottom:auto;width:min(var(--otter2-max), calc(100% - 24px));height:64px;flex-direction:row;align-items:center;gap:10px;padding:0 16px;overflow:visible;background:#16283F;border:1px solid rgba(51,65,85,.9);border-bottom:1px solid #1E293B;border-radius:22px 22px 0 0;box-shadow:none}
html[data-theme="night"] .otter2-shell{margin:0 auto 28px;border-top:0;border-radius:0 0 28px 28px}
html[data-theme="night"] #ttcShellSidebar .ttc-shell-brand{border-bottom:0;padding:0;flex:none;gap:10px}
html[data-theme="night"] #ttcShellSidebar .ttc-shell-brand img{width:40px;height:40px;border-radius:50%}
html[data-theme="night"] #ttcShellSidebar .ttc-shell-brand-name{font-size:16.5px;white-space:nowrap}
html[data-theme="night"] #ttcShellSidebar .ttc-shell-brand-sub{display:none}
html[data-theme="night"] #ttcShellSidebar .ttc-shell-search{order:3;flex:none;width:44px;height:44px;margin:0;padding:0;border-radius:50%;border:1px solid #334155;background:#16283F;justify-content:center;gap:0}
html[data-theme="night"] #ttcShellSidebar .ttc-shell-search:hover{background:#1E293B;border-color:#334155;color:#16283F}
html[data-theme="night"] #ttcShellSidebar .ttc-shell-search-tx{display:none}
html[data-theme="night"] #ttcShellSidebar .ttc-shell-search-ico{font-size:17px}
html[data-theme="night"] #ttcShellSidebar .ttc-shell-nav{order:2;flex:1 1 auto;min-width:0;flex-direction:row;align-items:center;justify-content:center;gap:2px;padding:4px;margin:0 4px;background:#0B1220;border-radius:999px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}
html[data-theme="night"] #ttcShellSidebar .ttc-shell-nav::-webkit-scrollbar{display:none}
html[data-theme="night"] #ttcShellSidebar .ttc-shell-nav::before{display:none}
html[data-theme="night"] #ttcShellSidebar .ttc-shell-item{flex:none;width:auto;padding:8px 13px;border-radius:999px;font-size:14.5px;gap:0;background:transparent;box-shadow:none}
html[data-theme="night"] #ttcShellSidebar .ttc-shell-item .ttc-shell-ico{display:none}
html[data-theme="night"] #ttcShellSidebar .ttc-shell-item:hover{background:#263449}
html[data-theme="night"] #ttcShellSidebar .ttc-shell-item.is-active{background:#F97316;color:#ffffff;box-shadow:none}
html[data-theme="night"] #ttcShellSidebar .ttc-shell-item.is-active:hover{background:#F97316}
html[data-theme="night"] #ttcShellSidebar .ttc-shell-util{order:4;flex:none;flex-direction:row;padding:0;margin:0;gap:0}
html[data-theme="night"] #ttcShellSidebar .ttc-shell-util::before{display:none}
html[data-theme="night"] #ttcShellSidebar #ttcMenuBtn{width:44px;height:44px;margin:0;padding:0;border-radius:50%;justify-content:center;gap:0;border:1px solid #334155;background:#16283F;box-shadow:none}
html[data-theme="night"] #ttcShellSidebar #ttcMenuBtn:hover{background:#1E293B;border-color:#334155}
html[data-theme="night"] #ttcShellSidebar #ttcMenuBtn .ttc-shell-util-lbl{display:none}
html[data-theme="night"] #ttcShellSidebar .ttc-shell-stats{display:none}
html[data-theme="night"] #ttcShellSidebar > div:last-child{order:5;flex:none;display:flex;align-items:center}
html[data-theme="night"] #ttcShellSidebar .ttc-shell-profile{border-top:0;padding:0;margin:0;gap:0}
html[data-theme="night"] #ttcShellSidebar .ttc-shell-profile > div{display:none}
html[data-theme="night"] #ttcShellSidebar .ttc-shell-avatar{background:#6C4CF1;width:42px;height:42px}
html[data-theme="night"] #ttcShellSidebar .ttc-shell-profile::after{content:"▾";color:#94A3B8;font-size:12px;margin-left:5px}
html[data-theme="night"] #ttcShellSidebar .ttc-shell-pbtn{width:auto;margin:0 0 0 10px;padding:9px 16px;border-radius:999px;font-size:13.5px;white-space:nowrap}
}
@media (min-width:900px) and (max-width:1199px){
html[data-theme="night"] #ttcShellSidebar{gap:6px;padding:0 10px}
html[data-theme="night"] #ttcShellSidebar .ttc-shell-nav{justify-content:flex-start}
html[data-theme="night"] #ttcShellSidebar .ttc-shell-brand-name{font-size:15px}
html[data-theme="night"] #ttcShellSidebar .ttc-shell-item{padding:7px 9px;font-size:13.5px}
html[data-theme="night"] #ttcShellSidebar .ttc-shell-pbtn{padding:8px 12px;font-size:12.5px}
}
@media (min-width:900px){
html[data-theme="night"] #ttcMondlySubbar{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#1E293B;border:1px solid #334155;border-radius:16px;padding:6px 10px;margin:2px 0 14px}
html[data-theme="night"] #ttcMondlySubbar .ttc-script-switch{background:#16283F;border:1px solid #334155;color:#F1F5F9;box-shadow:0 1px 3px rgba(16,24,40,.08);min-height:38px;padding:0 18px;font-size:13.5px}
html[data-theme="night"] #ttcMondlySubbar .ttc-script-switch:hover{background:#1E293B}
html[data-theme="night"] #ttcMondlySubbar .ttc-script-switch[aria-pressed="true"]{background:#F97316;color:#ffffff;border-color:#F97316;box-shadow:none}
html[data-theme="night"] #ttcMondlySubbar .otter2-theme-slot{display:flex;align-items:center;gap:9px;position:relative;width:auto;padding:0 8px}
html[data-theme="night"] #ttcMondlySubbar #otter2ThemeNavBtn{font-size:0;width:34px;height:34px;padding:0;background:transparent;border:0;box-shadow:none;border-radius:50%}
html[data-theme="night"] #ttcMondlySubbar #otter2ThemeNavBtn::before{content:"🦦";font-size:19px;line-height:1}
html[data-theme="night"] #ttcMondlySubbar .ttc-shell-util-lbl{font-size:14px;font-weight:600;color:#CBD5E1}
html[data-theme="night"] #ttcMondlySubbar #otter2ChatOnlineBtn{display:inline-flex;align-items:center;width:auto;height:auto;min-height:38px;padding:6px 10px;background:transparent;border:0;box-shadow:none;border-radius:999px;font-size:17px}
html[data-theme="night"] #ttcMondlySubbar #otter2ChatOnlineBtn::after{content:"Chat Online";font-size:14px;font-weight:600;color:#CBD5E1;margin-left:8px}
html[data-theme="night"] #ttcMondlySubbar #otter2ChatOnlineBtn:hover{background:#263449}
}
@media (min-width:1021px){
html[data-theme="night"] #otter2-home .otter2-dash-continue{display:flex;align-items:center;gap:18px;padding:4px 4px 0}
html[data-theme="night"] #otter2-home .otter2-dash-continue .otter2-dash-kicker{display:none}
html[data-theme="night"] #otter2-home .otter2-dash-continue img{display:none}
html[data-theme="night"] #otter2-home .otter2-dash-continue p{display:none}
html[data-theme="night"] #otter2-home .otter2-dash-continue h3{margin:0;font-size:clamp(24px, 2.6vw, 32px);font-weight:800;letter-spacing:-.01em;color:#F1F5F9}
html[data-theme="night"] #otter2-home .otter2-dash-continue .otter2-dash-ctared{width:auto;margin-left:auto;min-height:48px;padding:12px 24px;border-radius:999px;flex:none}
html[data-theme="night"] #otter2-home .otter2-dash-strip{display:flex;align-items:center;gap:8px;background:transparent;border:0;box-shadow:none;border-radius:0;padding:0;margin:0;overflow:visible}
html[data-theme="night"] #otter2-home .otter2-dash-strip::before{content:"LỘ TRÌNH";font-size:11px;font-weight:800;letter-spacing:.09em;color:#94A3B8;margin-right:2px;flex:none}
html[data-theme="night"] #otter2-home .otter2-dash-chip{flex:none;background:#0B1220;border:0;border-radius:999px;padding:9px 15px;font-size:13.5px;font-weight:700;color:#CBD5E1;min-height:0;box-shadow:none;white-space:nowrap}
html[data-theme="night"] #otter2-home .otter2-dash-chip small{display:none}
html[data-theme="night"] #otter2-home .otter2-dash-chip:hover{background:#263449;color:#F1F5F9}
html[data-theme="night"] #otter2-home .otter2-dash-chip.is-cur{background:#6C4CF1;color:#ffffff}
html[data-theme="night"] #otter2-home .otter2-dash-chip.is-cur::after{content:" · đang học";font-weight:600}
html[data-theme="night"] #otter2-home .otter2-dash-chip.is-cur:hover{background:#6C4CF1;color:#ffffff}
html[data-theme="night"] #otter2-home .otter2-dash-course .otter2-feature{flex-direction:row;align-items:center;justify-content:flex-start;text-align:left;min-height:60px;height:auto;padding:10px 14px;gap:12px}
html[data-theme="night"] #otter2-home .otter2-dash-course .otter2-feature .otter2-ico{margin:0;flex:none}
html[data-theme="night"] #otter2-home .otter2-dash-course .otter2-feature::after{content:"›";margin-left:auto;flex:none;width:34px;height:34px;border-radius:50%;background:#16283F;border:1px solid #334155;display:grid;place-items:center;font-size:19px;font-weight:700;color:#CBD5E1;line-height:1}
html[data-theme="night"] #otter2-home .otter2-dash-retest{background:#0B1220;color:#F1F5F9;border:0}
html[data-theme="night"] #otter2-home .otter2-dash-retest:hover{background:#263449}
html[data-theme="night"] #otter2-home .otter2-dash-skill{background:#1E293B}
html[data-theme="night"] #otter2-home .otter2-dash-track > i{background:#6C4CF1}
html[data-theme="night"] #otter2-home .otter2-dash-skilltile{background:#1E293B;border:1.5px solid transparent;border-radius:16px}
html[data-theme="night"] #otter2-home .otter2-dash-skilltile:hover{background:#2A2350;border-color:#5B21B6}
html[data-theme="night"] #otter2-home .otter2-dash-card[aria-labelledby="otter2DashActTitle"]{display:block}
html[data-theme="night"] #otter2-home .otter2-dash-lvcell.has{background:#2A2350}
html[data-theme="night"] #otter2-home .otter2-dash-lvcell.has b::after{background:#6C4CF1}
html[data-theme="night"] #otter2-home .otter2-dash-side{top:92px}
html[data-theme="night"] #otter2-home .otter2-dash-task .ic.c1{background:#431407}
html[data-theme="night"] #otter2-home .otter2-dash-task .ic.c2{background:#422006}
html[data-theme="night"] #otter2-home .otter2-dash-task .ic.c3{background:#052E16}
html[data-theme="night"] #otter2-home .ttc-exam-panel-chip.is-cur{background:#6C4CF1;border-color:#6C4CF1;color:#ffffff}
html[data-theme="night"] #otter2-home .ttc-exam-panel-trophy{background:#2A2350;border-color:#E4DEFF;border-radius:16px}
html[data-theme="night"] #otter2-home .otter2-dash-step{background:#1E293B;border:1.5px solid transparent;border-radius:16px}
html[data-theme="night"] #otter2-home .otter2-dash-step:hover{background:#2A2350;border-color:#5B21B6}
html[data-theme="night"] #otter2-home .otter2-dash-step.is-cur{background:#6C4CF1;border-color:#6C4CF1;color:#ffffff}
html[data-theme="night"] #otter2-home .otter2-dash-step.is-cur small{color:rgba(255,255,255,.85)}
html[data-theme="night"] #otter2-home .otter2-dash-step.is-cur .learned{color:#FFE9A8}
html[data-theme="night"] #otter2-home .otter2-dash-lesson{border-radius:14px;padding:12px 10px}
html[data-theme="night"] #otter2-home .otter2-dash-lesson:hover{background:#1E293B}
html[data-theme="night"] #otter2-home .otter2-dash-thumb{background:#2A2350}
html[data-theme="night"] #otter2-home .ttc-story-panel-btn{background:#F97316;border-color:#F97316;color:#ffffff;border-radius:999px;box-shadow:none}
}
@media (min-width:1280px){
html[data-theme="night"] #otter2-home .otter2-dash-continue{grid-column:1/-1;grid-row:1}
html[data-theme="night"] #otter2-home .otter2-dash-strip{grid-column:1/-1;grid-row:2}
html[data-theme="night"] #otter2-home .otter2-dash-course{grid-column:1;grid-row:3}
html[data-theme="night"] #otter2-home .ttc-exam-midstack{grid-column:2;grid-row:3}
html[data-theme="night"] #otter2-home .otter2-dash-main > section[aria-labelledby="otter2DashLessonsTitle"]{grid-column:1/-1;grid-row:4}
html[data-theme="night"] #otter2-home .otter2-dash-main > .otter2-dash-road{grid-column:1/-1;grid-row:5}
}
@media (min-width:1021px) and (max-width:1279px){
html[data-theme="night"] #otter2-home .otter2-dash-continue{grid-column:1;grid-row:1}
html[data-theme="night"] #otter2-home .otter2-dash-strip{grid-column:1;grid-row:2}
html[data-theme="night"] #otter2-home .otter2-dash-main > .otter2-dash-road{grid-column:1;grid-row:3}
html[data-theme="night"] #otter2-home .otter2-dash-main > .otter2-dash-course{grid-column:1;grid-row:4}
html[data-theme="night"] #otter2-home .ttc-exam-midstack{grid-column:1;grid-row:5}
html[data-theme="night"] #otter2-home .otter2-dash-main > section[aria-labelledby="otter2DashLessonsTitle"]{grid-column:1/-1;grid-row:6}
}
@media (min-width:900px){
html[data-theme="night"] #ttcMondlySubbar{justify-content:flex-start;gap:4px;padding:6px 8px;margin:2px 0 10px;background:#131F38}
html[data-theme="night"] #ttcMondlySubbar #ttcScriptSwitch{display:none !important}
html[data-theme="night"] #ttcMondlySubbar .ttc-seg-btn{display:flex;flex:1 1 0;align-items:center;justify-content:center;gap:7px;background:transparent;border:1px solid transparent;border-radius:999px;min-height:38px;padding:7px 10px;cursor:pointer;font:inherit;font-size:14px;font-weight:600;color:#CBD5E1}
html[data-theme="night"] #ttcMondlySubbar .ttc-seg-btn::before{font-size:16px;font-weight:700;color:#F1F5F9;line-height:1}
html[data-theme="night"] #ttcMondlySubbar .ttc-seg-simplified::before{content:"\7B80"}
html[data-theme="night"] #ttcMondlySubbar .ttc-seg-traditional::before{content:"\7E41"}
html[data-theme="night"] #ttcMondlySubbar .ttc-seg-btn:hover{background:#0B1220}
html[data-theme="night"] #ttcMondlySubbar .ttc-seg-btn[aria-pressed="true"]{background:#16283F;color:#F1F5F9;font-weight:700;border-color:#334155;box-shadow:0 1px 3px rgba(16,24,40,.10)}
html[data-theme="night"] #ttcMondlySubbar .otter2-theme-slot{flex:1 1 0;justify-content:center;padding:0}
html[data-theme="night"] #ttcMondlySubbar #otter2ChatOnlineBtn{flex:1 1 0;justify-content:center}
}
@media (min-width:1021px){
html[data-theme="night"] #ttcShellSidebar{width:min(1400px, calc(100% - 80px))}
html[data-theme="night"] .otter2-shell{width:min(1400px, calc(100% - 80px))}
html[data-theme="night"] #otter2-home #otter2ExamPanel,html[data-theme="night"] #otter2-home #otter2StoryVideoPanel,html[data-theme="night"] #otter2-home #otter2VideoPanel{display:none !important}
html[data-theme="night"] #ttcShellRailAch{display:none !important}
html[data-theme="night"] #otter2-home .otter2-dash-road{display:none !important}
html[data-theme="night"] #otter2-home .otter2-dash-search{display:none}
html[data-theme="night"] #otter2-home .otter2-dash-course .otter2-feature-row{display:none}
html[data-theme="night"] #otter2-home .otter2-dash-hero p,html[data-theme="night"] #otter2-home .otter2-dash-hero .otter2-dash-hero-cta{display:none}
html[data-theme="night"] #otter2-home .otter2-dash-note{display:none}
html[data-theme="night"] #otter2-home .otter2-dash-tag{display:none}
html[data-theme="night"] #otter2-home .otter2-dash-continue .otter2-dash-ctared{display:none}
html[data-theme="night"] #otter2-home .otter2-dash-skilltile small{display:none}
html[data-theme="night"] #otter2-home{gap:12px}
html[data-theme="night"] #otter2-home .otter2-dash-card{padding:13px 15px}
html[data-theme="night"] #otter2-home .otter2-dash-head{margin-bottom:9px}
html[data-theme="night"] #otter2-home .otter2-dash-head h2{font-size:16px}
html[data-theme="night"] #otter2-home .otter2-dash-main{gap:12px}
html[data-theme="night"] #otter2-home .otter2-dash-side{gap:12px}
html[data-theme="night"] #otter2-home .otter2-dash-continue{padding:0 4px}
html[data-theme="night"] #otter2-home .otter2-dash-continue h3{font-size:clamp(22px, 2.3vw, 29px);color:#94A3B8}
html[data-theme="night"] #otter2-home .otter2-dash-chip{padding:6px 12px;font-size:13px}
html[data-theme="night"] #otter2-home .otter2-dash-hero{padding:12px 14px}
html[data-theme="night"] #otter2-home .otter2-dash-hero h3{font-size:17px;margin:7px 0 0}
html[data-theme="night"] #otter2-home .otter2-dash-prow{margin-top:10px;font-size:12px}
html[data-theme="night"] #otter2-home .otter2-dash-bar{margin-top:5px}
html[data-theme="night"] #otter2-home .ttc-dash-rooms{display:grid;gap:7px;margin-top:10px}
html[data-theme="night"] #otter2-home .ttc-dash-room{display:flex;align-items:center;gap:11px;width:100%;box-sizing:border-box;padding:8px 12px;border:1.5px solid transparent;border-radius:14px;background:#1E293B;color:#F1F5F9;font:inherit;text-align:left;cursor:pointer}
html[data-theme="night"] #otter2-home .ttc-dash-room:hover{background:#2A2350;border-color:#5B21B6}
html[data-theme="night"] #otter2-home .ttc-dash-room-ico{font-size:19px;line-height:1;flex:none}
html[data-theme="night"] #otter2-home .ttc-dash-room-main{flex:1;min-width:0;display:grid}
html[data-theme="night"] #otter2-home .ttc-dash-room-main strong{font-size:13.5px;font-weight:700;color:#F1F5F9}
html[data-theme="night"] #otter2-home .ttc-dash-room-main small{font-size:11.5px;color:#94A3B8;font-weight:600}
html[data-theme="night"] #otter2-home .ttc-dash-room-chev{flex:none;width:28px;height:28px;border-radius:50%;background:#16283F;border:1px solid #334155;display:grid;place-items:center;font-size:17px;font-weight:700;color:#CBD5E1;line-height:1}
html[data-theme="night"] #otter2-home #ttcDashRetest{display:inline-flex;align-items:center;min-height:32px;padding:6px 13px;background:#16283F;border:1px solid #334155;border-radius:999px;font:inherit;font-size:12.5px;font-weight:700;color:#F1F5F9;cursor:pointer}
html[data-theme="night"] #otter2-home #ttcDashRetest:hover{background:#1E293B}
html[data-theme="night"] #otter2-home .otter2-dash-levelbig .lv{font-size:38px}
html[data-theme="night"] #otter2-home .otter2-dash-levelbig .meta{font-size:12px;line-height:1.45}
html[data-theme="night"] #otter2-home .ttc-meta-line{display:block}
html[data-theme="night"] #otter2-home .otter2-dash-skill{margin-top:10px;padding:9px 12px;border-radius:12px}
html[data-theme="night"] #otter2-home .otter2-dash-skill h4{margin-bottom:6px;font-size:13px}
html[data-theme="night"] #otter2-home .otter2-dash-track{height:8px}
html[data-theme="night"] #otter2-home .otter2-dash-skill .cap{margin-top:5px;font-size:12px}
html[data-theme="night"] #otter2-home .otter2-dash-skillgrid{gap:8px;margin-top:9px}
html[data-theme="night"] #otter2-home .otter2-dash-skilltile{display:flex;flex-direction:column;gap:7px;padding:10px 12px;min-height:0}
html[data-theme="night"] #otter2-home .otter2-dash-skilltile strong{font-size:13.5px}
html[data-theme="night"] #otter2-home .ttc-tile-bar{display:block;height:6px;border-radius:99px;background:#263449;overflow:hidden}
html[data-theme="night"] #otter2-home .ttc-tile-bar > i{display:block;height:100%;width:0;background:#475569;border-radius:99px}
html[data-theme="night"] #otter2-home .ttc-tile-pill{display:inline-flex;align-self:flex-end;padding:2px 9px;border-radius:999px;background:#0B1220;color:#94A3B8;font-size:10.5px;font-weight:800;line-height:1.5}
html[data-theme="night"] #otter2-home .otter2-dash-skilltile[data-dash-goto="auto"]{border-style:dashed;border-color:#475569;background:#1E293B}
html[data-theme="night"] #otter2-home .otter2-dash-actnum .n{font-size:36px}
html[data-theme="night"] #otter2-home .otter2-dash-lvgrid{margin-top:10px;gap:6px}
html[data-theme="night"] #otter2-home .otter2-dash-lvcell{padding:5px 4px}
html[data-theme="night"] #otter2-home .otter2-dash-task{padding:7px 2px}
html[data-theme="night"] #otter2-home .otter2-dash-task .ic{width:36px;height:36px;font-size:16px}
html[data-theme="night"] #otter2-home .otter2-dash-cta{margin-top:10px;padding:11px;min-height:44px;font-size:14.5px}
html[data-theme="night"] #otter2-home section[aria-labelledby="otter2DashLessonsTitle"] .otter2-dash-head{flex-wrap:wrap}
html[data-theme="night"] #otter2-home section[aria-labelledby="otter2DashLessonsTitle"] .otter2-dash-sub{order:3;flex:1 1 100%;margin-top:1px}
html[data-theme="night"] #otter2-home #ttcLessonsPlus{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#16283F;border:1px solid #334155;color:#CBD5E1;font-size:18px;font-weight:600;line-height:1;text-decoration:none;order:2;margin-left:auto}
html[data-theme="night"] #otter2-home #ttcLessonsPlus:hover{background:#1E293B}
html[data-theme="night"] #otter2-home .otter2-dash-lesson{grid-template-columns:30px minmax(0,1fr) auto auto;gap:10px;padding:6px 8px;border-radius:10px}
html[data-theme="night"] #otter2-home .otter2-dash-thumb{width:30px;height:30px;font-size:13.5px;background:#2A2350;color:#C4B5FD}
html[data-theme="night"] #otter2-home .otter2-dash-lesson-main strong{font-size:13.5px}
html[data-theme="night"] #otter2-home .otter2-dash-lesson-main small{font-size:12px;margin-top:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-theme="night"] #otter2-home .otter2-dash-status{padding:4px 8px;font-size:11px}
html[data-theme="night"] #otter2-home .otter2-dash-lesson::after{content:"—";padding:4px 9px;border-radius:7px;background:#0B1220;color:#94A3B8;font-size:11px;font-weight:800;line-height:1.35;white-space:nowrap}
}
@media (min-width:1021px){
html[data-theme="night"] #otter2-home{gap:10px}
html[data-theme="night"] #otter2-home .otter2-dash-card{padding:11px 14px}
html[data-theme="night"] #otter2-home .otter2-dash-head{margin-bottom:7px}
html[data-theme="night"] #otter2-home .otter2-dash-main{gap:10px}
html[data-theme="night"] #otter2-home .otter2-dash-side{gap:10px}
html[data-theme="night"] #otter2-home .otter2-dash-continue{padding:0 4px}
html[data-theme="night"] #otter2-home .otter2-dash-continue h3{font-size:clamp(21px, 2.2vw, 27px)}
html[data-theme="night"] #otter2-home .otter2-dash-chip{padding:5px 11px}
html[data-theme="night"] #otter2-home .otter2-dash-hero{padding:10px 12px}
html[data-theme="night"] #otter2-home .otter2-dash-prow{margin-top:8px}
html[data-theme="night"] #otter2-home .ttc-dash-rooms{gap:6px;margin-top:8px}
html[data-theme="night"] #otter2-home .ttc-dash-room{padding:6px 10px}
html[data-theme="night"] #otter2-home .otter2-dash-levelbig .lv{font-size:34px}
html[data-theme="night"] #otter2-home .otter2-dash-skill{margin-top:8px;padding:7px 11px}
html[data-theme="night"] #otter2-home .otter2-dash-skillgrid{gap:7px;margin-top:8px}
html[data-theme="night"] #otter2-home .otter2-dash-skilltile{gap:6px;padding:8px 11px}
html[data-theme="night"] #otter2-home .otter2-dash-skilltile strong{color:#F1F5F9}
html[data-theme="night"] #otter2-home .ttc-tile-bar{height:5px}
html[data-theme="night"] #otter2-home .otter2-dash-actnum .n{font-size:32px}
html[data-theme="night"] #otter2-home .otter2-dash-lvgrid{margin-top:8px;gap:5px}
html[data-theme="night"] #otter2-home .otter2-dash-lvcell{padding:4px}
html[data-theme="night"] #otter2-home .otter2-dash-task{padding:5px 2px}
html[data-theme="night"] #otter2-home .otter2-dash-cta{margin-top:8px;padding:9px;min-height:42px}
html[data-theme="night"] #otter2-home .otter2-dash-lesson{padding:2px 8px}
html[data-theme="night"] #otter2-home .otter2-dash-thumb{width:28px;height:28px;font-size:13px}
}
@media (min-width:900px){
html[data-theme="night"] #ttcMondlySubbar{margin:2px 0 8px}
html[data-theme="night"] #ttcMondlySubbar .ttc-seg-btn{min-height:36px}
}
@media (min-width:1021px){
html[data-theme="night"] #ttcShellRailAch{display:block !important}
html[data-theme="night"] #ttcShellRailAch .otter2-dash-head{margin-bottom:3px}
html[data-theme="night"] #ttcShellRailAchTitle::before{content:"🏆 "}
html[data-theme="night"] #ttcShellRailAch .ttc-shell-ach-num{display:inline-block;vertical-align:middle;font-size:27px}
html[data-theme="night"] #ttcShellRailAch .ttc-shell-ach-lbl{display:inline-block;vertical-align:middle;margin:0 0 0 8px;font-size:12px}
html[data-theme="night"] #ttcShellRailAch #ttcShellAchBtn{display:none !important}
html[data-theme="night"] #ttcShellRailAch #otter2DashAchBtn{display:block;width:100%;box-sizing:border-box;margin-top:9px;padding:9px 12px;min-height:38px;border-radius:12px;background:#F97316;border:1px solid #F97316;color:#ffffff;font:inherit;font-size:14px;font-weight:700;text-align:center;cursor:pointer}
html[data-theme="night"] #ttcShellRailAch #otter2DashAchBtn:hover{background:#EA580C}
}

/* ============================================================
   NIGHT RESCUE (2026-11-25, Cá): các tiêu đề/bề mặt do từng
   module tự hard-code màu sáng, không theo theme đêm — chữ
   navy #16283F chìm trên nền tối hoặc thẻ trắng chói giữa
   trang tối (đã kiểm chứng live từng màn hình).
   ============================================================ */
/* Thanh điều hướng dưới (mobile) + nút tìm kiếm tròn */
html[data-theme="night"] #ttcShellBottomBar{ background:#16283F; border-top-color:#334155; }
html[data-theme="night"] #ttcShellBottomBar .ttc-shell-bitem{ color:#CBD5E1; }
html[data-theme="night"] #ttcShellSidebar .ttc-shell-search{ color:#E2E8F0; }
html[data-theme="night"] #ttcShellSidebar .ttc-shell-search:hover{ color:#FFFFFF; }
/* Trang chủ: panel Luyện thi + Học theo video */
html[data-theme="night"] .ttc-exam-panel-title{ color:#E2E8F0 !important; }
html[data-theme="night"] .ttc-exam-panel-desc{ color:#94A3B8 !important; }
html[data-theme="night"] .ttc-exam-panel-chip{ background:#1E293B; border-color:#334155; color:#E2E8F0; }
html[data-theme="night"] .ttc-exam-panel-chip:hover{ background:#263449; }
html[data-theme="night"] .ttc-exam-panel-last{ background:#1E293B; border-color:#334155; color:#CBD5E1; }
html[data-theme="night"] .ttc-exam-panel-free{ background:#F97316; color:#FFFFFF; box-shadow:none; }
html[data-theme="night"] #otter2ExamPanel::after{ color:rgba(255,255,255,.05); }
html[data-theme="night"] .ttc-story-panel-title{ color:#E2E8F0 !important; }
html[data-theme="night"] .ttc-story-panel-desc{ color:#94A3B8 !important; }
html[data-theme="night"] .ttc-story-panel-free{ background:#F97316; color:#FFFFFF; }
/* Thẻ Bảng thành tích cột phải (tiêu đề có style inline navy) */
html[data-theme="night"] #ttcShellRailAchTitle{ color:#E2E8F0 !important; }
html[data-theme="night"] .ttc-shell-ach-num{ color:#E2E8F0; }
html[data-theme="night"] .ttc-shell-ach-lbl{ color:#94A3B8; }
/* Hộp thoại Truyện kể: tiêu đề */
html[data-theme="night"] .ttc-story-top h2{ color:#E2E8F0 !important; }
/* Chân trang */
html[data-theme="night"] .ttc-footer-h{ color:#E2E8F0 !important; }
html[data-theme="night"] .ttc-footer-desc{ color:#94A3B8; }
html[data-theme="night"] .ttc-footer-brand{ color:#E2E8F0; }
html[data-theme="night"] .ttc-footer-list a, html[data-theme="night"] .ttc-footer-list button{ color:#CBD5E1; }
/* Màn Tra từ vựng: tiêu đề + thẻ kết quả kho HSK */
html[data-theme="night"] #otter2-vocab h1{ color:#E2E8F0 !important; }
html[data-theme="night"] .otter2-dict-kinds-hint{ color:#94A3B8 !important; }
html[data-theme="night"] #otter2DictRoot .otter2-dict-results-title{ color:#E2E8F0; }
html[data-theme="night"] #otter2DictRoot .otter2-dict-card{ background:#1E293B; border-color:#334155; box-shadow:none; }
html[data-theme="night"] #otter2DictRoot .otter2-dict-card .hanzi{ color:#E2E8F0; }
html[data-theme="night"] #otter2DictRoot .otter2-dict-card .meaning{ color:#CBD5E1; }
html[data-theme="night"] #otter2DictRoot .otter2-dict-card .hsk{ background:#0B1220; color:#E2E8F0; border-color:#334155; }
html[data-theme="night"] #otter2DictRoot .otter2-dict-card .type{ background:#431407; color:#FDBA74; border-color:#7C2D12; }
/* Từ điển mở rộng 125k (chi tiết + gợi ý + ví dụ) */
html[data-theme="night"] .o2x-char{ background:#1E293B; border-color:#334155; }
html[data-theme="night"] .o2x-chip{ background:#1E293B; border-color:#334155; color:#E2E8F0; }
html[data-theme="night"] .o2x-chip small{ color:#FDBA74; }
html[data-theme="night"] .o2x-hvline{ color:#CBD5E1; }
html[data-theme="night"] .o2x-char-mn{ color:#CBD5E1; }
html[data-theme="night"] .o2x-sub{ color:#94A3B8; }
html[data-theme="night"] .o2x-note{ color:#94A3B8; }
html[data-theme="night"] .o2x-say{ background:#334155; }
html[data-theme="night"] .o2x-say:hover{ background:#475569; }
/* Màn Luyện tập: tiêu đề + mô tả + 6 nút chức năng + khu đọc */
html[data-theme="night"] .otter2-reading-top h1{ color:#E2E8F0 !important; }
html[data-theme="night"] .otter2-practice-note{ color:#94A3B8 !important; }
html[data-theme="night"] .otter2-practice-actions button{ background:#1E293B; border-color:#334155; color:#E2E8F0; }
html[data-theme="night"] .ttc-reading-section-head h2{ color:#E2E8F0 !important; }
html[data-theme="night"] #ttcReadingSection .ttc-reading-secondary{ background:#1E293B; border-color:#334155; color:#E2E8F0; }
html[data-theme="night"] #ttcReadingLevels button{ background:#1E293B; border-color:#334155; color:#E2E8F0; }
/* Hộp thoại Thi HSK: toàn bộ theo theme đêm */
html[data-theme="night"] #ttcExamOverlay .ttc-exam-card{ background:#16283F; color:#E2E8F0; }
html[data-theme="night"] .ttc-hub-title{ color:#E2E8F0; }
html[data-theme="night"] .ttc-hub-close{ background:#1E293B; color:#E2E8F0; }
html[data-theme="night"] .ttc-exam-level, html[data-theme="night"] .ttc-exam-size, html[data-theme="night"] .ttc-exam-libcell, html[data-theme="night"] .ttc-exam-opt, html[data-theme="night"] .ttc-exam-chip, html[data-theme="night"] .ttc-exam-gcell, html[data-theme="night"] .ttc-exam-tab{ background:#1E293B; border-color:#334155; color:#E2E8F0; }
html[data-theme="night"] .ttc-exam-tab .cnt{ color:#94A3B8; }
html[data-theme="night"] .ttc-exam-level small{ color:#94A3B8; }
html[data-theme="night"] .ttc-exam-stickwrap{ background:#16283F; }
html[data-theme="night"] .ttc-exam-dialog{ background:#16283F; color:#E2E8F0; }
html[data-theme="night"] .ttc-exam-note{ background:#431407; border-color:#7C2D12; color:#FDBA74; }
html[data-theme="night"] .ttc-exam-sub{ color:#94A3B8; }

/* ============================================================
   NIGHT RESCUE 2 (2026-11-25, Cá — sau lượt kiểm chứng live
   bằng hard reload): các mảng trắng/chữ chìm còn sót — đầu
   hộp thoại hub, banner miễn phí + lịch sử + thanh kỹ năng
   trong Thi HSK, thẻ chi tiết từ điển + hộp gợi ý, 6 nút
   chức năng Luyện tập (luật gốc dùng 2 ID nên phải khớp độ
   đặc hiệu), chữ mục chưa chọn trên thanh trên.
   ============================================================ */
html[data-theme="night"] #ttcShellSidebar .ttc-shell-item{ color:#CBD5E1; }
html[data-theme="night"] .ttc-hub-card{ background:#16283F; color:#E2E8F0; }
html[data-theme="night"] .ttc-hub-head{ background:#16283F; border-bottom-color:#334155; }
html[data-theme="night"] .ttc-hub-close{ border-color:#334155; }
html[data-theme="night"] .ttc-exam-free{ background:#1E293B; border-color:#334155; color:#CBD5E1; }
html[data-theme="night"] .ttc-exam-hist-item{ background:#1E293B; border-color:#334155; color:#CBD5E1; }
html[data-theme="night"] .ttc-exam-secbar{ color:#CBD5E1; }
html[data-theme="night"] .ttc-exam-secbar .bar{ background:#334155; }
html[data-theme="night"] .ttc-exam-secbar .val{ color:#E2E8F0; }
html[data-theme="night"] .ttc-exam-timer{ background:#1E293B; color:#E2E8F0; }
html[data-theme="night"] #otter2DictRoot .ttc-dict{ background:#1E293B; border-color:#334155; box-shadow:none; }
html[data-theme="night"] #otter2DictRoot .ttc-dict .han{ color:#E2E8F0; }
html[data-theme="night"] #otter2DictRoot .ttc-dict-sub{ color:#94A3B8; }
html[data-theme="night"] #otter2DictRoot .ttc-sense{ background:#16283F; border-color:#334155; }
html[data-theme="night"] #otter2DictRoot .ttc-pos{ color:#E2E8F0; }
html[data-theme="night"] #otter2DictRoot .ttc-hsk{ background:#0B1220; color:#E2E8F0; border-color:#334155; }
html[data-theme="night"] #otter2DictRoot .ttc-mean{ color:#E2E8F0; }
html[data-theme="night"] #otter2DictRoot .ttc-note{ color:#94A3B8; }
html[data-theme="night"] #otter2DictRoot .ttc-ex{ background:#1E293B; border-left-color:#334155; }
html[data-theme="night"] #otter2DictRoot .ttc-ex b{ color:#E2E8F0; }
html[data-theme="night"] #otter2DictRoot .ttc-ex i{ color:#CBD5E1; }
html[data-theme="night"] #otter2DictRoot .ttc-ex span{ color:#94A3B8; }
html[data-theme="night"] #otter2DictRoot .ttc-rel > span{ color:#94A3B8; }
html[data-theme="night"] #otter2DictRoot .ttc-rel button{ background:#1E293B; color:#E2E8F0; border-color:#334155; }
html[data-theme="night"] #otter2DictRoot .otter2-dict-kinds-row button{ background:#1E293B; color:#E2E8F0; border-color:#334155; }
html[data-theme="night"] #otter2DictRoot .otter2-dict-kinds-row button.is-on{ background:#F97316; color:#fff; border-color:#F97316; }
html[data-theme="night"] #otter2DictRoot .otter2-dict-suggest{ background:#1E293B; border-color:#334155; box-shadow:none; }
html[data-theme="night"] #otter2DictRoot .otter2-dict-suggest button{ color:#E2E8F0; }
html[data-theme="night"] #otter2DictRoot .otter2-dict-suggest button + button{ border-top-color:#334155; }
html[data-theme="night"] #otter2DictRoot .otter2-dict-suggest button:hover{ background:#263449; }
html[data-theme="night"] #otter2DictRoot .ttc-sg-mn{ color:#CBD5E1; }
html[data-theme="night"] #otter2DictRoot .ttc-sg-lv{ background:#0B1220; color:#E2E8F0; }
html[data-theme="night"] #otter2DictRoot .otter2-dict-sg-empty{ color:#94A3B8; }
html[data-theme="night"] #otter2DictRoot .otter2-dict-status{ color:#E2E8F0; }
html[data-theme="night"] #otter2DictRoot .otter2-dict-recent > span{ color:#FDBA74; }
html[data-theme="night"] #otter2DictRoot .otter2-dict-recent button{ background:#1E293B; color:#E2E8F0; border-color:#334155; }
html[data-theme="night"] #otter2PracticeHub #ttcActionFrame .ttc-action-buttons button{ background:#1E293B; border-color:#334155; color:#E2E8F0; }
html[data-theme="night"] #otter2PracticeHub #ttcActionFrame .ttc-action-buttons button.active{ background:#F97316; border-color:#F97316; color:#fff; }
html[data-theme="night"] .otter2-reading-top .otter2-btn{ background:#1E293B !important; border-color:#334155 !important; color:#E2E8F0 !important; }

/* ============================================================
   NIGHT RESCUE 3 (2026-11-25, Cá): 3 điểm sót cuối —
   (1) 6 nút Luyện tập: luật gốc dùng !important (nền trắng/
   chữ #333/-webkit-text-fill-color) nên phải đáp bằng
   !important; (2) nút trong hộp gợi ý tra từ có nền trắng
   riêng che mất nền panel; (3) chữ phụ của từ điển mở rộng
   (o2x) + các bề mặt sáng còn lại trong Thi HSK (câu xem
   lại, nút điều hướng, thanh tiến độ, ô sắp xếp từ, tiêu
   đề h3 đặt màu inline).
   ============================================================ */
html[data-theme="night"] #otter2PracticeHub #ttcActionFrame .ttc-action-buttons button{ background:#1E293B !important; color:#E2E8F0 !important; border-color:#334155 !important; -webkit-text-fill-color:#E2E8F0 !important; box-shadow:none !important; }
html[data-theme="night"] #otter2PracticeHub #ttcActionFrame .ttc-action-buttons button:hover{ background:#263449 !important; color:#E2E8F0 !important; -webkit-text-fill-color:#E2E8F0 !important; }
html[data-theme="night"] #otter2PracticeHub #ttcActionFrame .ttc-action-buttons button.active{ background:#F97316 !important; color:#fff !important; border-color:#F97316 !important; -webkit-text-fill-color:#fff !important; }
html[data-theme="night"] #otter2DictRoot .otter2-dict-suggest button{ background:#1E293B; }
html[data-theme="night"] #otter2DictRoot .ttc-sg-hz{ color:#E2E8F0; }
html[data-theme="night"] .o2x-sub{ color:#94A3B8; }
html[data-theme="night"] .o2x-note{ color:#94A3B8; }
html[data-theme="night"] .o2x-chip small{ color:#E2E8F0; }
html[data-theme="night"] .o2x-secttl{ color:#E2E8F0; }
html[data-theme="night"] .o2x-title{ color:#E2E8F0; }
html[data-theme="night"] .ttc-exam-reviewq{ background:#1E293B; border-color:#334155; color:#CBD5E1; }
html[data-theme="night"] .ttc-exam-btn{ background:#1E293B; border-color:#334155; color:#E2E8F0; }
html[data-theme="night"] .ttc-exam-progress{ background:#334155; }
html[data-theme="night"] .ttc-exam-ord-answer{ background:#1E293B; border-color:#334155; }
html[data-theme="night"] .ttc-exam-modedesc{ color:#CBD5E1; }
html[data-theme="night"] .ttc-exam-card h3{ color:#E2E8F0 !important; }
html[data-theme="night"] .ttc-exam-hist h3{ color:#E2E8F0; }

/* ============================================================
   NIGHT RESCUE 4 (2026-11-25, Cá): màn hình KẾT QUẢ Thi HSK —
   điểm % và tổng điểm (chữ navy chìm trên nền tối), hộp
   "Mức sẵn sàng" 3 mức (nền pastel sáng), huy hiệu ĐẠT/
   CHƯA ĐẠT, đoạn chữ đặt màu inline trong thẻ thi.
   ============================================================ */
html[data-theme="night"] .ttc-exam-score{ color:#F1F5F9; }
html[data-theme="night"] .ttc-exam-total{ color:#E2E8F0; }
html[data-theme="night"] .ttc-exam-passbadge.ok{ background:#052E16; color:#4ADE80; }
html[data-theme="night"] .ttc-exam-passbadge.bad{ background:#3B0A0A; color:#F87171; }
html[data-theme="night"] .ttc-exam-verdict.ready{ background:#052E16; border-color:#14532D; color:#86EFAC; }
html[data-theme="night"] .ttc-exam-verdict.pass{ background:#33270A; border-color:#92400E; color:#FDE68A; }
html[data-theme="night"] .ttc-exam-verdict.fail{ background:#3B0A0A; border-color:#7F1D1D; color:#FCA5A5; }
html[data-theme="night"] .ttc-exam-card p{ color:#94A3B8 !important; }

/* ============================================================
   NIGHT RESCUE 5 (2026-11-25, Cá): hai mảng sót cuối trong
   Thi HSK — ô "💡 Giải thích" ở màn xem lại bài và khối
   "Kết quả theo kỹ năng" + sổ câu sai (module examhome,
   họ ttc-xh) trong hộp thoại thi.
   ============================================================ */
html[data-theme="night"] .ttc-exam-explain{ background:#1E293B; border-color:#334155; color:#CBD5E1; }
html[data-theme="night"] .ttc-xh-h{ color:#E2E8F0; }
html[data-theme="night"] .ttc-xh-note{ color:#94A3B8; }
html[data-theme="night"] .ttc-xh-cell{ background:#1E293B; border-color:#334155; }
html[data-theme="night"] .ttc-xh-cell-name{ color:#E2E8F0; }
html[data-theme="night"] .ttc-xh-cell-num{ color:#E2E8F0; }
html[data-theme="night"] .ttc-xh-cell-sub{ color:#94A3B8; }
html[data-theme="night"] .ttc-xh-witem{ background:#1E293B; border-color:#334155; }
html[data-theme="night"] .ttc-xh-chip{ background:#33270A; color:#FDBA74; }
html[data-theme="night"] .ttc-xh-wstem{ color:#E2E8F0; }
html[data-theme="night"] .ttc-xh-mine{ color:#CBD5E1; }
html[data-theme="night"] .ttc-xh-correct{ color:#4ADE80; }
html[data-theme="night"] .ttc-xh-wexp{ color:#94A3B8; }

/* ============================================================
   NIGHT RESCUE 6 (2026-11-25, Cá): họ ttc-xd của module
   examdeep — 3 nút "Ôn câu sai / Thống kê của tôi / Đề thật"
   trên trang chủ khu thi + toàn bộ bề mặt sáng trong hai
   màn Ôn câu sai và Thống kê (thẻ, hàng, đoạn đọc, chip).
   ============================================================ */
html[data-theme="night"] .ttc-xd-btn{ background:#1E293B; border-color:#334155; color:#E2E8F0; }
html[data-theme="night"] .ttc-xd-h{ color:#E2E8F0; }
html[data-theme="night"] .ttc-xd-lv{ color:#E2E8F0; }
html[data-theme="night"] .ttc-xd-note{ color:#94A3B8; }
html[data-theme="night"] .ttc-xd-trow{ color:#CBD5E1; }
html[data-theme="night"] .ttc-xd-tbar{ background:#334155; }
html[data-theme="night"] .ttc-xd-tnum{ color:#94A3B8; }
html[data-theme="night"] .ttc-xd-chip{ background:#33270A; color:#FDBA74; }
html[data-theme="night"] .ttc-xd-witem{ background:#1E293B; border-color:#334155; }
html[data-theme="night"] .ttc-xd-wpass{ background:#16283F; color:#CBD5E1; }
html[data-theme="night"] .ttc-xd-stat{ background:#1E293B; border-color:#334155; color:#CBD5E1; }
html[data-theme="night"] .ttc-xd-srow{ background:#1E293B; border-color:#334155; color:#CBD5E1; }
html[data-theme="night"] .ttc-xd-wstem{ color:#E2E8F0; }
html[data-theme="night"] .ttc-xd-wsub{ color:#CBD5E1; }
html[data-theme="night"] .ttc-xd-mine{ color:#CBD5E1; }
html[data-theme="night"] .ttc-xd-correct{ color:#4ADE80; }
html[data-theme="night"] .ttc-xd-wexp{ color:#94A3B8; }
html[data-theme="night"] .ttc-xd-analysis{ border-top-color:#334155; }

/* ============================================================
   NIGHT RESCUE 7 (2026-11-25, Cá): con số lớn trong thẻ
   thống kê ttc-xd (chữ navy chìm) + bong bóng thoại của Bé
   (nền trắng chói trên nền tối).
   ============================================================ */
html[data-theme="night"] .ttc-xd-stat b{ color:#F1F5F9; }
html[data-theme="night"] .ttc-xd-stat span{ color:#94A3B8; }
html[data-theme="night"] .ttc-xd-sname{ color:#E2E8F0; }
html[data-theme="night"] .guide-bubble{ background:#1E293B; border-color:#334155; color:#E2E8F0; }
html[data-theme="night"] .guide-bubble-x{ color:#94A3B8; }
