/* ============================================================
   Máy học mới (hocmoi.js) — theo bản vẽ đã duyệt 28/11/2026:
   nền kem, thẻ trắng nổi, xanh lá đậm, bạc hà, đào, núi giấy cắt.
   ============================================================ */
:root {
  --hm-the: #ffffff;
  --hm-chu: #1f2328;
  --hm-mo: #4a5158;
  --hm-xanh: #2a7359;
  --hm-xanh-dam: #1d4d3c;
  --hm-bac-ha: #e3f2ea;
  --hm-bac-ha-2: #bfe0d0;
  --hm-dao: #fbe3cf;
  --hm-cam: #f2a172;
  --hm-cat: #efe8dc;
  --hm-vien: #d9cfc0;
  --hm-do: #c8452f;
  --hm-bong: 0 6px 20px rgba(29, 77, 60, .16);
}
:root[data-theme="toi"], :root[data-theme="dark"] {
  --hm-the: #1f252c;
  --hm-chu: #ece8e1;
  --hm-mo: #b4bcc4;
  --hm-xanh: #5fbf9f;
  --hm-xanh-dam: #9fdcc3;
  --hm-bac-ha: rgba(95, 191, 159, .16);
  --hm-bac-ha-2: rgba(95, 191, 159, .32);
  --hm-dao: rgba(242, 161, 114, .18);
  --hm-cat: #2a3038;
  --hm-vien: #3a434d;
  --hm-do: #e8735e;
  --hm-bong: 0 6px 20px rgba(0, 0, 0, .40);
}

