:root {
  color-scheme: light;
  --nen: #f2f0e8; --bang: #ffffff; --bang-phu: #f7f5ee; --vien: #d3cebf; --vien-dam: #a39d8b; --chu: #1f2421;
  --phu: #565f59; --nhan: #8a3128; --phai: 0px;
  --do-co: #a8392d; --do-dam: #7e2c24; --vang-sao: #e3c25e; --xanh-quan: #4a5a2a; --lien-ket: #1f5b99;
  --nut: #ffffff; --nut-ro: #f3efe4; --kinh: rgba(255, 255, 255, .92); --bong: rgba(40, 32, 20, .18);
  --chu-qgp: #a8231b; --chu-vnch: #7a5a0c;
  --mau-qgp: #c8382c; --mau-vnch: #d9a93a; --vien-toi: #17110c; --vien-sang: #fff5dc;
}
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }
body {
  display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto;
  font: 14px/1.5 Cambria, "Times New Roman", serif;
  font-size-adjust: 0.49;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color: var(--chu); background: var(--nen);
}
button, input, select { font: inherit; }
button, select { border: 1px solid var(--vien-dam); border-radius: 5px; background: var(--nut); color: var(--chu); padding: 7px 12px; cursor: pointer; }
button:hover, select:hover { background: var(--nut-ro); border-color: var(--nhan); }
button:disabled { opacity: .4; cursor: default; }
.nut-tu-lieu { display: inline-flex; align-items: center; border: 1px solid var(--vien-dam); border-radius: 5px; background: var(--nut); color: var(--chu); padding: 7px 12px; text-decoration: none; white-space: nowrap; }
.nut-tu-lieu:hover { background: var(--nut-ro); border-color: var(--nhan); }
.nut-tu-lieu:focus-visible { outline: 2px solid var(--nhan); outline-offset: 3px; }
button[aria-expanded="true"], button[aria-pressed="true"] { border-color: var(--nhan); color: var(--nhan); }
button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--nhan); outline-offset: 3px; }
.nut-chinh { background: var(--do-dam); color: #fff; border-color: var(--do-dam); font-weight: 600; }
.nut-chinh:hover { background: #69251e; border-color: #69251e; }
.nut-chinh[aria-pressed="true"], .nut-chinh[aria-pressed="true"]:hover { background: var(--xanh-quan); border-color: var(--xanh-quan); color: #fff; }
h1, h2, h3, p { margin-top: 0; }
#thanh-tren { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px max(20px, env(safe-area-inset-right)) 12px max(20px, env(safe-area-inset-left)); color: #fff; background: var(--do-dam); border-bottom: 1px solid #5a1f19; }
.nhan-du-an { display: flex; align-items: center; gap: 12px; }
.bieu-tuong-dia-hinh { display: inline-block; flex: none; width: 1em; height: 1em; overflow: hidden; font-size: 34px; color: transparent; background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23e3c25e' d='M12 2.5L14.36 9.76L21.99 9.76L15.81 14.24L18.17 21.5L12 17.01L5.83 21.5L8.19 14.24L2.01 9.76L9.64 9.76Z'/%3E%3C/svg%3E"); }
.nhan-du-an p { margin: 0 0 2px; color: #eedbd5; font-size: 12px; }
#thanh-tren button, #thanh-tren .nut-tu-lieu, #thanh-tren .nut-trang-chu { background-color: rgba(255, 255, 255, .1) !important; border-color: rgba(255, 255, 255, .5) !important; color: #fff !important; }
#thanh-tren button:hover, #thanh-tren .nut-tu-lieu:hover, #thanh-tren .nut-trang-chu:hover { background-color: rgba(255, 255, 255, .22) !important; border-color: #fff !important; }
#thanh-tren :is(button, a, select):focus-visible { outline-color: var(--vang-sao); }
#thanh-tren button[aria-pressed="true"], #thanh-tren button[aria-expanded="true"] { border-color: var(--vang-sao) !important; }
#thanh-tren h1 { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.3; }
.nhom-nut { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nhom-nut button { white-space: nowrap; }
#thanh-cong-cu { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 8px max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left)); border-bottom: 1px solid var(--vien); }
#thanh-cong-cu button { font-size: 13px; }
.ngan-cong-cu { height: 24px; width: 1px; background: var(--vien); margin: 0 4px; }
.chon-co { display: flex; align-items: center; gap: 8px; color: var(--phu); font-size: 12px; margin-left: 8px; }
.chon-co select { max-width: 200px; }
input[type="range"] { accent-color: var(--nhan); cursor: pointer; min-width: 0; }
#khong-gian { display: grid; grid-template-columns: minmax(0, 1fr) var(--phai); min-height: 0; }
.bang-ben { min-width: 0; overflow: auto; padding: 18px 16px; background: var(--bang); scrollbar-width: thin; scrollbar-color: #64746f transparent; }
#bang-lop { border-top: 1px solid var(--vien); }
#khung-dien-bien { border-top: 1px solid var(--vien); }
.dau-bang { margin-bottom: 18px; }
.dau-bang h2 { font-size: 15px; font-weight: 600; margin: 0 0 2px; }
.dau-bang > span { color: var(--phu); font-size: 12px; }
#vung-sa-ban { grid-column: 1; grid-row: 1; position: relative; min-width: 0; min-height: 0; overflow: hidden; background: var(--nen); }
#canvas-container { position: absolute; inset: 0; }
#canvas-container canvas { display: block; width: 100%; height: 100%; touch-action: none; }
#lop-chu-dan { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.chu-dan-sa-ban { position: absolute; left: 0; top: 0; box-sizing: border-box; transform-origin: 0 0; pointer-events: auto; cursor: pointer;
  background: rgba(255, 255, 255, .94); border: 2px solid rgba(120, 110, 80, .45); box-shadow: inset 8px 0 0 var(--mau-vach, #8c7a4a); }
.chu-dan-sa-ban span, .chu-dan-sa-ban i { position: absolute; display: block; white-space: nowrap; font-style: normal; }
.chu-dan-sa-ban .vach { background: rgba(120, 110, 80, .3); }
.chu-dan-sa-ban svg { display: block; }
.chu-dan-sa-ban:hover, .chu-dan-sa-ban.dang-chi, .chu-dan-sa-ban:focus-visible { border-color: var(--nhan); outline: none;
  box-shadow: inset 8px 0 0 var(--mau-vach, #8c7a4a), 0 0 0 4px rgba(165, 28, 23, .22); }
#noi-dung-popup h3.co-dau-dien-bien::before { content: ""; display: inline-block; width: .62em; height: .62em; margin-right: .45em;
  vertical-align: .08em; background: var(--do-co); transform: rotate(45deg); outline: 1px solid var(--vien-toi); }
#noi-dung-popup h3.dang-chi { color: var(--nhan); }
@media (prefers-reduced-motion: no-preference) { #noi-dung-popup h3 { transition: color .2s; } }
.nhan-khung { position: absolute; top: 16px; left: max(18px, env(safe-area-inset-left)); font-size: 12px; color: var(--chu); pointer-events: none;
  text-shadow: 0 0 3px #fff, 0 0 6px #fff; }
.nhan-khung span { display: block; font-size: 12px; color: var(--phu); }
.nhan-khung .mau-hai-ben { width: fit-content; margin: 3px 0; padding: 1px 7px; border-radius: 4px; font-size: 13px; color: var(--chu); font-weight: 600;
  background: var(--kinh); text-shadow: none; }
.o-mau { display: inline-block; width: 11px; height: 11px; margin: 0 4px -1px 0; border: 1px solid var(--vien-toi); border-radius: 2px; }
.o-mau.ta { background: var(--mau-qgp); } .o-mau.dich { background: var(--mau-vnch); margin-left: 8px; }
#la-ban { position: absolute; right: max(16px, env(safe-area-inset-right)); top: 14px; width: 52px; height: 84px; text-align: center; pointer-events: none; }
.chu-bac { font-size: 13px; color: var(--nhan); }
#kim-la-ban { position: relative; height: 40px; width: 40px; margin: 2px auto; }
.kim-la-ban-mui-bac { position: absolute; top: 0; left: 13px; border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 20px solid var(--nhan); }
.kim-la-ban-mui-bac::after { content: ""; position: absolute; top: 20px; left: -7px; border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 20px solid #7a837d; }
.nhan-bac { display: none; }
.dieu-huong-ban-do { position: absolute; right: max(16px, env(safe-area-inset-right)); bottom: 80px; display: grid; gap: 4px; }
.dieu-huong-ban-do button { width: 36px; height: 36px; padding: 0; font-size: 23px; background: var(--kinh); }
#thong-tin-ban-do { position: absolute; bottom: 0; left: 0; right: 0; padding: 12px max(18px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left)); display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; background: linear-gradient(transparent, rgba(242, 240, 232, .92)); pointer-events: none; font-size: 13px; color: var(--chu); }
#hud-thanh-ty-le { flex-shrink: 0; min-height: 25px; }
#chi-huong-ngoai { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
#chi-huong-ngoai.dang-doi { visibility: hidden; }
.chi-huong { position: absolute; transform: translate(-50%, -50%); pointer-events: auto; display: inline-flex; align-items: center; gap: 6px;
  max-width: min(260px, 45%); padding: 4px 9px; font-size: 13px; line-height: 1.25; color: var(--chu); background: var(--kinh); border: 1px solid var(--vien-dam);
  border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 3px 10px var(--bong); }
.chi-huong:hover { background: #fff; border-color: var(--nhan); }
.mui-chi-huong { display: inline-block; flex: none; color: var(--nhan); font-size: 13px; }
#ban-do-nho { position: absolute; left: max(18px, env(safe-area-inset-left)); bottom: 52px; z-index: 2; padding: 3px; background: var(--kinh); border: 1px solid var(--vien); border-radius: 6px; box-shadow: 0 6px 18px var(--bong); cursor: pointer; line-height: 0; }
#ban-do-nho canvas { display: block; border-radius: 3px; }
#ban-do-nho:hover { border-color: var(--nhan); }
#net-ty-le { height: 7px; width: 0; border: solid var(--chu); border-width: 0 2px 2px; margin-bottom: 5px; }
#trang-thai-tai { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; gap: 12px; background: var(--nen); }
.vong-tai { width: 20px; height: 20px; border: 2px solid var(--vien); border-top-color: var(--nhan); border-radius: 50%; animation: quay 1s linear infinite; }
@keyframes quay { to { transform: rotate(360deg); } }
.nhom-chu-giai { border-bottom: 1px solid var(--vien); padding-bottom: 14px; margin-bottom: 14px; }
.nhom-chu-giai summary { color: var(--nhan); font-size: 14px; font-weight: 600; margin-bottom: 9px; }
summary { cursor: pointer; }
.muc-chu-giai { display: flex; align-items: center; gap: 10px; margin: 9px 0; font-size: 14px; line-height: 1.5; }
.muc-chu-giai svg { flex: 0 0 36px; width: 36px; height: 28px; color: #3a403c; }
.dau-nhom-ben ~ .dau-nhom-ben { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--vien); }
.dau-nhom-ben span { color: var(--nhan); font-weight: 600; font-size: 15px; }
.ghi-chu-chu-giai { color: var(--phu); font-size: 14px; }
.tim-su-kien { display: block; margin-bottom: 14px; font-size: 14px; color: var(--phu); }
.tim-su-kien input { margin-top: 6px; width: 100%; padding: 9px 10px; border: 1px solid var(--vien-dam); border-radius: 5px; color: var(--chu); background: #fff; }
#bang-dien-bien h3 { font-size: 12px; font-weight: 400; color: var(--phu); margin: 0 0 12px; }
.nhan-nhom-dien-bien { color: var(--nhan); margin: 16px 0 8px; font-size: 12px; }
.dong-dien-bien { display: grid; grid-template-columns: 8px minmax(0, 1fr); align-items: start; gap: 3px 9px; width: 100%; padding: 12px 9px; margin-bottom: 5px; border: 1px solid var(--vien); background: var(--bang-phu); text-align: left; }
.cham-ben { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; }
.cham-qgp { background: var(--mau-qgp); } .cham-vnch { background: var(--mau-vnch); }
.ten-dien-bien { line-height: 1.5; font-size: 14px; overflow-wrap: anywhere; }
.phu-dien-bien { color: var(--phu); font-size: 12px; grid-column: 2; white-space: normal; }
.trong-dien-bien { color: var(--phu); font-size: 13px; }
#thanh-thoi-gian { border-top: 1px solid var(--vien); padding: 10px max(20px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); background: var(--bang-phu); }
.hang-thoi-gian { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
#nut-phat { min-width: 88px; }
#nut-ngay-truoc, #nut-ngay-sau { font-size: 22px; line-height: 1; min-height: 36px; }
#nhan-ngay { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
#nhan-ngay.khoang { font-size: 16px; white-space: nowrap; }
.the-giai-doan { padding: 3px 9px; color: var(--nhan); border: 1px solid var(--vien-dam); border-radius: 4px; font-size: 12px; }
.chon-toc-do { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--phu); }
.chon-toc-do select { padding: 4px 8px; }
.duong-thoi-gian { margin-top: 7px; }
#truot-thoi-gian { display: block; width: 100%; margin: 0; height: 18px; }
.moc-thoi-gian { display: flex; justify-content: space-between; position: relative; height: 22px; margin: 0 6px; }
.moc-thoi-gian span { position: absolute; transform: translateX(-50%); color: var(--phu); font-size: 13px; white-space: nowrap; }
.moc-thoi-gian span:first-child { transform: none; }
.dai-dot { position: relative; height: 12px; margin: 3px 6px 2px; }
.doan-dot { position: absolute; top: 0; height: 8px; border-radius: 3px; background: #c9c3b2; }
.doan-dot.le { background: #b6bca4; }
.doan-dot.dang { background: var(--nhan); }
.cham-ngay { position: absolute; top: 7px; width: 3px; height: 3px; margin-left: -1px; border-radius: 50%; background: var(--do-dam); pointer-events: none; }
.moc-chinh-thanh { position: absolute; top: -1px; z-index: 1; width: 9px; height: 9px; margin-left: -4.5px; padding: 0;
  border: 1px solid #1a2320; transform: rotate(45deg); background: #cfa640; cursor: pointer; min-height: 0 !important; }
.nhan-moc-chinh { display: inline-block; margin-right: 6px; padding: 1px 6px; border-radius: 3px; font-size: 12px; font-weight: 700;
  line-height: 1.5; vertical-align: 1px; color: #2a2100; background: #e6cf8c; }
.moc-chinh-thanh::before { content: ""; position: absolute; inset: -8px; }
@media (pointer: coarse) {
  .dai-dot { height: 14px; margin-top: 5px; }
  .doan-dot { height: 10px; border-radius: 5px; }
  .cham-ngay { top: 11px; }
  .moc-chinh-thanh { top: 0; }
}
.moc-chinh-thanh.moc-then_chot, .nhan-moc-chinh.moc-then_chot { background: var(--do-dam); color: #fff; }
.moc-chinh-thanh.moc-quyet_dinh, .nhan-moc-chinh.moc-quyet_dinh { background: #3d6489; color: #fff; }
.moc-chinh-thanh.moc-ket_thuc, .nhan-moc-chinh.moc-ket_thuc { background: var(--xanh-quan); color: #fff; }
.dong-moc-chinh { margin: -4px 0 8px; font-size: 13px; font-weight: 700; color: var(--nhan); }
@media (min-width: 1101px) {
  #thanh-tren { padding-top: 6px; padding-bottom: 6px; }
  .nhan-du-an p { display: none; }
  .bieu-tuong-dia-hinh { font-size: 26px; }
  #thanh-tren h1 { font-size: 18px; }
}
@media (min-width: 1280px) {
  #thanh-thoi-gian { display: flex; align-items: center; gap: 20px; padding-top: 6px; padding-bottom: max(6px, env(safe-area-inset-bottom)); }
  .hang-thoi-gian { flex: 0 0 auto; flex-wrap: nowrap; }
  .chon-toc-do { margin-left: 0; }
  #nhan-giai-doan { display: none; }
  .duong-thoi-gian { flex: 1 1 auto; min-width: 260px; margin-top: 0; }
  .moc-thoi-gian { height: 18px; }
}
.moc-thoi-gian span:last-child { transform: translateX(-100%); }
.canh-bao { position: absolute; top: 65px; left: max(16px, env(safe-area-inset-left)); right: calc(80px + env(safe-area-inset-right)); padding: 12px; color: #5a2a00; background: #fff1dc; border: 1px solid #e0a96a; border-radius: 5px; font-size: 13px; z-index: 6; overflow-wrap: anywhere; max-height: calc(100% - 80px); overflow: auto; }
dialog { color: var(--chu); border: 1px solid var(--vien); border-top: 4px solid var(--do-co); border-radius: 8px; background: #fff; box-shadow: 0 18px 60px rgba(40, 32, 20, .3); overflow: auto; padding: 26px; scrollbar-width: thin; overflow-wrap: anywhere; }
dialog::backdrop { background: rgba(40, 36, 28, .45); }
.bang-lon { width: min(850px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); }
.bang-lon h1 { font-size: 23px; padding-right: 24px; }
.bang-lon h2 { font-size: 17px; margin-top: 24px; border-bottom: 1px solid var(--vien); padding-bottom: 8px; }
.bang-lon a, .popup a { color: var(--lien-ket); }
.popup { position: relative; margin: 0; inset: auto; width: 100%; max-height: none; border: 0; border-radius: 0; box-shadow: none; background: transparent; padding: 20px; }
.popup h3 { padding-right: 20px; font-size: 17px; line-height: 1.45; }
.popup p { font-size: 15px; line-height: 1.55; }
.dong-popup { position: absolute; right: 10px; top: 9px; font-size: 22px; padding: 0 8px; background: transparent; border: 0; }
dialog .dong-popup { position: sticky; top: 0; right: 0; float: right; margin: -10px -10px 0 8px; background: var(--bang); z-index: 3; }
dialog.bang-lon { padding-right: 52px; }
dialog.bang-lon .dong-popup { margin-right: -44px; }
body.an-chu-giai #bang-lop { display: none; }
body.an-dien-bien #khung-dien-bien { display: none; }
[hidden] { display: none !important; }
@media (max-width: 1100px) {
  #thanh-tren { padding: 10px 14px; flex-wrap: wrap; gap: 10px; }
  #thanh-tren h1 { font-size: 19px; }
  #thanh-tren button, #thanh-tren a { padding: 6px 9px !important; font-size: 12px !important; }
  #nhan-giai-doan { display: none; }
}
@media (max-width: 800px) {
  #khong-gian { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(160px, 1fr) auto; }
  #vung-sa-ban { width: 100%; height: 100%; }
  #thanh-tren h1 { font-size: 18px; } .bieu-tuong-dia-hinh { font-size: 28px; }
  #thanh-cong-cu { padding: 6px 10px; }
  .chon-co { margin-left: 0; }
  #thanh-thoi-gian { padding: 8px 12px; }
  #nhan-ngay { font-size: 17px; }
  #nhan-ngay.khoang { font-size: 14px; }
  .hang-thoi-gian { gap: 6px 10px; }
  .nhan-khung { top: 10px; left: 12px; }
  #thong-tin-ban-do { padding: 10px max(12px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); }
}
@media (max-width: 480px) {
  .moc-thoi-gian { height: 34px; }
  .moc-thoi-gian span:nth-child(2n) { top: 14px; }
  #thanh-tren { padding: 8px 10px; }
  .nhan-du-an p { font-size: 11px; }
  #thanh-tren h1 { font-size: 17px; }
  #thanh-cong-cu button { font-size: 12px; padding: 5px 8px; }
  .hang-thoi-gian { display: grid; grid-template-columns: auto minmax(0, 1fr); }
  .the-giai-doan { grid-column: 1; grid-row: 2; font-size: 11px; }
  .chon-toc-do { grid-column: 2; grid-row: 2; margin-left: 0; }
  .bang-lon { padding: 22px 16px; }
  dialog.bang-lon { padding-right: 42px; }
  dialog.bang-lon .dong-popup { margin-right: -36px; }
  .hang-thoi-gian .nhom-nut { flex-wrap: nowrap; }
  #nhan-ngay { min-width: 0; text-align: right; line-height: 1.25; }
  #nhan-ngay, #nhan-ngay.khoang { white-space: normal; }
}
@media (max-height: 580px) {
  #thanh-tren { padding: 4px 14px; }
  .nhan-du-an p { display: none; }
  .bieu-tuong-dia-hinh { font-size: 24px; }
  #thanh-tren h1 { font-size: 16px; }
  #thanh-tren button { padding: 4px 8px; font-size: 11px; }
  #thanh-cong-cu { padding: 4px 10px; gap: 5px; }
  #thanh-cong-cu button, #thanh-cong-cu select { font-size: 11px; padding: 4px 7px; }
  .chon-co { font-size: 11px; margin-left: 4px; gap: 5px; }
  #thanh-thoi-gian { padding: 4px 20px; }
  .hang-thoi-gian { gap: 5px 10px; }
  #nut-phat { min-width: 70px; font-size: 12px; padding: 5px 8px; }
  #nut-ngay-truoc, #nut-ngay-sau { font-size: 17px; min-height: 26px; }
  #nhan-ngay { font-size: 15px; }
  #nhan-ngay.khoang { font-size: 13px; }
  .the-giai-doan { font-size: 10px; padding: 2px 6px; }
  .duong-thoi-gian { margin-top: 3px; }
  .moc-thoi-gian { display: none; }
  .dieu-huong-ban-do { top: 12px; bottom: auto; right: 70px; display: flex; }
  .dieu-huong-ban-do button { width: 28px; height: 28px; font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { .vong-tai { animation: none; } }
#khung-noi-dung { grid-column: 2; grid-row: 1; min-height: 0; min-width: 0; overflow: auto; background: var(--bang); border-left: 1px solid var(--vien); scrollbar-width: thin; }
body.co-noi-dung, body.trinh-chieu.co-noi-dung { --phai: clamp(300px, 26vw, 440px); }
#dan-chuyen-tu-dong { padding: 20px; border-bottom: 1px solid var(--vien); overflow-wrap: anywhere; }
#dan-chuyen-tu-dong strong { display: block; font-size: 14px; color: var(--nhan); }
#dan-chuyen-tu-dong p { font-size: 15px; margin: 10px 0 0; line-height: 1.55; }
#dan-chuyen-tu-dong .ten-canh { display: block; margin-bottom: 4px; font-size: 16px; line-height: 1.35; color: var(--nhan); }
#noi-dung-popup .can-cu-ky-hieu { margin: 10px 0 0; font-size: 12px; line-height: 1.45; color: var(--phu); }
#noi-dung-popup .can-cu-ky-hieu summary { cursor: pointer; min-height: 28px; display: list-item; }
#noi-dung-popup .can-cu-ky-hieu p { margin: 6px 0 0; font-size: 12px; line-height: 1.45; }
.nguon-canh { overflow-wrap: anywhere; }
.nguon-canh a { color: var(--lien-ket); text-underline-offset: 3px; }
body.trinh-chieu #noi-dung-popup .can-cu-ky-hieu { display: none; }
#luc-luong-hai-ben { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--vien); }
#luc-luong-hai-ben.mot-ben { grid-template-columns: minmax(0, 1fr); }
#luc-luong-hai-ben h2 { grid-column: 1 / -1; margin: 0 0 2px; font-size: 15px; font-weight: 600; }
#luc-luong-hai-ben > div { min-width: 0; border: 1px solid var(--vien); border-top: 3px solid; border-radius: 5px; background: var(--bang-phu); padding: 10px; }
#luc-luong-hai-ben h3 { position: sticky; top: 0; z-index: 2; margin: 0 0 9px; padding: 4px 0; background: var(--bang-phu); font-size: 15px; line-height: 1.4; }
#luc-luong-hai-ben h3 span { display: block; font-size: 12px; font-weight: 400; }
#luc-luong-hai-ben .ben-quan-ta { border-top-color: var(--mau-qgp); }
#luc-luong-hai-ben .ben-dich { border-top-color: var(--mau-vnch); }
.ben-quan-ta h3 { color: var(--chu-qgp); } .ben-dich h3 { color: var(--chu-vnch); }
#luc-luong-hai-ben ul { margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; max-height: 240px; overflow: auto; scrollbar-width: thin; }
#luc-luong-hai-ben li { display: flex; align-items: flex-start; gap: 6px; padding: 6px 0; border-bottom: 1px solid var(--vien); }
#luc-luong-hai-ben li:last-child { border-bottom: 0; }
.co-trong-bang { flex: 0 0 40px; }
.co-trong-bang svg { display: block; width: 40px; height: 38px; }
#che-do-ban-do { color: var(--nhan); font-size: 12px; max-width: calc(100vw - 100px); }
#che-do-ban-do:not(:empty), #chu-thich-giai-doan { width: fit-content; padding: 1px 7px; border-radius: 4px; background: var(--kinh); text-shadow: none; }
@media (max-width: 800px) {
  body.trinh-chieu #thanh-tren h1 { font-size: 18px; }
  #khung-noi-dung { grid-column: 1; grid-row: 2; max-height: 32vh; border-left: 0; border-top: 1px solid var(--vien); }
  .nhan-khung { max-width: calc(100% - 140px); }
  .dieu-huong-ban-do { top: 12px; bottom: auto; right: max(70px, env(safe-area-inset-right)); display: flex; }
  .dieu-huong-ban-do button { width: 28px; height: 28px; font-size: 20px; }
  #che-do-ban-do { max-width: calc(100vw - 250px); }
  #dan-chuyen-tu-dong, .popup { padding: 12px 16px; }
  #dan-chuyen-tu-dong p, .popup p { font-size: 14px; margin-top: 7px; }
  #luc-luong-hai-ben { padding: 10px 16px; }
  .chon-co select { padding: 4px; }
}
@media (max-height: 650px) and (max-width: 800px) {
  html, body { height: auto; min-height: 100%; overflow-y: auto; }
  #khong-gian { min-height: min(400px, 65vh); grid-template-rows: minmax(220px, 1fr) auto; }
}
#huong-trong-canh { padding: 14px 16px; border-bottom: 1px solid var(--vien); }
#huong-trong-canh h2 { margin: 0; font-size: 15px; }
#huong-trong-canh p { font-size: 12px; color: var(--phu); line-height: 1.5; }
.huong-tuyen { display: block; width: 100%; text-align: left; white-space: normal; margin-top: 6px; border-left: 3px solid; overflow-wrap: anywhere; }
.huong-qgp { border-left-color: var(--mau-qgp); }
.huong-vnch { border-left-color: var(--mau-vnch); }
.dong-dien-bien[aria-current] { border-left: 3px solid var(--nhan); }
.tim-su-kien select { width: 100%; }
#chon-dot { max-width: min(380px, 100%); font: inherit; text-overflow: ellipsis; }
#bang-ban-do p, #noi-dung-popup p { overflow-wrap: anywhere; }
body.trinh-chieu #huong-trong-canh { display: none; }
@media (max-width: 480px) { #chon-dot { grid-column: 1 / -1; max-width: 100%; width: 100%; } }
@media (max-width: 480px) {
  .nhan-du-an p, #nhan-giai-doan { display: none; }
  #thanh-tren .nhom-nut { gap: 4px; }
  #thanh-tren button, #thanh-tren a { padding: 5px 7px !important; font-size: 11px !important; }
  #chon-dot { grid-column: 1; grid-row: 2; }
  .chon-toc-do { grid-column: 2; grid-row: 2; justify-self: end; }
  #khong-gian { min-height: 280px; }
  #khung-noi-dung { max-height: 27vh; }
  #the-chuong, #the-mo-dau { top: 20%; padding: 6px 10px; }
  #the-chuong strong, #the-mo-dau strong { margin-top: 4px; font-size: 16px; }
}
#noi-dung-popup a, #bang-ban-do a { color: var(--lien-ket); text-underline-offset: 3px; }
#bang-ban-do { width: min(1180px, 96vw); max-width: 96vw; }
.doi-chieu-hai-cot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 1fr); gap: 18px; }
.danh-muc-doi-chieu label { display: block; margin-bottom: 8px; }
.danh-muc-doi-chieu input, .danh-muc-doi-chieu select { display: block; width: 100%; }
#danh-muc-ban-do { max-height: 45vh; overflow: auto; }
#danh-muc-ban-do button { display: block; width: 100%; white-space: normal; text-align: left; margin-bottom: 4px; }
#chi-tiet-ban-do { margin: 12px 0; }
#canh-bao-nap-lieu { z-index: 20; max-width: min(680px, 95%); }
#canh-bao-nap-lieu button { margin: 4px; }
@media (max-width: 650px) { .doi-chieu-hai-cot { grid-template-columns: 1fr; } #danh-muc-ban-do { max-height: 32vh; } }
#danh-sach-huong { max-height: 240px; overflow: auto; }
body.co-hieu-ung #vung-sa-ban::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(ellipse at center, transparent 80%, rgba(60, 54, 40, .12) 100%); }
#the-chuong, #the-mo-dau { position: absolute; left: 50%; top: 42%; z-index: 6; pointer-events: none; opacity: 0; transform: translate(-50%, -50%);
  width: min(720px, 86%); padding: 18px 28px; text-align: center; color: var(--nhan);
  background: radial-gradient(ellipse at center, rgba(255, 253, 246, .97) 58%, rgba(255, 253, 246, 0) 100%); text-shadow: 0 1px 0 #fff; }
#the-chuong span, #the-mo-dau span { display: block; font-size: 13px; letter-spacing: .12em; opacity: .9; }
#the-chuong strong, #the-mo-dau strong { display: block; margin-top: 8px; font-size: clamp(22px, 3.4vw, 40px); line-height: 1.2; }
#the-mo-dau.hien { animation: the-chuong 3.2s ease forwards; }
#the-chuong.hien { animation: the-chuong 2.4s ease forwards; }
body.tam-dung-xem :is(#the-chuong, #the-mo-dau).hien { animation-play-state: paused; visibility: hidden; }
@keyframes the-chuong {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.94); }
  15% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  75% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.03); }
}
@media (prefers-reduced-motion: reduce) { #the-chuong.hien, #the-mo-dau.hien { animation: none; } }
body:not(.co-hieu-ung) #the-chuong, body:not(.co-hieu-ung) #the-mo-dau { display: none; }
.nhom-ky-hieu { display: inline-flex; align-items: center; flex: 0 0 auto; }
.nhom-ky-hieu .nhan-nhom { margin-right: 6px; color: var(--phu); font-size: 12px; }
.nhom-ky-hieu button { border-radius: 0; }
.nhom-ky-hieu button + button { margin-left: -1px; border-radius: 0 5px 5px 0; }
.nhom-ky-hieu .nhan-nhom + button { border-radius: 5px 0 0 5px; }
.nhom-ky-hieu button[aria-pressed="true"] { position: relative; border-color: var(--nhan); color: var(--nhan); background: var(--nut-ro); font-weight: 600; }
#bang-tuy-chinh { display: none; position: fixed; z-index: 20; width: min(340px, calc(100vw - 16px));
  overflow: auto; padding: 12px 14px 14px; background: #fffffffa; border: 1px solid var(--vien); border-radius: 0 0 8px 8px;
  box-shadow: 0 10px 24px var(--bong); }
body.mo-tuy-chinh #bang-tuy-chinh { display: grid; gap: 12px; }
body.trinh-chieu #bang-tuy-chinh label:has(#chon-dia-danh) { display: none; }
#bang-tuy-chinh fieldset { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
#bang-tuy-chinh fieldset:not(:has(label)) { display: none; }
#bang-tuy-chinh legend { margin-bottom: 6px; padding: 0; color: var(--chu); font-size: 13px; font-weight: 600; }
#bang-tuy-chinh .chon-co { margin-left: 0; color: var(--chu); font-size: 13px; }
#bang-tuy-chinh .chon-co:has(select) { justify-content: space-between; }
#bang-tuy-chinh select { width: 168px; max-width: 60%; }
#bang-tuy-chinh input[type="checkbox"] { accent-color: var(--nhan); width: 16px; height: 16px; margin: 0; }
#bang-tuy-chinh #nut-xuat-anh { justify-self: start; font-size: 13px; }
#bang-tuy-chinh #nhom-di-toi select { width: 100%; max-width: none; }
#bang-tuy-chinh :is(#chon-dot, .chon-toc-do) { grid-column: auto; grid-row: auto; justify-self: stretch; margin-left: 0; }
#bang-tuy-chinh .chon-toc-do { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--chu); font-size: 13px; }
#nut-tuy-chinh[aria-expanded="true"] { border-color: var(--nhan); background-color: var(--nut-ro); }
#man-ket-thuc .the-gioi-thieu { width: min(660px, 100%); }
.ghi-nho h3, .on-tap h3 { margin: 4px 0 8px; font-size: 15px; color: var(--nhan); }
.on-tap { margin: 4px 0 14px; padding-top: 10px; border-top: 1px solid var(--vien); }
.cau-hoi { margin: 0 0 12px; }
.cau-hoi > p:first-child { margin: 0 0 6px; line-height: 1.45; }
.lua-chon { display: flex; flex-wrap: wrap; gap: 6px; }
.lua-chon button { min-height: 36px; padding: 6px 10px; text-align: left; white-space: normal; }
.lua-chon button.dap-an { border-color: #7fbf7a; }
.lua-chon button.dung { background: #2f5a34; border-color: #7fbf7a; color: #fff; }
.lua-chon button.sai { background: #5a2f2f; border-color: #d27a6e; color: #fff; }
.lua-chon button:disabled { opacity: 1; cursor: default; }
.phan-hoi { margin: 6px 0 0; min-height: 1.2em; font-size: 13px; opacity: .9; }
.diem-on-tap { margin: 0; font-weight: 600; color: var(--nhan); }
.man-gioi-thieu { position: absolute; inset: 0; z-index: 8; display: grid; place-items: center; padding: 16px;
  background: radial-gradient(ellipse at center, rgba(242, 240, 232, .45), rgba(242, 240, 232, .8)); backdrop-filter: blur(2px);
  animation: hien-dan .5s ease; }
.the-gioi-thieu { width: min(560px, 100%); max-height: 100%; overflow: auto; padding: 22px 26px; color: var(--chu);
  background: rgba(255, 255, 255, .97); border: 1px solid var(--vien); border-top: 4px solid var(--do-co); border-radius: 10px;
  box-shadow: 0 18px 48px rgba(40, 32, 20, .25); }
.the-gioi-thieu .nhan-nho { margin: 0; font-size: 12px; letter-spacing: .14em; color: var(--nhan); }
.the-gioi-thieu h2 { margin: 6px 0 4px; font-size: clamp(20px, 3vw, 28px); line-height: 1.2; }
.thoi-gian-chao { margin: 0 0 12px; color: var(--phu); }
.pham-vi-chao { margin: -6px 0 12px; font-size: 12px; line-height: 1.45; color: var(--phu); }
.cac-dot { margin: 0 0 12px; padding-left: 22px; display: grid; gap: 4px; }
.cac-dot span { color: var(--phu); font-size: 13px; }
.tieu-de-moc { margin: 0 0 6px; font-size: 15px; }
.cac-moc-chinh { margin: 0 0 12px; padding-left: 22px; display: grid; gap: 4px; }
.cac-moc-chinh strong { color: var(--nhan); font-size: 13px; }
.cac-moc-chinh span { font-size: 13px; color: var(--phu); }
.mo-ta-chao { margin: 0 0 14px; }
.tong-ket-chao { margin: 0 0 14px; padding: 10px 12px; border-left: 3px solid var(--nhan); background: #faf3e6; line-height: 1.5; }
.the-gioi-thieu .hang-nut { display: flex; flex-wrap: wrap; gap: 8px; }
.the-gioi-thieu .hang-nut button, .the-gioi-thieu .nut-lien-ket { min-height: 40px; padding: 8px 14px; }
.the-gioi-thieu .nut-lien-ket { display: inline-flex; align-items: center; border: 1px solid var(--vien-dam); border-radius: 5px;
  color: var(--chu); text-decoration: none; }
#man-chao { place-items: end start; padding: 24px; background: linear-gradient(90deg, rgba(242, 240, 232, .7), rgba(242, 240, 232, 0) 70%); backdrop-filter: none; }
#man-chao .the-gioi-thieu { width: min(520px, 100%); }
#man-chao .thoi-gian-chao { margin: 4px 0 16px; font-size: 14px; line-height: 1.5; }
.chi-tiet-chao { clear: both; margin-top: 14px; border-top: 1px solid var(--vien); padding-top: 8px; }
.chi-tiet-chao > summary { cursor: pointer; font-size: 14px; font-weight: 600; padding: 4px 0; }
.chi-tiet-chao[open] > summary { margin-bottom: 8px; }
@keyframes hien-dan { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .man-gioi-thieu { animation: none; } }
#tien-trinh-truyen { position: absolute; left: 0; right: 0; top: 0; height: 4px; z-index: 6; background: rgba(165, 28, 23, .12); pointer-events: none; }
#tien-trinh-truyen span { display: block; height: 100%; width: 0; background: var(--nhan); transition: width .8s ease; }
.dong-dien-bien.da-xem .ten-dien-bien::after { content: " ✓"; color: var(--nhan); }
.moc-thoi-gian span.moc-an-nhan { color: transparent; }
@media (max-width: 800px), (max-height: 580px) {
  #thanh-tren a, #thanh-tren button, #thanh-cong-cu button, #thanh-cong-cu select, #bang-tuy-chinh :is(button, select),
  .hang-thoi-gian button, .hang-thoi-gian select { min-height: 40px; }
  #thanh-cong-cu label.chon-co, #bang-tuy-chinh label.chon-co { min-height: 40px; display: flex; align-items: center; }
}@media (max-width: 800px), (max-height: 580px) {
  .man-gioi-thieu { position: fixed; z-index: 30; padding: 12px; }
  .the-gioi-thieu { display: flex; flex-direction: column; padding: 18px; max-height: calc(100dvh - 24px); }
  .the-gioi-thieu .hang-nut { order: 3; margin-bottom: 12px; }
  .the-gioi-thieu .hang-nut button, .the-gioi-thieu .nut-lien-ket { flex: 1 1 100%; justify-content: center; }
  .cac-dot, .tieu-de-moc, .cac-moc-chinh { order: 4; } .tong-ket-chao { order: 2; } .mo-ta-chao { order: 2; } .chi-tiet-chao { order: 5; }
  #man-chao { place-items: center; padding: 12px; }
  .ghi-nho { order: 2; } .on-tap { order: 2; }
  #the-chuong, #the-mo-dau { width: 94%; padding: 10px 12px; }
  #the-chuong span, #the-mo-dau span { font-size: 11px; letter-spacing: .06em; }
  #the-chuong strong, #the-mo-dau strong { font-size: 20px; }
}
body.trinh-chieu #dan-chuyen-tu-dong p { font-size: clamp(15px, calc(.5vw + 9px), 19px); line-height: 1.6; }
body.trinh-chieu #dan-chuyen-tu-dong .ten-canh { font-size: clamp(16px, calc(.5vw + 10px), 21px); }
body.loi-dan-duoi #khong-gian { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
body.loi-dan-duoi #khung-noi-dung { grid-column: 1; grid-row: 2; height: clamp(140px, 24vh, 240px); max-height: none; border-left: 0; border-top: 1px solid var(--vien); }
body.loi-dan-duoi.loi-dan-gon #khung-noi-dung { height: auto; }
body.loi-dan-duoi #dan-chuyen-tu-dong, body.loi-dan-duoi #popup-su-kien { max-width: 860px; margin: 0 auto; border-bottom: 0; }
#goi-y-trinh-chieu { margin: 0; padding: 20px; color: var(--phu); font-size: 14px; line-height: 1.55; }
body.trinh-chieu #luc-luong-hai-ben { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 800px) { body.loi-dan-duoi #khung-noi-dung { height: 28vh; } }
@media (max-height: 580px) {
  body.trinh-chieu #thanh-cong-cu { height: 0; min-height: 0; padding: 0; border: 0; overflow: hidden; visibility: hidden; }
}
.nut-thu-gon-loi-dan { display: none; float: right; margin: -6px -8px 4px 10px; padding: 4px 9px; font-size: 12px; }
body.loi-dan-duoi #dan-chuyen-tu-dong .nut-thu-gon-loi-dan { display: inline-flex; }
body.loi-dan-duoi #dan-chuyen-tu-dong.thu-gon p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 6px; }
body.loi-dan-duoi #dan-chuyen-tu-dong.thu-gon { padding-top: 12px; padding-bottom: 12px; }
.the-don-vi { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.binh-chung-don-vi { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--phu); }
.binh-chung-don-vi svg { width: 16px; height: 16px; flex: 0 0 16px; color: var(--nhan); }
.bieu-tuong-binh-chung { flex: 0 0 36px; display: flex; justify-content: center; }
.muc-chu-giai .bieu-tuong-binh-chung svg { flex: 0 0 24px; width: 24px; height: 24px; color: var(--nhan); }
@media (max-width: 1100px) {
  body { grid-template-columns: minmax(0, 1fr); }
  #thanh-tren, #thanh-cong-cu, .nhan-du-an { min-width: 0; }
  #thanh-tren { flex-wrap: nowrap; }
  .nhan-du-an { flex: 0 1 auto; }
  .nhan-du-an > div { min-width: 0; }
  #thanh-tren h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #thanh-tren .nhom-nut, #thanh-cong-cu {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
  #thanh-cong-cu .nhom-nut { flex-wrap: nowrap; flex: 0 0 auto; }
  #thanh-tren .nhom-nut { flex: 1 1 0; justify-content: flex-start; }
  body.co-noi-dung, body.trinh-chieu.co-noi-dung { --phai: clamp(280px, 30vw, 360px); }
  #chon-dot { max-width: 260px; }
}
@media (max-width: 800px) {
  #thanh-tren { flex-wrap: wrap; }
  #thanh-tren .nhom-nut { width: 100%; flex: 0 0 100%; }
  #thanh-tren h1 { white-space: normal; overflow: visible; }
}
@media (max-width: 400px) {
  #thanh-tren h1 { font-size: 16px; }
  body #thanh-cong-cu { padding-left: 8px; padding-right: 8px; }
  body #thanh-cong-cu button { padding-left: 5px; padding-right: 5px; font-size: 12px; }
}
@media (max-width: 1100px) {
  #thanh-tren .nhom-nut::-webkit-scrollbar, #thanh-cong-cu::-webkit-scrollbar { display: none; }
  #thanh-tren .nhom-nut.tran-phai, #thanh-cong-cu.tran-phai {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); }
  #thanh-tren .nhom-nut.tran-trai, #thanh-cong-cu.tran-trai {
    -webkit-mask-image: linear-gradient(270deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(270deg, #000 calc(100% - 40px), transparent); }
  #thanh-tren .nhom-nut.tran-trai.tran-phai, #thanh-cong-cu.tran-trai.tran-phai {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 56px), transparent); }
  #thanh-tren .nhom-nut > *, #thanh-cong-cu .nhom-nut > * { flex: 0 0 auto; }
  #thanh-cong-cu { justify-content: flex-start; }
  .chon-co { white-space: nowrap; }
}
@media (min-width: 801px) and (max-width: 1100px) {
  #thanh-tren { flex-wrap: wrap; row-gap: 8px; }
  #thanh-tren .nhom-nut { flex: 0 1 auto; max-width: 100%; }
}
@media (max-width: 600px) {
  #thanh-tren .nut-trang-chu, #thanh-tren #nut-ban-do, #thanh-tren #nut-huong-dan, #thanh-tren #nut-toan-man-hinh {
    width: 40px; padding: 0 !important; overflow: hidden; white-space: nowrap; text-indent: -999px; color: transparent !important;
    background-repeat: no-repeat !important; background-position: center !important; background-size: 18px 18px !important; }
  #thanh-tren #nut-ban-do { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6h11M9 12h11M9 18h11'/%3E%3Cpath d='M4.5 6h.01M4.5 12h.01M4.5 18h.01'/%3E%3C/svg%3E"); }
  #thanh-tren:has(#nut-ban-do:not([hidden])) :is(.nut-trang-chu, #nut-ban-do, #nut-huong-dan, #nut-toan-man-hinh) { width: 36px; }
  #thanh-tren .nut-trang-chu { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11.5 12 4l9 7.5'/%3E%3Cpath d='M5.5 10v9.5h13V10'/%3E%3C/svg%3E") !important; }
  #thanh-tren #nut-huong-dan { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9.6 9.3a2.5 2.5 0 1 1 3.6 2.3c-.8.5-1.2 1-1.2 2'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E"); }
  #thanh-tren #nut-toan-man-hinh { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9V4h5M20 9V4h-5M4 15v5h5M20 15v5h-5'/%3E%3C/svg%3E"); }
  #nut-trinh-chieu { display: none; }
  #thanh-cong-cu .ngan-cong-cu { display: none; }
  #thanh-cong-cu .nhom-nut { gap: 4px; }
  #thanh-cong-cu .chon-co:has(#chon-dia-danh) { margin-left: 0; }
  #thanh-cong-cu button { padding-left: 7px; padding-right: 7px; }
  #thanh-cong-cu #nut-tuy-chinh { width: 40px; padding: 0 !important; overflow: hidden; white-space: nowrap; text-indent: -999px; color: transparent;
    background: var(--nut) center / 18px 18px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a302c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h10M18 6h2M4 12h4M12 12h8M4 18h12M20 18h0'/%3E%3Ccircle cx='16' cy='6' r='2'/%3E%3Ccircle cx='10' cy='12' r='2'/%3E%3Ccircle cx='18' cy='18' r='2'/%3E%3C/svg%3E"); }
  #thanh-cong-cu #chon-dia-danh { width: clamp(72px, calc(100vw - 392px), 170px); padding-left: 6px; padding-right: 2px; text-overflow: ellipsis; }
  .nhom-ky-hieu .nhan-nhom { display: none; }
}
@media (max-width: 380px) {
  #thanh-tren:has(#nut-ban-do:not([hidden])) #nut-toan-man-hinh { display: none !important; }
}
@media (max-width: 356px) {
  #thanh-tren #nut-toan-man-hinh { display: none !important; }
  #thanh-tren h1 { font-size: 15px; }
}
@media (max-width: 340px) {
  #thanh-tren:has(#nut-ban-do:not([hidden])) :is(.nut-trang-chu, #nut-ban-do, #nut-huong-dan) { width: 30px; }
  #thanh-tren:has(#nut-ban-do:not([hidden])) .nhom-che-do button { padding-left: 5px !important; padding-right: 5px !important; }
  #thanh-cong-cu button { font-size: 11px !important; padding-left: 5px; padding-right: 5px; }
  #chon-dia-danh { width: clamp(64px, calc(100vw - 254px), 100px); }
  .hang-thoi-gian .nhom-nut { flex-wrap: nowrap; gap: 4px; }
  #nut-phat { font-size: 13px; padding-left: 8px; padding-right: 8px; white-space: nowrap; }
  #nhan-ngay { font-size: 15px; white-space: nowrap; }
}
.nhom-che-do { display: inline-flex; flex: 0 0 auto; border: 1px solid rgba(255, 255, 255, .55); border-radius: 6px; overflow: hidden; }
#thanh-tren .nhom-che-do button { border: 0 !important; border-radius: 0; border-left: 1px solid rgba(255, 255, 255, .45) !important; }
.nhom-che-do button:first-child { border-left: 0 !important; }
#thanh-tren .nhom-che-do button[aria-pressed="true"] { background-color: #fff !important; color: var(--nhan) !important; font-weight: 700; }
#bang-nghien-cuu { display: none; border-top: 1px solid var(--vien); }
body.mo-nguon:not(.trinh-chieu) #bang-nghien-cuu { display: block; border-top: 0; }
body.mo-nguon:not(.trinh-chieu) #khung-noi-dung { display: flex; flex-direction: column; }
body.mo-nguon:not(.trinh-chieu) #khung-noi-dung > * { flex: 0 0 auto; }
body.mo-nguon:not(.trinh-chieu) #bang-nghien-cuu { order: -1; }
body.mo-nguon:not(.trinh-chieu) :is(#popup-su-kien, #luc-luong-hai-ben, #huong-trong-canh, #dan-chuyen-tu-dong) { display: none !important; }
#bang-nghien-cuu h3 { margin: 18px 0 8px; font-size: 14px; font-weight: 600; color: var(--nhan); }
#bang-nghien-cuu section:first-of-type h3 { margin-top: 0; }
#bang-nghien-cuu p { margin: 0 0 6px; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
#bang-nghien-cuu a { color: var(--lien-ket); text-underline-offset: 3px; }
#bang-nghien-cuu ul, #bang-nghien-cuu ol { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.5; }
#bang-nghien-cuu li { margin-bottom: 8px; }
.nc-hien-tai { padding: 12px; border: 1px solid var(--vien); border-left: 3px solid var(--nhan); border-radius: 5px; background: var(--bang-phu); }
.nc-ten { font-size: 15px !important; color: var(--nhan); }
.nc-doi-chieu { padding: 6px 8px; border-radius: 4px; background: #fbf3d8; color: #4f420e; }
.nc-ten-tai-lieu { font-size: 13px; }
.nc-co-quan, .nc-pham-vi, .nc-ban-quyen { color: var(--phu); font-size: 12px !important; }
.nc-bo-sung, .nc-dia-danh { margin-top: 12px; font-size: 13px; }
.nc-bo-sung summary, .nc-dia-danh summary { font-weight: 600; color: var(--chu); padding: 4px 0; }
.nc-ban-quyen { margin-top: 16px !important; }
#thanh-tren { background: linear-gradient(180deg, #84322a, #702a23); }
#thanh-cong-cu { background: var(--bang-phu); }
.bang-ben { background: var(--bang); }
.dieu-huong-ban-do button, #ban-do-nho { background: var(--kinh); border-color: var(--vien-dam);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 4px 14px var(--bong); }
.dieu-huong-ban-do button:hover { background: #fff; border-color: var(--nhan); color: var(--nhan); }
.dieu-huong-ban-do button[aria-pressed="true"] { border-color: var(--nhan); color: var(--nhan); box-shadow: inset 0 0 0 1px var(--nhan); }
.dieu-huong-ban-do button svg { display: block; width: 62%; height: 62%; margin: auto; }
#chu-thich-giai-doan { display: flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 12px; color: var(--phu); pointer-events: auto; }
#chu-thich-giai-doan[hidden] { display: none; }
.o-giai-doan { display: inline-grid; place-items: center; min-width: 19px; height: 17px; padding: 0 3px; border-radius: 3px; font-style: normal;
  font-size: 12px; font-weight: 700; color: #141d22; background: var(--mau-dot); border: 1px solid var(--vien-toi); cursor: help; }
#canvas-container { isolation: isolate; }
#canvas-container::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(125% 95% at 50% 45%, transparent 66%, rgba(60, 54, 40, .16) 100%); }
@media (prefers-reduced-motion: no-preference) {
  button, select, .nut-tu-lieu { transition: background-color .18s, border-color .18s, color .18s, box-shadow .18s, transform .12s; }
  button:active:not(:disabled) { transform: translateY(1px); }
  .dong-dien-bien { transition: background-color .18s, border-color .18s, transform .18s; }
  .dong-dien-bien:hover { transform: translateX(2px); }
}
@media (min-width: 1101px) { #thanh-cong-cu { flex-wrap: nowrap; } }
body.trinh-chieu #thanh-cong-cu label.chon-co:has(#chon-dia-danh) { display: none; }
@media (max-width: 800px) {
  .dieu-huong-ban-do button { width: 34px; height: 34px; }
  #nut-ngay-truoc, #nut-ngay-sau { min-width: 40px; }
}
.tieu-de-chu-giai-day-du { margin: 14px 0 6px; font-weight: 600; color: var(--phu); }
@media (pointer: coarse) {
  .moc-chinh-thanh::before { inset: -14px; }
}
@media (max-width: 480px) { .moc-thoi-gian { display: none; } }
.thao-tac-nhanh { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 8px 0 14px; align-items: baseline; }
.thao-tac-nhanh dt { font-weight: 600; color: var(--nhan); white-space: nowrap; }
.thao-tac-nhanh dd { margin: 0; }
.lien-he { display: flex; flex-wrap: wrap; gap: 2px 16px; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--vien); color: var(--phu); font-size: 14px; font-style: normal; }
.lien-he strong { color: var(--chu); font-weight: 600; }
.lien-he a { color: var(--nhan); text-underline-offset: 3px; overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .thao-tac-nhanh { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .thao-tac-nhanh dt { white-space: normal; }
  .thao-tac-nhanh dd { margin-bottom: 8px; }
}
#bang-huong-dan details.muc-huong-dan { border-top: 1px solid var(--vien); padding: 6px 0; }
#bang-huong-dan details.muc-huong-dan > summary { cursor: pointer; font-weight: 600; font-size: 16px; padding: 4px 0; }
.hang-dot { display: flex; gap: 4px; margin-bottom: 8px; flex: 1 0 100%; contain: inline-size; }
.o-dot { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 6px; padding: 5px 9px; overflow: hidden; white-space: nowrap;
  text-overflow: ellipsis; font-size: 13px; text-align: left; background: var(--nut); border: 1px solid var(--vien); border-radius: 5px; color: var(--phu); }
.o-dot .so-dot { flex: 0 0 auto; display: inline-grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: #e7e2d4;
  color: var(--chu); font-size: 11px; font-weight: 700; }
.o-dot .ten-dot { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.o-dot[aria-current] { background: #f4ede2; border-color: var(--nhan); color: var(--nhan); font-weight: 600; }
.o-dot[aria-current] .so-dot { background: var(--do-dam); color: #fff; }
.o-dot.sap-toi { border-style: dashed; border-color: var(--nhan); color: var(--chu); }
@media (min-width: 1280px) { #thanh-thoi-gian { flex-wrap: wrap; row-gap: 0; } }
@media (min-width: 801px) and (min-height: 581px) { #chon-dot { display: none; } }
@media (max-width: 800px), (max-height: 580px) { .hang-dot { display: none; } }
#vi-tri-truyen { color: var(--phu); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-width: 1100px) { #vi-tri-truyen { display: none; } }
body.trinh-chieu #thanh-cong-cu { height: 0; min-height: 0; padding: 0; border: 0; overflow: hidden; visibility: hidden; }
.nhan-khung :is(.nut-chu-giai-nhanh, .nut-tuy-chinh-nhanh) { pointer-events: auto; display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 4px 10px;
  font-size: 13px; background: var(--kinh); border: 1px solid var(--vien-dam); border-radius: 5px; text-shadow: none; }
.nhan-khung :is(.nut-chu-giai-nhanh, .nut-tuy-chinh-nhanh)[aria-expanded="true"] { border-color: var(--nhan); color: var(--nhan); }
.nhan-khung .nut-tuy-chinh-nhanh { margin-left: 6px; }
body:not(.trinh-chieu) .nhan-khung :is(.nut-chu-giai-nhanh, .nut-tuy-chinh-nhanh) { display: none; }
body.trinh-chieu #dan-chuyen-tu-dong p { font-size: 16px; line-height: 1.6; }
body.trinh-chieu #dan-chuyen-tu-dong .ten-canh { font-size: 17px; }
.nhac-ten { display: inline; min-height: 0 !important; padding: 0 1px; border: 0; border-radius: 3px; background: none; font: inherit; line-height: inherit;
  color: inherit; text-decoration: underline dotted 1px; text-underline-offset: 3px; cursor: pointer; }
.nhac-ten.nhac-qgp { color: var(--chu-qgp); }
.nhac-ten.nhac-vnch { color: var(--chu-vnch); }
.nhac-ten.nhac-dia-danh { color: #23402f; }
.nhac-ten:hover, .nhac-ten:focus-visible, .nhac-ten.dang-nhac { background: #ecd99a99; text-decoration-style: solid; }
.nhac-ten { -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.nhac-ten:focus-visible { outline: 2px solid var(--nhan); outline-offset: 1px; }
.dien-bien-cua-don-vi { display: flex; flex-direction: column; gap: 4px; margin: 10px 0; }
.dien-bien-cua-don-vi strong { font-size: 14px; margin-bottom: 2px; }
.dien-bien-cua-don-vi button { text-align: left; font-size: 13px; padding: 6px 9px; background: var(--bang-phu); border-color: var(--vien); }