/* v1.7.59 – BS124: thi đua làm lại (theo Canvas Gemini 844f55b5b0a1caa7 + 04a509926a545074) – wizard 3 bước + thẻ nhiệm vụ học sinh */
.tdw { --tk: #0F766E; --tk2: #115E59; --tl: #F0FDFA; --tb: #99F6E4; max-width: 920px; margin: 0 auto; padding-bottom: 96px; }
.tdw-h { display: flex; align-items: center; gap: 12px; margin: 4px 0 12px; }
.tdw-h h1 { margin: 0; font-size: 22px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tdw-h p { margin: 2px 0 0; }
.tdw-back { flex: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line, #e2e8f0); background: var(--card, #fff); color: var(--ink, #334155); display: grid; place-items: center; }
.tdw-back:hover { background: var(--soft, #f8fafc); }
.tdw-back svg, .tdw-ib svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tdw-pill { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; background: var(--tl); color: var(--tk); border: 1px solid var(--tb); font-size: 13px; font-weight: 600; white-space: nowrap; }
/* thanh bước gọn */
.tdw-st { list-style: none; margin: 0 0 14px; padding: 10px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; background: var(--card, #fff); border: 1px solid var(--line, #e2e8f0); border-radius: 14px; }
.tdw-st li { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--muted, #64748b); }
.tdw-st li.tdw-sep { width: 18px; height: 2px; background: var(--line, #e2e8f0); border-radius: 2px; }
.tdw-so { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: var(--soft, #f1f5f9); }
.tdw-st li.on { color: var(--tk); } .tdw-st li.on .tdw-so { background: var(--tk); color: #fff; }
.tdw-st li b { font-weight: 600; }
.tdw-st button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; border: 0; background: none; color: var(--tk2); font: 600 14.5px inherit; cursor: pointer; padding: 0 4px; border-radius: 10px; }
.tdw-st button:hover { background: var(--tl); }
.tdw-st button span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--tl); border: 1px solid var(--tb); }
.tdw-st button .ic { width: 15px; height: 15px; }
/* thẻ */
.tdw-c { padding: 18px 20px; margin-bottom: 14px; border-radius: 16px; display: grid; gap: 14px; }
.tdw-c label { display: grid; gap: 6px; font-weight: 600; font-size: 14.5px; }
.tdw-c label .small { font-weight: 400; }
.tdw-ch { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.tdw-ch h2 { margin: 0; font-size: 17px; } .tdw-ch p { margin: 3px 0 0; }
.tdw-h3 { margin: 4px 0 -4px; font-size: 14.5px; }
.tdw-seg { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--soft, #f1f5f9); border: 1px solid var(--line, #e2e8f0); }
.tdw-seg button { min-height: 44px; padding: 0 16px; border: 0; border-radius: 9px; background: transparent; font: 500 14.5px inherit; color: var(--muted, #475569); cursor: pointer; }
.tdw-seg button.on { background: var(--card, #fff); color: var(--tk); font-weight: 700; box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.tdw-g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; }
.tdw-g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tdw-note { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--tl); color: var(--tk2); font-size: 14px; }
.tdw-note .ic { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.tdw-u { display: flex; align-items: center; gap: 0; position: relative; }
.tdw-u input { width: 100%; padding-right: 54px; font-weight: 600; }
.tdw-u > span { position: absolute; right: 12px; color: var(--muted, #64748b); font-weight: 500; pointer-events: none; }
.tdw-u.sm { display: inline-flex; width: 104px; vertical-align: middle; } .tdw-u.sm input { min-height: 40px; }
.tdw-req { color: #BE123C; }
/* bộ chọn đề */
.tdw-tim { display: grid; grid-template-columns: 1fr 220px; gap: 10px; }
.tdw-tim .sc-find { margin: 0; }
.tdw-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tdw-chips button { min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line, #e2e8f0); background: var(--card, #fff); font: 500 13.5px inherit; color: var(--ink, #334155); cursor: pointer; }
.tdw-chips button.on { background: var(--tk); border-color: var(--tk); color: #fff; font-weight: 600; }
.tdw-dem { margin: -4px 0 -6px; }
.tdw-dsd { border: 1px solid var(--line, #e2e8f0); border-radius: 14px; overflow: hidden; }
.tdw-de { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line, #e2e8f0); background: var(--card, #fff); }
.tdw-de:first-child { border-top: 0; }
.tdw-de:hover { background: var(--soft, #f8fafc); }
.tdw-de.off { opacity: .75; }
.tdw-de-t { display: grid; gap: 3px; min-width: 0; } .tdw-de-t b { font-size: 14.5px; }
.tdw-de-n { display: flex; gap: 8px; flex: none; }
.tdw-de-n .btn { min-height: 40px; }
.tdw-them { display: flex; justify-content: center; }
.tdw-ghim { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--tk); background: var(--tl); flex-wrap: wrap; }
.tdw-ghim > div:not(.tdw-de-n) { flex: 1; min-width: 200px; display: grid; gap: 2px; }
.tdw-ok { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--tk); color: #fff; } .tdw-ok .ic { width: 15px; height: 15px; }
.tdw-eye { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--tk); }
.tdw-may { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; border: 1.5px dashed var(--line, #cbd5e1); background: var(--soft, #f8fafc); }
.tdw-may > div { flex: 1; } .tdw-may p { margin: 2px 0 0; }
.tdw-mi { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--card, #fff); border: 1px solid var(--line, #e2e8f0); color: var(--tk); }
.tdw-mi .ic { width: 20px; height: 20px; }
/* bước 2 */
.tdw-lop { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line, #e2e8f0); background: var(--card, #fff); min-height: 56px; }
.tdw-lop.on { border-color: var(--tk); background: var(--tl); }
.tdw-lop > div { display: grid; gap: 2px; }
.tdw-lop.chk { cursor: pointer; font-weight: 400; display: flex; } .tdw-lop.chk input { width: 22px; height: 22px; accent-color: var(--tk); }
.tdw-moi { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.tdw-moil { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tdw-moil li { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 12px; border: 1px solid var(--line, #e2e8f0); flex-wrap: wrap; }
.tdw-moil li > span:first-child { flex: 1; display: flex; align-items: center; gap: 8px; font-weight: 600; min-width: 160px; word-break: break-all; }
.tdw-moil .ic { width: 18px; height: 18px; color: var(--tk); }
/* bước 3: mục đích */
.tdw-md { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tdw-md button { position: relative; min-height: 84px; padding: 12px; border-radius: 14px; border: 1px solid var(--line, #e2e8f0); background: var(--card, #fff); text-align: left; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; cursor: pointer; font: inherit; color: var(--ink, #0f172a); }
.tdw-md button .tdw-mi { width: 34px; height: 34px; border-radius: 10px; background: var(--soft, #f1f5f9); border: 0; color: var(--ink, #334155); } .tdw-md button .tdw-mi .ic { width: 17px; height: 17px; }
.tdw-md button .tdw-ok { position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; } .tdw-md button .tdw-ok .ic { width: 13px; height: 13px; }
.tdw-md button.on { border: 2px solid var(--tk); background: var(--tl); padding: 11px; } .tdw-md button.on .tdw-mi { background: var(--tk); color: #fff; }
.tdw-md b { font-size: 14.5px; }
/* bước 3: thể lệ lai */
.tdw-tl { border-radius: 14px; border: 1px solid var(--line, #e2e8f0); padding: 14px 16px; display: grid; gap: 10px; }
.tdw-tl ul, .tdw-tl ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tdw-tl li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.6; font-size: 14.5px; }
.tdw-tlh { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tdw-tlh h3 { margin: 0; font-size: 15px; }
.tdw-k { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--ink, #0f172a); color: #fff; }
.tdw-tag { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--tk2); background: #CCFBF1; padding: 2px 10px; border-radius: 999px; }
.tdw-tl.a { background: rgba(240, 253, 250, .6); border-color: var(--tb); } .tdw-tl.a .tdw-k { background: var(--tk); }
.tdw-dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--tk); margin-top: 10px; }
.tdw-nut { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid #5EEAD4; background: var(--card, #fff); color: var(--tk2); font: 700 13.5px inherit; cursor: pointer; vertical-align: middle; }
.tdw-nut .ic { width: 14px; height: 14px; color: var(--tk); }
.tdw-nut.sel { padding: 0 4px 0 8px; } .tdw-nut select { border: 0; background: transparent; font: 700 13.5px inherit; color: var(--tk2); min-height: 34px; cursor: pointer; padding: 0 4px; }
.tdw-tl.b { background: var(--soft, #f8fafc); padding: 0; gap: 0; }
.tdw-tl.b .tdw-tlh { width: 100%; min-height: 52px; padding: 10px 16px; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.tdw-tl.b .tdw-tlh > .ic { width: 17px; height: 17px; color: var(--muted, #64748b); }
.tdw-tl.b .tdw-k { background: #CBD5E1; color: #334155; }
.tdw-cv { margin-left: auto; display: grid; transition: transform .2s; transform: rotate(90deg); } .tdw-cv .ic { width: 18px; height: 18px; }
.tdw-tl.b.mo .tdw-cv { transform: rotate(-90deg); }
.tdw-tl.b ul { padding: 10px 16px 14px; border-top: 1px solid var(--line, #e2e8f0); color: var(--muted, #475569); }
.tdw-tl.b li .ic { flex: none; width: 16px; height: 16px; margin-top: 4px; color: var(--muted, #64748b); }
.tdw-soan li { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line, #e2e8f0); background: var(--card, #fff); align-items: center; }
.tdw-soan li.sua { display: grid; gap: 8px; border-color: var(--tk); }
.tdw-st2 { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--soft, #f1f5f9); color: var(--muted, #475569); }
.tdw-tx { flex: 1; min-width: 0; }
.tdw-act { display: flex; gap: 2px; flex: none; }
.tdw-ib { width: 44px; height: 44px; border-radius: 10px; border: 0; background: transparent; color: var(--muted, #64748b); display: grid; place-items: center; cursor: pointer; }
.tdw-ib .ic, .tdw-ib svg { width: 18px; height: 18px; }
.tdw-ib:hover:not(:disabled) { background: var(--soft, #f1f5f9); color: var(--ink, #0f172a); } .tdw-ib.xoa:hover { color: #BE123C; background: #FFF1F2; }
.tdw-ib:disabled { opacity: .35; cursor: default; }
.tdw-soan textarea, .tdw-moid textarea { width: 100%; font: inherit; }
.tdw-moid { display: grid; gap: 8px; padding: 12px; border-radius: 12px; border: 1px solid #5EEAD4; background: rgba(240, 253, 250, .5); }
.tdw-add { justify-self: start; min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1.5px dashed #14B8A6; background: rgba(240, 253, 250, .5); color: var(--tk2); font: 600 14.5px inherit; cursor: pointer; }
.tdw-add:disabled { opacity: .5; cursor: default; }
/* thanh dưới cố định */
.tdw-f { position: sticky; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 -4px; padding: 12px 16px; background: var(--card, #fff); border: 1px solid var(--line, #e2e8f0); border-radius: 16px 16px 0 0; box-shadow: 0 -4px 16px rgba(15, 23, 42, .06); }
.tdw-f p { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; min-width: 0; }
.tdw-f p .tdw-dot { margin-top: 0; }
.tdw-f #wzsum { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tdw-fa { display: flex; gap: 10px; flex: none; }
.tdw-fa .btn { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.tdw-fa .btn .ic { width: 16px; height: 16px; }
.tdw .sc-err { margin: 0 0 12px; }
/* thẻ nhiệm vụ học sinh */
.tdn { max-width: 520px; padding: 18px; border-radius: 20px; display: grid; gap: 14px; margin: 0 0 14px; }
.tdn-top { display: flex; gap: 8px; flex-wrap: wrap; }
.tdn-pv { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 10px; border-radius: 999px; background: #F0FDFA; color: #0F766E; border: 1px solid #99F6E4; font-size: 13px; font-weight: 600; }
.tdn-pv .ic { width: 15px; height: 15px; }
.tdn-moi { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 10px; border-radius: 999px; background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; font-size: 13px; font-weight: 600; }
.tdn-moi span { width: 7px; height: 7px; border-radius: 50%; background: #F59E0B; }
.tdn h2 { margin: 0; font-size: 19px; line-height: 1.35; }
.tdn-dem { margin: 0; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--soft, #f1f5f9); font-size: 14px; }
.tdn-dem .ic { width: 18px; height: 18px; color: #0F766E; } .tdn-dem b { margin-left: auto; font-size: 17px; font-variant-numeric: tabular-nums; }
.tdn-dem.mo { background: #ECFDF5; color: #065F46; }
.tdn-so { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tdn-so div { display: grid; gap: 2px; text-align: center; padding: 10px 6px; border-radius: 12px; border: 1px solid var(--line, #e2e8f0); }
.tdn-so b { font-size: 18px; } .tdn-so span { font-size: 12.5px; color: var(--muted, #64748b); }
.tdn-mt { padding: 12px 14px; border-radius: 14px; background: #F0FDFA; border: 1px solid #99F6E4; display: grid; gap: 6px; }
.tdn-mt p { margin: 0; line-height: 1.55; } .tdn-mt .ic { width: 15px; height: 15px; vertical-align: -2px; }
.tdn-eye { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #0F766E; margin: 0; }
.tdn-eye .ic { width: 15px; height: 15px; }
.tdn-tl { display: grid; gap: 8px; } .tdn-tl p { margin: 0; }
.tdn-tl ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tdn-tl li { display: flex; gap: 8px; line-height: 1.55; font-size: 14.5px; } .tdn-tl li .ic { flex: none; width: 16px; height: 16px; margin-top: 4px; color: #0F766E; }
.tdn-all { justify-self: start; min-height: 44px; border: 0; background: none; color: #0F766E; font: 600 14.5px inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 0; }
.tdn-all .ic { width: 16px; height: 16px; }
.tdn-cta { width: 100%; min-height: 48px; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.tdn-cta .ic { width: 18px; height: 18px; }
.tdn-goi { margin: -6px 0 0; text-align: center; }
.tdn-sheet h2 { margin: 0 0 12px; font-size: 18px; }
.tdn-sheet section { margin-bottom: 14px; }
.tdn-sheet ol { margin: 8px 0 0; padding-left: 26px; display: grid; gap: 8px; line-height: 1.55; }
.tdw-xem .tdn { margin: 10px auto 0; box-shadow: none; border: 1px solid var(--line, #e2e8f0); }
@media (max-width: 760px) {
  .tdw-g2, .tdw-g3, .tdw-tim, .tdw-moi { grid-template-columns: 1fr; }
  .tdw-md { grid-template-columns: 1fr 1fr; }
  .tdw-c { padding: 14px; }
  .tdw-seg { width: 100%; } .tdw-seg button { flex: 1; padding: 0 8px; }
  .tdw-st li b, .tdw-st button { font-size: 13px; } .tdw-st li:not(.on):not(.tdw-sep) b { display: none; } .tdw-st { padding: 6px 10px; }
  .tdw-de { flex-direction: column; align-items: stretch; } .tdw-de-n .btn { flex: 1; }
  .tdw-may { flex-wrap: wrap; } .tdw-may .btn { width: 100%; }
  .tdw-f { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 12px; margin: 0 -12px; border-radius: 14px 14px 0 0; }
  .tdw-fa .btn { flex: 1; justify-content: center; }
  .tdw-soan li { flex-wrap: wrap; } .tdw-act { width: 100%; justify-content: flex-end; margin-top: -4px; }
  .tdw-tag { margin-left: 0; }
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tdw { --tl: rgba(13, 148, 136, .16); --tb: rgba(94, 234, 212, .35); --tk: #5EEAD4; --tk2: #99F6E4; }
  :root:not([data-theme="light"]) .tdw-tag, :root:not([data-theme="light"]) .tdn-mt, :root:not([data-theme="light"]) .tdn-pv { background: rgba(13, 148, 136, .16); color: #99F6E4; border-color: rgba(94, 234, 212, .35); } }
[data-theme="dark"] .tdw { --tl: rgba(13, 148, 136, .16); --tb: rgba(94, 234, 212, .35); --tk: #5EEAD4; --tk2: #99F6E4; }
[data-theme="dark"] .tdw-tag, [data-theme="dark"] .tdn-mt, [data-theme="dark"] .tdn-pv { background: rgba(13, 148, 136, .16); color: #99F6E4; border-color: rgba(94, 234, 212, .35); }
[data-theme="dark"] .tdw-st li.on .tdw-so, [data-theme="dark"] .tdw-ok, [data-theme="dark"] .tdw-chips button.on, [data-theme="dark"] .tdw-md button.on .tdw-mi { color: #042F2E; }
.tdw-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; } .tdw-meta .wz-chip { font-size: 12px; padding: 1px 8px; }
.tdw-de { padding: 9px 14px; }
/* bước 2: danh sách học sinh (Canvas View A) */
.tdw-hsb { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-radius: 12px; background: var(--soft, #f1f5f9); }
.tdw-hsb p { margin: 0; } .tdw-bo { color: #B45309; font-weight: 600; }
.tdw-hsl { border: 1px solid var(--line, #e2e8f0); border-radius: 14px; overflow: hidden; }
.tdw-hs { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 6px 12px; border-top: 1px solid var(--line, #e2e8f0); background: var(--card, #fff); }
.tdw-hs:first-child { border-top: 0; } .tdw-hs.bo { background: #FFFBEB; }
.tdw-c .tdw-hsc { display: flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 400; cursor: pointer; flex: 1; min-width: 180px; }
.tdw-hsc input { width: 22px; height: 22px; accent-color: var(--tk); flex: none; } .tdw-hsc > span { display: grid; }
.tdw-c .tdw-gio { display: block; } .tdw-gio select { min-height: 40px; font-size: 13.5px; }
.tdw-ly { width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 0 0 6px 34px; }
.tdw-ly button { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid #FCD34D; background: #fff; font: 500 13px inherit; color: #92400E; cursor: pointer; }
.tdw-ly button.on { background: #F59E0B; border-color: #F59E0B; color: #fff; }
.tdw-ly .wz-mc { flex: 1; min-width: 180px; min-height: 40px; }
[data-theme="dark"] .tdw-hs.bo { background: rgba(245, 158, 11, .1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tdw-hs.bo { background: rgba(245, 158, 11, .1); } }
@media (max-width: 760px) { .tdw-ly { padding-left: 0; } .tdw-gio { width: 100%; } .tdw-gio select { width: 100%; } }
.tdw-lb { font-style: normal; }
@media (max-width: 760px) { .tdw-st .tdw-lb { display: none; } .tdw-st li.tdw-sep { width: 10px; } .tdw-st { flex-wrap: nowrap; } }
@media (max-width: 760px) { .tdw-meta .wz-chip:not(.ok) { display: none; } .tdw-de { padding: 10px 12px; gap: 8px; } .tdw-de-n .btn { min-height: 44px; } }
.tdw-f .hb-ly { position: absolute; left: 8px; right: 8px; bottom: calc(100% + 8px); margin: 0; box-shadow: 0 8px 24px rgba(15, 23, 42, .14); }   /* thẻ lý do nút khoá nổi NGAY TRÊN thanh – nút chính không xê dịch */
@media (max-width: 960px) { .tdw-f { bottom: calc(57px + env(safe-area-inset-bottom)); } }   /* thanh đáy điện thoại (#bnav, 56px) che mất thanh thao tác */
/* trang điều hành (Canvas 4fcfc939) – giai đoạn Chuẩn bị */
.tdh-h { align-items: flex-start; gap: 12px; } .tdh-h > div { flex: 1; min-width: 0; }
.tdh-h .tdw-back { margin-top: 4px; }
.tdh-act { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 14px; }
.tdh-act .btn { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; } .tdh-act .btn .ic { width: 17px; height: 17px; }
.tdh-more { position: relative; }
.tdh-more summary { list-style: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line, #e2e8f0); background: var(--card, #fff); display: grid; place-items: center; cursor: pointer; }
.tdh-more summary::-webkit-details-marker { display: none; }
.tdh-more summary svg { width: 20px; height: 20px; fill: currentColor; }
.tdh-more > div { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 200px; padding: 6px; border-radius: 12px; border: 1px solid var(--line, #e2e8f0); background: var(--card, #fff); box-shadow: 0 12px 28px rgba(15, 23, 42, .14); }
.tdh-del { width: 100%; min-height: 44px; border: 0; border-radius: 8px; background: none; text-align: left; padding: 0 12px; font: 600 14.5px inherit; color: #BE123C; cursor: pointer; }
.tdh-del:hover { background: #FFF1F2; }
.tdh-cb { display: grid; gap: 14px; margin-bottom: 14px; }
.tdh-cb .card { margin: 0; padding: 16px 18px; border-radius: 16px; display: grid; gap: 8px; }
.tdh-cb h2 { margin: 0; font-size: 16px; }
.tdh-big { margin: 0; font-size: 16px; font-weight: 600; } .tdh-cb p { margin: 0; }
.tdh-tt .btn, .tdh-row .btn { justify-self: start; min-height: 40px; display: inline-flex; align-items: center; gap: 6px; } .tdh-cb .btn .ic { width: 16px; height: 16px; }
.tdh-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line, #e2e8f0); }
.tdh-row > div { flex: 1; min-width: 200px; display: grid; gap: 2px; }
.tdh-tl ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; line-height: 1.55; }
.tdh-xem summary { cursor: pointer; color: var(--accent, #0f766e); font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.tdh-xem[open] summary { margin-bottom: 4px; }
.tdh-sl { border: 1px solid var(--line, #e2e8f0); border-radius: 12px; padding: 10px 12px; display: grid; gap: 8px; }
.tdh-sl ol { list-style: decimal; margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.tdh-sl li { display: flex; gap: 6px; align-items: flex-start; } .tdh-sl li label { flex: 1; } .tdh-sl textarea { width: 100%; font: inherit; }
@media (max-width: 760px) { .tdh-act .btn.primary { flex: 1 1 100%; justify-content: center; } .tdh-sl li { flex-wrap: wrap; } }
.tdh-live { display: grid; gap: 12px; margin-bottom: 14px; }
.tdh-lcs { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.tdh-lc { margin: 0; padding: 14px 16px; border-radius: 16px; display: grid; gap: 10px; }
.tdh-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.tdh-3 div { padding: 8px 4px; border-radius: 10px; background: var(--soft, #f1f5f9); display: grid; } .tdh-3 b { font-size: 18px; } .tdh-3 span { font-size: 12.5px; color: var(--muted, #64748b); }
.tdh-bar { position: relative; height: 10px; border-radius: 999px; background: var(--soft, #e2e8f0); }
.tdh-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: #0F766E; }
.tdh-bar s { position: absolute; top: -4px; bottom: -4px; width: 2px; background: #B45309; }
.tdh-act { position: relative; z-index: 25; }   /* menu ⋮ nổi trên các thẻ bên dưới */
/* danh sách thi đua (Canvas 4fcfc939 "Danh sách") */
.tdl-cup { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; margin: 0 0 14px; }
.tdl-cupt { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: #B45309; }
.tdl-cupt .ic { width: 16px; height: 16px; }
.tdl-cup a { flex: 1 1 240px; display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 8px; padding: 8px 12px; min-height: 52px; border-radius: 12px; border: 1px solid #FDE68A; background: #FFFBEB; color: inherit; text-decoration: none; }
.tdl-cup a .ic { grid-row: 1 / 3; grid-column: 2; width: 16px; height: 16px; color: #B45309; }
.tdl { padding: 14px 16px; border-radius: 16px; display: grid; gap: 12px; }
.tdl-tabs { margin: 0; overflow-x: auto; }
.tdl-n { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--soft, #f1f5f9); font-size: 12px; margin-left: 4px; }
.tdl-tabs button.on .tdl-n { background: #CCFBF1; color: #115E59; }
.tdl-loc { display: grid; grid-template-columns: minmax(220px, 1fr) auto; gap: 10px; align-items: center; } .tdl-loc .sc-find { margin: 0; }
.tdl-ds { border: 1px solid var(--line, #e2e8f0); border-radius: 14px; overflow: hidden; }
.tdl-r { display: grid; grid-template-columns: 1fr auto auto; grid-template-areas: "t s a" "m s a"; column-gap: 12px; row-gap: 4px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line, #e2e8f0); background: var(--card, #fff); }
.tdl-r:first-child { border-top: 0; } .tdl-r:hover { background: var(--soft, #f8fafc); }
.tdl-t { grid-area: t; font-weight: 600; color: inherit; text-decoration: none; min-width: 0; } .tdl-t:hover { text-decoration: underline; }
.tdl-m { grid-area: m; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13px; color: var(--muted, #64748b); }
.tdl-m .ic { width: 14px; height: 14px; vertical-align: -2px; margin-right: 3px; } .tdl-m .sc-loai { font-size: 12px; }
.tdl-s { grid-area: s; } .tdl-a { grid-area: a; min-height: 40px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; } .tdl-a .ic { width: 14px; height: 14px; }
.tdl-pg { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; } .tdl-pg > span { margin-right: auto; }
.tdl-pg .btn { min-height: 40px; min-width: 40px; }
@media (max-width: 760px) { .tdl-loc { grid-template-columns: 1fr; } .tdl-r { grid-template-columns: 1fr auto; grid-template-areas: "t t" "m m" "s a"; } .tdl { padding: 12px; } }
[data-theme="dark"] .tdl-cup a { background: rgba(245, 158, 11, .08); border-color: rgba(245, 158, 11, .3); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tdl-cup a { background: rgba(245, 158, 11, .08); border-color: rgba(245, 158, 11, .3); } }
/* khiếu nại – học sinh (Gemini 0d5f6504) */
.kn { display: grid; gap: 12px; margin-bottom: 14px; }
.kn-bn { margin: 0; display: flex; gap: 8px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: #FFFBEB; border: 1px solid #FDE68A; color: #78350F; font-size: 14.5px; }
.kn-bn .ic { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.kn-c { margin: 0; padding: 14px 16px; border-radius: 16px; display: grid; gap: 10px; } .kn-c h3 { margin: 0; font-size: 16px; }
.kn-ds { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.kn-ds li { display: flex; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line, #e2e8f0); }
.kn-ds li > div { flex: 1; min-width: 0; } .kn-ds p { margin: 0; } .kn-ds li.sai { background: #FFF7F7; border-color: #FECDD3; }
.kn-ic { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #DCFCE7; color: #15803D; } .kn-ic .ic { width: 15px; height: 15px; }
.sai .kn-ic { background: #FFE4E6; color: #BE123C; }
.kn-mo { min-height: 44px; font-weight: 600; color: #B45309; }
.kn-pg { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; } .kn-pg .btn { min-height: 40px; min-width: 40px; }
.kn-a { display: grid; gap: 8px; padding: 12px; border-radius: 12px; border: 1px solid var(--line, #e2e8f0); } .kn-a p { margin: 0; }
.kn-b { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; font-size: 12px; color: var(--muted, #64748b); text-align: center; }
.kn-b li { display: grid; justify-items: center; gap: 4px; } .kn-b span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--soft, #f1f5f9); font-weight: 700; }
.kn-b li.on { color: #0F766E; font-weight: 600; } .kn-b li.on span { background: #0F766E; color: #fff; } .kn-b .ic { width: 13px; height: 13px; }
.kn-tc { padding: 8px 10px; border-radius: 10px; background: #FFF1F2; color: #9F1239; font-size: 14px; }
.kn-f h2 { margin: 0; font-size: 18px; } .kn-f { display: grid; gap: 10px; }
.kn-ro { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--soft, #f1f5f9); }
.kn-r { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; } .kn-r legend { font-weight: 600; margin-bottom: 6px; }
.kn-r label { display: flex; gap: 10px; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line, #e2e8f0); cursor: pointer; }
.kn-r label:has(input:checked) { border: 2px solid #0F766E; background: #F0FDFA; padding: 0 13px; } .kn-r input { width: 20px; height: 20px; accent-color: #0F766E; }
.kn-ly { display: grid; gap: 6px; font-weight: 600; } .kn-ly textarea { width: 100%; font: inherit; }
.kn-gui { width: 100%; min-height: 48px; font-size: 16px; position: sticky; bottom: 0; }
.kn-ok { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 16px 0; } .kn-ok > .ic { width: 44px; height: 44px; color: #0F766E; }
/* khiếu nại – thầy cô (Gemini 9065aa75) */
.knt { padding: 16px 18px; border-radius: 16px; display: grid; gap: 10px; margin-bottom: 12px; } .knt h2 { margin: 0; font-size: 17px; } .knt p { margin: 0; }
.knt-ch { display: flex; flex-wrap: wrap; gap: 6px; }
.knt-ly { display: grid; gap: 6px; padding: 10px 12px; border-radius: 12px; background: var(--soft, #f8fafc); }
.knt-xem { justify-self: start; min-height: 44px; font-weight: 600; }
.knt-ds { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; } .knt-ds li { display: grid; gap: 2px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line, #e2e8f0); }
.knt-a { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; } .knt-a .btn { min-height: 44px; }
@media (max-width: 760px) { .knt-a .btn { flex: 1 1 100%; } .knt { padding: 14px; } }
.tdw-cmo { justify-self: start; min-height: 44px; font-weight: 600; }
@media (max-width: 760px) { .tdw-f #wzsum { white-space: normal; font-size: 13px; line-height: 1.35; } }   /* Gemini: tóm tắt không bị cắt "…" trên 360px */

/* ===== v1.7.60 – hộp chọn đề (Gemini 26/11) + bảng xác nhận toàn bộ học sinh ===== */
.tdw-chon { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px; border: 1.5px dashed var(--line, #cbd5e1); border-radius: 14px; background: var(--soft, #f8fafc); flex-wrap: wrap; }
.tdw-chon > div { display: grid; gap: 2px; min-width: 220px; flex: 1; }
.tdw-chon .btn { min-height: 44px; padding: 0 22px; }
.modal.wzpm > .card { width: min(880px, 96vw); max-width: none; max-height: 85vh; padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.wzp { display: flex; flex-direction: column; min-height: 0; height: 100%; max-height: 85vh; }
.wzp-h { padding: 16px 20px 12px; border-bottom: 1px solid var(--line, #e2e8f0); display: grid; gap: 10px; background: var(--card, #fff); }
.wzp-h h2 { margin: 0; font-size: 18px; }
.wzp-h .tdw-chips { max-height: 96px; overflow: auto; }
.wzp-h .tdw-chips button { min-height: 36px; }
.wzp-l { flex: 1; min-height: 160px; overflow: auto; padding: 6px 12px; display: grid; gap: 6px; align-content: start; }
.wzp-r { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border: 1.5px solid var(--line, #e2e8f0); border-radius: 12px; background: var(--card, #fff); cursor: pointer; outline: none; }
.wzp-r:hover { background: var(--soft, #f8fafc); }
.wzp-r:focus-visible { box-shadow: 0 0 0 2px #0D9488; }
.wzp-r.on { border-color: #0F766E; background: #F0FDFA; }
.wzp-r.off { cursor: not-allowed; opacity: .72; }
.wzp-o { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #94a3b8; box-sizing: border-box; }
.wzp-r.on .wzp-o { border: 6px solid #0F766E; }
.wzp-ly { color: #B45309; }
.wzp-sk { height: 58px; border-radius: 12px; background: linear-gradient(90deg, #f1f5f9, #e2e8f0, #f1f5f9); background-size: 200% 100%; animation: wzpsk 1.2s linear infinite; }
@keyframes wzpsk { to { background-position: -200% 0; } }
.wzp-0 { padding: 16px 6px; }
.wzp-f { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--line, #e2e8f0); background: var(--card, #fff); }
.wzp-f .grow { flex: 1; }
.wzp-f #pdc { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 55%; }
@media (max-width: 760px) {
  .modal.wzpm > .card { width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .wzp { max-height: 100dvh; }
  .wzp-r { grid-template-columns: 22px minmax(0, 1fr); } .wzp-r > .btn { grid-column: 2; justify-self: start; }
  .wzp-f { flex-wrap: wrap; } .wzp-f #pdc { max-width: 100%; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .wzp-sk { animation: none; } }
/* bảng học sinh: hiện TẤT CẢ em, đầu bảng dính, cuộn trong khung ≤ 540px */
.tdw-hsb2 { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; position: sticky; top: 0; z-index: 2; background: var(--card, #fff); padding: 8px 0; }
.tdw-hsb2 .sc-find { min-width: 240px; flex: 0 1 320px; margin: 0; }
.tdw-hst-w { max-height: 540px; overflow: auto; border: 1px solid var(--line, #e2e8f0); border-radius: 12px; }
.tdw-hst { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.tdw-hst th { position: sticky; top: 0; z-index: 1; background: var(--soft, #f8fafc); text-align: left; font-weight: 600; font-size: 12.5px; color: #475569; padding: 8px 10px; border-bottom: 1px solid var(--line, #e2e8f0); }
.tdw-hst td { padding: 6px 10px; border-bottom: 1px solid var(--line, #eef2f7); vertical-align: middle; }
.tdw-hst tr:last-child td { border-bottom: 0; }
.tdw-hst .c1 { width: 56px; }
.tdw-hst tr.bo td { background: #FFFBEB; }
.tdw-hst select, .tdw-hst input.wz-mc { min-height: 36px; width: 100%; min-width: 120px; }
.tdw-hst select:disabled, .tdw-hst input:disabled { opacity: .45; }
.tdw-ck { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.tdw-ck input { width: 18px; height: 18px; accent-color: #0F766E; }
@media (max-width: 760px) {
  .tdw-hst-w { max-height: none; overflow: visible; border: 0; }
  .tdw-hst thead { display: none; }
  .tdw-hst, .tdw-hst tbody, .tdw-hst tr, .tdw-hst td { display: block; width: 100%; }
  .tdw-hst tr { border: 1px solid var(--line, #e2e8f0); border-radius: 12px; margin-bottom: 8px; padding: 6px 4px; }
  .tdw-hst td { border: 0; padding: 4px 8px; }
  .tdw-hst td.c1 { width: auto; display: inline-block; } .tdw-hst td:nth-child(2) { display: inline-block; width: auto; }
}
.wzp { --tk: #0F766E; --tl: #F0FDFA; }
.tdw-ck { white-space: nowrap; }
.wzp-h .tdw-chips { justify-content: flex-start; }
@media (max-width: 760px) { .modal.wzpm { padding: 0 !important; align-items: stretch; } .modal.wzpm > .card { width: 100% !important; margin: 0 !important; } }
/* v1.7.60 – lý do riêng của thầy cô (Gemini): ô gõ ngay trong dòng + nút "Lý do tự tạo (N)" */
.tdw-lop .tdw-lyp { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; }
.tdw-lop .tdw-lyp svg { width: 16px; height: 16px; }
.tdw-lym { display: grid; gap: 6px; padding: 8px; border: 1.5px solid #0F766E; border-radius: 10px; background: #F0FDFA; min-width: 240px; }
.tdw-lym-i { display: flex; align-items: center; gap: 6px; } .tdw-lym-i input { flex: 1; min-height: 34px; }
.tdw-lym-c { display: flex; align-items: center; gap: 6px; } .tdw-lym-c input { accent-color: #0F766E; }
.tdw-lym-a { display: flex; justify-content: flex-end; gap: 6px; }
.tdw-lyql { list-style: none; margin: 8px 0 12px; padding: 0; display: grid; gap: 6px; max-height: 50vh; overflow: auto; }
.tdw-lyql li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid var(--line, #e2e8f0); border-radius: 10px; }
.tdw-lym .tdw-lym-c { display: flex !important; flex-direction: row; align-items: center; gap: 6px; margin: 0; font-weight: 400; }
.tdw-lym .tdw-lym-c input { width: 16px !important; height: 16px; min-height: 0 !important; flex: none; margin: 0; }
.tdw-lym-i span { flex: none; }
.wzp-tt { display: flex; align-items: center; gap: 12px; } .wzp-tt h2 { margin: 0; } .wzp-tt p { margin: 2px 0 0; }
.wzp-tt .tdw-mi { width: 40px; height: 40px; border-radius: 12px; background: #F0FDFA; color: #0F766E; display: grid; place-items: center; flex: none; }
.wzp-cr { display: flex; align-items: flex-start; gap: 12px; } .wzp-cr .tdw-chips { flex: 1; } .wzp-cr #pdem { flex: none; padding-top: 8px; }
.tdw-nn { display: none; }
@media (max-width: 760px) { .tdw-nd { display: none; } .tdw-nn { display: inline; } }
