/* ── Công cụ giải Rubik ──────────────────────────────────────────────────
 * Thẩm mỹ bám đúng hệ "bong bóng" đang dùng ở các công cụ khác: bỏ viền,
 * dùng nền; bán kính theo cấp; màu chỉ dành cho THÔNG TIN (6 màu khối, trạng
 * thái đúng/sai), không dùng màu để trang trí.
 */
.rb-khung { --rb-bo: 18px; --rb-bo2: 12px; --rb-o: clamp(28px, 7vw, 38px); }
.rb-huong-dan { color: #5b6472; font-size: 14px; line-height: 1.6; margin: 0 0 16px; }

.rb-bang-mau { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.rb-mau {
  width: 42px; height: 42px; border-radius: 999px; border: 3px solid transparent;
  cursor: pointer; box-shadow: 0 2px 6px rgba(16,24,40,.14); transition: transform .12s, border-color .12s;
}
.rb-mau:hover { transform: scale(1.08); }
.rb-mau.dang-chon { border-color: #1f2937; transform: scale(1.12); }
.rb-mau:focus-visible { outline: 3px solid #2d5fd1; outline-offset: 3px; }

/* 🔴 Bản đầu đặt `max-width:100%` thẳng trên lưới ⇒ trình duyệt CO CÁC CỘT lại
 * thay vì cho cuộn: đo trên màn 390px ra ô rộng **16px**, quá nhỏ để trẻ bấm
 * trúng (mốc chạm tối thiểu nên ≥ 24px). Tách làm hai lớp: lớp ngoài lo cuộn,
 * lưới bên trong giữ đúng kích thước ô. */
.rb-cuon { max-width: 100%; padding: 4px 0 10px; }

/* ── Bố cục 6 mặt ────────────────────────────────────────────────────────
 * Máy tính: giữ hình CHỮ THẬP quen thuộc (khai triển khối ra mặt phẳng).
 * Điện thoại: 2 cột × 3 hàng — vừa màn 390px, không phải kéo ngang, ô to hơn.
 * 🔴 Việc xếp phải do CSS quyết, KHÔNG phải style nội tuyến trong JS — bản cũ
 * đặt `gridColumn` nội tuyến nên media query bất lực, và trên điện thoại lưới
 * bị cắt mất hẳn một mặt. */
.rb-luoi {
  display: grid;
  gap: 14px;
  grid-template-areas: ".  mU .  ." "mL mF mR mB" ".  mD .  .";
  justify-content: start;
}
.rb-mat-o[data-mat="U"] { grid-area: mU; }
.rb-mat-o[data-mat="L"] { grid-area: mL; }
.rb-mat-o[data-mat="F"] { grid-area: mF; }
.rb-mat-o[data-mat="R"] { grid-area: mR; }
.rb-mat-o[data-mat="B"] { grid-area: mB; }
.rb-mat-o[data-mat="D"] { grid-area: mD; }
.rb-mat-luoi {
  display: grid;
  grid-template-columns: repeat(3, var(--rb-o));
  grid-template-rows: repeat(3, var(--rb-o));
  gap: 3px;
}
.rb-mat-nhan {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: #8a919c; margin-bottom: 5px;
}
.rb-o {
  border: none; border-radius: 6px; cursor: pointer; padding: 0;
  box-shadow: inset 0 0 0 1px rgba(16,24,40,.10); transition: transform .08s;
}
.rb-o:hover:not(:disabled) { transform: scale(1.12); z-index: 2; }
.rb-o:focus-visible { outline: 3px solid #2d5fd1; outline-offset: 2px; z-index: 3; }
/* 🔴 05/11 (vòng 4) — Sếp: "nút ở giữa khối rubik tôi ko bấm được". Ô này
 * CHỦ Ý khoá (tâm không bao giờ đổi vị trí trên khối Rubik thật — đó chính là
 * cách xác định mặt nào là mặt nào). Nhưng khi dọn chuỗi tiếng Việt viết cứng
 * trước đó, chú thích giải thích bị mất theo, nên người dùng bấm thấy im lặng
 * và tưởng là lỗi. Nay: con trỏ "cấm" rõ ràng + tooltip qua chuỗi dịch được +
 * dấu chấm nhỏ ở góc để phân biệt bằng mắt với ô thường (không chỉ dựa cursor,
 * vì chạm trên điện thoại không có hover để thấy cursor). */
/* Ô tâm: nay TÔ ĐƯỢC (hệ màu suy từ chính nó), nhưng vẫn phải nhìn ra ngay
 * đây là ô đặc biệt — viền đậm + chấm góc. Con trỏ là bàn tay, không còn "cấm". */
.rb-tam {
  cursor: pointer;
  box-shadow: inset 0 0 0 3px rgba(16,24,40,.34);
  position: relative;
}
.rb-tam::before {
  content: '';
  position: absolute; top: 3px; right: 3px;
  width: 6px; height: 6px; border-radius: 999px;
  background: rgba(16,24,40,.4);
}

.rb-bao { font-size: 14px; font-weight: 600; margin: 0 0 16px; padding: 10px 14px; border-radius: var(--rb-bo2); }
.rb-ok  { background: #f0fdf4; color: #15803d; }
.rb-loi { background: #fff7ed; color: #b45309; }

.rb-nut-hang { display: flex; gap: 10px; flex-wrap: wrap; }
.rb-nut {
  border: none; border-radius: 999px; padding: 11px 22px; font: inherit; font-weight: 600;
  font-size: 14px; cursor: pointer; background: #eef0f4; color: #16191f; transition: filter .12s;
}
.rb-nut:hover:not(:disabled) { filter: brightness(.95); }
.rb-nut:disabled { opacity: .4; cursor: not-allowed; filter: grayscale(.3); }
.rb-nut.rb-chinh { background: #2d5fd1; color: #fff; box-shadow: 0 2px 10px -2px rgba(45,95,209,.6); }
.rb-nut.rb-nho { padding: 9px 16px; }
.rb-nut:focus-visible { outline: 3px solid #2d5fd1; outline-offset: 2px; }

.rb-dieu-khien { display: flex; gap: 8px; margin-bottom: 14px; align-items: center; }
.rb-tien { font-size: 13px; color: #6a7280; font-variant-numeric: tabular-nums; }
/* Thanh tiến độ mảnh dưới hàng nút — thấy ngay đang ở đâu trong lời giải */
.rb-thanh { height: 6px; background: var(--e-nen-chim, #f1f3f7); border-radius: 999px; overflow: hidden; margin-bottom: 16px; }
.rb-thanh > i { display: block; height: 100%; background: #2d5fd1; border-radius: 999px; width: 0; transition: width .25s ease; }
/* Nước đang làm — to, rõ, để người thật làm theo trên khối tay */
.rb-nuoc-nay { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; min-height: 30px; }
/* 🔴 [hidden] co display:none mac dinh, nhung display:flex o tren GHI DE no.
 * Phai khai lai — dung loi da gap voi .enac-the-noi. */
.rb-nuoc-nay[hidden] { display: none; }
.rb-thanh[hidden] { display: none; }
.rb-nuoc-nay .ky {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 26px; font-weight: 700;
  color: #fff; background: #2d5fd1; padding: 3px 14px; border-radius: 10px; letter-spacing: .02em;
}
.rb-nuoc-nay .mo { font-size: 13px; color: #6a7280; }

.rb-tomtat { font-size: 14px; color: #5b6472; margin-bottom: 14px; }
.rb-chang { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.rb-chang li { background: #f6f7f9; border-radius: var(--rb-bo2); padding: 13px 15px; transition: background .15s; }
.rb-chang li.dang-o-day { background: #eef4ff; box-shadow: inset 0 0 0 2px #c3d7fb; }
.rb-ten { font-weight: 700; font-size: 14px; color: #16191f; display: flex; align-items: center; gap: 8px; }
.rb-dem { font-weight: 500; font-size: 12px; color: #6a7280; background: #fff; padding: 2px 9px; border-radius: 999px; }
.rb-ychi { font-size: 13px; color: #5b6472; margin: 5px 0 9px; line-height: 1.55; }
.rb-nuoc { display: flex; flex-wrap: wrap; gap: 5px; }
.rb-nuoc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; font-weight: 600;
  background: #fff; color: #334155; padding: 4px 9px; border-radius: 7px;
}
.rb-nuoc code.xong { opacity: .4; }
.rb-nuoc code.nay { background: #2d5fd1; color: #fff; }
.rb-trong { color: #6a7280; font-size: 14px; line-height: 1.65; }

@media (max-width: 760px) {
  .rb-khung { --rb-o: 28px; }   /* cố định, không co theo màn: dưới 24px là không bấm trúng */
  .rb-nut { padding: 10px 16px; }
}


/* ── Khối Rubik 3D (CSS thuần, không three.js) ──────────────────────────────
 * Mục đích: cho người dùng HÌNH DUNG, vì ký hiệu R U F khó với trẻ. Khối hiện
 * 3 mặt cùng lúc (nhìn chéo), đổi màu theo từng bước lời giải, kéo xoay được.
 * CSS 3D thay vì WebGL: nhẹ (~0 KB thêm), chạy mượt cả trên điện thoại cũ. */
.rb-3d-boc { display: flex; flex-direction: column; align-items: center; margin-bottom: 18px; }
.rb-3d-canh {
  --s: 168px;                 /* cạnh khối */
  width: var(--s); height: var(--s);
  perspective: 620px;
  touch-action: none; cursor: grab; user-select: none;
  /* 🔴 Khối xoay 3D nhô ra NGOÀI khung 168px (translateZ + rotate), nên phải
   * chừa khoảng dưới ~48px, không thì nó đè lên dòng nhắc — ảnh chụp bắt được. */
  margin: 18px 0 48px;
}
.rb-3d-canh:active { cursor: grabbing; }
.rb-3d-khoi {
  width: 100%; height: 100%; position: relative;
  transform-style: preserve-3d;
  transform: rotateX(-26deg) rotateY(-32deg);
  transition: transform .18s ease-out;
}
.rb-3d-canh.keo .rb-3d-khoi { transition: none; }
.rb-mat {
  position: absolute; width: var(--s); height: var(--s);
  display: grid; grid-template-columns: repeat(3,1fr); grid-template-rows: repeat(3,1fr);
  gap: 3px; padding: 3px; box-sizing: border-box;
  background: #14161a; border-radius: 8px;
  backface-visibility: hidden;
}
.rb-mat > i {
  border-radius: 5px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.25);
  transition: background .25s ease;
}
/* Đặt 6 mặt. translateZ = nửa cạnh (84px). */
.rb-mat[data-mat="F"] { transform: translateZ(84px); }
.rb-mat[data-mat="B"] { transform: rotateY(180deg) translateZ(84px); }
.rb-mat[data-mat="R"] { transform: rotateY(90deg)  translateZ(84px); }
.rb-mat[data-mat="L"] { transform: rotateY(-90deg) translateZ(84px); }
.rb-mat[data-mat="U"] { transform: rotateX(90deg)  translateZ(84px); }
.rb-mat[data-mat="D"] { transform: rotateX(-90deg) translateZ(84px); }
/* Mặt đang có nước quay tới — viền sáng để nối ký hiệu với hình */
.rb-mat.sap-quay { box-shadow: 0 0 0 3px #2d5fd1, 0 0 14px rgba(45,95,209,.5); }
.rb-3d-nhac { font-size: 12px; color: #9aa1ab; margin: 0; position: relative; z-index: 1; }
@media (max-width: 760px) { .rb-3d-canh { --s: 140px; } .rb-mat[data-mat="F"]{transform:translateZ(70px)} .rb-mat[data-mat="B"]{transform:rotateY(180deg) translateZ(70px)} .rb-mat[data-mat="R"]{transform:rotateY(90deg) translateZ(70px)} .rb-mat[data-mat="L"]{transform:rotateY(-90deg) translateZ(70px)} .rb-mat[data-mat="U"]{transform:rotateX(90deg) translateZ(70px)} .rb-mat[data-mat="D"]{transform:rotateX(-90deg) translateZ(70px)} }


/* ── Nới khoảng cách: Sếp "text gần quá" ──────────────────────────────────── */
.rb-huong-dan { line-height: 1.7; margin: 2px 0 20px; }   /* dòng hướng dẫn thở hơn */
.rb-khung .calc-panel-head { margin-bottom: 18px; }
.rb-bao { line-height: 1.6; padding: 12px 16px; }
.rb-tomtat { margin: 6px 0 18px; line-height: 1.6; }
.rb-chang li { padding: 15px 17px; }
.rb-ychi { margin: 6px 0 11px; line-height: 1.6; }
.rb-nuoc-nay { margin: 4px 0 16px; }
.rb-3d-nhac { font-size: 12.5px; color: #8a919c; letter-spacing: .01em; }

.rb-phim-nhac { font-size: 12px; color: #9aa1ab; margin: 0 0 12px; }


/* ── Bảng tuỳ chọn: tốc độ phát + chế độ mù màu ──────────────────────────── */
.rb-tuychon { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin: 2px 0 18px;
              padding: 12px 14px; background: var(--e-nen-chim, #f6f7f9); border-radius: 12px; }
.rb-tc-muc { display: flex; align-items: center; gap: 10px; }
.rb-tc-nhan { font-size: 12px; font-weight: 700; color: #6a7280; text-transform: uppercase; letter-spacing: .03em; }
.rb-tc-nut-hang { display: flex; gap: 3px; background: #fff; border-radius: 999px; padding: 3px; }
.rb-tc-nut { border: none; background: transparent; padding: 6px 13px; border-radius: 999px;
             font: inherit; font-size: 12.5px; font-weight: 600; color: #6a7280; cursor: pointer; }
.rb-tc-nut.dang-chon { background: #2d5fd1; color: #fff; }
.rb-tc-nut:focus-visible { outline: 2px solid #2d5fd1; outline-offset: 2px; }
.rb-tc-cong-tac { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #334155; cursor: pointer; user-select: none; }
.rb-tc-cong-tac input { width: 16px; height: 16px; accent-color: #2d5fd1; cursor: pointer; }

/* Chế độ mù màu: chữ cái nổi lên trên mỗi ô, không chỉ dựa vào màu sắc */
.rb-mumau-bat .rb-o::after, .rb-mumau-bat .rb-mat > i::after { display: flex; }
.rb-o { position: relative; }
.rb-o::after {
  content: attr(data-chu); display: none; position: absolute; inset: 0;
  align-items: center; justify-content: center; font-size: 10px; font-weight: 800;
  color: rgba(0,0,0,.55); pointer-events: none;
}
.rb-mat > i { position: relative; }
.rb-mat > i::after {
  content: attr(data-chu); display: none; position: absolute; inset: 0;
  align-items: center; justify-content: center; font-size: 13px; font-weight: 800;
  color: rgba(0,0,0,.5); pointer-events: none;
}


/* ── Nới lề: Sếp "text sát viền bên trái quá, cảm giác ngột ngạt" ────────── */
.rb-khung, .rb-phai { padding-left: 26px; padding-right: 26px; }
.rb-chang li { padding-left: 20px; padding-right: 18px; }
.rb-chang .rb-ychi, .rb-chang h4 { padding-left: 2px; }
@media (max-width: 760px) {
  .rb-khung, .rb-phai { padding-left: 16px; padding-right: 16px; }
}

/* ── Khối "phương pháp chuyên gia" — làm nổi bật bằng nền, không bằng viền ── */
.rb-chuyengia { display: grid; gap: 14px; margin: 6px 0 4px; }
.rb-cg-the {
  background: #f5f7fa; border-radius: 16px; padding: 18px 20px;
}
.rb-cg-the h3 { margin: 0 0 4px; font-size: 16px; }
.rb-cg-the .rb-cg-ai { font-size: 12.5px; color: #667085; margin: 0 0 8px; font-weight: 600; }
.rb-cg-the p { margin: 0; line-height: 1.7; }
.rb-cg-noi {
  background: linear-gradient(180deg,#eef3ff 0%,#f7f9ff 100%);
  box-shadow: inset 0 0 0 2px rgba(45,95,209,.22);
}
@media (min-width: 900px) { .rb-chuyengia { grid-template-columns: 1fr 1fr; } .rb-cg-rong { grid-column: 1 / -1; } }

.rb-cg-section { margin: 8px 0 4px; }
.rb-cg-mo { line-height: 1.75; margin: 2px 0 20px; max-width: 72ch; }
.rb-cg-nguon { font-size: 12.5px; color: #78808d; line-height: 1.7; margin: 18px 0 0; }
.rb-cg-the em { font-style: italic; }


/* ── Chuẩn chạm 44px trên điện thoại (WCAG 2.5.5 mức nâng cao) ────────────
 * Đo thật trên màn 390px trước khi sửa: bảng màu 42px · nút điều khiển cao
 * 40px · nút tuỳ chọn 31px — đều dưới chuẩn, ngón tay trẻ con bấm trượt.
 * 🔴 KHÔNG nâng 54 ô tô màu: lưới khai triển phải vừa bề ngang 390px, nâng
 * lên 44px là tràn màn hình. 28px vẫn trên mức tối thiểu 24px của WCAG, và
 * đã có thể cuộn ngang. Đây là đánh đổi có ý thức, không phải bỏ sót. */
@media (max-width: 760px) {
  /* Sáu mặt xếp 2 cột — vừa màn, không kéo ngang, ô to hơn hẳn */
  .rb-luoi {
    /* Xếp MẶT ĐỐI NHAU cạnh nhau: trên|dưới, trước|sau, trái|phải.
     * Người cầm khối chỉ cần lật một nhịp là thấy mặt kia — dễ tô, dễ nhớ,
     * và vô tình dạy luôn cấu trúc khối cho trẻ. */
    grid-template-areas: "mU mD" "mF mB" "mL mR";
    gap: 16px 12px;
    justify-content: center;
  }
  .rb-mat-luoi { --rb-o: 44px; }
  .rb-mat-nhan { font-size: 12px; }
  /* Bớt khoảng trống thừa: trên màn hẹp mỗi khoảng trống là một lần phải cuộn */
  .rb-huong-dan { margin: 0 0 14px; line-height: 1.6; }
  .rb-khung .calc-panel-head { margin-bottom: 10px; }
  .rb-bang-mau { margin-bottom: 14px; }
  .rb-cuon { padding-top: 0; }

  /* Bảng màu PHẢI gọn một hàng: 6 ô chia đều, không bao giờ rớt dòng */
  .rb-bang-mau { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; flex-wrap: nowrap; }
  .rb-mau { width: 100%; height: 48px; box-sizing: border-box; }

  /* Ba nút chính chia đều một hàng thay vì rớt 2+1 */
  .rb-nut-hang { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .rb-nut-hang > :last-child { grid-column: 1 / -1; }
  .rb-nut-hang button { width: 100%; }

  .rb-mau-cu { width: 44px; height: 44px; }
  .rb-dieu-khien button { min-height: 44px; min-width: 44px; }
  .rb-tc-nut { min-height: 40px; padding: 9px 14px; }
  .rb-tc-cong-tac { min-height: 44px; }
  .rb-nut-hang button, #rb-giai, #rb-xao, #rb-datlai { min-height: 44px; }
}


/* 🔴 Ảnh chụp bắt được: ô màu TRẮNG gần như vô hình trên nền trắng của thẻ —
 * cả mặt trên trông như lưới rỗng chưa tô. Viền đậm hơn cho riêng ô trắng. */
.rb-o { border: 1px solid rgba(16,24,40,.14); }
.rb-o[data-chu="W"] { box-shadow: inset 0 0 0 1px rgba(16,24,40,.22); }


/* ── Thu gọn khối chữ dài ─────────────────────────────────────────────────
 * Nhãn là HAI span trong HTML, đổi hiện/ẩn bằng CSS theo `aria-expanded`:
 * dịch được như mọi chữ khác, và nút vẫn đọc đúng khi JS chưa kịp chạy. */
.rb-gon-nut { display: inline-flex; align-items: center; gap: 7px; }
.rb-gon-nut .rb-gon-dong { display: none; }
.rb-gon-nut[aria-expanded="true"] .rb-gon-mo { display: none; }
.rb-gon-nut[aria-expanded="true"] .rb-gon-dong { display: inline; }
.rb-gon-nut[aria-expanded="true"] .toggle-icon { transform: rotate(180deg); }
.rb-gon-nut .toggle-icon { transition: transform .2s ease; }

/* ---------- Danh sách trong khối hướng dẫn ----------
   🔴 Reset `*{padding:0}` của site XOÁ thụt lề mặc định của <ol>/<ul>, nên số
   thứ tự và dấu chấm đầu dòng bị đẩy ra ngoài hộp và KHÔNG AI THẤY; thêm
   `li{margin:0}` nữa là cả danh sách dính thành một khối chữ liền. Các công cụ
   cũ bù bằng `style="padding-left:1.5rem"` viết tay trên TỪNG thẻ <ol>; công cụ
   mới viết <ol> trơn nên dính lỗi. Khai một lần ở đây cho cả trang.
   Đo thật 06/11/2026: trước khi vá, `padding-left` = 0px, `li margin-bottom` = 0px. */
.prose-guide ol,
.prose-guide ul { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.prose-guide li { margin-bottom: 0.55rem; line-height: 1.75; }
.prose-guide li:last-child { margin-bottom: 0; }
.prose-guide li::marker { color: var(--text-muted); font-weight: 600; }

/* ══════════════ v2 — 24/11/2026 ══════════════ */
/* Khối 3D: 54 sticker rời để xoay THẬT từng lớp (thay 6 tấm .rb-mat cũ). */
.rb-3d-khoi > .rb-mat { display: none; }
.rb-st, .rb-chan {
  position: absolute; left: 50%; top: 50%; box-sizing: border-box;
}
.rb-st {
  width: calc(var(--s) / 3); height: calc(var(--s) / 3);
  margin: calc(var(--s) / -6) 0 0 calc(var(--s) / -6);
  background: #14161a; backface-visibility: hidden;
}
.rb-st::before {
  content: ''; position: absolute; inset: 2px; border-radius: 5px;
  background: var(--m, #444); box-shadow: inset 0 0 0 1px rgba(0,0,0,.25);
}
.rb-st::after {
  content: attr(data-chu); display: none; position: absolute; inset: 0;
  align-items: center; justify-content: center; font-size: 13px; font-weight: 800;
  color: rgba(0,0,0,.5); pointer-events: none;
}
.rb-mumau-bat .rb-st::after { display: flex; }
.rb-st.sap-quay::before { box-shadow: inset 0 0 0 3px #2d5fd1; }
.rb-truc { position: absolute; inset: 0; transform-style: preserve-3d; }
.rb-chan {
  width: var(--s); height: var(--s);
  margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  background: #14161a;
}
.rb-3d-canh { --s: 186px; margin-top: 26px; margin-bottom: 76px; }
@media (max-width: 760px) { .rb-3d-canh { --s: 150px; } }

/* Dòng "cầm khối thế nào" + ghi chú giữ nguyên lưới */
.rb-cam {
  margin: 0 0 6px; padding: 10px 12px; border-radius: 10px;
  background: #fff8e6; color: #6b4e00; font-size: 14px; line-height: 1.6;
  box-shadow: inset 0 0 0 1px #f2dfa6;
}
.rb-cam[hidden], .rb-giu[hidden] { display: none; }
.rb-giu { margin: 12px 0 0; font-size: 13.5px; line-height: 1.6; color: #15603a; }
.rb-chip {
  display: inline-block; width: 1.05em; height: 1.05em; border-radius: 4px;
  vertical-align: -0.16em; box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.35);
  position: relative; font-style: normal;
}
.rb-mumau-bat .rb-chip::after {
  content: attr(data-chu); position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center; font-size: .62em; font-weight: 800; color: rgba(0,0,0,.6);
}

/* Thẻ NƯỚC TIẾP THEO */
.rb-nuoc-nay {
  display: block; margin: 0 0 14px; padding: 12px 14px; min-height: 0;
  border-radius: 12px; background: #f5f8ff; box-shadow: inset 0 0 0 1.5px #c3d7fb;
}
.rb-nn-dau {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px;
  font-size: 12.5px; color: #4b5563; margin-bottom: 8px;
}
.rb-nn-chang { font-weight: 600; color: #1f3f8f; }
.rb-nn-dem { font-variant-numeric: tabular-nums; font-weight: 600; }
.rb-nn-than { display: flex; align-items: center; gap: 14px; }
.rb-nuoc-nay .rb-nn-than .ky {
  flex: none; min-width: 64px; text-align: center; padding: 6px 10px;
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 34px; font-weight: 700; line-height: 1.1;
  color: #fff; background: #2d5fd1; border-radius: 10px;
}
.rb-nn-loi { font-size: 15.5px; line-height: 1.5; color: #1a1d23; min-width: 0; }
.rb-nn-mat b { font-weight: 700; }
.rb-nn-goc { font-weight: 600; }
.rb-nn-mui { font-size: 1.25em; color: #2d5fd1; }
.rb-nn-ghichu { margin: 8px 0 0; font-size: 12px; line-height: 1.5; color: #6a7280; }
.rb-nn-xong { background: #f0fdf4; box-shadow: inset 0 0 0 1.5px #b7e4c7; }
.rb-nn-het { font-size: 16px; font-weight: 700; color: #15803d; }

/* Nước trong danh sách bấm được để nhảy tới */
.rb-nuoc code[data-b] { cursor: pointer; }
.rb-nuoc code[data-b]:hover { box-shadow: inset 0 0 0 1.5px #2d5fd1; }
#rb-hoantac:disabled { opacity: .45; cursor: not-allowed; }

/* Có sẵn trên live (đo 24/11, 390px): ở /de/ và /ru/ nút tốc độ thứ ba thò ra
   ngoài màn làm cả trang tràn ngang — nhãn dài hơn tiếng Anh. Cho phép xuống dòng. */
.rb-tuychon, .rb-tc-muc, .rb-tc-nut-hang { flex-wrap: wrap; }
.rb-tc-muc { min-width: 0; }


/* 🔴 Kéo để tô (24/11): không có touch-action:none thì trên điện thoại cử chỉ
   rê bị trình duyệt nuốt làm cuộn trang, tô được đúng một ô rồi thôi. */
.rb-o { touch-action: none; }