/* ---------- khung chung */
[hidden] { display: none !important; }
.hm-anh-dau, .hm-nui { margin: 0 -16px; position: relative; }
.hm-nui svg { display: block; }
.hm-anh-dau > .hm-nui { margin: 0; }
.hm-anh-dau { padding-top: env(safe-area-inset-top, 0px); background: #fbe3cf; }
.hm-anh-dau .chu {
  position: absolute; left: 20px; top: calc(env(safe-area-inset-top, 0px) + 18px);
  color: #1f2328; display: flex; flex-direction: column; gap: 2px; max-width: 70%;
}
.hm-anh-dau .chu.hep { max-width: 64%; }
.hm-the label { color: var(--hm-chu); }
.hm-anh-dau h1 { margin: 0; font-size: 32px; font-weight: 700; letter-spacing: -.01em; color: #1f2328; }
.hm-anh-dau .ngay { font-size: 16px; font-weight: 600; color: #1f2328; line-height: 1.4; }
.hm-anh-dau .hm-nhan { color: #1d4d3c; }
.hm-anh-dau .hm-tron.goc { position: absolute; right: 16px; top: calc(env(safe-area-inset-top, 0px) + 16px); }

.hm-than { display: flex; flex-direction: column; gap: 12px; padding: 12px 0 24px; position: relative; color: var(--hm-chu); }
.hm-than.len { margin-top: -40px; }
.hm-nui + .hm-than { margin-top: -28px; }

.hm-the {
  background: var(--hm-the); border-radius: 24px; padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
  border: 1.5px solid var(--hm-vien); color: var(--hm-chu);
}
.hm-the.noi { border: 0; box-shadow: var(--hm-bong); }
.hm-the.cao { min-height: 300px; justify-content: space-between; box-shadow: var(--hm-bong); border: 0; }
.hm-the.giua { align-items: center; text-align: center; }
.hm-the.dao { background: var(--hm-dao); border-color: transparent; }
.hm-the .hang, .hm-the .hang-dau { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

.hm-nhan { font-size: 14px; font-weight: 700; letter-spacing: .06em; color: var(--hm-xanh); text-transform: uppercase; }
.hm-nhan.trai { align-self: flex-start; }
.hm-nhan.dam { color: var(--hm-xanh-dam); }
.hm-goi-y { font-size: 16px; color: var(--hm-mo); line-height: 1.45; }
.hm-goi-y.dam { color: var(--hm-chu); font-weight: 600; }
.hm-chu-nho { font-size: 15px; color: var(--hm-mo); text-align: center; line-height: 1.45; }
.hm-chu-nho.trai { text-align: left; }
.hm-the .dam, .hm-than .dam { font-weight: 700; font-size: 17px; }
.hm-de { font-size: 24px; font-weight: 700; line-height: 1.35; color: var(--hm-chu); }
.hm-de.nho { font-size: 20px; }
.hm-voi {
  align-self: flex-start; display: inline-block; margin-top: 6px;
  background: var(--hm-dao); color: var(--hm-chu); border-radius: 10px; padding: 3px 10px;
  font-size: 15px; font-weight: 600;
}
.hm-voi.lon { font-size: 16px; }
.hm-chu-y { background: var(--hm-dao); border-radius: 14px; padding: 10px 12px; font-size: 15px; line-height: 1.45; font-weight: 500; color: var(--hm-chu); }
.hm-chu-y.xanh { background: var(--hm-bac-ha); }

/* chữ Hán, pinyin, nghĩa trong máy mới */
.hm-than .hz { color: var(--hm-chu); font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif; }
.hm-than .py { color: var(--hm-mo); }
.hm-than .vi { color: var(--hm-chu); }

/* ---------- nút */
.hm-nut {
  width: 100%; min-height: 58px; border-radius: 18px; padding: 12px 18px;
  font-family: inherit; font-size: 18px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  border: 2px solid var(--hm-xanh-dam); background: var(--hm-the); color: var(--hm-xanh-dam);
  transition: transform .08s ease;
}
.hm-nut:active { transform: scale(.985); }
.hm-nut.chinh { background: #1d4d3c; border-color: #1d4d3c; color: #ffffff; }
.hm-nut.chinh.do { background: var(--hm-do); border-color: var(--hm-do); }
.hm-nut.nhat { background: var(--hm-bac-ha); border-color: transparent; color: var(--hm-xanh-dam); }
.hm-nut.to { min-height: 62px; font-size: 19px; }
:root[data-theme="toi"] .hm-nut.chinh { background: #5fbf9f; border-color: #5fbf9f; color: #0d1512; }
.hm-hai-nut { display: flex; gap: 10px; align-items: center; }
.hm-hai-nut > * { flex: 1; }
.hm-hai-nut > .hm-tron { flex: 0 0 auto; }
.hm-hai-nut:empty { display: none; }

.hm-tron {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border: 0; background: var(--hm-the); color: var(--hm-chu);
}
.hm-tron.vien { border: 1.5px solid var(--hm-vien); }
.hm-tron.trang { background: #ffffff; color: #1d4d3c; box-shadow: 0 2px 8px rgba(29,77,60,.14); }
.hm-tron.bac-ha { background: var(--hm-bac-ha); color: var(--hm-xanh-dam); }
.hm-tron.lon { width: 104px; height: 104px; background: var(--hm-bac-ha); color: var(--hm-xanh-dam); box-shadow: 0 0 0 8px var(--hm-dao); margin: 8px 0; }

.hm-lien-ket {
  background: none; border: 0; padding: 10px; min-height: 44px; cursor: pointer;
  font-family: inherit; font-size: 16px; font-weight: 600; color: var(--hm-xanh-dam);
  text-decoration: underline; text-underline-offset: 4px;
}

/* nút mic tròn lớn */
.hm-khoi-mic { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hm-mic {
  width: 116px; height: 116px; border-radius: 50%; cursor: pointer;
  border: 0; background: #2a7359; color: #ffffff;
  box-shadow: 0 0 0 8px var(--hm-bac-ha);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font-family: inherit; font-size: 15px; font-weight: 700; margin: 8px 0;
}
.hm-mic span { line-height: 1.15; max-width: 92px; text-align: center; }
.hm-mic.dang-ghi { background: var(--hm-do); box-shadow: 0 0 0 8px rgba(200, 69, 47, .2); animation: hm-dap 1s ease-in-out infinite; }
.hm-mic.nho, .hm-mic.dai { width: 96px; height: 96px; font-size: 14px; }
.hm-mic:disabled { opacity: .55; }
@keyframes hm-dap { 50% { box-shadow: 0 0 0 14px rgba(200, 69, 47, .12); } }
.hm-trang-thai { font-size: 15px; color: var(--hm-mo); text-align: center; min-height: 0; }
.hm-trang-thai:empty { display: none; }
.hm-hai-nut .hm-khoi-mic { flex: 0 0 auto; }
.hm-hang-mic { display: flex; align-items: center; justify-content: center; gap: 18px; }

.hm-nghe-ra { border-radius: 14px; padding: 10px 12px; background: var(--hm-cat); }
.hm-nghe-ra.tot { background: var(--hm-bac-ha); }
.hm-nghe-ra.tam { background: var(--hm-dao); }
.hm-nghe-ra .nhan { font-size: 14px; font-weight: 700; color: var(--hm-chu); }
.hm-nghe-ra .hz { font-size: 20px; }

.hm-toast {
  position: fixed; left: 50%; bottom: calc(var(--tab-cao) + 24px); transform: translateX(-50%);
  background: #1d4d3c; color: #fff; padding: 12px 18px; border-radius: 14px; z-index: 60;
  font-size: 16px; font-weight: 600; max-width: 90vw; text-align: center; box-shadow: var(--hm-bong);
}

/* ---------- đầu phiên: thoát, chặng, thanh 5 vạch */
.hm-dau-phien {
  display: flex; align-items: center; gap: 12px;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 0 10px; color: var(--hm-chu);
}
.hm-dau-phien .giua { flex: 1; min-width: 0; }
.hm-dau-phien h1 { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.25; }
.hm-dau-phien .phut { font-size: 15px; font-weight: 600; color: var(--hm-mo); white-space: nowrap; }
.hm-vach { display: grid; gap: 6px; align-items: center; margin-bottom: 12px; }
.hm-vach > div { height: 8px; border-radius: 4px; }
.hm-vach .xong { background: var(--hm-xanh-dam); }
.hm-vach .chua { background: var(--hm-vien); }
.hm-vach .dang { height: 14px; border-radius: 7px; border: 2px solid var(--hm-xanh-dam); background: var(--hm-the); overflow: hidden; }
.hm-vach .dang > div { height: 100%; background: var(--hm-xanh); border-radius: 5px; transition: width .3s ease; }

/* ---------- câu */
.hm-cau { display: flex; gap: 10px; align-items: center; background: var(--hm-bac-ha); border-radius: 16px; padding: 12px; }
.hm-cau .noi { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hm-cau .hz { font-size: 24px; line-height: 1.35; }
.hm-cau.to .hz { font-size: 30px; }
.hm-cau .py { font-size: 16px; }
.hm-cau .vi { font-size: 15px; color: var(--hm-mo); }
.hm-vi-nho { font-size: 16px; color: var(--hm-mo); }
.hm-cau-to { display: flex; flex-direction: column; gap: 4px; text-align: center; }
.hm-cau-to .hz { font-size: 32px; line-height: 1.35; }
.hm-cau-to .py { font-size: 18px; }
.hm-cau-to .vi { font-size: 16px; color: var(--hm-mo); }

/* nghe lại */
.hm-nghe-cuon { display: flex; flex-direction: column; gap: 6px; max-height: 46vh; overflow-y: auto; }
.hm-nghe-dong { padding: 8px 10px; border-radius: 12px; border-left: 4px solid transparent; }
.hm-nghe-dong .hz { font-size: 20px; }
.hm-nghe-dong .vi { font-size: 14px; color: var(--hm-mo); }
.hm-nghe-dong.dang { background: var(--hm-bac-ha); border-left-color: var(--hm-xanh); }

/* thẻ lật: hai lớp giấy chồng phía sau */
.hm-chong { position: relative; padding-bottom: 12px; }
.hm-chong .l1, .hm-chong .l2 { position: absolute; left: 14px; right: 14px; bottom: 0; height: 40px; border-radius: 24px; background: var(--hm-cat); }
.hm-chong .l2 { left: 7px; right: 7px; bottom: 6px; background: var(--hm-bac-ha-2); }
.hm-the-lat {
  position: relative; background: var(--hm-the); border-radius: 24px; padding: 18px 16px;
  min-height: 330px; box-shadow: var(--hm-bong); display: flex; flex-direction: column; gap: 14px; justify-content: space-between;
}
.hm-the-lat .hang-dau { display: flex; justify-content: space-between; align-items: center; }
.hm-the-nho { font-size: 14px; font-weight: 600; color: var(--hm-mo); background: var(--hm-cat); border-radius: 10px; padding: 2px 10px; }
.hm-ba-nut { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hm-danh-gia {
  min-height: 64px; border-radius: 16px; cursor: pointer; font-family: inherit; font-size: 17px; font-weight: 700;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: 2px solid transparent;
}
.hm-danh-gia.nho { background: #2a7359; color: #fff; }
.hm-danh-gia.lomo { background: #f2a172; color: #1f2328; }
.hm-danh-gia.quen { background: var(--hm-the); color: var(--hm-chu); border-color: var(--hm-chu); }

/* ---------- chặng 3: khung + 4 bước */
.hm-khung { background: var(--hm-bac-ha); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.hm-khung .hang { justify-content: flex-start; gap: 4px 12px; }
.hm-khung .hz { font-size: 28px; font-weight: 600; }
.hm-khung .py { font-size: 17px; }
.hm-khung .vi { font-size: 17px; font-weight: 600; }
.hm-khung .khi { font-size: 15px; color: var(--hm-mo); }
.hm-day-buoc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; position: relative; }
.hm-day-buoc::before { content: ""; position: absolute; left: 12%; right: 12%; top: 21px; height: 3px; background: var(--hm-bac-ha-2); }
.hm-buoc { background: none; border: 0; cursor: pointer; font-family: inherit; display: flex; flex-direction: column; align-items: center; gap: 4px; position: relative; padding: 0; min-height: 44px; }
.hm-buoc .tron {
  width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--hm-the); border: 2.5px solid #7fbfa5; color: var(--hm-xanh-dam); font-size: 18px; font-weight: 700;
}
.hm-buoc.xong .tron { background: #c8452f; border-color: #c8452f; color: #fff; }
.hm-buoc.dang .tron { background: #2a7359; border-color: #2a7359; color: #fff; box-shadow: 0 0 0 6px var(--hm-bac-ha-2); }
.hm-buoc .ten { font-size: 14px; font-weight: 600; color: var(--hm-chu); }
.hm-buoc.dang .ten { font-weight: 700; }
.hm-tu-to { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; padding: 8px 0; }
.hm-tu-to .hz { font-size: 64px; line-height: 1.2; font-weight: 500; }
.hm-tu-to .py { font-size: 22px; }
.hm-tu-to .vi { font-size: 18px; font-weight: 600; }
.hm-tu-to .loai { font-size: 14px; color: var(--hm-mo); background: var(--hm-cat); border-radius: 8px; padding: 1px 8px; margin-top: 4px; }
.hm-net-dut { border: 2px dashed var(--hm-vien); border-radius: 16px; padding: 14px; width: 100%; color: var(--hm-mo); font-size: 15px; }

/* ---------- hội thoại */
.hm-hoi-thoai { display: flex; flex-direction: column; gap: 10px; }
.hm-luot { display: flex; flex-direction: column; gap: 3px; max-width: 88%; }
.hm-luot.A { align-self: flex-end; align-items: flex-end; }
.hm-luot .vai { font-size: 13px; font-weight: 700; color: var(--hm-mo); padding: 0 6px; }
.hm-luot .bong { border-radius: 18px; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.hm-luot.B .bong { background: var(--hm-the); border: 1.5px solid var(--hm-vien); border-bottom-left-radius: 6px; }
.hm-luot.A .bong { background: var(--hm-bac-ha); border-bottom-right-radius: 6px; }
.hm-luot .hz { font-size: 22px; line-height: 1.35; }
.hm-luot .py { font-size: 15px; }
.hm-luot .vi { font-size: 14px; color: var(--hm-mo); }
.hm-luot .vi-a { font-size: 18px; font-weight: 700; color: var(--hm-chu); }
.hm-luot .nho { font-size: 13px; color: var(--hm-mo); }

/* ---------- kết buổi */
.hm-so-to-hang { display: flex; align-items: center; gap: 14px; }
.hm-so-to-hang .so { font-size: 52px; font-weight: 700; color: var(--hm-xanh-dam); line-height: 1; }
.hm-ba-o { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hm-ba-o > div { border-radius: 16px; padding: 10px; text-align: center; font-weight: 600; font-size: 15px; }
.hm-ba-o .so { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 26px; font-weight: 700; }
.hm-ba-o .nho { background: #2a7359; color: #fff; }
.hm-ba-o .lomo { background: #f2a172; color: #1f2328; }
.hm-ba-o .quen { background: var(--hm-the); color: var(--hm-chu); border: 2px solid var(--hm-chu); }
.hm-tuan { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.hm-tuan .o { width: 38px; height: 38px; margin: 0 auto; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.hm-tuan .o.hoc { background: #2a7359; color: #fff; }
.hm-tuan .o.nghi { background: var(--hm-cat); color: var(--hm-mo); }
.hm-tuan .o.toi { background: var(--hm-the); border: 2px dashed var(--hm-vien); }
.hm-tuan .o.homnay { outline: 3px solid var(--hm-cam); outline-offset: 2px; }
.hm-tuan .nhan { font-size: 14px; font-weight: 600; margin-top: 4px; color: var(--hm-chu); }
.hm-moc { position: relative; height: 40px; margin-top: 4px; }
.hm-moc .nen, .hm-moc .day { position: absolute; left: 0; top: 18px; height: 8px; border-radius: 4px; }
.hm-moc .nen { right: 0; background: var(--hm-cat); }
.hm-moc .day { background: #2a7359; }
.hm-moc .co { position: absolute; left: calc(5 / 7 * 100% - 2px); top: 0; }
.hm-moc .chu { position: absolute; left: calc(5 / 7 * 100% + 18px); top: 8px; font-size: 13px; font-weight: 600; color: var(--hm-mo); white-space: nowrap; }
.hm-hoc-them { display: flex; flex-direction: column; gap: 8px; }
.hm-hoc-them .luoi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hm-hoc-them button {
  min-height: 76px; border-radius: 18px; border: 0; cursor: pointer; font-family: inherit;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px 4px;
  color: #1f2328;
}
.hm-hoc-them b { font-size: 15px; line-height: 1.25; }
.hm-hoc-them span { font-size: 13px; font-weight: 500; }
.hm-hoc-them .bac-ha { background: #e3f2ea; }
.hm-hoc-them .dao { background: #fbe3cf; }
.hm-hoc-them .be { background: #efe8dc; }
.hm-hoa-giay { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hm-hoa-giay i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: hm-roi linear infinite; }
@keyframes hm-roi { to { transform: translateY(260px) rotate(540deg); } }
.hm-co { transform-origin: 250px 50%; animation: hm-phat 2.4s ease-in-out infinite; }
@keyframes hm-phat { 50% { transform: skewY(-8deg); } }

/* ---------- Hôm nay */
.hm-dau-nac { display: flex; align-items: center; gap: 12px; }
.hm-dau-nac .dau-do {
  width: 52px; height: 52px; border-radius: 14px; background: #c8452f; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; flex: 0 0 auto;
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}
.hm-dau-nac .ten-nac { font-size: 20px; font-weight: 700; line-height: 1.3; }
.hm-ds-chang { display: flex; flex-direction: column; gap: 6px; }
.hm-dong-chang { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--hm-cat); }
.hm-dong-chang:last-child { border-bottom: 0; }
.hm-dong-chang .so { width: 30px; height: 30px; border-radius: 50%; background: var(--hm-bac-ha); color: var(--hm-xanh-dam); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; flex: 0 0 auto; }
.hm-dong-chang .ten { flex: 1; font-size: 16px; font-weight: 500; line-height: 1.35; }
.hm-dong-chang .phut { font-size: 14px; color: var(--hm-mo); white-space: nowrap; }
.hm-hai-o { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hm-the.o { flex-direction: row; align-items: center; gap: 10px; padding: 12px; }
.hm-the.o svg { flex: 0 0 auto; }
.hm-the.o .so { font-size: 22px; font-weight: 700; line-height: 1.1; }
.hm-the.o .nhan { font-size: 14px; color: var(--hm-mo); line-height: 1.3; }

/* ---------- Lộ trình */
.hm-dau-trang { padding: calc(env(safe-area-inset-top, 0px) + 20px) 4px 10px; color: var(--hm-chu); }
.hm-dau-trang h1 { margin: 0; font-size: 30px; font-weight: 700; }
.hm-lo-trinh { position: relative; height: 1076px; margin: 0 auto 16px; max-width: 420px; color: var(--hm-chu); }
.hm-lo-trinh .nen { position: absolute; inset: 0; }
.hm-lo-trinh .nen svg { display: block; }
.hm-lo-trinh .dinh { position: absolute; left: 16px; top: 12px; width: 60%; color: #1f2328; }
.hm-co-dinh { transform-origin: 246px 23px; animation: hm-phat 2.4s ease-in-out infinite; }
.hm-lo-trinh .dinh .dam { font-size: 17px; font-weight: 700; }
.hm-lo-trinh .dinh .mo { font-size: 14px; font-weight: 500; line-height: 1.4; }
.hm-nut-nac {
  position: absolute; border-radius: 50%; cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700;
  background: var(--hm-the); border: 2.5px solid #7fbfa5; color: var(--hm-xanh-dam);
}
.hm-nut-nac.xong { background: #c8452f; border-color: #c8452f; color: #fff; }
.hm-nut-nac.dang { background: #2a7359; border-color: #2a7359; color: #fff; font-size: 30px; box-shadow: 0 0 0 7px #bfe0d0; }
.hm-nhan-nac { position: absolute; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.hm-nhan-nac .dam { font-size: 16px; font-weight: 700; line-height: 1.3; }
.hm-nhan-nac .mo { font-size: 15px; color: var(--hm-mo); line-height: 1.35; }
.hm-nhan-nac .nhan-dang { font-size: 14px; font-weight: 700; color: #fff; background: #2a7359; border-radius: 10px; padding: 3px 9px; }
.hm-dong-buoi {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 8px 10px;
  border: 1.5px solid var(--hm-vien); border-radius: 14px; background: var(--hm-the); color: var(--hm-chu);
  font-family: inherit; font-size: 16px; text-align: left; cursor: pointer;
}
.hm-dong-buoi .so { width: 32px; height: 32px; border-radius: 50%; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; background: var(--hm-bac-ha); color: var(--hm-xanh-dam); font-weight: 700; }
.hm-dong-buoi.xong .so { background: #c8452f; color: #fff; }
.hm-dong-buoi .ten { flex: 1; font-weight: 600; line-height: 1.35; }
.hm-dong-buoi .mo { font-size: 14px; color: var(--hm-mo); }

/* ---------- Sổ câu */
.hm-o-tim {
  width: 100%; height: 50px; border: 1.5px solid var(--hm-vien); border-radius: 14px;
  background: var(--hm-the); color: var(--hm-chu); padding: 0 14px; font-size: 17px; font-family: inherit;
}
.hm-o-tim:focus { outline: 3px solid var(--hm-bac-ha-2); border-color: var(--hm-xanh); }
.hm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hm-chips button {
  min-height: 44px; padding: 0 14px; border-radius: 22px; border: 1.5px solid var(--hm-vien);
  background: var(--hm-the); color: var(--hm-chu); font-size: 16px; font-weight: 500; font-family: inherit; cursor: pointer;
}
.hm-chips button[aria-pressed="true"] { background: #2a7359; border: 2px solid #2a7359; color: #fff; font-weight: 700; }
.hm-ds-socau { display: flex; flex-direction: column; gap: 10px; }
.hm-the-socau { background: var(--hm-the); border: 1.5px solid var(--hm-vien); border-radius: 18px; padding: 14px; display: flex; gap: 10px; align-items: center; }
.hm-the-socau .noi { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hm-the-socau .vi { font-size: 16px; font-weight: 600; }
.hm-the-socau .hz { font-size: 25px; font-weight: 500; line-height: 1.35; }
.hm-the-socau .py { font-size: 16px; }
.hm-the-socau .ghi { font-size: 14px; color: var(--hm-mo); }
.hm-the-socau .cot { display: flex; flex-direction: column; gap: 8px; }
.hm-the-socau .hm-tron { width: 46px; height: 46px; }

/* ---------- tab Bài cũ */
.hm-loi-cu { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0 4px; }
.hm-loi-cu .nut { min-height: 50px; padding: 10px; font-size: 16px; }
