/* v1.7.43 (BS95) – dải thành công một phần (C3) + các mảnh dùng chung của đợt BS95 */
.mp { display: flex; gap: 10px; align-items: flex-start; background: var(--surface, #fff); border: 1px solid var(--line); border-left: 4px solid var(--amber, #d97706); border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; text-align: left; }
.mp-ok { border-left-color: var(--good, #16a34a); }
.mp-loi { border-left-color: var(--crit, #dc2626); }
.mp-i { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--amber, #d97706); }
.mp-ok .mp-i { color: var(--good, #16a34a); }
.mp-loi .mp-i { color: var(--crit, #dc2626); }
.mp-b { flex: 1; min-width: 0; }
.mp-t { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink); }
.mp-d { margin-top: 6px; font-size: 14px; }
.mp-d summary { cursor: pointer; color: var(--accent); min-height: 32px; display: inline-flex; align-items: center; }
.mp-d ul { margin: 4px 0 0; padding-left: 18px; color: var(--muted); }
.mp-lai { margin-top: 8px; min-height: 44px; }
.mp-x { border: 0; background: transparent; width: 44px; height: 44px; margin: -10px -10px 0 0; cursor: pointer; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 640px) { .mp-lai { width: 100%; } }
/* menu "Thêm" */
.bsm { position: relative; display: inline-block; }
.bsm[open] { z-index: 60; }
.bsm > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; cursor: pointer; }
.bsm > summary::-webkit-details-marker { display: none; }
.bsm-c { width: 16px; height: 16px; transition: transform .15s; }
.bsm[open] .bsm-c { transform: rotate(180deg); }
.bsm-p { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(15,23,42,.16); padding: 6px; min-width: 240px; display: grid; }
.bsm-i { display: flex; gap: 10px; align-items: center; min-height: 44px; padding: 8px 12px; border: 0; background: none; border-radius: 8px; font: 500 14px var(--f-body, inherit); color: var(--ink); cursor: pointer; text-align: left; text-decoration: none; }
.bsm-i:hover, .bsm-i:focus-visible { background: var(--soft, #eef1f4); }
.bsm-i .mp-i { color: var(--accent); }
.btn .mp-i { width: 18px; height: 18px; color: inherit; margin: 0 6px 0 0; }
.res-acts { position: relative; z-index: 20; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
/* C1 – hai thẻ trang Kết quả */
.rtabs { display: flex; gap: 4px; margin: 18px 0 4px; border-bottom: 1px solid var(--line); }
.rtabs button { border: 0; background: none; min-height: 44px; padding: 0 14px; font: 600 15px var(--f-body, inherit); color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; display: inline-flex; align-items: center; gap: 6px; }
.rtabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.rt-n { font-size: 12px; background: var(--crit-soft, #fde8e8); color: var(--crit, #b91c1c); border-radius: 999px; padding: 1px 8px; }
@media (max-width: 640px) {
  .res-acts { width: 100%; justify-content: stretch; }
  .res-acts > .btn, .res-acts > .bsm { flex: 1; }
  .res-acts > .bsm > summary { width: 100%; justify-content: center; }
  .bsm-p { left: auto; right: 0; min-width: min(280px, 90vw); }
  .rtabs button { flex: 1; justify-content: center; padding: 0 6px; font-size: 14px; }
}
/* các khối con của #main chạy hiệu ứng vào trang (pgIn) nên mỗi khối là một lớp xếp chồng riêng – đầu trang có menu phải nổi lên trên các khối sau */
.bs-hd { position: relative; z-index: 25; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* C2 – thanh công cụ trình soạn đề: + Thêm câu · Nhập nhanh đáp án · Công cụ đề ▾ */
.ed-tools { gap: 8px; flex-wrap: wrap; position: relative; z-index: 20; }
.ed-tools .bsm > summary { min-height: 36px; }
.bsm-p .btn.bsm-i { border: 0; box-shadow: none; justify-content: flex-start; width: 100%; background: none; }
.bsm-p .btn.bsm-i.on { color: var(--accent); }
.bsm-p .bsm-i svg { width: 16px; height: 16px; }
.edh-acts { position: relative; z-index: 25; }
.edh-acts .bsm > summary { min-height: 36px; padding: 0 12px; }
@media (max-width: 640px) { .ed-tools > .btn, .ed-tools > .bsm { flex: 1 1 auto; } .ed-tools .bsm > summary { width: 100%; justify-content: center; } }
.edh { position: relative; z-index: 26; }
@media (max-width: 720px) {
  /* hàng 1: Đã lưu · Làm thử · ⋯ (menu mở về phía trái, không tràn ngang) – hàng 2: nút chính trải hết bề ngang */
  .edh-acts > .btn.primary { order: 5; flex: 1 1 100%; }
  .edh-acts > .bsm { margin-left: auto; }
  .edh-acts .bsm-p { right: 0; }
}
/* G12 – thẻ giá tri ân */
.ta { border-top: 4px solid var(--accent); padding: 18px 20px; margin: 0 0 16px; }
.ta-top { display: flex; gap: 14px; align-items: flex-start; }
.ta-i { width: 28px; height: 28px; flex: none; color: var(--accent); margin-top: 2px; }
.ta-b { flex: 1; min-width: 0; }
.ta h2 { margin: 0 0 6px; font-size: 18px; }
.ta p { margin: 0 0 6px; font-size: 15px; line-height: 1.55; }
.ta-n { color: var(--muted); font-size: 14px !important; }
.ta-a { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 10px; padding-left: 42px; }
.ta-a .btn { min-height: 44px; }
.ta-k { color: var(--muted); }
.ta-q { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px; margin-top: 6px; }
.ta-o { display: flex; gap: 10px; align-items: center; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; cursor: pointer; font-size: 14px; }
.ta-o:has(input:checked) { border-color: var(--accent); background: var(--accent-soft, #e6f6f3); }
@media (max-width: 640px) { .ta-a { padding-left: 0; } .ta-a .btn.primary { flex: 1 1 100%; } .ta-a .btn:not(.primary) { flex: 1; } }
/* Đăng ký phòng lớn */
.pl { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.pl-h { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.pl-h > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 220px; }
.pl-h .btn { min-height: 44px; }
.pl-ok { display: flex; gap: 8px; align-items: flex-start; background: var(--accent-soft, #e6f6f3); border-radius: 10px; padding: 10px 12px; margin: 0 0 10px; font-size: 14px; }
.pl-ok .mp-i { color: var(--accent); }
.pl-l { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pl-l li { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.pl-l li > span:first-child { flex: 1 1 200px; }
.pl-l small { display: block; color: var(--muted); }
.pl-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pl-lb { display: block; font-size: 14px; margin-bottom: 6px; }
.pl-ph { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pl-ph button { min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface, #fff); font: inherit; font-size: 14px; cursor: pointer; color: var(--ink); }
.pl-ph button[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft, #e6f6f3); color: var(--accent); font-weight: 700; }
.pl-w { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.pl-w.crit { color: var(--amber-ink, #7a4a00); background: var(--amber-soft, #fff7e6); border-radius: 10px; padding: 10px 12px; }
.pl-w .mp-i { color: var(--amber, #d97706); }
@media (max-width: 640px) { .pl-2 { grid-template-columns: 1fr; } .pl-ph { grid-template-columns: repeat(2, 1fr); } .pl-h .btn { width: 100%; } }
/* sửa kèm (BS95, phát hiện khi chụp 390): lưới trình soạn đề để thẻ câu hỏi rộng hơn màn hình điện thoại (cột lưới theo nội dung) */
@media (max-width: 720px) { .editor { grid-template-columns: minmax(0, 1fr) !important; } .editor > * { min-width: 0; } .qedit { min-width: 0; grid-template-columns: minmax(0, 1fr); } .qedit > * { min-width: 0; } .qedit .btn { white-space: normal; max-width: 100%; } }
/* C4 – trình soạn đề khi điểm đã công bố */
.edcb { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--surface, #fff); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; padding: 10px 14px; margin: 10px 0 12px; }
.edcb p { flex: 1 1 320px; margin: 0; font-size: 14px; line-height: 1.5; }
.edcb .mp-i { color: var(--accent); }
.edcb.nhac { border-left-color: var(--amber, #d97706); }
.edcb.nhac .mp-i { color: var(--amber, #d97706); }
.edcb .btn { min-height: 44px; }
.ed-khoa [data-ans], .ed-khoa [data-tf], .ed-khoa [data-f="points"], .ed-khoa [data-f="answer"], .ed-khoa [data-f="loai"], .ed-khoa #akbtn, .ed-khoa #bmbtn, .ed-khoa #even, .ed-khoa #ptcfg, .ed-khoa #scl, .ed-khoa #shufq, .ed-khoa #addq { opacity: .55; cursor: not-allowed; }
@media (max-width: 640px) { .edcb .btn { width: 100%; } }
/* v1.7.44 – ô mật khẩu: nút Hiện/Ẩn (chữ + biểu tượng, vùng chạm 44px) + ô nhập lại, báo chưa khớp ngay dưới ô */
.pwf-h { font-weight: 400; margin-top: -2px; }
.pwf-w { position: relative; display: block; }
.pwf-w input { width: 100%; padding-right: 84px; }
.pwf-eye { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; gap: 5px; padding: 0 10px;
  background: none; border: 0; border-radius: 8px; color: var(--muted, #475569); font-size: 13px; font-weight: 600; cursor: pointer; }
.pwf-eye:hover { color: var(--ink, #1f2937); background: var(--soft, #f1f4f8); }
.pwf-eye:focus-visible { outline: 2px solid var(--accent, #0f766e); outline-offset: 1px; }
.pwf-eye svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pwf-err { color: #b42318; font-weight: 500; }
.pwf.bad input { border-color: #b42318; }
/* v1.7.44 – nhãn "Sự kiện mẫu" (Gemini): chữ + biểu tượng lấp lánh, vàng hổ phách; trên nền đậm của băng trang chủ dùng bản sáng */
.hb-eyes { justify-self: start; display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.demob { display: inline-flex; align-items: center; gap: 5px; min-height: 26px; padding: 3px 10px; border-radius: 999px; font: 700 12px/1.2 var(--f-body, inherit);
  background: #fff7e0; border: 1px solid #f2c94c; color: #7a4d00; vertical-align: middle; white-space: nowrap; cursor: help; }
.demob svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.demob.tren { background: rgba(251, 191, 36, .18); border-color: rgba(251, 191, 36, .55); color: #fde68a; }
.demob:focus-visible { outline: 2px solid #fde68a; outline-offset: 2px; }
h1 .demob { font-size: 13px; transform: translateY(-3px); }
.demon { margin: -4px 0 12px; }
