/* ThinQ — hệ thiết kế. Xem docs/05-HE-THIET-KE.md.

   ── NHẬN DIỆN ĐỒNG + SERIF (CSH chốt 18/09/2026) ───────────────────────────
   Trước ngày này token KẾ THỪA nguyên từ phanvietthang.com (xanh #0808FF,
   Space Grotesk) theo luật «không tự đặt bảng màu mới». CSH đưa bản thiết kế
   trang chủ mới — giấy ấm, ĐỒNG, chữ có chân — và chọn áp cho TOÀN app: chỉ
   đổi trang chủ thì bấm sang màn khác lại thành một app khác.

   Đổi ở ĐÂY, một chỗ: mọi màn dùng token nên đổi theo, không màn nào tự tô.

   Tương phản đã đo (WCAG AA ≥ 4,5:1 cho chữ thường):
     chữ trắng trên nút đồng 4,94 · chữ đồng trên giấy 4,66 · chữ phụ 5,51
     tối: chữ đen trên nút vàng 8,01 · chữ phụ 7,16
   VÀNG NHẠT (--vang) chỉ 2,33:1 trên trắng — CHỈ cho đường kẻ trang trí,
   KHÔNG BAO GIỜ cho chữ. */

:root {
  /* ── THINQ WHITE EDITION (CSH chốt 11/11/2026, đặc tả UI/UX v1.0 §3) ──────
     Trắng là chủ đạo, chữ gần-đen, nhấn ĐỎ BURGUNDY. Thay nhận diện đồng +
     serif của 18/09. Tên token gốc (--accent, --text-muted…) GIỮ NGUYÊN và trỏ
     vào token mới, để ~50 màn cũ đổi theo mà không sửa từng màn.

     Tương phản đã tính (WCAG AA ≥ 4,5:1 cho chữ thường):
       xanh hoàng gia #0A0AA8 (bản thiết kế Thang, 11/11/2026) trên trắng 12,9 · chữ trắng trên nút 12,9; --color-primary-bright #1C21FC (điểm nhấn) trên trắng 7,9
       chữ phụ #737373 trên trắng 4,7 — đặc tả ghi #777777 (4,48, TRƯỢT AA
       một chút) nên lấy sắc đậm hơn một nấc, mắt không phân biệt được.
     --color-text-muted #A0A0A0 chỉ 2,6:1 — CHỈ cho biểu tượng, chữ gợi ý
     trong ô nhập và đường kẻ, KHÔNG cho chữ đọc. */
  --color-primary: #0A0AA8;
  --color-primary-hover: #070780;
  --color-primary-bright: #1C21FC;
  --color-tint-lavender: #F1F2FE;
  --color-tint-blue: #EEF5FE;
  --color-tint-cream: #FEF7EA;
  --shadow-soft: 0 10px 30px rgb(40 50 140 / .07), 0 2px 6px rgb(40 50 140 / .04);
  --color-primary-soft: #E8ECFE;

  --color-background: #FFFFFF;
  --color-surface: #FFFFFF;
  --color-surface-secondary: #F7F7F7;

  --color-text-primary: #171717;
  --color-text-secondary: #737373;
  --color-text-muted: #A0A0A0;

  --color-border: #EAEAEA;
  --color-divider: #F0F0F0;

  --color-success: #27865B;
  --color-warning: #C48A32;
  --color-danger: #C34242;

  /* Tên cũ — giữ cho các màn chưa dựng lại. --dong/--vang nay là xanh navy của logo. */
  --dong: var(--color-primary);
  --dong-dam: var(--color-primary-hover);
  --vang: var(--color-primary-soft);

  --neutral-50:#F7F7F7; --neutral-100:#F0F0F0; --neutral-200:#EAEAEA;
  --neutral-400:#A0A0A0; --neutral-600:#737373; --neutral-800:#171717;

  --state-danger:var(--color-danger);

  --bg:var(--color-background); --surface:var(--color-surface);
  --surface-2:var(--color-surface-secondary);
  --line:var(--color-border);
  --text:var(--color-text-primary); --text-strong:var(--color-text-primary);
  --text-muted:var(--color-text-secondary);
  --accent:var(--color-primary); --on-accent:#FFFFFF;
  --tien-do-day:var(--color-primary); --tien-do-rong:var(--color-divider);
  /* Đặc tả §3.5: không lạm dụng bóng. Thẻ phân lớp bằng VIỀN, không bằng bóng. */
  --bong: none;

  /* Thang khoảng cách cũ (bội 8). Đặc tả §3.3 dùng thang 4px với tên trùng
     (--space-1 = 4px) — đổi nghĩa tên cũ sẽ xô lệch ~50 màn cùng lúc, nên
     thang 4px mang tiền tố --sp- và mọi thành phần MỚI dùng nó. */
  --space-1:8px; --space-2:16px; --space-3:24px; --space-4:32px;
  --space-5:48px; --space-6:64px; --space-7:96px;
  --sp-1:4px; --sp-2:8px; --sp-3:12px; --sp-4:16px; --sp-5:20px;
  --sp-6:24px; --sp-8:32px; --sp-10:40px; --sp-12:48px;
  --radius-sm:6px; --radius-md:12px; --radius-lg:18px;

  --motion-micro:180ms; --motion-component:400ms;
  --ease:cubic-bezier(.2,.6,.2,1);

  /* Đặc tả §3.2: sans-serif hiện đại — Inter cho CẢ tiêu đề lẫn thân. Biến
     --font-display giữ tên để màn cũ đổi theo. */
  --font-display:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans",sans-serif;
  --font-body:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans",sans-serif;
  /* Số: Inter với chữ số đều bề ngang — đồng hồ 45:00 không giật. */
  --font-so:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color-scheme: light;
}

/* KHÔNG có chế độ tối tự động (đặc tả §1.2: không dùng giao diện tối làm mặc
   định). Trước 11/11/2026 máy đặt chế độ tối là ThinQ tự chuyển nền than —
   tức là với một nửa số người dùng, giao diện tối CHÍNH LÀ mặc định. */

*,*::before,*::after { box-sizing:border-box; }

/* FIELDSET không mang viền của trình duyệt.
   `.buoc` đã tắt viền từ đầu, nên mọi màn nhiều bước nhìn đúng — và vì thế
   không ai để ý rằng cái quyết định ấy nằm trong MỘT class chứ không phải
   trong luật chung. Ngày 09/09/2026, màn Khai ngày nghỉ dùng `<fieldset
   class="o">` và lộ nguyên khung xám 1px với chữ «Ngày nào» cắt vào viền —
   một kiểu trang trí không có ở bất kỳ màn nào khác trong sản phẩm.
   Cổng soát class không thấy được: lỗi ở đây là THIẾU class, không phải class
   thiếu CSS. Nên đặt luật ở gốc, chỗ mà fieldset kế tiếp cũng thừa hưởng.
   `min-width: 0` đi kèm: fieldset mặc định là `min-width: min-content`, thứ
   làm tràn ngang trong lưới hẹp mà không luật nào trong tệp này nói ra. */
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
/* `legend` mặc định có đệm 2px: «TÂM TRẠNG» thụt vào so với mọi nhãn khác. */
legend { padding: 0; }
html { -webkit-text-size-adjust:100%; }
body {
  margin:0; background:var(--bg); color:var(--text);
  font:400 16px/1.6 var(--font-body);
  /* Số đếm ngược và số đổi tại chỗ phải KHÔNG làm nhảy dòng. Thiếu dòng này,
     đồng hồ 45:00 → 44:59 làm cả dòng giật trái phải mỗi giây — thứ phá cảm
     giác tĩnh của màn Tập trung nhanh hơn bất kỳ lỗi nào khác. */
  font-variant-numeric:tabular-nums;
}

/* Ô nhập KHÔNG BAO GIỜ dưới 16px: Safari iOS tự phóng to trang khi chạm vào ô
   nhỏ hơn thế. Bẫy đã cắn ở Home Care. */
input,textarea,select,button { font:inherit; font-size:max(16px,1em); }

.bo-qua {
  position:absolute; left:-9999px;
  background:var(--accent); color:var(--on-accent);
  padding:var(--space-1) var(--space-2);
}
.bo-qua:focus { left:var(--space-2); top:var(--space-2); z-index:100; }
/* 44px kể cả cho liên kết bỏ qua: nó chỉ hiện khi có tiêu điểm, nhưng lúc
   hiện thì nó là một đích chạm như mọi đích khác. */
.bo-qua { display:inline-flex; align-items:center; min-height:44px; }

:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }

.nut {
  display:inline-block; padding:14px var(--space-3);
  border:1px solid var(--line); border-radius:var(--radius-md);
  text-decoration:none; color:var(--text); background:var(--surface);
  /* 44px là sàn vùng chạm. Không phải gợi ý. */
  min-height:44px; min-width:44px;
  transition:transform var(--motion-micro) var(--ease);
}
.nut--chinh { background:var(--accent); color:var(--on-accent); border-color:transparent; font-weight:500; }
.nut:active { transform:scale(.98); }

.cua {
  /* minmax(0,1fr) ở mọi grid — nhưng ở đây là flow đơn nên chỉ cần chặn tràn.
     Bẫy grid 1fr làm trôi ngang đã cắn ở Home Care và chỉ hiện ra khi đo bằng
     trình duyệt thật. */
  max-width:min(520px,100%);
  margin:0 auto; padding:var(--space-6) var(--space-3);
  min-height:100dvh; display:flex; flex-direction:column; justify-content:center;
}
.cua__dau {
  margin:0 0 var(--space-1); font-size:12px; font-weight:600;
  letter-spacing:.08em; color:var(--text-muted);
}
.cua__ten {
  margin:0 0 var(--space-2); font-family:var(--font-display);
  font-size:clamp(40px,10vw,64px); font-weight:600; line-height:1.05;
  color:var(--text-strong);
}
.cua__giai,.cua__huong { margin:0 0 var(--space-2); color:var(--text-muted); }
.cua__loi {
  margin:0 0 var(--space-3); padding:var(--space-2);
  border-left:3px solid var(--state-danger);
  background:var(--surface); color:var(--text);
}
.cua .nut { align-self:flex-start; margin-top:var(--space-2); }

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration:.01ms !important; transition-duration:.01ms !important; }
}

/* ── PHA 5 ─────────────────────────────────────────────────────────────── */

.man {
  max-width: min(680px, 100%);
  margin: 0 auto;
  /* Đệm dưới chừa chỗ cho thanh điều hướng + vùng an toàn của máy có khuyết. */
  padding: var(--space-4) var(--space-3) calc(84px + env(safe-area-inset-bottom));
}
.man--giua { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; }

.man__chao { margin: 0; color: var(--text-muted); }
.man__ngay { margin: 0 0 var(--space-4); font-size: 12px; font-weight: 600;
             letter-spacing: .08em; color: var(--text-muted); }
.man__tieu-de { margin: 0 0 var(--space-1); font-family: var(--font-display);
                font-size: clamp(30px, 6.5vw, 36px); font-weight: 500; line-height: 1.15;
                letter-spacing: -.01em; }
.man__phu { margin: 0 0 var(--space-3); color: var(--text-muted); font-size: 14px; }

.nhan { margin: 0 0 var(--space-1); font-size: 12px; font-weight: 600;
        letter-spacing: .08em; color: var(--text-muted); text-transform: uppercase; }

/* KHỐI = THẺ (Pha B, 20/09/2026). Bản thiết kế mới vẽ mỗi phần là một thẻ nền
   sáng, bo góc, bóng nhẹ — như Trang chủ. Trước đây các màn cũ ngăn phần bằng
   một đường kẻ mảnh, nên đi từ Trang chủ sang Xây dựng là như sang một app
   khác. Đổi ở ĐÂY là đổi cùng lúc 123 khối trên 50 màn, cùng số đo với
   `.tc-the` để hai loại thẻ không lệch nhau một điểm ảnh nào. */
.khoi { margin: 0 0 var(--space-3); padding: var(--sp-4);
        background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
        box-shadow: var(--bong); }
@media (min-width: 700px) { .khoi { padding: var(--sp-5); } }

.so-lon { margin: 0 0 var(--space-1); font-family: var(--font-so);
          font-size: clamp(48px, 14vw, 72px); font-weight: 500; line-height: 1; }

/* Hàng số: minmax(0,1fr) là BẮT BUỘC — `1fr` trần cho phép ô rộng hơn khung và
   làm trôi ngang cả trang. Bẫy này đã cắn ở Home Care và chỉ hiện ra khi đo
   bằng trình duyệt thật. */
.so-hang { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
           gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.so-hang__so { display: block; font-family: var(--font-so); font-size: 28px; font-weight: 500; }
.so-hang__so--phu { font-size: 18px; color: var(--text-muted); }
.so-hang__nhan { display: block; font-size: 13px; color: var(--text-muted); }

.diem { margin: 0 0 var(--space-2); }
.diem__so { font-family: var(--font-so); font-size: 40px; font-weight: 500; }

.thanh-diem { display: flex; gap: 3px; margin: 0; padding: 0; list-style: none; }
.thanh-diem__khac { flex: var(--rong, 1) 0 0; height: 8px;
                    border-radius: 2px; background: var(--tien-do-rong); }
.thanh-diem__khac--dat { background: var(--tien-do-day); }

.viec-lon { margin: 0 0 var(--space-4); padding: var(--space-3);
            border-left: 3px solid var(--accent); background: var(--surface); }
.viec-lon--xong { border-left-style: dashed; }
.viec-lon--xong .viec-lon__ten { text-decoration: line-through; }
.viec-lon__ten { margin: 0 0 var(--space-1); font-family: var(--font-display);
                 font-size: clamp(22px, 5vw, 28px); font-weight: 500; line-height: 1.25; }
.viec-lon__ly-do { margin: 0 0 var(--space-2); color: var(--text-muted); }
.viec-lon__nut { display: flex; flex-wrap: wrap; gap: var(--space-1); align-items: center; }

.viec { display: flex; align-items: center; gap: var(--space-2); margin: 0 0 4px; }
.viec--phu { margin: 0 0 var(--space-2); padding-left: 56px; }
/* 44px là SÀN vùng chạm, không phải gợi ý.

   ── XONG THÌ PHẢI YÊN, KHÔNG PHẢI HÉT ─────────────────────────────────────
   Bản đầu tô ô đã xong bằng --accent đặc. Nhìn bằng mắt ở 390px thì thấy ngay
   vấn đề: bốn ô xanh bão hoà chồng lên nhau là thứ NỔI NHẤT màn hình — tức
   thứ hét to nhất lại là những việc đã làm xong rồi.
   
   Màu nhấn phải dành cho VIỆC CẦN LÀM TIẾP, không dành cho việc đã qua. Nay
   ô đã xong dùng nền nhạt + dấu ✓ màu nhấn: vẫn phân biệt được rõ, vẫn không
   chỉ bằng màu (§05.6), nhưng thôi tranh chỗ với nút «Bắt đầu tập trung».
   
   Không phép đo nào bắt được lỗi này — nó đạt tương phản, đạt vùng chạm, đạt
   mọi ngưỡng. Chỉ nhìn mới thấy. */
.viec__cham { display: flex; align-items: center; justify-content: center;
              min-width: 44px; min-height: 44px; border: 1px solid var(--line);
              border-radius: var(--radius-md); background: transparent;
              color: var(--text-muted); font-size: 15px; cursor: pointer;
              transition: background var(--motion-micro) var(--ease); }
.viec__cham:hover { background: var(--surface); }
.viec__cham--xong { background: color-mix(in srgb, var(--accent) 10%, transparent);
                    color: var(--accent); border-color: transparent; font-weight: 600; }
/* `min-height` là BẮT BUỘC vì tên kỷ luật là một LIÊN KẾT tới màn chi tiết —
   chữ cao 26px thì vùng chạm cũng 26px. Rig bắt được ngay lúc đổi span thành a. */
.viec__ten { flex: 1 1 auto; min-width: 0; display: flex; align-items: center;
             min-height: 44px; color: inherit; }
a.viec__ten { text-decoration: none; }
a.viec__ten:hover { color: var(--accent); }
/* Việc đã xong lùi cả phần chữ. Danh sách khi đó đọc từ trên xuống là
   "còn phải làm gì", không phải "đã làm được gì". */
.viec__cham--xong + .viec__ten { color: var(--text-muted); }
.viec__ten--xong { text-decoration: line-through; color: var(--text-muted); }

/* Ở khổ rộng, HÀNG việc có trần bề ngang.
   `.viec__ten` giãn hết chỗ, nên thứ đứng cuối hàng — «bỏ qua», mũi tên xếp
   lại, dấu bỏ — bị đẩy ra tận mép. Trên điện thoại đó là đúng: hàng chỉ rộng
   330px. Ở 1440px màn Kỷ luật không chia cột, nên «bỏ qua» nằm cách tên kỷ
   luật gần 1000px và mắt phải quét cả màn hình để nối hai thứ vốn thuộc về
   nhau — với hàng đếm thì tệ hơn, vì bộ đếm còn nằm ở dòng dưới.

   44rem là bề ngang một dòng đọc được, và cũng đủ để hàng dài nhất không vỡ.
   Đặt SAU `.viec` trong tệp: media query không cộng đặc hiệu, viết trước thì
   luật cơ sở khai sau sẽ thắng và khối này im lặng không chạy. */
@media (min-width: 900px) {
  .viec { max-width: 44rem; }

  /* Ô nhập cũng có trần, cùng lý do và cùng con số.
     `.man` rộng tới 1180px ở khổ máy tính, nên một <textarea> chiếm hết bề
     ngang cho ra dòng chữ dài hơn 150 ký tự — quá dài để mắt bắt được đầu dòng
     kế tiếp, và đó lại đúng là những ô người dùng phải VIẾT DÀI: kết ngày, bốn
     câu về chính mình, tổng kết tháng.
     Ô chọn giờ/ngày (`--gio`) tự đặt bề ngang riêng nên không đụng tới. */
  .o__nhap:not(.o__nhap--gio) { max-width: 44rem; }

  /* Hàng lĩnh vực cùng trần, cùng lý do: điểm nằm ở mép phải hàng, và một hàng
     rộng 1120px đặt nó cách tên lĩnh vực gần hết màn hình. */
  .lv { max-width: 44rem; }

  /* Hàng «dự án phục vụ mục tiêu» cũng đặt hành động ở mép phải («Bỏ»), nên
     cùng trần với các hàng khác. */
  .gt__dau { max-width: 44rem; }
}

.nhom { margin: var(--space-2) 0 var(--space-1); font-size: 12px; font-weight: 600;
        letter-spacing: .06em; color: var(--text-muted); }

.o { display: block; margin: 0 0 var(--space-2); }
.o__nhan { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 600;
           letter-spacing: .08em; color: var(--text-muted); }
.o__nhap { width: 100%; padding: 12px; border: 1px solid var(--line);
           border-radius: var(--radius-md); background: var(--bg); color: var(--text); }
.o__nhap--dai { resize: vertical; }
.o__nhap--gio { width: auto; }

.buoc { margin: 0 0 var(--space-4); padding: 0; border: 0; }
/* `display: block` chứ không để mặc theo thẻ.
   `.goi-y` phần lớn nằm trên <p> nên vốn đã xuống dòng — trừ một chỗ dùng
   <span>, và ở đó nó chỉ TRÔNG như xuống dòng vì ô nhập bên trên chiếm trọn
   bề ngang. Ngay khi ô nhập có trần ở khổ máy tính (09/09/2026), chỗ trống
   bên phải mở ra và lời mách nhảy lên nằm cạnh ô, đọc thành một nhãn phụ của
   ô chứ không phải lời giải thích dưới nó.
   Một lớp trình bày không được phụ thuộc vào việc thẻ nào tình cờ bọc nó. */
.goi-y { display: block; margin: 0 0 var(--space-1); font-size: 13px; color: var(--text-muted); }

.chon-hang { display: flex; flex-wrap: wrap; gap: var(--space-1); }
/* Hàng thẻ LỌC (một <nav>) đứng ngay trên danh sách: không có khoảng dưới thì
   thẻ chạm sát đường kẻ của mục đầu tiên (màn Ghi chép). */
nav.chon-hang { margin-bottom: var(--space-3); }
.chon-nut { position: relative; }
.chon-nut input { position: absolute; opacity: 0; }
.chon-nut span { display: inline-flex; align-items: center; justify-content: center;
                 min-width: 56px; min-height: 44px; padding: 0 var(--space-2);
                 border: 1px solid var(--line); border-radius: var(--radius-md);
                 background: var(--surface); }
.chon-nut input:checked + span { background: var(--accent); color: var(--on-accent);
                                 border-color: transparent; }
.chon-nut input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.chon { display: flex; align-items: center; gap: var(--space-1); min-height: 44px; }

.the-ds { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
          gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
/* Hàng có NĂM thẻ (nền của việc xây, nhóm công cụ Thẩm định/Tài chính): lưới
   260px cho bốn cột ở máy tính, và thẻ thứ năm đứng lẻ một mình ở hàng dưới.
   190px cho năm cột; `auto-fit` vẫn giãn nhóm ba–bốn thẻ lấp kín hàng. */
.the-ds--rong { grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); }
/* Ô lưới GIÃN theo hàng, và cái thẻ có viền phải giãn theo nó.
   Lưới đã kéo mọi <li> cùng hàng cao bằng nhau — nhưng thứ người ta NHÌN THẤY
   là cái <a> có viền bên trong, và nó chỉ cao bằng chữ của nó. Ở 1440px, bốn
   thẻ «Nền của việc xây» có mô tả dài ngắn khác nhau nên đáy bốn cái viền so
   le, trong khi các ô lưới đằng sau chúng thì thẳng hàng. */
.the-ds > li { display: flex; }
.the__lien-ket { display: block; flex: 1 1 auto; padding: var(--space-3);
                 border: 1px solid var(--line);
                 border-radius: var(--radius-md); text-decoration: none; color: var(--text); }
.the__lien-ket:hover { border-color: var(--accent); }
.the__ten { display: block; font-family: var(--font-display); font-size: 18px; font-weight: 500; }
.the__so { display: block; font-size: 13px; color: var(--text-muted); }
.the__mo-ta { display: block; margin-top: 4px; font-size: 14px; color: var(--text-muted); }

/* Lưới ngày. Ô "bỏ lỡ" chỉ có VIỀN, KHÔNG tô đỏ: đỏ là ngôn ngữ của lỗi, và
   một ngày người dùng nghỉ không phải là lỗi hệ thống. */
.luoi { display: grid; grid-template-columns: repeat(7, 12px); gap: 4px;
        margin: 0 0 var(--space-2); padding: 0; list-style: none; }
.o-ngay { width: 12px; height: 12px; border-radius: 2px; background: transparent;
          border: 1px solid var(--line); }
.o-ngay--hoan-thanh, .o-ngay--xong { background: var(--tien-do-day); border-color: transparent; }
.o-ngay--bo-qua { background: var(--tien-do-rong); border-color: transparent; }
.o-ngay--bo-lo { border-color: var(--text-muted); }
.o-ngay--chua-toi { border-style: dotted; }
.o-ngay--hom-nay { background: var(--accent); border-color: transparent;
                   outline: 2px solid var(--accent); outline-offset: 2px; }
.o-ngay--khong-doi-hoi { border: 0;
  /* Chú thích ghi «· lịch không đòi hỏi» — nên VẼ dấu chấm ấy. Để ô vô hình
     thì mười tuần trước khi kỷ luật bắt đầu thành một khoảng trắng lớn phía
     trên lưới, trông như trang vỡ (thấy ở màn chi tiết 20/09/2026). */
  background: radial-gradient(circle, var(--line) 0 1.5px, transparent 2px); }

/* Màn Hành trình trên máy tính: các giai đoạn cạnh nhau, ô 22px. Dưới 900px
   giữ nguyên xếp dọc và ô 12px — không đổi một điểm ảnh nào của điện thoại. */
@media (min-width: 900px) {
  .luoi-gd { display: flex; flex-wrap: wrap; gap: var(--space-4); }
  .luoi-gd__muc { flex: 0 0 auto; }
  .luoi--lon { grid-template-columns: repeat(7, 22px); gap: 6px; }
  .luoi--lon .o-ngay { width: 22px; height: 22px; border-radius: 3px; }
}

.nhiet { display: grid; grid-template-rows: repeat(7, 12px); grid-auto-flow: column;
         gap: 4px; margin: 0; padding: 0; list-style: none; overflow-x: auto; }
.nhiet__o { width: 12px; height: 12px; border-radius: 2px; background: var(--tien-do-rong); }
.nhiet__o--0 { background: transparent; border: 1px solid var(--line); }
.nhiet__o--1 { background: color-mix(in srgb, var(--tien-do-day) 25%, transparent); }
.nhiet__o--2 { background: color-mix(in srgb, var(--tien-do-day) 50%, transparent); }
.nhiet__o--3 { background: color-mix(in srgb, var(--tien-do-day) 75%, transparent); }
.nhiet__o--4 { background: var(--tien-do-day); }

.phien { padding: var(--space-1) 0; border-bottom: 1px solid var(--line); }
.phien--khong-tinh { opacity: .55; }
.phien__ten { margin: 0; }
.phien__phu { margin: 0; font-size: 13px; color: var(--text-muted); }

.luat { margin: 0 0 var(--space-2); padding-left: 1.1em; }
.luat-loi { margin: 0 0 var(--space-3); padding: var(--space-2);
            border-left: 3px solid var(--accent); background: var(--surface); }
.de-xuat { margin: var(--space-2) 0 0; padding: var(--space-2);
           border-left: 3px solid var(--accent); background: var(--surface); }
.chenh { color: var(--text-muted); }
.rong { margin: 0 0 var(--space-2); color: var(--text-muted); }
.trich { margin: 0 0 var(--space-2); padding-left: var(--space-2);
         border-left: 2px solid var(--line); color: var(--text-muted); }
.nhac { margin: 0; padding: var(--space-1) var(--space-3);
        background: var(--surface-2); font-size: 14px; }
.loi { margin: 0 0 var(--space-3); padding: var(--space-2);
       border-left: 3px solid var(--state-danger); background: var(--surface); }

/* `.lien-ket` LUÔN là một HÀNH ĐỘNG đứng riêng trong ThinQ, không phải chữ
   trong câu văn — nên nó phải đủ 44px như mọi đích chạm khác.
   WCAG 2.5.8 miễn liên kết nằm trong dòng văn; ThinQ không có cái nào như thế,
   và rig đo bằng trình duyệt thật canh điều đó ở cả bốn bề rộng. */
.lien-ket { display: inline-flex; align-items: center; min-height: 44px;
            color: var(--accent-text, var(--accent)); }
.lien-ket--nut { background: none; border: 0; padding: 0; cursor: pointer;
                 text-decoration: underline; font-size: 14px;
                 min-height: 44px; }
.nut--rong { display: block; text-align: center; }
/* Đỏ CHỈ dùng cho lỗi thật và cho nút xoá. Không dùng cho điểm thấp. */
.nut--nguy { background: var(--state-danger); color: #fff; border-color: transparent; }

.an { position: absolute; width: 1px; height: 1px; overflow: hidden;
      clip-path: inset(50%); white-space: nowrap; }

/* Điều hướng: thanh dưới trên di động, cột trái từ 900px. */
/* SỐ CỘT PHẢI TỰ THEO SỐ MỤC.
   Khai cứng `repeat(5, …)` rồi thêm mục thứ sáu thì thanh vỡ làm hai hàng —
   và không phép đo nào bắt được: không tràn ngang, không vùng chạm nhỏ, chỉ là
   một mục bị cắt chữ và một mục rơi xuống dòng dưới. Chỉ nhìn mới thấy. */
.dh { position: fixed; inset: auto 0 0 0; z-index: 50;
      display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
      background: var(--bg); border-top: 1px solid var(--line);
      padding-bottom: env(safe-area-inset-bottom); }
.dh__muc { display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
           gap: 2px; min-height: 56px; padding: 8px 2px 6px;
           text-decoration: none; color: var(--text-muted); }
/* `flex-start` + lề trên cố định: biểu tượng của bảy mục nằm trên CÙNG MỘT
   đường, dù nhãn một dòng hay hai dòng. Căn giữa (`center`) thì mục nhãn hai
   dòng đẩy biểu tượng của nó lên cao hơn mục bên cạnh — cả thanh gợn sóng.
   Lề ngang 2px để «HÔM NAY» không chạm mép màn hình ở 360px. */
.dh__muc--dang { color: var(--accent); }
.dh__ico { font-size: 16px; line-height: 1; }
/* Từ SÁU mục xuống BỐN (§5), nên nhãn thở ra được: 9px là cỡ chữ của chú
   thích chân ảnh, không phải của thanh điều hướng chính. `HÀNH TRÌNH` vẫn là
   nhãn dài nhất và vẫn là thước đo của cả thanh — ở 360px, bốn cột cho mỗi
   nhãn 90px, thừa cho 11px không giãn chữ. */
/* BẢY mục (18/09/2026): ở 360px mỗi cột còn ~51px, «HÀNH TRÌNH» 11px không
   xuống dòng là tràn. Trên điện thoại nhãn được xuống HAI dòng, căn giữa;
   trên máy tính (thanh bên) trả lại một dòng — xem khối min-width: 900px. */
.dh__nhan { font-size: 10px; font-weight: 600; letter-spacing: 0;
            white-space: normal; text-align: center; line-height: 1.15; }
.dh__ico { font-size: 18px; }

.gn { position: fixed; right: var(--space-2);
      bottom: calc(72px + env(safe-area-inset-bottom)); z-index: 60; }
/* Nút ghi nhanh KHÔNG dùng màu nhấn đặc.
   Nó có mặt ở mọi màn, nên nếu nó đặc thì màu nhấn có mặt ở mọi màn — và một
   màu nhấn ở khắp nơi thì không còn nhấn gì cả. Nền mực, viền nhạt: nhìn thấy
   được, chạm được, nhưng không tranh chỗ với hành động chính của từng màn. */
.gn__nut { display: flex; align-items: center; justify-content: center;
           width: 52px; height: 52px; border-radius: 50%;
           background: var(--text); color: var(--bg);
           font-size: 18px; cursor: pointer; list-style: none;
           box-shadow: 0 2px 10px rgb(0 0 0 / .14); }
.gn__nut::-webkit-details-marker { display: none; }
.gn[open] .gn__form { display: block; }
.gn__form { position: absolute; right: 0; bottom: 68px;
            width: min(320px, calc(100vw - var(--space-4)));
            padding: var(--space-2); border: 1px solid var(--line);
            border-radius: var(--radius-md); background: var(--bg);
            box-shadow: 0 4px 20px rgb(0 0 0 / .18); }
.gn__hang { display: flex; gap: var(--space-1); margin-top: var(--space-1); }
.gn__hang .o__nhap { flex: 1 1 auto; min-width: 0; }

.nhac-hang { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2);
             margin-bottom: var(--space-1); }
.nhac-hang .chon { flex: 1 1 240px; min-width: 0; }
/* Cùng trần 44rem với mọi ô nhập ở máy tính — không có nó ô chọn giờ trôi tít
   sang mép phải, cách tên lời nhắc gần một nghìn điểm ảnh. */
@media (min-width: 900px) { .nhac-hang { max-width: 44rem; } }

/* Màn Tập trung: nền tối sâu BẤT KỂ chế độ sáng/tối của người dùng.
   Đây là một nghi thức, không phải một trang. */
.sau { position: fixed; inset: 0; z-index: 80;
       display: flex; flex-direction: column; align-items: center; justify-content: center;
       gap: var(--space-3); padding: var(--space-4);
       background: #14120F; color: #F3EEE6; text-align: center; }
.sau__viec { margin: 0; font-size: 18px; }
.sau__dong-ho { margin: 0; font-family: var(--font-so);
                font-size: clamp(56px, 20vw, 96px); font-weight: 500; line-height: 1; }
.sau__dong-ho--qua { color: var(--vang); }
.sau__y-dinh { margin: 0; color: var(--neutral-400); }
.sau__nut { display: flex; gap: var(--space-2); }
.sau .nut { background: transparent; color: #F3EEE6; border-color: #34302A; }
.sau .nut--chinh { background: var(--vang); color: #14120F; border-color: transparent; }

@media (min-width: 900px) {
  .dh { inset: 0 auto 0 0; width: 200px; grid-template-columns: 1fr;
        grid-auto-rows: max-content; align-content: start;
        border-top: 0; border-right: 1px solid var(--line); padding-top: var(--space-4); }
  .dh { grid-auto-flow: row; grid-auto-columns: auto; }
  .dh__muc { flex-direction: row; justify-content: flex-start; gap: var(--space-1);
             padding: 0 var(--space-3); min-height: 44px; }
  .dh__nhan { font-size: 12px; letter-spacing: .04em; white-space: nowrap; text-align: left; }
  /* ── BÀN LÀM VIỆC (hướng A, CSH chọn 08/09/2026) ──────────────────────
     Bản cũ đặt `margin: 0 auto` (căn giữa toàn màn) RỒI cộng
     `padding-left: 224px` — hai luật đẩy cùng một chiều, nên trên màn 1920px
     có 320px CHẾT giữa thanh bên và cột chữ, và khoảng chết ấy lớn dần theo
     bề rộng màn hình. Đó là lý do màn càng to trang càng trông rỗng.

     Nay cột nội dung bám ngay sau thanh bên với một lề thoáng, và trần bề
     rộng đủ cho hai cột. */
  .man {
    margin-left: 200px;
    margin-right: 0;
    max-width: 1180px;
    padding: var(--space-5) var(--space-4) var(--space-6);
  }

  /* Nút ghi nhanh: trên điện thoại nó nằm trên thanh điều hướng dưới đáy.
     Trên máy tính không có thanh ấy, nên nếu giữ nguyên `bottom: 72px` thì
     nó lơ lửng giữa khoảng trống — đúng chỗ CSH chỉ ra. */
  .gn { right: var(--space-4); bottom: var(--space-4); }

  /* Dải thông báo của KHUNG TRANG nằm ngoài `.man`, nên không được lề 200px
     như cột chữ — thanh bên cố định đè mất nửa câu («…i liệu của anh.»).
     `body > .nhac` chỉ trúng đúng dải ấy. */
  body > .nhac { margin-left: 200px; }

}

/* ── HAI CỘT: trái LÀM, phải THEO DÕI ───────────────────────────────────
   Ngưỡng 1100px chứ không phải 900px: ở 900–1099px thanh bên đã chiếm 200px,
   phần còn lại chia đôi thì mỗi cột hẹp hơn cả bản điện thoại — chia cột khi
   không đủ chỗ là làm mọi thứ tệ hơn cùng một lúc.

   Dưới ngưỡng này KHÔNG có luật nào cho `.ban`, nên bản điện thoại giữ nguyên
   dòng chảy dọc, không đổi một byte. */
@media (min-width: 1100px) {
  .ban {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: var(--space-5);
    align-items: start;
  }

  .ban__lam, .ban__theo { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }

  /* `margin` của khối con bị `gap` thay thế — để cả hai thì khoảng cách cộng
     dồn và hai cột lệch chân nhau. */
  .ban .khoi, .ban .viec-lon { margin: 0; }

  /* Cột phải là cột THEO DÕI: cho nó một mặt nền để tách khỏi cột làm việc,
     thay vì chỉ có gạch ngang như hiện nay. Một đường kẻ không đủ để mắt hiểu
     đây là hai vùng khác nhau. */
  .ban__theo .khoi {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: var(--space-3);
  }
}

/* Hàng điều hướng trong mục Tôi — ba đích đến, không phải chữ trong câu. */
.hang-di { display: flex; flex-direction: column; gap: 2px; }
.hang-di__muc { display: flex; align-items: center; min-height: 44px;
                padding: 0 var(--space-1); border-radius: var(--radius-md);
                text-decoration: none; color: var(--accent);
                background: none; border: 0; font: inherit; text-align: left;
                cursor: pointer; width: 100%; }
.hang-di__muc:hover { background: var(--surface); }
.hang-di__muc--nut { color: var(--text-muted); }
/* Nhãn nhóm kế tiếp phải thở ra khỏi hàng vừa kết thúc. Không có luật này,
   «TÀI KHOẢN» cách mục cuối của nhóm trên đúng bằng khoảng cách giữa hai mục
   cùng nhóm — nên nó đọc như một mục nữa của nhóm cũ. */
.hang-di + .nhan { margin-top: var(--space-3); }

/* Ở khổ rộng, hàng điều hướng nằm NGANG.
   Xếp dọc là đúng trên điện thoại — mỗi đích đến một vạch ngón cái. Trên máy
   tính thì năm mục ấy kéo dài 220px trong một cột rộng hơn 1100px, và một
   danh sách gạch chân xếp dọc giữa chỗ trống ấy trông như phần chưa dựng
   xong. Vẫn là đích đến 44px, chỉ là đặt cạnh nhau.

   Khối này phải nằm ở ĐÂY, sau `.hang-di`, chứ không nhập chung vào khối
   `@media (min-width: 900px)` ở trên. Media query KHÔNG cộng thêm đặc hiệu:
   `.hang-di` trong đó vẫn chỉ là (0,1,0), nên `.hang-di { flex-direction:
   column }` khai sau nó trong tệp sẽ thắng và luật desktop im lặng không chạy
   — đúng như lần đầu viết nó, hôm 09/09/2026. */
@media (min-width: 900px) {
  /* Khoanh trong `.hang-di`, không nhắm `.hang-di__muc` trần.
     Class ấy còn được mượn ở màn Hành trình cho các MỐC (`.moc-ds__muc`), nơi
     danh sách vẫn phải xếp dọc. Viết trần thì padding mới rò sang đó và mốc đã
     đạt (là <a>) lệch 7px so với mốc chưa tới (là <span>) — hai dòng cùng một
     danh sách, thụt lề khác nhau, không vì lý do gì người đọc thấy được. */
  .hang-di { flex-direction: row; flex-wrap: wrap; gap: var(--space-1); }
  .hang-di .hang-di__muc { width: auto; padding: 0 var(--space-2); }
}

/* Màn mốc — chỗ câu «vì sao» của ngày 1 quay lại. Cho nó chỗ đứng riêng, không
   trộn vào các khối số liệu chung. */
.moc-vi-sao { margin: 0 0 var(--space-4); padding: var(--space-3);
              border-left: 3px solid var(--accent); background: var(--surface); }
.moc-vi-sao__chu { margin: 0; font-family: var(--font-display);
                   font-size: clamp(18px, 4vw, 22px); line-height: 1.45; }

.moc-ds { margin: 0; padding: 0; list-style: none; }
.moc-ds__muc { margin: 0 0 2px; }
.moc-ds__chua { display: flex; align-items: center; min-height: 44px;
                padding: 0 var(--space-1); color: var(--text-muted); }
/* Nhãn dạng CÂU HỎI — giữ chữ thường và cỡ đọc được, khác nhãn ngắn viết hoa. */
.o__nhan--cau { text-transform: none; font-size: 15px; font-weight: 500;
                letter-spacing: 0; color: var(--text); line-height: 1.4; }
/* Cảnh báo vận hành — chỉ hiện khi có chuyện thật. Dùng viền đỏ vì đây ĐÚNG là
   lỗi hệ thống, khác hẳn điểm thấp hay ngày bỏ lỡ (§05.2 luật 2). */
.canh-bao { margin: 0 0 var(--space-4); padding: var(--space-2);
            border-left: 3px solid var(--state-danger); background: var(--surface); }
.canh-bao__dong { margin: 0 0 4px; font-size: 14px; }
.canh-bao__dong:last-child { margin-bottom: 0; }

/* ── XÂY DỰNG ──────────────────────────────────────────────────────────── */
.nhan__phu { font-weight: 400; letter-spacing: 0; text-transform: none; opacity: .7; }

.du-an { padding: var(--space-2) 0; border-bottom: 1px solid var(--line); }
/* Dự án ĐANG LÀM có viền trái — ba cái này là thứ duy nhất đang thật sự chạy,
   và chúng phải phân biệt được với danh sách mong muốn ở dưới. */
.du-an--now { border-left: 3px solid var(--accent); padding-left: var(--space-2); }
.du-an__ten { display: block; font-family: var(--font-display); font-size: 17px;
              font-weight: 500; color: var(--text); text-decoration: none;
              min-height: 44px; display: flex; align-items: center; }
.du-an__ten:hover { color: var(--accent); }
.du-an__phu { margin: 0; font-size: 13px; color: var(--text-muted); }
/* Dự án kẹt im lặng là dự án chết chậm — nói ra ngay ở bảng chính. */
.du-an__ket { margin: 4px 0 0; font-size: 13px; color: var(--text);
              border-left: 2px solid var(--state-danger); padding-left: var(--space-1); }
.du-an__nut { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.du-an__cu { margin: 0 0 2px; font-size: 14px; color: var(--text-muted); }

.tien-do { height: 4px; border-radius: 2px; background: var(--tien-do-rong); margin: 4px 0; }
.tien-do__day { display: block; height: 100%; width: var(--phan-tram, 0);
                border-radius: 2px; background: var(--tien-do-day); }

.them { display: flex; gap: var(--space-1); margin-top: var(--space-2); }
.them .o__nhap { flex: 1 1 auto; min-width: 0; }
/* Nút KHÔNG được co và KHÔNG được vỡ chữ.
   Ở 390px, «Đỗ lại» bị bóp xuống thành hai dòng — «Đỗ» trên, «lại» dưới — nên
   nút cao gấp đôi, rồi `align-items: stretch` kéo luôn ô nhập cao theo nó. Một
   hàng nhập nhanh biến thành hai khối vuông to bằng nhau: nút phụ nặng ngang
   ô chính, và không chỗ nào trong CSS nói ra ý đó. */
.them .nut { flex: 0 0 auto; white-space: nowrap; align-self: start; }

.y-tuong { padding: var(--space-2) 0; border-bottom: 1px solid var(--line); }
.y-tuong__ten { margin: 0; font-size: 15.5px; }
.y-tuong__mo-ta { margin: 2px 0 0; font-size: 14px; color: var(--text-muted); }
.y-tuong__cu { margin: 0 0 6px; font-size: 14px; }
.xet { margin-top: var(--space-1); display: flex; flex-direction: column; gap: var(--space-1); }
.xet__hang { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: var(--space-1); }
.xet__o { display: block; }

.the-nho { font-size: 11px; font-weight: 600; letter-spacing: .04em;
           padding: 2px 6px; border-radius: 3px; border: 1px solid var(--line);
           color: var(--text-muted); }
.the-nho--lam { color: var(--accent); border-color: var(--accent); }

/* Nút nhỏ cho ↑ ↓ ×. Vùng chạm vẫn 44px — chỉ phần NHÌN THẤY là nhỏ, để ba
   nút phụ không tranh chỗ với ô chấm là hành động chính của mỗi hàng. */
.viec__sap { display: flex; gap: 2px; margin-left: auto; }
.nut-nho { display: flex; align-items: center; justify-content: center;
           min-width: 44px; min-height: 44px; padding: 0;
           border: 0; background: transparent; color: var(--text-muted);
           font-size: 16px; line-height: 1; cursor: pointer; border-radius: var(--radius-sm); }
.nut-nho:hover { background: var(--surface); color: var(--text); }

.sau__nhan { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .12em;
             text-transform: uppercase; color: var(--neutral-400); min-height: 16px; }
/* Lúc nghỉ, đồng hồ đổi màu để nhìn một cái là biết đang ở pha nào — không cần
   đọc chữ. Vẫn kèm chữ ở trên, vì trạng thái không bao giờ chỉ bằng màu. */
.sau--nghi .sau__dong-ho { color: var(--vang); }

/* Bảng phím tắt. Chỉ hiện khi bấm `?`. */
.phim { position: fixed; inset: 0; z-index: 90; display: none;
        align-items: center; justify-content: center; padding: var(--space-3);
        background: rgb(0 0 0 / .55); }
.phim[open] { display: flex; }
.phim__hop { max-width: 340px; width: 100%; padding: var(--space-3);
             border-radius: var(--radius-md); background: var(--bg); color: var(--text); }
.phim__hang { display: flex; justify-content: space-between; gap: var(--space-2);
              padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.phim__hang:last-of-type { border-bottom: 0; }
kbd { font-family: var(--font-so); font-size: 12px; padding: 2px 7px;
      border: 1px solid var(--line); border-radius: var(--radius-sm);
      background: var(--surface); }
/* Chỗ trống giữ vị trí cho nút không dùng được. KHÔNG phải nút bị vô hiệu —
   một nút bấm vào không làm gì là một nút nói dối. */
.nut-nho--trong { pointer-events: none; }

/* ── ĐẾM SỐ LƯỢNG ─────────────────────────────────────────────────────────
   Ba nút liền nhau: bớt một · con số (bấm là «đủ») · thêm một. Con số là nút
   chứ không phải nhãn — người xong hết trong một lần không phải bấm + tám
   lần. */
/* Hàng kỷ luật đếm số XUỐNG DÒNG: ba nút đếm rộng ~160px, để chung một hàng
   với tên thì tên bị ép còn ~100px và gãy làm ba dòng — hàng đó trông như
   hỏng bên cạnh những hàng còn lại. Tên và ↑↓ giữ nguyên hàng trên. */
.viec--dem { flex-wrap: wrap; margin-bottom: var(--space-2); }
.viec--dem .viec__ten { order: 1; }
.viec--dem .viec__sap { order: 2; }
.viec--dem .viec__bo-qua { order: 2; margin-left: auto; }
.viec--dem .dem { order: 3; flex-basis: 100%; margin-top: 2px; }
/* Khoảng dưới 16px: bộ đếm xuống dòng mà hàng chỉ cách hàng sau 4px thì nó
   dính vào kỷ luật BÊN DƯỚI, trông như của kỷ luật ấy.
   Trên máy tính dư chỗ: bộ đếm về đúng vị trí ô chấm — đầu hàng, như mọi hàng
   khác — thay vì xuống dòng. */
@media (min-width: 900px) {
  .viec--dem { flex-wrap: nowrap; margin-bottom: 4px; }
  /* -1 chứ không 0: «đứng đầu hàng» phải là một ý định KHAI RA. `order: 0`
     trong hàng mà mọi mục khác đều khai order là đúng hình dạng «quên khai»
     mà rig dò — và rig đã bắt nó ngay lượt đầu. */
  .viec--dem .dem { order: -1; flex-basis: auto; margin-top: 0; }
}

.dem { display: flex; align-items: center; gap: 2px; }
.dem__so { min-width: 72px; min-height: 44px; padding: 0 var(--space-1);
           border: 1px solid var(--line); border-radius: var(--radius-sm);
           background: transparent; color: var(--text);
           font-family: var(--font-so); font-size: 14px; font-variant-numeric: tabular-nums;
           cursor: pointer; }
.dem__so--xong { background: var(--tien-do-day); border-color: transparent; color: var(--on-accent); }
.dem__don-vi { font-family: var(--font-body); font-size: 11px; color: inherit; opacity: .75; }

/* Cột 14 ngày. Độ CAO là thông tin — với số lượng thì một lưới ô vuông vứt bỏ
   đúng cái thông tin đó. Vạch ngang mảnh là mức mục tiêu. */
/* Vạch TRÊN là mục tiêu, vạch dưới là số không. Cột bị cắt trần ở 100% mục
   tiêu, nên mép trên của khung CHÍNH LÀ mức mục tiêu — nhưng chỉ khi có một
   vạch ở đó. Không có vạch thì dòng chú thích đang hứa một thứ không tồn tại
   trên hình. */
.cot { display: flex; align-items: flex-end; gap: 3px; height: 64px;
       margin: var(--space-1) 0 0; padding: 0 0 1px; list-style: none;
       border-top: 1px dashed var(--line);
       border-bottom: 1px solid var(--line); }
.cot__mot { flex: 1 1 0; min-width: 0; border-radius: 2px 2px 0 0;
            background: var(--tien-do-day);
            height: max(2px, calc(var(--cao, 0) * 1%)); }
.cot__mot[style*="--cao:0"] { background: var(--tien-do-rong); }

/* ── LỊCH TUẦN ────────────────────────────────────────────────────────────
   Bảng thật: dữ liệu hai chiều có nhãn ở cả hai cạnh. Cuộn ngang nằm TRONG
   khung riêng để thân trang không bao giờ trôi ngang. */
.lich__di { display: flex; justify-content: space-between; gap: var(--space-1);
            margin-bottom: var(--space-2); }
.nut--trong { visibility: hidden; pointer-events: none; }
.lich__khung { overflow-x: auto; margin: 0 calc(var(--space-2) * -1); padding: 0 var(--space-2); }
.lich { border-collapse: collapse; width: 100%; min-width: 320px; }
.lich th, .lich td { padding: 6px 2px; text-align: center; font-weight: 400; }
.lich thead th { font-size: 11px; color: var(--text-muted); line-height: 1.3; }
.lich__thu { display: block; font-weight: 600; letter-spacing: .04em; }
.lich__ngay { display: block; font-family: var(--font-so); font-size: 10px;
              font-variant-numeric: tabular-nums; }
.lich__nay { color: var(--accent); }
/* `.lich th.lich__ten` chứ không phải `.lich__ten`.
   Luật ngay trên đây — `.lich th, .lich td { text-align: center }` — có đặc
   hiệu (0,1,1), cao hơn một class đơn (0,1,0), nên `text-align: left` viết ở
   đây CHƯA TỪNG có tác dụng. Nó không lộ ra ở các nhãn ngắn, vì thẻ <a> bên
   trong là `display:flex` và tự dồn nội dung về trái; nó chỉ lộ ở hai chỗ:
   nhãn dài vỡ hai dòng («Không lướt vô thức») và ô «Điểm ngày» không có link
   — cả hai căn giữa giữa một cột lẽ ra căn trái. */
.lich th.lich__ten { text-align: left; font-size: 13px; min-width: 108px; max-width: 148px;
             overflow-wrap: anywhere; }
/* Tên kỷ luật là ĐÍCH ĐẾN, và người dùng chạm nó bằng ngón cái. 44px chiều
   cao đẩy cả hàng cao lên — đó là cái giá, và nó cũng làm bảng dễ đọc hơn. */
/* Tiêu đề cột «Kỷ luật» căn trái theo tên bên dưới, nhưng giữ CỠ của hàng
   tiêu đề — `th.lich__ten` phía trên đặt 13px cho tên kỷ luật. */
.lich thead th.lich__ten { font-size: 11px; }
.lich__ten a { display: flex; align-items: center; min-height: 44px;
               color: var(--text); text-decoration: none; }
.lich__ten a:hover { text-decoration: underline; }
.lich__o { font-size: 15px; line-height: 1; color: var(--text-muted); }
.lich__o--xong { color: var(--tien-do-day); }
.lich__o--dang { color: var(--accent); opacity: .7; }
.lich__o--khong-doi-hoi, .lich__o--chua-toi { color: var(--line); }
.lich__o--diem { font-family: var(--font-so); font-size: 13px;
                 font-variant-numeric: tabular-nums; color: var(--text); }
.lich tfoot td, .lich tfoot th { border-top: 1px solid var(--line); padding-top: var(--space-1); }

/* Ô «đang dở» trên lưới 12 tuần: nửa đầy, cùng ngôn ngữ với ◐. */
.o-ngay--dang { background: linear-gradient(180deg, transparent 50%, var(--tien-do-day) 50%);
                border-color: var(--tien-do-day); }

/* ── MẪU NGÀY ─────────────────────────────────────────────────────────── */
/* Nút XUỐNG DÒNG riêng thay vì đứng cạnh danh sách việc: đặt cạnh nhau thì
   «Dùng hôm nay» gãy làm hai dòng và bóp danh sách còn nửa bề ngang trên điện
   thoại — mà danh sách chính là thứ người ta đọc để chọn mẫu. */
.mau { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1);
       padding: var(--space-2) 0; border-bottom: 1px solid var(--line); }
.mau__than { flex: 1 1 100%; min-width: 0; }
/* Mẫu cuối bỏ vạch: khối bên dưới đã có vạch riêng, và hai vạch sát nhau
   trông như một lỗi kết xuất. */
.mau:last-of-type { border-bottom: 0; }
.mau__ten { margin: 0; font-family: var(--font-display); font-weight: 600; }
.mau__viec { margin: 4px 0 0; padding-left: 1.2em; color: var(--text-muted); font-size: 13px; }
.mau__nut { display: flex; align-items: center; gap: var(--space-1); }
/* Trong biểu mẫu, danh sách việc là phần XEM TRƯỚC, nên nó cần thở tách khỏi
   ô nhập ngay dưới. Trong thẻ mẫu thì không — ở đó nó là nội dung chính. */
.bieu-mau .mau__viec { margin-bottom: var(--space-2); }

.lien-ket-hang { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-1) 0 0; }

/* Tiếng nền: nút phụ, đặt cách xa hai nút chính để không bấm nhầm giữa phiên. */
.sau__am { margin-top: var(--space-4); min-height: 44px; padding: 0 var(--space-2);
           border: 1px solid rgb(255 255 255 / .22); border-radius: var(--radius-sm);
           background: transparent; color: var(--neutral-400);
           font-size: 13px; cursor: pointer; }
.sau__am[aria-pressed="true"] { color: #FFFFFF; border-color: rgb(255 255 255 / .5); }

/* ── NHẮC ─────────────────────────────────────────────────────────────── */
.cong-tac { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1);
            padding: var(--space-1) 0; border-bottom: 1px solid var(--line); }
.cong-tac:last-of-type { border-bottom: 0; }
.cong-tac__nhan { flex: 1 1 200px; display: flex; align-items: center; gap: var(--space-1);
                  min-height: 44px; cursor: pointer; }
.cong-tac input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--accent); }
.o__nhap--hep { width: auto; min-width: 96px; flex: 0 0 auto; }

/* Lựa chọn kiểu nút tròn — vùng chạm cả dòng, không chỉ cái chấm. */
.chon { display: flex; align-items: center; gap: var(--space-1);
        min-height: 44px; cursor: pointer; }
.chon input[type="radio"] { width: 20px; height: 20px; accent-color: var(--accent); }

/* Nhắc luật ngay tại ô chấm — nhỏ hơn hẳn bản ở màn chi tiết, vì ở đây nó nằm
   giữa một danh sách chứ không phải đứng một mình. Vẫn không màu đỏ (§05.2). */
.luat-loi--nho { margin: 0 0 var(--space-1); padding: 4px 0 4px 56px;
                 font-size: 12px; }

/* Kỷ luật đang tạm ngưng: mờ đi, nhưng KHÔNG biến mất. Biến mất thì người dùng
   tưởng mình đã xoá nhầm nó. */
.viec--ngung .viec__ten, .viec--ngung .viec__cham { opacity: .45; }

.ghi-chu { margin: var(--space-2) 0 0; padding: 0; list-style: none; }
.ghi-chu li { display: flex; flex-wrap: wrap; gap: var(--space-1);
              padding: var(--space-1) 0; border-bottom: 1px solid var(--line);
              font-size: 13px; }
.ghi-chu li:last-child { border-bottom: 0; }
.ghi-chu__ngay { font-family: var(--font-so); font-variant-numeric: tabular-nums;
                 color: var(--text-muted); min-width: 44px; }
.ghi-chu__the { font-size: 11px; font-weight: 600; letter-spacing: .04em;
                color: var(--text-muted); }
.ghi-chu__chu { flex: 1 1 100%; overflow-wrap: anywhere; }

/* Dải tiến độ trên màn Hôm nay (hướng A). Nền phẳng như các khối cột trái —
   nó thuộc về vùng LÀM VIỆC, không phải vùng theo dõi bên phải. */

/* ── ĐIỆN THOẠI: hướng A áp cho cả màn hẹp ─────────────────────────────────
   Bản đầu của hướng A chỉ đụng vào ≥900px, kèm lời hứa «bản điện thoại giữ
   nguyên». Lời hứa ấy đúng về kỹ thuật và SAI về sản phẩm: ThinQ được mở lúc
   6 giờ sáng bằng ĐIỆN THOẠI, nên «giữ nguyên» có nghĩa là sửa cả buổi rồi mở
   app lên thấy y hệt hôm qua. Đã cắn thật 08/09/2026.

   Màn hẹp không kê được hai cột, nên ranh giới LÀM ↔ THEO DÕI của hướng A ở
   đây do VỊ TRÍ và CÁCH VẼ đảm nhiệm chứ không do cột:
   · mở đầu bằng «tôi đang ở đâu»      (dải hành trình),
   · thân trang là những thứ PHẢI LÀM  (vẽ phẳng, ngăn nhau bằng chỉ kẻ),
   · đóng lại bằng «hôm nay được mấy điểm».
   Hai đầu là THẺ có nền và viền: nhìn một cái là biết chúng khác LOẠI với thân
   trang — điều mà sáu khối vẽ giống hệt nhau trước đây không nói được.

   display:contents làm phẳng ban/ban__lam/ban__theo để `order` xếp lại được
   trong khi DOM không đổi một dòng, nên bản máy tính không mất gì. Mọi thứ
   khoá trong .man--hom-nay: .man là vỏ của MỌI màn, đổi nó thành flex ở đây là
   đổi khoảng cách trên hai chục màn không liên quan. */
@media (max-width: 1099.98px) {
  .man--hom-nay { display: flex; flex-direction: column; }
  .man--hom-nay .ban,
  .man--hom-nay .ban__lam,
  .man--hom-nay .ban__theo { display: contents; }

  /* Mọi con đều phải khai `order`: thiếu một cái là nó rơi về 0 và nhảy lên
     đầu trang. */
  .man--hom-nay .man__chao       { order: 1; }
  .man--hom-nay .man__ngay       { order: 2; margin-bottom: var(--space-2); }
  .man--hom-nay .huong-ngay      { order: 3; }
  .man--hom-nay .khoi--tien-do   { order: 4; }
  .man--hom-nay .viec-lon        { order: 5; }
  .man--hom-nay .khoi--nhip      { order: 6; }
  .man--hom-nay .khoi--big3      { order: 7; }
  .man--hom-nay .khoi--goi-y     { order: 8; }
  .man--hom-nay .khoi--tap-trung { order: 9; }
  .man--hom-nay .khoi--ky-luat   { order: 10; }
  .man--hom-nay .khoi--dang-xay  { order: 11; }
  .man--hom-nay .khoi--diem      { order: 12; }
  /* Nút Kết ngày là con TRỰC TIẾP của .man, không nằm trong .ban — và tôi đã
     quên nó ở lượt đầu, đúng cái bẫy mà chú thích ngay trên đây cảnh báo. Nó
     chỉ hiện sau 18:00, nên ảnh chụp lúc chiều không có nó và bản vá trông
     như đã xong. */
  .man--hom-nay .ket-ngay        { order: 13; }

  /* Hai THẺ ở hai đầu — không phải chỉ kẻ trên như khối thân trang. */
  .man--hom-nay .khoi--tien-do,
  .man--hom-nay .khoi--diem {
    margin: 0 0 var(--space-3); padding: var(--space-2) var(--space-3);
    border: 1px solid var(--line); border-radius: 10px;
    background: var(--surface);
  }
  .man--hom-nay .khoi--diem { margin-bottom: 0; }
  .man--hom-nay .viec-lon { margin-top: var(--space-1); }

  /* Nhãn và điểm nằm CÙNG một hàng. Con số 40px chiếm trọn một dòng giữa
     trang là thứ đang tranh chỗ với việc lớn nhất trong ngày, mà nó chỉ là
     bản tổng kết — không ai làm gì được với nó. */
  .man--hom-nay .khoi--diem { display: flex; flex-wrap: wrap;
                              align-items: baseline; column-gap: var(--space-2); }
  .man--hom-nay .khoi--diem .nhan { margin: 0; }
  .man--hom-nay .khoi--diem .diem { margin: 0 0 0 auto; }
  .man--hom-nay .khoi--diem .diem__so { font-size: 24px; }
  .man--hom-nay .khoi--diem .thanh-diem { flex: 1 0 100%; margin-top: var(--space-2); }

  .man--hom-nay .khoi--tien-do .nhom { margin-top: 0; }
}

.tien-do__moc { margin: var(--space-2) 0 0; font-size: 13px; color: var(--text-muted); }
.tien-do__moc b { color: var(--text); font-weight: 600; }

/* Dòng số liệu ngắn trong các khối của Today (§63 — Today là Home).
   Không dùng cỡ chữ lớn như khối Điểm: đây là thông tin BỔ TRỢ, và nếu mọi
   con số trên Today đều to thì không con số nào nổi lên nữa. */
.tt-dong { margin: 0 0 var(--space-2); font-size: 15px; color: var(--text-muted); }
.tt-dong b { color: var(--text); font-weight: 600; }
.tt-dong:last-child { margin-bottom: 0; }

/* ── MÀN MỞ NGÀY (hom-nay/chon-viec-lon) ───────────────────────────────────
   Màn được mở NHIỀU NHẤT trong cả sản phẩm: mỗi sáng, trước mọi thứ khác — và
   là màn duy nhất chưa từng có một dòng kiểu nào. `.hoi` và `.hoi__cau` không
   tồn tại ở đây, nên câu hỏi mở ngày hiện ra bằng cỡ <h1> mặc định của trình
   duyệt: bốn dòng chữ đen khổng lồ trên điện thoại.

   Không phép kiểm nào bắt được: cổng [10] soát TOKEN có được khai không, chứ
   không soát một class dùng trong blade có mặt trong CSS hay không. Một class
   không tồn tại thì trình duyệt bỏ qua lặng lẽ — đúng loại hỏng câm.

   Đã cắn 08/09/2026: chủ máy nhìn màn này mỗi ngày trong khi cả hai vòng chỉnh
   trang đều đổ vào màn NẰM SAU nó. */
.man--mo-ngay { max-width: 40rem; }

.hoi { display: flex; flex-direction: column; gap: var(--space-3); }
.hoi .o { margin: 0; }
.hoi .nut { align-self: flex-start; }

.hoi__cau { margin: var(--space-2) 0 0; font-family: var(--font-display);
            font-size: 26px; line-height: 1.25; font-weight: 600;
            letter-spacing: -.01em; text-wrap: balance; }
@media (min-width: 700px) { .hoi__cau { font-size: 32px; } }

.o__mach { display: block; margin-top: 6px; font-size: 13px; color: var(--text-muted); }
/* Dòng mách giải thích Ô NGAY TRÊN nó. Thứ đi sau phải thở ra khỏi cặp ấy,
   không thì nhãn của ô kế tiếp dính vào lời giải thích của ô trước và người
   đọc gộp cả ba dòng thành một khối. */
.o__mach + .o { margin-top: var(--space-2); }

/* KHÔNG tô đậm nhãn của `.buoc` để tách nó khỏi nhãn ô con.
   Thử rồi và hỏng: thứ bậc trong biểu mẫu ThinQ không đi theo loại thẻ. Ở màn
   Tập trung, `.buoc` đúng là cấp cha của một `.o` lồng bên trong — nhưng ở màn
   Kết ngày, `.buoc` (TÂM TRẠNG) và `.o` (HÔM NAY BẠN XÂY GÌ?) là hai câu hỏi
   NGANG HÀNG, chỉ khác nhau vì một cái cần <fieldset> để nhóm nút chọn. Tô màu
   theo thẻ thì màn ấy có hai câu ngang hàng khác màu nhau, không vì lý do gì
   người đọc thấy được.
   Chỗ thật sự thiếu ở màn Tập trung là KHOẢNG THỞ, và `.o__mach + .o` ở trên
   đã trả nó về. */

/* Gợi ý mở ngày. Xếp DỌC chứ không thành hàng thẻ ngang: nội dung là tên việc
   có thật, dài ngắn không đoán trước được, và một hàng ngang các thẻ dài khác
   nhau thì hoặc là cắt chữ, hoặc là trôi ngang. */
.goi__nhan { margin: 0 0 var(--space-1); font-size: 12px; font-weight: 600;
             letter-spacing: .08em; color: var(--text-muted); text-transform: uppercase; }
.goi__hang { display: flex; flex-direction: column; gap: var(--space-1); }

.the-goi { display: flex; flex-direction: column; gap: 2px; width: 100%;
           min-height: 44px; padding: 10px var(--space-2);
           border: 1px solid var(--line); border-radius: var(--radius-md);
           background: var(--surface); color: var(--text);
           font: inherit; text-align: left; cursor: pointer;
           transition: border-color var(--motion-micro) var(--ease); }
.the-goi:hover { border-color: var(--accent); }
.the-goi__chu { font-size: 15px; overflow-wrap: anywhere; }
.the-goi__nguon { font-size: 12px; font-weight: 600; letter-spacing: .04em;
                  color: var(--text-muted); text-transform: uppercase; }

/* Ba bước của ngày, hiện ở màn mở ngày ĐẦU TIÊN. Số thứ tự ở đây mang thông
   tin thật — chúng là trình tự trong ngày, không phải trang trí. */
.buoc-nho { margin: 0; padding-left: 1.4em; }
.buoc-nho li { margin-bottom: 6px; font-size: 14px; color: var(--text-muted); }
.buoc-nho li:last-child { margin-bottom: 0; }
.buoc-nho b { color: var(--text); font-weight: 600; }

/* North Star: câu hiện ra sau khi kết một ngày ĐẠT ngưỡng. Ngưỡng cố ý khó,
   nên câu này hiếm — và một câu hiếm mà vẽ như mọi câu khác thì mất hết sức
   nặng. Nó không phải thông báo, nó là phần thưởng.

   Cổng [13] tìm ra: `.co-y-nghia` được dùng từ đầu mà chưa bao giờ được vẽ. */
.co-y-nghia { margin: var(--space-2) 0 var(--space-3); padding: var(--space-2) var(--space-3);
              border-left: 3px solid var(--accent); background: var(--surface);
              font-family: var(--font-display); font-size: 18px; font-weight: 600;
              color: var(--text); text-wrap: balance; }

/* HƯỚNG CỦA NGÀY (§6) — câu người dùng tự viết cho chính mình sáng nay.

   Vẽ KHÁC mọi khối khác và nhẹ hơn tất cả: nó không phải dữ liệu ThinQ tính
   ra, không phải việc phải làm, không có nút nào. Nó là lời tự nhủ, nên chỉ
   cần một vạch mảnh và chữ nghiêng — to hơn thế là biến lời tự nhủ thành khẩu
   hiệu, mà khẩu hiệu thì đọc hai hôm là hết nhìn. */
.huong-ngay { margin: 0 0 var(--space-3); padding-left: var(--space-2);
              border-left: 2px solid var(--line);
              font-size: 16px; font-style: italic; color: var(--text);
              text-wrap: balance; }

/* Nút kết ngày, cuối màn Hôm nay. Cần lề trên vì nó đứng sau một khối có nền,
   và hai mặt phẳng dính nhau thì không đọc ra là hai việc khác nhau. */
.ket-ngay { margin-top: var(--space-3); }

/* ── LĨNH VỰC CUỘC SỐNG · BÁNH XE CÂN BẰNG (§12–13) ────────────────────────
   Thanh ngang, không phải biểu đồ ra-đa: ra-đa mười trục ở 390px thì nhãn
   chồng lên nhau và không đọc được cái nào. */
.khoi--can-bang { border-top: 0; padding: var(--space-3);
                  border: 1px solid var(--line); border-radius: var(--radius-md);
                  background: var(--surface); }

.lv { margin: 0 0 var(--space-3); }
.lv:last-child { margin-bottom: 0; }

.lv__dau { display: flex; align-items: baseline; gap: var(--space-1);
           margin: 0 0 6px; }
.lv__ten { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
/* Điểm đẩy sang phải và dùng phông SỐ: cột số thẳng hàng thì mắt so sánh được
   cả bảng trong một lượt nhìn, đó là toàn bộ mục đích của màn này. */
.lv__diem { margin-left: auto; font-family: var(--font-so);
            font-variant-numeric: tabular-nums; font-size: 18px; font-weight: 500; }
.lv__xu { flex: 0 0 auto; font-size: 11px; font-weight: 600; letter-spacing: .04em;
          color: var(--text-muted); text-transform: uppercase; }
.lv__xu--len { color: var(--accent); }
.lv__xu--xuong { color: var(--state-danger); }

.thanh-lv { height: 8px; margin: 0 0 var(--space-1);
            border-radius: 2px; background: var(--tien-do-rong); overflow: hidden; }
.thanh-lv__day { display: block; width: var(--phan-tram, 0%); height: 100%;
                 border-radius: 2px; background: var(--tien-do-day); }

.lv__cham { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1); }

/* Máy tính: ô chọn điểm đứng CẠNH thanh thay vì xuống một tầng riêng — mười
   lĩnh vực × ba tầng từng dài gần 1300px trong khi bên phải bỏ trống. Và thanh
   tiến độ nào cũng dừng ở 44rem: thanh mục tiêu từng trải hết 1116px, dài gấp
   rưỡi thanh lĩnh vực ngay màn bên cạnh. */
@media (min-width: 900px) {
  /* MỘT hàng mỗi lĩnh vực: tên + điểm · thanh · ô chấm. Mười lĩnh vực từ
     ~1300px xuống ~600px, và cột thanh thẳng hàng nên so được cả bảng. */
  .lv { display: grid; grid-template-columns: minmax(0, 16rem) minmax(0, 1fr) auto;
        column-gap: var(--space-3); align-items: center; }
  .lv__dau { margin: 0; }
  .lv .thanh-lv { margin: 0; }
  .thanh-lv { max-width: 44rem; }
}

/* Sắp xếp & ngưng gom vào một khối đóng được: mười lĩnh vực × ba nút là ba
   mươi vùng chạm, và chúng che mất việc DUY NHẤT màn này cần người dùng làm. */
.sap { margin: 0 0 var(--space-4); }
/* `display: flex` trên <summary> XOÁ dấu tam giác mặc định của trình duyệt:
   Chrome vẽ nó qua `display: list-item`, và đổi display là mất marker. Kết quả
   là «Sửa mục tiêu» và «Sắp xếp thứ tự» chỉ còn là hai dòng chữ đậm màu xám —
   không viền, không gạch chân, không mũi tên — nên không gì nói rằng chúng mở
   ra được. Người dùng không mở thứ họ không biết là mở được.
   Vẽ lại dấu ấy bằng `::before`, và đổi chiều khi đã mở. */
.sap__mo { min-height: 44px; display: flex; align-items: center;
           font-size: 14px; font-weight: 600; color: var(--text-muted);
           cursor: pointer; list-style: none; }
.sap__mo::-webkit-details-marker { display: none; }
.sap__mo::before { content: '▸'; margin-right: 6px; font-size: 12px; }
.sap[open] > .sap__mo::before { content: '▾'; }
.sap__hang { display: flex; align-items: center; gap: var(--space-1);
             padding: var(--space-1) 0; border-bottom: 1px solid var(--line); }
.sap__hang:last-of-type { border-bottom: 0; }
.sap__ten { flex: 1 1 auto; font-size: 14px; overflow-wrap: anywhere; }

/* Khối HỎI mở ngày, khi nó nằm TRONG màn Hôm nay (chưa chọn việc lớn).
   Bỏ nền và vạch nhấn của `.viec-lon`: ở trạng thái này nó không phải một thẻ
   thông tin để nhìn, nó là chỗ để gõ — và một biểu mẫu đặt trong hộp màu trông
   như một quảng cáo. Vẫn giữ nguyên vị trí đầu màn, tức vẫn là thứ to nhất và
   đầu tiên; chỉ không còn khoá cửa. */
.viec-lon--hoi { padding: 0; border-left: 0; background: none; }
.viec-lon--hoi .hoi__cau { margin-top: 0; }

/* ── GIÁ TRỊ (§11) ─────────────────────────────────────────────────────────
   Tên đậm, nghĩa nhạt ngay dưới: cặp này luôn đọc cùng nhau. Tách nghĩa sang
   một màn chi tiết là bảo đảm nó không bao giờ được đọc, mà nghĩa mới là phần
   dùng được — «Tự do» trần trụi thì không đối chiếu được với quyết định nào. */
.gt { margin: 0 0 var(--space-3); }
.gt:last-of-type { margin-bottom: var(--space-3); }
.gt__dau { display: flex; align-items: baseline; gap: var(--space-2); }
.gt__ten { flex: 1 1 auto; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.gt__nghia { margin: 2px 0 0; font-size: 14px; color: var(--text-muted); }
.gt__them { margin-top: var(--space-3); padding-top: var(--space-3);
            border-top: 1px solid var(--line); }

/* ── MỤC TIÊU (§15) ────────────────────────────────────────────────────────
   Thẻ phẳng, ngăn nhau bằng chỉ kẻ: một danh sách mục tiêu là thứ để LƯỚT
   xuống tìm đúng cái mình cần, không phải một bộ thẻ để ngắm. */
.mt { margin: 0 0 var(--space-3); padding-bottom: var(--space-3);
      border-bottom: 1px solid var(--line); }
.mt:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.mt__ten { display: block; margin-bottom: 4px; font-family: var(--font-display);
           font-size: 17px; font-weight: 600; color: var(--text); }
.mt__dong { margin: 0 0 var(--space-1); font-size: 13px; color: var(--text-muted); }
.mt__phu { margin: 6px 0 0; font-size: 13px; color: var(--text-muted); }

/* Trạng thái là CHỮ có nền, không phải chấm màu: chấm màu bắt người ta học
   bảng chú giải, và không ai học. */
.mt__tt { display: inline-block; padding: 1px 8px; border-radius: 999px;
          background: var(--surface-2); font-size: 12px; font-weight: 600;
          color: var(--text-muted); }
.mt__tt--dang_chay { background: var(--accent); color: var(--on-accent); }
.mt__tt--xong { background: var(--tien-do-day); color: var(--on-accent); }
.mt--qua-han .mt__ten { color: var(--state-danger); }

/* ── KỸ NĂNG (§32) ─────────────────────────────────────────────────────────
   Thang NĂM Ô, không phải thanh phần trăm: khoảng cách giữa «trung cấp» và
   «nâng cao» không phải 25% của cái gì cả, nên vẽ nó thành phần trăm là vẽ
   một con số không tồn tại. */
.kn { margin: 0 0 var(--space-3); }
.kn:last-child { margin-bottom: 0; }
/* Cùng trần 44rem: không có nó mức kỹ năng nằm cách tên hơn nghìn điểm ảnh. */
@media (min-width: 900px) { .kn { max-width: 44rem; } }
.kn__dau { display: flex; align-items: baseline; gap: var(--space-2); margin: 0 0 6px; }
.kn__ten { flex: 1 1 auto; font-size: 16px; font-weight: 600; color: var(--text);
           overflow-wrap: anywhere; }
.kn__muc { font-size: 12px; font-weight: 600; letter-spacing: .04em;
           color: var(--text-muted); text-transform: uppercase; }

.bac { display: flex; gap: 4px; margin: 0 0 var(--space-1); padding: 0; list-style: none; }
.bac__o { flex: 1 1 0; height: 6px; border-radius: 2px; background: var(--tien-do-rong); }
.bac__o--dat { background: var(--tien-do-day); }

/* Việc học (§33): nhãn loại và tên việc.
   Nhãn có lề phải thật — trước đó nó dùng chung class với thẻ gợi ý, vốn là
   khối xếp dọc nên không cần lề ngang, và ở đây chữ dính liền nhau thành
   «SÁCHRefactoring UI». Ảnh chụp bắt được; không phép đo nào bắt được. */
.vh__loai { display: inline-block; margin-right: var(--space-1);
            font-size: 11px; font-weight: 600; letter-spacing: .04em;
            color: var(--text-muted); text-transform: uppercase;
            white-space: nowrap; }
.vh__chu--xong { color: var(--text-muted); text-decoration: line-through; }

/* ── GHI CHÉP (§34) ────────────────────────────────────────────────────────
   Giữ nguyên xuống dòng người viết: một ghi chép bị ép thành khối liền là một
   ghi chép khó đọc lại, mà đọc lại là toàn bộ lý do nó tồn tại. */
.gc { margin: 0 0 var(--space-3); padding-bottom: var(--space-3);
      border-bottom: 1px solid var(--line); }
.gc:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.gc__dau { margin: 0 0 4px; }
.gc__ten { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.gc__chu { margin: 0 0 var(--space-1); white-space: pre-wrap; overflow-wrap: anywhere; }
.gc__chan { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2);
            margin: 0; font-size: 13px; color: var(--text-muted); }
.gc__ngay { font-variant-numeric: tabular-nums; }

/* NHÃN TĨNH — xuất xứ, loại, mức bằng chứng dưới một bài. KHÔNG bấm được, nên
   không cần 44px. Trước 18/09/2026 chúng mượn `.the-loc` (thẻ lọc, 44px): mỗi
   bài bốn nhãn thành bốn hàng cao ngồng, danh sách Học dài gấp đôi. */
.nhan-hang { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 var(--space-1); }
.nhan-tinh { display: inline-block; padding: 2px 8px; border: 1px solid var(--line);
             border-radius: 999px; color: var(--text-muted);
             font-size: 11px; font-weight: 600; letter-spacing: .04em; }

/* Thẻ lọc: là ĐIỀU HƯỚNG nên phải đủ 44px, không phải chữ trong dòng văn. */
.the-loc { display: inline-flex; align-items: center; min-height: 44px;
           padding: 0 var(--space-2); border: 1px solid var(--line);
           border-radius: 999px; color: var(--text-muted);
           font-size: 12px; font-weight: 600; letter-spacing: .04em;
           text-decoration: none; }
.the-loc--dang { border-color: var(--accent); background: var(--accent);
                 color: var(--on-accent); }

/* Thẻ sở thích (v2 §4.1): chữ + nút bỏ ngay trong viên thuốc. Nút bỏ là đích
   chạm riêng 44px — viên thuốc nhỏ hơn thế thì ngón cái bấm trượt sang thẻ
   bên cạnh, và thẻ bên cạnh bị xoá. */
/* NHỊP HÔM NAY (v2 §9, §11). Dòng nhịp đọc trước, lý do gập lại ngay dưới —
   luôn có mặt, không luôn mở. */
.nhip__dong { margin: 0 0 var(--space-1); font-size: 18px; }
.nhip__dong b { font-family: var(--font-display); font-weight: 500; }
.nhip__vi-sao { margin: 0 0 var(--space-1); }
/* GỢI Ý (v2 §19–20). Câu gợi ý đọc trước; «Vì sao» gập ngay dưới; hai hành
   động (đi làm · ẩn) cùng một hàng, hành động phụ nhạt hơn. */
.goi-y-the { margin: 0 0 var(--space-3); }
.goi-y-the__cau { margin: 0 0 var(--space-1); font-size: 16px; text-wrap: balance; }
.goi-y-the__hang { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }

/* SỔ QUYẾT ĐỊNH (v2 §4.1). Mỗi quyết định là một khối có ranh giới: kỳ vọng và
   thực tế phải đọc được là của CÙNG một quyết định, kể cả khi danh sách dài. */
.qd { margin: 0 0 var(--space-3); padding-left: var(--space-2);
      border-left: 2px solid var(--line); }
.qd__ten { margin: 0 0 2px; font-size: 16px; font-weight: 600; text-wrap: balance; }
.qd__meta { margin: 0 0 var(--space-1); font-size: 13px; color: var(--text-muted); }
.qd__nhan { margin: var(--space-1) 0 2px; font-size: 11px; font-weight: 600;
            letter-spacing: .08em; color: var(--text-muted); }

/* Chữ do AI viết: giữ xuống dòng của nó, viền trái nhạt để luôn phân biệt được
   với chữ người dùng tự viết (QĐ-T16). */
.ai-van { margin: 0 0 var(--space-2); padding-left: var(--space-2);
          border-left: 2px solid var(--line); white-space: pre-line; font-size: 15px; }

/* Thời lượng đứng NGAY SAU tên, số dạng bảng để các dòng thẳng cột. */
.nv__phut { flex: 0 0 auto; font-family: var(--font-so); font-size: 13px;
            font-variant-numeric: tabular-nums; color: var(--text-muted); }
.nhip__ly-do { margin: 0 0 var(--space-2); padding-left: var(--space-3);
               font-size: 14px; color: var(--text-muted); }
.nhip__ly-do li { margin: 0 0 4px; }

/* «Chưa chọn» đang được chọn KHÔNG tô màu nhấn. Tô như mọi lựa chọn khác thì
   một câu CHƯA khai trông giống hệt một câu đã khai, và cả màn đọc thành «đã
   trả lời hết». Viền đứt nói «ở đây còn trống». */
.chon-nut--trong input:checked + span { background: transparent; color: var(--text-muted);
                                        border-style: dashed; border-color: var(--text-muted); }

.the-ds-nho { display: flex; flex-wrap: wrap; gap: var(--space-1);
              margin: 0 0 var(--space-2); padding: 0; list-style: none; }
.the-ds-nho__muc { display: inline-flex; align-items: center; min-height: 44px;
                   padding-left: var(--space-2); border: 1px solid var(--line);
                   border-radius: 999px; font-size: 14px; }

/* ── MẪU HÌNH (§43) ────────────────────────────────────────────────────────
   Câu kết luận đọc trước, BẰNG CHỨNG ngay dưới và nhạt hơn — nhưng luôn có
   mặt. Một phát hiện in ra mà không kèm căn cứ thì người đọc chỉ có thể tin
   hoặc không tin; kèm căn cứ thì họ cân được. */
.mh { margin: 0 0 var(--space-3); padding-left: var(--space-2);
      border-left: 2px solid var(--accent); }
.mh:last-of-type { margin-bottom: var(--space-2); }
.mh__cau { margin: 0 0 2px; font-size: 16px; color: var(--text); text-wrap: balance; }
.mh__bang-chung { margin: 0; font-size: 13px; color: var(--text-muted);
                  font-variant-numeric: tabular-nums; }

/* ── §26 NHẬT KÝ PHÂN TÂM trên màn Deep Work ───────────────────────────────
   Nền tối sâu của màn này là một nghi thức, nên ô nhập ở đây phải hoà vào nó
   chứ không mang bảng màu của phần còn lại app — một ô trắng giữa màn tối là
   một lời mời nhìn ra chỗ khác, đúng thứ màn này sinh ra để tránh. */
.sau__phan-tam { display: flex; flex-wrap: wrap; gap: var(--space-1);
                 justify-content: center; width: min(420px, 100%);
                 margin: var(--space-4) auto 0; }
.sau__phan-tam .o__nhap { flex: 1 1 200px; background: transparent;
                          border-color: rgba(255,255,255,.28); color: #fff; }
.sau__phan-tam .o__nhap::placeholder { color: rgba(255,255,255,.45); }
.sau__phan-tam .nut { background: transparent; border-color: rgba(255,255,255,.28);
                      color: #fff; }
.sau__dem-phan-tam { margin: var(--space-1) 0 0; text-align: center;
                     font-size: 13px; color: rgba(255,255,255,.55); }

/* «bỏ qua» trên hàng kỷ luật (§23).

   Vẽ NHẠT và nằm CÙNG HÀNG với tên. Trước 09/09/2026 nó là một liên kết xanh
   gạch chân chiếm trọn một dòng riêng, lặp lại dưới MỌI kỷ luật — tám lần trên
   một màn, mỗi lần nặng hơn cả tên kỷ luật. Người mở màn thấy trước hết là tám
   lời mời bỏ qua, trong khi việc chính là chấm.

   Tên class KHÔNG dùng `.bo-qua`: đó đã là liên kết «bỏ qua tới nội dung» của
   trợ năng, và mượn tên nó sẽ đổi hình dạng một thứ hoàn toàn khác. */
/* min-width 44px: ở hàng nhiệm vụ (tên + thời lượng + «bỏ qua») trên 360px,
   flex bóp nút này còn 39px — chữ vẫn đọc được nhưng ngón cái thì trượt. */
.cham-bo-qua { margin-left: auto; padding: 0 var(--space-1);
               min-height: 44px; min-width: 44px; flex: 0 0 auto; white-space: nowrap;
               display: inline-flex; align-items: center; justify-content: center;
               border: 0; background: none; cursor: pointer;
               font: inherit; font-size: 13px; color: var(--text-muted); }
.cham-bo-qua:hover { color: var(--text); text-decoration: underline; }

/* TÀI LIỆU (§17) — màn đọc. Chữ của người dùng, nên cột chữ hẹp vừa mắt đọc
   và đoạn văn giữ nguyên chỗ họ xuống dòng (`pre-line`), không gộp thành một
   khối. Đề mục có khoảng thở phía trên để sáu phần không dính thành một bức
   tường. */
.tl__de-muc { margin: var(--space-4) 0 var(--space-1); }
.tl__doan { max-width: 44rem; margin: 0 0 var(--space-2); white-space: pre-line;
            line-height: 1.6; color: var(--text); }
.tl__ds { max-width: 44rem; margin: 0 0 var(--space-2); padding-left: 1.2em;
          line-height: 1.6; color: var(--text); }
.tl__ds li { margin-bottom: 4px; }

/* ═════════════════════════════════════════════════════════════════════════
   BẢN THIẾT KẾ 18/09/2026 — thanh điều hướng 4 mục + «+», Trang chủ, Khám
   phá, Trò chuyện. Đặt CUỐI tệp: nhiều luật dưới đây ghi đè luật gốc cùng độ
   đặc hiệu, và luật khai sau mới thắng.
   ═════════════════════════════════════════════════════════════════════════ */

.bt { display: block; width: 22px; height: 22px; flex: 0 0 auto; }

/* ── Thanh điều hướng: năm ô, ô giữa là nút «+» ────────────────────────── */
.dh__nhan { font-size: 11px; font-weight: 500; letter-spacing: 0; }
.dh__muc--dang .dh__nhan { font-weight: 600; }
/* Ghi nhanh từng trôi ở góc phải (vị trí cố định). Nay nó là Ô GIỮA của thanh:
   đặt lại mọi toạ độ cũ, không thì `right`/`bottom` của luật gốc đẩy lệch nó. */
.dh .gn { position: relative; right: auto; bottom: auto; z-index: auto;
          display: flex; justify-content: center; align-items: flex-start; }
.dh .gn__nut { width: 56px; height: 56px; margin-top: -18px;
               background: var(--accent); color: var(--on-accent);
               box-shadow: 0 6px 18px rgb(60 40 15 / .28); }
/* Nhãn chữ của nút «+»: điện thoại chỉ có biểu tượng (vẫn đọc được bằng trình
   đọc màn hình), máy tính hiện chữ vì thanh bên đủ chỗ. */
.gn__chu { position: absolute; width: 1px; height: 1px; overflow: hidden;
           clip: rect(0 0 0 0); white-space: nowrap; }
.dh .gn__form { position: fixed; left: var(--space-2); right: var(--space-2); width: auto;
                bottom: calc(88px + env(safe-area-inset-bottom)); z-index: 70; }
/* ẨN RÕ khi chưa mở. `display: flex` đặt lên <details> làm trình duyệt thôi
   ẩn nội dung của nó — lượt đầu 18/09/2026 khung nhập hiện ra bị bóp còn 28px
   trong ô giữa thanh, trên MỌI màn (rig: 131 lỗi vùng chạm). Không dựa vào cách
   ẩn ngầm định của <details> nữa. */
.gn:not([open]) .gn__form { display: none; }
.gn[open] .gn__form { display: block; }

@media (min-width: 900px) {
  .dh .gn { justify-content: flex-start; padding: var(--space-1) var(--space-3); }
  .dh .gn__nut { width: auto; height: 44px; margin: 0; padding: 0 var(--space-2) 0 12px;
                 gap: var(--space-1); border-radius: 999px; font-size: 13px; font-weight: 500; }
  .dh .gn__chu { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .dh .gn__form { left: 216px; right: auto; bottom: var(--space-4); width: 340px; }
}

/* ── Trang chủ ─────────────────────────────────────────────────────────── */
.tc { padding: var(--space-3) var(--space-2) calc(112px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) {
  .tc { margin-left: 200px; max-width: 1180px; padding: var(--space-5) var(--space-4) var(--space-6); }
}

.tc-dau { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
          gap: var(--space-2); align-items: stretch; margin: 0 0 var(--space-3); }
.tc-dau__chu { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.tc-dau__chao { margin: 0; font-family: var(--font-display); font-size: clamp(18px, 4.5vw, 26px); }
.tc-dau__ten { margin: 0; font-family: var(--font-display); font-weight: 500;
               font-size: clamp(30px, 8vw, 54px); line-height: 1.08; letter-spacing: -.01em;
               overflow-wrap: anywhere; }
.tc-gach { display: block; width: 48px; height: 2px; margin: var(--space-2) 0; background: var(--vang); }
.tc-trich { margin: 0 0 var(--space-2); font-family: var(--font-display); font-style: italic;
            font-weight: 400; font-size: 17px; line-height: 1.5; color: var(--text); }
.tc-trich--nho { font-size: 16px; }
.tc-ky { display: block; margin-top: var(--space-1); font-family: var(--font-body); font-style: normal;
         font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--text-muted); }
.tc-khau { margin: 0; font-size: 10px; letter-spacing: .3em; text-transform: uppercase;
           line-height: 2; color: var(--text-muted); }
.tc-khau b { color: var(--text); font-weight: 600; }
.tc-dau__le { display: none; }
@media (min-width: 900px) {
  .tc-dau { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 150px; gap: var(--space-4); }
  .tc-dau__le { display: block; align-self: center; margin: 0; font-size: 11px; line-height: 2;
                letter-spacing: .3em; text-transform: uppercase; color: var(--text-muted); }
  .tc-dau__ky { letter-spacing: .3em; }
}

/* Hình khối trừu tượng thay ảnh chụp (CSH chọn). Không phải ảnh giả: nó không
   giả vờ là một nơi hay một người có thật. */
.tc-tranh { position: relative; display: block; overflow: hidden; border-radius: var(--radius-md);
            background: linear-gradient(180deg, #E4DED4 0%, #F4F0EA 58%, #D6CFC3 100%); }
.tc-tranh--vom { min-height: 260px; }
.tc-tranh__nui { position: absolute; inset: auto 0 0 0; height: 46%;
                 background: linear-gradient(180deg, #8F877A, #6E675C);
                 clip-path: polygon(0 55%, 18% 30%, 34% 48%, 52% 12%, 70% 44%, 86% 26%, 100% 40%, 100% 100%, 0 100%); }
.tc-tranh__nui--xa { height: 58%; opacity: .45;
                     clip-path: polygon(0 40%, 22% 18%, 40% 36%, 60% 6%, 78% 30%, 100% 14%, 100% 100%, 0 100%); }
.tc-tranh__vom { position: absolute; inset: 0 0 0 38%;
                 background: radial-gradient(circle at 0 100%, transparent 62%, #CFC7BA 62.4%, #E6E0D6 100%); }
.tc-tranh--nho { flex: 0 0 112px; height: 88px; }
.tc-tranh--hanh-lang { background:
    linear-gradient(90deg, #B9B1A4 0 20%, transparent 20% 80%, #B9B1A4 80%),
    linear-gradient(180deg, #F2EEE8 0 60%, #CFC8BC 60%); }
.tc-tranh--ban { background:
    linear-gradient(180deg, transparent 0 62%, #A99F90 62% 66%, transparent 66%),
    linear-gradient(135deg, #EDE8E0, #CFC7BB); }
.tc-tranh--the { height: 96px; }
.tc-tranh--mau-0 { background: linear-gradient(180deg, #D9DDDF, #F2F1EC); }
/* Núi có tuyết: hai lớp đa giác — thân núi, rồi mũ tuyết đè lên đỉnh. */
.tc-tranh--mau-0::before, .tc-tranh--case::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, #9A958C, #6F6A61);
  clip-path: polygon(0 100%, 0 78%, 22% 58%, 38% 66%, 62% 22%, 80% 50%, 100% 38%, 100% 100%); }
.tc-tranh--mau-0::after, .tc-tranh--case::after {
  content: ""; position: absolute; inset: 0; background: #F4F2EE;
  clip-path: polygon(55.5% 34.5%, 62% 22%, 68.5% 33.5%, 64% 31%, 60% 36%); }
.tc-tranh--mau-1 { background: radial-gradient(circle at 0 100%, #EDE8E0 55%, #BFB6A8 56%); }
.tc-tranh--mau-2 { background: linear-gradient(135deg, #D8D2C6 0 45%, #6F7563 45% 55%, #E9E5DD 55%); }
.tc-tranh--case { min-height: 180px; background: linear-gradient(180deg, #CFD4D6, #F1EFEA 70%); }

/* Quả cầu + vòng vàng — trang trí của khối AI và khối trích dẫn. */
.tc-cau { position: absolute; top: -24px; right: -24px; width: 120px; height: 120px; border-radius: 50%;
          background: radial-gradient(circle at 35% 30%, #FFFFFF 0, #D9D4CC 32%, #8E877C 70%, #4A453D 100%);
          pointer-events: none; }
.tc-cau::after { content: ""; position: absolute; inset: 42% -30%; border: 1px solid var(--vang);
                 border-radius: 50%; transform: rotate(-18deg); }
.tc-cau--lon { top: auto; bottom: -40px; right: -60px; width: 200px; height: 200px; }

/* Hàng lối tắt — cuộn ngang trên điện thoại, dàn đều trên máy tính. */
.tc-loi { display: flex; overflow-x: auto; margin: 0 calc(-1 * var(--space-2)) var(--space-3);
          padding: 0 var(--space-2); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tc-loi__muc { position: relative; flex: 0 0 auto; min-width: 76px; min-height: 64px;
               display: flex; flex-direction: column; align-items: center; justify-content: center;
               gap: 6px; padding: var(--space-1) 6px; font-size: 12px; color: var(--text);
               text-decoration: none; }
.tc-loi__muc .bt { color: var(--dong-dam); }
.tc-loi__muc--dang { color: var(--accent); background: var(--surface); border-radius: 10px 10px 0 0;
                     box-shadow: 0 -1px 0 var(--line), 1px 0 0 var(--line), -1px 0 0 var(--line); }
.tc-loi__muc--dang::after { content: ""; position: absolute; left: 30%; right: 30%; bottom: 0;
                            height: 2px; background: var(--accent); }
@media (min-width: 900px) { .tc-loi { justify-content: space-between; margin-left: 0; margin-right: 0; padding: 0; } }

/* Lưới thẻ: HAI cột ngay trên điện thoại — bản thiết kế xếp thẻ hai cột ở
   khổ điện thoại, và xếp một cột làm trang dài gấp đôi, khác hẳn thứ CSH đưa.
   Dưới 380px thì một cột: hai cột ở 360px cho mỗi thẻ 164px, chữ vỡ vụn.
   `.tc-cot` gói AI +
   Hành trình thành MỘT ô lưới (bản thiết kế: «Hôm nay» bên trái, hai thẻ chồng
   bên phải). Chia bằng `grid-row: span 2` thì lưới rải phần cao thừa của
   «Hôm nay» vào cả hai hàng và để một khe trống giữa hai thẻ bên phải. */
.tc-cot { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.tc-luoi { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 380px) { .tc-luoi { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 700px) {
  /* Như bản thiết kế: «Hôm nay» cao HAI hàng bên trái, AI và Hành trình
     chồng bên phải. Không có nó, thẻ AI bị kéo cao bằng «Hôm nay» và để một
     khoảng trống nửa màn; và thẻ trích dẫn rơi lẻ một mình ở hàng dưới. */
  .tc-luoi { gap: var(--space-2); align-items: start; }
  .tc-case { grid-column: 1 / -1; }
  /* Thẻ cuối của cột phải giãn xuống: đáy hai cột bằng nhau, không khe giữa. */
  .tc-luoi > .tc-cot { align-self: stretch; }
  .tc-cot > .tc-the:last-child { flex: 1 1 auto; }
}

.tc-the { position: relative; overflow: hidden; margin: 0; padding: var(--sp-4);
          background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
          box-shadow: var(--bong); }
.tc-the__dau { display: flex; align-items: center; justify-content: space-between; gap: var(--space-1);
               min-height: 44px; color: inherit; text-decoration: none; }
.tc-the__ten { margin: 0; font-family: var(--font-display); font-size: clamp(19px, 4.6vw, 24px);
               font-weight: 500; line-height: 1.2; }
@media (min-width: 700px) { .tc-the { padding: var(--space-3) 20px; } }
.tc-the__phu { margin: 4px 0 0; font-size: 13px; color: var(--text-muted); overflow-wrap: anywhere; }
.tc-xem { display: inline-flex; align-items: center; justify-content: flex-end; white-space: nowrap;
          min-height: 44px; min-width: 44px; font-size: 13px;
          color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; }
.tc-rong { margin: var(--space-1) 0; font-size: 14px; color: var(--text-muted); }

/* Hôm nay của bạn */
.tc-vong-hang { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: var(--space-2) 0; }
.tc-vong { position: relative; flex: 0 0 96px; width: 96px; height: 96px; }
.tc-vong svg { display: block; width: 100%; height: auto; }
/* Câu trích đứng BÊN PHẢI vòng như bản thiết kế — không có flex-basis thì nó
   đòi cả bề ngang và rơi xuống dưới vòng. */
.tc-vong-hang .tc-trich { flex: 1 1 140px; min-width: 0; margin: 0; }
@media (min-width: 700px) { .tc-vong { flex-basis: 120px; width: 120px; height: 120px; } }
.tc-vong__nen { fill: none; stroke: var(--tien-do-rong); stroke-width: 8; }
.tc-vong__day { fill: none; stroke: var(--accent); stroke-width: 8; stroke-linecap: round; }
.tc-vong__so { position: absolute; left: 0; right: 0; top: 26%; text-align: center;
               font-family: var(--font-display); font-size: clamp(24px, 6vw, 30px); font-weight: 500; }
.tc-vong__nhan { position: absolute; left: 0; right: 0; top: 60%; text-align: center;
                 font-size: 12px; color: var(--text-muted); }
.tc-viec { margin: 0; padding: 0; list-style: none; }
.tc-viec__muc { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center;
                gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.tc-viec__cham { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px;
                 border: 1.5px solid var(--neutral-400); border-radius: 50%; font-size: 11px; }
.tc-viec__muc--xong .tc-viec__cham { background: var(--accent); border-color: transparent; color: var(--on-accent); }
.tc-viec__ten { overflow-wrap: anywhere; }
.tc-viec__phu { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
/* Nút tối kiểu bản thiết kế: nền MỰC, mũi tên vàng. Lấy từ token chữ/nền nên
   chế độ tối tự đảo — nút sáng trên nền tối. */
.tc-nut-toi { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
              min-height: 52px; margin-top: var(--space-2); padding: 0 20px; border-radius: 6px;
              background: var(--text); color: var(--bg); text-decoration: none;
              font-size: 12px; font-weight: 600; letter-spacing: .25em; text-transform: uppercase; }
.tc-nut-toi .bt { color: var(--vang); }

/* ThinQ AI */
.tc-the--ai .tc-the__ten, .tc-the--ai .tc-the__phu { padding-right: 88px; }
.tc-hoi { display: flex; align-items: center; gap: var(--space-1); margin: var(--space-2) 0;
          padding: 4px 4px 4px var(--space-2); border: 1px solid var(--line); border-radius: 999px;
          background: var(--surface); }
.tc-hoi__o { flex: 1 1 auto; min-width: 0; min-height: 44px; border: 0; background: transparent;
             color: var(--text); font: inherit; font-size: 16px; }
.tc-hoi__o:focus { outline: none; }
.tc-hoi:focus-within { border-color: var(--accent); }
.tc-hoi__gui { display: flex; align-items: center; justify-content: center; flex: 0 0 44px;
               width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: pointer;
               background: var(--accent); color: var(--on-accent); }
.tc-nhanh { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-1); }
.tc-nhanh__muc { display: flex; flex-direction: column; align-items: center; gap: 6px;
                 min-height: 80px; padding: 12px 4px; border: 1px solid var(--line); border-radius: 10px;
                 background: var(--surface); color: var(--text); text-decoration: none;
                 font-size: 12px; line-height: 1.3; text-align: center; }
.tc-nhanh__muc .bt, .tc-cong-cu__muc .bt { color: var(--dong-dam); }

/* Hành trình · Đang học */
.tc-hang { display: flex; gap: var(--space-2); align-items: flex-start; margin-top: var(--space-2); }
.tc-hang__chu { flex: 1 1 auto; min-width: 0; }
.tc-hang__ten { display: block; margin: 0; font-family: var(--font-display); font-size: 19px;
                font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
.tc-thanh { height: 4px; margin: 10px 0 4px; border-radius: 2px; background: var(--tien-do-rong); overflow: hidden; }
.tc-thanh__day { display: block; width: var(--phan-tram, 0%); height: 100%; background: var(--accent); }
.tc-thanh-hang { display: flex; align-items: center; gap: var(--space-1); }
.tc-thanh-hang .tc-thanh { flex: 1 1 auto; }
.tc-thanh__so { margin: 0; font-size: 12px; color: var(--text-muted); white-space: nowrap; }

/* Công cụ */
.tc-cong-cu { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-1);
              margin-top: var(--space-2); }
.tc-cong-cu__muc { display: flex; flex-direction: column; align-items: center; gap: var(--space-1);
                   min-height: 96px; padding: 14px 6px; border: 1px solid var(--line); border-radius: 10px;
                   color: var(--text); text-decoration: none; font-size: 12px; line-height: 1.3;
                   text-align: center; overflow-wrap: anywhere; }

/* Dành riêng cho bạn */
.tc-goi-y { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(104px, 100%), 1fr));
            gap: var(--space-1); margin-top: var(--space-2); }
.tc-goi-y__muc { display: flex; flex-direction: column; gap: var(--space-1); color: var(--text);
                 text-decoration: none; }
.tc-goi-y__cau { font-size: 13px; font-weight: 500; line-height: 1.35; }
.tc-tranh--the { height: 76px; }
.tc-goi-y__vi-sao { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical;
                    -webkit-line-clamp: 2; font-size: 11px; line-height: 1.35; color: var(--text-muted); }

/* Trích dẫn · Case study */
.tc-the--trich { display: flex; align-items: center; min-height: 190px; background: var(--surface-2); }
.tc-the--trich .tc-trich { position: relative; z-index: 1; max-width: 70%; font-size: 22px; }
.tc-case { grid-column: 1 / -1; }
.tc-case__dau { display: flex; align-items: center; justify-content: space-between;
                gap: var(--space-1); margin-bottom: var(--space-1); }
.tc-case__luoi { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.tc-the--case { display: grid; grid-template-columns: minmax(0, 1fr); padding: 0;
                color: var(--text); text-decoration: none; }
.tc-the--khau { display: flex; align-items: flex-end; justify-content: space-between;
                gap: var(--space-1); min-height: 150px; background: var(--surface-2); }
.tc-khau__tranh { position: absolute; inset: 0 0 0 45%; border-radius: 0; }
.tc-the--khau .tc-khau { position: relative; z-index: 1; }
.tc-case__chu { display: flex; flex-direction: column; gap: var(--space-1); padding: 20px; }
@media (min-width: 700px) {
  .tc-the--case { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  .tc-case__luoi { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); }
}

.tc-chan { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-1);
           margin-top: var(--space-4); padding-top: var(--space-2); border-top: 1px solid var(--line);
           font-size: 10px; letter-spacing: .25em; text-transform: uppercase; color: var(--text-muted); }

/* ── Khám phá: thẻ có biểu tượng ──────────────────────────────────────── */
.the__lien-ket--ico .bt { margin-bottom: var(--space-1); color: var(--dong-dam); }

/* ── Trò chuyện ───────────────────────────────────────────────────────── */
.tro__luot { max-width: 44rem; margin: 0 0 12px; }
.tro__luot--nguoi { margin-left: auto; text-align: right; }
.tro__ai-noi { margin: 0 0 4px; font-size: 11px; font-weight: 600; letter-spacing: .04em;
               text-transform: uppercase; color: var(--text-muted); }
.tro__chu { display: inline-block; max-width: 100%; padding: 12px 14px; border-radius: 12px;
            text-align: left; white-space: pre-line; overflow-wrap: anywhere;
            background: var(--surface-2); }
.tro__luot--ai .tro__chu { background: var(--surface); border: 1px solid var(--line); }


/* ── THANH ĐẦU TRANG (bản thiết kế 18/09/2026) ─────────────────────────── */
/* Trong suốt và nằm TRÊN nội dung (z-index): màn Khám phá kéo hình lên sát mép
   trên, thanh này đè lên hình như bản thiết kế. */
.dt { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between;
      gap: var(--space-2); padding: var(--space-1) var(--space-2); }
.dt__logo { display: flex; align-items: center; gap: 10px; min-height: 44px; min-width: 0;
            color: var(--text); text-decoration: none; }
.dt__gach { width: 1px; height: 26px; background: var(--line); }
.dt__phu { font-size: 8px; letter-spacing: .28em; line-height: 1.6; text-transform: uppercase;
           color: var(--text-muted); }
.dt__phai { display: flex; align-items: center; gap: 2px; }
.dt__nut { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
           color: var(--text); text-decoration: none; }
.dt__anh { display: flex; align-items: center; justify-content: center;
           width: 36px; height: 36px; border-radius: 50%;
           background: var(--surface-2); border: 1px solid var(--line);
           font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--text-muted); }
/* Dưới 380px: logo + bốn nút 44px + lề đã chạm 376px — rig bắt tràn ngang 22px
   ở 360px. Bỏ dòng chữ phụ; chữ «ThinQ» và bốn nút giữ nguyên. */
@media (max-width: 379px) {
  .dt { padding-left: 12px; padding-right: 8px; }
  .dt__gach, .dt__phu { display: none; }
}
@media (min-width: 900px) {
  .dt { margin-left: 200px; padding: var(--space-2) var(--space-4); }
}

/* Hai cột trên điện thoại (380–699px): mỗi thẻ chỉ còn ~145px chữ. Lưới bốn ô
   của ThinQ AI và Công cụ xuống 2×2 (rig bắt ô 30px ở 390px), quả cầu trang trí
   nhỏ lại và bớt khoảng chừa cho nó. */
@media (max-width: 699px) {
  /* «Hôm nay» chiếm trọn bề ngang: nửa thẻ ~145px làm tên việc thật gãy TỪNG
     KÝ TỰ («Si / mp / leX»). Các cặp còn lại vẫn đứng cạnh nhau như bản thiết
     kế; `.tc-cot` tan ra (`contents`) để AI và Hành trình thành hai ô cạnh nhau. */
  .tc-luoi > .tc-the:first-child { grid-column: 1 / -1; }
  .tc-luoi > .tc-cot { display: contents; }
  .tc-nhanh, .tc-cong-cu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tc-nhanh__muc, .tc-cong-cu__muc { min-height: 72px; padding: 10px 4px; font-size: 11px; }
  .tc-cau { top: -18px; right: -18px; width: 72px; height: 72px; }
  .tc-cau--lon { top: auto; bottom: -30px; right: -40px; width: 130px; height: 130px; }
  .tc-the--ai .tc-the__ten, .tc-the--ai .tc-the__phu { padding-right: 40px; }
  .tc-hang { flex-direction: column; gap: var(--space-1); }
  .tc-tranh--nho { flex-basis: auto; width: 100%; height: 72px; }
}

/* ═════ KHÁM PHÁ (bản thiết kế CSH, 19/09/2026) ═════════════════════════════
   GIỮ CẤU TRÚC NGANG ngay trên điện thoại — nổi bật ba ngăn một hàng, chủ đề
   bốn thẻ một hàng, lộ trình ba thẻ một hàng, công cụ sáu ô một hàng. Bản đầu
   tôi xếp dọc cho điện thoại; CSH: «không hề giống cấu trúc trang yêu cầu». */

/* Hình tràn sát mép trên và mép phải; thanh đầu trang (trong suốt) nằm đè lên.
   Kéo khối lên đúng bằng chiều cao thanh đầu trang + lề trên của trang. */
.kp-dau { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px;
          margin: -84px calc(-1 * var(--space-2)) var(--space-2) 0; }
.kp-dau__chu { display: flex; flex-direction: column; justify-content: center; min-width: 0;
               padding: 96px 0 var(--space-2); }
.kp-mat { margin: 0 0 var(--space-1); font-size: 10px; letter-spacing: .35em; text-transform: uppercase;
          color: var(--text-muted); }
.kp-dau__tieu-de { margin: 0; font-family: var(--font-display); font-weight: 500;
                   font-size: clamp(24px, 6.6vw, 52px); line-height: 1.12; letter-spacing: -.01em; }
.kp-dau__tranh { min-height: 330px; border-radius: 0; }
.kp-dau__le { position: absolute; top: 96px; right: 14px; z-index: 1;
              font-size: 8px; letter-spacing: .28em; line-height: 1.9; text-transform: uppercase;
              color: rgb(60 50 38 / .72); }
@media (min-width: 900px) {
  .kp-dau { margin: -124px calc(-1 * var(--space-4)) var(--space-3) 0; gap: var(--space-4); }
  .kp-dau__chu { padding-top: 150px; }
  .kp-dau__tranh { min-height: 460px; }
  .kp-dau__le { top: 150px; right: var(--space-3); font-size: 10px; }
}

.kp-muc { margin: 0 0 var(--space-3); }
.kp-muc__dau { display: flex; align-items: flex-end; justify-content: space-between;
               gap: var(--space-1); margin-bottom: 10px; }
.kp-muc__ten { margin: 0; font-family: var(--font-display); font-weight: 500;
               font-size: clamp(20px, 5vw, 28px); line-height: 1.2; }
.kp-muc__phu { margin: 2px 0 0; font-size: 12px; color: var(--text-muted); }
.kp-xem { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; flex: 0 0 auto;
          font-size: 12px; color: var(--text-muted); text-decoration: none; white-space: nowrap; }
.kp-xem .bt { width: 16px; height: 16px; }

/* Nổi bật: chữ · hình · khẩu hiệu — MỘT hàng ở mọi khổ. */
.kp-noi-bat { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(0, .7fr);
              min-height: 210px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px;
              background: var(--surface); box-shadow: var(--bong); color: var(--text); text-decoration: none; }
.kp-noi-bat__chu { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 14px 12px; }
.kp-nhan-hang { display: flex; flex-wrap: wrap; gap: 4px; }
.kp-nhan--demo { background: transparent; border: 1px solid var(--line); color: var(--text-muted); }
.kp-nhan { align-self: flex-start; white-space: nowrap; padding: 3px 6px; border-radius: 3px; background: var(--dong-dam);
           color: #FFFFFF; font-size: 9px; font-weight: 600; letter-spacing: .12em; }
.kp-noi-bat__ten { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 4;
                   font-family: var(--font-display); font-weight: 500; line-height: 1.22;
                   font-size: clamp(15px, 3.9vw, 28px); }
.kp-noi-bat__tom { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3;
                   font-size: clamp(11px, 2.8vw, 13px); color: var(--text-muted); }
.kp-mo { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-size: 12px; color: var(--accent); }
.kp-mo .bt { width: 16px; height: 16px; }
.kp-noi-bat__tranh { min-height: 100%; border-radius: 0; }
.kp-noi-bat__le { display: flex; flex-direction: column; justify-content: center; padding: 10px;
                  background: var(--surface-2); font-size: clamp(7px, 1.9vw, 11px); letter-spacing: .28em;
                  line-height: 2; text-transform: uppercase; color: var(--text-muted); }
@media (min-width: 900px) { .kp-noi-bat { min-height: 300px; } .kp-noi-bat__chu { padding: var(--space-3); } }

/* Chủ đề nổi bật: BỐN thẻ một hàng; chữ trắng trên dải tối ở đáy hình (để đọc
   được trên hình khối sáng). */
.kp-chu-de { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.kp-chu-de__the { position: relative; display: block; min-height: 170px; overflow: hidden;
                  border-radius: 10px; color: #FFFFFF; text-decoration: none; box-shadow: var(--bong); }
.kp-chu-de__tranh { position: absolute; inset: 0; border-radius: 0; }
.kp-chu-de__chu { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column;
                  gap: 4px; padding: 36px 8px 10px;
                  background: linear-gradient(180deg, rgb(20 18 15 / 0) 0, rgb(20 18 15 / .8) 55%); }
.kp-chu-de__ten { font-family: var(--font-display); font-weight: 500; line-height: 1.18;
                  font-size: clamp(12px, 3.3vw, 21px); overflow-wrap: anywhere; }
.kp-chu-de__so { font-size: clamp(8px, 2.2vw, 11px); opacity: .9; }
@media (min-width: 900px) { .kp-chu-de { gap: 12px; } .kp-chu-de__the { min-height: 240px; }
                            .kp-chu-de__chu { padding: 48px 16px 16px; } }

/* Học theo lộ trình: BA thẻ một hàng. */
.kp-lo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.kp-lo__the { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line);
              border-radius: 8px; background: var(--surface); box-shadow: var(--bong);
              color: var(--text); text-decoration: none; }
.kp-lo__tranh { height: 72px; border-radius: 0; }
.kp-lo__chu { display: flex; flex-direction: column; gap: 4px; padding: 8px 8px 10px; }
.kp-lo__ten { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
              font-family: var(--font-display); font-weight: 500; line-height: 1.25;
              font-size: clamp(12px, 3.2vw, 18px); }
.kp-lo__meta { font-size: clamp(8px, 2.2vw, 12px); color: var(--text-muted); }
.kp-lo__the .tc-thanh__so { font-size: clamp(8px, 2.2vw, 12px); }
@media (min-width: 900px) { .kp-lo { gap: 12px; } .kp-lo__tranh { height: 120px; } .kp-lo__chu { padding: 14px; } }

/* Công cụ: SÁU ô một hàng. */
.kp-cong-cu { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.kp-cong-cu__o { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 76px;
                 padding: 10px 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
                 color: var(--text); text-decoration: none; text-align: center; line-height: 1.25;
                 font-size: clamp(9px, 2.4vw, 12px); overflow-wrap: anywhere; }
.kp-cong-cu__o .bt { width: 20px; height: 20px; color: var(--dong-dam); }
@media (min-width: 900px) { .kp-cong-cu { gap: 12px; } .kp-cong-cu__o { min-height: 96px; padding: 16px 8px; } }

.kp-bai { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 8px; }
.kp-bai__the { display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid var(--line);
               border-radius: 8px; background: var(--surface); color: var(--text); text-decoration: none; }

/* Châm ngôn: DẢI ngang thấp, hình vòm bên phải. */
.kp-dai { position: relative; display: flex; align-items: center; min-height: 120px; margin: 0 0 var(--space-3);
          overflow: hidden; border-radius: 12px; background: var(--surface-2); }
.kp-dai__trich { position: relative; z-index: 1; margin: 0; padding: 16px; max-width: 58%;
                 font-family: var(--font-display); font-style: italic; font-weight: 400; line-height: 1.35;
                 font-size: clamp(15px, 4vw, 26px); }
.kp-dai__tranh { position: absolute; inset: 0 0 0 48%; border-radius: 0;
                 background: radial-gradient(circle at 0 100%, #EDE8E0 55%, #C9C1B4 56%, #E3DDD3 100%); }
.kp-dai__le { position: absolute; right: 14px; bottom: 14px; z-index: 1; margin: 0; font-size: 8px;
              letter-spacing: .28em; line-height: 1.9; text-transform: uppercase; color: rgb(60 50 38 / .72); }
@media (min-width: 900px) { .kp-dai { min-height: 160px; } .kp-dai__le { font-size: 10px; } }

/* Mọi khu (màn riêng, sau nút ≡). */
/* Màn «Khác» (bản thiết kế 11/11/2026 tối): thẻ trắng bóng mềm, biểu tượng
   trong vòng tím nhạt — cùng ngôn ngữ với bậc «Bắt đầu với Thang». */
.khac { margin: 0 0 var(--sp-6); }
.khac__ten { margin: 0 0 var(--sp-3); font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.kp-khu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3);
          margin: 0; padding: 0; list-style: none; }
@media (min-width: 700px) { .kp-khu { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.kp-khu__muc { display: flex; align-items: center; gap: var(--sp-3); min-height: 60px; padding: var(--sp-3);
               border-radius: 16px; background: #FFFFFF; box-shadow: var(--shadow-soft);
               color: var(--text); text-decoration: none; line-height: 1.3; }
.kp-khu__ico { flex: 0 0 36px; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px;
               border-radius: 50%; background: var(--color-tint-lavender); color: var(--color-primary-bright); }
.kp-khu__ico .bt { width: 20px; height: 20px; }
.kp-khu__chu { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.kp-khu__ten { font-size: 14px; font-weight: 600; }
.kp-khu__phu { font-size: 12px; color: var(--color-text-secondary); }
.kp-khu--lon .kp-khu__muc { flex-direction: column; align-items: flex-start; min-height: 112px; padding: var(--sp-4); }
.kp-khu--lon .kp-khu__ico { flex-basis: 44px; width: 44px; height: 44px; }
.kp-khu--lon .kp-khu__ico .bt { width: 24px; height: 24px; }
.kp-khu--lon .kp-khu__ten { font-size: 15px; }

/* Hàng lọc / lối tắt kiểu bản thiết kế: vạch ngăn mảnh giữa các ô, ô đang chọn
   là một ô nền nhạt bo góc. */
.tc-loi { border-bottom: 0; }
.tc-loi__muc + .tc-loi__muc { background: linear-gradient(var(--line), var(--line)) left center / 1px 56% no-repeat; }
.tc-loi__muc--dang, .tc-loi__muc + .tc-loi__muc--dang { background: var(--surface-2); border-radius: 10px; box-shadow: none; }

/* ═════ TIẾN ĐỘ (bản thiết kế CSH sửa lần 2, 19/09/2026) ════════════════════
   Hình tràn mép dùng lại .kp-dau của Khám phá. Bốn khối TRẢI HẾT bề ngang. */

/* Tab là Ô NỔI; ô đang chọn tô đồng, chữ trắng. Sáu ô — hàng cuộn ngang khi
   hẹp, mỗi ô vẫn ≥ 44px. */
.td-tab { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(72px, 1fr); gap: 6px;
          margin: 0 0 var(--space-2); overflow-x: auto; scrollbar-width: none; }
.td-tab__o { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
             min-height: 64px; padding: 8px 4px; border-radius: 10px; background: var(--surface);
             box-shadow: var(--bong); color: var(--text); text-decoration: none;
             font-size: clamp(10px, 2.7vw, 13px); white-space: nowrap; }
.td-tab__o .bt { color: var(--dong-dam); }
.td-tab__o--dang { background: var(--accent); color: var(--on-accent); }
.td-tab__o--dang .bt { color: #FFFFFF; }

.td-khoi { margin: 0 0 12px; }
.td-khoi__dau { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-1); }
.td-khoi__dau .kp-xem .bt { width: 14px; height: 14px; }

/* Tiến độ tổng thể: vòng to bên trái, trích dẫn bên phải; rồi bốn ô số. */
.td-tong { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center;
           gap: var(--space-2); margin: var(--space-1) 0 var(--space-2); }
.td-vong { position: relative; width: min(100%, 220px); justify-self: center; }
.td-vong svg { display: block; width: 100%; height: auto; }
.td-vong__day { fill: none; stroke-width: 8; stroke-linecap: round; }
.td-vong__so { position: absolute; left: 0; right: 0; top: 32%; text-align: center;
               font-family: var(--font-display); font-weight: 500; font-size: clamp(28px, 9vw, 56px); }
.td-vong__nhan { position: absolute; left: 0; right: 0; top: 62%; text-align: center;
                 font-size: clamp(11px, 3vw, 15px); color: var(--text-muted); }
.td-trich { margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 400;
            font-size: clamp(16px, 4.4vw, 26px); line-height: 1.4; }
.td-bon { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.td-bon__o { display: flex; align-items: flex-start; gap: 6px; padding: 0 6px; }
.td-bon__o + .td-bon__o { border-left: 1px solid var(--line); }
.td-bon__ico { flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
               width: clamp(26px, 7vw, 40px); height: clamp(26px, 7vw, 40px); border-radius: 8px;
               background: var(--surface-2); }
.td-bon__ico .bt { width: 60%; height: 60%; color: var(--dong-dam); }
.td-bon__chu { min-width: 0; }
.td-bon dt { font-family: var(--font-display); font-weight: 500; line-height: 1; font-size: clamp(18px, 5vw, 30px); }
.td-bon dd { margin: 4px 0 0; font-size: clamp(8px, 2.3vw, 13px); line-height: 1.3; color: var(--text-muted); }

/* Chuỗi ngày: lửa + số bên trái; tuần + câu nhắc bên phải. */
.td-chuoi-hang { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center;
                 gap: var(--space-2); margin-top: var(--space-1); }
.td-chuoi { display: flex; align-items: center; gap: 8px; margin: 0; }
.td-chuoi .bt { width: clamp(32px, 9vw, 52px); height: clamp(32px, 9vw, 52px); color: var(--dong); }
.td-chuoi b { font-family: var(--font-display); font-weight: 500; font-size: clamp(34px, 10vw, 56px); line-height: 1; }
.td-chuoi span { font-size: clamp(11px, 3vw, 15px); color: var(--text-muted); }
.td-chuoi-phai { min-width: 0; }
.td-tuan { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; margin: 0; padding: 0; list-style: none; }
.td-tuan__ngay { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.td-tuan__thu { font-size: clamp(8px, 2.2vw, 12px); color: var(--text-muted); }
.td-tuan__o { display: flex; align-items: center; justify-content: center; width: clamp(20px, 5.4vw, 32px);
              height: clamp(20px, 5.4vw, 32px); border: 1.5px solid var(--neutral-400); border-radius: 50%;
              font-size: clamp(9px, 2.6vw, 15px); }
.td-tuan__ngay--xong .td-tuan__o { background: var(--dong); border-color: transparent; color: #FFFFFF; }
.td-tuan__ngay--bo-qua .td-tuan__o { color: var(--text-muted); }
.td-tuan__ngay--chua-toi .td-tuan__o, .td-tuan__ngay--ngoai .td-tuan__o { border-style: dashed; opacity: .6; }
.td-tuan__ngay--hom-nay .td-tuan__o { border-color: var(--accent); }
.td-hop { margin: 10px 0 0; padding: 8px 12px; border-radius: 8px; background: var(--surface-2); text-align: center;
          font-family: var(--font-display); font-style: italic; font-size: clamp(11px, 3vw, 17px); color: var(--text-muted); }

/* Mục tiêu năm: lưới HAI cột, mỗi mục một ô có viền. */
.td-mt { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: var(--space-1) 0 0;
         padding: 0; list-style: none; }
.td-mt__o { display: grid; grid-template-columns: 18px minmax(0, 1fr) minmax(0, .9fr) auto; align-items: center;
            gap: 6px; min-height: 48px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px;
            font-size: clamp(10px, 2.7vw, 14px); }
.td-mt__o .bt { width: 18px; height: 18px; color: var(--dong-dam); }
.td-mt__o .tc-thanh { margin: 0; }
.td-mt__ten { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-mt__pt { font-size: clamp(9px, 2.4vw, 13px); color: var(--text-muted); }

/* Dự án: hai thẻ cạnh nhau. */
.td-da-hang { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: var(--space-1); }
.td-da { display: flex; align-items: center; gap: 8px; min-height: 64px; color: var(--text); text-decoration: none; }
.td-da__tranh { flex: 0 0 clamp(52px, 15vw, 110px); height: clamp(48px, 13vw, 76px); border-radius: 6px; }
.td-da__chu { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.td-da__ten { overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
              font-family: var(--font-display); font-size: clamp(13px, 3.5vw, 19px); font-weight: 500; }

/* Soát bằng mắt (19/09/2026) so với bản thiết kế:
   · sáu ô tab phải thấy ĐỦ ngay trên điện thoại (ảnh không cuộn) — ô 54px ở
     390px, vẫn ≥ 44px;
   · nhãn dưới bốn con số gãy từng chữ khi nằm cạnh ô biểu tượng → biểu tượng
     và số một hàng, nhãn trải cả ô bên dưới;
   · tên mục tiêu bị cắt «Ra mắ…» → thanh tiến độ trong ô hẹp lại. */
.td-tab { grid-auto-flow: row; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-columns: auto;
          overflow: visible; gap: 4px; }
.td-tab__o { min-height: 58px; padding: 6px 2px; font-size: clamp(9px, 2.5vw, 13px); }
.td-bon__o { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "ico so" "nhan nhan";
             align-items: center; gap: 4px 6px; }
.td-bon__chu { display: contents; }
.td-bon__ico { grid-area: ico; }
.td-bon dt { grid-area: so; }
.td-bon dd { grid-area: nhan; margin: 2px 0 0; }
.td-mt__o { grid-template-columns: 18px minmax(0, 1fr) clamp(28px, 9vw, 90px) auto; }

/* ── «Bắt đầu với ThinQ» (Pha A, 19/09/2026) ─────────────────────────────
   Trải hết bề ngang đầu lưới thẻ. Bước kế tiếp nổi lên; bước đã xong co lại
   một dòng gạch nhạt. */
@media (min-width: 700px) { .bd__ds { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; } }

/* Ô GÕ NHANH — một dòng, gửi thẳng vào biểu mẫu gốc. Dùng ở thẻ «Bắt đầu» và
   ở những màn rỗng: màn rỗng phải mời một bước tiếp, không chỉ báo vắng mặt.
   Ô gõ co tới 12rem rồi mới đẩy nút xuống dòng — giữ một hàng ở khổ điện
   thoại thường, chỉ gãy khi thật hẹp. */
.o-nhanh { display: flex; flex-wrap: wrap; gap: var(--space-1); margin-top: var(--space-2); }
.o-nhanh .o__nhap { flex: 1 1 12rem; min-width: 0; }
.o-nhanh select.o__nhap { flex: 0 1 auto; }

/* NÚT «+» ghi được hai thứ. Chọn «Việc hôm nay» thì ô Loại (loại ý nghĩ) mất
   nghĩa → ẩn bằng :has, không cần JS. Trình duyệt chưa có :has chỉ thấy thêm
   một ô thừa, server bỏ qua nó. */
.gn__dich { display: flex; gap: var(--space-1); margin: 0 0 var(--space-1); padding: 0; border: 0; }
.gn__chon { display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
            padding: 0 12px; border: 1px solid var(--line); border-radius: 999px;
            font-size: 14px; cursor: pointer; }
.gn__chon:has(input:checked) { border-color: var(--dong); color: var(--dong-dam); font-weight: 600; }
.gn__form:has(input[value="viec"]:checked) .gn__loai { display: none; }
.gc--xong .gc__chu { color: var(--text-muted); }
.gn__chon input { accent-color: var(--dong); }
/* Hàng nút dưới một ý nghĩ gãy thành hai dòng ở khổ điện thoại. Mỗi nút đã
   cao 44px để chạm, nên thêm khoảng hở giữa hai dòng chỉ làm chữ nhỏ trông
   như hai khối rời nhau. */
.gc__chan { row-gap: 0; }

/* BIG 3 Ở KHỔ ĐIỆN THOẠI. Ô chấm 44px + ba nút ↑ ↓ × (≈136px) chỉ chừa chừng
   100px cho tên việc: «Chạy hết danh mục phát hành» vỡ thành ba dòng mỗi dòng
   hai chữ. Tên việc là thứ duy nhất cần ĐỌC trên hàng này, nên nó lấy trọn
   dòng; ba nút xuống dòng dưới, thẳng mép với tên (sau ô chấm). */
@media (max-width: 559px) {
  .khoi--big3 .viec { flex-wrap: wrap; row-gap: 0; }
  .khoi--big3 .viec__ten { flex: 1 1 calc(100% - 44px - var(--space-2)); }
  .khoi--big3 .viec__sap { margin-left: calc(44px + var(--space-2)); }
}

/* Lưới 12 tuần ở màn CHI TIẾT kỷ luật: ô giãn theo chiều rộng thẻ (trần 300px)
   thay vì 12px cố định — màn này tồn tại để nhìn lưới, không phải để liếc. */
.luoi--12-tuan { grid-template-columns: repeat(7, minmax(0, 1fr)); max-width: 300px; gap: 6px; }
.luoi--12-tuan .o-ngay { width: auto; height: auto; aspect-ratio: 1; border-radius: 4px; }

/* TÊN MỤC TIÊU / DỰ ÁN Ở TIẾN ĐỘ — hai dòng rồi mới cắt. Lưới hai cột là cấu
   trúc của bản thiết kế nên GIỮ; nhưng ép một dòng thì ở 390px «Ra mắt SimpleX
   bản 1.0» còn «Ra mắt...» và «Đưa ThinQ ra bản dùng thử» còn «Đưa ThinQ ra...»
   — tên là thứ duy nhất nói thẻ này về cái gì. */
.td-mt__ten, .td-da__ten { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical;
                           -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; line-height: 1.3; }

/* Ô mục tiêu ở khổ điện thoại: nửa bề ngang (~170px) phải chứa biểu tượng,
   tên, thanh VÀ con số — tên còn chừng 60px. Vẫn giữ lưới hai cột của bản
   thiết kế, chỉ đưa thanh xuống dòng dưới tên, trong cùng ô. */
@media (max-width: 559px) {
  .td-mt__o { grid-template-columns: 18px minmax(0, 1fr) auto;
              grid-template-areas: "ico ten pt" "ico thanh thanh"; row-gap: 4px; padding: 8px 10px; }
  .td-mt__o .bt { grid-area: ico; }
  .td-mt__ten { grid-area: ten; }
  .td-mt__o .tc-thanh { grid-area: thanh; }
  .td-mt__pt { grid-area: pt; }
}

/* BỘ CÔNG CỤ ở khổ điện thoại: 35 thẻ một cột là trang dài gần 12.000px, trong
   khi mỗi thẻ chỉ có tên + hai dòng mô tả. Hai cột ~150px vẫn đọc trọn tên
   («Kế hoạch thẩm định»), và trang ngắn còn một nửa. */
@media (max-width: 559px) {
  .the-ds--cong-cu { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-1); }
  .the-ds--cong-cu .the__lien-ket { padding: 12px; }
  .the-ds--cong-cu .the__ten { font-size: 16px; line-height: 1.25; }
  .the-ds--cong-cu .the__mo-ta { font-size: 13px; }
}

/* Ô «thêm nhanh» đứng THẲNG trong màn (Bãi đỗ ý tưởng) chỉ có lề trên, nên từ
   khi khối thành thẻ nó dính sát mép thẻ ngay dưới. Trong thẻ thì không cần —
   thẻ đã có đệm riêng. */
.man > .them { margin-bottom: var(--space-3); }

/* Nút dạng liên kết («Xoá», «Bỏ») cao 44px nhưng chỉ rộng 26px — ngón tay cần
   cả hai chiều. Rộng tối thiểu 44px, chữ căn giữa trong đó. */
.lien-ket--nut { min-width: 44px; justify-content: center; }

/* VIỆC CẦN ANH. Chấm đếm trên chuông: chỉ hiện khi thật sự có thứ đang chờ. */
.dt__nut { position: relative; }
/* Nền dùng --accent (đồng ở nền sáng, vàng ở nền tối), KHÔNG phải --dong cố
   định: chữ --on-accent ở nền tối là gần-đen, đặt lên đồng #8C6A3F chỉ được
   3,78 — dưới ngưỡng 4,5 cho cỡ chữ 11px (đo 20/09/2026). */
.dt__so { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 4px;
          border-radius: 9px; background: var(--accent); color: var(--on-accent);
          font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; }
.ca-muc { margin: 0 0 var(--space-3); padding-bottom: var(--space-3);
          border-bottom: 1px solid var(--line); }
.ca-muc:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.ca-muc__cau { margin: 0 0 4px; font-family: var(--font-display); font-size: 18px; font-weight: 500; }
.ca-muc__vi-sao { margin: 0 0 var(--space-1); font-size: 14px; color: var(--text-muted); }

/* PHÚT ƯỚC của một việc: đứng cạnh tên, mờ hơn tên — tên vẫn là thứ đọc trước. */
.viec__phut { flex: 0 0 auto; font-size: 13px; color: var(--text-muted);
              font-variant-numeric: tabular-nums; }
.viec-tong { margin: var(--space-1) 0 0; font-size: 13px; color: var(--text-muted); }
.viec-tong--vuot { color: var(--state-danger); }

/* Nút ghim đứng ngay dưới tên công cụ — một dòng, không chiếm chỗ của việc. */
.ghim { margin: 0 0 var(--space-2); }

/* Chữ đồng CỠ NHỎ trên nền ngà chỉ đạt 4,35 — dưới ngưỡng 4,5 của chữ dưới
   24px. Ở NỀN SÁNG dùng sắc đồng đậm hơn; nền tối giữ nguyên --accent (vàng
   trên nền than đã thừa tương phản). */
:root:not([data-theme="dark"]) .tc-loi__muc--dang { color: var(--dong-dam); }

/* ═════ THINQ WHITE EDITION — nền tảng (Pha 1, 11/11/2026) ═══════════════════
   Đặc tả UI/UX v1.0 §3. Khối này đứng CUỐI tệp để thắng các luật cũ cùng độ
   đặc hiệu. Thành phần mới dùng thang 4px (--sp-*). */

/* ── Thanh đầu trang: logo chữ ký · ghi nhanh · chuông · ảnh ─────────────── */
.dt { padding: var(--sp-2) var(--sp-4); }
.dt__logo { gap: var(--sp-2); }
.dt__phai { gap: 0; }
.dt__nut { border-radius: 50%; color: var(--text); }
.dt__nut:hover { background: var(--surface-2); }
.dt__anh { width: 36px; height: 36px; background: var(--color-primary-soft); border: 0;
           color: var(--color-primary); font-size: 13px; }
.dt__so { background: var(--color-primary); color: #FFFFFF; }
@media (max-width: 379px) { .dt { padding-left: var(--sp-3); padding-right: var(--sp-2); } }
@media (min-width: 900px) { .dt { padding: var(--sp-3) var(--sp-8); } }

/* Ghi nhanh trên thanh đầu trang: nút tròn 44px, khung nhập thả xuống dưới. */
.dt .gn { position: static; right: auto; bottom: auto; z-index: auto; }
.dt .gn__nut { width: 44px; height: 44px; background: transparent; color: var(--text);
               box-shadow: none; font-size: inherit; }
.dt .gn__nut:hover, .dt .gn[open] .gn__nut { background: var(--surface-2); }
.dt .gn__form { position: fixed; top: calc(64px + env(safe-area-inset-top)); left: var(--sp-4);
                right: var(--sp-4); bottom: auto; width: auto; z-index: 70;
                border-radius: var(--radius-lg); background: var(--surface);
                box-shadow: 0 12px 32px rgb(23 23 23 / .10); }
@media (min-width: 900px) {
  .dt .gn__form { left: auto; right: var(--sp-8); width: 380px; }
}

/* ── Thanh điều hướng dưới: năm mục, mục đang chọn màu navy ─────────── */
.dh { background: rgb(255 255 255 / .96); border-top: 1px solid var(--color-divider); }
.dh__muc { min-height: 60px; padding: 10px 2px 8px; gap: 4px; color: var(--color-text-secondary); }
.dh__muc--dang { color: var(--color-primary); }
.dh__nhan { font-size: 11px; font-weight: 500; }
.dh__muc--dang .dh__nhan { font-weight: 600; }
@media (min-width: 900px) {
  .dh { background: var(--bg); border-right: 1px solid var(--color-divider); }
  .dh__muc { margin: 0 var(--sp-3); padding: 0 var(--sp-3); border-radius: var(--radius-md); }
  .dh__muc--dang { background: var(--color-primary-soft); }
  .dh__nhan { font-size: 14px; letter-spacing: 0; }
}

/* ── Nút ─────────────────────────────────────────────────────────────────── */
.nut-chinh, .nut-phu { display: inline-flex; align-items: center; justify-content: center;
                       gap: var(--sp-2); min-height: 44px; padding: 0 var(--sp-5);
                       border-radius: 999px; font-size: 15px; font-weight: 600;
                       text-decoration: none; cursor: pointer;
                       transition: background var(--motion-micro) var(--ease); }
.nut-chinh { background: var(--color-primary); color: #FFFFFF; border: 0; }
.nut-chinh:hover { background: var(--color-primary-hover); }
.nut-phu { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.nut-phu:hover { background: var(--surface-2); }
.nut-chinh--nho, .nut-phu--nho { padding: 0 var(--sp-4); font-size: 14px; }

/* ── MetricCard ──────────────────────────────────────────────────────────── */
.so-lieu { display: flex; flex-direction: column; align-items: center; gap: var(--sp-1);
           min-width: 0; padding: var(--sp-4) var(--sp-2) var(--sp-3);
           background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
           color: var(--text); text-decoration: none; }
.so-lieu:hover { border-color: var(--color-primary-soft); background: #FDFDFF; }
.so-lieu__ico { color: var(--color-primary); line-height: 0; }
.so-lieu__ico .bt { width: 26px; height: 26px; }
.so-lieu__so { font-size: 28px; font-weight: 600; line-height: 1.1; letter-spacing: -.02em; }
.so-lieu__nhan { font-size: 13px; color: var(--text-muted); }

/* ── ProgressBar & CircularProgress ─────────────────────────────────────── */
.thanh { display: block; height: 6px; overflow: hidden; border-radius: 999px;
         background: var(--color-divider); }
.thanh__day { display: block; width: var(--pt, 0%); height: 100%; border-radius: inherit;
              background: var(--color-primary); }
.vong { position: relative; display: inline-grid; place-items: center; line-height: 0; }
.vong__nen, .vong__day { fill: none; stroke-width: 9; }
.vong__nen { stroke: var(--color-divider); }
.vong__day { stroke: var(--color-primary); stroke-linecap: round; }
.vong__giua { position: absolute; inset: 0; display: flex; flex-direction: column;
              align-items: center; justify-content: center; line-height: 1.2; }

/* ── SectionHeader & EmptyState ──────────────────────────────────────────── */
.dau-muc { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2);
           margin: 0 0 var(--sp-3); }
.dau-muc__ten { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.dau-muc__xem { display: flex; align-items: center; justify-content: center;
                width: 44px; height: 44px; margin-right: -12px; border-radius: 50%; color: var(--text); }
.dau-muc__xem:hover { background: var(--surface-2); }
.trong { padding: var(--sp-6) var(--sp-4); text-align: center;
         background: var(--surface-2); border-radius: var(--radius-lg); }
.trong__cau { margin: 0 0 var(--sp-4); color: var(--text-muted); font-size: 15px; }

/* ── PriorityItem ────────────────────────────────────────────────────────── */
.uu-tien-ds { display: flex; flex-direction: column; gap: var(--sp-2); margin: 0; padding: 0; list-style: none; }
.uu-tien { position: relative; display: flex; align-items: center; gap: var(--sp-3);
           min-height: 56px; padding: var(--sp-1) var(--sp-1) var(--sp-1) var(--sp-3);
           background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.uu-tien__so { flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
               width: 26px; height: 26px; border-radius: 50%;
               background: var(--color-primary); color: #FFFFFF; font-size: 13px; font-weight: 600; }
.uu-tien__ico { flex: 0 0 auto; color: var(--text); line-height: 0; }
.uu-tien__ten { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; min-height: 44px;
                color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500;
                overflow-wrap: anywhere; }
.uu-tien--xong .uu-tien__ten { color: var(--text-muted); text-decoration: line-through;
                               text-decoration-color: var(--color-text-muted); }
.uu-tien--xong .uu-tien__so { background: var(--color-primary-soft); color: var(--color-primary); }
.uu-tien__xong { margin: 0; }
.uu-tien__o { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
              padding: 0; border: 0; background: none; cursor: pointer; color: #FFFFFF; }
/* Vòng 22px vẽ bằng ::before; vùng chạm là cả nút 44px. */
.uu-tien__o::before { content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%;
                      border: 1.5px solid var(--color-text-muted); }
.uu-tien__o { position: relative; }
.uu-tien__o .bt { position: relative; z-index: 1; width: 14px; height: 14px; stroke-width: 2.4; }
.uu-tien--xong .uu-tien__o::before { background: var(--color-primary); border-color: var(--color-primary); }
.uu-tien__menu { position: relative; flex: 0 0 auto; }
.uu-tien__nut { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
                list-style: none; cursor: pointer; color: var(--text-muted); border-radius: 50%; }
.uu-tien__nut::-webkit-details-marker { display: none; }
.uu-tien__nut:hover, .uu-tien__menu[open] .uu-tien__nut { background: var(--surface-2); }
.uu-tien__hop { position: absolute; right: 0; top: 46px; z-index: 20; min-width: 190px;
                padding: var(--sp-1); background: var(--surface); border: 1px solid var(--line);
                border-radius: var(--radius-md); box-shadow: 0 12px 32px rgb(23 23 23 / .10); }
.uu-tien__hop form { margin: 0; }
.uu-tien__lenh { display: flex; align-items: center; gap: var(--sp-2); width: 100%; min-height: 44px;
                 padding: 0 var(--sp-3); border: 0; border-radius: var(--radius-sm);
                 background: none; color: var(--text); font-size: 15px; text-align: left; cursor: pointer; }
.uu-tien__lenh:hover { background: var(--surface-2); }
.uu-tien__lenh .bt { width: 18px; height: 18px; }
.uu-tien__lenh--bo { color: var(--color-danger); }

/* ═════ TRANG CHỦ (/today) — bản thiết kế CSH 11/11/2026 tối ═════════════
   Trời núi xanh nhạt sau lời chào · thẻ số pha màu · bậc thang «Bắt đầu» ·
   thẻ trống có hình · thẻ gợi ý nền tím nhạt. Thẻ phân lớp bằng BÓNG MỀM
   (--shadow-soft) theo bản thiết kế, thay cho viền. */
.man--hn { max-width: min(560px, 100%); padding-top: 0; }
@media (min-width: 900px) { .man--hn { max-width: 720px; } }

.hn-chao { position: relative; display: flex; align-items: flex-start; justify-content: space-between;
           gap: var(--sp-4); margin: 0 calc(-1 * var(--space-3)); padding: var(--sp-4) var(--space-3) var(--sp-12);
           overflow: hidden; }
.hn-troi { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hn-chao__chu { position: relative; z-index: 1; min-width: 0; }
.hn-chao__buoi { margin: 0; font-size: 20px; font-weight: 500; color: var(--text); }
.hn-chao__ten { margin: 0; font-size: clamp(32px, 9vw, 40px); font-weight: 800; line-height: 1.12;
                letter-spacing: -.02em; overflow-wrap: anywhere; color: #10101C; }
.hn-chao__gach { display: block; width: 44px; height: 4px; margin-top: var(--sp-3); border-radius: 2px;
                 background: var(--color-primary-bright); }
.hn-ngay { position: relative; z-index: 1; flex: 0 0 auto; display: flex; align-items: center; gap: var(--sp-2);
           margin: 4px 0 0; padding: 10px 14px; border-radius: 16px; background: rgb(255 255 255 / .9);
           box-shadow: var(--shadow-soft); }
.hn-ngay__ico { color: var(--color-primary); line-height: 0; }
.hn-ngay__chu { display: flex; flex-direction: column; font-size: 13px; line-height: 1.3; color: var(--color-text-secondary); }
.hn-ngay time { color: var(--text); font-size: 15px; font-weight: 700; }

.hn-so { display: grid; grid-template-columns: repeat(var(--so-o, 3), minmax(0, 1fr)); gap: var(--sp-3);
         margin: calc(-1 * var(--sp-6)) 0 var(--sp-6); position: relative; z-index: 1; }
.so-lieu--tim { background: linear-gradient(160deg, #FFFFFF 10%, var(--color-tint-lavender) 100%); }
.so-lieu--lam { background: linear-gradient(160deg, #FFFFFF 10%, var(--color-tint-blue) 100%); }
.so-lieu--kem { background: linear-gradient(160deg, #FFFFFF 10%, var(--color-tint-cream) 100%); }

.hn-muc { margin: 0 0 var(--sp-6); }
.hn-muc__dau { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2);
               margin: 0 0 var(--sp-2); }
.hn-muc__ten { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.hn-xem { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--color-primary);
          font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.hn-xem .bt { width: 18px; height: 18px; }
.hn-tien-do { margin-top: var(--sp-5); }
.hn-tien-do__chu { display: flex; justify-content: space-between; margin: 0 0 var(--sp-2);
                   font-size: 14px; color: var(--text-muted); }
.hn-tien-do__chu b { color: var(--text); font-weight: 600; }
.hn-tien-do__pt { color: var(--color-primary); font-weight: 600; }

.hn-trong { display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-5) var(--sp-4);
            border-radius: 20px; background: linear-gradient(135deg, #ECEFFE 0%, #F6F7FF 100%); }
.hn-trong__hinh { flex: 0 0 auto; width: 88px; height: 88px; }
.hn-trong__chu { min-width: 0; }
.hn-trong__cau { margin: 0; font-size: 16px; font-weight: 600; color: var(--text); }
.hn-trong__phu { margin: 4px 0 var(--sp-3); font-size: 14px; color: var(--color-text-secondary); }
.hn-trong .nut-chinh .bt { width: 18px; height: 18px; }
@media (max-width: 379px) { .hn-trong__hinh { width: 60px; height: 60px; } }

.hn-goi-y { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-4);
            margin: 0 0 var(--sp-8); padding: var(--sp-5) var(--sp-4); border-radius: 20px;
            background: linear-gradient(120deg, #EEF0FE 0%, #E4E8FD 55%, #EEF0FE 100%); }
.hn-goi-y__ico { flex: 0 0 auto; align-self: flex-start; color: var(--color-primary-bright); line-height: 0; padding-top: 2px; }
.hn-goi-y__ico .bt { width: 28px; height: 28px; }
.hn-goi-y__chu { flex: 1 1 200px; min-width: 0; }
.hn-goi-y__cau { margin: 0 0 var(--sp-1); font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.hn-goi-y__vi-sao { margin: 0; font-size: 14px; color: var(--color-text-secondary); }
.hn-goi-y__nut { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-left: auto; }
.hn-goi-y__nut form { margin: 0; }
.hn-goi-y .nut-phu { background: #FFFFFF; border-color: transparent; }

/* ── «Bắt đầu với Thang»: bậc thang dọc (lớp riêng `bdt` — `bd` đã thuộc biểu đồ) */
.bdt { margin: 0 0 var(--sp-8); padding: var(--sp-5) var(--sp-4) var(--sp-2); border-radius: 24px;
       background: #FFFFFF; box-shadow: var(--shadow-soft); }
.bdt__dau { display: flex; align-items: center; gap: var(--sp-3); margin: 0 0 var(--sp-4);
            padding: 0 0 var(--sp-4); border-bottom: 1px solid var(--color-divider); }
.bdt__ico { flex: 0 0 auto; color: var(--color-primary); line-height: 0; }
.bdt__ico .bt { width: 34px; height: 34px; }
.bdt__dau-chu { flex: 1 1 auto; min-width: 0; }
.bdt__ten { margin: 0; font-size: clamp(19px, 5.2vw, 23px); font-weight: 700; letter-spacing: -.01em; }
.bdt__phu { margin: 2px 0 0; font-size: 13px; color: var(--color-text-secondary); }
.bdt__vong { flex: 0 0 auto; }
.bdt__vong .vong__nen { stroke: var(--color-primary-soft); }
.bdt__vong .vong__day { stroke: var(--color-primary-bright); }
.bdt__vong .vong__giua { font-size: 13px; font-weight: 700; }
.bdt__ds { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); margin: 0; padding: 0; list-style: none; }
.bdt__buoc { position: relative; display: flex; align-items: center; gap: var(--sp-3); }
.bdt__buoc:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 50%; width: 2px;
                                      height: calc(100% + var(--sp-3)); background: var(--color-primary-soft); }
.bdt__bac { position: relative; z-index: 1; flex: 0 0 28px; display: flex; align-items: center; justify-content: center;
           width: 28px; height: 28px; border: 1.5px solid #C9CEDF; border-radius: 50%; background: #FFFFFF;
           font-size: 13px; font-weight: 600; color: var(--text); }
.bdt__buoc--ke .bdt__bac, .bdt__buoc--xong .bdt__bac { border-color: transparent; background: var(--color-primary-bright); color: #FFFFFF; }
.bdt__bac .bt { width: 16px; height: 16px; stroke-width: 2.6; }
.bdt__the { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: var(--sp-3); min-height: 64px;
            padding: var(--sp-3); border: 1px solid var(--color-border); border-radius: 16px; background: #FFFFFF;
            color: inherit; text-decoration: none; }
.bdt__buoc--ke .bdt__the { border-color: #D3DAFB; background: linear-gradient(90deg, #ECEFFE 0%, #F5F7FF 100%);
                           box-shadow: 0 6px 16px rgb(28 33 252 / .08); }
.bdt__the-ico { flex: 0 0 40px; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
                border-radius: 50%; background: var(--color-tint-lavender); color: var(--color-primary-bright); }
.bdt__buoc--ke .bdt__the-ico { background: #FFFFFF; }
.bdt__the-ico .bt { width: 22px; height: 22px; }
.bdt__chu { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bdt__buoc-ten { font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--text); }
.bdt__vi-sao { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
               font-size: 13px; line-height: 1.4; color: var(--color-text-secondary); }
.bdt__buoc--xong .bdt__buoc-ten { color: var(--color-text-secondary); }
.bdt__nut { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 var(--sp-4);
            border: 1px solid var(--color-border); border-radius: 999px; background: #FFFFFF;
            font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; }
.bdt__nut--chinh { border-color: transparent; background: var(--color-primary); color: #FFFFFF; }
.bdt__nut .bt { width: 16px; height: 16px; }
.bdt__mo { flex: 0 0 auto; color: var(--color-text-secondary); line-height: 0; }
.bdt__an { display: flex; justify-content: center; margin: var(--sp-1) 0 0; }
.bdt__an .lien-ket { font-size: 13px; color: var(--color-text-secondary); }
@media (max-width: 419px) {
  .bdt { padding-left: var(--sp-3); padding-right: var(--sp-3); }
  .bdt__the { gap: var(--sp-2); padding: var(--sp-2) var(--sp-3) var(--sp-2) var(--sp-2); }
  .bdt__the-ico { flex-basis: 34px; width: 34px; height: 34px; }
  .bdt__nut { padding: 0 var(--sp-3); }
}
/* Máy hẹp nhất (360px): bỏ vòng biểu tượng để tên bước không bị ép xuống từng chữ. */
@media (max-width: 379px) { .bdt__the-ico { display: none; } }

/* Khám phá: hàng «Tìm · Mọi khu» (chuyển từ thanh đầu trang). */
.kp-loi { display: flex; gap: var(--sp-2); margin: 0 0 var(--sp-4); }
.kp-loi .bt { width: 18px; height: 18px; }

/* Việc lớn nhất: đứng đầu danh sách, nền hồng nhạt, biểu tượng thay số. */
.uu-tien--lon { background: var(--color-primary-soft); border-color: transparent; }
.uu-tien--lon .uu-tien__so .bt { width: 16px; height: 16px; stroke-width: 2; }
.uu-tien__phu { display: block; font-size: 12px; font-weight: 500; color: var(--color-primary); }
.uu-tien--lon.uu-tien--xong .uu-tien__phu { text-decoration: none; }

/* ═════ DỰ ÁN (/projects) — Pha 3, 11/11/2026 ════════════════════════════ */
.man--hep { max-width: min(560px, 100%); padding-top: var(--sp-2); }
@media (min-width: 900px) { .man--hep { max-width: 720px; } }

/* AppHeader của màn */
.dau-man { display: flex; align-items: center; gap: var(--sp-2); min-height: 52px; margin: 0 0 var(--sp-5); }
.dau-man__ve { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
               margin-left: -12px; border-radius: 50%; color: var(--text); }
.dau-man__ve:hover { background: var(--surface-2); }
.dau-man__ten { flex: 1 1 auto; min-width: 0; margin: 0; font-size: clamp(22px, 6vw, 26px); font-weight: 700;
                letter-spacing: -.02em; line-height: 1.2; overflow-wrap: anywhere; }
.dau-man__phai { flex: 0 0 auto; display: flex; gap: var(--sp-1); }
.nut-tron { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
            border: 1px solid var(--line); border-radius: 50%; background: var(--surface);
            color: var(--text); list-style: none; cursor: pointer; }
.nut-tron::-webkit-details-marker { display: none; }
.nut-tron:hover { background: var(--surface-2); }

/* Segmented control */
.phan-doan { display: flex; gap: var(--sp-1); margin: 0 0 var(--sp-5); padding: var(--sp-1);
             background: var(--surface-2); border-radius: 999px; overflow-x: auto; scrollbar-width: none; }
.phan-doan::-webkit-scrollbar { display: none; }
.phan-doan form { display: flex; flex: 1 1 0; margin: 0; }
.phan-doan__muc { flex: 1 1 0; display: flex; align-items: center; justify-content: center; min-height: 44px;
                  padding: 0 var(--sp-3); border: 0; border-radius: 999px; background: none;
                  color: var(--text-muted); font-size: 14px; font-weight: 500; white-space: nowrap;
                  text-decoration: none; cursor: pointer; }
.phan-doan__muc--dang { background: var(--surface); color: var(--color-primary); font-weight: 600;
                        box-shadow: 0 1px 2px rgb(23 23 23 / .08); }
.phan-doan--form { margin: 0; }
/* Dạng radio (form tạo): ô chọn nằm ẩn, nhãn là cái bấm. */
.phan-doan--chon { margin: var(--sp-2) 0 0; }
.phan-doan--chon .phan-doan__muc { position: relative; }
.phan-doan--chon input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.phan-doan--chon .phan-doan__muc:has(input:checked) { background: var(--surface); color: var(--color-primary);
                                                       font-weight: 600; box-shadow: 0 1px 2px rgb(23 23 23 / .08); }
.phan-doan--chon .phan-doan__muc:has(input:focus-visible) { outline: 2px solid var(--accent); }

/* ProjectCard */
.ds-da { display: flex; flex-direction: column; gap: var(--sp-3); margin: 0 0 var(--sp-10); }
.the-da { display: flex; align-items: center; gap: var(--sp-4); min-height: 76px; padding: var(--sp-4);
          background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
          color: var(--text); text-decoration: none; }
.the-da:hover { border-color: #DCDCDC; }
.the-da--dong { background: var(--surface-2); border-color: transparent; }
.the-da__ico { flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
               width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); color: var(--text); }
.the-da--dong .the-da__ico { background: var(--surface); }
.the-da__ico .bt { width: 24px; height: 24px; }
.the-da__giua { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.the-da__ten { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.the-da__phu { font-size: 12px; color: var(--text-muted); }
.the-da__ket { color: var(--color-danger); font-weight: 600; }
.the-da__hang { display: flex; align-items: center; gap: var(--sp-3); margin-top: var(--sp-2); }
.the-da__hang .thanh { flex: 1 1 auto; }
.the-da__pt { flex: 0 0 38px; text-align: right; font-size: 14px; font-weight: 600; }
.the-da__toi { flex: 0 0 auto; color: var(--color-text-muted); line-height: 0; }
.o-nhanh--da { display: flex; gap: var(--sp-2); margin: 0; }
.o-nhanh--da .o__nhap { flex: 1 1 auto; min-width: 0; border-radius: 999px; padding-left: var(--sp-4); }

/* Lĩnh vực & nền tảng */
.nen { margin: 0 0 var(--sp-8); }
.nen__ten { margin: 0 0 var(--sp-3); }
.nen-ds { margin: 0 0 var(--sp-6); padding: 0; list-style: none;
          border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.nen-ds li + li { border-top: 1px solid var(--color-divider); }
.nen-muc { display: flex; align-items: center; gap: var(--sp-3); min-height: 56px; padding: 0 var(--sp-4);
           color: var(--text); text-decoration: none; background: var(--surface); }
.nen-muc:hover { background: #FCFCFC; }
.nen-muc__ico { flex: 0 0 auto; color: var(--color-primary); line-height: 0; }
.nen-muc__ten { flex: 1 1 auto; min-width: 0; font-size: 15px; font-weight: 500; }
.nen-muc__so { flex: 0 0 auto; font-size: 12px; font-weight: 600; color: var(--color-primary);
               background: var(--color-primary-soft); border-radius: 999px; padding: 2px var(--sp-2); }
.nen-muc__toi { flex: 0 0 auto; color: var(--color-text-muted); line-height: 0; }
/* Ô mục tiêu ở màn chi tiết: một dòng đứng riêng, có viền. */
.da-muc > .nen-muc { border: 1px solid var(--line); border-radius: var(--radius-lg); }

/* Chi tiết dự án */
.da-tq { margin: 0 0 var(--sp-6); padding: var(--sp-5); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.da-tq__dau { display: flex; align-items: center; justify-content: space-between; margin: 0 0 var(--sp-4); }
.da-tq__ico { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px;
              border-radius: 14px; background: var(--surface-2); }
.da-tq__ico .bt { width: 26px; height: 26px; }
.chip { display: inline-flex; align-items: center; min-height: 28px; padding: 0 var(--sp-3);
        border-radius: 999px; background: var(--surface-2); color: var(--text-muted); font-size: 13px; font-weight: 500; }
.chip--chinh { background: var(--color-primary-soft); color: var(--color-primary); }
.da-tq__so { display: flex; align-items: center; gap: var(--sp-5); }
.da-tq__pt { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.da-tq__pt-nhan { font-size: 12px; color: var(--text-muted); }
.da-tq__ds { display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; margin: 0; padding: 0;
             list-style: none; font-size: 14px; color: var(--text-muted); }
.da-tq__ds b { color: var(--text); font-weight: 600; }
.da-tq__vi-sao { margin: var(--sp-4) 0 0; font-size: 15px; color: var(--text); }
.da-ket { margin: var(--sp-3) 0 0; padding: var(--sp-3); border-radius: var(--radius-md);
          background: #FBEDED; color: var(--text); font-size: 14px; }
.da-ket b { color: var(--color-danger); }
.da-muc { margin: 0 0 var(--sp-8); }
.da-muc > .dau-muc__ten { margin: 0 0 var(--sp-3); }
.da-rong { margin: 0 0 var(--sp-3); font-size: 14px; color: var(--text-muted); }

/* Dòng việc có ô xong */
.mv-ds { display: flex; flex-direction: column; margin: 0 0 var(--sp-3); padding: 0; list-style: none;
         border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.mv { display: flex; align-items: center; gap: var(--sp-1); min-height: 52px; padding: 0 var(--sp-2) 0 var(--sp-1); }
.mv + .mv { border-top: 1px solid var(--color-divider); }
.mv__xong, .mv__xoa { margin: 0; }
.mv__o { position: relative; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
         padding: 0; border: 0; background: none; color: #FFFFFF; cursor: pointer; }
.mv__o::before { content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%;
                 border: 1.5px solid var(--color-text-muted); }
.mv--xong .mv__o::before { background: var(--color-primary); border-color: var(--color-primary); }
.mv__o .bt { position: relative; z-index: 1; width: 14px; height: 14px; stroke-width: 2.4; }
.mv__ten { flex: 1 1 auto; min-width: 0; font-size: 15px; overflow-wrap: anywhere; }
.mv--xong .mv__ten { color: var(--text-muted); text-decoration: line-through; text-decoration-color: var(--color-text-muted); }
.mv__phu { margin-left: var(--sp-2); font-size: 12px; color: var(--text-muted); }
.mv__nut-xoa { min-width: 44px; min-height: 44px; border: 0; background: none; color: var(--text-muted);
               font-size: 13px; cursor: pointer; }
.mv__nut-xoa:hover { color: var(--color-danger); }
.them-nhanh { display: flex; gap: var(--sp-2); margin: 0; }
.them-nhanh .o__nhap { flex: 1 1 auto; min-width: 0; }

.da-ai { display: flex; align-items: center; gap: var(--sp-3); min-height: 56px; margin: 0 0 var(--sp-8);
         padding: 0 var(--sp-4); border-radius: var(--radius-lg); background: var(--color-primary-soft);
         color: var(--text); text-decoration: none; font-weight: 600; }
.da-ai__ico { color: var(--color-primary); line-height: 0; }
.da-ai__chu { flex: 1 1 auto; }

/* Menu nhỏ «⋯» ở đầu màn */
.menu-nho { position: relative; }
.menu-nho__hop { position: absolute; right: 0; top: 50px; z-index: 30; min-width: 180px; padding: var(--sp-1);
                 background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
                 box-shadow: 0 12px 32px rgb(23 23 23 / .10); }
.menu-nho:not([open]) .menu-nho__hop { display: none; }
.menu-nho__lenh { display: flex; align-items: center; min-height: 44px; padding: 0 var(--sp-3);
                  border-radius: var(--radius-sm); color: var(--text); text-decoration: none; }
.menu-nho__lenh:hover { background: var(--surface-2); }
.menu-nho__lenh--do { color: var(--color-danger); }

/* Form tạo / sửa */
.form-man { display: flex; flex-direction: column; gap: var(--sp-1); }
.chon-ico { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sp-2); margin-top: var(--sp-2); }
.chon-ico__o { position: relative; display: flex; justify-content: center; }
.chon-ico__o input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chon-ico__hinh { display: flex; align-items: center; justify-content: center; width: 100%; max-width: 56px;
                  aspect-ratio: 1; border: 1px solid var(--line); border-radius: 14px; color: var(--text); }
.chon-ico__o input:checked + .chon-ico__hinh { border-color: var(--color-primary); background: var(--color-primary-soft);
                                               color: var(--color-primary); }
.chon-ico__o input:focus-visible + .chon-ico__hinh { outline: 2px solid var(--accent); outline-offset: 2px; }
.nut-chinh--rong { width: 100%; margin-top: var(--sp-4); min-height: 52px; }
.form-man .o__nhan { margin-bottom: var(--sp-2); font-size: 14px; font-weight: 500; letter-spacing: 0;
                     text-transform: none; color: var(--text); }
/* Nút không gãy dòng: «Thêm mốc» gãy hai dòng ở 390px trông như hai nút. */
.nut-chinh, .nut-phu { white-space: nowrap; flex: 0 0 auto; }

/* ═════ THINK & AI — Pha 4, 11/11/2026 ═══════════════════════════════════ */
.nut-tron--nhe { border-color: transparent; background: transparent; }
.nut-tron--phu { border-color: transparent; background: var(--surface-2); }
.nut-tron.dang-nghe, .ai-o__nut.dang-nghe { background: var(--color-primary); color: #FFFFFF; }
.menu-nho__hop--trai { right: auto; left: 0; }
.menu-nho__hop form { margin: 0; }
.menu-nho__hop button.menu-nho__lenh { width: 100%; border: 0; background: none; font-size: 15px;
                                       text-align: left; cursor: pointer; }

/* Hộp ý tưởng — ghi nhanh */
.ghi-y { margin: 0 0 var(--sp-4); padding: var(--sp-3); border: 1px solid var(--line); border-radius: var(--radius-lg);
         background: var(--surface); }
.ghi-y:focus-within { border-color: var(--color-primary); }
.ghi-y__o { display: block; width: 100%; min-height: 56px; padding: var(--sp-1); border: 0; resize: vertical;
            background: none; color: var(--text); }
.ghi-y__o:focus { outline: none; }
.ghi-y__hang { display: flex; align-items: center; gap: var(--sp-2); margin-top: var(--sp-2); }
.ghi-y__loai { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 0 var(--sp-3);
               border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); color: var(--text); }
.tim-y { position: relative; margin: 0 0 var(--sp-4); }
.tim-y__ico { position: absolute; left: var(--sp-4); top: 50%; transform: translateY(-50%); color: var(--color-text-muted); line-height: 0; }
.tim-y__ico .bt { width: 18px; height: 18px; }
.tim-y__o { width: 100%; min-height: 48px; padding: 0 var(--sp-4) 0 44px; border: 1px solid var(--line);
            border-radius: 999px; background: var(--surface-2); color: var(--text); }
.the-ds { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: calc(-1 * var(--sp-2)) 0 var(--sp-5); }
.the-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--sp-3);
            border-radius: 999px; background: var(--surface-2); color: var(--text); font-size: 14px; text-decoration: none; }
.the-chip--dang { background: var(--color-primary-soft); color: var(--color-primary); font-weight: 600; }
.y-ai { margin: 0 0 var(--sp-5); }
.y-ai__nut { display: flex; align-items: center; gap: var(--sp-2); width: 100%; min-height: 52px; padding: 0 var(--sp-4);
             border: 0; border-radius: var(--radius-lg); background: var(--color-primary-soft);
             color: var(--text); font-weight: 600; text-align: left; cursor: pointer; }
.y-ai__nut .bt { color: var(--color-primary); }
.y-nhom { margin: 0 0 var(--sp-6); }
.y-nhom__ngay { margin: 0 0 var(--sp-2); font-size: 13px; font-weight: 600; color: var(--text-muted); }
.y-ds { display: flex; flex-direction: column; gap: var(--sp-2); margin: 0; padding: 0; list-style: none; }
.y-the { padding: var(--sp-2) var(--sp-2) var(--sp-3) var(--sp-4); border: 1px solid var(--line);
         border-radius: var(--radius-lg); background: var(--surface); }
.y-the--xong { background: var(--surface-2); border-color: transparent; }
.y-the--xong .y-the__chu { color: var(--text-muted); }
.y-the__dau { display: flex; align-items: center; gap: var(--sp-2); }
.y-the__gio { flex: 1 1 auto; min-width: 0; font-size: 12px; color: var(--text-muted); }
.y-the__chu { margin: var(--sp-1) var(--sp-2) 0 0; font-size: 15px; white-space: pre-line; overflow-wrap: anywhere; }

/* ThinQ AI */
.man--ai { padding-bottom: calc(180px + env(safe-area-inset-bottom)); }
.ai-dau { display: flex; align-items: center; justify-content: space-between; margin: 0 0 var(--sp-4); }
.ai-dau__ten { display: flex; align-items: center; gap: var(--sp-2); margin: 0; font-size: 20px; font-weight: 700; }
.ai-dau__ten .bt { color: var(--color-primary); }
.ai-chao { display: flex; flex-direction: column; align-items: center; padding: var(--sp-6) 0 var(--sp-6); text-align: center; }
.ai-chao__vong { display: flex; align-items: center; justify-content: center; width: 176px; height: 176px;
                 border-radius: 50%; background: #FFFFFF;
                 box-shadow: 0 0 0 14px var(--color-primary-soft), 0 18px 48px rgb(163 36 56 / .12); }
.ai-chao__vong img { width: 132px; height: 132px; object-fit: contain; }
.ai-chao__ten { margin: var(--sp-10) 0 0; font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.ai-chao__song { font-size: 22px; line-height: 1; color: var(--text); }
.ai-nho { margin: var(--sp-3) 0 0; font-size: 12px; color: var(--text-muted); text-align: center; }
.ai-nhanh { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-3); margin: 0 0 var(--sp-6); }
.ai-nhanh form { margin: 0; }
.ai-nhanh__nut { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); width: 100%;
                 padding: 0; border: 0; background: none; color: var(--text); cursor: pointer; }
.ai-nhanh__ico { display: flex; align-items: center; justify-content: center; width: 100%; max-width: 64px;
                 aspect-ratio: 1; border: 1px solid var(--line); border-radius: 16px; color: var(--color-primary); }
.ai-nhanh__nut:hover .ai-nhanh__ico { background: var(--color-primary-soft); }
.ai-nhanh__nhan { font-size: 12px; line-height: 1.3; color: var(--text-muted); }

.ai-ds { display: flex; flex-direction: column; gap: var(--sp-4); margin: 0 0 var(--sp-6); padding: 0; list-style: none; }
.ai-luot { max-width: 88%; }
.ai-luot--nguoi { align-self: flex-end; }
.ai-luot__ai-noi { margin: 0 0 var(--sp-1); font-size: 12px; color: var(--text-muted); }
.ai-luot--nguoi .ai-luot__ai-noi { text-align: right; }
.ai-luot__chu { padding: var(--sp-3) var(--sp-4); border-radius: 18px; white-space: pre-line; overflow-wrap: anywhere;
                font-size: 15px; line-height: 1.55; }
.ai-luot--ai .ai-luot__chu { background: var(--surface-2); border-top-left-radius: 6px; }
.ai-luot--nguoi .ai-luot__chu { background: var(--color-primary); color: #FFFFFF; border-top-right-radius: 6px; }
.de-xuat { margin-top: var(--sp-2); padding: var(--sp-3); border: 1px solid var(--line); border-radius: var(--radius-md); }
.de-xuat--da_lam, .de-xuat--bo { background: var(--surface-2); border-color: transparent; }
.de-xuat__chu { margin: 0 0 var(--sp-2); font-size: 14px; }
.de-xuat__nut { display: flex; gap: var(--sp-2); }
.de-xuat__nut form { margin: 0; }
.de-xuat__xong { margin: 0; font-size: 12px; color: var(--text-muted); }

.ai-o { position: fixed; left: var(--sp-4); right: var(--sp-4); z-index: 40;
        bottom: calc(76px + env(safe-area-inset-bottom));
        display: flex; align-items: flex-end; gap: var(--sp-1); padding: var(--sp-1) var(--sp-1) var(--sp-1) var(--sp-4);
        border: 1px solid var(--line); border-radius: 28px; background: var(--surface);
        box-shadow: 0 8px 24px rgb(23 23 23 / .06); }
.ai-o__nhap { flex: 1 1 auto; min-width: 0; min-height: 44px; max-height: 160px; padding: 10px 0; border: 0;
              resize: none; background: none; color: var(--text); line-height: 1.5; }
.ai-o__nhap:focus { outline: none; }
.ai-o:focus-within { border-color: var(--color-primary); }
.ai-o__nut { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
             border: 0; border-radius: 50%; background: var(--color-primary); color: #FFFFFF; cursor: pointer; }
.ai-o__nut--phu { background: var(--surface-2); color: var(--text); }
@media (min-width: 900px) {
  .ai-o { left: calc(200px + var(--sp-8)); right: auto; width: min(720px, calc(100vw - 200px - 2 * var(--sp-8))); bottom: var(--sp-8); }
  .man--ai { padding-bottom: 160px; }
}

/* ═════ FOCUS (/focus) — Pha 5, 11/11/2026 ═══════════════════════════════ */
.tt { padding-top: var(--sp-4); }
.tt-vong-o { display: flex; justify-content: center; margin: var(--sp-2) 0 var(--sp-6); }
.tt-vong-o--nho .tt-vong { width: min(200px, 60vw); }
.tt-vong { position: relative; width: min(280px, 76vw); aspect-ratio: 1; }
.tt-vong__svg { display: block; width: 100%; height: 100%; }
.tt-vong__nen, .tt-vong__day { fill: none; stroke-width: 6; }
.tt-vong__nen { stroke: var(--color-divider); }
.tt-vong__day { stroke: var(--color-primary); stroke-linecap: round; transition: stroke-dasharray .25s linear; }
.tt-vong__giua { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
                 justify-content: center; gap: var(--sp-2); }
.tt-vong__giua form { margin: 0; }
.tt-vong__nhan { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; color: var(--text); }
.tt-vong__nhan .bt { width: 20px; height: 20px; color: var(--color-primary); }
.tt-vong__so { font-size: clamp(44px, 14vw, 60px); font-weight: 700; letter-spacing: -.03em; line-height: 1;
               font-variant-numeric: tabular-nums; }
.tt-vong__so--qua { color: var(--color-primary); }
.tt-play { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px;
           margin-top: var(--sp-2); border: 0; border-radius: 50%; background: var(--color-primary); color: #FFFFFF;
           box-shadow: 0 8px 20px rgb(163 36 56 / .28); cursor: pointer; }
.tt-play:hover { background: var(--color-primary-hover); }
.tt-play .bt { width: 26px; height: 26px; }
.tt--nghi .tt-vong__day { stroke: var(--color-success); }
.tt--nghi .tt-vong__nhan .bt { color: var(--color-success); }

.tt-viec { margin: 0 0 var(--sp-1); font-size: 18px; font-weight: 600; text-align: center; overflow-wrap: anywhere; }
.tt-y-dinh { margin: 0 0 var(--sp-6); font-size: 14px; color: var(--text-muted); text-align: center; }
.tt-dem { margin: calc(-1 * var(--sp-3)) 0 var(--sp-5); font-size: 13px; color: var(--text-muted); text-align: center; }

.tt-phu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); margin: 0 0 var(--sp-6); }
.tt-phu__nut { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-1);
               min-height: 72px; padding: var(--sp-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
               background: var(--surface); color: var(--text); font-size: 12px; cursor: pointer; list-style: none; }
.tt-phu__nut::-webkit-details-marker { display: none; }
.tt-phu__nut[hidden] { display: none; }
.tt-phu__nut[aria-pressed="true"], .tt-phu__mo[open] > .tt-phu__nut { border-color: var(--color-primary);
                                                                       background: var(--color-primary-soft); color: var(--color-primary); }
.tt-phu__nhan { line-height: 1.2; text-align: center; color: var(--text-muted); }
.tt-phu__mo { position: static; }
.tt-phu__mo:not([open]) .tt-hop { display: none; }
.tt-hop { grid-column: 1 / -1; display: flex; flex-direction: column; gap: var(--sp-3); margin-top: var(--sp-3);
          padding: var(--sp-4); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.tt-hop form { display: flex; flex-direction: column; gap: var(--sp-2); margin: 0; }
.tt-hop__phan-tam { padding-top: var(--sp-3); border-top: 1px solid var(--color-divider); }
.tt-hop .nut-phu { align-self: flex-end; }
/* Hộp «Ghi ý» mở rộng ra cả bề ngang dưới ba ô. */
.tt-phu:has(.tt-phu__mo[open]) .tt-phu__mo { display: contents; }
.tt-phu:has(.tt-phu__mo[open]) .tt-phu__mo > .tt-phu__nut { grid-column: auto; }

.tt-chan { display: flex; align-items: center; gap: var(--sp-3); min-height: 56px; margin: var(--sp-6) 0 var(--sp-4);
           padding: 0 var(--sp-4); border: 1px solid var(--line); border-radius: var(--radius-lg);
           color: var(--text); text-decoration: none; }
.tt-chan__ico { color: var(--color-primary); line-height: 0; }
.tt-chan__chu { flex: 1 1 auto; font-weight: 500; }
.tt-chan__so { font-size: 14px; color: var(--text-muted); }
.tt-chan__so b { color: var(--text); }

.tt-tom { display: flex; gap: var(--sp-3); align-items: flex-start; margin: 0 0 var(--sp-5); padding: var(--sp-4);
          border-radius: var(--radius-lg); background: #EAF5EF; }
.tt-tom__ico { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px;
               border-radius: 50%; background: var(--color-success); color: #FFFFFF; }
.tt-tom__ico .bt { width: 18px; height: 18px; stroke-width: 2.4; }
.tt-tom__ten { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.tt-tom__phu { margin: 2px 0 0; font-size: 13px; color: var(--text-muted); }

.tt-chon { display: flex; flex-direction: column; gap: var(--sp-1); }

.tt-viec__o { position: relative; display: flex; align-items: center; min-height: 48px; padding: 0 var(--sp-4);
              border: 1px solid var(--line); border-radius: var(--radius-md); cursor: pointer; }
.tt-viec__o input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tt-viec__o:has(input:checked) { border-color: var(--color-primary); background: var(--color-primary-soft); color: var(--color-primary); font-weight: 600; }
.tt-viec__o:has(input:focus-visible) { outline: 2px solid var(--accent); }
fieldset.o .tt-chon-viec { display: flex; flex-direction: column; gap: var(--sp-2); margin: 0 0 var(--sp-2); }
.tt-bo { margin: var(--sp-3) 0 var(--sp-8); text-align: center; }

.hn-so--phang { margin: 0 0 var(--sp-2); }
.so-lieu--tinh:hover { border-color: var(--line); background: var(--surface); }
.so-lieu--tinh .so-lieu__so { font-size: 22px; }
.tt-ls { justify-content: space-between; padding: var(--sp-2) var(--sp-4); }
.tt-ls__ten { min-width: 0; font-size: 15px; overflow-wrap: anywhere; }
.tt-ls__ten .mv__phu { display: block; margin: 2px 0 0; }
.tt-ls__so { flex: 0 0 auto; font-size: 14px; font-weight: 600; }
.tt-ls--khong .tt-ls__so { font-weight: 400; color: var(--text-muted); }
/* 360px: bốn lựa chọn thời lượng phải vừa một hàng; chân màn không gãy dòng. */
@media (max-width: 400px) {
  .phan-doan__muc { padding: 0 var(--sp-2); font-size: 13px; }
}
.tt-chan__chu, .tt-chan__so { white-space: nowrap; }
.tt-chan__chu { font-size: 15px; }
@media (max-width: 400px) { .tt-chan { gap: var(--sp-2); padding: 0 var(--sp-3); } .tt-chan__chu, .tt-chan__so { font-size: 13px; } }

/* ═════ INSIGHT & CÁ NHÂN — Pha 6, 11/11/2026 ════════════════════════════ */
.chip--nho { min-height: 20px; padding: 0 var(--sp-2); font-size: 11px; }

/* Insight — thẻ hiệu suất */
.is-the { margin: 0 0 var(--sp-8); padding: var(--sp-5); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.is-hs { display: flex; align-items: center; gap: var(--sp-6); }
.is-hs__so { font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.is-hs__ten { margin: 0; font-size: 20px; font-weight: 600; }
.is-hs__giai { margin: var(--sp-1) 0 0; font-size: 12px; color: var(--text-muted); }
.is-bd { margin: var(--sp-1) 0 0; font-size: 16px; font-weight: 600; }
.is-bd--len { color: var(--color-success); }
.is-bd--xuong { color: var(--color-danger); }
.is-bd__chu { display: block; font-size: 12px; font-weight: 400; color: var(--text-muted); }
.is-thieu { margin: 0; padding: var(--sp-3); border-radius: var(--radius-md); background: var(--surface-2);
            font-size: 14px; color: var(--text-muted); }
.is-so { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: var(--sp-5);
         padding-top: var(--sp-4); border-top: 1px solid var(--color-divider); }
.is-so__o { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.is-so__o + .is-so__o { border-left: 1px solid var(--color-divider); }
.is-so__ico { color: var(--color-primary); line-height: 0; margin-bottom: var(--sp-1); }
.is-so__so { font-size: 20px; font-weight: 700; }
.is-so__nhan { font-size: 12px; color: var(--text-muted); }
.is-dd { margin: 0 0 var(--sp-2); font-size: 32px; font-weight: 700; letter-spacing: -.02em; }

/* Biểu đồ đường */
.bd { margin: 0; }
.bd__svg { display: block; width: 100%; height: 140px; overflow: visible; }
.bd__luoi { stroke: var(--color-divider); stroke-width: 1; vector-effect: non-scaling-stroke; }
.bd__vung { fill: var(--color-primary-soft); }
.bd__duong { fill: none; stroke: var(--color-primary); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.bd__cham { fill: #FFFFFF; stroke: var(--color-primary); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.bd__cham--cuoi { fill: var(--color-primary); }
.bd__chu { display: flex; justify-content: space-between; margin-top: var(--sp-2); font-size: 12px; color: var(--text-muted); }

/* Cân bằng */
.cb-ds { display: flex; flex-direction: column; gap: var(--sp-3); margin: 0 0 var(--sp-2); padding: 0; list-style: none; }
.cb-ds__muc { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 8fr) 40px; align-items: center; gap: var(--sp-3); }
.cb-ds__ten { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-ds__so { font-size: 14px; font-weight: 600; text-align: right; }

/* Personal Intelligence */
.pi { margin: 0 0 var(--sp-8); padding: var(--sp-5); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.pi__dau { display: flex; align-items: center; justify-content: space-between; margin: 0 0 var(--sp-4); }
.pi__than { display: grid; gap: var(--sp-4); }
.pi__than--radar { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: center; }
@media (max-width: 420px) { .pi__than--radar { grid-template-columns: 1fr; } .pi__than--radar .radar { max-width: 200px; margin: 0 auto; } }
.radar { display: block; width: 100%; height: auto; }
.radar__luoi { fill: none; stroke: var(--color-border); stroke-width: .6; }
.radar__truc { stroke: var(--color-divider); stroke-width: .6; }
.radar__vung { fill: rgb(163 36 56 / .14); stroke: var(--color-primary); stroke-width: 1.2; stroke-linejoin: round; }
.radar__cham { fill: #FFFFFF; stroke: var(--color-primary); stroke-width: 1.2; }
.pi-ds { display: flex; flex-direction: column; gap: var(--sp-3); margin: 0; padding: 0; list-style: none; }
.pi-ds__muc { display: flex; gap: var(--sp-3); align-items: flex-start; }
.pi-ds__ico { flex: 0 0 auto; color: var(--color-primary); line-height: 0; padding-top: 2px; }
.pi-ds__ico .bt { width: 20px; height: 20px; }
.pi-ds__giua { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pi-ds__ten { font-size: 14px; font-weight: 500; }
.pi-ds__hang { display: flex; align-items: center; gap: var(--sp-2); }
.pi-ds__hang .thanh { flex: 1 1 auto; }
.pi-ds__so { flex: 0 0 38px; text-align: right; font-size: 13px; font-weight: 600; }
.pi-ds__qs { font-size: 12px; color: var(--text-muted); }
.pi__chu { margin: var(--sp-4) 0 0; font-size: 12px; color: var(--text-muted); }
.pi__nguon { display: inline-block; width: 14px; height: 6px; border-radius: 3px; vertical-align: middle; }
.pi__nguon--tu { background: var(--color-primary); }

/* Cá nhân */
.cn-the { display: flex; align-items: center; gap: var(--sp-4); margin: 0 0 var(--sp-6); padding: var(--sp-4);
          border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--text); text-decoration: none; }
.cn-the__anh { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 64px; height: 64px;
               border-radius: 50%; background: var(--color-primary-soft); color: var(--color-primary);
               font-size: 22px; font-weight: 700; }
.cn-the__giua { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cn-the__ten { font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
.cn-the__phu { font-size: 14px; color: var(--text-muted); }
.cn-the__ht { font-size: 12px; color: var(--color-primary); }
.cn-the__toi { flex: 0 0 auto; color: var(--color-text-muted); line-height: 0; }
.cn-cau { margin: 0 0 var(--sp-2); font-size: 17px; font-weight: 500; line-height: 1.5; }
.nen-ds form { margin: 0; }
.nen-muc--nut { width: 100%; border: 0; background: var(--surface); color: var(--color-danger); font-size: 15px;
                text-align: left; cursor: pointer; }

/* Sửa hồ sơ — tự đánh giá */
.tdg { display: flex; align-items: center; gap: var(--sp-3); min-height: 56px; border-bottom: 1px solid var(--color-divider); }
.tdg__ico { color: var(--color-primary); line-height: 0; }
.tdg__ten { flex: 1 1 auto; font-size: 15px; }
.tdg__chon { flex: 0 0 88px; width: 88px; }
.chip--ai { background: #EEF0FA; color: #3A4396; }

/* ═════ CÁ NHÂN HOÁ — Pha 7, 11/11/2026 ══════════════════════════════════ */
.cnh { margin: 0 0 var(--sp-8); }
.cnh__dau { display: flex; align-items: center; gap: var(--sp-2); margin: 0 0 var(--sp-3); }
.cnh__so { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%;
           background: var(--color-primary); color: #FFFFFF; font-size: 13px; font-weight: 600; }
.cnh__nhom { margin: var(--sp-5) 0 var(--sp-2); font-size: 14px; font-weight: 600; color: var(--text-muted); }
.cnh-ds { display: flex; flex-direction: column; margin: 0 0 var(--sp-3); padding: 0; list-style: none;
          border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.cnh-ds li { padding: var(--sp-3) var(--sp-4); font-size: 15px; }
.cnh-ds li + li { border-top: 1px solid var(--color-divider); }
.cnh-ds__phu { display: block; margin-top: 2px; font-size: 13px; color: var(--text-muted); }
.cnh-ds__mh { display: block; margin-top: var(--sp-2); }
.cnh-chon { display: flex; flex-direction: column; gap: var(--sp-1); }
.cnh-chon .nut-phu { align-self: flex-start; }
.cnh-bac { margin-top: var(--sp-4); }
.cnh-bac__nut { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600;
                color: var(--text-muted); cursor: pointer; }
.nd-ds { display: flex; flex-direction: column; gap: var(--sp-3); margin: 0; padding: 0; list-style: none; }
.nd { padding: var(--sp-4); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.nd--cho { border-color: #CDD2EE; background: #FAFBFF; }
.nd--tu_choi { background: var(--surface-2); border-color: transparent; }
.nd--tu_choi .nd__chu { color: var(--text-muted); text-decoration: line-through; text-decoration-color: var(--color-text-muted); }
.nd__chu { margin: 0 0 var(--sp-2); font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.nd__goc { margin: 0 0 var(--sp-2); font-size: 13px; color: var(--text-muted); }
.nd__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1) var(--sp-2); margin: 0 0 var(--sp-3); }
.nd__nguon { font-size: 12px; color: var(--text-muted); }
.nd__nut { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--sp-2); }
.nd__nut form { margin: 0; }
.nd__sua > summary { list-style: none; }
.nd__sua > summary::-webkit-details-marker { display: none; }
.nd__sua[open] { flex-basis: 100%; order: 5; }
.nd__sua-form { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-2); }
.nd__sua-form .nut-chinh { align-self: flex-start; }
.nd__xoa { min-width: 44px; min-height: 44px; border: 0; background: none; color: var(--text-muted); font-size: 13px; cursor: pointer; }
.nd__xoa:hover { color: var(--color-danger); }

/* ── Logo ThinQ (CSH 11/11/2026) ───────────────────────────────────────── */
.dt__chu { display: block; width: auto; height: 28px; }
@media (min-width: 900px) { .dt__chu { height: 32px; } }
.cua__logo { display: block; width: min(320px, 80vw); height: auto; }


/* ═════ BẢN THIẾT KẾ THANG — khung chung (CSH 11/11/2026 tối) ═════════════
   Nền trời xanh rất nhạt ở đầu trang · nút tròn trắng nổi nhẹ trên thanh đầu
   trang · thanh điều hướng dưới không viền, mục đang chọn tô đặc xanh sáng. */
body { background: linear-gradient(180deg, #E8EEFE 0, #F4F6FD 300px, #FBFBFE 600px, #FFFFFF 900px) no-repeat, #FFFFFF; }

.dt { background: transparent; }
.dt__phai { gap: var(--sp-2); }
.dt__nut, .dt .gn__nut { width: 44px; height: 44px; border-radius: 50%; background: rgb(255 255 255 / .9);
                         box-shadow: var(--shadow-soft); color: var(--text); }
.dt__nut:hover, .dt .gn__nut:hover, .dt .gn[open] .gn__nut { background: #FFFFFF; }
.dt__nut:has(.dt__anh) { background: transparent; box-shadow: none; }
.dt__anh { width: 44px; height: 44px; border: 2px solid #FFFFFF; background: linear-gradient(180deg, #F3F5FF 0%, #DFE5FD 100%);
           color: var(--color-primary); font-size: 14px; font-weight: 700; box-shadow: var(--shadow-soft); }
.dt__so { top: -2px; right: -2px; background: #E5383B; color: #FFFFFF; }
@media (max-width: 379px) { .dt__phai { gap: 6px; } }

.so-lieu { border: 1px solid rgb(255 255 255 / .9); border-radius: 20px; box-shadow: var(--shadow-soft);
           padding: var(--sp-5) var(--sp-2) var(--sp-4); }
.so-lieu:hover { border-color: #FFFFFF; }
.so-lieu__ico { color: var(--color-primary-bright); }
.so-lieu__so { font-size: 32px; font-weight: 800; color: #10101C; }
.so-lieu__nhan { font-size: 14px; color: #31313F; }

.dh { border-top: 0; background: rgb(255 255 255 / .97); box-shadow: 0 -6px 24px rgb(40 50 140 / .06); }
.dh__muc--dang { color: var(--color-primary-bright); }
.dh__muc--dang .dh__ico .bt { fill: currentColor; fill-opacity: .18; stroke-width: 2; }
@media (min-width: 900px) {
  .dh { box-shadow: none; border-right: 1px solid var(--color-divider); }
}
/* ═════ DỰ ÁN & LĨNH VỰC (/projects) — bản thiết kế CSH 11/11/2026 tối ═════ */
.man--xd { padding-top: 0; }
.xd-dau { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-3);
          margin: 0 calc(-1 * var(--space-3)) var(--sp-4); padding: var(--sp-4) var(--space-3) var(--sp-3); overflow: hidden; }
.xd-dau__nui { position: absolute; right: 0; bottom: 0; width: 60%; max-width: 260px; height: 100%; z-index: 0; pointer-events: none; }
.xd-dau__chu { position: relative; z-index: 1; min-width: 0; }
.xd-dau__ten { margin: 0; font-size: clamp(28px, 8vw, 34px); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; color: #10101C; }
.xd-dau__phu { margin: var(--sp-1) 0 0; font-size: 15px; color: var(--color-text-secondary); }
.xd-dau__them { position: relative; z-index: 1; flex: 0 0 auto; border: 0; background: #FFFFFF; box-shadow: var(--shadow-soft); }

/* Lọc: khung trắng nổi, mục đang chọn là viên đặc màu chính. */
.phan-doan { background: #FFFFFF; box-shadow: var(--shadow-soft); border-radius: 999px; }
.phan-doan__muc--dang, .phan-doan--chon .phan-doan__muc:has(input:checked) {
  background: var(--color-primary); color: #FFFFFF; box-shadow: 0 4px 12px rgb(10 10 168 / .22); }

.xd-trong { display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-5) var(--sp-4);
            border-radius: 20px; background: linear-gradient(135deg, #ECEFFE 0%, #F6F7FF 100%); }
.xd-trong__hinh { flex: 0 0 auto; width: 104px; height: 88px; }
.xd-trong__chu { min-width: 0; }
.xd-trong__cau { margin: 0; font-size: 17px; font-weight: 700; color: var(--text); }
.xd-trong__phu { margin: 4px 0 var(--sp-3); font-size: 14px; color: var(--color-text-secondary); }
.xd-trong .nut-chinh .bt { width: 18px; height: 18px; }
@media (max-width: 379px) { .xd-trong__hinh { width: 72px; height: 62px; } }

.xd-nhanh { display: flex; align-items: center; gap: var(--sp-2); padding: 6px 6px 6px var(--sp-4);
            border: 1px solid var(--color-border); border-radius: 18px; background: #FFFFFF; box-shadow: var(--shadow-soft); }
.xd-nhanh:focus-within { border-color: var(--color-primary-bright); }
.xd-nhanh__ico { flex: 0 0 auto; color: var(--color-primary-bright); line-height: 0; }
.xd-nhanh__o { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 0; border: 0; background: transparent;
               color: var(--text); outline: none; }
.xd-nhanh__o::placeholder { color: var(--color-text-secondary); }
.xd-nhanh__nut { flex: 0 0 auto; border-radius: 14px; }

.xd-nhom { margin: 0 0 var(--sp-8); }
.xd-nhom__ten { margin: 0 0 var(--sp-3); font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.xd-luoi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); margin: 0; padding: 0; list-style: none; }
.xd-luoi--bon { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.xd-o { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-3); height: 100%; min-height: 104px;
        padding: var(--sp-3) var(--sp-2) var(--sp-3) var(--sp-3); border-radius: 18px; background: #FFFFFF; box-shadow: var(--shadow-soft);
        color: var(--text); text-decoration: none; }
.xd-o--giua { align-items: center; justify-content: center; text-align: center; min-height: 104px; padding: var(--sp-3) var(--sp-1); }
.xd-o__ico { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; }
.xd-o__ico .bt { width: 24px; height: 24px; }
.xd-o__ico--xanh { background: #E6EEFF; color: #2F5BEA; }
.xd-o__ico--tim { background: #F1E8FD; color: #8B3FD9; }
.xd-o__ico--vang { background: #FFF2D9; color: #D98A00; }
.xd-o__ico--luc { background: #E1F5EA; color: #158F52; }
.xd-o__ico--hong { background: #FDE6EF; color: #D6306F; }
.xd-o__dong { display: flex; align-items: center; justify-content: space-between; gap: 2px; width: 100%; margin-top: auto; }
.xd-o__ten { min-width: 0; font-size: 14px; font-weight: 600; line-height: 1.3; }
.xd-o--giua .xd-o__ten { font-size: 13px; }
.xd-o__toi { flex: 0 0 auto; color: var(--color-text-secondary); line-height: 0; }
.xd-o__toi .bt { width: 16px; height: 16px; }
.xd-o__so { font-size: 11px; font-weight: 600; color: var(--color-primary); background: var(--color-primary-soft);
            border-radius: 999px; padding: 1px var(--sp-2); }
@media (max-width: 379px) {
  .xd-luoi { gap: var(--sp-2); }
  .xd-o { padding: var(--sp-2); }
  .xd-o__ten { font-size: 13px; }
  .xd-o--giua .xd-o__ten { font-size: 12px; }
  .xd-o__toi { display: none; }
  .xd-o__ico { width: 38px; height: 38px; }
}
@media (min-width: 900px) { .xd-luoi { gap: var(--sp-4); } }
/* Thẻ dự án: trắng, bóng mềm, biểu tượng trong ô xanh nhạt — cùng bộ với lưới ô. */
.the-da { border-color: transparent; border-radius: 18px; box-shadow: var(--shadow-soft); }
.the-da:hover { border-color: #E3E8FD; }
.the-da__ico { background: #E6EEFF; color: #2F5BEA; }
.the-da--dong .the-da__ico { background: var(--surface-2); color: var(--color-text-secondary); }

/* ═════ HỌC TẬP (/hoc) — bản thiết kế CSH 12/11/2026 ═══════════════════════
   Đầu màn dùng chung `.xd-dau` (núi xa). «Ảnh» bài là ô gradient theo CHỦ ĐỀ
   kèm biểu tượng — Thang không có ảnh bìa, và CSP chỉ cho ảnh 'self'. */
.hoc-loi { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: var(--sp-3); margin: 0 0 var(--sp-5); }
.hoc-loi .nut-chinh, .hoc-loi .nut-phu { min-height: 52px; padding: 0 var(--sp-3); border-radius: 18px; white-space: nowrap; }
@media (min-width: 600px) { .hoc-loi { display: flex; } .hoc-loi .nut-chinh, .hoc-loi .nut-phu { padding: 0 var(--sp-6); } }
@media (max-width: 359px) { .hoc-loi { grid-template-columns: none; } }
.hoc-loi .bt { width: 20px; height: 20px; }
.hoc-loi__phu { border-color: transparent; background: #FFFFFF; box-shadow: var(--shadow-soft); }

.hoc-tien-do { display: flex; align-items: center; gap: var(--sp-3); margin: 0 0 var(--sp-8); padding: var(--sp-4);
               border-radius: 20px; background: #FFFFFF; box-shadow: var(--shadow-soft); }
.hoc-tien-do__ico { flex: 0 0 44px; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
                    border-radius: 50%; background: var(--color-tint-lavender); color: var(--color-primary-bright); }
.hoc-tien-do__chu { flex: 1 1 auto; min-width: 0; }
.hoc-tien-do__ten { margin: 0; font-size: 16px; font-weight: 700; }
.hoc-tien-do__phu { margin: 2px 0 var(--sp-2); font-size: 13px; color: var(--color-text-secondary); }
.hoc-tien-do__pt { flex: 0 0 auto; padding: 6px 14px; border-radius: 999px; background: var(--color-tint-lavender);
                   color: var(--color-primary); font-size: 15px; font-weight: 700; }
.hoc-thanh { display: block; height: 6px; border-radius: 3px; background: var(--color-primary-soft); overflow: hidden; }
.hoc-thanh__day { display: block; width: var(--phan-tram, 0%); height: 100%; border-radius: 3px; background: var(--color-primary-bright); }

.hoc-muc { margin: 0 0 var(--sp-8); }
.hoc-muc__ten { margin: 0 0 var(--sp-3); }

.hoc-anh { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 72px; height: 56px;
           border-radius: 12px; color: #FFFFFF; background: linear-gradient(135deg, #3B47E8 0%, #8A9BF7 100%); }
.hoc-anh .bt { width: 26px; height: 26px; stroke-width: 1.8; }
.hoc-anh--lon { width: 100%; height: 84px; border-radius: 14px 14px 0 0; }
.hoc-anh--lon .bt { width: 34px; height: 34px; }
.hoc-anh--ban-than { background: linear-gradient(135deg, #F49B5B 0%, #6C5BD9 100%); }
.hoc-anh--kinh-doanh { background: linear-gradient(135deg, #1E3FC8 0%, #6E8BFA 100%); }
.hoc-anh--cong-nghe { background: linear-gradient(135deg, #2A2FD1 0%, #B26BF0 100%); }
.hoc-anh--sang-tao { background: linear-gradient(135deg, #E25C9C 0%, #8B5CF0 100%); }
.hoc-anh--suc-khoe { background: linear-gradient(135deg, #1FA37A 0%, #6CC7E8 100%); }
.hoc-anh--tai-chinh { background: linear-gradient(135deg, #D99A1F 0%, #4F5BE0 100%); }
.hoc-anh--nghe-nghiep { background: linear-gradient(135deg, #354A9C 0%, #7FA0F2 100%); }
.hoc-anh--chung { background: linear-gradient(135deg, #3B47E8 0%, #8A9BF7 100%); }

.hoc-meta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 13px; color: var(--color-text-secondary); }
.hoc-meta .bt { width: 15px; height: 15px; }
.hoc-meta--tre { color: var(--color-danger); font-weight: 600; }

.hoc-dang { display: grid; gap: var(--sp-3); margin: 0; padding: 0; list-style: none; }
.hoc-dang__the { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3); border-radius: 18px;
                 background: #FFFFFF; box-shadow: var(--shadow-soft); color: var(--text); text-decoration: none; }
.hoc-dang__chu { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.hoc-dang__ten { font-size: 15px; font-weight: 700; line-height: 1.3; }
.hoc-dang__phat { flex: 0 0 44px; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
                  border: 1.5px solid var(--color-primary-bright); border-radius: 50%; color: var(--color-primary-bright); }
.hoc-dang__phat .bt { width: 18px; height: 18px; }

.hoc-goi-y { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); margin: 0; padding: 0; list-style: none; }
.hoc-goi-y__the { display: flex; flex-direction: column; height: 100%; border-radius: 16px; background: #FFFFFF;
                  box-shadow: var(--shadow-soft); color: var(--text); text-decoration: none; overflow: hidden; }
.hoc-goi-y__chu { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-3); }
.hoc-goi-y__ten { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
                  font-size: 14px; font-weight: 700; line-height: 1.35; }
.hoc-goi-y .hoc-meta { flex-wrap: nowrap; align-items: flex-start; font-size: 12px; }
.hoc-goi-y .hoc-meta .bt { flex: 0 0 auto; margin-top: 1px; }
@media (max-width: 419px) {
  .hoc-goi-y { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 46%;
               overflow-x: auto; margin: 0 calc(-1 * var(--space-3)); padding: 4px var(--space-3) var(--sp-3);
               scroll-snap-type: x mandatory; scrollbar-width: none; }
  .hoc-goi-y::-webkit-scrollbar { display: none; }
  .hoc-goi-y > li { scroll-snap-align: start; }
}

.hoc-loc { display: flex; gap: var(--sp-2); margin: 0 0 var(--sp-4); overflow-x: auto; scrollbar-width: none;
           padding: 2px 2px 6px; }
.hoc-loc::-webkit-scrollbar { display: none; }
.hoc-loc__muc { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 var(--sp-4);
                border-radius: 999px; background: #FFFFFF; box-shadow: var(--shadow-soft); color: var(--text);
                font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.hoc-loc__muc--dang { background: var(--color-primary); color: #FFFFFF; }
.hoc-loc__so { font-size: 12px; opacity: .7; }

.hoc-bai { display: flex; align-items: flex-start; gap: var(--sp-3); margin: 0 0 var(--sp-3); padding: var(--sp-3);
           border-radius: 18px; background: #FFFFFF; box-shadow: var(--shadow-soft); }
.hoc-bai__chu { flex: 1 1 auto; min-width: 0; }
.hoc-bai__ten { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.35; }
.hoc-bai { position: relative; }
.hoc-bai__lk { display: block; min-height: 44px; color: var(--text); text-decoration: none; }
/* Cả thẻ bấm được, không chỉ dòng tên. */
.hoc-bai__lk::after { content: ""; position: absolute; inset: 0; border-radius: 18px; }
.hoc-bai__tom { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
                margin: 4px 0 var(--sp-2); font-size: 13px; color: var(--color-text-secondary); }
.hoc-bai .nhan-hang { margin: 0; }
@media (max-width: 379px) { .hoc-bai .hoc-anh { width: 52px; height: 52px; } }

.hoc-cong-dong { margin: 0 0 var(--sp-6); padding: var(--sp-4); border-radius: 18px; background: #FFFFFF; box-shadow: var(--shadow-soft); }
.hoc-cong-dong .goi-y, .hoc-cong-dong .tt-dong { margin: var(--sp-2) 0; }

/* ═════ VIỆC CẦN ANH (/hom-nay/can-anh) — bản thiết kế CSH 12/11/2026 ══════ */
.ca-dau { justify-content: flex-start; align-items: flex-start; }
.ca-dau__ico { position: relative; z-index: 1; flex: 0 0 56px; display: flex; align-items: center; justify-content: center;
               width: 56px; height: 56px; margin-top: 6px; border-radius: 16px; background: var(--color-primary-soft); color: var(--color-primary); }
.ca-dau__ico .bt { width: 30px; height: 30px; }

.ca-so { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); margin: 0 0 var(--sp-8); padding: 0; list-style: none; }
.ca-so__o { display: flex; align-items: center; gap: var(--sp-2); min-width: 0; padding: var(--sp-4) var(--sp-3);
            border-radius: 18px; background: #FFFFFF; box-shadow: var(--shadow-soft); }
.ca-so__o--chinh { background: var(--color-primary-soft); box-shadow: none; }
.ca-so__ico { flex: 0 0 36px; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; }
.ca-so__ico .bt { width: 22px; height: 22px; }
.ca-so__ico--xanh { color: var(--color-primary-bright); }
.ca-so__ico--luc { background: #E1F5EA; color: #158F52; }
.ca-so__ico--vang { background: #FFF2D9; color: #D98A00; }
.ca-so__chu { display: flex; flex-direction: column; min-width: 0; font-size: 13px; line-height: 1.3; color: var(--text); }
.ca-so__so { font-size: 24px; font-weight: 800; line-height: 1.1; }
@media (max-width: 479px) {
  .ca-so { gap: var(--sp-2); }
  .ca-so__o { flex-direction: column; align-items: flex-start; gap: var(--sp-2); padding: var(--sp-3); }
  .ca-so__chu { white-space: nowrap; }
}

.ca-cho { position: relative; display: flex; align-items: center; gap: var(--sp-3); margin: 0 0 var(--sp-3); min-height: 72px;
          padding: var(--sp-3) var(--sp-3) var(--sp-3) var(--sp-4); border-radius: 18px; background: #FFFFFF;
          box-shadow: var(--shadow-soft); color: var(--text); text-decoration: none; overflow: hidden; }
.ca-cho::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: #B9C3F7; }
.ca-cho__o { flex: 0 0 22px; width: 22px; height: 22px; border: 2px solid #9AA2BD; border-radius: 6px; }
.ca-cho__chu { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ca-cho__cau { font-size: 16px; font-weight: 700; line-height: 1.3; }
.ca-cho__vi-sao { font-size: 13px; line-height: 1.4; color: var(--color-text-secondary); }
.ca-cho__nut { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--sp-4);
               border-radius: 999px; background: var(--color-primary-soft); color: var(--color-primary);
               font-size: 14px; font-weight: 700; white-space: nowrap; }
@media (max-width: 379px) {
  .ca-cho { flex-wrap: wrap; }
  .ca-cho__chu { flex-basis: calc(100% - 40px); }
  .ca-cho__nut { margin-left: 34px; }
}

.ca-nhom { display: flex; align-items: flex-start; gap: var(--sp-3); margin: 0 0 var(--sp-3); }
.ca-nhom__ico { flex: 0 0 auto; color: var(--color-primary-bright); line-height: 0; padding-top: 2px; }
.ca-nhom__ico .bt { width: 30px; height: 30px; }
.ca-nhom__phu { margin: 2px 0 0; font-size: 14px; color: var(--color-text-secondary); }

.ca-goi-y { display: flex; align-items: center; gap: var(--sp-3); margin: 0 0 var(--sp-3); padding: var(--sp-3);
            border-radius: 18px; background: #FFFFFF; box-shadow: var(--shadow-soft); color: var(--text); text-decoration: none; }
.ca-goi-y__anh { align-self: flex-start; width: 96px; height: 88px; }
.ca-goi-y__anh .bt { width: 34px; height: 34px; }
.ca-goi-y__chu { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ca-goi-y__cau { font-size: 16px; font-weight: 700; line-height: 1.3; }
.ca-goi-y__vi-sao { font-size: 13px; line-height: 1.4; color: var(--color-text-secondary); }
.ca-goi-y__lk { margin-top: 2px; font-size: 14px; font-weight: 600; color: var(--color-primary); text-decoration: underline; }
.ca-goi-y__toi { flex: 0 0 auto; color: var(--color-text-secondary); line-height: 0; }
@media (max-width: 379px) { .ca-goi-y__anh { width: 64px; height: 64px; } }

.ca-rong { margin: 0 0 var(--sp-3); padding: var(--sp-4); border-radius: 18px; background: #FFFFFF;
           box-shadow: var(--shadow-soft); font-size: 14px; color: var(--color-text-secondary); }

.ca-loi { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin: 0 0 var(--sp-8); }
.ca-loi__muc { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 52px; padding: 0 var(--sp-5);
               border-radius: 999px; background: var(--color-primary-soft); color: var(--color-primary);
               font-size: 15px; font-weight: 600; text-decoration: none; }
.ca-loi__muc .bt { width: 22px; height: 22px; }

/* ═════ CÁ NHÂN (/profile) — bản thiết kế CSH 12/11/2026 ════════════════════ */
.cn-the { align-items: center; border: 0; border-radius: 20px; background: #FFFFFF; box-shadow: var(--shadow-soft); }
.cn-the__anh { width: 72px; height: 72px; background: var(--color-primary-soft); color: var(--color-primary); font-size: 24px; font-weight: 800; }
.cn-the__lk { display: flex; flex-direction: column; gap: 2px; color: var(--text); text-decoration: none; }
.cn-the__ten { font-size: 20px; font-weight: 800; }
.cn-the__phu { color: var(--color-text-secondary); }
.cn-the__loi { display: flex; flex-wrap: wrap; gap: 0 var(--sp-1); margin-top: var(--sp-1); }
.cn-the__loi-muc { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 var(--sp-2) 0 0;
                   color: var(--color-primary); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.cn-the__loi-muc + .cn-the__loi-muc { padding-left: var(--sp-2); border-left: 1px solid var(--color-border); }
.cn-the__loi-muc .bt { width: 16px; height: 16px; }
@media (max-width: 419px) { .cn-the { gap: var(--sp-3); } .cn-the__anh { width: 56px; height: 56px; font-size: 20px; } }

.cn-hd__ky { font-size: 14px; font-weight: 500; color: var(--color-primary); }
.cn-hd { margin: 0; padding: var(--sp-2) var(--sp-4); border-radius: 20px; background: #FFFFFF; box-shadow: var(--shadow-soft); list-style: none; }
.cn-hd__dong { display: grid; grid-template-columns: 28px minmax(0, 1.3fr) minmax(0, 1fr) auto; align-items: center;
               gap: var(--sp-3); min-height: 48px; }
.cn-hd__ico { color: var(--color-primary-bright); line-height: 0; }
.cn-hd__ico .bt { width: 22px; height: 22px; }
.cn-hd__ten { font-size: 14px; font-weight: 500; }
.cn-hd__thanh { display: block; }
.cn-hd__so { font-size: 14px; font-weight: 700; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 479px) {
  .cn-hd__dong { grid-template-columns: 24px minmax(0, 1fr) auto; row-gap: 6px; padding: var(--sp-2) 0; }
  .cn-hd__ico { grid-row: 1; grid-column: 1; }
  .cn-hd__ten { grid-row: 1; grid-column: 2; }
  .cn-hd__so { grid-row: 1; grid-column: 3; }
  .cn-hd__thanh { grid-row: 2; grid-column: 2 / 4; }
  .cn-hd__thanh--trong { display: none; }
}

.cn-tien-trinh { margin: 0 0 var(--sp-8); }
.cn-tt { display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-4); border-radius: 20px;
         background: #FFFFFF; box-shadow: var(--shadow-soft); }
.cn-tt__hinh { flex: 0 0 auto; width: 120px; height: 84px; }
.cn-tt__chu { flex: 1 1 auto; min-width: 0; }
.cn-tt .nut-chinh { padding: 0 var(--sp-4); white-space: nowrap; }
.cn-tt__ten { margin: 0; font-size: 17px; font-weight: 700; }
.cn-tt__phu { margin: 4px 0 var(--sp-3); font-size: 14px; color: var(--color-text-secondary); }
.cn-tt .nut-chinh .bt { width: 18px; height: 18px; }
@media (max-width: 479px) { .cn-tt { gap: var(--sp-3); } .cn-tt__hinh { width: 88px; height: 62px; align-self: flex-start; } }

.pi { border: 0; border-radius: 20px; background: #FFFFFF; box-shadow: var(--shadow-soft); }
.cn-cau-the .cn-cau { padding: var(--sp-4); border-radius: 18px; background: #FFFFFF; box-shadow: var(--shadow-soft); }

.cn-ds { margin: 0; padding: var(--sp-1) var(--sp-4); border-radius: 20px; background: #FFFFFF; box-shadow: var(--shadow-soft); list-style: none; }
.cn-ds > li + li { border-top: 1px solid var(--color-divider); }
.cn-ds form { margin: 0; }
.cn-ds__muc { display: flex; align-items: center; gap: var(--sp-3); width: 100%; min-height: 52px; padding: 0;
              border: 0; background: none; color: var(--text); font-size: 15px; font-weight: 500; text-align: left;
              text-decoration: none; cursor: pointer; }
.cn-ds__ico { flex: 0 0 auto; color: var(--color-primary-bright); line-height: 0; }
.cn-ds__ico .bt { width: 22px; height: 22px; }
.cn-ds__ten { flex: 1 1 auto; min-width: 0; }
.cn-ds__toi { flex: 0 0 auto; color: var(--color-text-secondary); line-height: 0; }
.cn-ds__toi .bt { width: 18px; height: 18px; }
.cn-ds__muc--ra, .cn-ds__muc--ra .cn-ds__ico { color: var(--color-danger); }
.man--xd .canh-bao { border-radius: 4px 18px 18px 4px; box-shadow: var(--shadow-soft); }

/* ═════ KHÁC (/kham-pha/moi-khu) — bản thiết kế CSH 12/11/2026 ══════════════ */
.khac-ho-so { display: flex; align-items: center; gap: var(--sp-4); margin: 0 0 var(--sp-4); padding: var(--sp-4);
              border-radius: 20px; background: #FFFFFF; box-shadow: var(--shadow-soft); color: var(--text); text-decoration: none; }
.khac-ho-so__chu { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.khac-nhanh { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--sp-3); margin: 0 0 var(--sp-8); padding: 0; list-style: none; }
.khac-nhanh__o { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-2);
                 min-height: 92px; padding: var(--sp-3) var(--sp-1); border-radius: 18px; background: #FFFFFF;
                 box-shadow: var(--shadow-soft); color: var(--text); font-size: 14px; font-weight: 500; text-align: center; text-decoration: none; }
.khac-nhanh__ico { color: var(--color-primary-bright); line-height: 0; }
.khac-nhanh__ico .bt { width: 28px; height: 28px; }
@media (max-width: 379px) { .khac-nhanh { gap: var(--sp-2); } .khac-nhanh__o { font-size: 12px; } }

.cn-ds__muc--tinh { cursor: default; }
.cn-ds__phu { flex: 0 0 auto; font-size: 14px; color: var(--color-text-secondary); }

.khac-ra { margin: 0 0 var(--sp-8); }
.khac-ra__nut { display: flex; align-items: center; gap: var(--sp-3); width: 100%; min-height: 60px; padding: 0 var(--sp-5);
                border: 0; border-radius: 18px; background: #FDECEC; color: var(--color-danger);
                font-size: 16px; font-weight: 700; cursor: pointer; }
.khac-ra__nut .bt { width: 24px; height: 24px; }

/* ═════ THANG BIẾT GÌ VỀ ANH (/toi/ca-nhan-hoa) — bản thiết kế CSH 12/11/2026 ═ */
.cnh-dau { justify-content: flex-start; }
.cnh-dau__ve { position: relative; z-index: 1; flex: 0 0 auto; margin: 4px 0 0 -10px; }
.cnh-tab { margin-bottom: var(--sp-5); }
.cnh-tab .hoc-loc__muc .bt { width: 18px; height: 18px; }

.cnh-the { margin: 0 0 var(--sp-4); padding: var(--sp-4); border-radius: 20px; background: #FFFFFF; box-shadow: var(--shadow-soft); scroll-margin-top: 16px; }
.cnh-the__dau { display: flex; align-items: center; gap: var(--sp-3); margin: 0 0 var(--sp-3); }
.cnh-the__ico { flex: 0 0 auto; color: var(--color-primary-bright); line-height: 0; }
.cnh-the__ico .bt { width: 28px; height: 28px; }
.cnh-the__ico--dac { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%;
                     background: var(--color-primary-bright); color: #FFFFFF; }
.cnh-the__ico--dac .bt { width: 22px; height: 22px; }
.cnh-the__ten { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.cnh-the__sua { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 var(--sp-3);
                border-radius: 999px; background: var(--color-primary-soft); color: var(--color-primary);
                font-size: 14px; font-weight: 600; text-decoration: none; }
.cnh-the__sua .bt { width: 16px; height: 16px; }

.cnh-tt { margin: 0; }
.cnh-tt__dong { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--sp-3); align-items: start;
                padding: 10px 0; border-top: 1px solid var(--color-divider); }
.cnh-tt__dong:first-child { border-top: 0; }
.cnh-tt dt { display: flex; align-items: center; gap: var(--sp-2); font-size: 14px; color: var(--text); }
.cnh-tt dt .bt { flex: 0 0 auto; width: 20px; height: 20px; color: var(--color-primary-bright); }
.cnh-tt dd { margin: 0; font-size: 14px; color: var(--text); overflow-wrap: anywhere; }
.cnh-tt__chua { color: var(--color-text-secondary); font-style: italic; }
@media (max-width: 379px) { .cnh-tt__dong { grid-template-columns: minmax(0, 1fr); gap: 2px; } .cnh-tt dd { padding-left: 28px; } }

.cnh-tq { display: flex; align-items: flex-start; gap: var(--sp-4); }
.cnh-tq__anh { width: 96px; height: 88px; }
.cnh-tq__anh .bt { width: 34px; height: 34px; }
.cnh-tq__chu { flex: 1 1 auto; min-width: 0; }
.cnh-tq__ds { display: grid; gap: var(--sp-2); margin: 0; padding: 0; list-style: none; }
.cnh-tq__ds li { display: flex; align-items: flex-start; gap: var(--sp-2); font-size: 14px; line-height: 1.45; }
.cnh-tq__ds .bt { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; padding: 3px; border-radius: 50%;
                  background: var(--color-primary-bright); color: #FFFFFF; stroke-width: 3; }
.cnh-tq__trong { margin: 0; font-size: 14px; color: var(--color-text-secondary); }
.cnh-tq__phu { margin: var(--sp-3) 0 0; font-size: 13px; color: var(--color-text-secondary); }
@media (max-width: 419px) { .cnh-tq__anh { display: none; } }

.cnh-gn { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-2); margin: 0; padding: 0; list-style: none; }
.cnh-gn__o { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-3); border: 1px solid var(--color-border); border-radius: 14px; }
.cnh-gn__o > .bt { width: 26px; height: 26px; color: var(--color-primary-bright); }
.cnh-gn__o span { display: flex; flex-direction: column; font-size: 12px; line-height: 1.35; color: var(--color-text-secondary); }
.cnh-gn__o b { font-size: 18px; font-weight: 800; color: var(--text); }

.cn-tt--phang { padding: 0; box-shadow: none; }
.cnh-lam .cnh-tq__ds li { font-size: 15px; }

.cnh { margin: var(--sp-6) 0 0; padding: var(--sp-4); border-radius: 20px; background: #FFFFFF; box-shadow: var(--shadow-soft); scroll-margin-top: 16px; }
.cnh-dl { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 44px; color: var(--color-primary);
          font-weight: 600; text-decoration: underline; }
.cnh-dl .bt { width: 22px; height: 22px; }

/* ═════ KINH NGHIỆM (/toi/kinh-nghiem) — bản thiết kế CSH 12/11/2026 ═══════ */
.kn-bat-buoc { color: var(--color-danger); }
.kn-form .o__nhap--dai { min-height: 72px; }
.kn-thoi-gian { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--sp-2); }
.kn-thoi-gian .o__nhan { grid-column: 1 / -1; }
.kn-thang { display: block; min-width: 0; }
.kn-gach { color: var(--color-text-secondary); }
.kn-goi-y { grid-column: 1 / -1; margin: 0; }
.kn-luu { align-self: flex-start; margin-top: var(--sp-2); }
.kn-luu .bt { width: 18px; height: 18px; }

.kn-muc { margin: 0 0 var(--sp-3); border: 1px solid var(--color-border); border-radius: 16px; background: #FFFFFF; }
.kn-muc[open] { box-shadow: var(--shadow-soft); }
.kn-muc__dau { display: flex; align-items: center; gap: var(--sp-3); min-height: 72px; padding: var(--sp-3); cursor: pointer; list-style: none; }
.kn-muc__dau::-webkit-details-marker { display: none; }
.kn-muc__chu { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.kn-muc__ten { font-size: 15px; font-weight: 700; line-height: 1.3; }
.kn-muc__tom { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
               font-size: 13px; line-height: 1.4; color: var(--color-text-secondary); }
.kn-muc__toi { flex: 0 0 auto; color: var(--color-text-secondary); line-height: 0; transition: transform var(--motion-micro) var(--ease); }
.kn-muc[open] .kn-muc__toi { transform: rotate(90deg); }
.kn-muc__than { margin: 0; padding: 0 var(--sp-4) var(--sp-2); }
.kn-muc__than dt { margin-top: var(--sp-3); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--color-text-secondary); }
.kn-muc__than dd { margin: 2px 0 0; font-size: 14px; line-height: 1.5; white-space: pre-line; }
.kn-muc__xoa { padding: 0 var(--sp-4) var(--sp-2); }
.kn-muc__xoa .lien-ket { color: var(--color-danger); font-size: 13px; }

.kn-them > summary { list-style: none; }
.kn-them > summary::-webkit-details-marker { display: none; }
.kn-them__nut { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; cursor: pointer;
                color: var(--color-primary); font-size: 14px; font-weight: 600; }
.kn-them__nut .bt { width: 16px; height: 16px; }
.kn-them[open] > .kn-them__nut { display: none; }

.kn-goi-y__phu { margin: 0 0 var(--sp-3); font-size: 14px; color: var(--color-text-secondary); }
.kn-chon { display: grid; gap: var(--sp-2); margin: 0 0 var(--sp-4); padding: 0; list-style: none; }
.kn-chon__o { display: flex; align-items: center; gap: var(--sp-3); min-height: 52px; padding: 0 var(--sp-4);
              border: 1px solid var(--color-border); border-radius: 14px; font-size: 15px; cursor: pointer; }
.kn-chon__o:has(input:checked) { border-color: var(--color-primary-bright); background: var(--color-tint-lavender); }
.kn-chon__o input { width: 20px; height: 20px; margin: 0; accent-color: var(--color-primary-bright); }
.kn-chon__phu { color: var(--color-text-secondary); font-size: 13px; }
.kn-tao { border: 0; cursor: pointer; }

/* ═════ CÀI ĐẶT (/toi/cai-dat) — bản thiết kế CSH 12/11/2026 ═══════════════ */
.st { margin: 0 0 var(--sp-4); padding: var(--sp-4) var(--sp-4) var(--sp-2); border-radius: 20px; background: #FFFFFF; box-shadow: var(--shadow-soft); }
.st__dau { display: flex; align-items: center; gap: var(--sp-3); padding: 0 0 var(--sp-2); }
.st__ico { flex: 0 0 48px; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px;
           border-radius: 14px; background: var(--color-tint-lavender); color: var(--color-primary-bright); }
.st__ico .bt { width: 26px; height: 26px; }
.st__ten { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.st__phu { margin: 2px 0 0; font-size: 13px; color: var(--color-text-secondary); }
.st__trong { margin: var(--sp-2) 0 var(--sp-2); font-size: 14px; color: var(--color-text-secondary); }
.st__ds { margin: 0; padding: 0; list-style: none; }
.st__ds > li { border-top: 1px solid var(--color-divider); }
.st-dong { display: flex; align-items: center; gap: var(--sp-3); min-height: 56px; padding: var(--sp-2) 0;
           color: var(--text); text-decoration: none; cursor: pointer; list-style: none; }
.st-dong::-webkit-details-marker { display: none; }
.st-dong--tinh { cursor: default; }
.st-dong__ico { flex: 0 0 auto; color: var(--color-primary-bright); line-height: 0; }
.st-dong__ico .bt { width: 22px; height: 22px; }
.st-dong__chu { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.st-dong__ten { font-size: 15px; font-weight: 600; line-height: 1.3; }
.st-dong__phu { font-size: 13px; line-height: 1.35; color: var(--color-text-secondary); overflow-wrap: anywhere; }
.st-dong__nut { align-self: flex-start; margin-top: var(--sp-2); }
.st-dong__so { flex: 0 0 auto; min-width: 32px; padding: 2px 10px; border-radius: 999px; background: var(--surface-2);
               font-size: 13px; font-weight: 600; text-align: center; }
.st-dong__gt { flex: 0 0 auto; font-size: 14px; color: var(--color-text-secondary); }
.st-dong__toi { flex: 0 0 auto; color: var(--color-text-secondary); line-height: 0; transition: transform var(--motion-micro) var(--ease); }
.st-dong__toi .bt { width: 18px; height: 18px; }
.st-mo[open] .st-dong__toi--mo { transform: rotate(90deg); }
.st-mo__than { padding: 0 0 var(--sp-4) 34px; }
.st-mo__phu { margin-top: var(--sp-3); }
@media (max-width: 379px) { .st-mo__than { padding-left: 0; } }
.st-chip { flex: 0 0 auto; padding: 4px 10px; border-radius: 999px; background: var(--surface-2);
           font-size: 12px; font-weight: 700; color: var(--color-text-secondary); white-space: nowrap; }
.st-chip--bat { background: var(--color-primary-soft); color: var(--color-primary); }

/* Công tắc kiểu iOS cho các lời nhắc — vẫn là checkbox thật, bàn phím và
   trình đọc màn hình dùng như cũ. */
.st-cong-tac { appearance: none; -webkit-appearance: none; position: relative; flex: 0 0 auto; width: 48px; height: 28px;
               margin: 0; border-radius: 999px; background: #D5D8E2; cursor: pointer; transition: background var(--motion-micro) var(--ease); }
.st-cong-tac::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
                      background: #FFFFFF; box-shadow: 0 1px 3px rgb(0 0 0 / .2); transition: transform var(--motion-micro) var(--ease); }
.st-cong-tac:checked { background: var(--color-primary-bright); }
.st-cong-tac:checked::after { transform: translateX(20px); }
.st-cong-tac:focus-visible { outline: 2px solid var(--color-primary-bright); outline-offset: 2px; }
.st .cong-tac__nhan { display: flex; align-items: center; gap: var(--sp-3); }

/* ═════ BẢN THÂN (/xay-dung/ban-than) — bản thiết kế CSH 12/11/2026 ═══════ */
.bt-the__ico { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%;
               background: var(--color-tint-lavender); }
.bt-the__ico .bt { width: 24px; height: 24px; }
.bt-the__chu { flex: 1 1 auto; min-width: 0; }
.bt-the__phu { margin: 2px 0 0; font-size: 13px; color: var(--color-text-secondary); }


.bt-sua { margin-top: var(--sp-1); }
.bt-sua > summary { list-style: none; }
.bt-sua > summary::-webkit-details-marker { display: none; }
.bt-sua__nut { display: inline-flex; cursor: pointer; }
.bt-sua[open] > .bt-sua__nut { margin-bottom: var(--sp-3); }
.bt-sua__form .nut-chinh { align-self: flex-start; margin-top: var(--sp-2); }
.bt-sua__form .nut-chinh .bt { width: 18px; height: 18px; }

.bt-my { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); margin: 0 0 var(--sp-3); }
.bt-my__cot { padding: var(--sp-3) var(--sp-4); border-radius: 14px; }
.bt-my__cot--manh { background: #EEF8F2; }
.bt-my__cot--yeu { background: #FDF0F1; }
.bt-my__ten { display: flex; align-items: center; gap: var(--sp-2); margin: 0 0 var(--sp-2); font-size: 15px; font-weight: 700; }
.bt-my__ten .bt { width: 22px; height: 22px; }
.bt-my__cot--manh .bt-my__ten .bt { color: #158F52; }
.bt-my__cot--yeu .bt-my__ten .bt { color: #C9334E; }
.bt-my__trong { margin: 0 0 var(--sp-2); font-size: 14px; color: var(--color-text-secondary); }
@media (max-width: 359px) { .bt-my { grid-template-columns: minmax(0, 1fr); } }

.bt-gt { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: var(--sp-3); margin: 0 0 var(--sp-3); padding: 0; list-style: none; }
.bt-gt__o { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: var(--sp-3) var(--sp-2);
            border-radius: 14px; background: #F6F7FD; text-align: center; }
.bt-gt__ico { color: var(--color-primary-bright); line-height: 0; }
.bt-gt__ico .bt { width: 26px; height: 26px; }
.bt-gt__ten { font-size: 14px; font-weight: 700; }
.bt-gt__nghia { font-size: 12px; line-height: 1.35; color: var(--color-text-secondary); }
.bt-gt__bo { position: absolute; top: 0; right: 0; margin: 0; }
.bt-gt__bo-nut { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
                 border: 0; background: none; color: var(--color-text-secondary); cursor: pointer; }
.bt-gt__bo-nut .bt { width: 16px; height: 16px; transform: rotate(45deg); }

.bt-kn { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) 0; border-top: 1px solid var(--color-divider);
         color: var(--text); text-decoration: none; }
.bt-kn:first-of-type { border-top: 0; }


/* Bản thân v2 (bản thiết kế CSH 12/11/2026, lượt hai): sửa trực tiếp, khối thu gọn được, một nút lưu. */
.bt-khoi > summary { list-style: none; }
.bt-khoi > summary::-webkit-details-marker { display: none; }
.bt-khoi__dau { display: flex; align-items: center; gap: var(--sp-3); min-height: 48px; cursor: pointer; }
.bt-khoi[open] > .bt-khoi__dau { margin-bottom: var(--sp-3); }
.bt-khoi__mo { flex: 0 0 auto; color: var(--text); line-height: 0; transition: transform var(--motion-micro) var(--ease); }
.bt-khoi__mo .bt { width: 20px; height: 20px; }
.bt-khoi:not([open]) .bt-khoi__mo { transform: rotate(180deg); }
.bt-the__chu { display: flex; flex-direction: column; }

.bt-hoi { display: grid; gap: var(--sp-3); }
.bt-hoi__dong { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: var(--sp-3); align-items: start; }
.bt-hoi__trai { display: flex; align-items: flex-start; gap: var(--sp-2); }
.bt-hoi__ico { flex: 0 0 40px; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
               border-radius: 12px; background: var(--color-tint-lavender); color: var(--color-primary-bright); }
.bt-hoi__ico .bt { width: 22px; height: 22px; }
.bt-hoi__chu { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bt-hoi__ten { font-size: 14px; font-weight: 700; line-height: 1.3; }
.bt-hoi__giai { font-size: 12px; line-height: 1.35; color: var(--color-text-secondary); }
/* 16px — dưới mức này Safari iOS tự phóng to trang khi chạm vào ô. */
.bt-hoi__o { min-height: 104px; resize: vertical; font-size: 16px; line-height: 1.45; field-sizing: content; }
@media (max-width: 359px) { .bt-hoi__dong { grid-template-columns: minmax(0, 1fr); gap: var(--sp-2); } }

.bt-my__cot { display: flex; flex-direction: column; }
.bt-my__o { width: 100%; min-height: 120px; padding: 0; border: 0; background: transparent; color: var(--text);
            font-size: 16px; line-height: 1.5; resize: vertical; outline: none; field-sizing: content; }
.bt-my__o::placeholder { color: var(--color-text-secondary); }
.bt-my__cot:focus-within { box-shadow: 0 0 0 2px var(--color-primary-bright) inset; }

.bt-chon { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: 0 0 var(--sp-3); }
.bt-chon__o { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 var(--sp-4);
              border: 1.5px solid var(--color-border); border-radius: 999px; background: #FFFFFF;
              font-size: 14px; font-weight: 600; cursor: pointer; }
.bt-chon__o .bt { width: 18px; height: 18px; color: var(--color-primary-bright); }
.bt-chon__o input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.bt-chon__o:has(input:checked) { border-color: var(--color-primary-bright); background: var(--color-tint-lavender); color: var(--color-primary); }
.bt-chon__o:has(input:checked)::after { content: "✓"; position: absolute; top: -6px; right: -4px; display: flex; align-items: center; justify-content: center;
                                        width: 18px; height: 18px; border-radius: 50%; background: var(--color-primary-bright);
                                        color: #FFFFFF; font-size: 11px; font-weight: 700; }
.bt-chon__o:has(input:focus-visible) { outline: 2px solid var(--color-primary-bright); outline-offset: 2px; }
.bt-chon__them { margin: 0; }

.bt-kn__them { margin-top: var(--sp-3); }
.bt-luu { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); margin: var(--sp-6) 0 var(--sp-8); text-align: center; }
.bt-luu__nut { min-width: 240px; min-height: 52px; }
.bt-luu__nut .bt { width: 20px; height: 20px; }
.bt-luu__phu { margin: 0; font-size: 12px; color: var(--color-text-secondary); }

/* ═════ BỘ CÔNG CỤ (/xay-dung/cong-cu) — bản thiết kế CSH 12/11/2026 ══════ */
.cc-tim { display: flex; align-items: center; gap: var(--sp-2); margin: 0 0 var(--sp-3); padding: 0 var(--sp-4);
          border: 1px solid var(--color-border); border-radius: 999px; background: #FFFFFF; box-shadow: var(--shadow-soft); }
.cc-tim:focus-within { border-color: var(--color-primary-bright); }
.cc-tim__ico { flex: 0 0 auto; color: var(--color-text-secondary); line-height: 0; }
.cc-tim__o { flex: 1 1 auto; min-width: 0; min-height: 48px; padding: 0; border: 0; background: transparent; color: var(--text); outline: none; }
.cc-tim__o::placeholder { color: var(--color-text-secondary); }
.cc-loc { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: 0 0 var(--sp-5); }
.cc-loc .hoc-loc__muc .bt { width: 18px; height: 18px; }
@media (max-width: 479px) {
  .cc-loc { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--space-3)) var(--sp-5); padding: 2px var(--space-3) 6px; scrollbar-width: none; }
  .cc-loc::-webkit-scrollbar { display: none; }
}

.cc-dx { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); margin: 0; padding: 0; list-style: none; }
.cc-dx__the { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--color-border);
              border-radius: 16px; background: #FFFFFF; color: var(--text); text-decoration: none; }
.cc-dx__chu { display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; padding: var(--sp-3); }
.cc-dx__nhan { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--color-primary-bright); }
.cc-dx__ten { font-size: 15px; font-weight: 700; line-height: 1.3; }
.cc-dx__mo-ta { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
                font-size: 13px; line-height: 1.4; color: var(--color-text-secondary); }
.cc-dx__mui { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 32px; margin-top: auto;
              border-radius: 999px; background: var(--color-tint-lavender); color: var(--color-primary); }
.cc-dx__mui .bt { width: 18px; height: 18px; }
@media (max-width: 479px) {
  .cc-dx { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; overflow-x: auto;
           margin: 0 calc(-1 * var(--sp-4)); padding: 2px var(--sp-4) var(--sp-2); scroll-snap-type: x mandatory; scrollbar-width: none; }
  .cc-dx::-webkit-scrollbar { display: none; }
  .cc-dx > li { scroll-snap-align: start; }
}

.cc-hang { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, calc((100% - 2 * var(--sp-3)) / 3)); gap: var(--sp-3);
           overflow-x: auto; margin: 0 calc(-1 * var(--sp-4)); padding: 2px var(--sp-4) var(--sp-2); list-style: none;
           scroll-snap-type: x mandatory; scrollbar-width: none; }
.cc-hang::-webkit-scrollbar { display: none; }
.cc-hang > li { scroll-snap-align: start; }
@media (max-width: 479px) { .cc-hang { grid-auto-columns: 46%; } }
.cc-luoi { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--sp-3); margin: 0; padding: 0; list-style: none; }

.cc-the { display: flex; flex-direction: column; gap: var(--sp-2); height: 100%; min-height: 124px; padding: var(--sp-3);
          border: 1px solid var(--color-border); border-radius: 14px; background: #FFFFFF; color: var(--text); text-decoration: none; }
.cc-the__ico { color: var(--color-primary-bright); line-height: 0; }
.cc-the__ico .bt { width: 24px; height: 24px; }
.cc-the__chu { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cc-the__ten { font-size: 14px; font-weight: 700; line-height: 1.3; }
.cc-the__mo-ta { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
                 font-size: 12px; line-height: 1.4; color: var(--color-text-secondary); }
.cc-the__nhan { align-self: flex-start; margin-top: 2px; padding: 1px 8px; border-radius: 999px; background: #FFF2D9;
                color: #9A5B00; font-size: 11px; font-weight: 700; }
.cc-the__nhan--ghim { background: var(--color-primary-soft); color: var(--color-primary); }
.cc-xong__phu { display: block; font-size: 12px; font-weight: 400; color: var(--color-text-secondary); }

/* ═════ KẾ HOẠCH (/xay-dung/ke-hoach) — bản thiết kế CSH 12/11/2026 ═══════ */
.kh-ky { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-2); margin: 0 0 var(--sp-4); }
.kh-ky__muc { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 var(--sp-2);
              border: 1px solid var(--color-border); border-radius: 999px; background: #FFFFFF; color: var(--text);
              font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.kh-ky__muc .bt { width: 18px; height: 18px; }
.kh-ky__muc--dang { border-color: transparent; background: var(--color-primary); color: #FFFFFF; }
@media (max-width: 479px) { .kh-ky__muc .bt { display: none; } .kh-ky__muc { font-size: 13px; } }

.kh-dieu { display: flex; align-items: center; gap: var(--sp-2); }
.kh-dieu__nut { flex: 0 0 44px; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--text); }
.kh-dieu__nut .bt { width: 20px; height: 20px; }
.kh-dieu__ten { flex: 1 1 auto; min-width: 0; margin: 0; font-size: clamp(14px, 4vw, 17px); font-weight: 800; text-align: center; }
.kh-dieu__nay { flex: 0 0 auto; padding: 4px 10px; border-radius: 999px; background: var(--color-primary-soft);
                color: var(--color-primary); font-size: 12px; font-weight: 700; }
.kh-ngay { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin: var(--sp-3) 0 0; padding: 0; list-style: none; }
@media (max-width: 479px) { .kh-ngay { grid-template-columns: repeat(7, minmax(44px, 1fr)); gap: 2px; overflow-x: auto; scrollbar-width: none;
  margin-left: calc(-1 * var(--sp-3)); margin-right: calc(-1 * var(--sp-3)); } .kh-ngay::-webkit-scrollbar { display: none; } }
.kh-ngay__o { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px;
              border: 1px solid var(--color-border); border-radius: 12px; background: #FFFFFF; color: var(--text); text-decoration: none; }
.kh-ngay__thu { font-size: 13px; font-weight: 700; }
.kh-ngay__so { font-size: 11px; color: var(--color-text-secondary); }
.kh-ngay__o--chon { border-color: transparent; background: var(--color-primary); color: #FFFFFF; }
.kh-ngay__o--chon .kh-ngay__so { color: rgb(255 255 255 / .85); }
.kh-khoang { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; align-items: center; gap: var(--sp-2); margin-top: var(--sp-3); }

.kh-so { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); margin: 0 0 var(--sp-4); }
.kh-so__the { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-4); border-radius: 20px; background: #FFFFFF;
              box-shadow: var(--shadow-soft); color: var(--text); text-decoration: none; }
.kh-so__the--nhat { background: #F4F6FE; }
.kh-so__ico { flex: 0 0 40px; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
              border-radius: 50%; background: var(--color-tint-lavender); color: var(--color-primary-bright); }
.kh-so__chu { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.kh-so__ten { font-size: 15px; font-weight: 700; }
.kh-so__phu { font-size: 13px; color: var(--color-text-secondary); }
.kh-so__hang { display: flex; align-items: center; gap: var(--sp-2); margin-top: 4px; font-size: 13px; }
.kh-so__hang .hoc-thanh { flex: 1 1 auto; }
.kh-so__toi { flex: 0 0 auto; color: var(--color-text-secondary); line-height: 0; }
@media (max-width: 419px) { .kh-so { grid-template-columns: minmax(0, 1fr); } }

.kh-mt__dau { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--sp-3); }
.kh-mt__nut { white-space: nowrap; }
@media (max-width: 479px) { .kh-mt__dau { grid-template-columns: auto minmax(0, 1fr); } .kh-mt__nut { grid-column: 1 / -1; justify-self: start; } }
.kh-mt__nut .bt { width: 16px; height: 16px; }
.kh-mt__ds { margin-top: var(--sp-3); padding: 0; box-shadow: none; }

.kh-tab { display: grid; grid-template-columns: 1.4fr 1fr 1fr; margin: calc(-1 * var(--sp-1)) 0 var(--sp-2); border-bottom: 1px solid var(--color-divider); }
.kh-tab__muc { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 4px;
               border-bottom: 2px solid transparent; color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.kh-tab__muc .bt { width: 18px; height: 18px; }
.kh-tab__muc--dang { border-bottom-color: var(--color-primary-bright); color: var(--color-primary-bright); }
@media (max-width: 379px) { .kh-tab__muc .bt { display: none; } }
.kh-viec__trong { padding: var(--sp-3) 0; }
.kh-ds { margin: 0; padding: 0; list-style: none; }
.kh-viec__dong { display: flex; align-items: center; gap: var(--sp-2); min-height: 56px; border-bottom: 1px solid var(--color-divider); }
.kh-viec__dong form { margin: 0; }
.kh-viec__o { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.kh-viec__o::before { content: ""; position: absolute; width: 20px; height: 20px; border: 2px solid #9AA2BD; border-radius: 5px; }
.kh-viec__o { position: relative; }
.kh-viec__o .bt { position: relative; z-index: 1; width: 14px; height: 14px; color: #FFFFFF; stroke-width: 3; }
.kh-viec__dong--xong .kh-viec__o::before { border-color: transparent; background: var(--color-primary-bright); }
.kh-viec__chu { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: var(--sp-2) 0; }
.kh-viec__phu { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.kh-viec__ten { font-size: 15px; line-height: 1.35; }
.kh-viec__dong--xong .kh-viec__ten { color: var(--color-text-secondary); text-decoration: line-through; }
.kh-viec__chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px;
                 background: #F1F3FB; font-size: 12px; font-weight: 600; white-space: nowrap; }
.kh-viec__chip .bt { width: 14px; height: 14px; }
.kh-viec__chip--xong { background: #E1F5EA; color: #158F52; }
.kh-viec__bo { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0;
               background: none; color: var(--color-text-secondary); cursor: pointer; }
.kh-viec__bo .bt { width: 16px; height: 16px; transform: rotate(45deg); }
.kh-lich__ngay { margin: var(--sp-4) 0 0; font-size: 13px; font-weight: 700; color: var(--color-primary); text-transform: uppercase; letter-spacing: .03em; }
.kh-them { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-2); margin-top: var(--sp-3); }
.kh-them > .bt-sua { width: 100%; }
.kh-xep__muc { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); padding: var(--sp-2) 0; border-bottom: 1px solid var(--color-divider); }
.kh-xep__ten { flex: 1 1 160px; min-width: 0; font-size: 14px; }
.kh-xep__form { display: flex; align-items: center; gap: var(--sp-2); }
.kh-xep__form .o__nhap { width: auto; }

.kh-big3 { color: var(--text); text-decoration: none; }
.kh-big3 .hn-goi-y__cau, .kh-big3 .hn-goi-y__vi-sao { display: block; }
.kh-big3 .nut-phu .bt { width: 16px; height: 16px; }

/* ═════ TẦM NHÌN (/xay-dung/tam-nhin) — bản thiết kế CSH 12/11/2026 ═══════ */
.tn-mo { display: flex; align-items: center; gap: var(--sp-4); }
.tn-mo__hinh { flex: 0 0 auto; width: 160px; height: 96px; }
.tn-mo__chu { min-width: 0; }
@media (max-width: 479px) {
  .tn-mo { flex-direction: column; align-items: stretch; } .tn-mo__hinh { width: 100%; height: 120px; }
  .tn-moc { grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); }
}
.tn-tab { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tn-moc { margin: 0 0 var(--sp-3); scroll-margin-top: 16px; }
.tn-moc__ten { font-size: 16px; font-weight: 700; }
.tn-ghi { display: inline-flex; align-items: center; gap: var(--sp-2); margin: 0; padding: var(--sp-2) var(--sp-4);
          border-radius: 999px; background: #F1F3FB; font-size: 12px; color: var(--color-text-secondary); }
.tn-ghi .bt { flex: 0 0 auto; width: 16px; height: 16px; }
/* Bản thân dạng CHỌN (CSH 12/11/2026). */
.bt-nhom { margin: 0 0 var(--sp-4); }
.bt-nhom + .bt-nhom { padding-top: var(--sp-4); border-top: 1px solid var(--color-divider); }
.bt-nhom__dau { display: flex; align-items: flex-start; gap: var(--sp-2); margin: 0 0 var(--sp-3); }
.bt-nhom--manh, .bt-nhom--yeu { padding: var(--sp-3) var(--sp-3) var(--sp-1); border-radius: 14px; border-top: 0; }
.bt-nhom--manh { background: #EEF8F2; }
.bt-nhom--yeu { background: #FDF0F1; }
.bt-nhom--manh + .bt-nhom--yeu { padding-top: var(--sp-3); }
.bt-nhom--manh .bt-my__ten .bt { color: #158F52; }
.bt-nhom--yeu .bt-my__ten .bt { color: #C9334E; }
.bt-nhom__nhan { margin: var(--sp-3) 0 var(--sp-2); font-size: 13px; font-weight: 700; color: var(--color-text-secondary); text-transform: uppercase; letter-spacing: .03em; }
.bt-chon__o--rieng { border-style: dashed; }
.bt-chon__them { margin: 0 0 var(--sp-2); }
.bt-nghia { margin: var(--sp-2) 0 0; padding-left: 18px; font-size: 13px; line-height: 1.5; color: var(--color-text-secondary); }
.bt-kn-goi-y { margin-top: var(--sp-2); }
.bt-mo { margin: 0 0 var(--sp-2); }
.bt-mo > summary { list-style: none; }
.bt-mo > summary::-webkit-details-marker { display: none; }
.bt-mo__tom { display: flex; align-items: center; gap: var(--sp-3); min-height: 48px; padding: var(--sp-2) var(--sp-3);
              border: 1px solid var(--color-border); border-radius: 14px; background: #FFFFFF; cursor: pointer; }
.bt-mo[open] > .bt-mo__tom { margin-bottom: var(--sp-3); border-color: var(--color-primary-bright); }
.bt-mo__chon { flex: 1 1 auto; min-width: 0; font-size: 14px; font-weight: 600; line-height: 1.45; color: var(--color-primary); }
.bt-mo__trong { flex: 1 1 auto; min-width: 0; font-size: 14px; color: var(--color-text-secondary); }
.bt-mo__nut { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--color-primary-bright); }
.bt-mo__nut .bt { width: 16px; height: 16px; transition: transform var(--motion-micro) var(--ease); }
.bt-mo[open] .bt-mo__nut .bt { transform: rotate(180deg); }
.bt-chon__o { padding: 0 var(--sp-3); font-size: 13px; }
.bt-nhom__dau { margin-bottom: var(--sp-2); }
.bt-nhom { margin-bottom: var(--sp-3); }
.bt-nhom + .bt-nhom { padding-top: var(--sp-3); }

/* ═════ MỐC HÀNH TRÌNH (/hanh-trinh/moc/{n}) — bản thiết kế CSH 12/11/2026 ═ */
.moc-ht__dau { display: flex; align-items: flex-start; gap: var(--sp-3); color: var(--text); text-decoration: none; }
.moc-ht__chu { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.moc-ht__nhan { font-size: 11px; font-weight: 700; letter-spacing: .05em; color: var(--color-text-secondary); }
.moc-ht__ly-do { font-size: 17px; font-weight: 700; line-height: 1.4; }
.moc-ht__ngay { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin: var(--sp-3) 0 0;
                padding: var(--sp-3) var(--sp-4); border-radius: 14px; background: #F1F3FB; font-size: 14px; color: var(--color-text-secondary); }
.moc-ht__ngay > span:first-child { display: inline-flex; align-items: center; gap: var(--sp-2); color: var(--color-primary); }
.moc-ht__ngay .bt { width: 20px; height: 20px; }
.moc-sl__ten { margin-bottom: var(--sp-3); }
.moc-sl { display: flex; align-items: center; gap: var(--sp-4); }
.moc-sl__vong { flex: 0 0 auto; }
.moc-sl__pt { font-size: 22px; font-weight: 800; }
.moc-sl__pt-nhan { font-size: 11px; color: var(--color-text-secondary); }
.moc-sl__ds { flex: 1 1 auto; display: grid; gap: var(--sp-2); margin: 0; padding: 0 0 0 var(--sp-4); border-left: 1px solid var(--color-divider); list-style: none; }
.moc-sl__ds li { display: flex; align-items: center; gap: var(--sp-2); font-size: 14px; color: var(--color-text-secondary); }
.moc-sl__ds .bt { flex: 0 0 auto; width: 20px; height: 20px; color: var(--color-primary-bright); }
.moc-sl__ds b { color: var(--text); font-size: 16px; }
.moc-chu-y { display: flex; align-items: flex-start; gap: var(--sp-2); margin: var(--sp-4) 0 0; padding: var(--sp-3);
             border-radius: 14px; background: #FFF4E5; font-size: 14px; }
.moc-chu-y .bt { flex: 0 0 auto; width: 20px; height: 20px; color: #C77700; }
.moc-hoi { display: flex; align-items: flex-start; gap: var(--sp-3); margin: 0 0 var(--sp-4); }
.moc-hoi__chu { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.moc-hoi .bt-hoi__ten { font-size: 15px; }
.moc-hoi .bt-hoi__o { margin-top: var(--sp-2); min-height: 88px; }
.moc-gy { align-items: flex-start; }
.moc-gy__ds { display: grid; gap: var(--sp-2); margin: var(--sp-3) 0 0; padding: 0; list-style: none; }
.moc-gy__muc { display: flex; flex-direction: column; gap: 2px; min-height: 44px; padding: var(--sp-3); border-radius: 12px;
               background: #FFFFFF; color: var(--text); text-decoration: none; }
.moc-gy__cau { font-size: 14px; font-weight: 600; }
.moc-gy__vi-sao { font-size: 12px; color: var(--color-text-secondary); }
.moc-nut { display: grid; gap: var(--sp-3); margin: 0 0 var(--sp-8); }
.moc-nut__chinh, .moc-nut__phu { width: 100%; min-height: 52px; }
.moc-nut .bt { width: 20px; height: 20px; }

/* ═════ KHỞI ĐẦU (/toi/khoi-dau) — một bước một việc, CSH 12/11/2026 ═══════ */
.kd { padding-top: env(safe-area-inset-top); }
.kd-dau { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.kd-dau__logo { display: block; width: auto; height: 24px; }
.kd-dau__de-sau { color: var(--color-text-secondary); font-size: 14px; }
.kd-tien { display: flex; align-items: center; gap: var(--sp-3); margin: var(--sp-2) 0 var(--sp-6); }
.kd-tien__chu { flex: 0 0 auto; font-size: 13px; font-weight: 700; color: var(--color-primary); }
.kd-tien__vach { flex: 1 1 auto; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; }
.kd-tien__o { height: 6px; border-radius: 3px; background: var(--color-primary-soft); }
.kd-tien__o--xong { background: var(--color-primary-bright); }
.kd-buoc { padding: var(--sp-6) var(--sp-4) var(--sp-5); border-radius: 24px; background: #FFFFFF; box-shadow: var(--shadow-soft); }
.kd-buoc__ico { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin: 0 0 var(--sp-4);
                border-radius: 16px; background: var(--color-tint-lavender); color: var(--color-primary-bright); }
.kd-buoc__ico .bt { width: 30px; height: 30px; }
.kd-buoc__ten { margin: 0; font-size: clamp(24px, 6.6vw, 30px); font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
.kd-buoc__hoi { margin: var(--sp-2) 0 var(--sp-4); font-size: 15px; color: var(--color-text-secondary); }
.kd-vi-sao { margin: 0 0 var(--sp-5); padding: var(--sp-3) var(--sp-4); border-radius: 16px; background: #F3F5FE; border-left: 3px solid var(--color-primary-bright); }
.kd-vi-sao__ten { display: flex; align-items: center; gap: var(--sp-2); margin: 0 0 4px; font-size: 13px; font-weight: 700; color: var(--color-primary); }
.kd-vi-sao__ten .bt { width: 18px; height: 18px; }
.kd-vi-sao__chu { margin: 0; font-size: 14px; line-height: 1.55; }
.kd-vi-sao__dung { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: var(--sp-2) 0 0; font-size: 12px; color: var(--color-text-secondary); }
.kd-vi-sao__the { padding: 2px 8px; border-radius: 999px; background: #FFFFFF; color: var(--color-primary); font-weight: 600; }
.kd-nhom { margin: 0 0 var(--sp-5); }
.kd-nhom__ten { margin: 0 0 var(--sp-2); font-size: 15px; font-weight: 700; }
.kd-nhom__mach { margin: -4px 0 var(--sp-3); font-size: 13px; color: var(--color-text-secondary); }
.kd-them { margin-top: var(--sp-2); }
.kd-nut { display: flex; gap: var(--sp-3); margin-top: var(--sp-2); }
.kd-nut__lui { flex: 0 0 auto; min-height: 52px; }
.kd-nut__tiep { flex: 1 1 auto; min-height: 52px; font-size: 16px; }
.kd-nut .bt { width: 20px; height: 20px; }
.kd-nut--doc { flex-direction: column; }
.kd-bo-qua { display: block; margin: var(--sp-3) auto 0; color: var(--color-text-secondary); font-size: 14px; }
.kd-ghi { margin: var(--sp-4) 0 0; font-size: 12px; text-align: center; color: var(--color-text-secondary); }
.kd-xong { text-align: center; margin-top: var(--sp-6); }
.kd-xong .kd-buoc__ico { margin-left: auto; margin-right: auto; }
.kd-xong__ico { background: #E1F5EA; color: #158F52; border-radius: 50%; }

/* Nút quay lại chung trên thanh đầu trang (CSH 12/11/2026). Có nút này thì
   logo thu nhỏ một chút; máy hẹp nhất thì nhường chỗ hẳn cho các nút. */
.dt--ve .dt__logo { margin-right: auto; margin-left: var(--sp-2); }
.dt__ve { flex: 0 0 44px; }
.dt__ve .bt { width: 22px; height: 22px; }
.dt--ve .dt__chu { height: 24px; }
@media (min-width: 900px) { .dt--ve .dt__chu { height: 28px; } }
@media (max-width: 419px) { .dt--ve .dt__chu { height: 19px; } .dt--ve .dt__logo { margin-left: 6px; } .dt--ve .dt__phai { gap: 6px; } }
@media (max-width: 379px) { .dt--ve .dt__logo { display: none; } .dt--ve .dt__phai { margin-left: auto; } }

/* Chọn nhanh cạnh ô nhập tay (CSH 12/11/2026). Ẩn khi không có JS. */
.chon-nhanh { display: none; margin: var(--sp-2) 0 var(--sp-3); }
.co-js .chon-nhanh { display: block; }
.chon-nhanh__nhan { margin: 0 0 var(--sp-2); font-size: 12px; font-weight: 600; color: var(--color-text-secondary); }
.chon-nhanh .bt-chon { margin: 0; }
.ht-luat { margin-bottom: var(--sp-2); }

/* ═════ HỒ SƠ CÁ NHÂN HOÁ (/toi/ho-so) — bản thiết kế CSH 12/11/2026 ══════ */
.hs-dem { margin: 0 0 var(--sp-3); font-size: 13px; font-weight: 600; color: var(--color-primary); }
.hs-the { display: flex; align-items: flex-start; gap: var(--sp-3); margin: 0 0 var(--sp-3); padding: var(--sp-4);
          border-radius: 18px; background: #FFFFFF; box-shadow: var(--shadow-soft); }
.hs-the__chu { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hs-the__ten { margin: 0; font-size: 16px; font-weight: 700; }
.hs-the__phu { margin: 0 0 var(--sp-2); font-size: 13px; color: var(--color-text-secondary); }
.hs-the__chon { margin-top: 2px; font-weight: 600; }
.hs-luu { width: 100%; min-height: 52px; margin: var(--sp-2) 0 var(--sp-6); }
.hs-luu .bt { width: 20px; height: 20px; }
.hs-the--mo .bt-mo { margin: 0; }
.hs-the--mo form .nut-chinh, .hs-the--mo details > .nut-chinh { margin-top: var(--sp-3); }
.hs-kn { display: grid; gap: var(--sp-3); margin: 0 0 var(--sp-2); padding: 0; list-style: none; font-size: 14px; }
.hs-kn li { display: flex; flex-direction: column; gap: 2px; }
.hs-kn__bai { font-size: 13px; color: var(--color-text-secondary); }

/* Ẩn/hiện mật khẩu (CSH 12/11/2026) — khung do thinq.js dựng quanh ô mật khẩu. */
.o-mk { position: relative; display: block; }
.o-mk > .o__nhap { padding-right: 52px; }
.o-mk__nut { position: absolute; top: 50%; right: 4px; transform: translateY(-50%); display: flex; align-items: center;
             justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
             background: none; color: var(--color-text-secondary); cursor: pointer; }
.o-mk__nut:hover, .o-mk__nut[aria-pressed="true"] { color: var(--color-primary); }
.o-mk__nut:focus-visible { outline: 2px solid var(--color-primary-bright); outline-offset: -2px; }

/* ═════ GIỚI THIỆU THANG (Khởi đầu, đặc tả Welcome & Introduction 12/11/2026) ═ */
.kd-tien { flex-wrap: wrap; row-gap: var(--sp-2); }
.kd-tien__chang { flex: 1 1 100%; display: flex; gap: var(--sp-3); font-size: 12px; font-weight: 600; color: var(--color-text-secondary); }
.kd-tien__ten--dang { color: var(--color-primary); }
.kd-tien__chu { flex: 0 0 auto; order: 3; font-size: 12px; }
.kd-nut__rong { width: 100%; }
.gt-hinh { display: block; width: 100%; height: auto; max-height: 190px; margin: 0 0 var(--sp-4); }
.gt-mat { margin: 0 0 var(--sp-2); font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--color-primary-bright); }
.gt-chu { margin: var(--sp-3) 0 0; font-size: 15px; line-height: 1.6; color: var(--text); }
.gt-chu--nho { font-size: 13px; color: var(--color-text-secondary); }
.gt-khau { margin: var(--sp-4) 0 0; font-size: 14px; font-weight: 700; color: var(--color-primary); font-style: italic; }
.gt-ds { display: grid; gap: var(--sp-2); margin: var(--sp-3) 0 0; padding: 0; list-style: none; }
.gt-ds li { display: flex; align-items: flex-start; gap: var(--sp-2); font-size: 14px; line-height: 1.5; }
.gt-ds .bt { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; padding: 3px; border-radius: 50%;
             background: var(--color-primary-bright); color: #FFFFFF; stroke-width: 3; }
.gt-ds--nho li { font-size: 13px; }
.gt-ds--nho li::before { content: "•"; color: var(--color-primary-bright); font-weight: 700; }
.gt-nhan { margin: var(--sp-5) 0 0; padding: var(--sp-3) var(--sp-4); border-radius: 14px; background: #F3F5FE;
           font-size: 15px; font-weight: 700; line-height: 1.5; color: var(--color-primary); }
.gt-quyen { margin-top: var(--sp-4); }
.gt-tru, .gt-cach { display: grid; gap: var(--sp-3); margin: var(--sp-4) 0 0; padding: 0; list-style: none; }
.gt-tru__o { display: flex; align-items: flex-start; gap: var(--sp-3); padding: var(--sp-3); border: 1px solid var(--color-border); border-radius: 16px; }
.gt-tru__chu { flex: 0 0 48px; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px;
               border-radius: 14px; background: var(--color-primary); color: #FFFFFF; font-size: 26px; font-weight: 800; }
.gt-tru__than { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gt-tru__en { font-size: 13px; font-weight: 800; letter-spacing: .1em; color: var(--color-primary-bright); }
.gt-tru__vi { font-size: 16px; font-weight: 700; }
.gt-tru__mo { font-size: 13px; line-height: 1.5; color: var(--color-text-secondary); }
.gt-tru__nang { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.gt-tru__nang span { padding: 2px 8px; border-radius: 999px; background: var(--color-tint-lavender); color: var(--color-primary); font-size: 11px; font-weight: 600; }
.gt-cach__o { display: flex; align-items: flex-start; gap: var(--sp-3); }
.gt-cach__ico { flex: 0 0 40px; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
                border-radius: 50%; background: var(--color-tint-lavender); color: var(--color-primary-bright); }
.gt-cach__ico .bt { width: 22px; height: 22px; }
.gt-cach__so { font-size: 14px; color: var(--text); }
.gt-nut { margin-top: var(--sp-5); }
.gt-buoc--chao { text-align: center; }
.gt-buoc--chao .gt-chu { color: var(--color-text-secondary); }
@media (min-width: 900px) { .kd { max-width: 640px; } }
.gt-buoc { overflow-wrap: anywhere; }
.kd-tien__ten { white-space: nowrap; }
/* Nút chữ dài (Tạo mục tiêu đầu tiên, Bắt đầu cá nhân hoá) không được đẩy tràn ngang. */
.kd-nut__tiep { min-width: 0; white-space: normal; text-align: center; }
.kd-nut__tiep span { overflow-wrap: anywhere; }
@media (max-width: 419px) { .kd-nut__lui span { display: none; } .kd-nut__lui { padding: 0 var(--sp-4); } }

/* Thẻ «Làm lại theo từng bước» (CSH 12/11/2026). */
.ll-kd { display: flex; align-items: center; gap: var(--sp-3); margin: 0 0 var(--sp-4); padding: var(--sp-4);
         border-radius: 18px; background: linear-gradient(120deg, #EEF0FE 0%, #E4E8FD 100%); color: var(--text); text-decoration: none; }
.ll-kd__ico { flex: 0 0 44px; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
              border-radius: 50%; background: #FFFFFF; color: var(--color-primary-bright); }
.ll-kd__ico .bt { width: 24px; height: 24px; }
.ll-kd__chu { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ll-kd__ten { font-size: 16px; font-weight: 700; color: var(--color-primary); }
.ll-kd__phu { font-size: 13px; line-height: 1.4; color: var(--color-text-secondary); }
.ll-kd__toi { flex: 0 0 auto; color: var(--color-primary); line-height: 0; }

/* ═════ CHUYỂN TRANG MƯỢT (CSH 12/11/2026) ════════════════════════════════
   1. View Transitions giữa hai trang (Chrome/Edge 126+, Safari/iOS 18.2+):
      chỉ PHẦN NỘI DUNG mờ dần + trượt nhẹ; thanh đầu trang và thanh điều
      hướng có tên riêng nên đứng yên, không nháy. Trình duyệt cũ bỏ qua.
   2. Thanh tiến trình mảnh trên cùng (thinq.js) khi trang tải chậm.
   3. Lún nhẹ khi chạm nút / mục menu.
   Tất cả tắt khi người dùng bật «giảm chuyển động». */
@view-transition { navigation: auto; }
.dt { view-transition-name: dau-trang; }
.dh { view-transition-name: dieu-huong; }
#chinh { view-transition-name: noi-dung; }

@keyframes vt-ra { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-vao { from { opacity: 0; transform: translateY(10px); } }
::view-transition-old(noi-dung) { animation: vt-ra 140ms cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(noi-dung) { animation: vt-vao 240ms cubic-bezier(0, 0, .2, 1) 60ms both; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 180ms; }
/* Thanh đầu trang / điều hướng: đổi tức thì, không mờ chéo. */
::view-transition-old(dau-trang), ::view-transition-new(dau-trang),
::view-transition-old(dieu-huong), ::view-transition-new(dieu-huong) { animation: none; }

.thanh-tai { position: fixed; top: 0; left: 0; z-index: 100; height: 3px; width: 0; pointer-events: none;
             background: linear-gradient(90deg, var(--color-primary-bright), #7C8BFA); border-radius: 0 2px 2px 0;
             box-shadow: 0 0 8px rgb(28 33 252 / .4); opacity: 0;
             transition: width 1.2s cubic-bezier(.1, .7, .2, 1), opacity 160ms ease; }
.thanh-tai--chay { opacity: 1; width: 82%; }
.thanh-tai--xong { opacity: 0; width: 100%; transition: width 160ms ease, opacity 260ms ease 120ms; }

.dh__muc, .nut-chinh, .nut-phu, .dt__nut, .kp-khu__muc, .cn-ds__muc, .st-dong, .xd-o, .cc-the, .hoc-loc__muc, .kh-ky__muc,
.bdt__the, .the-da, .ca-cho, .ll-kd { transition: transform 120ms ease, background-color 160ms ease, color 160ms ease, box-shadow 160ms ease; }
.dh__muc:active, .nut-chinh:active, .nut-phu:active, .dt__nut:active, .hoc-loc__muc:active, .kh-ky__muc:active { transform: scale(.94); }
.kp-khu__muc:active, .cn-ds__muc:active, .xd-o:active, .cc-the:active, .bdt__the:active, .the-da:active, .ca-cho:active, .ll-kd:active { transform: scale(.98); }
.dh__muc .bt { transition: transform 200ms cubic-bezier(.3, 1.4, .5, 1); }
.dh__muc--dang .bt { transform: translateY(-1px) scale(1.06); }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .thanh-tai { display: none; }
  .dh__muc, .nut-chinh, .nut-phu, .dt__nut, .kp-khu__muc, .cn-ds__muc, .st-dong, .xd-o, .cc-the, .hoc-loc__muc, .kh-ky__muc,
  .bdt__the, .the-da, .ca-cho, .ll-kd, .dh__muc .bt { transition: none; transform: none; }
}

/* ═════ GÓI CƯỚC & HẠN MỨC AI (CSH 12/11/2026) ═════════════════════════════ */
.ai-han { display: flex; align-items: center; gap: var(--sp-2); min-height: 44px; margin: var(--sp-2) 0 0; padding: 0 var(--sp-3);
          border-radius: 999px; background: var(--color-tint-lavender); color: var(--text); font-size: 13px; text-decoration: none; }
.ai-han .bt { flex: 0 0 auto; width: 16px; height: 16px; color: var(--color-primary-bright); }
.ai-han--het { background: #FFF2D9; }
.ai-han__nang { margin-left: auto; font-weight: 700; color: var(--color-primary); white-space: nowrap; }
.goi-hien__nhan { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .05em; color: var(--color-text-secondary); text-transform: uppercase; }
.goi-hien__ten { margin: 2px 0; font-size: 26px; font-weight: 800; color: var(--color-primary); }
.goi-hien__phu { margin: 0 0 var(--sp-3); font-size: 14px; color: var(--color-text-secondary); }
.goi-bang { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); margin: 0 0 var(--sp-4); }
@media (max-width: 559px) { .goi-bang { grid-template-columns: minmax(0, 1fr); } }
.goi-the { padding: var(--sp-4); border: 1px solid var(--color-border); border-radius: 20px; background: #FFFFFF; }
.goi-the--pro { border: 2px solid var(--color-primary-bright); box-shadow: var(--shadow-soft); }
.goi-the__ten { margin: 0; font-size: 18px; font-weight: 800; }
.goi-the__gia { margin: 4px 0 var(--sp-3); font-size: 20px; font-weight: 800; color: var(--color-primary); }
.goi-sap { display: flex; gap: var(--sp-2); align-items: flex-start; font-size: 13px; }
.goi-sap .bt { flex: 0 0 auto; width: 18px; height: 18px; color: var(--color-primary); }

/* ═════ BẢN TIN SÁNG & ĐỊNH HƯỚNG HÔM NAY (Đợt 1 trợ lý, 12/11/2026) ═══════ */
.bt-tin { margin: 0 0 var(--sp-6); padding: var(--sp-4); border-radius: 20px; background: #FFFFFF; box-shadow: var(--shadow-soft); }
.bt-tin--dh { background: linear-gradient(160deg, #FFFFFF 40%, #F3F5FE 100%); }
.bt-tin__dau { display: flex; align-items: center; gap: var(--sp-2); margin: 0 0 var(--sp-2); }
.bt-tin__ico { flex: 0 0 36px; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px;
               border-radius: 50%; background: var(--color-tint-lavender); color: var(--color-primary-bright); }
.bt-tin__ico .bt { width: 20px; height: 20px; }
.bt-tin__ten { flex: 1 1 auto; margin: 0; font-size: 18px; font-weight: 700; }
.bt-tin__loi { margin: 0 0 var(--sp-3); font-size: 15px; line-height: 1.55; }
.bt-tin__ds { display: grid; gap: var(--sp-2); margin: 0; padding: 0; list-style: none; }
.bt-tin__muc { display: flex; align-items: center; gap: var(--sp-3); min-height: 56px; padding: var(--sp-2) var(--sp-3);
               border: 1px solid var(--color-border); border-radius: 14px; background: #FFFFFF; color: var(--text); text-decoration: none; }
.bt-tin__muc-ico { flex: 0 0 auto; color: var(--color-primary-bright); line-height: 0; }
.bt-tin__muc-ico .bt { width: 22px; height: 22px; }
.bt-tin__chu { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bt-tin__cau { font-size: 14px; font-weight: 700; line-height: 1.35; }
.bt-tin__vi-sao { font-size: 12px; line-height: 1.4; color: var(--color-text-secondary); }
.bt-tin__nut { flex: 0 0 auto; padding: 4px 10px; border-radius: 999px; background: var(--color-primary-soft);
               color: var(--color-primary); font-size: 12px; font-weight: 700; white-space: nowrap; }
.dh-muc__ph { display: flex; gap: var(--sp-2); margin: 6px 0 0 var(--sp-2); }
.dh-muc__nut { min-height: 44px; padding: 0 var(--sp-3); border: 0; background: none; color: var(--color-text-secondary);
               font-size: 13px; font-weight: 600; text-decoration: underline; cursor: pointer; }
.dh-muc__da { margin: 6px 0 0 var(--sp-3); font-size: 12px; color: #158F52; }
.dh-muc { list-style: none; }

/* Chi phí AI (biên tập). */
.cp-bang-khung { overflow-x: auto; }
.cp-bang { width: 100%; border-collapse: collapse; font-size: 13px; }
.cp-bang th, .cp-bang td { padding: 8px 10px; border-bottom: 1px solid var(--color-divider); text-align: left; white-space: nowrap; }
.cp-bang th { font-size: 12px; color: var(--color-text-secondary); font-weight: 700; }

/* ═════ TÀI CHÍNH CÁ NHÂN (/toi/tai-chinh) — Đợt 3 trợ lý, 12/11/2026 ══════ */
.tc-so { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ca-so__so.tc-so { font-size: clamp(15px, 4.4vw, 20px); }
.tc-am { color: var(--color-danger); }
.tc-duong { color: #158F52; }
.tc-form .bt-chon { margin-bottom: var(--sp-2); }
.tc-loai { margin: 0 0 var(--sp-3); }
.tc-loai__o { position: relative; cursor: pointer; }
.tc-loai__o input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tc-loai__o:has(input:checked) { border-color: transparent; background: var(--color-primary); color: #FFFFFF; }
.tc-loai__o:has(input:focus-visible) { outline: 2px solid var(--color-primary-bright); outline-offset: 2px; }
.tc-o-tien { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.tc-tien-nhanh { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: 0 0 var(--sp-3); }
.tc-dm__ten { margin: var(--sp-2) 0 6px; font-size: 12px; font-weight: 700; color: var(--color-text-secondary); }
.tc-hang { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0 var(--sp-3); }
.tc-luu { width: 100%; min-height: 52px; margin-top: var(--sp-2); }
.tc-luu .bt { width: 20px; height: 20px; }
.tc-ns { display: grid; gap: var(--sp-3); margin: 0; padding: 0; list-style: none; }
.tc-ns__dong { display: flex; justify-content: space-between; gap: var(--sp-2); margin: 0 0 6px; font-size: 14px; }
.tc-ns__dong span { color: var(--color-text-secondary); font-variant-numeric: tabular-nums; text-align: right; }
.tc-ns--gan .hoc-thanh__day { background: #D98A00; }
.tc-ns--vuot .hoc-thanh__day { background: var(--color-danger); }
.tc-ns--vuot .tc-ns__dong span { color: var(--color-danger); font-weight: 700; }
.tc-ds-vi { padding: 0; box-shadow: none; }
.tc-gd { display: flex; align-items: center; gap: var(--sp-2); min-height: 56px; border-bottom: 1px solid var(--color-divider); }
.tc-gd form { margin: 0; }
.tc-gd__chu { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.tc-gd__ten { font-size: 14px; font-weight: 600; }
.tc-gd__so { flex: 0 0 auto; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tc-gd--thu .tc-gd__so { color: #158F52; }
.tc-gd--chuyen .tc-gd__so { color: var(--color-text-secondary); }
.tc-hai { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); margin: 0 0 var(--sp-4); }
@media (max-width: 379px) { .tc-hai { grid-template-columns: minmax(0, 1fr); } }
.tc-o { display: flex; flex-direction: column; gap: 4px; padding: var(--sp-4); border-radius: 18px; background: #FFFFFF;
        box-shadow: var(--shadow-soft); color: var(--text); text-decoration: none; }
.tc-o__ten { font-size: 15px; font-weight: 700; }
.tc-o__phu { font-size: 13px; color: var(--color-text-secondary); }
.tc-mt { padding: var(--sp-3) 0; border-bottom: 1px solid var(--color-divider); }
.tc-mt__nap { display: flex; gap: var(--sp-2); align-items: center; margin-top: var(--sp-2); }
.tc-mt__nap .o__nhap { flex: 1 1 auto; min-width: 0; }
.tc-tong { margin: var(--sp-2) 0 0; font-size: 14px; text-align: center; }
.tc-rieng { display: flex; gap: var(--sp-2); align-items: flex-start; margin: var(--sp-4) 0 var(--sp-6); font-size: 12px; color: var(--color-text-secondary); }
.tc-rieng .bt { flex: 0 0 auto; width: 16px; height: 16px; }
.co-js .tc-den { display: none; }
.co-js .tc-form:has(input[name=loai][value=chuyen]:checked) .tc-den { display: block; }
.co-js .tc-form:has(input[name=loai][value=chuyen]:checked) .tc-dm { display: none; }
.co-js .tc-form:has(input[name=loai][value=chi]:checked) [data-loai-dm="thu"],
.co-js .tc-form:has(input[name=loai][value=thu]:checked) [data-loai-dm="chi"] { display: none; }
.co-js .tc-form:has(input[name=loai]:checked) .tc-dm__ten { display: none; }
.tc-dm__nhom { margin: 0; }
/* Tổng tháng: «Còn lại» trải cả hàng trên, Thu / Chi hai ô dưới — số tiền dài không tràn. */
.tc-thang-so { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tc-thang-so .ca-so__o--chinh { grid-column: 1 / -1; order: -1; }
.tc-thang-so .ca-so__o { flex-direction: row; align-items: center; }
.tc-thang-so .ca-so__chu { white-space: normal; }
.tc-thang-so .ca-so__so.tc-so { font-size: clamp(16px, 4.6vw, 22px); overflow-wrap: anywhere; white-space: normal; }
.tc-tien-nhanh .bt-chon__o { flex: 0 0 auto; justify-content: center; min-width: 64px; }
.hn-xem { min-width: 44px; justify-content: center; padding: 0 var(--sp-1); }
@media (max-width: 479px) {
  .tc-thang-so .ca-so__o:not(.ca-so__o--chinh) .ca-so__ico { display: none; }
  .tc-thang-so .ca-so__o:not(.ca-so__o--chinh) .ca-so__so.tc-so { white-space: nowrap; overflow-wrap: normal; font-size: clamp(15px, 4.3vw, 19px); }
}

/* THANH TOÁN VIETQR (Đợt 2, 12/11/2026) */
.goi-mua { display: grid; gap: var(--sp-2); margin: 0 0 var(--sp-3); }
.goi-don-cho { display: flex; gap: var(--sp-2); align-items: center; color: inherit; text-decoration: none; font-size: 14px; }
.dh-qr { text-align: center; }
.dh-qr__ma { width: min(280px, 100%); margin: var(--sp-3) auto; }
.dh-qr__ma svg { display: block; width: 100%; height: auto; border-radius: 12px; }
.dh-qr__phu { margin: 0; font-size: 13px; color: var(--color-text-secondary); }
.dh-tt { margin: 0 0 var(--sp-3); }
.dh-tt__dong { display: flex; justify-content: space-between; gap: var(--sp-3); align-items: center; padding: var(--sp-2) 0; border-bottom: 1px solid var(--color-border); }
.dh-tt__dong dt { font-size: 13px; color: var(--color-text-secondary); }
.dh-tt__dong dd { margin: 0; display: flex; gap: var(--sp-2); align-items: center; min-width: 0; text-align: right; }
.dh-tt__gt { font-weight: 700; overflow-wrap: anywhere; }
.dh-chep { min-height: 44px; min-width: 44px; padding: 0 var(--sp-3); border: 1px solid var(--color-border); border-radius: 999px; background: #FFFFFF; color: var(--color-primary); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.dh-nut { margin: 0 0 var(--sp-2); }
.dh-nut .nut-chinh, .dh-nut .nut-phu { width: 100%; }
.dh-xong { text-align: center; }
.dh-xong__ico { display: inline-flex; width: 56px; height: 56px; align-items: center; justify-content: center; border-radius: 50%; background: var(--color-primary); color: #FFFFFF; }
.dh-hang { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: space-between; align-items: center; padding: var(--sp-3) 0; border-bottom: 1px solid var(--color-border); }
.dh-hang--bao { background: linear-gradient(90deg, rgba(255, 196, 0, .12), transparent); }
.dh-hang__chu { min-width: 0; flex: 1 1 260px; }
.dh-hang__ma { margin: 0; overflow-wrap: anywhere; }
.dh-hang__phu { margin: 2px 0 0; font-size: 13px; color: var(--color-text-secondary); overflow-wrap: anywhere; }
.dh-hang__nut { display: flex; gap: var(--sp-2); }

/* TRẢI NGHIỆM CỦA BẠN — Bộ máy cá nhân hoá (12/11/2026) */
.tn-phu { margin: 0 0 var(--sp-3); font-size: 13px; color: var(--color-text-secondary); }
.tn-khoi-phuc { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; margin: 0 0 var(--sp-4); padding: var(--sp-3) var(--sp-4); border-radius: 16px; background: #F3F5FE; font-size: 13px; }
.tn-khoi-phuc .nut-phu { margin-left: auto; }
.tn-hs { display: grid; gap: var(--sp-2); margin: 0 0 var(--sp-3); padding: 0; list-style: none; }
.tn-hs__o { border: 1px solid var(--color-border); border-radius: 16px; background: #FFFFFF; }
.tn-hs__o--dang { border-color: var(--color-primary-bright); box-shadow: var(--shadow-soft); }
.tn-hs__chon { display: flex; gap: var(--sp-3); align-items: flex-start; padding: var(--sp-3) var(--sp-4) var(--sp-2); cursor: pointer; }
.tn-hs__chon input { flex: 0 0 auto; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--color-primary); }
.tn-hs__chu { display: grid; gap: 2px; min-width: 0; }
.tn-hs__ten { font-weight: 800; }
.tn-hs__mo { font-size: 13px; color: var(--color-text-secondary); overflow-wrap: anywhere; }
.tn-hs__chinh { display: flex; gap: var(--sp-2); align-items: center; min-height: 44px; padding: 0 var(--sp-4) var(--sp-2) calc(var(--sp-4) + 22px + var(--sp-3)); font-size: 13px; color: var(--color-text-secondary); cursor: pointer; }
.tn-hs__chinh input { width: 18px; height: 18px; accent-color: var(--color-primary); }
.tn-tc { margin: var(--sp-4) 0 var(--sp-2); font-size: 14px; font-weight: 800; }
.tn-tc__mo { font-weight: 400; color: var(--color-text-secondary); }
.tn-md, .tn-the, .tn-dc { margin: 0 0 var(--sp-3); padding: 0; list-style: none; }
.tn-md__o { display: flex; gap: var(--sp-3); align-items: center; min-height: 56px; padding: var(--sp-2) 0; border-bottom: 1px solid var(--color-border); }
.tn-md__o--doi { background: linear-gradient(90deg, rgba(28, 33, 252, .06), transparent); }
.tn-md__ico { display: inline-flex; flex: 0 0 auto; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 12px; background: #F3F5FE; color: var(--color-primary); }
.tn-md__chu { display: grid; gap: 2px; min-width: 0; flex: 1 1 auto; }
.tn-md__ten { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; font-weight: 700; }
.tn-md__mo { font-size: 13px; color: var(--color-text-secondary); font-weight: 400; }
.tn-md__luon { flex: 0 0 auto; font-size: 12px; color: var(--color-text-secondary); }
.tn-md__bat { display: inline-flex; flex: 0 0 auto; min-width: 48px; min-height: 44px; align-items: center; justify-content: flex-end; cursor: pointer; }
.tn-the__o { display: flex; gap: var(--sp-2); align-items: center; justify-content: space-between; min-height: 52px; border-bottom: 1px solid var(--color-border); }
.tn-the__chon { display: flex; gap: var(--sp-3); align-items: center; min-height: 44px; min-width: 0; cursor: pointer; }
.tn-the__chon input { flex: 0 0 auto; width: 20px; height: 20px; accent-color: var(--color-primary); }
.tn-the__nut { display: flex; gap: var(--sp-1); flex: 0 0 auto; }
.tn-the__doi { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--color-border); border-radius: 12px; background: #FFFFFF; color: var(--color-primary); cursor: pointer; }
.tn-the__doi:disabled { opacity: .35; cursor: default; }
.tn-the__doi .bt { width: 18px; height: 18px; }
.tn-dc__o { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; justify-content: space-between; padding: var(--sp-2) 0; border-bottom: 1px solid var(--color-border); }
.tn-dc__chu { flex: 1 1 220px; font-size: 14px; }
.tn-ap { width: 100%; margin: 0 0 var(--sp-2); }
.kd-tn { display: grid; gap: var(--sp-2); margin: var(--sp-3) 0; padding: var(--sp-3) var(--sp-4); border-radius: 16px; background: #F3F5FE; text-align: left; }
.kd-tn__chu { margin: 0; font-size: 14px; }

/* THẺ TRANG CHỦ MỚI */
.tg-ds, .the-so { margin: 0; padding: 0; list-style: none; }
.tg-ds { width: 100%; align-self: stretch; }
.tg-ds__muc { display: flex; width: 100%; box-sizing: border-box; gap: var(--sp-3); align-items: center; min-height: 52px; padding: var(--sp-2) var(--sp-3); border-radius: 14px; background: #FFFFFF; border: 1px solid var(--color-border); margin: 0 0 var(--sp-2); color: inherit; text-decoration: none; }
.tg-ds__ico { display: inline-flex; color: var(--color-primary); }
.tg-ds__ten { flex: 1 1 auto; min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
.tg-ds__so { font-weight: 800; color: var(--color-primary); }
.the-so { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-2); }
.the-so li { display: grid; gap: 2px; padding: var(--sp-3); border-radius: 14px; background: #FFFFFF; border: 1px solid var(--color-border); min-width: 0; }
.the-so__nhan { font-size: 12px; color: var(--color-text-secondary); }
.the-so__so { font-size: 14px; overflow-wrap: anywhere; }

/* CHỈ SỐ THÀNH CÔNG */
.cs-ds { display: grid; gap: var(--sp-3); margin: 0; padding: 0; list-style: none; }
.cs-o__ten { margin: 0; font-weight: 800; }
.cs-o__so { margin: 4px 0; font-size: 26px; font-weight: 800; color: var(--color-primary); }
.cs-o__phu { margin-left: var(--sp-2); font-size: 13px; font-weight: 400; color: var(--color-text-secondary); }
.cs-o__cach, .cs-o__nguon { margin: 0; font-size: 13px; color: var(--color-text-secondary); }

/* KẾT NỐI — lịch ICS, nhập tệp (12/11/2026) */
.kn-url { margin: 0 0 var(--sp-3); padding: var(--sp-3) var(--sp-4); border-radius: 16px; background: #F3F5FE; }
.kn-url__nhan { margin: 0 0 var(--sp-2); font-size: 13px; }
.kn-url__chu { margin: 0 0 var(--sp-2); font-family: ui-monospace, monospace; font-size: 12px; overflow-wrap: anywhere; }
.kn-url__nut, .kn-hang { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: var(--sp-3) 0; }
.kn-hd { margin: 0 0 var(--sp-3); padding-left: var(--sp-5); font-size: 13px; color: var(--color-text-secondary); }
.kn-hd li { margin: 0 0 var(--sp-1); }
.kn-trang { display: flex; gap: var(--sp-2); align-items: center; margin: 0 0 var(--sp-3); font-size: 14px; color: var(--color-primary); }
.kn-gom { margin: 0 0 var(--sp-3); padding: 0; border: 0; }
.kn-tep { display: grid; gap: var(--sp-2); margin: 0 0 var(--sp-3); }
.kn-cach { margin: 0 0 var(--sp-3); }
.kn-o { width: 100%; margin: 0 0 var(--sp-2); }

/* THẺ GHI NHỚ & ÔN TẬP (12/11/2026) */
.ot-tom .the-so { margin: 0 0 var(--sp-3); }
.ot-ds { margin: 0; padding: 0; list-style: none; }
.ot-ds__o { border-bottom: 1px solid var(--color-border); }
.ot-ds__dau { display: flex; gap: var(--sp-3); align-items: center; justify-content: space-between; min-height: 52px; cursor: pointer; list-style: none; }
.ot-ds__dau::-webkit-details-marker { display: none; }
.ot-ds__truoc { min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
.ot-the { margin: 0 0 var(--sp-4); padding: var(--sp-5) var(--sp-4); border-radius: 24px; background: #FFFFFF; border: 1px solid var(--color-border); box-shadow: var(--shadow-soft); text-align: center; }
.ot-the__nhan { margin: 0 0 var(--sp-3); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--color-text-secondary); }
.ot-the__truoc { margin: 0 0 var(--sp-5); font-size: 24px; font-weight: 800; line-height: 1.35; overflow-wrap: anywhere; }
.ot-the__sau { margin: var(--sp-4) 0; padding: var(--sp-4); border-radius: 16px; background: #F3F5FE; font-size: 18px; line-height: 1.5; overflow-wrap: anywhere; }
.ot-lat__nut { display: inline-flex; list-style: none; cursor: pointer; }
.ot-lat__nut::-webkit-details-marker { display: none; }
.ot-lat[open] .ot-lat__nut { display: none; }
.ot-cham { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-2); }
.ot-cham__nut { display: grid; gap: 2px; min-height: 56px; padding: var(--sp-2) var(--sp-1); border: 1px solid var(--color-border); border-radius: 14px; background: #FFFFFF; font: inherit; cursor: pointer; }
.ot-cham__nut span { font-size: 11px; color: var(--color-text-secondary); }
.ot-cham__nut--0 b { color: #C0392B; }
.ot-cham__nut--1 b { color: #B9770E; }
.ot-cham__nut--2 b { color: var(--color-primary); }
.ot-cham__nut--3 b { color: #1E8449; }

/* SÁCH CỦA TÔI (12/11/2026) */
.tg-ds__ten .hoc-thanh { display: block; margin-top: var(--sp-1); }
.s-td { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-2); align-items: end; margin-top: var(--sp-3); }
.s-td .o__nhan { grid-column: 1 / -1; }
.s-loai { display: flex; flex-wrap: wrap; gap: 0 var(--sp-4); }
.s-gc { margin: var(--sp-4) 0 0; padding: 0; list-style: none; }
.s-gc__o { padding: var(--sp-3) 0 var(--sp-3) var(--sp-3); border-left: 3px solid var(--color-border); margin: 0 0 var(--sp-3); }
.s-gc__o--trich { border-left-color: #B9770E; }
.s-gc__o--hanh_dong { border-left-color: #1E8449; }
.s-gc__o--y { border-left-color: var(--color-primary-bright); }
.s-gc__meta { margin: 0 0 var(--sp-1); font-size: 12px; font-weight: 700; color: var(--color-text-secondary); }
.s-gc__chu { margin: 0 0 var(--sp-2); overflow-wrap: anywhere; }
.s-gc__nut { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }
.s-gc__the { flex: 1 1 100%; }
.s-gc__the[open] summary { margin-bottom: var(--sp-2); }
.s-sao { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.s-sao__o { display: inline-flex; gap: var(--sp-1); align-items: center; min-height: 44px; padding: 0 var(--sp-3); border: 1px solid var(--color-border); border-radius: 999px; cursor: pointer; }
.s-sao__o input { accent-color: var(--color-primary); }

/* BIẾT ƠN & PHẢN TƯ (12/11/2026) */
.pt-so { margin: 0 0 var(--sp-4); }
.pt-cau { margin: 0 0 var(--sp-4); padding: var(--sp-5) var(--sp-4); border-radius: 24px; background: linear-gradient(160deg, #FFFFFF 20%, var(--color-tint-lavender) 100%); border: 1px solid var(--color-border); box-shadow: var(--shadow-soft); }
.pt-cau__hoi { margin: 0 0 var(--sp-4); font-size: 22px; font-weight: 800; line-height: 1.35; overflow-wrap: anywhere; }
.pt-cau form + form { margin-top: var(--sp-2); }
.pt-bo { margin: 0 0 var(--sp-3); padding: 0; list-style: none; }
.pt-bo__o { display: flex; gap: var(--sp-2); align-items: center; justify-content: space-between; min-height: 44px; border-bottom: 1px solid var(--color-border); }
.pt-bo__o::before { content: "♥"; color: #C0392B; flex: 0 0 auto; }
.pt-bo__chu { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.pt-ngay { margin: 0 0 var(--sp-3); }
.pt-ngay__ten { margin: 0 0 var(--sp-2); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--color-text-secondary); }
.pt-ngay__hoi { margin: 0 0 var(--sp-1); font-weight: 700; }
.pt-ngay__tl { margin: 0 0 var(--sp-2); color: var(--color-text-secondary); overflow-wrap: anywhere; }
.pt-ngay__bo { margin: 0; padding-left: var(--sp-5); }

/* SƠ ĐỒ TƯ DUY (12/11/2026) — tiền tố sd- (đã soát: chưa dùng ở đâu) */
.sd-khung { max-width: 100%; overflow-x: auto; margin: 0 0 var(--sp-4); padding: var(--sp-3); border-radius: 20px; background: #FFFFFF; border: 1px solid var(--color-border); -webkit-overflow-scrolling: touch; }
.sd-ve { display: block; max-width: none; height: auto; font: 13px/1.3 inherit; }
.sd-noi path { fill: none; stroke: #AFC1F4; stroke-width: 2; }
.sd-o rect { fill: #F3F5FE; stroke: #C4CEF8; stroke-width: 1; }
.sd-o text { fill: var(--color-text-primary, #14161F); font-size: 13px; }
.sd-o--goc rect { fill: var(--color-primary); stroke: var(--color-primary); }
.sd-o--goc text { fill: #FFFFFF; font-weight: 700; }
.sd-o--viec rect { stroke: #1E8449; stroke-width: 2; }
.sd-o--y rect { stroke: #B9770E; stroke-width: 2; stroke-dasharray: 4 3; }
.sd-o:hover rect, .sd-o:focus rect { stroke: var(--color-primary-bright); stroke-width: 2; }
.sd-cay { margin: 0; padding: 0 0 0 var(--sp-4); list-style: none; border-left: 2px solid #E4E9FB; }
.sd-cay--goc { padding-left: 0; border-left: 0; }
.sd-nut { margin: var(--sp-2) 0; scroll-margin-top: 80px; }
.sd-nut:target > .sd-nut__dong { background: #FFF6E0; }
.sd-nut__dong { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; min-height: 36px; padding: var(--sp-1) var(--sp-2); border-radius: 10px; }
.sd-nut__chu { font-weight: 700; overflow-wrap: anywhere; min-width: 0; }
.sd-cay--goc > .sd-nut > .sd-nut__dong .sd-nut__chu { font-size: 18px; }
.sd-nut__sua { margin: 0 0 0 var(--sp-2); }
.sd-nut__mo { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; color: var(--color-primary); cursor: pointer; }
.sd-nut__sua[open] { padding: var(--sp-2) var(--sp-3); border-radius: 14px; background: #F7F8FE; }
.sd-nut__sua form { margin: 0 0 var(--sp-2); }
.sd-nut__hanh { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }
.sd-dy { font-family: ui-monospace, monospace; font-size: 13px; }
.sd-goi-y { margin: calc(-1 * var(--sp-3)) 0 var(--sp-4); font-size: 12px; color: var(--color-text-secondary); }
@media (min-width: 900px) { .sd-goi-y { display: none; } }

/* ẨN / HIỆN TÍNH NĂNG TRÊN TRANG (12/11/2026) — tiền tố mo-dun (đã soát: chưa dùng) */
.mo-dun { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; margin: var(--sp-6) 0 var(--sp-4); padding: var(--sp-3) var(--sp-4); border-radius: 16px; border: 1px dashed var(--color-border); font-size: 13px; color: var(--color-text-secondary); }
.mo-dun--an { margin-top: 0; border-style: solid; border-color: #F0C36D; background: #FFF8E6; color: #7A5300; }
.mo-dun__chu { flex: 1 1 220px; }
.mo-dun__lk { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-primary); font-size: 13px; }
.tc-tuy-chinh { margin: var(--sp-5) 0 var(--sp-2); text-align: center; font-size: 13px; }
.tc-tuy-chinh .lien-ket { display: inline-flex; gap: var(--sp-2); align-items: center; min-height: 44px; }
.tc-tuy-chinh .bt { width: 18px; height: 18px; }

/* THANH ĐIỀU HƯỚNG CÁ NHÂN HOÁ — xem trước (12/11/2026; tiền tố tn-dh đã soát) */
.tn-dh { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sp-1); margin: 0 0 var(--sp-4); padding: var(--sp-2); list-style: none; border-radius: 16px; background: #F3F5FE; }
.tn-dh__o { display: grid; justify-items: center; gap: 2px; padding: var(--sp-1) 0; font-size: 11px; text-align: center; color: var(--color-text-secondary); min-width: 0; overflow-wrap: anywhere; }
.tn-dh__o .bt { width: 20px; height: 20px; color: var(--color-primary); }

/* ═══ TRANG CHỦ MỚI (bản thiết kế CSH 12/11/2026) — tiền tố tcm- (đã soát: chưa dùng) ═══ */
.tcm { --tcm-the: #FFFFFF; --tcm-bong: 0 10px 30px rgba(62, 58, 160, .08); }
.tcm-mau--tim { background: #F1E8FF; color: #7C3AED; }
.tcm-mau--hong { background: #FFE7F2; color: #DB2777; }
.tcm-mau--luc { background: #E3F7EA; color: #16A34A; }
.tcm-mau--cam { background: #FFEEDD; color: #EA580C; }
.tcm-mau--lam { background: #E8EBFF; color: #3F4BEA; }

.tcm-dau { position: relative; margin: calc(-1 * var(--sp-4)) calc(-1 * var(--sp-4)) var(--sp-4); padding: var(--sp-6) var(--sp-4) 72px; min-height: 230px; overflow: hidden; border-radius: 0 0 28px 28px; }
.tcm-dau__nen { position: absolute; inset: 0; width: 100%; height: 100%; }
.tcm-dau__chu { position: relative; z-index: 1; max-width: 62%; }
.tcm-dau__chao { margin: 0; font-size: 17px; font-weight: 600; color: #1D1B3A; }
.tcm-dau__ten { margin: 2px 0 var(--sp-2); font-size: clamp(30px, 9vw, 40px); font-weight: 800; line-height: 1.1; color: #12112B; overflow-wrap: anywhere; }
.tcm-dau__phu { margin: 0; font-size: 14px; line-height: 1.45; color: #3E3B66; }
.tcm-dau__phat { position: absolute; z-index: 1; right: var(--sp-4); bottom: 64px; display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; border-radius: 50%; background: #3F3AB8; color: #FFFFFF; box-shadow: 0 8px 20px rgba(63, 58, 184, .35); }
.tcm-dau__phat .bt { width: 22px; height: 22px; }

.tcm-tc { position: relative; z-index: 2; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(64px, 1fr); gap: var(--sp-2); margin: -64px 0 var(--sp-5); padding: 0 0 var(--sp-1); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.tcm-tc::-webkit-scrollbar { display: none; }
.tcm-tc__o { display: grid; justify-items: center; gap: var(--sp-2); padding: var(--sp-3) var(--sp-1); border-radius: 20px; background: rgba(255, 255, 255, .92); box-shadow: var(--tcm-bong); color: #1D1B3A; text-decoration: none; scroll-snap-align: start; min-height: 88px; }
.tcm-tc__ico { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; }
.tcm-tc__ico .bt { width: 22px; height: 22px; }
.tcm-tc__ten { font-size: 13px; font-weight: 700; }
@media (max-width: 520px) { .tcm-tc { gap: 6px; } .tcm-tc__o { padding: var(--sp-2) 2px; min-height: 80px; } .tcm-tc__ico { width: 36px; height: 36px; } .tcm-tc__ten { font-size: 10.5px; letter-spacing: -.01em; } }

.tcm-the { margin: 0 0 var(--sp-4); padding: var(--sp-4); border-radius: 24px; background: var(--tcm-the); box-shadow: var(--tcm-bong); min-width: 0; }
.tcm-the__dau { display: flex; gap: var(--sp-3); align-items: center; margin: 0 0 var(--sp-3); }
.tcm-the__ico { display: inline-flex; flex: 0 0 auto; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; }
.tcm-the__chu { flex: 1 1 auto; min-width: 0; }
.tcm-the__ten { margin: 0; font-size: 18px; font-weight: 800; }
.tcm-the__phu { display: block; margin: 2px 0 0; font-size: 13px; color: var(--color-text-secondary); }
.tcm-vong { position: relative; flex: 0 0 auto; width: 64px; height: 64px; color: #12112B; text-decoration: none; }
.tcm-vong svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.tcm-vong__nen { fill: none; stroke: #E8EBFF; stroke-width: 6; }
.tcm-vong__day { fill: none; stroke: #3F4BEA; stroke-width: 6; stroke-linecap: round; }
.tcm-vong__so { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--color-text-secondary); }
.tcm-vong__so b { font-size: 18px; color: #12112B; }
.tcm-uu .uu-tien__so, .tcm-uu .uu-tien__ico { display: none; }
.tcm-uu .uu-tien__xong { order: -1; }
.tcm-uu .uu-tien { padding: var(--sp-2) 0; border: 0; border-top: 1px solid #EEF0FA; border-radius: 0; background: transparent; box-shadow: none; }
.tcm-uu .uu-tien:first-child { border-top: 0; }
.tcm-uu .uu-tien--xong .uu-tien__ten, .tcm-uu .uu-tien--xong .uu-tien__phu { text-decoration: none; color: inherit; }
.tcm-uu .uu-tien__phu { display: block; font-size: 12px; font-weight: 400; color: var(--color-text-secondary); }
.tcm-trong { display: grid; gap: var(--sp-3); justify-items: start; font-size: 14px; color: var(--color-text-secondary); }
.tcm-trong p { margin: 0; }

.tcm-doi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); margin: 0 0 var(--sp-4); }
.tcm-doi .tcm-the { margin: 0; }
@media (max-width: 359px) { .tcm-doi { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .tcm-doi .tcm-the { padding: var(--sp-3); } .tcm-tq__so b { font-size: 28px; } .tcm-tuan__cham { width: 18px; height: 18px; } .tcm-tuan__cham .bt { width: 11px; height: 11px; } .tcm-tuan__thu { font-size: 10px; } .tcm-lich__muc { font-size: 13px; } .tcm-doi .tcm-the__ico { width: 36px; height: 36px; } }
.tcm-nho__ten { display: flex; gap: var(--sp-2); align-items: center; margin: 0; font-size: 15px; font-weight: 800; }
.tcm-lua { display: inline-flex; color: #EA580C; }
.tcm-tq__so { margin: var(--sp-2) 0 var(--sp-3); font-size: 15px; }
.tcm-tq__so b { font-size: 34px; font-weight: 800; margin-right: 4px; }
.tcm-tuan { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; margin: 0 0 var(--sp-2); padding: 0; list-style: none; text-align: center; }
.tcm-tuan__o { display: grid; justify-items: center; gap: 4px; }
.tcm-tuan__thu { font-size: 11px; color: var(--color-text-secondary); }
.tcm-tuan__cham { display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; border-radius: 50%; border: 1.5px solid #C9CDEB; color: #FFFFFF; }
.tcm-tuan__cham .bt { width: 14px; height: 14px; }
.tcm-tuan__o--xong .tcm-tuan__cham { background: #3F4BEA; border-color: #3F4BEA; }
.tcm-tuan__o--nay .tcm-tuan__thu { font-weight: 800; color: #12112B; }
.tcm-lk { display: inline-flex; gap: 4px; align-items: center; min-height: 44px; font-size: 13px; font-weight: 700; color: #3F4BEA; text-decoration: none; }
.tcm-lk .bt { width: 16px; height: 16px; }
.tcm-lich__dau { display: flex; gap: var(--sp-3); align-items: center; min-height: 44px; color: inherit; text-decoration: none; }
.tcm-lich__dau > span:nth-child(2) { flex: 1 1 auto; min-width: 0; }
.tcm-lich__toi { color: var(--color-text-secondary); }
.tcm-lich__ds { margin: var(--sp-2) 0 0; padding: 0; list-style: none; }
.tcm-lich__muc { display: flex; gap: var(--sp-2); align-items: flex-start; min-height: 44px; padding: var(--sp-1) 0; color: inherit; text-decoration: none; font-size: 14px; }
.tcm-cham { flex: 0 0 auto; width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; }
.tcm-cham.tcm-mau--lam { background: #3F4BEA; } .tcm-cham.tcm-mau--tim { background: #7C3AED; } .tcm-cham.tcm-mau--cam { background: #EA580C; } .tcm-cham.tcm-mau--luc { background: #16A34A; }
.tcm-lich__chu { min-width: 0; overflow-wrap: anywhere; }
.tcm-lich__phu { display: block; font-size: 12px; color: var(--color-text-secondary); }

.tcm-gy { position: relative; margin: 0 0 var(--sp-5); padding: var(--sp-4) var(--sp-4) var(--sp-3) 116px; border-radius: 24px; background: linear-gradient(120deg, #4E4BD8 0%, #6A63E8 55%, #8B84F0 100%); color: #FFFFFF; box-shadow: 0 14px 30px rgba(78, 75, 216, .3); overflow: hidden; }
.tcm-gy__linh-vat { position: absolute; left: 0; top: 50%; width: 120px; height: 120px; transform: translateY(-50%); }
.tcm-gy__ds { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: var(--sp-4); margin: 0; padding: 0; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.tcm-gy__ds::-webkit-scrollbar { display: none; }
.tcm-gy__trang { scroll-snap-align: start; min-width: 0; }
.tcm-gy__nhan { margin: 0 0 var(--sp-1); font-size: 16px; font-weight: 800; }
.tcm-gy__cau { margin: 0 0 var(--sp-1); font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.tcm-gy__vi-sao { margin: 0 0 var(--sp-3); font-size: 13px; line-height: 1.45; opacity: .9; overflow-wrap: anywhere; }
.tcm-gy__nut { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }
.tcm-gy__chinh { display: inline-flex; gap: var(--sp-2); align-items: center; min-height: 44px; padding: 0 var(--sp-4); border-radius: 999px; background: #FFFFFF; color: #3F3AB8; font-weight: 800; text-decoration: none; }
.tcm-gy__chinh .bt { width: 16px; height: 16px; }
.tcm-gy__ph { min-height: 44px; padding: 0 var(--sp-2); border: 0; background: transparent; color: #FFFFFF; font: inherit; font-size: 12px; text-decoration: underline; opacity: .9; cursor: pointer; }
.tcm-gy__da { font-size: 12px; opacity: .9; }
.tcm-gy__dem { margin: var(--sp-2) 0 0; font-size: 11px; opacity: .8; }
@media (max-width: 400px) { .tcm-gy { padding-left: var(--sp-4); padding-top: 92px; } .tcm-gy__linh-vat { top: 4px; left: 50%; width: 96px; height: 96px; transform: translateX(-50%); } }

.tcm-muc { margin: 0 0 var(--sp-4); }
.tcm-muc__dau { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; justify-content: space-between; margin: 0 0 var(--sp-2); }
.tcm-muc__ten { display: flex; gap: var(--sp-2); align-items: center; margin: 0; font-size: 18px; font-weight: 800; }
.tcm-muc__ten .bt { color: #3F4BEA; }
.tcm-gd { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: var(--sp-3); margin: 0; padding: 0 0 var(--sp-2); list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.tcm-gd::-webkit-scrollbar { display: none; }
.tcm-gd > li { scroll-snap-align: start; min-width: 0; }
.tcm-gd__the { display: grid; gap: var(--sp-1); align-content: start; height: 100%; min-height: 118px; padding: var(--sp-3); border-radius: 20px; background: linear-gradient(160deg, #FFFFFF 40%, #F1EEFF 100%); box-shadow: var(--tcm-bong); color: inherit; text-decoration: none; box-sizing: border-box; }
.tcm-gd__ico { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 12px; background: #F1E8FF; color: #7C3AED; margin-bottom: var(--sp-1); }
.tcm-gd__ten { font-size: 14px; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
.tcm-gd__phu { font-size: 12px; color: var(--color-text-secondary); }
.tcm-gd__pt { font-size: 12px; font-weight: 800; color: #3F4BEA; }

.tcm-ky { display: inline-flex; padding: 3px; border-radius: 999px; background: #FFFFFF; box-shadow: var(--tcm-bong); }
.tcm-ky__o { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--sp-4); border-radius: 999px; font-size: 13px; font-weight: 700; color: #3E3B66; text-decoration: none; }
.tcm-ky__o--dang { background: #4E4BD8; color: #FFFFFF; }
.tcm-ht { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: var(--sp-3); align-items: center; }
@media (max-width: 400px) { .tcm-ht { grid-template-columns: minmax(0, 1fr); } }
.tcm-ht__lon { margin: 2px 0; font-size: 36px; font-weight: 800; color: #1C1F9E; }
.tcm-ht__lon span { font-size: 16px; font-weight: 600; color: var(--color-text-secondary); }
.tcm-ht__chenh { margin: 0; font-size: 12px; font-weight: 700; }
.tcm-ht__chenh--len { color: #16A34A; } .tcm-ht__chenh--xuong { color: #C0392B; }
.tcm-ht__ve { width: 100%; height: 90px; display: block; }

.tcm-cuoi { margin: var(--sp-6) calc(-1 * var(--sp-4)) 0; text-align: center; }
.tcm-cuoi__chu { margin: 0 0 var(--sp-2); font-size: 15px; font-weight: 700; color: #3F3AB8; }
.tcm-cuoi__nui { display: block; width: 100%; height: 50px; }
.tcm-lk-ten { display: flex; align-items: center; min-height: 44px; color: inherit; text-decoration: none; }
.tcm-tuan__cham { box-sizing: border-box; }
@media (max-width: 520px) {
  .tcm-tuan__cham { width: 16px; height: 16px; border-width: 1.25px; }
  .tcm-tuan__cham .bt { width: 10px; height: 10px; }
  .tcm-nho__ten { font-size: 14px; }
  .tcm-lich__dau { gap: var(--sp-2); }
  .tcm-lich__dau .tcm-the__ico { width: 32px; height: 32px; }
  .tcm-lich__dau .tcm-the__ico .bt { width: 18px; height: 18px; }
  .tcm-tq__so { margin: var(--sp-1) 0 var(--sp-2); font-size: 13px; }
}

/* Trang chủ — sát bản thiết kế hơn (lượt 2) */
.tcm-lich__dau .tcm-nho__ten { white-space: nowrap; }
.tcm-co-lua { position: relative; overflow: hidden; }
.tcm-lua-lon { position: absolute; top: 6px; right: 6px; width: 46px; height: 58px; opacity: .95; }
.tcm-co-lua .tcm-tq__so { position: relative; }
.tcm-tc__ico svg { width: 22px; height: 22px; }
.tcm-tc__o { background: #FFFFFF; box-shadow: 0 8px 22px rgba(62, 58, 160, .10); }
.tcm-uu .uu-tien__nut .bt { display: none; }
.tcm-uu .uu-tien__nut::before { content: ""; display: block; width: 10px; height: 16px; background: radial-gradient(circle, #B9BDD6 1.6px, transparent 1.8px) 0 0 / 5px 5.4px; }
.tcm-gy__ds { align-items: start; }
.tcm-gy__cham { display: flex; justify-content: center; gap: 6px; margin: calc(-1 * var(--sp-3)) 0 var(--sp-5); padding: 0; list-style: none; }
.tcm-gy__cham li { width: 6px; height: 6px; border-radius: 50%; background: #C9CDEB; transition: width .2s, background .2s; }
.tcm-gy__cham li.dang { width: 16px; border-radius: 3px; background: #4E4BD8; }
.tcm-gd { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
@media (max-width: 400px) { .tcm-gd { gap: var(--sp-2); } .tcm-gd__the { padding: var(--sp-2); } .tcm-gd__ten { font-size: 13px; } }
.tcm-muc__dau { flex-wrap: nowrap; }
.tcm-muc__ten { min-width: 0; }
@media (max-width: 520px) { .tcm-muc__ten { font-size: 16px; } .tcm-ky__o { padding: 0 var(--sp-3); font-size: 12px; } }
.tcm-bd { margin: 0 0 var(--sp-4); border-radius: 24px; background: #FFFFFF; box-shadow: var(--tcm-bong); }
.tcm-bd__dau { display: flex; gap: var(--sp-3); align-items: center; min-height: 64px; padding: var(--sp-3) var(--sp-4); cursor: pointer; list-style: none; }
.tcm-bd__dau::-webkit-details-marker { display: none; }
.tcm-bd__mo { color: var(--color-text-secondary); transition: transform .2s; }
.tcm-bd[open] .tcm-bd__mo { transform: rotate(180deg); }
.tcm-bd > .bdt { margin: 0; box-shadow: none; }
.tcm-cuoi__nui { height: 90px; }
.tcm-ht__chenh span { font-weight: 400; color: var(--color-text-secondary); }
/* lượt 3: lửa nằm cạnh con số, không đè tiêu đề; tiêu đề/nút kỳ gọn một dòng */
.tcm-lua-lon { top: auto; bottom: auto; right: 10px; top: 44px; width: 40px; height: 50px; }
.tcm-co-lua .tcm-nho__ten { position: relative; z-index: 1; }
@media (max-width: 520px) {
  .tcm-lua-lon { top: 40px; right: 8px; width: 30px; height: 38px; }
  .tcm-uu .tcm-the__ten { font-size: 17px; }
  .tcm-muc__ten { font-size: 15px; white-space: nowrap; }
  .tcm-muc__ten .bt { width: 18px; height: 18px; }
  .tcm-ky { flex: 0 0 auto; }
  .tcm-ky__o { padding: 0 10px; }
}
.tcm-ky__o { min-width: 48px; justify-content: center; box-sizing: border-box; }

/* THƯ KÝ (13/11/2026) — tiền tố tk- (đã soát: chưa dùng) */
.tk-nhac { margin: 0 0 var(--sp-3); border-radius: 16px; background: #FFF8E6; }
.tk-nhac__dau { display: flex; gap: var(--sp-2); align-items: center; min-height: 44px; padding: 0 var(--sp-4); font-size: 14px; font-weight: 700; color: #7A5300; cursor: pointer; list-style: none; }
.tk-nhac__dau::-webkit-details-marker { display: none; }
.tk-nhac__ds { margin: 0; padding: 0 var(--sp-4) var(--sp-2); list-style: none; }
.tk-nhac__o { display: flex; gap: var(--sp-2); align-items: center; min-height: 44px; border-top: 1px solid #F3E2B5; font-size: 14px; }
.tk-nhac__gio { flex: 0 0 auto; font-weight: 800; color: #7A5300; }
.tk-nhac__chu { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.tk-ds { display: grid; gap: var(--sp-3); margin: 0 0 var(--sp-4); padding: 0; list-style: none; }
.tk-tin { display: flex; gap: var(--sp-2); align-items: flex-end; }
.tk-tin--ban { justify-content: flex-end; }
.tk-anh { display: inline-flex; flex: 0 0 auto; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 50%; background: linear-gradient(140deg, #6A63E8, #3F4BEA); color: #FFFFFF; }
.tk-anh .bt { width: 18px; height: 18px; }
.tk-tin--he .tk-anh { background: linear-gradient(140deg, #F59E0B, #EA580C); }
.tk-bong { max-width: min(82%, 520px); padding: var(--sp-3) var(--sp-4); border-radius: 18px 18px 18px 6px; background: #FFFFFF; box-shadow: 0 6px 18px rgba(62, 58, 160, .08); }
.tk-tin--ban .tk-bong { border-radius: 18px 18px 6px 18px; background: #4E4BD8; color: #FFFFFF; }
.tk-tin--he .tk-bong { background: #FFF8E6; }
.tk-bong__chu { margin: 0; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.tk-gio { display: block; margin-top: var(--sp-1); font-size: 11px; opacity: .6; }
.tk-hoi { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-2); }
.tk-trang { display: inline-block; margin-top: var(--sp-1); font-size: 12px; font-weight: 700; color: var(--color-text-secondary); }
.tk-lk { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-2); }
.tk-lk__o { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--sp-3); border-radius: 999px; background: #EEF0FF; color: #3F3AB8; font-size: 13px; font-weight: 700; text-decoration: none; }
.tk-goi { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 3; padding: var(--sp-3) 0 0; background: linear-gradient(180deg, rgba(246, 247, 255, 0), #F6F7FF 30%); }
@media (min-width: 900px) { .tk-goi { bottom: 0; } }
.tk-goi-y { display: flex; gap: var(--sp-2); margin: 0 0 var(--sp-2); overflow-x: auto; scrollbar-width: none; }
.tk-goi-y::-webkit-scrollbar { display: none; }
.tk-goi-y__o { flex: 0 0 auto; min-height: 44px; padding: 0 var(--sp-3); border: 1px solid #D6D9F5; border-radius: 999px; background: #FFFFFF; color: #3F3AB8; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.tk-nhap { display: flex; gap: var(--sp-2); align-items: center; }
.tk-nhap__o { flex: 1 1 auto; min-width: 0; min-height: 48px; border-radius: 999px; padding: 0 var(--sp-4); }
.tk-nhap__gui { display: inline-flex; flex: 0 0 auto; width: 48px; height: 48px; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: #4E4BD8; color: #FFFFFF; cursor: pointer; }
.tk-rieng { display: flex; gap: var(--sp-2); align-items: flex-start; margin: var(--sp-3) 0 var(--sp-2); font-size: 12px; color: var(--color-text-secondary); }
.tk-rieng .bt { flex: 0 0 auto; width: 16px; height: 16px; }
.tk-tin--thu-ky { justify-content: flex-start; }
.tk-ten { margin: 0 0 var(--sp-3); }
.tk-ten__mo { display: inline-flex; gap: var(--sp-2); align-items: center; min-height: 44px; font-size: 13px; font-weight: 700; color: #3F3AB8; cursor: pointer; list-style: none; }
.tk-ten__mo::-webkit-details-marker { display: none; }
.tk-ten__mo .bt { width: 16px; height: 16px; }
.tk-ten[open] { padding: var(--sp-3); border-radius: 16px; background: #FFFFFF; box-shadow: 0 6px 18px rgba(62, 58, 160, .08); }

/* NÚT CHATBOT NỔI + KHUNG CHAT NHANH (13/11/2026) — tiền tố tkn (đã soát: chưa dùng) */
.tkn-nut { position: fixed; z-index: 60; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); display: inline-flex; width: 56px; height: 56px; align-items: center; justify-content: center; border-radius: 50%; background: linear-gradient(140deg, #6A63E8 0%, #3F4BEA 100%); color: #FFFFFF; box-shadow: 0 10px 24px rgba(63, 75, 234, .38); text-decoration: none; transition: transform .15s; }
.tkn-nut:active { transform: scale(.94); }
.tkn-nut .bt { width: 26px; height: 26px; }
.tkn-nut__cham { position: absolute; top: 6px; right: 6px; width: 12px; height: 12px; border-radius: 50%; background: #EF4444; box-shadow: 0 0 0 2px #FFFFFF; }
@media (min-width: 900px) { .tkn-nut { bottom: 24px; right: 24px; } }
.tkn { width: min(420px, calc(100vw - 24px)); max-height: min(640px, calc(100vh - 120px)); margin: auto 12px calc(84px + env(safe-area-inset-bottom)) auto; padding: 0; border: 0; border-radius: 24px; background: #F6F7FF; box-shadow: 0 24px 60px rgba(30, 28, 90, .3); overflow: hidden; }
.tkn::backdrop { background: rgba(20, 18, 50, .25); }
@media (min-width: 900px) { .tkn { margin-bottom: 92px; margin-right: 24px; } }
.tkn__than { display: flex; flex-direction: column; max-height: inherit; }
.tkn__cho { margin: 0; padding: var(--sp-6); text-align: center; color: var(--color-text-secondary); }
.tkn__dau { display: flex; gap: var(--sp-2); align-items: center; padding: var(--sp-3) var(--sp-3) var(--sp-3) var(--sp-4); background: #FFFFFF; border-bottom: 1px solid #ECEEFB; }
.tkn__ten { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 16px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tkn__mo { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--sp-2); font-size: 12px; font-weight: 700; color: #3F3AB8; text-decoration: none; }
.tkn__dong { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: transparent; color: var(--color-text-secondary); cursor: pointer; }
.tkn__dong .bt { transform: rotate(45deg); }
.tkn__ds { flex: 1 1 auto; display: grid; align-content: start; gap: var(--sp-2); margin: 0; padding: var(--sp-3); list-style: none; overflow-y: auto; min-height: 160px; }
.tkn__ds .tk-bong { max-width: 88%; padding: var(--sp-2) var(--sp-3); }
.tkn__ds .tk-bong__chu { font-size: 14px; }
.tkn__cuoi { padding: var(--sp-2) var(--sp-3) var(--sp-3); background: #FFFFFF; border-top: 1px solid #ECEEFB; }
.tkn__an { margin: var(--sp-1) 0 0; text-align: center; }
.tkn__an-nut { min-height: 44px; border: 0; background: transparent; color: var(--color-text-secondary); font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; }
.tkn__dong { flex: 0 0 auto; min-width: 46px; }
.tcm-lich__dau > span:nth-child(2) { display: grid; gap: 2px; }
.tcm-lich__dau .tcm-nho__ten { display: block; }
.tkn__mo { flex: 0 0 auto; white-space: nowrap; }
.tkn-dem { height: 76px; }
@media (min-width: 900px) { .tkn-dem { height: 88px; } }

/* CHATBOT — thiết kế lại (13/11/2026) — tiền tố tkm (đã soát: chưa dùng) */
.tkm { position: relative; }
.tkm-dau { position: relative; display: flex; gap: var(--sp-2); align-items: flex-start; margin: calc(-1 * var(--sp-4)) calc(-1 * var(--sp-4)) var(--sp-4); padding: var(--sp-5) var(--sp-4) var(--sp-6); background: linear-gradient(180deg, #EEEDFF 0%, #F6F6FF 100%); overflow: hidden; }
.tkm-dau__song { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 70px; }
.tkm-dau__chu { position: relative; z-index: 1; flex: 1 1 auto; min-width: 0; }
.tkm-dau__ten { margin: 0 0 var(--sp-2); font-size: clamp(22px, 6.4vw, 32px); font-weight: 800; line-height: 1.15; color: #12112B; overflow-wrap: anywhere; }
.tkm-dau__phu { margin: 0 0 var(--sp-3); font-size: 14px; line-height: 1.5; color: #3E3B66; }
.tkm-dau__linh-vat { position: relative; z-index: 1; flex: 0 0 auto; width: 120px; height: 120px; margin-right: -8px; }
.tkm-robot { display: block; width: 100%; height: 100%; filter: drop-shadow(0 10px 18px rgba(80, 80, 200, .25)); }
.linh-vat { display: block; width: 100%; height: 100%; object-fit: contain; }
.tkm-sao { position: absolute; color: #FFFFFF; text-shadow: 0 0 6px rgba(140, 150, 255, .9); font-size: 14px; }
.tkm-sao--1 { top: 0; left: 8px; } .tkm-sao--2 { top: 12px; right: 0; font-size: 11px; } .tkm-sao--3 { bottom: 4px; left: -6px; font-size: 18px; }
.tkm-tuy__nut { display: inline-flex; gap: var(--sp-2); align-items: center; min-height: 44px; padding: 0 var(--sp-4); border-radius: 999px; background: #FFFFFF; box-shadow: 0 6px 16px rgba(62, 58, 160, .1); color: #2F2A9E; font-size: 14px; font-weight: 700; cursor: pointer; list-style: none; }
.tkm-tuy__nut::-webkit-details-marker { display: none; }
.tkm-tuy__nut .bt { width: 16px; height: 16px; }
.tkm-tuy__hop { margin-top: var(--sp-3); padding: var(--sp-3); border-radius: 16px; background: #FFFFFF; box-shadow: 0 6px 18px rgba(62, 58, 160, .08); }
.tkm-tuy__hop .mo-dun { margin: var(--sp-3) 0 0; }
@media (max-width: 380px) { .tkm-dau__linh-vat { width: 96px; height: 96px; } }

.tkm-ds { display: grid; gap: var(--sp-4); margin: 0 0 var(--sp-4); padding: 0; list-style: none; }
.tkm-tin { display: flex; gap: var(--sp-2); align-items: flex-start; }
.tkm-tin--ban { justify-content: flex-end; }
.tkm-anh { display: inline-flex; flex: 0 0 auto; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; }
.tkm-anh--ban { margin-top: var(--sp-2); background: #5B57E0; color: #FFFFFF; }
.tkm-anh--ban .bt { width: 20px; height: 20px; }
.tkm-anh--bot { background: #FFFFFF; box-shadow: 0 4px 12px rgba(62, 58, 160, .14); }
.tkm-robot-nho { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.tkm-tin--he .tkm-anh--bot { background: #FFF1D6; color: #B45309; }
.tkm-bong { position: relative; max-width: min(80%, 520px); padding: var(--sp-3) var(--sp-4); border-radius: 22px; background: #FFFFFF; box-shadow: 0 8px 22px rgba(62, 58, 160, .08); overflow: hidden; }
.tkm-tin--ban .tkm-bong { background: linear-gradient(135deg, #5B57E0, #4743CC); color: #FFFFFF; border-radius: 22px 22px 8px 22px; }
.tkm-tin--bot .tkm-bong { border-radius: 22px 22px 22px 8px; }
.tkm-tin--he .tkm-bong { background: #FFF8E6; }
.tkm-bong--hinh { padding-right: 104px; min-height: 104px; }
.tkm-hinh { position: absolute; right: 8px; bottom: 8px; width: 96px; height: 80px; opacity: .95; pointer-events: none; }
.tkm-bong__chu { position: relative; margin: 0; font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.tkm-gio { position: relative; display: block; margin-top: var(--sp-2); font-size: 12px; opacity: .65; }
.tkm-lk { position: relative; display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-3); }
.tkm-lk__o { display: inline-flex; gap: var(--sp-2); align-items: center; min-height: 44px; padding: 0 var(--sp-3) 0 var(--sp-4); border-radius: 999px; background: #EEEFFF; color: #2F2A9E; font-size: 14px; font-weight: 700; text-decoration: none; }
.tkm-lk__o .bt { width: 18px; height: 18px; }
@media (max-width: 400px) { .tkm-bong { max-width: 84%; } .tkm-bong--hinh { padding-right: 88px; min-height: 96px; } .tkm-hinh { width: 80px; height: 68px; right: 6px; } }

.tkm-goi { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 3; padding: var(--sp-3) 0 var(--sp-1); background: linear-gradient(180deg, rgba(246, 246, 255, 0), #F6F6FF 28%); }
@media (min-width: 900px) { .tkm-goi { bottom: 0; } }
.tkm-gy { display: flex; gap: var(--sp-2); margin: 0 0 var(--sp-3); overflow-x: auto; scrollbar-width: none; }
.tkm-gy::-webkit-scrollbar { display: none; }
.tkm-gy__o { display: inline-flex; flex: 0 0 auto; gap: var(--sp-2); align-items: center; min-height: 44px; padding: 0 var(--sp-4); border: 0; border-radius: 999px; background: #FFFFFF; box-shadow: 0 6px 16px rgba(62, 58, 160, .1); color: #2F2A9E; font: inherit; font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.tkm-gy__ico { display: inline-flex; }
.tkm-gy__ico .bt { width: 18px; height: 18px; }
.tkm-gy__ico--vang { color: #F59E0B; } .tkm-gy__ico--lam { color: #3F4BEA; } .tkm-gy__ico--tim { color: #7C3AED; } .tkm-gy__ico--cam { color: #EA580C; }
.tkm-nhap { display: flex; gap: var(--sp-2); align-items: center; padding: 6px 6px 6px var(--sp-4); border-radius: 999px; background: #FFFFFF; box-shadow: 0 10px 26px rgba(62, 58, 160, .14); }
.tkm-nhap__sao { display: inline-flex; color: #3F4BEA; }
.tkm-nhap__sao .bt { width: 20px; height: 20px; }
.tkm-nhap__o { flex: 1 1 auto; min-width: 0; min-height: 44px; border: 0; background: transparent; font: inherit; font-size: 15px; color: inherit; outline: none; }
.tkm-nhap__gui { display: inline-flex; flex: 0 0 auto; width: 48px; height: 48px; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: linear-gradient(140deg, #5B57E0, #3F3AB8); color: #FFFFFF; cursor: pointer; }
.tkm-nhap__gui .bt { width: 22px; height: 22px; }
.tkm-tuy { position: relative; }
.tkm-nhap__gui .bt { transform: rotate(-90deg); }
/* Chatbot: màn cao bằng màn hình, khối nhắn luôn sát đáy (trên thanh điều hướng ở điện thoại) */
.tkm { display: flex; flex-direction: column; min-height: calc(100dvh - 72px - 76px - env(safe-area-inset-bottom)); }
.tkm-ds { flex: 0 0 auto; }
.tkm-goi { margin-top: auto; padding-bottom: var(--sp-3); background: none; }
@media (min-width: 900px) { .tkm { min-height: calc(100dvh - 88px); } }
.tkm-goi { background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0, #FFFFFF 22px); }
/* Chatbot trên điện thoại/máy tính bảng: GHIM khối nhắn ngay trên thanh điều hướng.
   --cao-dh = chiều cao THẬT của thanh, thinq.js đo lúc tải (dự phòng 64px). */
@media (max-width: 899px) {
  .tkm { min-height: 0; }
  .tkm-ds { padding-bottom: 168px; }
  .tkm-goi { position: fixed; left: 0; right: 0; bottom: var(--cao-dh, 64px); z-index: 40; margin: 0; padding: var(--sp-4) var(--sp-4) var(--sp-2);
    background: linear-gradient(180deg, rgba(244, 245, 253, 0) 0, rgba(244, 245, 253, .97) 24px); }
  .tkm-goi > * { max-width: 680px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 899px) {
  .tkm-ds { padding-bottom: 210px; }
  .tkm-goi { padding-top: var(--sp-3); border-radius: 22px 22px 0 0; background: rgba(248, 248, 255, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 -8px 24px rgba(62, 58, 160, .08); }
}

/* TÌM — thiết kế lại (13/11/2026) — tiền tố tmk (đã soát: chưa dùng) */
.tmk-dau { position: relative; display: flex; gap: var(--sp-2); align-items: flex-start; margin: calc(-1 * var(--sp-4)) calc(-1 * var(--sp-4)) var(--sp-5); padding: var(--sp-5) var(--sp-4) var(--sp-7, 40px); background: linear-gradient(180deg, #EEEDFF 0%, #F6F6FF 100%); overflow: hidden; }
.tmk-dau__song { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 64px; }
.tmk-dau__chu { position: relative; z-index: 1; flex: 1 1 auto; min-width: 0; }
.tmk-dau__ten { display: flex; gap: var(--sp-2); align-items: flex-start; margin: 0 0 var(--sp-2); font-size: clamp(30px, 9vw, 40px); font-weight: 800; color: #12112B; }
.tmk-sao { font-size: 22px; color: #3F4BEA; }
.tmk-dau__phu { margin: 0; font-size: 14px; line-height: 1.55; color: #3E3B66; }
.tmk-dau__hinh { position: relative; z-index: 1; flex: 0 0 auto; width: 118px; height: 118px; filter: drop-shadow(0 10px 18px rgba(80, 80, 200, .22)); }
@media (max-width: 380px) { .tmk-dau__hinh { width: 92px; height: 92px; } }
.tmk-muc { margin: 0 0 var(--sp-5); }
.tmk-muc__ten { display: flex; gap: var(--sp-2); align-items: center; margin: 0; font-size: 18px; font-weight: 800; }
.tmk-nhanh { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sp-2); margin: var(--sp-2) 0 0; padding: 0; list-style: none; }
.tmk-nhanh__o { display: grid; justify-items: center; gap: var(--sp-2); padding: var(--sp-3) 2px; border-radius: 18px; background: #FFFFFF; box-shadow: 0 8px 22px rgba(62, 58, 160, .08); color: #1D1B3A; text-decoration: none; min-height: 88px; }
.tmk-nhanh__ten { font-size: 12.5px; font-weight: 700; text-align: center; }
@media (max-width: 400px) { .tmk-nhanh { gap: 6px; } .tmk-nhanh__ten { font-size: 11px; } }
.tmk-form { display: grid; gap: var(--sp-3); margin: 0 0 var(--sp-6); }
.tmk-form__nhan { font-size: 16px; font-weight: 600; color: #1D1B3A; }
.tmk-o { display: flex; gap: var(--sp-3); align-items: center; min-height: 56px; padding: 0 var(--sp-4); border: 1.5px solid #D6D8F5; border-radius: 999px; background: #FFFFFF; color: #6B6E99; }
.tmk-o:focus-within { border-color: #4E4BD8; box-shadow: 0 0 0 4px rgba(78, 75, 216, .12); }
.tmk-o__nhap { flex: 1 1 auto; min-width: 0; min-height: 52px; border: 0; background: transparent; font: inherit; font-size: 16px; color: #12112B; outline: none; }
.tmk-form__nut { width: 100%; min-height: 56px; border-radius: 999px; font-size: 16px; }
.tmk-form__nut .bt { width: 20px; height: 20px; }
.tmk-gd { margin: var(--sp-2) 0 0; padding: var(--sp-1) var(--sp-4); list-style: none; border-radius: 20px; background: #FFFFFF; box-shadow: 0 8px 22px rgba(62, 58, 160, .08); }
.tmk-gd__o { display: flex; gap: var(--sp-2); align-items: center; border-bottom: 1px solid #EEF0FA; }
.tmk-gd__o:last-child { border-bottom: 0; }
.tmk-gd__lk { display: flex; flex: 1 1 auto; gap: var(--sp-3); align-items: center; min-width: 0; min-height: 52px; color: #1D1B3A; text-decoration: none; font-size: 15px; }
.tmk-gd__lk .bt { flex: 0 0 auto; color: #6B6E99; }
.tmk-gd__lk span { overflow-wrap: anywhere; }
.tmk-gd__xoa { display: inline-flex; flex: 0 0 auto; width: 44px; height: 44px; align-items: center; justify-content: center; border: 0; background: transparent; color: #6B6E99; cursor: pointer; }
.tmk-gd__xoa .bt { transform: rotate(45deg); }
.tmk-xoa-het { min-height: 44px; border: 0; background: transparent; color: #3F3AB8; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.tmk-nhom { margin: var(--sp-3) 0 0; padding: var(--sp-3) var(--sp-4); border-radius: 20px; background: #FFFFFF; box-shadow: 0 8px 22px rgba(62, 58, 160, .08); }
.tmk-nhom__ten { display: flex; gap: var(--sp-2); align-items: center; margin: 0 0 var(--sp-1); font-size: 15px; font-weight: 800; }
.tmk-nhom__ico { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 50%; }
.tmk-nhom__ico .bt { width: 18px; height: 18px; }
.tmk-nhom__so { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--color-text-secondary); }
.tmk-ds { margin: 0; padding: 0; list-style: none; }
.tmk-ds__o { display: flex; gap: var(--sp-2); align-items: center; justify-content: space-between; min-height: 48px; border-top: 1px solid #EEF0FA; color: #1D1B3A; text-decoration: none; }
.tmk-ds__o .bt { flex: 0 0 auto; width: 18px; height: 18px; color: #6B6E99; }
.tmk-ds__chu { min-width: 0; font-size: 15px; overflow-wrap: anywhere; }
.tmk-ds__phu { display: block; font-size: 12px; color: var(--color-text-secondary); }
.tmk-rong { margin: var(--sp-3) 0 0; padding: var(--sp-4); border-radius: 18px; background: #FFFFFF; font-size: 14px; color: var(--color-text-secondary); }

/* MỤC TIÊU — thiết kế lại (13/11/2026) — tiền tố mtk (đã soát: chưa dùng) */
.mtk-dau { position: relative; margin: calc(-1 * var(--sp-4)) calc(-1 * var(--sp-4)) var(--sp-3); padding: var(--sp-6) var(--sp-4) var(--sp-8, 48px); min-height: 200px; overflow: hidden; }
.mtk-dau__nen { position: absolute; inset: 0; width: 100%; height: 100%; }
.mtk-dau__chu { position: relative; z-index: 1; max-width: 62%; }
.mtk-dau__ten { margin: 0 0 var(--sp-2); font-size: clamp(32px, 9vw, 42px); font-weight: 800; color: #12112B; }
.mtk-dau__phu { margin: 0 0 var(--sp-3); font-size: 14px; line-height: 1.55; color: #3E3B66; }
.mtk-ut { position: relative; z-index: 1; display: flex; gap: var(--sp-2); align-items: center; margin: -36px 0 var(--sp-4); padding: var(--sp-4) var(--sp-3) var(--sp-4) var(--sp-4); border-radius: 24px; background: #FFFFFF; box-shadow: 0 12px 30px rgba(62, 58, 160, .1); color: inherit; text-decoration: none; }
.mtk-ut__chu { display: grid; gap: var(--sp-2); justify-items: start; flex: 1 1 auto; min-width: 0; }
.mtk-ut__nhan { display: inline-flex; gap: 6px; align-items: center; padding: 4px 12px; border-radius: 999px; background: #EEEFFF; color: #3F3AB8; font-size: 13px; font-weight: 700; }
.mtk-ut__nhan .bt { width: 15px; height: 15px; }
.mtk-ut__ten { font-size: 21px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.mtk-ut__tt { padding: 3px 12px; border-radius: 999px; background: #3F4BEA; color: #FFFFFF; font-size: 13px; font-weight: 700; }
.mtk-ut__phu { font-size: 13px; color: var(--color-text-secondary); }
.mtk-ut__hinh { flex: 0 0 auto; width: 104px; height: 104px; }
.mtk-ut__toi { flex: 0 0 auto; color: #6B6E99; }
@media (max-width: 400px) { .mtk-ut__hinh { width: 76px; height: 76px; } .mtk-ut__ten { font-size: 18px; } }
.mtk-nhanh { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-2); margin: 0 0 var(--sp-4); padding: 0; list-style: none; }
.mtk-nhanh__o { display: grid; justify-items: center; align-content: center; gap: var(--sp-2); min-height: 96px; padding: var(--sp-3) 4px; border-radius: 20px; background: #FFFFFF; box-shadow: 0 8px 22px rgba(62, 58, 160, .08); color: #1D1B3A; text-decoration: none; text-align: center; }
.mtk-nhanh__o--lam { background: linear-gradient(160deg, #FFFFFF 30%, #EEF0FF); } .mtk-nhanh__o--tim { background: linear-gradient(160deg, #FFFFFF 30%, #F3EDFF); }
.mtk-nhanh__o--cam { background: linear-gradient(160deg, #FFFFFF 30%, #FFF4E5); } .mtk-nhanh__o--luc { background: linear-gradient(160deg, #FFFFFF 30%, #EAF8F0); }
.mtk-nhanh__ico .bt { width: 28px; height: 28px; }
.mtk-nhanh__o--lam .mtk-nhanh__ico { color: #3F4BEA; } .mtk-nhanh__o--tim .mtk-nhanh__ico { color: #7C3AED; } .mtk-nhanh__o--cam .mtk-nhanh__ico { color: #EA580C; } .mtk-nhanh__o--luc .mtk-nhanh__ico { color: #16A34A; }
.mtk-nhanh__ten { font-size: 13px; font-weight: 700; line-height: 1.3; }
@media (max-width: 400px) { .mtk-nhanh__ten { font-size: 11.5px; } }
.mtk-tq__than { display: flex; gap: var(--sp-3); align-items: center; }
.mtk-vong { position: relative; flex: 0 0 auto; width: 112px; height: 112px; }
.mtk-vong svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.mtk-vong__nen { fill: none; stroke: #ECEDFB; stroke-width: 10; }
.mtk-vong__day { fill: none; stroke: #3F4BEA; stroke-width: 10; stroke-linecap: round; }
.mtk-vong__so { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; color: #1D1B3A; }
.mtk-so { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); flex: 1 1 auto; min-width: 0; margin: 0; padding: 0 0 0 var(--sp-3); list-style: none; border-left: 1px solid #ECEDFB; }
.mtk-so li { display: grid; grid-template-columns: auto 1fr; gap: 2px 6px; align-items: center; padding: 0 4px; }
.mtk-so b { font-size: 22px; font-weight: 800; }
.mtk-so li > span:last-child { grid-column: 1 / -1; font-size: 12px; color: var(--color-text-secondary); }
.mtk-so__ico { display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 50%; }
.mtk-so__ico .bt { width: 15px; height: 15px; }
.mtk-so__ico--dang { background: #E8EBFF; color: #3F4BEA; } .mtk-so__ico--chua { background: #F1F1F8; color: #6B6E99; } .mtk-so__ico--xong { background: #E3F7EA; color: #16A34A; }
@media (max-width: 400px) { .mtk-vong { width: 88px; height: 88px; } .mtk-vong__so { font-size: 19px; } .mtk-so { padding-left: var(--sp-2); } .mtk-so b { font-size: 18px; } .mtk-so li > span:last-child { font-size: 11px; } }
.mtk-dem { font-weight: 600; color: var(--color-text-secondary); }
.mtk-ds { margin: var(--sp-2) 0 0; padding: var(--sp-1) var(--sp-4); list-style: none; border-radius: 22px; background: #FFFFFF; box-shadow: 0 8px 22px rgba(62, 58, 160, .08); }
.mtk-ds li + li { border-top: 1px solid #EEF0FA; }
.mtk-ds__o { display: flex; gap: var(--sp-3); align-items: center; min-height: 72px; padding: var(--sp-3) 0; color: inherit; text-decoration: none; }
.mtk-ds__ico { display: inline-flex; flex: 0 0 auto; width: 52px; height: 52px; align-items: center; justify-content: center; border-radius: 16px; }
.mtk-ds__ico .bt { width: 26px; height: 26px; }
.mtk-ds__chu { display: grid; gap: 4px; flex: 1 1 auto; min-width: 0; }
.mtk-ds__ten { font-size: 15px; font-weight: 800; overflow-wrap: anywhere; }
.mtk-ds__phu { font-size: 13px; color: var(--color-text-secondary); }
.mtk-ds__td { display: flex; gap: var(--sp-2); align-items: center; }
.mtk-ds__td .hoc-thanh { flex: 1 1 auto; }
.mtk-ds__pt { flex: 0 0 auto; font-size: 13px; color: #3E3B66; }
.mtk-ds__toi { flex: 0 0 auto; color: #6B6E99; }
.mtk-tam { margin: var(--sp-3) 0 0; }
.mtk-tam__ten { margin: 0 0 var(--sp-2); font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--color-text-secondary); }
.mtk-tam .mt__ten { display: flex; align-items: center; min-height: 44px; }

/* ═════ THANG TRONG KẾ HOẠCH (CSH 13/11/2026) ═══════════════════════════════
   thg-  : chữ trụ cột T·H·A·N·G và dải «T·H·A·N·G hôm nay» trên Trang chủ.
   bk-   : bảng kế hoạch theo kỳ — lưới ngày, % mục tiêu, cân bằng trụ cột.
   uu-tien__gio : cột giờ của khối việc trong «Hôm nay, tập trung vào». */
.thg-chu { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 12px; font-weight: 900; font-size: 17px; letter-spacing: 0; background: #F1F1F7; color: #8A8AA8; }
.thg-chu--nho { width: 20px; height: 20px; border-radius: 6px; font-size: 11px; margin-right: 4px; vertical-align: -4px; }
.thg-chu--tim { background: #F1E8FF; color: #7C3AED; } .thg-chu--hong { background: #FFE7F2; color: #DB2777; }
.thg-chu--luc { background: #E3F7EA; color: #16A34A; } .thg-chu--cam { background: #FFEEDD; color: #EA580C; }
.thg-chu--lam { background: #E8EBFF; color: #3F4BEA; }
.thg-chu--sang.thg-chu--tim { background: #7C3AED; color: #fff; } .thg-chu--sang.thg-chu--hong { background: #DB2777; color: #fff; }
.thg-chu--sang.thg-chu--luc { background: #16A34A; color: #fff; } .thg-chu--sang.thg-chu--cam { background: #EA580C; color: #fff; }
.thg-chu--sang.thg-chu--lam { background: #3F4BEA; color: #fff; }

.thg { position: relative; z-index: 2; margin: -56px 0 var(--sp-4); padding: var(--sp-3); border-radius: 24px; background: rgba(255, 255, 255, .96); box-shadow: var(--tcm-bong); }
.thg__dau { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-2); margin: 0 var(--sp-1) var(--sp-2); }
.thg__ten { margin: 0; font-size: 15px; font-weight: 800; letter-spacing: .02em; color: #1D1B3A; }
.thg__diem { font-size: 13px; color: var(--color-text-secondary); white-space: nowrap; }
.thg__diem b { font-size: 17px; color: #1D1B3A; }
.thg__ds { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 0; list-style: none; }
.thg__o { min-width: 0; }
.thg__lk { display: grid; justify-items: center; gap: 3px; min-height: 88px; padding: var(--sp-2) 2px; border-radius: 16px; color: #1D1B3A; text-decoration: none; text-align: center; }
.thg__lk:hover { background: #F6F6FB; }
.thg__o--sang .thg__lk { background: #FAFAFD; }
.thg__nhan { max-width: 100%; font-size: clamp(10px, 2.9vw, 12px); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.thg__phu { font-size: 10.5px; line-height: 1.25; color: var(--color-text-secondary); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.thg__o--sang .thg__phu { color: #16A34A; }

.thg-chon { display: grid; gap: var(--sp-2); }
.thg-chon__o { display: flex; align-items: center; gap: var(--sp-3); min-height: 48px; padding: var(--sp-2) var(--sp-3); border: 1px solid var(--border, #E6E6EF); border-radius: 14px; cursor: pointer; }
.thg-chon__o:has(input:checked) { border-color: var(--color-primary); background: var(--color-primary-soft); }
.thg-chon__o input { flex: 0 0 auto; width: 20px; height: 20px; margin: 0; }
.thg-chon__chu { display: grid; font-size: 14px; } .thg-chon__chu span { font-size: 12px; color: var(--color-text-secondary); }

/* «Hôm nay, tập trung vào» theo giờ */
.uu-tien__gio { display: inline-block; width: 100%; margin: 0 0 1px; font-size: 12.5px; font-weight: 800; letter-spacing: .01em; color: #3F4BEA; font-variant-numeric: tabular-nums; }
.uu-tien__gio--linh { color: #6B6E99; font-weight: 700; }
.uu-tien--xong .uu-tien__gio { color: var(--text-muted); }
.uu-tien--dang { border-color: #EA580C; box-shadow: 0 0 0 2px rgba(234, 88, 12, .18); }
.uu-tien__dang { color: #EA580C; font-weight: 800; }
.uu-tien--xong .uu-tien__phu { text-decoration: none; }
.tcm-uu__bat { margin-top: var(--sp-3); max-width: 100%; }
.tcm-uu__bat span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Bảng kế hoạch */
.bk-xem { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--sp-2); font-size: 13px; font-weight: 700; color: var(--color-primary); text-decoration: none; }
.bk-so { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-2); margin: 0 0 var(--sp-3); }
.bk-so__o { margin: 0; padding: var(--sp-2) var(--sp-3); border-radius: 14px; background: #F7F7FC; min-width: 0; }
.bk-so__o dt { font-size: 11.5px; color: var(--color-text-secondary); }
.bk-so__o dd { margin: 2px 0 0; font-size: 20px; font-weight: 800; color: #1D1B3A; font-variant-numeric: tabular-nums; }
.bk-so__o p { margin: 2px 0 0; font-size: 11.5px; color: var(--color-text-secondary); }
.bk-so--lon .bk-so__o dd { font-size: 24px; }
.bk-so__chua { color: #A0A0B8; }
.bk-nhip--len { color: #16A34A; } .bk-nhip--vua { color: #D97706; } .bk-nhip--xuong { color: #DC2626; }

.bk-luoi { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 3px; margin: 0 0 var(--sp-2); }
.bk-luoi--lon { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 5px; }
.bk-o { position: relative; display: inline-block; aspect-ratio: 1; min-width: 0; border-radius: 4px; background: #EEEEF5; }
.bk-luoi--lon .bk-o { border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.bk-o i { font-style: normal; font-size: 10.5px; color: rgba(29, 27, 58, .55); font-variant-numeric: tabular-nums; }
.bk-o--sap { background: #F4F4F9; box-shadow: inset 0 0 0 1px #E6E6EF; }
.bk-o--trong { background: #F4F4F9; }
.bk-o--nghi { background: repeating-linear-gradient(45deg, #F4F4F9 0 3px, #E2E2EC 3px 5px); }
.bk-o--m0 { background: #FBE3E3; } .bk-o--m1 { background: #FFD7B0; } .bk-o--m2 { background: #9FD8B3; } .bk-o--m3 { background: #16A34A; }
.bk-o--m3 i { color: #fff; }
.bk-o--nay { box-shadow: 0 0 0 2px #1D1B3A; }
.bk-o--moc::after { content: ""; position: absolute; right: 1px; top: 1px; width: 5px; height: 5px; border-radius: 50%; background: #EA580C; }
.bk-luoi--lon .bk-o--moc::after { width: 7px; height: 7px; right: 3px; top: 3px; }
.bk-chu { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0 0 var(--sp-2); font-size: 11.5px; color: var(--color-text-secondary); }
.bk-chu .bk-o { width: 11px; height: 11px; vertical-align: middle; }
.bk-chu .bk-o:not(:first-child) { margin-left: 6px; }

.bk-phu { display: flex; align-items: center; margin: var(--sp-3) 0 var(--sp-2); font-size: 13px; font-weight: 800; color: #1D1B3A; }
.bk-mt, .bk-tc, .bk-gd { display: grid; gap: var(--sp-2); margin: 0; padding: 0; list-style: none; }
.bk-mt__lk { display: grid; gap: 4px; padding: var(--sp-2); border-radius: 12px; color: inherit; text-decoration: none; min-height: 44px; }
.bk-mt__lk:hover { background: #F7F7FC; }
.bk-mt__dau { display: flex; align-items: center; gap: var(--sp-2); min-width: 0; }
.bk-mt__ten { flex: 1 1 auto; min-width: 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.bk-mt__pt { flex: 0 0 auto; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.bk-mt__phu { font-size: 12px; color: var(--color-text-secondary); }
.bk-mt__kq { font-size: 12.5px; line-height: 1.45; color: #3E3B66; background: #FFF7EE; border-radius: 10px; padding: 6px 10px; }
.bk-thanh { display: block; height: 8px; border-radius: 99px; background: #EEEEF5; overflow: hidden; }
.bk-thanh__day { display: block; height: 100%; border-radius: inherit; min-width: 0; }
.bk-thanh__day--tim { background: #7C3AED; } .bk-thanh__day--hong { background: #DB2777; } .bk-thanh__day--luc { background: #16A34A; }
.bk-thanh__day--cam { background: #EA580C; } .bk-thanh__day--lam { background: #3F4BEA; }
.bk-them { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 700; color: var(--color-primary); text-decoration: none; }

.bk-man { padding-bottom: var(--sp-6); }
.bk-dau { margin: 0 0 var(--sp-4); }
.bk-dau__mat { margin: 0; font-size: 12.5px; font-weight: 700; color: #EA580C; letter-spacing: .02em; }
.bk-dau__ten { margin: 4px 0; font-size: 22px; line-height: 1.25; font-weight: 800; }
.bk-dau__phu { margin: 0; font-size: 14px; color: var(--color-text-secondary); }
.bk-khoi__ten { margin: 0 0 var(--sp-2); font-size: 17px; font-weight: 800; }
.bk-khoi__phu { margin: 0 0 var(--sp-3); font-size: 12.5px; color: var(--color-text-secondary); }
.bk-tc__dong { display: flex; gap: var(--sp-3); align-items: center; }
.bk-tc__chu { flex: 1 1 auto; display: grid; gap: 4px; min-width: 0; }
.bk-canh { margin: var(--sp-3) 0 0; padding: var(--sp-2) var(--sp-3); border-radius: 12px; background: #FFF7EE; font-size: 12.5px; }
.bk-canh a { display: inline-block; min-height: 44px; line-height: 44px; color: var(--color-primary); }
.bk-gd__dong { display: grid; gap: 4px; padding: var(--sp-2); border-radius: 12px; }
.bk-gd__dong--dang { background: #FFF3E8; }
.bk-gd__ngay { flex: 0 0 auto; font-size: 12px; color: var(--color-text-secondary); }
.bk-moc { margin: 0; padding: 0 0 0 var(--sp-4); font-size: 13px; display: grid; gap: 6px; }
.bk-moc b { color: #EA580C; margin-right: 4px; }
.bk-moc--xong { color: var(--color-text-secondary); text-decoration: line-through; }

/* ═════ BẢNG KẾ HOẠCH — bản thiết kế CSH 13/11/2026 (khm-) ═══════════════════ */
.khm { padding-bottom: var(--sp-6); }
.khm-dau { position: relative; display: flex; align-items: flex-start; gap: var(--sp-3); margin: calc(-1 * var(--sp-4)) calc(-1 * var(--sp-4)) var(--sp-4); padding: var(--sp-5) var(--sp-4) var(--sp-6); min-height: 168px; overflow: hidden; }
.khm-dau__nen { position: absolute; inset: 0; width: 100%; height: 100%; }
.khm-dau__chu { position: relative; z-index: 1; flex: 1 1 auto; min-width: 0; }
.khm-dau__chao { margin: 0; font-size: 19px; font-weight: 700; color: #1D1B3A; }
.khm-dau__ten { margin: 0 0 var(--sp-2); font-size: clamp(28px, 8.5vw, 38px); line-height: 1.15; font-weight: 800; color: #12112B; overflow-wrap: anywhere; }
.khm-dau__phu { margin: 0; font-size: 13.5px; line-height: 1.45; color: #3E3B66; }
.khm-ngay { position: relative; z-index: 1; flex: 0 0 auto; display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, .92); box-shadow: 0 6px 18px rgba(62, 58, 160, .1); color: #1D1B3A; }
.khm-ngay .bt { width: 22px; height: 22px; }
.khm-ngay > span { display: grid; font-size: 11.5px; line-height: 1.25; color: #3E3B66; }
.khm-ngay b { font-size: 13px; color: #1D1B3A; font-weight: 700; }

.khm-so { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-2); margin: calc(-1 * var(--sp-5)) 0 var(--sp-5); position: relative; z-index: 2; }
.khm-so__o { margin: 0; padding: var(--sp-3) 4px; border-radius: 20px; background: #FFFFFF; box-shadow: 0 6px 18px rgba(62, 58, 160, .08); border: 1px solid #EEEDFB; text-align: center; min-width: 0; }
.khm-so__o--nhan { background: linear-gradient(170deg, #FFFFFF 20%, #FFF2E0 100%); border-color: #FBE7CC; }
.khm-so__nhan .bt { width: 24px; height: 24px; color: #4B4BE0; }
.khm-so__gt { margin: 2px 0; font-size: clamp(20px, 6vw, 26px); font-weight: 800; color: #12112B; font-variant-numeric: tabular-nums; }
.khm-so__o { display: grid; justify-items: center; align-content: start; }
.khm-so__nhan { display: contents; }
.khm-so__nhan .bt { grid-row: 1; margin-bottom: 6px; }
.khm-so__gt { grid-row: 2; }
.khm-so__nhan span { grid-row: 3; font-size: 11.5px; color: #3E3B66; line-height: 1.2; }

.khm-khoi { margin: 0 0 var(--sp-5); }
.khm-khoi__dau { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); margin: 0 0 var(--sp-2); }
.khm-khoi__ten { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0; font-size: 18px; font-weight: 800; color: #12112B; }
.khm-khoi__ten .bt { width: 22px; height: 22px; color: #4B4BE0; }
.khm-khoi__ten small { font-size: 13px; font-weight: 600; color: #6B6E99; }
.khm-xem { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-size: 13px; font-weight: 700; color: #3F4BEA; text-decoration: none; }
.khm-xem .bt { width: 16px; height: 16px; }
.khm-xem--ico { justify-content: center; min-width: 44px; }
.khm-the { display: block; padding: var(--sp-3) var(--sp-4); border-radius: 22px; background: #FFFFFF; box-shadow: 0 6px 20px rgba(62, 58, 160, .07); border: 1px solid #EFEEFB; color: inherit; text-decoration: none; min-width: 0; }
.khm-trong { margin: var(--sp-2) 0; font-size: 13.5px; color: #6B6E99; }

.khm-tuan { display: grid; grid-template-columns: repeat(7, minmax(44px, 1fr)); gap: 0; margin: 0 calc(-1 * var(--sp-3)) var(--sp-3); }
.khm-tuan__o { position: relative; display: grid; justify-items: center; gap: 2px; min-height: 56px; padding: 8px 0 10px; border-radius: 14px; color: #3E3B66; text-decoration: none; font-variant-numeric: tabular-nums; }
.khm-tuan__o span { font-size: 12px; } .khm-tuan__o b { font-size: 16px; color: #1D1B3A; }
.khm-tuan__o i { position: absolute; bottom: 4px; width: 5px; height: 5px; border-radius: 50%; background: #B9B3EE; }
.khm-tuan__o--nay b { color: #3F4BEA; }
.khm-tuan__o--dang { background: #2F2FC4; box-shadow: 0 6px 14px rgba(47, 47, 196, .3); }
.khm-tuan__o--dang span, .khm-tuan__o--dang b { color: #FFFFFF; }
.khm-tuan__o--dang i { background: #FFFFFF; }
.khm-tuan__o--ngoai { opacity: .35; }

.khm-lich { display: grid; gap: var(--sp-2); margin: 0; padding: 0; list-style: none; }
.khm-lich__dong { display: flex; align-items: center; gap: var(--sp-2); min-width: 0; }
.khm-lich__gio { flex: 0 0 44px; font-size: 13px; font-weight: 700; color: #1D1B3A; font-variant-numeric: tabular-nums; }
.khm-cham { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: #C9C9D9; box-shadow: 0 0 0 4px rgba(201, 201, 217, .25); }
.khm-cham--tim { background: #8B5CF6; box-shadow: 0 0 0 4px rgba(139, 92, 246, .15); } .khm-cham--hong { background: #EC4899; box-shadow: 0 0 0 4px rgba(236, 72, 153, .15); }
.khm-cham--luc { background: #22C55E; box-shadow: 0 0 0 4px rgba(34, 197, 94, .15); } .khm-cham--cam { background: #F97316; box-shadow: 0 0 0 4px rgba(249, 115, 22, .15); }
.khm-cham--lam { background: #3B82F6; box-shadow: 0 0 0 4px rgba(59, 130, 246, .15); }
.khm-lich__the { flex: 1 1 auto; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); min-width: 0; min-height: 44px; padding: 8px 14px; border-radius: 999px; background: linear-gradient(90deg, #F1F0FF, #F8F8FF); }
.khm-lich__ten { min-width: 0; font-size: 13.5px; font-weight: 600; color: #1D1B3A; line-height: 1.3; }
.khm-lich__dai { flex: 0 0 auto; font-size: 12px; color: #6B6E99; white-space: nowrap; }
.khm-lich__dong--xong .khm-lich__ten { color: #8A8AA8; text-decoration: line-through; }

.khm-mt { display: flex; align-items: center; gap: var(--sp-3); min-height: 56px; padding: var(--sp-2) 0; color: inherit; text-decoration: none; border-bottom: 1px solid #F2F1FB; }
.khm-the > .khm-mt:last-of-type, .khm-them .khm-mt:last-child { border-bottom: 0; }
.khm-mt__o { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #D5D4E6; color: #FFFFFF; }
.khm-mt__o--dat { background: #2F2FC4; border-color: #2F2FC4; }
.khm-mt__o .bt { width: 13px; height: 13px; stroke-width: 2.6; }
.khm-mt__chu { flex: 1 1 auto; display: grid; gap: 5px; min-width: 0; }
.khm-mt__ten { font-size: 14px; font-weight: 700; color: #1D1B3A; overflow-wrap: anywhere; }
.khm-mt__phu { font-size: 12px; color: #6B6E99; }
.khm-mt__pt { flex: 0 0 auto; min-width: 40px; text-align: right; font-size: 14px; font-weight: 700; color: #1D1B3A; font-variant-numeric: tabular-nums; }
.khm-them__nut { display: flex; align-items: center; justify-content: center; min-height: 44px; margin-top: var(--sp-1); font-size: 13px; font-weight: 700; color: #3F4BEA; cursor: pointer; list-style: none; }
.khm-them__nut::-webkit-details-marker { display: none; }
.khm-them[open] .khm-them__nut { display: none; }

.khm-kl { display: grid; grid-auto-flow: column; grid-auto-columns: 112px; gap: var(--sp-2); margin: 0; padding: 4px 2px 8px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.khm-kl::-webkit-scrollbar { display: none; }
.khm-kl li { scroll-snap-align: start; }
.khm-kl__o { position: relative; display: grid; justify-items: center; align-content: center; gap: 8px; min-height: 100px; padding: var(--sp-3) 6px; border-radius: 20px; background: #F6F6FB; color: #1D1B3A; text-decoration: none; text-align: center; }
.khm-kl__chu { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 12px; font-weight: 900; font-size: 17px; background: #FFFFFF; }
.khm-kl__ten { font-size: 12.5px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.khm-kl__tich { position: absolute; top: 6px; right: 6px; display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: #22C55E; color: #FFFFFF; }
.khm-kl__tich .bt { width: 12px; height: 12px; stroke-width: 3; }
.khm-kl__o--tim .khm-kl__chu { color: #7C3AED; } .khm-kl__o--hong .khm-kl__chu { color: #DB2777; } .khm-kl__o--luc .khm-kl__chu { color: #16A34A; }
.khm-kl__o--cam .khm-kl__chu { color: #EA580C; } .khm-kl__o--lam .khm-kl__chu { color: #3F4BEA; }
.khm-kl__o--xong.khm-kl__o--tim { background: #F3EDFF; } .khm-kl__o--xong.khm-kl__o--hong { background: #FFEEF6; } .khm-kl__o--xong.khm-kl__o--luc { background: #E9F9EF; }
.khm-kl__o--xong.khm-kl__o--cam { background: #FFF2E6; } .khm-kl__o--xong.khm-kl__o--lam { background: #EEF0FF; }

.khm-nb { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: var(--sp-3); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px 2px 16px; }
.khm-nb::-webkit-scrollbar { display: none; }
.khm-nb__o { display: flex; align-items: center; gap: var(--sp-3); scroll-snap-align: start; }
.khm-nb__anh { flex: 0 0 auto; width: 84px; height: 84px; line-height: 0; }
.khm-nb__anh svg { width: 100%; height: 100%; }
.khm-nb__chu { flex: 1 1 auto; display: grid; gap: 4px; min-width: 0; }
.khm-nb__ten { font-size: 15px; font-weight: 800; color: #1D1B3A; overflow-wrap: anywhere; }
.khm-nb__kq { font-size: 12.5px; line-height: 1.4; color: #6B6E99; }
.khm-nb__pt { display: flex; align-items: center; gap: var(--sp-2); }
.khm-nb__pt .bk-thanh { flex: 1 1 auto; }
.khm-nb__pt b { font-size: 13px; }
.khm-nb__toi { flex: 0 0 auto; color: #1D1B3A; line-height: 0; }
.khm-nb__toi .bt { width: 18px; height: 18px; }

.khm-td { position: relative; padding-top: var(--sp-4); }
.khm-td__chenh { position: absolute; top: var(--sp-3); right: var(--sp-3); display: grid; justify-items: center; margin: 0; padding: 6px 12px; border-radius: 12px; background: #F4F3FF; font-size: 11px; color: #6B6E99; }
.khm-td__chenh b { font-size: 16px; }
.khm-td__ve { display: block; width: 100%; height: 130px; margin-top: var(--sp-5); }
.khm-td__truc { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11.5px; color: #6B6E99; }

.khm-luoi__so { margin: 0 0 var(--sp-3); font-size: 13px; color: #3E3B66; }
.khm-gd { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--sp-2) 0 var(--sp-3); padding: 0; list-style: none; }
.khm-gd__o { display: grid; padding: 6px 10px; border-radius: 12px; background: #F6F6FB; font-size: 11.5px; color: #6B6E99; }
.khm-gd__o b { font-size: 12px; color: #1D1B3A; }
.khm-gd__o--dang { background: #FFF1E3; box-shadow: inset 0 0 0 1px #FBD6AE; }

.khm-gy { display: flex; align-items: center; gap: var(--sp-3); background: linear-gradient(120deg, #F4F3FF, #FFFFFF 70%); }
.khm-gy__anh { flex: 0 0 auto; width: 76px; height: 76px; line-height: 0; }
.khm-gy__robot { width: 100%; height: 100%; }
.khm-gy__chu { flex: 1 1 auto; min-width: 0; font-size: 13.5px; line-height: 1.5; color: #1D1B3A; }

.khm-cc { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sp-2); }
.khm-cc__o { display: grid; justify-items: center; gap: 6px; min-height: 84px; padding: var(--sp-3) 4px; border-radius: 18px; background: #FFFFFF; border: 1px solid #EFEEFB; box-shadow: 0 6px 18px rgba(62, 58, 160, .06); font-size: 12px; font-weight: 600; color: #1D1B3A; text-decoration: none; text-align: center; }
.khm-cc__o .bt { width: 24px; height: 24px; color: #4B4BE0; }

@media (min-width: 900px) {
  .khm { max-width: 760px; margin-left: auto; margin-right: auto; }
  .khm-dau { margin-left: 0; margin-right: 0; border-radius: 28px; }
  .khm-nb { grid-auto-columns: calc(50% - var(--sp-2)); }
}

/* MÀN KHỞI ĐỘNG (13/11/2026) — tiền tố mkd (đã soát: chưa dùng). Ẩn hẳn khi
   không có html.mo-dau (do js/man-vao.js gắn khi mới vào app). Khung giữ đúng tỉ
   lệ ảnh thiết kế 941×1672, cao bằng màn hình — như màn gốc iOS (cắt hai bên
   trên điện thoại, nền phủ hai bên trên iPad) — nên logo, linh vật, thanh %
   nằm đúng chỗ khi chuyển từ màn gốc sang. */
.mkd { display: none; }
html.mo-dau { overflow: hidden; }
html.mo-dau .mkd { display: block; position: fixed; inset: 0; z-index: 2147483000; overflow: hidden; background: #D9DCFD; transition: opacity .36s ease; }
.mkd::before { content: ""; position: absolute; inset: -60px; background: url("../img/vao-nen.webp") center / 100% 100% no-repeat; filter: blur(36px); }
.mkd--het { opacity: 0; pointer-events: none; }
.mkd__khung { position: absolute; top: 0; left: 50%; height: 100%; aspect-ratio: 941 / 1672; transform: translateX(-50%); background: url("../img/vao-nen.webp") center / 100% 100% no-repeat; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.mkd__logo { position: absolute; left: 40.17%; top: 14.11%; width: 22.53%; aspect-ratio: 640 / 744; background: url("../img/vao-logo.webp") center / contain no-repeat; filter: drop-shadow(0 0 18px rgba(255, 255, 255, .85)); }
.mkd__linh-vat { position: absolute; left: 37.04%; top: 41.79%; width: 29.44%; aspect-ratio: 341 / 332; background: url("../img/thang-linh-vat-lon.webp") center / contain no-repeat; animation: mkd-bay 2.6s ease-in-out infinite; }
.mkd__thanh { position: absolute; left: 16.15%; top: 83.43%; width: 67.8%; height: 3.41%; min-height: 26px; border: 2px solid rgba(255, 255, 255, .95); border-radius: 999px; background: rgba(255, 255, 255, .22); box-shadow: 0 6px 22px rgba(40, 60, 200, .18); }
.mkd__day { position: absolute; left: 3px; top: 3px; bottom: 3px; width: 0; min-width: 52px; border-radius: 999px; background: linear-gradient(180deg, #4C8BFF 0%, #2346E8 55%, #1A35C9 100%); box-shadow: inset 0 2px 3px rgba(255, 255, 255, .45); transition: width .12s linear; }
.mkd__so { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: #FFFFFF; font-size: clamp(12px, 1.9vh, 17px); font-weight: 700; font-variant-numeric: tabular-nums; }
.mkd__cham { position: absolute; left: 0; right: 0; top: 90.4%; display: flex; gap: 10px; justify-content: center; }
.mkd__cham i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .55); animation: mkd-cham 1.2s ease-in-out infinite; }
.mkd__cham i:nth-child(2) { animation-delay: .2s; }
.mkd__cham i:nth-child(3) { animation-delay: .4s; }
.mkd__phim { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; pointer-events: none; transition: opacity .45s ease; }
html.mo-dau-phim .mkd__phim { opacity: 1; }
.mkd__logo, .mkd__linh-vat, .mkd__thanh, .mkd__cham { transition: opacity .45s ease; }
html.mo-dau-phim .mkd__logo, html.mo-dau-phim .mkd__linh-vat, html.mo-dau-phim .mkd__thanh, html.mo-dau-phim .mkd__cham { opacity: 0; }
@keyframes mkd-bay { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2.2%); } }
@keyframes mkd-cham { 0%, 100% { background: rgba(255, 255, 255, .55); } 40% { background: #FFFFFF; } }
@media (prefers-reduced-motion: reduce) {
    .mkd__linh-vat { animation: none; background-image: url("../img/thang-linh-vat-tinh.webp"); }
    .mkd__cham i { animation: none; } .mkd__cham i:first-child { background: #FFFFFF; }
    .mkd__day { transition: none; }
}

/* TRONG APP iOS GỐC (UA «ThangNative», 13/11/2026) — app có thanh điều hướng
   riêng nên web không vẽ thanh đầu/dưới; chỉ chừa vùng an toàn đáy máy. */
.trong-app body { padding-bottom: env(safe-area-inset-bottom); }

/* KHO HỌC VUI (14/11/2026) — tiền tố kg- (đã soát: chưa dùng). Màn danh sách,
   màn chơi (dựng bởi js/kho.js) và màn biên tập. Mọi nút ≥ 44px. */
.kg { --kg-mau: #3F4BEA; }
.kg-dau { display: flex; gap: var(--sp-3); align-items: center; margin: 0 0 var(--sp-4); padding: var(--sp-4); border-radius: 24px;
          background: linear-gradient(135deg, #EEF0FF 0%, #F7F3FF 100%); }
.kg-dau__chu { flex: 1 1 auto; min-width: 0; }
.kg-dau__nhan { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.kg-dau__ten { margin: 0 0 6px; font-size: clamp(24px, 6.5vw, 32px); font-weight: 800; line-height: 1.15; color: #12112B; }
.kg-dau__phu { margin: 0; font-size: 14px; line-height: 1.5; color: #3E3B66; }
.kg-dau__linh-vat { flex: 0 0 auto; width: 92px; height: 92px; }
.kg-robot { display: block; width: 100%; height: 100%; }
.kg-so { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-2); margin: 0 0 var(--sp-3); }
.kg-so__o { display: flex; flex-direction: column; gap: 2px; padding: var(--sp-3); border-radius: 18px; background: #FFFFFF;
            box-shadow: 0 6px 18px rgba(62, 58, 160, .08); }
.kg-so__so { font-size: 24px; font-weight: 800; color: #12112B; font-variant-numeric: tabular-nums; }
.kg-so__nhan { font-size: 12px; line-height: 1.35; color: var(--text-muted); }
.kg-so__o--g .kg-so__so { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%;
                          background: rgba(63, 75, 234, .12); color: #3F4BEA; font-size: 18px; }
.kg-so__o--sang .kg-so__so { background: #3F4BEA; color: #FFFFFF; box-shadow: 0 4px 12px rgba(63, 75, 234, .4); }
.kg-tuan { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; align-items: end; height: 92px; margin: 0 0 var(--sp-4);
           padding: var(--sp-3); border-radius: 18px; background: #FFFFFF; box-shadow: 0 6px 18px rgba(62, 58, 160, .08); }
.kg-tuan__cot { display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; }
.kg-tuan__thanh { position: relative; flex: 1 1 auto; width: 14px; border-radius: 999px; background: #EEEDF8; overflow: hidden; }
.kg-tuan__day { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 999px; background: linear-gradient(180deg, #6D7BFF, #3F4BEA); }
.kg-tuan__thu { font-size: 11px; color: var(--text-muted); }
.kg-muc { margin: 0 0 var(--sp-2); font-size: 18px; font-weight: 800; color: #12112B; }
.kg-ds { display: grid; gap: var(--sp-3); margin: 0 0 var(--sp-4); padding: 0; list-style: none; }
@media (min-width: 640px) { .kg-ds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kg-the { --kg-mau: #3F4BEA; position: relative; display: flex; gap: var(--sp-3); align-items: flex-start; min-height: 132px; padding: var(--sp-4);
          border-radius: 22px; background: #FFFFFF; color: inherit; text-decoration: none; box-shadow: 0 8px 22px rgba(62, 58, 160, .1);
          transition: transform .15s ease, box-shadow .15s ease; }
.kg-the:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(62, 58, 160, .16); }
.kg-the--lam { --kg-mau: #3F4BEA; } .kg-the--tim { --kg-mau: #7C3AED; } .kg-the--cam { --kg-mau: #EA580C; } .kg-the--luc { --kg-mau: #16A34A; }
.kg-the__ico { display: inline-flex; flex: 0 0 auto; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 16px;
               background: color-mix(in srgb, var(--kg-mau) 14%, #FFFFFF); color: var(--kg-mau); }
.kg-the__chu { display: flex; flex: 1 1 auto; flex-direction: column; gap: 3px; min-width: 0; }
.kg-the__nhom { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--kg-mau); }
.kg-the__ten { font-size: 17px; font-weight: 800; color: #12112B; }
.kg-the__mo { font-size: 13px; line-height: 1.45; color: #4B4970; }
.kg-the__so { margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--text-muted); }
.kg-the__choi { position: absolute; right: var(--sp-3); bottom: var(--sp-3); padding: 6px 14px; border-radius: 999px; background: var(--kg-mau);
                color: #FFFFFF; font-size: 13px; font-weight: 700; }
.kg-bt { margin: 0 0 var(--sp-4); }

/* Màn chơi */
.kg-choi { --kg-mau: #3F4BEA; padding-bottom: var(--sp-6); }
.kg-choi--tim { --kg-mau: #7C3AED; } .kg-choi--cam { --kg-mau: #EA580C; } .kg-choi--luc { --kg-mau: #16A34A; }
.kg-choi__dau { display: flex; gap: var(--sp-2); align-items: center; margin: 0 0 var(--sp-3); }
.kg-choi__ve { display: none; flex: 0 0 auto; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%;
               background: #FFFFFF; color: #12112B; box-shadow: 0 4px 12px rgba(62, 58, 160, .1); }
/* Web đã có nút quay lại ở thanh đầu trang; trong app iOS (thanh đó ẩn) mới cần nút riêng. */
.trong-app .kg-choi__ve { display: inline-flex; }
.kg-choi__ten { margin: 0; font-size: 22px; font-weight: 800; color: #12112B; }
.kg-chon { padding: var(--sp-4); border-radius: 22px; background: #FFFFFF; box-shadow: 0 8px 22px rgba(62, 58, 160, .08); }
.kg-chon__mo { margin: 0 0 var(--sp-3); font-size: 14px; line-height: 1.5; color: #4B4970; }
.kg-chon__luoi { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: 0 0 var(--sp-3); }
.kg-chon__ky-luc { margin: var(--sp-2) 0 0; font-size: 13px; color: var(--text-muted); text-align: center; }
.kg-chip { display: inline-flex; gap: 6px; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px;
           background: #FFFFFF; color: #12112B; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; }
.kg-chip input { accent-color: var(--kg-mau); }
.kg-chip:has(input:checked), .kg-chip--dang { border-color: var(--kg-mau); background: color-mix(in srgb, var(--kg-mau) 10%, #FFFFFF); }
.kg-chip__phu { margin-left: 4px; font-size: 11px; font-weight: 600; color: var(--text-muted); }
.kg-chip--lk { white-space: nowrap; }
.kg-bat-dau { margin-top: var(--sp-2); min-height: 52px; font-size: 16px; }
.kg-san, .kg-ket { padding: var(--sp-4); border-radius: 22px; background: #FFFFFF; box-shadow: 0 8px 22px rgba(62, 58, 160, .08); }
.kg-dang-tai { margin: var(--sp-4) 0; text-align: center; color: var(--text-muted); }
.kg-van { margin: 0 0 var(--sp-3); }
.kg-van__thanh { height: 8px; border-radius: 999px; background: #EEEDF8; overflow: hidden; }
.kg-van__day { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--kg-mau); transition: width .3s ease; }
.kg-van__so { display: flex; gap: var(--sp-2); align-items: center; justify-content: space-between; margin-top: 8px; font-size: 13px; color: var(--text-muted); }
.kg-van__diem { margin-left: auto; font-size: 18px; font-weight: 800; color: var(--kg-mau); font-variant-numeric: tabular-nums; }
.kg-van__chuoi { font-weight: 700; color: #EA580C; }
.kg-hoi { margin: 0 0 var(--sp-3); text-align: center; }
.kg-hoi__nhan { margin: 0 0 var(--sp-2); font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--text-muted); }
.kg-hoi__chinh { margin: 0 0 4px; font-size: clamp(26px, 8vw, 36px); font-weight: 800; color: #12112B; overflow-wrap: anywhere; }
.kg-hoi__chinh--vi { font-size: clamp(20px, 5.6vw, 26px); }
.kg-hoi__chinh--so { font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.kg-hoi__phu { margin: 0; color: var(--text-muted); }
.kg-hoi__tinh-huong { margin: 0; font-size: 16px; line-height: 1.55; color: #12112B; text-align: left; }
.kg-luoi { display: grid; gap: var(--sp-2); margin: 0 0 var(--sp-3); }
.kg-luoi--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kg-luoi--5 { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
.kg-nut { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 10px 16px; border: 1px solid var(--line);
          border-radius: 16px; background: #FFFFFF; color: #12112B; font: inherit; font-size: 15px; font-weight: 600; line-height: 1.35;
          cursor: pointer; text-align: center; text-decoration: none; transition: transform .08s ease, background .15s ease, border-color .15s ease; }
.kg-nut:active { transform: scale(.98); }
.kg-nut:disabled { cursor: default; }
.kg-nut--chon { justify-content: flex-start; text-align: left; }
.kg-nut--giua { justify-content: center; text-align: center; font-weight: 800; }
.kg-nut--so { justify-content: center; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.kg-nut.nut-chinh { border: 0; background: var(--kg-mau); color: #FFFFFF; }
.kg-nut.nut-chinh:hover { filter: brightness(1.05); }
.kg-nut.nut-phu { background: #FFFFFF; color: #12112B; }
.kg-nut--dung { border-color: #16A34A; background: #ECFDF3; color: #14532D; }
.kg-nut--sai { border-color: #DC2626; background: #FEF2F2; color: #7F1D1D; }
.kg-nut--tiep { width: 100%; min-height: 52px; margin-top: var(--sp-2); border: 0; }
.kg-nut--lon { min-width: 120px; }
.kg-nut--nho { min-height: 44px; padding: 8px 14px; font-size: 14px; }
.kg-nut--chu { width: 48px; height: 52px; padding: 0; font-size: 20px; font-weight: 800; }
.kg-hang { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: center; margin: var(--sp-2) 0; }
.kg-giai { margin: 0 0 var(--sp-2); padding: var(--sp-3); border-radius: 16px; background: #F6F6FF; text-align: left; }
.kg-giai--dung { background: #ECFDF3; } .kg-giai--sai { background: #FFF7ED; }
.kg-giai__ket { margin: 0 0 4px; font-weight: 800; color: #12112B; }
.kg-giai__tu { margin: 0 0 2px; font-size: 18px; color: #12112B; }
.kg-giai__am { color: var(--text-muted); font-size: 14px; }
.kg-giai__nghia { margin: 0 0 6px; line-height: 1.5; color: #3E3B66; }
.kg-giai__vd { margin: 0; font-style: italic; color: #12112B; }
.kg-giai__ok { display: inline-flex; min-height: 44px; align-items: center; margin: 0; font-weight: 700; color: #15803D; }
.kg-giai__vdn { margin: 2px 0 8px; font-size: 14px; color: var(--text-muted); }
.kg-xep__o { min-height: 52px; margin: var(--sp-2) 0; padding: 10px; border: 2px dashed var(--line); border-radius: 14px;
             font-size: 24px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #12112B; text-align: center; }
.kg-xep__o--dung { border-style: solid; border-color: #16A34A; background: #ECFDF3; }
.kg-xep__o--sai { border-style: solid; border-color: #DC2626; background: #FEF2F2; letter-spacing: 0; text-transform: none; font-size: 16px; }
.kg-xep__chu { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 var(--sp-2); }
.kg-dien { margin: var(--sp-2) 0 0; font-size: 18px; line-height: 2.2; text-align: left; }
.kg-dien__tu { color: #12112B; }
.kg-dien__o { min-height: 44px; padding: 4px 8px; border: 0; border-bottom: 2px solid var(--kg-mau); background: #F6F6FF; color: #12112B;
              font: inherit; font-weight: 700; }
.kg-dien__o--dung { border-color: #16A34A; background: #ECFDF3; } .kg-dien__o--sai { border-color: #DC2626; background: #FEF2F2; }
.kg-dong-ho { margin: 0 0 var(--sp-2); font-size: 28px; font-weight: 800; color: var(--kg-mau); text-align: center; font-variant-numeric: tabular-nums; }
.kg-stroop { margin: var(--sp-3) 0; font-size: clamp(40px, 13vw, 64px); font-weight: 900; letter-spacing: .04em; text-align: center; }
.kg-ban-phim { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.kg-nhay { animation: kg-nhay .35s ease; }
@keyframes kg-nhay { 0% { transform: scale(.6); opacity: .2; } 100% { transform: scale(1); opacity: 1; } }
.kg-tong { margin: 0 0 var(--sp-3); padding: var(--sp-4); border-radius: 20px; background: linear-gradient(135deg, #EEF0FF, #F7F3FF); text-align: center; }
.kg-tong--ky-luc { background: linear-gradient(135deg, #FFF7E6, #FFE9C7); }
.kg-tong__diem { margin: 0; font-size: 56px; font-weight: 900; line-height: 1.1; color: var(--kg-mau); font-variant-numeric: tabular-nums; }
.kg-tong__phu { margin: 4px 0; color: #3E3B66; }
.kg-tong__tin { margin: 8px 0 0; font-weight: 700; color: #12112B; }
.kg-lk { display: inline-flex; min-height: 44px; align-items: center; margin-left: var(--sp-2); color: var(--color-primary); font-weight: 700; }
.kg-ket .kg-hang .kg-nut { flex: 1 1 140px; }
.kg-ket .kg-nut--tiep { width: auto; margin-top: 0; }

/* Biên tập */
.kg-qt-tim { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: flex-end; margin: 0 0 var(--sp-3); }
.kg-qt-tim .o { flex: 1 1 200px; margin: 0; }
.kg-qt { margin: 0 0 var(--sp-3); padding: 0; list-style: none; }
.kg-qt__dong { border-bottom: 1px solid var(--line); }
.kg-qt__dong--tat { opacity: .55; }
.kg-qt__lk { display: block; min-height: 44px; padding: 10px 4px; color: #12112B; text-decoration: none; line-height: 1.45; }
.kg-qt__phu { color: var(--text-muted); font-size: 13px; }
.kg-loi { padding: var(--sp-2) var(--sp-3); border-radius: 12px; background: #FEF2F2; color: #7F1D1D; }
@media (prefers-reduced-motion: reduce) { .kg-the, .kg-nut, .kg-van__day { transition: none; } .kg-nhay { animation: none; } }

/* ĐĂNG NHẬP BẰNG GOOGLE (14/11/2026) — nút theo hướng dẫn nhận diện của Google: nền trắng, logo G bốn màu. */
.cua__hoac { display: flex; gap: var(--sp-2); align-items: center; margin: var(--sp-4) 0 var(--sp-3); color: var(--text-muted); font-size: 13px; }
.cua__hoac::before, .cua__hoac::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--line); }
.nut-google { display: flex; gap: 10px; align-items: center; justify-content: center; width: 100%; min-height: 48px; padding: 0 var(--sp-4);
              border: 1px solid #DADCE0; border-radius: 999px; background: #FFFFFF; color: #1F1F1F; font-size: 15px; font-weight: 600;
              text-decoration: none; box-shadow: 0 1px 2px rgba(60, 64, 67, .12); }
.nut-google:hover { background: #F8F9FA; }
.nut-google__ico { flex: 0 0 auto; }

/* ═════ NGHE MIX THƯ GIÃN — trang công khai /nghe/{ma} (CSH 15/11/2026) ═════
   Trang đứng riêng cho người chưa có tài khoản: nền đêm tím, thẻ trắng giữa. */
.nm-than { margin: 0; min-height: 100vh; background: linear-gradient(160deg, #2B2A6B 0%, #5B4BC4 55%, #C59BF5 100%); color: #171717; }
.nm { max-width: 520px; margin: 0 auto; padding: 32px 16px 48px; }
.nm__the { background: #FFFFFF; border-radius: 28px; padding: 28px 22px; box-shadow: 0 24px 60px rgb(20 10 70 / .35); text-align: center; }
.nm__nhan { margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #5B4BC4; }
.nm__dia { position: relative; width: 150px; height: 150px; margin: 0 auto 18px; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #FFC48A 0%, #C59BF5 45%, #7B6CF6 100%); }
.nm__vong { position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgb(123 108 246 / .35); }
.nm__vong--2 { inset: -22px; border-color: rgb(123 108 246 / .18); }
.nm__the.dang-phat .nm__dia { animation: nm-tho 8s ease-in-out infinite; }
@keyframes nm-tho { 0%, 100% { transform: scale(.94); } 50% { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .nm__the.dang-phat .nm__dia { animation: none; } }
.nm__ten { margin: 0 0 6px; font-size: 26px; line-height: 1.2; font-weight: 800; }
.nm__ghi-danh { margin: 0; font-weight: 700; color: #5B4BC4; }
.nm__phu { margin: 6px 0 0; font-size: 13px; color: #737373; }
.nm__mo-ta { margin: 14px 0 0; color: #404040; line-height: 1.5; }
.nm__phat { display: block; width: 100%; min-height: 56px; margin: 22px 0 6px; border: 0; border-radius: 28px; cursor: pointer;
  background: linear-gradient(90deg, #5B4BC4, #8B6CF5); color: #FFFFFF; font: inherit; font-size: 17px; font-weight: 800; }
.nm__phat:focus-visible, .nm__nut:focus-visible, .nm__keo:focus-visible, .nm__chon:focus-visible { outline: 3px solid #FFC48A; outline-offset: 2px; }
.nm__dem { min-height: 20px; margin: 0; font-size: 14px; color: #737373; font-variant-numeric: tabular-nums; }
.nm__dieu-khien { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; text-align: left; }
.nm__o { display: flex; flex-direction: column; gap: 6px; }
.nm__o-nhan { font-size: 12px; font-weight: 700; color: #737373; }
.nm__keo { width: 100%; min-height: 44px; accent-color: #5B4BC4; }
.nm__chon { min-height: 44px; border: 1px solid #EAEAEA; border-radius: 12px; padding: 0 10px; font: inherit; background: #FFFFFF; color: #171717; }
.nm__muc { margin: 24px 0 10px; font-size: 15px; text-align: left; }
.nm__ds { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.nm__dong { display: grid; grid-template-columns: 1fr 90px; gap: 10px; align-items: center; font-size: 14px; }
.nm__dong-ten { color: #262626; }
.nm__thanh { display: block; height: 8px; border-radius: 4px; background: #F1F2FE; overflow: hidden; }
.nm__thanh-day { display: block; height: 100%; width: var(--phan-tram); border-radius: 4px; background: linear-gradient(90deg, #8B6CF5, #5B4BC4); }
.nm__ghi-chu { margin: 12px 0 0; font-size: 13px; color: #737373; }
.nm__chia-se { display: flex; gap: 10px; margin-top: 22px; }
.nm__nut { flex: 1; min-height: 48px; border-radius: 24px; border: 0; cursor: pointer; font: inherit; font-weight: 700;
  background: #F1F2FE; color: #2B2A6B; }
.nm__nut--phu { background: #FFFFFF; border: 1px solid #EAEAEA; }
.nm__ban-quyen { margin: 18px 4px 0; font-size: 12px; line-height: 1.5; color: rgb(255 255 255 / .85); text-align: center; }
.nm__the .nm__ban-quyen { color: #737373; }
.nm__lien-ket { color: inherit; font-weight: 700; }

/* ═════ XEM SƠ ĐỒ TƯ DUY CÔNG KHAI — /xem/so-do/{ma} (CSH 15/11/2026) ═════ */
.xs-than { margin: 0; min-height: 100vh; background: #F5F7FF; color: #171717; }
.xs { max-width: 1100px; margin: 0 auto; padding: 28px 16px 48px; }
.xs__dau { margin-bottom: 16px; }
.xs__nhan { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #3A7BFF; }
.xs__ten { margin: 0 0 14px; font-size: 28px; line-height: 1.2; font-weight: 800; }
.xs__nut-hang { display: flex; flex-wrap: wrap; gap: 10px; }
.xs__nut { min-height: 44px; padding: 0 18px; border: 0; border-radius: 22px; cursor: pointer; font: inherit; font-weight: 700;
  background: linear-gradient(90deg, #3A7BFF, #0EA5E9); color: #FFFFFF; }
.xs__nut--phu { background: #FFFFFF; color: #1E3A8A; border: 1px solid #DCE4F5; }
.xs__nut:focus-visible { outline: 3px solid #F59E0B; outline-offset: 2px; }
.xs__ve { background: #FFFFFF; border-radius: 20px; padding: 12px; overflow: auto; box-shadow: 0 10px 30px rgb(40 50 140 / .07); }
.xs__dan-y { margin-top: 20px; background: #FFFFFF; border-radius: 20px; padding: 18px 20px; }
.xs__muc { margin: 0 0 10px; font-size: 16px; }
.xs__cay { margin: 0; padding-left: 20px; }
.xs__nhanh { margin: 6px 0; line-height: 1.5; }
.xs__chu { font-weight: 600; }
.xs__chu--xong { text-decoration: line-through; color: #737373; }
.xs__ghi { display: block; font-size: 13px; color: #737373; white-space: pre-line; }
.xs__chan { margin-top: 24px; text-align: center; font-size: 13px; color: #737373; }
.xs__lien { color: #1E3A8A; font-weight: 700; }
.xs-tc { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; justify-content: center; gap: 18px;
  padding: 32px max(16px, 8vw); background: linear-gradient(160deg, #1E3A8A, #3A7BFF); color: #FFFFFF; }
.xs-tc[hidden] { display: none; }
.xs-tc__so { margin: 0; font-size: 14px; opacity: .8; }
.xs-tc__ten { margin: 0; font-size: clamp(28px, 6vw, 56px); line-height: 1.15; }
.xs-tc__ds { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 10px; font-size: clamp(18px, 3vw, 28px); }
.xs-tc__muc { line-height: 1.35; }
.xs-tc__dieu { display: flex; gap: 10px; flex-wrap: wrap; }

/* Khu soạn: lọc + duyệt nhiều (15/11/2026). */
.qt-loc, .qt-nhieu { display: flex; flex-wrap: wrap; gap: var(--space-1); align-items: center; margin: var(--space-2) 0; }
.qt-loc input[type=search] { flex: 1 1 220px; }
.qt-loc input, .qt-loc select, .qt-nhieu select { min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: inherit; max-width: 100%; }
.qt-nhieu { padding: var(--space-2); border: 1px dashed var(--line); border-radius: 14px; }
.qt-chon { width: 22px; height: 22px; vertical-align: middle; margin-right: 8px; }
.hoc-vi-sao { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.4; color: var(--chu-phu, #5B5980); }
/* Phân trang đơn giản (pagination::simple-default). */
.pagination { display: flex; gap: var(--space-1); list-style: none; padding: 0; margin: var(--space-3) 0; justify-content: center; }
.pagination li > a, .pagination li > span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: inherit; font-weight: 600; }
.pagination li.disabled > span { opacity: .45; }

/* Đợt 2 — đề xuất thích ứng, «AI đã đọc» */
.goi-y-the__meta { font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; opacity: .65; margin: 0 0 .2rem; }
.ai-da-doc { font-size: .78rem; opacity: .6; margin: .3rem 0 0; }

/* WORKSPACE (Đợt 1, CSH 16/11/2026) */
.ws-cham { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; flex: 0 0 auto; }
.ws-cham--to { width: 16px; height: 16px; }
.ws-chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
    background: var(--surface); color: var(--text); font: inherit; font-size: 14px; cursor: pointer; }
.ws-chip--dang { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.ws-pb { display: flex; align-items: center; gap: var(--space-2); margin: 0 0 8px; }
.ws-pb__ten { flex: 0 0 38%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.ws-pb__thanh { flex: 1 1 auto; height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.ws-pb__thanh > span { display: block; height: 100%; border-radius: 4px; }
.ws-pb__so { flex: 0 0 auto; font-size: 13px; color: var(--text-muted); min-width: 64px; text-align: right; }
.ws-the__dau { display: flex; align-items: center; gap: var(--space-2); cursor: pointer; list-style: none; }
.ws-the__dau::-webkit-details-marker { display: none; }
.ws-the__chu { display: flex; flex-direction: column; min-width: 0; }
.ws-the[open] .ws-the__dau { margin-bottom: var(--space-2); }
.ws-the form { margin-top: var(--space-2); }
.ws-mau { position: relative; }
.ws-mau input { position: absolute; opacity: 0; }
.ws-mau span { display: block; width: 30px; height: 30px; border-radius: 50%; border: 3px solid transparent; }
.ws-mau input:checked + span { border-color: var(--text); }
.ws-mau input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.ws-gio { width: auto; min-width: 120px; }
.ws-nhan { display: inline-flex; align-items: center; font-size: 12px; color: var(--text-muted); }
.uu-tien--ngoai-gio { opacity: .55; }
.ws-loc { margin: 0 0 var(--space-2); }

/* ── BÁO CÁO (/insights) — bố cục mới, CSH 16/11/2026 ─────────────────────── */
.bc { max-width: 760px; margin: 0 auto; padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
.bc-dau { position: relative; overflow: hidden; padding: calc(env(safe-area-inset-top) + 18px) 18px 18px;
    background: url('/img/bao-cao-nen.jpg') center bottom / cover no-repeat, linear-gradient(180deg, #E9EEFF, #F4F2FF);
    border-radius: 0 0 28px 28px; min-height: calc(env(safe-area-inset-top) + 236px); }
.bc-dau__hang { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.bc-dau__chu { min-width: 0; }
.bc-dau__ten { margin: 0; font-size: clamp(28px, 8vw, 36px); font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.bc-dau__phu { margin: 4px 0 0; font-size: 13px; white-space: nowrap; color: var(--text); opacity: .75; }
.bc-dau__nut { display: flex; gap: 8px; flex: 0 0 auto; }
.bc-tron { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    border-radius: 50%; background: rgba(255, 255, 255, .85); color: var(--color-primary); box-shadow: 0 2px 8px rgba(62, 58, 160, .12); }
.bc-tron svg { width: 20px; height: 20px; }
.bc-tron__cham { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: #EF4444; border: 2px solid #FFFFFF; }
.bc-dau__linh-vat { position: absolute; z-index: 1; right: 8px; bottom: 66px; width: min(30%, 120px); height: auto;
    filter: drop-shadow(0 6px 14px rgba(62, 58, 160, .25)); pointer-events: none; }
.bc-ky { position: relative; z-index: 2; display: inline-flex; gap: 2px; margin-top: 72px; padding: 4px;
    border-radius: 999px; background: rgba(255, 255, 255, .92); box-shadow: 0 4px 14px rgba(62, 58, 160, .12); }
.bc-ky__muc { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text-muted); text-decoration: none; white-space: nowrap; }
.bc-ky__muc--dang { background: linear-gradient(135deg, #5B57E0, #7C5CF6); color: #FFFFFF; box-shadow: 0 3px 10px rgba(91, 87, 224, .35); }

.bc-than { padding: 0 16px; }
.bc-muc { margin: 0 0 10px; font-size: 17px; font-weight: 700; color: var(--text); }
.bc-rong { margin: 0; font-size: 13px; line-height: 1.55; color: var(--text-muted); }

.bc-tong { display: flex; align-items: center; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.bc-tong__hs { display: flex; align-items: center; gap: 12px; flex: 1 1 auto; min-width: 0; }
.bc-tong__pt { font-size: 22px; font-weight: 800; color: var(--text); }
.bc-tong__chu { min-width: 0; padding-left: 12px; border-left: 1px solid var(--line); }
.bc-tong__ten { margin: 0 0 4px; font-size: 16px; font-weight: 700; color: var(--text); }
.bc-bd { margin: 0 0 4px; font-size: 12px; color: var(--text-muted); }
.bc-bd--len b { color: #16A34A; }
.bc-bd--xuong b { color: #DC2626; }
.bc-tong__giai { margin: 0; font-size: 11px; color: var(--text-muted); }
.bc-tong__so { display: flex; flex: 0 0 auto; }
.bc-so { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 62px; padding: 0 6px; border-left: 1px solid var(--line); }
.bc-so b { font-size: 19px; font-weight: 800; color: var(--text); }
.bc-so span:last-child { font-size: 11px; color: var(--text-muted); white-space: nowrap; }
.bc-so__ico svg { width: 18px; height: 18px; }
.bc-so__ico--tim { color: var(--color-primary); }
.bc-so__ico--cam { color: #F97316; }

.bc-hai { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.bc-hai__o + .bc-hai__o { padding-left: 16px; border-left: 1px solid var(--line); }
.bc-bieu-do { display: block; width: 100%; height: auto; overflow: visible; }
.bc-bieu-do__truc, .bc-bieu-do__ngay { font-size: 8px; fill: var(--text-muted); }
.bc-bieu-do__ngay { text-anchor: middle; }
.bc-bieu-do__luoi { stroke: var(--line); stroke-width: .6; }
.bc-bieu-do__vung { fill: rgba(124, 92, 246, .12); }
.bc-bieu-do__duong { fill: none; stroke: #7C5CF6; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.bc-bieu-do__cham { fill: #FFFFFF; stroke: #7C5CF6; stroke-width: 1.5; }
.bc-bieu-do__cham--cuoi { fill: #5B57E0; stroke: #5B57E0; }

.bc-dd { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; padding: 18px 0 22px; }
.bc-dd__so { margin: 0; font-size: 34px; font-weight: 800; color: var(--text); line-height: 1; }
.bc-dd__phai { padding-left: 16px; border-left: 1px solid var(--line); }
.bc-dd__phai p { margin: 4px 0; font-size: 13px; color: var(--text); }
.bc-dd__phai span { color: var(--text-muted); }

.bc .pi { border-radius: 22px; }
.bc .pi__chu { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); font-size: 12px; line-height: 1.6; }

.bc-nl { margin-top: 8px; }
.bc-nl__luoi { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.bc-nl__cot { margin: 0; padding: 0; list-style: none; border-radius: 18px; background: #FFFFFF; box-shadow: var(--shadow-soft); overflow: hidden; }
.bc-nl__cot li + li { border-top: 1px solid var(--line); }
.bc-nl__muc { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 12px; color: var(--text); text-decoration: none; font-size: 14px; }
.bc-nl__ico { flex: 0 0 auto; color: var(--color-primary); }
.bc-nl__ico svg { width: 20px; height: 20px; }
.bc-nl__ten { flex: 1 1 auto; min-width: 0; }
.bc-nl__toi { flex: 0 0 auto; color: var(--text-muted); }
.bc-nl__toi svg { width: 14px; height: 14px; }

/* Điện thoại: giữ bố cục của bản thiết kế, thu cỡ cho vừa. */
@media (max-width: 480px) {
    .bc-tong { gap: 8px; }
    .bc-tong .vong svg { width: 70px; height: 70px; }
    .bc-tong__pt { font-size: 17px; }
    .bc-tong__hs { gap: 8px; }
    .bc-tong__chu { padding-left: 8px; }
    .bc-tong__ten { font-size: 14px; }
    .bc-so { min-width: 50px; padding: 0 3px; }
    .bc-so b { font-size: 16px; }
    .bc-so span:last-child { font-size: 10px; }
    .bc-nl__muc { gap: 8px; padding: 0 10px; font-size: 13px; min-height: 48px; }
    .bc-hai { gap: 12px; }
    .bc-bd { font-size: 11px; }
    .bc-tong__giai { font-size: 10px; }
    .bc-dd .bc-muc { font-size: 15px; }
    .bc-dd__so { font-size: 28px; }
    .bc-hai__o + .bc-hai__o, .bc-dd__phai { padding-left: 12px; }
}
/* Máy rất hẹp: xếp chồng. */
@media (max-width: 359px) {
    .bc-tong { flex-wrap: wrap; }
    .bc-tong__so { width: 100%; justify-content: space-around; }
    .bc-so:first-child { border-left: 0; }
    .bc-hai, .bc-dd, .bc-nl__luoi { grid-template-columns: 1fr; }
    .bc-hai__o + .bc-hai__o, .bc-dd__phai { padding-left: 0; border-left: 0; }
}

/* ── THẦN SỐ HỌC & TỬ VI (Giải trí, CSH 16/11/2026) ─────────────────────── */
.cn-mien-tru { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 var(--space-3); padding: 10px 12px; border-radius: 14px;
    background: var(--surface-2); color: var(--text-muted); font-size: 13px; line-height: 1.5; }
.cn-mien-tru svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; color: var(--color-primary); }
.cs-the { margin: 0 0 var(--space-3); padding: 16px; border-radius: 20px; background: #FFFFFF; box-shadow: var(--shadow-soft); }
.cs-the--chinh { background: linear-gradient(135deg, #EEF0FF, #F7EEFF); }
.cs-the__nhan { margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--text-muted); }
.cn-cau { margin: 6px 0 0; font-size: 14px; line-height: 1.55; color: var(--text); }
.cn-chu-dao { display: flex; gap: 14px; align-items: center; }
.cn-chu-dao__so { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 20px;
    background: linear-gradient(135deg, #5B57E0, #8B5CF6); color: #FFFFFF; font-size: 30px; font-weight: 800; }
.cn-chu-dao__ten { margin: 0; font-size: 18px; font-weight: 800; color: var(--text); }
.cn-luoi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 var(--space-3); }
.cn-o { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 18px; background: #FFFFFF; box-shadow: var(--shadow-soft); }
.cn-o__so { font-size: 26px; font-weight: 800; color: var(--color-primary); }
.cn-o__so--chu { font-size: 20px; }
.cn-o__nhan { font-size: 14px; font-weight: 700; color: var(--text); }
.cn-o__giai { font-size: 12px; color: var(--text-muted); }
.cn-bd { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; max-width: 264px; margin: 4px 0 12px; }
.cn-bd__o { aspect-ratio: 1 / 1; min-width: 0; overflow-wrap: anywhere; text-align: center; }
.cn-chu-dao > div { min-width: 0; }
.cn-bc-nut { padding: 0 var(--sp-4); text-align: center; line-height: 1.3; }
@media (max-width: 419px) {
    .cn-chu-dao { gap: 12px; }
    .cn-chu-dao__so { width: 56px; height: 56px; font-size: 26px; border-radius: 18px; }
    .cn-o { padding: 12px; }
}
.cn-bd__o { display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 12px; background: var(--surface-2);
    font-size: 16px; font-weight: 700; color: var(--text); letter-spacing: .08em; }
.cn-bd__o--trong { color: var(--text-muted); font-weight: 400; }
.cn-mt { margin: 0; padding: 0; list-style: none; }
.cn-mt__muc { margin: 0 0 6px; font-size: 13px; color: var(--text); }
.cn-mt__muc b { display: inline-block; min-width: 44px; color: var(--color-primary); }
.cn-mt__muc--trong b { color: #F97316; }
.cn-sua { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--color-primary); min-height: 44px; display: flex; align-items: center; }
.cn-nt { padding: 10px 0; border-top: 1px solid var(--line); }
.cn-nt:first-of-type { border-top: 0; }
.cn-nt__dau { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 44px; }
.cn-nt__ten { font-weight: 700; color: var(--text); }
.cn-nt__so { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 600; color: var(--color-primary); text-decoration: none; }
.cn-nt__form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.cn-nt__form .o__nhap { flex: 1 1 140px; width: auto; }
.cn-cap { margin: 0; padding: 0; list-style: none; }
.cn-cap__muc { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; margin: 0 0 8px; border-radius: 14px; background: var(--surface-2); font-size: 13px; color: var(--text); }
.cn-cap__muc--hop { background: #ECFDF5; }
.cn-goi-y { margin: 0 0 8px; font-size: 16px; font-weight: 600; line-height: 1.5; color: var(--text); }
.cn-tv__dau { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.cn-muc { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.cn-muc--tot, .cn-muc--kha { background: #DCFCE7; color: #166534; }
.cn-muc--binh { background: var(--surface-2); color: var(--text); }
.cn-muc--nhe_nhang { background: #FEF3C7; color: #92400E; }
.cn-muc--can_than { background: #FFE4E6; color: #9F1239; }
.cn-vi-sao { margin: 8px 0; font-size: 12px; color: var(--text-muted); }
.cn-tv { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; font-size: 14px; }
.cn-tv dt { font-weight: 700; color: var(--text); }
.cn-tv dd { margin: 0; color: var(--text); line-height: 1.5; }
/* Ô ngày trên iOS tự rộng theo nội dung và lòi ra khỏi khung — ép về đúng bề rộng. */
input[type="date"].o__nhap { display: block; width: 100%; max-width: 100%; min-width: 0; -webkit-appearance: none; appearance: none; text-align: left; }

/* ── WEBSITE: màn soạn (CSH 16/11/2026) ───────────────────────────────────── */
.tw-ds { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 0; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; }
.tw-ds:first-of-type { border-top: 0; }
.tw-ds__cham { flex: 0 0 auto; width: 14px; height: 14px; border-radius: 50%; }
.tw-ds__chu { display: flex; flex-direction: column; min-width: 0; }
.tw-ds__chu span { font-size: 12px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tw-mau-ds { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tw-mau { display: flex; flex-direction: column; gap: 4px; min-height: 96px; padding: 14px; border: 1px solid var(--line); border-radius: 16px;
    background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.tw-mau span { font-size: 12px; color: var(--text-muted); line-height: 1.45; }
.tw-xb { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.tw-hai { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
@media (max-width: 420px) { .tw-hai { grid-template-columns: 1fr; } }
.tw-sm { position: relative; }
.tw-sm__dau { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.tw-sm__ten { font-weight: 700; }
.tw-dong { padding: 10px 0; border-top: 1px dashed var(--line); }
.tw-dong--moi { opacity: .85; }
.tw-xoa { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13px; color: var(--text-muted); }
.tw-luu { position: sticky; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 3; }
.tw-xoa-trang { margin-top: var(--space-3); }

/* ── WEBSITE: trang công khai /w/{slug} ───────────────────────────────────── */
.tw { --tw-mau: #4F46E5; --tw-nen: #F8FAFC; --tw-the: #FFFFFF; --tw-chu: #0F172A; --tw-phu: #64748B; --tw-vien: #E2E8F0;
    margin: 0; background: var(--tw-nen); color: var(--tw-chu); font-family: inherit; }
.tw--toi { --tw-nen: #0B1020; --tw-the: #141B2D; --tw-chu: #F1F5F9; --tw-phu: #94A3B8; --tw-vien: #24304A; }
.tw--sang, .tw--website, .tw--landing, .tw--portfolio, .tw--cv, .tw--namecard { min-height: 100vh; }
.tw-nhap { margin: 0; padding: 10px 16px; background: #FEF3C7; color: #92400E; font-size: 13px; text-align: center; }
.tw-trang { max-width: 760px; margin: 0 auto; padding: 32px 18px calc(32px + env(safe-area-inset-bottom)); }
.tw--namecard .tw-trang { max-width: 480px; }
.tw-dau { padding: 28px 22px; border-radius: 28px; background: var(--tw-the); border: 1px solid var(--tw-vien); text-align: center;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .06); border-top: 6px solid var(--tw-mau); }
.tw-dau__anh { display: inline-flex; align-items: center; justify-content: center; width: 88px; height: 88px; border-radius: 50%;
    background: var(--tw-mau); color: #FFFFFF; font-size: 32px; font-weight: 800; letter-spacing: .02em; }
.tw-dau__ten { margin: 14px 0 4px; font-size: clamp(26px, 6vw, 36px); font-weight: 800; letter-spacing: -.01em; }
.tw-dau__phu { margin: 0; font-size: 16px; font-weight: 600; color: var(--tw-mau); }
.tw-dau__gt { margin: 12px auto 0; max-width: 560px; font-size: 15px; line-height: 1.6; color: var(--tw-phu); white-space: pre-line; }
.tw-nut-hang { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.tw-nut { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
    border: 1px solid var(--tw-vien); background: transparent; color: var(--tw-chu); font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; }
.tw-nut--chinh { background: var(--tw-mau); border-color: var(--tw-mau); color: #FFFFFF; }
.tw-in { border-style: dashed; }
.tw .tw-muc { margin-top: 18px; padding: 20px 22px; border-radius: 22px; background: var(--tw-the); border: 1px solid var(--tw-vien); }
.tw-muc__ten { margin: 0 0 12px; font-size: 18px; font-weight: 800; color: var(--tw-chu); }
.tw-muc__ten::before { content: ''; display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 3px; background: var(--tw-mau); }
.tw-van-ban { margin: 0; font-size: 15px; line-height: 1.65; white-space: pre-line; }
.tw-the { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tw-the li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--tw-vien); font-size: 13px; }
.tw-ds-muc { margin: 0; padding: 0; list-style: none; }
.tw-dm { padding: 12px 0; border-top: 1px solid var(--tw-vien); }
.tw-dm:first-child { border-top: 0; padding-top: 0; }
.tw-dm__dau { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tw-dm__dau a { color: var(--tw-mau); }
.tw-dm__tg { font-size: 13px; color: var(--tw-phu); white-space: nowrap; }
.tw-dm__phu { margin: 2px 0 0; font-size: 14px; color: var(--tw-mau); font-weight: 600; }
.tw-dm__mt { margin: 6px 0 0; font-size: 14px; line-height: 1.6; color: var(--tw-phu); white-space: pre-line; }
.tw-lh { margin: 0; padding: 0; list-style: none; }
.tw-lh li { display: flex; justify-content: space-between; gap: 12px; min-height: 44px; align-items: center; border-top: 1px solid var(--tw-vien); font-size: 14px; }
.tw-lh li:first-child { border-top: 0; }
.tw-lh span { color: var(--tw-phu); }
.tw-lh a { color: var(--tw-mau); text-decoration: none; overflow-wrap: anywhere; text-align: right; }
.tw-chan { margin-top: 28px; text-align: center; font-size: 12px; }
.tw-chan a { display: inline-flex; align-items: center; min-height: 44px; color: var(--tw-phu); }
@media print {
    .tw { background: #FFFFFF; }
    .tw-nhap, .tw-nut-hang, .tw-chan { display: none; }
    .tw-dau, .tw .tw-muc { box-shadow: none; border: 0; padding: 8px 0; }
    .tw-trang { padding: 0; }
}

/* ── CHIA KHUNG (đa nhiệm Đợt C, CSH 16/11/2026) ─────────────────────────── */
.ck { display: flex; flex-direction: column; height: 100dvh; background: var(--surface-2); }
.ck-dau { display: flex; align-items: center; gap: 12px; padding: 8px 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
.ck-ve { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--color-primary); font-weight: 700; text-decoration: none; }
.ck-ve svg { width: 18px; height: 18px; }
.ck-ten { flex: 1 1 auto; margin: 0; font-size: 16px; font-weight: 700; color: var(--text); }
.ck-than { display: flex; flex: 1 1 auto; min-height: 0; padding: 8px; gap: 0; }
.ck-khung { display: flex; flex-direction: column; flex: 1 1 0; min-width: 240px; overflow: hidden; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.ck-khung__dau { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.ck-chon { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; font-weight: 600; }
.ck-nut { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 12px;
    background: transparent; color: var(--text-muted); font: inherit; font-size: 16px; cursor: pointer; text-decoration: none; }
.ck-nut svg { width: 18px; height: 18px; }
.ck-iframe { flex: 1 1 auto; width: 100%; border: 0; background: var(--surface); }
.ck-chia { flex: 0 0 12px; cursor: col-resize; position: relative; }
.ck-chia::after { content: ''; position: absolute; top: 50%; left: 4px; width: 4px; height: 48px; margin-top: -24px; border-radius: 2px; background: var(--line); }
.ck-chia:hover::after, .ck-chia:focus-visible::after { background: var(--color-primary); }
.ck--keo .ck-iframe { pointer-events: none; }
.ck--keo { user-select: none; cursor: col-resize; }
.ck-hep { display: none; margin: 0; padding: 8px 14px; font-size: 12px; color: var(--text-muted); }
@media (max-width: 899px) {
    .ck { height: auto; min-height: 100dvh; }
    .ck-than { flex-direction: column; }
    .ck-khung { min-width: 0; flex-basis: auto !important; }
    .ck-iframe { height: 70vh; }
    .ck-chia { display: none; }
    .ck-hep { display: block; }
}
/* Website phần 2 — ảnh */
.tw-anh-o { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.tw-anh-o__xem { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; border: 1px solid var(--line); }
.tw-anh-o__chon { flex: 1 1 200px; margin: 0; }
.tw-dau__anh--hinh { object-fit: cover; padding: 0; }
.tw-dm--anh { display: grid; gap: 10px; }
.tw-dm__anh { display: block; width: 100%; max-height: 360px; object-fit: cover; border-radius: 16px; border: 1px solid var(--tw-vien); }

/* ── BÁO CÁO THẦN SỐ HỌC (CSH 16/11/2026) ─────────────────────────────────── */
.bcs-nut { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 var(--space-3); }
.cn-bc-nut { margin: 0 0 var(--space-3); }
.bcs-chang { margin: 0; padding: 0; list-style: none; }
.bcs-chang__muc { padding: 12px 0; border-top: 1px solid var(--line); }
.bcs-chang__muc:first-child { border-top: 0; padding-top: 0; }
.bcs-chang__muc--dang { margin: 0 -10px; padding: 12px 10px; border-radius: 14px; background: #EEF0FF; border-top-color: transparent; }
.bcs-chang__dau { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--text); }
.bcs-chang__dau span { color: var(--text-muted); font-size: 13px; }
.bcs-chang__dau em { color: var(--color-primary); font-style: normal; font-weight: 700; }
.bcs-dong { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.bcs-chip { padding: 6px 10px; border-radius: 999px; background: var(--surface-2); font-size: 12px; color: var(--text); }
.bcs-chip--dang { background: var(--color-primary); color: #FFFFFF; }
.bcs-bang-cuon { overflow-x: auto; margin: 10px 0 6px; }
.bcs-bang { width: 100%; border-collapse: collapse; font-size: 13px; }
.bcs-bang th, .bcs-bang td { padding: 8px 6px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
.bcs-bang thead th { font-size: 11px; color: var(--text-muted); font-weight: 700; }
.bcs-bang tbody th { text-align: left; color: var(--text); }
.bcs-bang__tot { background: #DCFCE7; }
.bcs-bang__nay th { color: var(--color-primary); }
.bcs-khop { padding: 10px 12px; border-radius: 12px; }
.bcs-khop--co { background: #ECFDF5; }
.bcs-khop--khong { background: #FFF7ED; }
/* Báo cáo Thần số học Đợt 1 — 5 phần, kim tự tháp, đường chu kỳ */
.bcs-tab { position: sticky; top: 0; z-index: 4; display: flex; gap: 6px; overflow-x: auto; margin: 0 calc(-1 * var(--space-3)) var(--space-3); padding: 8px var(--space-3);
    background: rgba(246, 247, 255, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); scrollbar-width: none; }
.bcs-tab::-webkit-scrollbar { display: none; }
.bcs-tab__muc { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
    background: #FFFFFF; box-shadow: var(--shadow-soft); color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.bcs-tab__muc:active { background: var(--color-primary); color: #FFFFFF; }
.bcs-phan { scroll-margin-top: 68px; margin: 0 0 var(--space-4); }
.bcs-phan__ten { margin: 8px 0 12px; font-size: 20px; font-weight: 800; color: var(--text); }
.bcs-nhom { margin: 8px 0 0; padding: 0; list-style: none; }
.bcs-nhom__muc { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 12px; align-items: center; padding: 8px 0; }
.bcs-nhom__so { grid-row: 1 / 3; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
    background: var(--color-primary-soft); color: var(--color-primary); font-size: 18px; font-weight: 800; }
.bcs-nhom__chu { font-size: 14px; color: var(--text); }
.bcs-nhom__thanh { display: block; height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bcs-nhom__thanh i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #5B57E0, #8B5CF6); }
.bcs-ds { margin: 4px 0 8px; padding: 0 0 0 18px; font-size: 14px; line-height: 1.55; color: var(--text); }
.bcs-ds li { margin: 0 0 4px; }
.bcs-luoi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 360px; }
.bcs-luoi__o { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; aspect-ratio: 1 / 1; min-width: 0; padding: 4px;
    border-radius: 16px; background: var(--color-primary-soft); text-align: center; }
.bcs-luoi__o--trong { background: var(--surface-2); }
.bcs-luoi__so { font-size: 22px; font-weight: 800; color: var(--color-primary); letter-spacing: .04em; overflow-wrap: anywhere; line-height: 1.1; }
.bcs-luoi__o--trong .bcs-luoi__so { color: var(--text-muted); opacity: .45; font-weight: 600; }
.bcs-luoi__lan { font-size: 11px; font-weight: 600; color: var(--text-muted); }
.bcs-ktt { display: block; width: 100%; max-width: 340px; height: auto; margin: 0 auto 8px; }
.bcs-ktt__day { stroke: #C7C9E8; stroke-width: 1.5; }
.bcs-ktt__o { stroke-width: 2; fill: #FFFFFF; }
.bcs-ktt__o--goc { stroke: #64748B; }
.bcs-ktt__o--dinh { stroke: #7C3AED; }
.bcs-ktt__o--tt { stroke: #F97316; }
.bcs-ktt__o--dang { fill: #EDE9FE; stroke-width: 3.5; }
.bcs-ktt__o--tt.bcs-ktt__o--dang { fill: #FFEDD5; }
.bcs-ktt__so { font-size: 15px; font-weight: 800; fill: #1E1B4B; }
.bcs-ktt__tuoi, .bcs-ktt__phu { font-size: 11px; fill: #64748B; }
.bcs-o--dang { outline: 2px solid var(--color-primary); outline-offset: -2px; }
.bcs-nam { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 4px; }
.bcs-nam__nut { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%;
    background: var(--surface-2); color: var(--text); font-size: 24px; text-decoration: none; }
.bcs-nam__ten { margin: 0; font-size: 15px; font-weight: 600; color: var(--text); text-align: center; }
.bcs-duong { display: block; width: 100%; height: auto; margin: 4px 0 8px; }
.bcs-duong__nen { fill: #EEF0FF; }
.bcs-duong__truc { stroke: #E2E8F0; stroke-dasharray: 3 4; }
.bcs-duong__net { fill: none; stroke: #E0786A; stroke-width: 2; stroke-linejoin: round; }
.bcs-duong__cham { fill: #FFFFFF; stroke: #E0786A; stroke-width: 2; }
.bcs-duong__cham--dang { fill: #D9534F; stroke: #D9534F; }
.bcs-duong__so { font-size: 15px; font-weight: 700; fill: #1E1B4B; }
.bcs-duong__so--dang { fill: #D9534F; }
.bcs-duong__phu { font-size: 10px; fill: #64748B; }
@media print {
    .bcs-tab, .bcs-nam__nut { display: none; }
    .bcs-nut, .cn-bc-nut { display: none; }
    .bcs .cs-the { box-shadow: none; border: 1px solid #DDD; break-inside: avoid; }
}
/* Tử vi nâng cao */
.tv-tuan { margin: 0; padding: 0; list-style: none; }
.tv-tuan__ngay { display: grid; grid-template-columns: 84px 1fr 1fr; gap: 4px 10px; align-items: center; padding: 8px 10px; margin: 0 0 6px; border-radius: 12px; background: var(--surface-2); font-size: 13px; color: var(--text); }
.tv-tuan__ngay em { grid-column: 2 / -1; font-style: normal; font-weight: 700; font-size: 12px; }
.tv-tuan__ngay--tot { background: #DCFCE7; }
.tv-tuan__ngay--tot em { color: #166534; }
.tv-tuan__ngay--can { background: #FFE4E6; }
.tv-tuan__ngay--can em { color: #9F1239; }
@media (max-width: 380px) { .tv-tuan__ngay { grid-template-columns: 1fr; } .tv-tuan__ngay em { grid-column: auto; } }
.tv-dc { margin-top: 12px; }
/* Chuyên đề Thần số học (Đợt 2) */
.cd-ds { display: flex; flex-direction: column; gap: 10px; margin: 12px 0 var(--space-3); }
.cd-muc { border-radius: 18px; background: #FFFFFF; box-shadow: var(--shadow-soft); }
.cd-muc__dau { display: flex; flex-direction: column; gap: 4px; min-height: 44px; padding: 14px 44px 14px 16px; cursor: pointer; list-style: none; position: relative; }
.cd-muc__dau::-webkit-details-marker { display: none; }
.cd-muc__dau::after { content: ''; position: absolute; top: 22px; right: 18px; width: 8px; height: 8px; border: solid var(--text-muted); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; }
.cd-muc[open] > .cd-muc__dau::after { transform: rotate(-135deg); top: 26px; }
.cd-muc__ten { font-size: 17px; font-weight: 700; color: var(--text); }
.cd-muc__tom { font-size: 13px; line-height: 1.5; color: var(--text-muted); }
.cd-muc__than { padding: 0 16px 14px; border-top: 1px solid var(--line); }
.cd-muc__than .cn-cau:first-child { margin-top: 12px; }
.cn-loi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 var(--space-3); }
.cn-loi__muc { display: flex; flex-direction: column; gap: 4px; min-height: 44px; padding: 14px; border-radius: 18px; background: #FFFFFF; box-shadow: var(--shadow-soft); color: var(--text); text-decoration: none; }
.cn-loi__muc b { font-size: 15px; }
.cn-loi__muc span { font-size: 12px; line-height: 1.45; color: var(--text-muted); }
.cn-loi__muc--chinh { background: linear-gradient(135deg, #5B57E0, #8B5CF6); color: #FFFFFF; }
.cn-loi__muc--chinh span { color: rgba(255, 255, 255, .85); }
.bcs-tab__muc--ngoai { background: var(--color-primary); color: #FFFFFF; }
@media print { .cn-loi { display: none; } }
/* Tài chính gộp (16/11/2026): tab Sổ thu chi · Kế hoạch · Giao dịch */
.tc-tab { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 var(--space-3); padding: 4px; border-radius: 999px; background: var(--surface-2); scrollbar-width: none; }
.tc-tab::-webkit-scrollbar { display: none; }
.tc-tab__muc { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
    color: var(--text-muted); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.tc-tab__muc--dang { background: #FFFFFF; color: var(--text); box-shadow: var(--shadow-soft); }
/* ── HỌC TẬP tối ưu UX (16/11/2026): thẻ tiếp tục + lưới công cụ + nhãn gọn ── */
.hoc-tiep { display: flex; align-items: center; gap: 14px; margin: 0 0 var(--space-3); padding: 16px 18px; border-radius: 22px; color: #FFFFFF; text-decoration: none;
    background: linear-gradient(135deg, #4F46E5, #7C3AED); box-shadow: 0 10px 24px rgba(79, 70, 229, .25); }
.hoc-tiep__chu { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hoc-tiep__nhan { font-size: 11px; font-weight: 800; letter-spacing: .06em; opacity: .85; }
.hoc-tiep__ten { font-size: 17px; font-weight: 700; line-height: 1.35; }
.hoc-tiep__phu { font-size: 13px; opacity: .9; }
.hoc-tiep__nut { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: #FFFFFF; color: #4F46E5; }
.hoc-tiep__nut .bt { width: 20px; height: 20px; }
.hoc-cong-cu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 var(--space-4); }
@media (max-width: 380px) { .hoc-cong-cu { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hoc-cong-cu__o { display: flex; flex-direction: column; gap: 4px; min-height: 96px; padding: 12px; border-radius: 18px; background: #FFFFFF; box-shadow: var(--shadow-soft); color: var(--text); text-decoration: none; }
.hoc-cong-cu__o--noi { background: #FEF3C7; }
.hoc-cong-cu__ico { color: var(--color-primary); line-height: 0; }
.hoc-cong-cu__ico .bt { width: 24px; height: 24px; }
.hoc-cong-cu__ten { font-size: 14px; font-weight: 700; }
.hoc-cong-cu__phu { font-size: 12px; color: var(--text-muted); line-height: 1.35; overflow-wrap: anywhere; }
.hoc-bai__nhan { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 6px 0 0; }
.hoc-bai__meta { font-size: 12px; color: var(--text-muted); }

/* ── KHOÁ HỌC & CHỨNG CHỈ (16/11/2026) ── */
.khh-quay { margin: 0 0 8px; }
.khh-muc { margin: 0 0 var(--space-4); }
.khh-muc__ten { margin: 0 0 10px; font-size: 18px; font-weight: 800; color: var(--text); }
.khh-the { display: flex; flex-direction: column; gap: 6px; margin: 0 0 10px; padding: 14px 16px; border-radius: 18px; background: #FFFFFF; box-shadow: var(--shadow-soft); color: var(--text); text-decoration: none; }
.khh-the__dau { display: flex; flex-direction: column; gap: 2px; }
.khh-the__ten { font-size: 16px; font-weight: 700; }
.khh-the__meta { font-size: 12px; font-weight: 600; color: var(--color-primary); }
.khh-the__mo-ta { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.khh-the__tien-do { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.khh-the__tien-do--moi { color: var(--color-primary); }
.khh-thanh { display: block; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.khh-thanh__day { display: block; width: var(--phan-tram, 0%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #22C55E, #16A34A); }
.khh-mo-ta { font-size: 15px; line-height: 1.6; color: var(--text); }
.khh-muc-tieu { margin: 0 0 var(--space-3); padding: 14px 16px; border-radius: 16px; background: #EEF2FF; }
.khh-muc-tieu p { margin: 0; font-size: 14px; line-height: 1.6; }
.khh-tien { display: flex; flex-direction: column; gap: 8px; margin: 0 0 var(--space-4); padding: 14px 16px; border-radius: 18px; background: #FFFFFF; box-shadow: var(--shadow-soft); }
.khh-tien__chu { margin: 0; font-size: 14px; font-weight: 600; }
.khh-nhan { margin: 0; }
.khh-xong { display: flex; align-items: center; gap: 12px; min-height: 44px; margin: 0 0 var(--space-4); padding: 14px 16px; border-radius: 18px; background: #DCFCE7; color: #14532D; text-decoration: none; font-size: 14px; }
.khh-xong .bt { width: 28px; height: 28px; }
.khh-bai { margin: 0 0 8px; padding: 0; list-style: none; }
.khh-bai__muc { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.khh-bai__muc:first-child { border-top: 0; }
.khh-bai__so { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); color: var(--text-muted); font-weight: 800; font-size: 14px; }
.khh-bai__muc--xong .khh-bai__so { background: #22C55E; color: #FFFFFF; }
.khh-bai__muc--dang_lam .khh-bai__so { background: #4F46E5; color: #FFFFFF; }
.khh-bai__muc--lam_lai .khh-bai__so { background: #F59E0B; color: #FFFFFF; }
.khh-bai__muc--chua .khh-bai__so { background: var(--surface-2); }
.khh-bai__lk { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; min-height: 44px; color: var(--text); text-decoration: none; }
.khh-bai__ten { font-size: 15px; font-weight: 600; }
.khh-bai__tt { font-size: 12px; color: var(--text-muted); }
.khh-ds-cc { margin: 0; padding: 0; list-style: none; }
.khh-ds-cc__muc { display: flex; align-items: center; gap: 12px; min-height: 56px; margin: 0 0 8px; padding: 10px 14px; border-radius: 16px; background: linear-gradient(135deg, #FEF9C3, #FDE68A); color: #713F12; text-decoration: none; }
.khh-ds-cc__dau .bt { width: 28px; height: 28px; }
.khh-ds-cc__chu { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.khh-ds-cc__chu span { font-size: 12px; opacity: .85; }
.khh-cc { margin: 0 0 var(--space-3); padding: 28px 22px; border: 3px double #B45309; border-radius: 20px; background: linear-gradient(180deg, #FFFBEB, #FFFFFF); text-align: center; color: #1F2937; }
.khh-cc__thuong { margin: 0 0 18px; font-size: 12px; font-weight: 800; letter-spacing: .12em; color: #B45309; }
.khh-cc__thu-hoi { margin: 0 0 12px; padding: 8px; border-radius: 10px; background: #FEE2E2; color: #991B1B; font-weight: 700; }
.khh-cc__nho { margin: 0; font-size: 13px; color: #6B7280; }
.khh-cc__ten { margin: 6px 0 10px; font-size: 26px; font-weight: 800; color: #111827; overflow-wrap: anywhere; }
.khh-cc__khoa { margin: 6px 0 6px; font-size: 20px; font-weight: 800; color: #4F46E5; line-height: 1.35; }
.khh-cc__vi-sao { margin: 0 0 16px; font-size: 13px; color: #6B7280; }
.khh-cc__thong-tin { display: flex; justify-content: center; gap: 24px; margin: 0 0 12px; }
.khh-cc__thong-tin dt { font-size: 11px; font-weight: 700; color: #9CA3AF; text-transform: uppercase; }
.khh-cc__thong-tin dd { margin: 2px 0 0; font-size: 14px; font-weight: 700; }
.khh-cc__xac-minh { margin: 0 0 10px; font-size: 12px; color: #6B7280; overflow-wrap: anywhere; }
.khh-cc__mien-tru { margin: 0; font-size: 11px; line-height: 1.5; color: #9CA3AF; }
.khh-cc-nut { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 var(--space-3); }
.khh-cong-khai { padding: 14px 16px; border-radius: 16px; background: var(--surface-2); }
.khh-cong-khai__chu { margin: 0 0 10px; font-size: 13px; color: var(--text); }
.khh-trang { margin: 0; min-height: 100vh; background: #F6F7FF; font-family: inherit; }
.khh-xac-minh { max-width: 560px; margin: 0 auto; padding: 24px 16px 48px; }
.khh-xac-minh__ket { margin: 0 0 16px; padding: 12px 14px; border-radius: 14px; background: #DCFCE7; color: #14532D; font-weight: 700; text-align: center; }
.khh-xac-minh__ket--hong { background: #FEE2E2; color: #991B1B; }
.khh-qt { margin: 12px 0 0; padding: 0; list-style: none; }
.khh-qt__muc { margin: 0 0 8px; }
.khh-qt__lk { display: flex; flex-direction: column; gap: 2px; min-height: 44px; padding: 12px 14px; border-radius: 14px; background: #FFFFFF; box-shadow: var(--shadow-soft); color: var(--text); text-decoration: none; }
.khh-qt__lk span { font-size: 12px; color: var(--text-muted); }
.khh-chon { margin: 0 0 var(--space-3); padding: 0; border: 0; }
.khh-chon__muc { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 4px 0; border-top: 1px solid var(--line); font-size: 14px; }
.khh-chon__so { flex: 0 0 72px; width: 72px; }
.khh-trang-thai { margin: var(--space-3) 0 8px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
@media print {
    .khh-quay, .khh-cc-nut, .khh-cong-khai { display: none; }
    .khh-cc { border-color: #92400E; }
}
/* ── KHU HỌC tái cấu trúc 4 tab (16/11/2026) ── */
.hoc-dau { margin: 0 0 var(--space-3); }
.hoc-dau__ten { margin: 4px 0 10px; font-size: 28px; font-weight: 800; color: var(--text); }
.trong-app .hoc-dau__ten { display: none; }
.hoc-tab { position: sticky; top: 0; z-index: 4; display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-2); overflow-x: auto; scrollbar-width: none; }
.hoc-tab::-webkit-scrollbar { display: none; }
.hoc-tab__muc { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px; border-radius: 999px;
    color: var(--text-muted); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.hoc-tab__muc--dang { background: #FFFFFF; color: var(--text); box-shadow: var(--shadow-soft); }
.hoc-muc { margin: 0 0 var(--space-4); }
.hoc-muc__dau { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.hoc-muc__ten { margin: 0 0 10px; font-size: 18px; font-weight: 800; color: var(--text); }
.hoc-viec { margin: 0; padding: 0; list-style: none; }
.hoc-viec__muc { display: flex; align-items: center; gap: 12px; min-height: 60px; margin: 0 0 8px; padding: 10px 12px; border-radius: 16px; background: #FFFFFF; box-shadow: var(--shadow-soft); color: var(--text); text-decoration: none; }
.hoc-viec__muc--tre { box-shadow: inset 4px 0 0 #F59E0B, var(--shadow-soft); }
.hoc-viec__ico { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: #EEF2FF; color: #4F46E5; }
.hoc-viec__ico .bt { width: 20px; height: 20px; }
.hoc-viec__ico--the { background: #FEF3C7; color: #B45309; }
.hoc-viec__ico--lam { background: #DCFCE7; color: #15803D; }
.hoc-viec__ico--cc { background: #FEF9C3; color: #A16207; }
.hoc-viec__ico--khoa { background: #EEF2FF; color: #4F46E5; }
.hoc-viec__chu { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.hoc-viec__chu span { font-size: 12px; color: var(--text-muted); }
.hoc-viec__toi { flex: 0 0 auto; color: var(--text-muted); line-height: 0; }
.hoc-viec__toi .bt { width: 16px; height: 16px; }
.hoc-trong { padding: 16px; border-radius: 18px; background: #FFFFFF; box-shadow: var(--shadow-soft); }
.hoc-trong__chu { margin: 0 0 12px; font-size: 14px; line-height: 1.55; color: var(--text); }
.hoc-goi { margin: 0; padding: 0; list-style: none; }
.hoc-goi__muc { display: flex; align-items: flex-start; gap: 12px; min-height: 64px; margin: 0 0 8px; padding: 12px; border-radius: 16px; background: #FFFFFF; box-shadow: var(--shadow-soft); color: var(--text); text-decoration: none; }
.hoc-goi__chu { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hoc-goi__ten { font-size: 15px; font-weight: 700; line-height: 1.35; }
.hoc-goi__meta { font-size: 12px; color: var(--text-muted); }
.hoc-goi__vi-sao { font-size: 12px; color: #4F46E5; line-height: 1.45; }
.hoc-chan { margin: var(--space-4) 0 var(--space-3); font-size: 13px; color: var(--text-muted); line-height: 1.8; }
.hoc-tim { display: flex; gap: 8px; margin: 0 0 var(--space-3); }
.hoc-tim__o { flex: 1 1 auto; min-width: 0; }
.hoc-ket-qua { margin: 0 0 10px; font-size: 13px; color: var(--text-muted); }
.hoc-bai__da { font-size: 12px; font-weight: 700; color: #15803D; }
.hoc-so { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 8px; }
.hoc-so__o { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; border-radius: 16px; background: #FFFFFF; box-shadow: var(--shadow-soft); text-align: center; }
.hoc-so__o b { font-size: 22px; font-weight: 800; color: var(--text); }
.hoc-so__o span { font-size: 11px; color: var(--text-muted); line-height: 1.3; }
.hoc-so__phu { margin: 0 0 var(--space-4); font-size: 12px; color: var(--text-muted); }
.khh-tieu-de { margin-top: 0; }
.hoc-tiep__vi-sao { font-size: 12px; opacity: .9; line-height: 1.45; }
/* ── SINH TRẮC HỌC (Giải trí, 16/11/2026) ── */
.st-khoa-hoc { margin: 0 0 var(--space-3); padding: 10px 12px; border-radius: 14px; background: #FFF7ED; color: #7C2D12; font-size: 13px; line-height: 1.5; }
.st-nguon { margin: 0 0 10px; font-size: 12px; color: var(--text-muted); }
.st-hai-tay { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.st-tay__ten { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--text); text-align: center; }
.st-tay__ngon { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.st-o { display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 8px; align-items: center; min-height: 52px; padding: 6px 8px; border-radius: 12px; background: var(--surface-2); }
.st-o .st-hinh { grid-row: 1 / 3; width: 40px; height: 40px; }
.st-o__ngon { font-size: 11px; color: var(--text-muted); }
.st-o__chung { font-size: 13px; font-weight: 700; color: var(--text); overflow-wrap: anywhere; }
.st-o--trong { grid-template-columns: minmax(0, 1fr); }
.st-o--w { background: #EEF2FF; } .st-o--l { background: #ECFDF5; } .st-o--a { background: #FFF7ED; }
.st-hinh__nen { fill: #FFFFFF; stroke: #CBD5E1; stroke-width: 1; }
.st-hinh__van { fill: none; stroke: #6366F1; stroke-width: 1.6; stroke-linecap: round; }
.st-o--l .st-hinh__van { stroke: #059669; } .st-o--a .st-hinh__van { stroke: #EA580C; }
.st-nut { margin-top: 10px; }
.st-ty-le { margin: 0 0 10px; padding: 0; list-style: none; }
.st-ty-le__muc { display: grid; grid-template-columns: 110px minmax(0, 1fr) 44px; gap: 8px; align-items: center; padding: 4px 0; font-size: 13px; }
.st-ty-le__thanh { display: block; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.st-ty-le__day { display: block; height: 100%; border-radius: inherit; }
.st-ty-le__day--w { background: #6366F1; } .st-ty-le__day--l { background: #10B981; } .st-ty-le__day--a { background: #F97316; }
.st-ty-le__pt { text-align: right; font-weight: 700; }
.st-lv { margin: 0; padding: 0 0 0 18px; font-size: 13px; line-height: 1.6; color: var(--text); }
.st-lv li { margin: 0 0 6px; }
.st-lv__cua { color: var(--color-primary); }
.st-xoa { margin: var(--space-3) 0; }
.st-mau { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 380px) { .st-mau { grid-template-columns: minmax(0, 1fr); } }
.st-mau__muc { display: flex; gap: 8px; align-items: flex-start; padding: 8px; border-radius: 12px; }
.st-mau__muc .st-hinh { flex: 0 0 44px; width: 44px; height: 44px; }
.st-mau__chu { display: flex; flex-direction: column; gap: 2px; font-size: 12px; line-height: 1.45; color: var(--text); }
.st-chon { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
@media (max-width: 380px) { .st-chon { grid-template-columns: minmax(0, 1fr); } }
.st-tay { min-width: 0; }
.st-ty-le__ten { overflow-wrap: anywhere; }
.st-chon__o { min-width: 0; }

/* ── KỶ LUẬT nâng cấp (16/11/2026): tổng quan, 7 ngày, kế hoạch, theo thứ ── */
.kl-tq { margin: 0 0 var(--space-3); padding: var(--space-2) var(--space-3);
         background: var(--color-surface-secondary); border-radius: var(--radius-md); list-style: none; }
.kl-bay { display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
          margin: -2px 0 var(--space-2); padding-left: 56px; font-size: 12px; color: var(--text-muted); }
.kl-bay__o { display: inline-flex; gap: 3px; }
.kl-bay__o .o-ngay { width: 10px; height: 10px; }
.kl-bay__chu { min-width: 0; }
.kl-nho { margin: -4px 0 var(--space-2); padding-left: 56px; font-size: 13px; color: var(--color-primary); }
.kl-lich { border: 0; padding: 0; margin: 0 0 var(--space-3); }
.kl-lich__hang { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin: 0 0 var(--space-1); }
.kl-lich__o { position: relative; display: flex; }
.kl-lich__o input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kl-lich__o span { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 44px;
                   border: 1px solid var(--color-border); border-radius: var(--radius-md); font-size: 14px; cursor: pointer; }
.kl-lich__o input:checked + span { background: var(--color-primary-soft); color: var(--color-primary); border-color: var(--color-primary); font-weight: 600; }
.kl-lich__o input:focus-visible + span { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.kl-thu-cot { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin: 0 0 var(--space-2); padding: 0; list-style: none; }
.kl-thu-cot__mot { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.kl-thu-cot__khung { position: relative; display: block; width: 100%; max-width: 28px; height: 64px;
                     background: var(--tien-do-rong); border-radius: 4px; overflow: hidden; }
.kl-thu-cot__day { position: absolute; left: 0; right: 0; bottom: 0; height: var(--cao); background: var(--tien-do-day); }
.kl-thu-cot__pt { font-size: 11px; font-family: var(--font-so); color: var(--text-muted); }
.kl-thu-cot__ten { font-size: 12px; font-weight: 600; }
.kl-lich__chon { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; }
.kl-lich__chon input { width: 20px; height: 20px; accent-color: var(--color-primary); }

/* ── APP TỆP (17/11/2026) ─────────────────────────────────────────────── */
.tp-dau { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-2); }
.tp-dung { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); }
.tp-dung__thanh { display: block; width: 120px; height: 6px; border-radius: 3px; background: var(--tien-do-rong); overflow: hidden; }
.tp-dung__day { display: block; height: 100%; width: var(--phan-tram); background: var(--tien-do-day); }
.tp-dung__chu { font-family: var(--font-so); }
.tp-tab { display: flex; gap: 4px; margin: var(--space-2) 0; overflow-x: auto; }
.tp-tab__muc { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px;
               color: var(--text); text-decoration: none; font-size: 14px; border: 1px solid var(--color-border); }
.tp-tab__muc[aria-current="true"] { background: var(--color-primary-soft); color: var(--color-primary); border-color: var(--color-primary); font-weight: 600; }
.tp-tim { margin: 0 0 var(--space-3); }
.tp-duong { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 var(--space-2); font-size: 14px; color: var(--text-muted); }
.tp-duong a { color: var(--color-primary); text-decoration: none; }
.tp-cong-cu { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--space-2); margin: 0 0 var(--space-3); }
.tp-tai-len { cursor: pointer; }
.tp-moi summary { list-style: none; cursor: pointer; }
.tp-moi summary::-webkit-details-marker { display: none; }
.tp-moi__form { display: flex; gap: 8px; margin-top: 8px; }
.tp-tha { position: fixed; inset: 12px; z-index: 50; display: flex; align-items: center; justify-content: center; border: 3px dashed var(--color-primary);
          border-radius: 24px; background: color-mix(in srgb, var(--color-primary-soft) 85%, transparent); font-size: 20px; font-weight: 600; color: var(--color-primary); pointer-events: none; }
.tp-tha[hidden] { display: none; }
.tp-tien-trinh { list-style: none; margin: 0 0 var(--space-2); padding: 0; }
.tp-tien-trinh__muc { display: grid; grid-template-columns: 1fr 120px auto; align-items: center; gap: 8px; font-size: 14px; padding: 6px 0; }
.tp-tien-trinh__muc span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-tien-trinh__muc--loi small { color: var(--color-danger); }
.tp-hang { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 0; border-bottom: 1px solid var(--color-divider); }
.tp-hang__ico { flex: 0 0 40px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 10px;
                background: var(--color-surface-secondary); color: var(--text-muted); }
.tp-hang__ico svg { width: 22px; height: 22px; }
.tp-hang__ico--thu-muc { background: var(--color-tint-cream); color: var(--color-warning); }
.tp-hang__anh { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px; object-fit: cover; background: var(--color-surface-secondary); }
.tp-hang__ten { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.tp-hang__phu { display: block; font-size: 12px; color: var(--text-muted); }
.tp-sao { color: var(--color-warning); }
.tp-menu { position: relative; }
.tp-menu summary { list-style: none; cursor: pointer; }
.tp-menu summary::-webkit-details-marker { display: none; }
.tp-menu__than { position: absolute; right: 0; top: 100%; z-index: 20; width: min(320px, 86vw); padding: 10px; display: grid; gap: 8px;
                 background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 14px; box-shadow: var(--shadow-soft); }
.tp-menu__form { display: grid; gap: 4px; margin: 0; }
.tp-menu__muc { display: flex; align-items: center; min-height: 40px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent;
                font: inherit; font-size: 14px; color: var(--text); text-align: left; text-decoration: none; cursor: pointer; }
.tp-menu__muc:hover { background: var(--color-surface-secondary); }
.tp-menu__nhan { font-size: 12px; color: var(--text-muted); }
.tp-menu__hang { display: flex; gap: 6px; flex-wrap: wrap; }
.tp-menu__hang .o__nhap { flex: 1 1 140px; min-width: 0; }
.tp-menu__cs { display: grid; gap: 4px; padding: 6px; border-radius: 10px; background: var(--color-surface-secondary); }
.tp-nut-xoa { color: var(--color-danger); }
.tp-don { margin-top: var(--space-3); }
.tp-lien-ket { display: grid; gap: 6px; margin: 0 0 var(--space-3); padding: 12px; border-radius: 14px; background: var(--color-primary-soft); }
.tp-lien-ket__nhan { margin: 0; font-size: 14px; }
.tp-lien-ket__o { font-family: var(--font-so); }
.tp-rieng { margin-top: var(--space-4); }
.tp-cong { margin: 0; min-height: 100vh; background: var(--color-surface-secondary); }
.tp-cong__khung { max-width: 640px; margin: 0 auto; padding: 32px 16px; }
.tp-cong__nhan { margin: 0 0 6px; font-size: 13px; color: var(--text-muted); letter-spacing: .04em; }
.tp-cong__tieu-de { margin: 0 0 12px; font-size: 26px; overflow-wrap: anywhere; }
.tp-cong__form { display: flex; gap: 8px; }
.tp-cong__anh { display: block; max-width: 100%; max-height: 70vh; margin: 12px 0; border-radius: 14px; }
.tp-cong__nut { display: flex; gap: 8px; }
.tp-cong__chan { margin-top: 24px; }
.tp { position: relative; }
.tp-drive { margin: 0 0 var(--space-3); padding: 12px 14px; border-radius: 16px; background: var(--color-tint-blue); }
.tp-drive__dau { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 32px; list-style: none; cursor: pointer; }
.tp-drive__dau::-webkit-details-marker { display: none; }
.tp-drive__ten { font-weight: 600; }
.tp-drive__chu { margin: 8px 0; font-size: 14px; color: var(--text-muted); }
.tp-drive__nut { display: flex; flex-wrap: wrap; gap: 8px; }
.tp-moi__ds { display: grid; gap: 2px; margin-top: 8px; padding: 6px; border-radius: 12px; background: var(--color-surface); border: 1px solid var(--color-border); }
.tp-loi-drive { color: var(--color-danger); }
.xem-van-ban h2 { margin: 24px 0 8px; font-size: 19px; }
.xem-van-ban h3 { margin: 16px 0 4px; font-size: 16px; }
.xem-van-ban p, .xem-van-ban li { font-size: 15px; line-height: 1.6; }
.xem-van-ban ul { padding-left: 20px; }
/* Cộng đồng — báo cáo & chặn (App Store 1.2, 17/11/2026) */
.cd-bao { margin-top: 6px; }
.cd-bao__mo { list-style: none; cursor: pointer; font-size: 13px; color: var(--text-muted); min-height: 32px; display: inline-flex; align-items: center; }
.cd-bao__mo::-webkit-details-marker { display: none; }
.cd-bao__form { display: grid; gap: 6px; margin: 6px 0; }
.cd-bao__chan { color: var(--color-danger); }
.cd-bao__hang { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0; }
.cd-bao__ds { margin: 4px 0; padding-left: 18px; font-size: 14px; }
.cd-dong-y { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; font-size: 14px; color: var(--text-muted); }
.cd-dong-y input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--color-primary); flex: 0 0 auto; }

/* ── Vòng quay — trang công khai /xem/vong-quay/{ma} (18/11/2026) ── */
.vq-cong { max-width: 720px; }
.vq-cong__logo { display: block; max-width: 120px; max-height: 120px; margin: 4px 0 8px; border-radius: 16px; }
.vq-cong__anh-giai { width: 40px; height: 40px; object-fit: cover; border-radius: 10px; vertical-align: middle; margin-right: 10px; }
.vq-cong__nhac { padding: 10px 14px; border-radius: 12px; background: #DCFCE7; color: #14532D; font-weight: 600; }
.vq-cong__the { margin-top: 18px; padding: 16px; border-radius: 18px; background: #fff; box-shadow: 0 6px 14px rgba(62, 58, 160, .08); }
.vq-cong__the h2 { font-size: 1.05rem; margin: 0 0 10px; }
.vq-cong__ds { list-style: none; margin: 0; padding: 0; }
.vq-cong__ds li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid #E4E3F7; }
.vq-cong__ds li:first-child { border-top: 0; }
.vq-cong__ds small { color: #5B5980; text-align: right; }
.vq-cong__ds em { color: #D97706; font-style: normal; font-weight: 600; }
.vq-cong__ma small { font-family: ui-monospace, monospace; font-size: .72rem; word-break: break-all; text-align: left; }
.vq-cong__form { display: grid; gap: 10px; }
.vq-cong__form label { display: grid; gap: 4px; font-weight: 600; }
.vq-cong__dong-y { display: flex !important; gap: 8px; align-items: flex-start; font-weight: 400 !important; font-size: .9rem; color: #5B5980; }
.vq-cong__bay { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.vq-cong__nhom { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.vq-cong__nhom div { display: grid; gap: 4px; padding: 10px; border-radius: 12px; background: #F6F6FF; }
.vq-cong__nhom strong { color: #E11D48; }

/* Vòng quay — khách tự chơi: cào thẻ / mở hộp quà (P2, 18/11/2026) */
.vq-choi { position: relative; }
.vq-choi__form { margin-top: 8px; }
.vq-choi__loi { margin-top: 10px; }
.vq-choi__goi-y { margin-top: 10px; text-align: center; }
.vq-choi__san { position: relative; margin-top: 14px; height: 220px; border-radius: 20px; overflow: hidden; background: linear-gradient(135deg, #FEF3C7, #FDE68A); touch-action: none; }
.vq-choi__ket { position: absolute; inset: 0; display: grid; place-content: center; gap: 6px; text-align: center; padding: 16px; }
.vq-choi__nhan { font-size: 1.6rem; color: #B91C1C; }
.vq-choi__phu { color: #5B5980; }
.vq-choi__anh { width: 72px; height: 72px; object-fit: cover; border-radius: 14px; justify-self: center; }
.vq-choi__phu-lop { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; }
.vq-choi__hop { position: absolute; inset: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-content: center; }
.vq-choi__than { display: block; width: 130px; height: 90px; border-radius: 10px; background: linear-gradient(90deg, #DC2626 44%, #FACC15 44%, #FACC15 56%, #DC2626 56%); }
.vq-choi__nap { display: block; width: 150px; height: 34px; margin: 0 auto -6px; border-radius: 8px; background: linear-gradient(90deg, #B91C1C 44%, #FDE047 44%, #FDE047 56%, #B91C1C 56%); transition: transform .6s ease; }
.vq-choi__hop--mo .vq-choi__nap { transform: translateY(-120px) rotate(-25deg); }
.vq-choi__hop--mo { opacity: 0; transition: opacity .5s ease .45s; pointer-events: none; }
.vq-choi__quiz fieldset { border: 1px solid #E4E3F7; border-radius: 14px; padding: 10px 12px; margin: 0; }
.vq-choi__quiz legend { font-weight: 700; padding: 0 4px; }
.vq-choi__quiz label { display: flex !important; gap: 8px; align-items: center; font-weight: 400 !important; padding: 4px 0; }
.vq-choi__ghep { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 3px; background: #7C2D12; }
.vq-choi__ghep button { border: 0; padding: 0; background-repeat: no-repeat; cursor: pointer; }
.vq-choi__ghep button.vq-choi__chon { outline: 4px solid #FACC15; outline-offset: -4px; }
.vq-choi__ghep--xong { opacity: 0; transition: opacity .6s ease .3s; pointer-events: none; }
