/* Dao tao + Quiz truc tiep (/dao-tao, /dao-tao/bai, /dao-tao/quan-ly, /quiz, /quiz/soan,
 * /quiz/choi, /quiz/chieu). MOI selector nam duoi #ec-dt va dung tien to dt- (Bootstrap cua Frappe
 * nap toan site: .row/.btn/.card se dinh). Doi file -> python -m ecentric_workspace.dao_tao.pages.assets --stamp */

body > header, body > footer, body > nav.navbar, header.navbar, .navbar.navbar-light,
.web-page-header, #navbarSupportedContent, .navbar-collapse, .web-footer, footer.web-footer { display:none !important; }
body { padding:0 !important; margin:0 !important; background:#f5f6fa !important; }
body main { padding-top:0 !important; }
body .main-section, body main.container, body main.fluid, body .page_content, body .page-content {
  margin:0 !important; padding:0 !important; max-width:none !important; }
#ec-dt { display:grid; grid-template-columns:248px minmax(0,1fr); min-height:100vh; width:100%; }
#ec-dt.dt-full { display:block; }
#ec-dt > .ec-shell-mount { position:sticky; top:0; height:100vh; overflow:auto; }
#ec-dt > main.dt-main { min-width:0; background:var(--ground); }
@media (max-width:900px) { #ec-dt { grid-template-columns:minmax(0,1fr); } #ec-dt > .ec-shell-mount { display:none; } }

#ec-dt {
  --ground:#f5f6fa; --surface:#fff; --ink:#111827; --ink2:#374151; --ink3:#6b7280; --ink4:#9ca3af;
  --line:#e5e7eb; --line2:#f1f2f6; --navy:#2C3DA6; --navy-d:#1f2c80; --wash:#eef0fb; --navy-line:#c9d0f0;
  --gold:#f5b800; --gold-ink:#3a2c00; --ok:#17683a; --ok-bg:#e7f6ec; --warn:#8a5a08; --warn-bg:#fdf3e2;
  --bad:#b42318; --bad-bg:#fdecea; --violet:#46178f; --violet-d:#2f0f62;
  --c1:#e21b3c; --c2:#1368ce; --c3:#d89e00; --c4:#26890c; --c5:#864cbf; --c6:#0aa3a3;
  --r:12px; --shadow:0 1px 2px rgba(17,24,39,.05);
  font-family:'Inter',-apple-system,"Segoe UI",Roboto,sans-serif; font-size:14px; line-height:1.5; color:var(--ink);
}
#ec-dt *, #ec-dt *::before, #ec-dt *::after { box-sizing:border-box; }
:where(#ec-dt) button, :where(#ec-dt) input, :where(#ec-dt) select, :where(#ec-dt) textarea { font:inherit; color:inherit; }
#ec-dt :focus-visible { outline:2px solid var(--navy); outline-offset:2px; }
:where(#ec-dt) a { color:var(--navy); }
:where(#ec-dt) :is(h1,h2,h3,h4) { margin:0; color:var(--ink); letter-spacing:-.01em; }
:where(#ec-dt) p { margin:0; }
#ec-dt [hidden] { display:none !important; }

.dt-wrap { max-width:1180px; margin:0 auto; padding:20px 24px 80px; display:flex; flex-direction:column; gap:16px; }
.dt-wrap.dt-narrow { max-width:820px; }
@media (max-width:640px) { .dt-wrap { padding:14px 12px 96px; } }
.dt-row { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.dt-sp { flex:1; }
.dt-muted { color:var(--ink3); }
.dt-small { font-size:12.5px; }
.dt-grid2 { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:14px; }
.dt-grid3 { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:14px; }

/* ---- nut ---- */
.dt-b { appearance:none; display:inline-flex; align-items:center; justify-content:center; gap:6px; border-radius:9px;
  border:1px solid var(--line); background:var(--surface); color:var(--ink2); font-weight:600; font-size:13.5px;
  padding:8px 14px; cursor:pointer; text-decoration:none; white-space:nowrap; line-height:1.2; }
.dt-b:hover { border-color:var(--navy-line); color:var(--navy); text-decoration:none; }
.dt-b:disabled { opacity:.55; cursor:not-allowed; }
.dt-b.pri { background:var(--navy); border-color:var(--navy); color:#fff; }
.dt-b.pri:hover { background:var(--navy-d); color:#fff; }
.dt-b.gold { background:var(--gold); border-color:var(--gold); color:var(--gold-ink); }
.dt-b.violet { background:var(--violet); border-color:var(--violet); color:#fff; }
.dt-b.ghost { border-color:transparent; background:transparent; }
.dt-b.ghost:hover { background:var(--line2); }
.dt-b.danger { color:var(--bad); }
.dt-b.sm { padding:5px 10px; font-size:12.5px; border-radius:8px; }
.dt-b.lg { padding:13px 22px; font-size:16px; border-radius:12px; }
.dt-b svg, .dt-ico { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; flex:none; }
.dt-b.busy { position:relative; color:transparent !important; }
.dt-b.busy::after { content:""; position:absolute; width:14px; height:14px; border-radius:50%;
  border:2px solid rgba(127,127,127,.35); border-top-color:#888; animation:dt-spin .7s linear infinite; }
@keyframes dt-spin { to { transform:rotate(360deg); } }

/* ---- the / khung ---- */
.dt-panel { background:var(--surface); border:1px solid var(--line); border-radius:var(--r); box-shadow:var(--shadow); }
.dt-pad { padding:16px 18px; }
.dt-hero { border-radius:16px; padding:22px 24px; color:#fff; display:flex; gap:18px; align-items:center; flex-wrap:wrap;
  background:linear-gradient(120deg,#2C3DA6 0%,#46178f 60%,#864cbf 100%); }
.dt-hero h1 { color:#fff; font-size:24px; }
.dt-hero p { color:#e3e6fb; margin-top:4px; }
.dt-hero .dt-stat { background:rgba(255,255,255,.14); border-radius:12px; padding:10px 14px; min-width:110px; }
.dt-hero .dt-stat b { display:block; font-size:22px; }
.dt-hero .dt-stat span { font-size:12px; color:#e3e6fb; }
.dt-h2 { font-size:16px; font-weight:700; }
.dt-chip { display:inline-flex; align-items:center; gap:4px; border-radius:999px; padding:2px 9px; font-size:12px;
  font-weight:600; background:var(--line2); color:var(--ink2); }
.dt-chip.ok { background:var(--ok-bg); color:var(--ok); } .dt-chip.warn { background:var(--warn-bg); color:var(--warn); }
.dt-chip.bad { background:var(--bad-bg); color:var(--bad); } .dt-chip.nv { background:var(--wash); color:var(--navy); }
.dt-tabs { display:flex; gap:4px; border-bottom:1px solid var(--line); overflow-x:auto; }
.dt-tab { appearance:none; background:none; border:0; border-bottom:2px solid transparent; padding:10px 14px;
  font-weight:600; color:var(--ink3); cursor:pointer; white-space:nowrap; }
.dt-tab[aria-selected="true"] { color:var(--navy); border-bottom-color:var(--navy); }
.dt-empty { text-align:center; color:var(--ink3); padding:36px 16px; }
.dt-skel { height:12px; border-radius:6px; background:linear-gradient(90deg,#eef0f4,#f7f8fb,#eef0f4); background-size:200% 100%;
  animation:dt-sh 1.2s infinite; margin:8px 0; }
@keyframes dt-sh { to { background-position:-200% 0; } }
.dt-err { background:var(--bad-bg); color:var(--bad); border-radius:10px; padding:12px 14px; }

/* ---- form ---- */
.dt-f { display:flex; flex-direction:column; gap:4px; }
.dt-f > label, .dt-lbl { font-size:12.5px; font-weight:600; color:var(--ink2); }
.dt-in, .dt-sel, .dt-ta { width:100%; border:1px solid var(--line); border-radius:9px; padding:8px 10px; background:#fff; }
.dt-ta { min-height:90px; resize:vertical; }
.dt-in:focus, .dt-sel:focus, .dt-ta:focus { border-color:var(--navy); outline:none; box-shadow:0 0 0 3px var(--wash); }
.dt-in.bad, .dt-ta.bad { border-color:var(--bad); }
.dt-ferr { color:var(--bad); font-size:12px; }
.dt-sw { position:relative; width:38px; height:22px; flex:none; }
.dt-sw input { opacity:0; width:0; height:0; position:absolute; }
.dt-sw span { position:absolute; inset:0; background:#d1d5db; border-radius:999px; transition:.15s; cursor:pointer; }
.dt-sw span::after { content:""; position:absolute; left:3px; top:3px; width:16px; height:16px; background:#fff; border-radius:50%; transition:.15s; }
.dt-sw input:checked + span { background:var(--navy); }
.dt-sw input:checked + span::after { transform:translateX(16px); }
.dt-seg { display:inline-flex; background:var(--line2); border-radius:10px; padding:3px; gap:2px; flex-wrap:wrap; }
.dt-seg button { appearance:none; border:0; background:transparent; padding:6px 12px; border-radius:8px; font-weight:600; color:var(--ink3); cursor:pointer; }
.dt-seg button[aria-pressed="true"] { background:#fff; color:var(--navy); box-shadow:var(--shadow); }

/* ---- toast / modal ---- */
.dt-toast { position:fixed; left:50%; bottom:24px; transform:translateX(-50%); background:#111827; color:#fff; padding:10px 16px;
  border-radius:10px; z-index:9999; max-width:92vw; box-shadow:0 8px 24px rgba(0,0,0,.2); font-size:14px; }
.dt-toast.bad { background:#c0262d; }   /* toast nam ngoai #ec-dt: khong dung bien --bad */
.dt-modal-bg { position:fixed; inset:0; background:rgba(17,24,39,.45); z-index:9000; display:flex; align-items:center; justify-content:center; padding:16px; }
.dt-modal { background:#fff; border-radius:16px; max-width:560px; width:100%; max-height:90vh; overflow:auto; padding:20px; }

/* ---- nhan vat ---- */
.dt-av { display:inline-block; border-radius:50%; overflow:hidden; flex:none; }
.dt-av svg { display:block; width:100%; height:100%; }
.dt-pcard { display:flex; align-items:center; gap:10px; min-width:0; }
.dt-pcard .dt-nick { font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dt-pcard .dt-mail { font-size:11.5px; color:var(--ink3); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* ---- the bai hoc ---- */
.dt-lesson { display:flex; flex-direction:column; gap:8px; padding:16px; }
.dt-lesson h3 { font-size:15.5px; }
.dt-steps { display:flex; gap:4px; }
.dt-steps i { flex:1; height:5px; border-radius:3px; background:var(--line); }
.dt-steps i.on { background:var(--navy); }
.dt-body { white-space:pre-wrap; word-wrap:break-word; line-height:1.65; font-size:15px; }
.dt-video { position:relative; width:100%; aspect-ratio:16/9; border-radius:12px; overflow:hidden; background:#000; }
.dt-video iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }
.dt-topic { display:flex; gap:12px; align-items:center; padding:12px 14px; border-bottom:1px solid var(--line2); }
.dt-vote { appearance:none; border:1px solid var(--line); background:#fff; border-radius:10px; min-width:56px; padding:6px; cursor:pointer;
  display:flex; flex-direction:column; align-items:center; font-weight:700; }
.dt-vote[aria-pressed="true"] { background:var(--wash); border-color:var(--navy); color:var(--navy); }
.dt-table { width:100%; border-collapse:collapse; }
.dt-table th, .dt-table td { text-align:left; padding:9px 10px; border-bottom:1px solid var(--line2); vertical-align:top; }
.dt-table th { font-size:12px; color:var(--ink3); font-weight:600; }

/* =================================================================== QUIZ =========== */
.dt-qz { min-height:100vh; background:radial-gradient(1200px 600px at 20% -10%,#6a32c9 0%,transparent 60%),
  linear-gradient(160deg,#46178f 0%,#2f0f62 100%); color:#fff; display:flex; flex-direction:column; }
.dt-qz :where(h1,h2,h3) { color:#fff; }
.dt-qtop { display:flex; align-items:center; gap:10px; padding:12px 16px; }
.dt-qtop .dt-pill { background:rgba(255,255,255,.16); border-radius:999px; padding:4px 12px; font-weight:700; font-size:13px; }
.dt-qbody { flex:1; display:flex; flex-direction:column; padding:8px 16px 20px; gap:14px; max-width:720px; width:100%; margin:0 auto; }
.dt-qcard { background:#fff; color:var(--ink); border-radius:16px; padding:18px; box-shadow:0 10px 30px rgba(0,0,0,.25); }
.dt-qcard h2 { color:var(--ink); font-size:20px; line-height:1.35; }
.dt-qimg { width:100%; max-height:38vh; object-fit:contain; border-radius:12px; background:#f3f4f6; display:block; }
.dt-opts { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
@media (max-width:420px) { .dt-opts.long { grid-template-columns:1fr; } }
.dt-opt { appearance:none; border:0; border-radius:14px; min-height:84px; padding:12px; color:#fff; font-weight:700; font-size:16px;
  display:flex; align-items:center; gap:10px; text-align:left; cursor:pointer; box-shadow:0 4px 0 rgba(0,0,0,.25);
  transition:transform .08s; position:relative; word-break:break-word; }
.dt-opt:active { transform:translateY(2px); box-shadow:0 2px 0 rgba(0,0,0,.25); }
.dt-opt .dt-shape { width:34px; height:34px; flex:none; border-radius:8px; background:rgba(255,255,255,.22);
  display:flex; align-items:center; justify-content:center; font-weight:800; }
.dt-opt.c0 { background:var(--c1); } .dt-opt.c1 { background:var(--c2); } .dt-opt.c2 { background:var(--c3); }
.dt-opt.c3 { background:var(--c4); } .dt-opt.c4 { background:var(--c5); } .dt-opt.c5 { background:var(--c6); }
.dt-opt[aria-pressed="true"] { outline:4px solid #fff; outline-offset:-4px; }
.dt-opt.dim { opacity:.35; }
.dt-opt.right::after { content:"✓"; position:absolute; right:12px; top:8px; font-size:22px; }
.dt-opts.tiles .dt-opt { min-height:28vh; justify-content:center; font-size:30px; }
.dt-timer { display:flex; align-items:center; gap:10px; }
.dt-bar { flex:1; height:8px; background:rgba(255,255,255,.2); border-radius:4px; overflow:hidden; }
.dt-bar i { display:block; height:100%; background:#fff; border-radius:4px; transition:width .25s linear; }
.dt-big { font-size:28px; font-weight:800; text-align:center; }
.dt-center { text-align:center; display:flex; flex-direction:column; align-items:center; gap:12px; padding:24px 8px; }
.dt-code-in { font-size:30px; letter-spacing:.3em; text-align:center; font-weight:800; border-radius:14px; border:0; padding:14px; width:100%;
  max-width:320px; color:var(--ink); }
.dt-res { border-radius:18px; padding:26px 18px; text-align:center; font-weight:800; font-size:26px; }
.dt-res.ok { background:#26890c; } .dt-res.bad { background:#e21b3c; } .dt-res.part { background:#d89e00; } .dt-res.none { background:rgba(255,255,255,.15); }
.dt-res small { display:block; font-size:15px; font-weight:600; margin-top:6px; opacity:.95; }
.dt-board { display:flex; flex-direction:column; gap:8px; }
.dt-brow { display:flex; align-items:center; gap:10px; background:rgba(255,255,255,.12); border-radius:12px; padding:8px 12px; }
.dt-brow.me { background:#fff; color:var(--ink); }
.dt-brow .dt-rk { width:28px; font-weight:800; text-align:center; }
.dt-brow .dt-sc { font-weight:800; margin-left:auto; }
.dt-brow .dt-mail { color:inherit; opacity:.75; }
.dt-slider { width:100%; accent-color:#fff; height:36px; }
.dt-pinbox { position:relative; border-radius:12px; overflow:hidden; touch-action:none; cursor:crosshair; }
.dt-pinbox img { width:100%; display:block; }
.dt-pin { position:absolute; width:26px; height:26px; margin:-26px 0 0 -13px; pointer-events:none; }
.dt-zone { position:absolute; border:3px solid #26890c; background:rgba(38,137,12,.25); pointer-events:none; }
.dt-zone.circle { border-radius:50%; }
.dt-dot { position:absolute; width:10px; height:10px; margin:-5px 0 0 -5px; border-radius:50%; background:#e21b3c; border:2px solid #fff; }
.dt-olist { display:flex; flex-direction:column; gap:8px; }
.dt-oitem { display:flex; align-items:center; gap:8px; background:#fff; color:var(--ink); border-radius:12px; padding:10px 12px; font-weight:600; }
.dt-oitem .dt-sp { min-width:0; }
.dt-mrow { display:grid; grid-template-columns:1fr auto 1fr; gap:8px; align-items:center; }
.dt-mrow .dt-oitem { min-height:48px; }
.dt-cloud { display:flex; flex-wrap:wrap; gap:10px 16px; justify-content:center; align-items:center; padding:12px; }
.dt-cloud span { font-weight:800; line-height:1; }

/* nhan vat - trinh trang tri */
.dt-avpick { display:flex; flex-wrap:wrap; gap:8px; }
.dt-avpick button { appearance:none; border:2px solid transparent; border-radius:10px; background:rgba(255,255,255,.12);
  padding:6px; cursor:pointer; color:#fff; min-width:44px; min-height:44px; font-weight:600; }
.dt-avpick button[aria-pressed="true"] { border-color:#fff; background:rgba(255,255,255,.28); }
.dt-avpick .dt-sw8 { width:26px; height:26px; border-radius:50%; display:block; }

/* ---- may chieu ---- */
.dt-proj { min-height:100vh; display:flex; flex-direction:column; background:linear-gradient(160deg,#46178f 0%,#2f0f62 100%); color:#fff; }
.dt-proj :where(h1,h2,h3) { color:#fff; }   /* tieu de tren nen tim (truoc ra mau muc - kho doc tren may chieu) */
.dt-proj .dt-ptop { display:flex; align-items:center; gap:14px; padding:14px 22px; }
.dt-proj .dt-pmain { flex:1; display:flex; flex-direction:column; gap:18px; padding:8px 28px 18px; min-height:0; }
.dt-proj .dt-pbar { display:flex; align-items:center; gap:10px; padding:12px 22px; background:rgba(0,0,0,.25); flex-wrap:wrap; }
.dt-proj .dt-qtitle { background:#fff; color:var(--ink); border-radius:16px; padding:18px 24px; font-size:clamp(20px,2.6vw,36px);
  font-weight:800; text-align:center; line-height:1.25; }
.dt-proj .dt-opts .dt-opt { min-height:clamp(70px,11vh,130px); font-size:clamp(16px,1.9vw,28px); }
.dt-joincode { background:#fff; color:var(--ink); border-radius:18px; padding:14px 22px; display:flex; gap:22px; align-items:center; }
.dt-joincode b { font-size:clamp(34px,5vw,64px); letter-spacing:.12em; color:var(--violet); }
.dt-lobby { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:10px; align-content:start; overflow:auto; }
.dt-lobby .dt-pc { background:rgba(255,255,255,.12); border-radius:12px; padding:8px; display:flex; align-items:center; gap:8px; min-width:0; }
.dt-ring { width:84px; height:84px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:32px; font-weight:800;
  background:conic-gradient(#fff var(--p,100%),rgba(255,255,255,.18) 0); position:relative; flex:none; }
.dt-ring::before { content:""; position:absolute; inset:7px; border-radius:50%; background:#3a137a; }
.dt-ring span { position:relative; }
.dt-hbars { display:flex; gap:14px; align-items:flex-end; height:30vh; justify-content:center; }
.dt-hbars .dt-hb { width:min(120px,18vw); display:flex; flex-direction:column; align-items:center; gap:6px; height:100%; justify-content:flex-end; }
.dt-hbars .dt-hb i { display:block; width:100%; border-radius:10px 10px 0 0; min-height:6px; }
.dt-podium { display:flex; align-items:flex-end; justify-content:center; gap:16px; }
.dt-podium .dt-pod { display:flex; flex-direction:column; align-items:center; gap:6px; width:min(220px,26vw); }
.dt-podium .dt-step { width:100%; border-radius:14px 14px 0 0; background:rgba(255,255,255,.18); display:flex; align-items:flex-start;
  justify-content:center; font-size:42px; font-weight:900; padding-top:10px; }
.dt-flag { background:#fff7e6; color:#7a4b00; border-radius:10px; padding:8px 10px; font-size:13px; }
.dt-side { background:rgba(255,255,255,.08); border-radius:14px; padding:12px; display:flex; flex-direction:column; gap:8px; }

/* ---- trinh soan ---- */
.dt-ed { display:grid; grid-template-columns:260px minmax(0,1fr); gap:16px; align-items:start; }
@media (max-width:980px) { .dt-ed { grid-template-columns:1fr; } }
.dt-qnav { display:flex; flex-direction:column; gap:6px; position:sticky; top:12px; max-height:calc(100vh - 24px); overflow:auto; }
.dt-qnav button { appearance:none; text-align:left; border:1px solid var(--line); background:#fff; border-radius:10px; padding:8px 10px; cursor:pointer;
  display:flex; gap:8px; align-items:center; }
.dt-qnav button[aria-current="true"] { border-color:var(--navy); background:var(--wash); }
.dt-qnav button.bad { border-color:var(--bad); }
.dt-qnav .dt-n { width:22px; height:22px; border-radius:6px; background:var(--line2); display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; flex:none; }
.dt-tpick { display:grid; grid-template-columns:repeat(auto-fill,minmax(118px,1fr)); gap:8px; }
.dt-tpick button { appearance:none; border:1px solid var(--line); background:#fff; border-radius:10px; padding:8px; cursor:pointer; font-weight:600; font-size:12.5px; }
.dt-tpick button[aria-pressed="true"] { border-color:var(--navy); background:var(--wash); color:var(--navy); }
.dt-optrow { display:flex; gap:8px; align-items:center; }
.dt-optrow .dt-mark { width:28px; height:28px; border-radius:8px; flex:none; color:#fff; display:flex; align-items:center; justify-content:center; font-weight:800; }
.dt-prize { display:grid; grid-template-columns:130px 1fr 90px 1fr 36px; gap:8px; align-items:center; }
@media (max-width:700px) { .dt-prize { grid-template-columns:1fr 1fr; } }
.dt-pinedit { position:relative; max-width:520px; user-select:none; touch-action:none; }
.dt-pinedit img { width:100%; display:block; border-radius:10px; }

/* 13/11 (Hoan): o nhap tren nen tim cua man nguoi choi bi chu trang tren nen trang */
.dt-qz .dt-in, .dt-qz .dt-sel, .dt-qz .dt-ta { color:var(--ink); }
/* Bang xep hang tren may chieu - de doc tu xa */
.dt-proj :where(h1) { font-size:clamp(30px,4vw,56px); margin:6px 0 10px; text-align:center; }
.dt-proj .dt-board { display:flex; flex-direction:column; gap:10px; }
.dt-proj .dt-brow { background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.14); border-radius:16px; padding:12px 18px; color:#fff; font-size:20px; }
.dt-proj .dt-brow .dt-nick { font-size:22px; }
.dt-proj .dt-brow .dt-mail { color:#d6c8ff; opacity:1; font-size:13px; }
.dt-proj .dt-brow .dt-rk { width:40px; height:40px; flex:none; border-radius:50%; background:rgba(255,255,255,.18); display:grid; place-items:center; font-size:18px; }
.dt-proj .dt-board .dt-brow:nth-child(1) .dt-rk { background:#ffc21a; color:#2a1600; }
.dt-proj .dt-board .dt-brow:nth-child(2) .dt-rk { background:#dfe5f0; color:#1f2937; }
.dt-proj .dt-board .dt-brow:nth-child(3) .dt-rk { background:#e9a66b; color:#3b1d06; }
.dt-proj .dt-brow .dt-sc { color:#ffd45c; font-size:26px; }
.dt-proj .dt-brow .dt-tname { min-width:200px; font-weight:700; }
.dt-proj .dt-brow .dt-tname small { display:block; font-weight:500; font-size:13px; color:#d6c8ff; }
/* Chon nhieu dap an: o da chon phai thay ro (truoc chi co vien mong) */
.dt-opt[aria-pressed="true"] { outline:5px solid #fff; outline-offset:-5px; box-shadow:0 0 0 3px rgba(255,255,255,.35); }
.dt-opt .dt-tick { margin-left:auto; width:30px; height:30px; flex:none; border-radius:50%; border:3px solid rgba(255,255,255,.75); display:grid; place-items:center; font-size:18px; line-height:1; }
.dt-opt[aria-pressed="true"] .dt-tick { background:#fff; color:#26890c; border-color:#fff; }
.dt-opt { touch-action:manipulation; -webkit-tap-highlight-color:transparent; }

/* Power-up moi 5 cau + bao cau cuoi x2 (Hoan 13/11) */
.dt-pwcard { background:#fff; color:var(--ink); border-radius:16px; padding:14px; display:flex; flex-direction:column; gap:10px; box-shadow:0 8px 24px rgba(20,10,60,.25); }
.dt-pwcard.done { background:rgba(255,255,255,.14); color:#fff; text-align:center; }
.dt-pwcard .dt-small { color:var(--ink3); }
.dt-pwbtn { appearance:none; border:2px solid #e3dcff; background:#f6f3ff; color:var(--ink); border-radius:14px; padding:12px; display:flex; align-items:center; gap:12px; text-align:left; font:inherit; cursor:pointer; touch-action:manipulation; }
.dt-pwbtn:active { transform:translateY(1px); }
.dt-pwbtn b { display:block; font-size:17px; }
.dt-pwbtn small { display:block; color:var(--ink3); font-size:13px; }
.dt-pwic { font-size:28px; width:40px; text-align:center; flex:none; }
.dt-pwbar { display:flex; flex-wrap:wrap; gap:8px; justify-content:center; }
.dt-pwuse { appearance:none; border:0; border-radius:999px; padding:9px 14px; background:#ffbf00; color:#2a1600; font-weight:800; font-size:14px; cursor:pointer; touch-action:manipulation; }
.dt-pwchip { border-radius:999px; padding:6px 12px; background:rgba(255,255,255,.18); color:#fff; font-weight:700; font-size:13px; }
.dt-opt.gone { opacity:.3; text-decoration:line-through; }
.dt-x2chip { display:inline-block; margin-left:6px; padding:0 8px; border-radius:999px; background:#ffbf00; color:#2a1600; font-weight:900; }
.dt-x2lead { text-align:center; font-size:26px; font-weight:900; color:#ffd45c; animation:dtx2pop .5s cubic-bezier(.2,1.6,.4,1) both; }
.dt-x2lead b { font-size:56px; display:block; line-height:1; }
.dt-x2 { position:fixed; inset:0; z-index:50; display:grid; place-items:center; background:radial-gradient(circle at 50% 45%, #6a2bd1 0%, #2f0f62 70%); }
.dt-x2[hidden] { display:none; }
.dt-x2 > div { display:flex; flex-direction:column; align-items:center; gap:12px; animation:dtx2pop .6s cubic-bezier(.2,1.6,.4,1) both; }
.dt-x2 b { font-size:clamp(140px,22vw,320px); line-height:.9; font-weight:900; color:#ffc21a; text-shadow:0 10px 0 rgba(0,0,0,.25); }
.dt-x2 span { font-size:clamp(28px,3.4vw,56px); font-weight:900; color:#fff; letter-spacing:2px; }
.dt-x2 small { font-size:clamp(16px,1.6vw,26px); color:#e9ddff; }
@keyframes dtx2pop { from { opacity:0; transform:scale(.6); } }
.dt-note { align-self:center; border-radius:14px; padding:10px 18px; font-weight:800; font-size:clamp(16px,1.6vw,24px); }
.dt-note.x2 { background:#ffbf00; color:#2a1600; }
.dt-note.pw { background:rgba(255,255,255,.14); color:#fff; border:1px solid rgba(255,255,255,.25); }
.dt-steals { align-self:center; display:flex; flex-direction:column; gap:6px; background:rgba(226,27,60,.22); border:1px solid rgba(255,255,255,.25); border-radius:14px; padding:10px 18px; color:#fff; font-size:clamp(16px,1.6vw,24px); animation:dtx2pop .5s cubic-bezier(.2,1.6,.4,1) both; }
/* 13/11 (Hoan): the nguoi choi o sanh cho may chieu to hon, email khong tran ra ngoai */
.dt-proj .dt-lobby { grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:10px; }
.dt-proj .dt-lobby .dt-pc { padding:8px 12px; border-radius:16px; background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.18); gap:12px; overflow:hidden; }
.dt-proj .dt-lobby .dt-pcard { flex:1; min-width:0; overflow:hidden; }
.dt-proj .dt-lobby .dt-pcard > span:last-child { flex:1; min-width:0; overflow:hidden; }
.dt-proj .dt-lobby .dt-nick { display:block; font-size:18px; color:#fff; }
.dt-proj .dt-lobby .dt-mail { display:block; font-size:13px; color:#d6c8ff; }
.dt-proj .dt-lobby .dt-pcard br { display:none; }
.dt-proj .dt-lobby .dt-av { width:44px !important; height:44px !important; }
/* === UX hotfix 13/11 truoc 10:00 === */
#ec-dt .dt-proj { height:100vh; min-height:0; font-size:clamp(16px,1.15vw,22px); }
#ec-dt .dt-proj .dt-pmain { overflow-y:auto; }
.dt-proj .dt-small { font-size:.8em; }
.dt-proj .dt-b.ghost:hover { background:rgba(255,255,255,.16); }
.dt-proj .dt-lobby { grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:10px; }
.dt-proj .dt-lobby .dt-pc { padding:8px 12px; }
.dt-proj .dt-lobby .dt-av { width:44px !important; height:44px !important; }
.dt-proj .dt-lobby .dt-nick { font-size:18px; }
.dt-proj .dt-ring { width:120px; height:120px; font-size:48px; }
.dt-proj .dt-ring::before { inset:10px; }
.dt-proj .dt-hbars { height:22vh; }
.dt-proj .dt-hbars b, .dt-proj .dt-hbars span { font-size:26px; font-weight:800; }
.dt-proj .dt-board .dt-brow { padding:8px 18px; }
.dt-proj .dt-brow .dt-pcard br { display:none; }
.dt-proj .dt-brow .dt-mail { display:inline; margin-left:10px; }
.dt-proj .dt-table .dt-mail { color:#d6c8ff; }
.dt-opt.right { padding-right:44px; }
.dt-opt.right::after { top:50%; transform:translateY(-50%); }
.dt-qcard .dt-opt[aria-pressed="true"] { outline:4px solid #111827; outline-offset:2px; box-shadow:none; }
.dt-qcard .dt-opt.dim[aria-pressed="true"] { opacity:.75; }
.dt-qcard .dt-opt[aria-pressed="true"]::before { content:"Bạn chọn"; position:absolute; left:8px; top:-10px; background:#111827; color:#fff; font-size:11px; font-weight:700; padding:1px 8px; border-radius:999px; }
.dt-pwcard.done { display:block; }
.dt-qz .dt-b.sm, .dt-pwuse { min-height:44px; }
.dt-pwcard [data-pick="skip"] { min-width:140px; }
.dt-opt { text-shadow:0 1px 2px rgba(0,0,0,.35); }
/* Danh sach nhan giai o man Ve dich */
.dt-proj .dt-awards { max-width:1400px; width:100%; align-self:center; }
.dt-proj .dt-awards .dt-table th { color:#d6c8ff; }
.dt-proj .dt-awards .dt-table td, .dt-proj .dt-awards .dt-table th { border-color:rgba(255,255,255,.15); padding:6px 10px; }

/* Trang bai hoc kieu bai viet nhu Tin noi bo (Hoan 18/11, phuong an A) */
#ec-dt .dt-lwrap { max-width:1120px; display:grid; gap:16px; }
#ec-dt .dt-lhero { position:relative; overflow:hidden; border-radius:14px; background:#141b4d; min-height:210px; display:flex; align-items:flex-end; }
#ec-dt .dt-lhero-img { position:absolute; right:0; top:0; width:62%; height:100%; object-fit:cover; opacity:.55; }
#ec-dt .dt-lhero-fade { position:absolute; inset:0; background:linear-gradient(90deg,#141b4d 38%,rgba(20,27,77,.25) 100%); }
#ec-dt .dt-lhero-in { position:relative; display:grid; gap:10px; padding:28px 30px; max-width:640px; }
#ec-dt .dt-lhero h1 { margin:0; color:#fff; font-size:28px; line-height:1.25; font-weight:800; letter-spacing:-.01em; }
#ec-dt .dt-lchip { display:inline-flex; align-items:center; padding:3px 10px; border-radius:999px; background:rgba(255,255,255,.14); color:#fff; font-weight:600; }
#ec-dt .dt-lmeta { margin:0; color:#d6dbf5; font-size:13.5px; }
#ec-dt .dt-lgrid { display:flex; flex-wrap:wrap; gap:16px; align-items:flex-start; }
#ec-dt .dt-lmain { flex:999 1 560px; min-width:0; display:grid; gap:16px; }
#ec-dt .dt-lside { flex:1 1 260px; max-width:310px; display:grid; gap:14px; position:sticky; top:16px; }
#ec-dt .dt-lart { padding:28px 30px; }
#ec-dt .dt-llede { margin:0 0 18px; font-size:16px; line-height:1.65; color:var(--ink2); }
#ec-dt .dt-lcard { padding:16px; display:grid; gap:10px; }
#ec-dt .dt-lcap { font-size:11.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--ink3); }
#ec-dt .dt-ltoc { gap:0; }
#ec-dt .dt-ltoc .dt-lcap { margin-bottom:8px; }
#ec-dt .dt-ltoc a { padding:6px 10px; border-left:2px solid var(--line); color:var(--ink3); text-decoration:none; font-size:14px; line-height:1.4; }
#ec-dt .dt-ltoc a:hover { color:var(--navy); }
#ec-dt .dt-ltoc a.on { border-left-color:var(--navy); color:var(--navy); font-weight:600; }
#ec-dt .dt-lrw { display:flex; gap:10px; align-items:center; justify-content:space-between; font-size:13.5px; color:var(--ink2); }
#ec-dt .dt-lrw a { color:var(--ink); font-weight:600; text-decoration:none; }
#ec-dt .dt-lrw a:hover { color:var(--navy); }
#ec-dt .dt-chip.gold { background:#fff6d6; color:var(--warn); }
#ec-dt .dt-lrw .dt-chip { white-space:nowrap; flex:none; }
@media (max-width:900px) { #ec-dt .dt-lside { position:static; max-width:none; } #ec-dt .dt-ltoc { display:none; } }
@media (max-width:640px) { #ec-dt .dt-lart { padding:20px 18px; } #ec-dt .dt-lhero h1 { font-size:22px; } #ec-dt .dt-lhero-in { padding:22px 20px; } #ec-dt .dt-lhero-img { width:100%; opacity:.25; } }

/* Noi dung co dinh dang (ec_dt_rich.js) */
#ec-dt .dt-rich { display:grid; gap:12px; font-size:15px; line-height:1.7; color:#4b5563; }
#ec-dt .dt-rich p { margin:0; }
#ec-dt .dt-rich b { color:var(--ink); }
#ec-dt .dt-rh { margin:16px 0 0; font-size:18px; line-height:1.35; color:var(--ink); scroll-margin-top:16px; }
#ec-dt .dt-rh3 { margin:8px 0 0; font-size:15.5px; color:var(--ink); }
#ec-dt .dt-rlist { margin:0; padding-left:22px; display:grid; gap:4px; }
#ec-dt .dt-rnote { padding:10px 14px; border-radius:8px; background:var(--wash); color:var(--navy-d); font-size:14.5px; }
#ec-dt .dt-rnote.warn { background:var(--warn-bg); color:var(--warn); }
#ec-dt .dt-rhr { border:0; border-top:1px solid var(--line); margin:6px 0; }
#ec-dt .dt-rdl { border:1px solid var(--line); border-radius:10px; }
#ec-dt .dt-rdl-row { display:grid; grid-template-columns:minmax(0,220px) minmax(0,1fr); gap:6px 16px; padding:10px 14px; font-size:14.5px; line-height:1.55; }
#ec-dt .dt-rdl-row + .dt-rdl-row { border-top:1px solid var(--line2); }
#ec-dt .dt-rdl-row b { color:var(--ink); }
#ec-dt .dt-rfacts { display:flex; flex-wrap:wrap; border:1px solid var(--line); border-radius:10px; }
#ec-dt .dt-rfact { flex:1 1 150px; display:grid; gap:2px; padding:12px 16px; }
#ec-dt .dt-rfact + .dt-rfact { border-left:1px solid var(--line); }
#ec-dt .dt-rfact b { font-size:22px; line-height:1.2; font-weight:800; color:var(--navy); }
#ec-dt .dt-rfact span { font-size:13px; line-height:1.45; color:var(--ink3); }
#ec-dt .dt-rcmp { width:100%; border-collapse:collapse; font-size:14.5px; line-height:1.55; }
#ec-dt .dt-rcmp th, #ec-dt .dt-rcmp td { border:1px solid var(--line); padding:10px 12px; vertical-align:top; text-align:left; }
#ec-dt .dt-rcmp th { width:96px; font-size:12.5px; font-weight:700; background:#f9fafb; }
#ec-dt .dt-rcmp th.bad { color:var(--bad); } #ec-dt .dt-rcmp th.ok { color:var(--ok); }
#ec-dt .dt-rfig { margin:4px 0; display:grid; gap:6px; }
#ec-dt .dt-rfig img, #ec-dt .dt-rfig video { width:100%; display:block; border-radius:10px; border:1px solid var(--line); background:#0d1330; }
#ec-dt .dt-rfig video { aspect-ratio:16/9; }
#ec-dt .dt-rfig figcaption { font-size:13px; font-style:italic; color:var(--ink3); }
#ec-dt .dt-rck { border:1px solid var(--line); border-radius:10px; }
#ec-dt .dt-rck-hd { display:flex; justify-content:space-between; align-items:center; padding:10px 14px; border-bottom:1px solid var(--line2); font-size:13.5px; color:var(--ink3); }
#ec-dt .dt-rck-hd b { color:var(--ink); }
#ec-dt .dt-rck-row { display:flex; gap:12px; align-items:center; min-height:44px; padding:8px 14px; font-size:14.5px; color:var(--ink2); cursor:pointer; }
#ec-dt .dt-rck-row + .dt-rck-row { border-top:1px solid var(--line2); }
#ec-dt .dt-rck-row input { width:18px; height:18px; accent-color:var(--ok); flex:none; }
#ec-dt .dt-rck-row.done { background:#f6fbf8; }
#ec-dt .dt-rck-row.done span { color:var(--ink3); text-decoration:line-through; }
@media (max-width:640px) { #ec-dt .dt-rdl-row { grid-template-columns:minmax(0,1fr); } #ec-dt .dt-rfact + .dt-rfact { border-left:0; border-top:1px solid var(--line); } #ec-dt .dt-rfact { flex-basis:100%; } }
