/* LoopiClass v1.7.36 (BS76) – trang chủ phong phú: dải thông báo, cột nổi bật, 8 mẫu thẻ có hình minh hoạ (theo nguyên mẫu Gemini Canvas 21/11) */
.hm-ic{display:inline-grid;place-items:center;border-radius:14px;background:color-mix(in srgb,var(--b) 55%,#fff);flex:none}
.hm-ic svg{width:62%;height:62%}
/* dải thông báo: một dòng, tắt được; khẩn = màu hổ phách */
.hm-strip{display:flex;align-items:center;gap:10px;padding:6px 8px 6px 6px;margin:0 0 16px;border-radius:12px;background:var(--accent-soft);border:1px solid color-mix(in srgb,var(--accent) 22%,transparent);font-size:14px;color:var(--ink)}
.hm-strip .hm-ic{border-radius:9px}
.hm-strip.urg{background:var(--warn-soft);border-color:color-mix(in srgb,var(--warn) 30%,transparent)}
.hm-strip .hm-st{flex:1;min-width:0;font-weight:600}
.hm-strip a{font-weight:600;white-space:nowrap}
.hm-x{border:0;background:none;color:var(--muted);font-size:20px;line-height:1;width:32px;height:32px;border-radius:8px;cursor:pointer;flex:none}
.hm-x:hover{background:var(--soft)}
/* hàng bảng việc + cột nổi bật (giáo viên) */
.tq-row{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:16px;align-items:start}
.tq-row.one{grid-template-columns:minmax(0,1fr)}
.tq-left{min-width:0;display:grid;gap:16px}.tq-left > *{margin:0}
.tq-rail{position:sticky;top:12px}
@media (max-width:1100px){.tq-row{grid-template-columns:minmax(0,1fr)}.tq-rail{position:static}}
/* thẻ */
.hm-card{background:var(--surface);border:1px solid var(--line);border-radius:16px;overflow:hidden;display:flex;flex-direction:column;box-shadow:var(--shadow);transition:transform .15s,box-shadow .15s;position:relative;min-width:0}
.hm-card:hover{transform:translateY(-2px);box-shadow:0 10px 26px rgba(15,23,42,.08)}
.hm-band{display:block;width:100%}
.hm-img{display:block;height:120px;background:#e2e8f0 center/cover}
.hm-bd{padding:14px 16px 16px;display:flex;flex-direction:column;gap:6px;flex:1;min-width:0}
.hm-bd h3{margin:0;font:700 16px/1.35 var(--f-display);color:var(--ink)}
.hm-bd h3 a{color:inherit;text-decoration:none}.hm-bd h3 a:hover{text-decoration:underline}
.hm-bd p{margin:0;font-size:13.5px;color:var(--muted);line-height:1.5}
.hm-ft{display:flex;align-items:center;gap:12px;margin-top:auto;padding-top:6px;flex-wrap:wrap}
.hm-tags{display:flex;gap:6px;flex-wrap:wrap}
.hm-tag{font:600 11.5px/20px var(--f-body);padding:0 8px;border-radius:6px;background:var(--soft);color:var(--ink)}
.hm-tag.ev{background:#dcfce7;color:#166534}.hm-tag.free{background:#ecfeff;color:#0e7490}.hm-tag.dt{background:#eef2ff;color:#3730a3}
.hm-by{display:flex;align-items:center;gap:5px;font-size:12.5px!important}
.hm-ok{width:15px;height:15px;flex:none}
.hm-eye{font:700 11px var(--f-body);letter-spacing:.04em;text-transform:uppercase;color:var(--accent)}
.hm-lk{font-weight:600;font-size:13.5px;margin-top:auto}
.hm-skip{font-size:13px;color:var(--muted)}
.hm-row{flex-direction:row;align-items:flex-start;gap:14px;padding:16px}
.hm-row .hm-bd{padding:0}
.hm-tip h3{font-size:15px}
.hm-stat{padding:16px;gap:12px}
.hm-sh{display:flex;align-items:center;gap:10px}.hm-sh h3{margin:0;font:700 15px var(--f-display)}
.hm-nums{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:10px}
.hm-nums div{background:var(--soft);border-radius:12px;padding:10px 12px;display:grid;gap:2px}
.hm-nums b{font:800 22px var(--f-display);color:var(--ink)}.hm-nums span{font-size:12.5px;color:var(--muted)}
.hm-spark{width:60px;height:16px;margin-top:4px}
/* khu khám phá */
.hm-shelf{margin-top:22px}
.hm-sh-h{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}
.hm-sh-h h2{margin:0;font:700 19px var(--f-display)}
.hm-grid{display:grid;gap:16px}
.hm-grid.g3{grid-template-columns:repeat(3,minmax(0,1fr))}
.hm-grid.g2{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (max-width:960px){.hm-grid.g3{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.hm-grid.g3,.hm-grid.g2{grid-template-columns:minmax(0,1fr)}.hm-row{padding:14px}.hm-strip{font-size:13.5px}}
.hm-feat .hm-card{flex-direction:column}
.hm-feat .hm-band,.hm-feat .hm-img{height:110px}
/* trang chủ công khai */
.tc-disc .tc-w{display:grid;gap:14px}
.tc-disc .hm-sh-h{margin-top:12px}
.tc-disc .hm-extra{margin-top:6px}
:root[data-theme="dark"] .hm-tag.ev{background:#14532d;color:#bbf7d0}:root[data-theme="dark"] .hm-tag.free{background:#164e63;color:#a5f3fc}:root[data-theme="dark"] .hm-tag.dt{background:#312e81;color:#c7d2fe}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .hm-tag.ev{background:#14532d;color:#bbf7d0}:root:not([data-theme="light"]) .hm-tag.free{background:#164e63;color:#a5f3fc}:root:not([data-theme="light"]) .hm-tag.dt{background:#312e81;color:#c7d2fe}}
/* quản trị › trang chủ & thông báo */
.ahm{display:grid;grid-template-columns:minmax(0,1fr) 440px;gap:18px;align-items:start;margin:14px 0 22px}
.ahm-f{display:grid;gap:10px}.ahm-f label{display:grid;gap:4px;font-weight:600;font-size:13.5px}.ahm-f [hidden]{display:none!important}
.ahm-2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ahm-g{border:0;padding:0;display:flex;gap:6px;flex-wrap:wrap}.ahm-g legend{font-weight:600;font-size:13.5px;margin-bottom:4px}
.ahm-g .chip{display:inline-flex;gap:4px;align-items:center;border:1px solid var(--line);border-radius:999px;padding:3px 10px;font-weight:500}
.ahm-pv{display:grid;gap:12px}.ahm-dev{display:grid;gap:4px}
.ahm-desk,.ahm-phone{background:var(--bg);border:1px solid var(--line);border-radius:14px;padding:12px}
.ahm-phone{max-width:300px}
.ahm-mock{display:grid;gap:10px}.ahm-row{display:grid;grid-template-columns:1fr 200px;gap:10px}
.ahm-ph{display:grid;gap:6px}.ahm-ph i{display:block;height:38px;border-radius:10px;background:var(--surface);border:1px solid var(--line)}
.ahm-side .hm-card,.ahm-phone .hm-card{font-size:12px}.ahm-side .hm-band{height:70px!important}
.ahm-run{display:grid;gap:8px}
@media (max-width:1100px){.ahm{grid-template-columns:1fr}}
/* ===== v1.7.36 – trang chủ mới, bố cục thoáng kiểu OLM (nguyên mẫu Gemini Canvas "bố cục thoáng · ít thẻ") ===== */
.hh{max-width:1080px;margin:0 auto;display:grid;gap:28px;padding-bottom:24px}
.hh .hm-strip{margin:0}
.hg{background:linear-gradient(120deg,#0f766e 0%,#115e59 45%,#1e3a8a 100%);border-radius:24px;padding:28px;position:relative;overflow:hidden}
.hg::after{content:"";position:absolute;right:-60px;top:-80px;width:280px;height:280px;border-radius:50%;background:rgba(255,255,255,.07)}
.hg-card{position:relative;z-index:1;border:1.5px solid rgba(255,255,255,.35);border-radius:20px;padding:20px 22px;display:grid;gap:16px;background:rgba(255,255,255,.06)}
.hg-top{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.hg-av{width:56px;height:56px;border-radius:50%;background:#fff;color:#0f766e;display:grid;place-items:center;font:800 19px var(--f-display);flex:none}
.hg-t{flex:1;min-width:220px}.hg-t h1{margin:0;color:#fff;font:800 26px/1.25 var(--f-display)}.hg-t p{margin:4px 0 0;color:#e0f2f1;font-size:15px}.hg-t b{color:#fff}.hg-hot{color:#fde68a!important}
.hg-acts{display:flex;gap:10px;flex-wrap:wrap}
.hg-b{display:inline-flex;align-items:center;gap:8px;border-radius:999px;padding:11px 22px;font:700 15px var(--f-body);border:1.5px solid rgba(255,255,255,.55);color:#fff;background:transparent;text-decoration:none;cursor:pointer;min-height:46px}
.hg-b svg{width:18px;height:18px}.hg-b.pri{background:#fff;color:#0f766e;border-color:#fff}.hg-b.big{padding:13px 28px;font-size:16px}
.hg-b:hover{filter:brightness(.97)}
.hg-row{display:flex;align-items:center;gap:12px;border-top:1px solid rgba(255,255,255,.22);padding-top:14px;color:#e0f2f1;font-size:14.5px;flex-wrap:wrap}
.hg-row b{color:#fff}.hg-row > span:not(.hm-ic){flex:1;min-width:200px}
.hg-o{border:1.5px solid rgba(255,255,255,.55);color:#fff;border-radius:999px;padding:8px 16px;font-weight:700;font-size:14px;text-decoration:none;white-space:nowrap}
.hq{background:var(--surface);border:1px solid var(--line);border-radius:22px;box-shadow:0 10px 30px rgba(15,23,42,.06);display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:6px;padding:14px;margin-top:-46px;position:relative;z-index:2;width:calc(100% - 48px);justify-self:center}
.hq-i{display:grid;justify-items:center;gap:8px;padding:10px 6px;border-radius:14px;text-decoration:none;color:var(--ink);font:600 14px var(--f-body);text-align:center}
.hq-i:hover{background:var(--soft)}
.hq-ic{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;color:var(--c);background:color-mix(in srgb,var(--c) 12%,#fff);position:relative}
.hq-ic svg{width:24px;height:24px}
.hq-b{position:absolute;top:-6px;right:-8px;min-width:20px;height:20px;border-radius:10px;background:var(--crit);color:#fff;font:700 11px/20px var(--f-body);padding:0 5px}
/* băng lớn – bấm tay, không tự chạy */
.hb{position:relative;margin:0 24px}
.hb-track{border-radius:24px;overflow:hidden;box-shadow:0 14px 36px rgba(15,23,42,.10)}
.hb-w{display:none}.hb-w.on{display:block;animation:hbIn .25s ease}
@keyframes hbIn{from{opacity:.4}to{opacity:1}}
.hb-s{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:24px;align-items:center;padding:34px 40px;min-height:290px;background:linear-gradient(120deg,var(--c1),var(--c2));color:#fff}
.hb-l{display:grid;gap:12px;align-content:center}
.hb-eye{justify-self:start;background:rgba(255,255,255,.18);border-radius:999px;padding:5px 12px;font:700 12px var(--f-body);letter-spacing:.04em;text-transform:uppercase}
.hb-l h2{margin:0;font:800 28px/1.25 var(--f-display);color:#fff}.hb-l p{margin:0;color:rgba(255,255,255,.9);font-size:15.5px;line-height:1.55}
.hb-l ul{list-style:none;margin:4px 0 0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:8px 18px}.hb-l li{display:flex;gap:8px;align-items:flex-start;font-size:14.5px}.hb-l li svg{width:18px;height:18px;color:#a7f3d0;flex:none;margin-top:1px}
.hb-by{font-style:italic}
.hb-cta{justify-self:start;background:#fff;color:#0f172a;border-radius:999px;padding:11px 24px;font-weight:700;text-decoration:none;margin-top:6px}
.hb-r{border-radius:18px;overflow:hidden;background:rgba(255,255,255,.12)}.hb-r .hm-band{height:210px!important;width:100%}
.hb-tile{display:grid;place-items:center;height:210px}.hb-tile .hm-ic{border-radius:32px}
.hb-nav{position:absolute;top:50%;transform:translateY(-50%);width:46px;height:46px;border-radius:50%;border:1px solid var(--line);background:var(--surface);color:var(--ink);display:grid;place-items:center;cursor:pointer;box-shadow:0 6px 16px rgba(15,23,42,.12);z-index:2}
.hb-nav svg{width:22px;height:22px}.hb-nav.l{left:-23px}.hb-nav.r{right:-23px}
.hb-dots{display:flex;justify-content:center;gap:8px;margin-top:14px}.hb-dots button{width:9px;height:9px;border-radius:5px;border:0;background:#cbd5e1;cursor:pointer;padding:0}.hb-dots button.on{width:28px;background:var(--accent)}
/* hai thẻ tính năng lớn */
.hfs{display:grid;grid-template-columns:1fr 1fr;gap:22px}
.hf{display:grid;gap:12px;align-content:start;border-radius:24px;padding:26px;background:linear-gradient(135deg,var(--c1),var(--c2));color:#fff;text-decoration:none;min-height:250px;transition:transform .15s,box-shadow .15s}
.hf:hover{transform:translateY(-3px);box-shadow:0 16px 34px rgba(15,23,42,.16)}
.hf-art{display:grid;place-items:center;background:rgba(255,255,255,.14);border-radius:18px;height:120px}.hf-art .hm-ic{border-radius:24px}
.hf-eye{justify-self:start;background:rgba(255,255,255,.22);border-radius:999px;padding:4px 12px;font:700 11.5px var(--f-body);letter-spacing:.05em;text-transform:uppercase}
.hf b{font:800 21px/1.3 var(--f-display)}.hf-p{color:rgba(255,255,255,.88);font-size:14.5px;line-height:1.5}
.hf-go{justify-self:start;display:inline-flex;align-items:center;gap:8px;background:#fff;color:#0f172a;border-radius:999px;padding:10px 20px;font-weight:700;font-size:14.5px;margin-top:4px}.hf-go svg{width:18px;height:18px}
/* khu nội dung */
.hs{display:grid;gap:18px;margin-top:8px}
.hs-h{display:flex;align-items:flex-end;justify-content:space-between;gap:16px}.hs-h h2{margin:0;font:800 26px var(--f-display)}.hs-h p{margin:4px 0 0;color:var(--muted)}
.hs-more{font-weight:700;white-space:nowrap}
.hps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.hps.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.hp{display:grid;background:var(--surface);border:1px solid var(--line);border-radius:22px;overflow:hidden;text-decoration:none;color:var(--ink);transition:transform .15s,box-shadow .15s}
.hp:hover{transform:translateY(-3px);box-shadow:0 14px 30px rgba(15,23,42,.10)}
.hp-cov .hm-band{width:100%;display:block}
.hp-bd{display:grid;gap:6px;padding:16px 18px 20px}.hp-k{font:700 12.5px var(--f-body);color:var(--accent)}.hp-bd b{font:700 17px/1.35 var(--f-display)}.hp-by{color:var(--muted);font-size:13.5px}
.hcs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.hc{display:grid;justify-items:center;text-align:center;gap:10px;background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:26px 20px;text-decoration:none;color:var(--ink)}
.hc:hover{box-shadow:0 12px 26px rgba(15,23,42,.08)}
.hc-ic{width:62px;height:62px;border-radius:50%;display:grid;place-items:center;color:var(--c);background:color-mix(in srgb,var(--c) 13%,#fff)}.hc-ic svg{width:28px;height:28px}
.hc b{font:700 17px var(--f-display)}.hc span{color:var(--muted);font-size:14px;line-height:1.5}
@media (max-width:900px){
  .hh{gap:20px}.hg{padding:16px;border-radius:20px}.hg-card{padding:16px}.hg-t h1{font-size:22px}.hg-acts{width:100%}.hg-b.big{width:100%;justify-content:center}
  .hq{grid-template-columns:repeat(3,1fr);margin-top:-30px;width:calc(100% - 20px);padding:10px}.hq-i{font-size:13px;padding:8px 2px}
  .hb{margin:0}.hb-s{grid-template-columns:1fr;padding:22px 20px;min-height:0;gap:16px}.hb-r{order:-1}.hb-r .hm-band,.hb-tile{height:150px!important}.hb-l h2{font-size:22px}.hb-l ul{grid-template-columns:1fr}
  .hb-nav{display:none}
  .hfs,.hps,.hps.two,.hcs{grid-template-columns:1fr}.hf{min-height:0}.hs-h h2{font-size:21px}
}
.tc-disc .hh-pub{padding:8px 0 0;gap:36px}

/* em chưa có lớp: ô nhập mã lớp trong dải lời chào */
.hg-join{flex-wrap:wrap}.hg-join .sxjoin{display:flex;gap:8px;margin-left:auto}.hg-join .sxjoin input{min-width:150px;padding:8px 12px;border-radius:999px;border:1px solid rgba(255,255,255,.5);text-transform:uppercase}
@media(max-width:640px){.hg-join .sxjoin{width:100%;margin-left:0}.hg-join .sxjoin input{flex:1;min-width:0}}

/* ===== v1.7.36 – vòng rà 1 với Gemini Canvas: bớt dải màu đậm, cảnh giao diện thu nhỏ, dải chào gọn ===== */
.hg{padding:22px 26px 52px;border-radius:28px;background:linear-gradient(125deg,#0f766e 0%,#115e59 58%,#1e3a5f 100%)}
.hg-card{padding:18px 22px;gap:14px}.hg-av{width:50px;height:50px;font-size:17px}.hg-t h1{font-size:23px}.hg-t p{font-size:14.5px}
.hg-row{font-size:14px;padding-top:12px;gap:14px}.hg-row .hg-o{margin-left:auto}
.hg-chip{display:inline-flex;align-items:center;gap:8px;background:rgba(15,23,42,.25);border-radius:999px;padding:6px 14px;color:#fff;font-weight:600}.hg-chip svg{width:16px;height:16px;color:#5eead4}.hg-chip b{color:#fff}
.hq{margin-top:-40px}
.hsc{display:block;width:100%;height:auto;max-height:200px}
.hb-r{background:none;border-radius:0;overflow:visible;display:grid;place-items:center}
.hb-r .hb-scn,.hb-r .hb-cov{width:100%;border-radius:18px;overflow:hidden}.hb-r .hb-scn .hm-band,.hb-r .hb-cov .hm-band{height:200px!important;width:100%}
.hb-s{min-height:264px;padding:30px 40px}.hb-l h2{font-size:26px}
/* thẻ tính năng: nền trắng, khung cảnh pastel theo màu của thẻ */
.hf{background:var(--surface);color:var(--ink);border:1px solid var(--line);box-shadow:0 1px 3px rgba(15,23,42,.04);min-height:0;padding:20px 22px 24px}
.hf:hover{box-shadow:0 12px 28px rgba(15,23,42,.09)}
.hf-art{background:color-mix(in srgb,var(--c) 10%,#fff);height:136px;padding:12px;border-radius:14px}.hf-art .hsc{max-height:112px}
.hf-eye{background:color-mix(in srgb,var(--c) 12%,#fff);color:var(--c)}
.hf b{color:var(--ink);font-size:19px}.hf-p{color:var(--muted)}
.hf-go{background:var(--c);color:#fff}.hf-go.o{background:var(--surface);color:var(--ink);border:1px solid var(--line)}
/* học sinh: hàng công cụ gọn */
.hts{gap:14px}
.ht{display:flex;align-items:center;gap:14px;background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:16px 18px;text-decoration:none;color:var(--ink);box-shadow:0 1px 3px rgba(15,23,42,.04)}
.ht:hover{box-shadow:0 10px 24px rgba(15,23,42,.08)}
.ht-ic{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;flex:none;color:var(--c);background:color-mix(in srgb,var(--c) 12%,#fff)}.ht-ic svg{width:22px;height:22px}
.ht-t{display:grid;gap:2px;flex:1;min-width:0}.ht-t b{font:800 16px var(--f-display)}.ht-t span{color:var(--muted);font-size:13.5px;line-height:1.45}
.ht-go{color:var(--c)}.ht-go svg{width:20px;height:20px}
/* cộng đồng: dải nhấn trên đầu, biểu tượng cạnh tiêu đề, lời mời bấm rõ */
.hc{justify-items:start;text-align:left;position:relative;overflow:hidden;padding:24px 22px 20px;gap:10px}
.hc::before{content:"";position:absolute;left:0;right:0;top:0;height:4px;background:var(--c)}
.hc-h{display:flex;align-items:center;gap:12px}.hc-ic{width:44px;height:44px;border-radius:13px;flex:none}.hc-ic svg{width:22px;height:22px}
.hc>span:not(.hc-h):not(.hc-go){color:var(--text-body,#334155)}
.hc-go{display:inline-flex;align-items:center;gap:6px;color:var(--c)!important;font-weight:700;font-size:14px;margin-top:2px}.hc-go svg{width:16px;height:16px}
@media (max-width:900px){
  .hg{padding:16px 16px 40px}.hq{margin-top:-28px}
  .hb-r{order:-1}.hb-r .hsc{max-height:150px}
  .hh-s .hb-r{display:none}   /* điện thoại học sinh: băng gọn, không tranh (vòng rà 1: trang dài gần 3.000px) */
  .hh-s .hb-s{padding:18px 18px 20px}.hh-s .hb-l h2{font-size:19px}.hh-s .hb-l ul{gap:6px}
  .hf-art{height:116px}
}
.hc .hc-h,.hc .hc-h b{color:var(--ink)}.hg-row .hg-chip{flex:none}
.hg-row > span.hg-chip{flex:none}
.tc-disc .hb-l h2,.tc-disc .hs-h h2{text-align:left}

/* ===== vòng rà 2 với Gemini Canvas: cùng sắc lạnh, nhịp 36px, mũi tên thu vào, chế độ tối, tiếp cận ===== */
.hh{gap:36px}
.hg{background:linear-gradient(130deg,#0f766e 0%,#134e4a 65%,#164e63 100%)}
.hb-nav{width:40px;height:40px}.hb-nav.l{left:-14px}.hb-nav.r{right:-14px}
.hf b{font-weight:700}.hp-bd b,.hc b,.ht-t b{font-weight:700}
.hp-by,.hc>span:not(.hc-h):not(.hc-go),.ht-t span,.hs-h p{font-size:14px}
.hh a,.hh button,.hf,.hp,.hc,.ht{transition:transform .18s cubic-bezier(.2,.8,.2,1),box-shadow .18s}
.hh a:focus-visible,.hh button:focus-visible,.hh input:focus-visible{outline:2.5px solid #14b8a6;outline-offset:2px}
.hb-cta,.hf-go,.hg-b,.hg-o{min-height:42px;display:inline-flex;align-items:center}
.hg-jf{display:flex;gap:8px;flex-wrap:wrap}.hg-jf input{min-height:46px;min-width:180px;border-radius:999px;border:1.5px solid rgba(255,255,255,.6);padding:0 18px;font:700 16px var(--f-body);text-transform:uppercase;letter-spacing:.06em}
/* nền pastel pha theo bề mặt → tự đúng ở chế độ tối */
.hf-art,.hf-eye,.ht-ic,.hq-ic,.hc-ic{background:color-mix(in srgb,var(--c) 12%,var(--surface))}
.hts{grid-template-columns:1fr 1fr}
@media (max-width:900px){.hh{gap:24px}.hts{grid-template-columns:1fr}.hg-jf{width:100%}.hg-jf input{flex:1;min-width:0}}
:root[data-theme="dark"] .hg{background:linear-gradient(130deg,#115e59 0%,#0f3f3c 65%,#0c3a4a 100%)}
:root[data-theme="dark"] .hb-nav{background:#111c2e;border-color:#1e293b;color:#e2e8f0}
:root[data-theme="dark"] .hsc rect[fill="#fff"]{fill:#e2e8f0}
.hc>span:not(.hc-h):not(.hc-go){color:var(--muted)}
.hg-jf input::placeholder{text-transform:none;letter-spacing:0;font-weight:600}
:root[data-theme="dark"] .hf-eye{color:color-mix(in srgb,var(--c) 55%,#fff)}
/* vòng rà 2: trang công khai – băng sát nhịp phần đầu, cùng bề rộng với hàng bài công khai */
.tc .tc-sec.tc-disc{padding-top:24px;padding-bottom:40px}.tc-disc .hb{margin:0 0 0}
@media (max-width:900px){.tc .tc-sec.tc-disc{padding-top:16px}}
/* v1.7.39 – BS89 đợt 1: nút "Nhập mã thi" trên thẻ chào – vùng chạm ≥ 48px, điện thoại thì trải hết bề ngang như nút chính */
#hgcode{min-height:48px}
@media (max-width:600px){#hgcode{width:100%;justify-content:center}}
/* v1.7.39 – BS89 đợt 2: trang chủ giáo viên – một con số lớn + danh sách việc gộp ngay dưới dải chào */
.hg-n{display:flex;align-items:baseline;gap:10px;margin:2px 0 0;flex-wrap:wrap}
.hg-n>b{font:800 44px/1 var(--f-display,inherit);letter-spacing:-.02em}
.hg-n>span{font-size:16px;opacity:.95}
.hh-td{padding:16px 18px;border-radius:18px}
.hh-td .tdp-hd h2{font-size:18px;margin:0}
@media (max-width:600px){.hg-n>b{font-size:36px}}
.hh-td0{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.hh-td0>div{flex:1 1 260px;display:flex;flex-direction:column;gap:2px}
.hh-td0>div b{font-size:16px}.hh-td0>div span{color:var(--muted,#475569);font-size:14px}
.hh-td0 .btn{min-height:44px;display:inline-flex;align-items:center}
/* ===== v1.7.40 – BS90 H1: trang "Hôm nay" học sinh – thẻ tiêu điểm + Việc tiếp theo (theo Canvas v3) ===== */
.hg2{padding:20px 22px 22px}
.hh-s .hg2{padding-bottom:22px}
.hg2-h{display:flex;align-items:center;gap:12px;margin-bottom:14px;position:relative;z-index:1}
.hg2-h h1{margin:0;color:#fff;font:800 22px/1.25 var(--f-display)}
.hg2-st{display:inline-flex;align-items:center;gap:6px;margin-top:6px;background:#FEF3C7;color:#92400E;border-radius:999px;padding:3px 10px 3px 8px;font:700 13px var(--f-body)}
.hg2-st svg{width:15px;height:15px}
.hf2{position:relative;z-index:1;background:rgba(255,255,255,.08);border:1.5px solid rgba(255,255,255,.3);border-radius:18px;padding:18px;display:flex;flex-direction:column;gap:6px;overflow:hidden}
.hf2::after{content:"";position:absolute;right:-14px;top:-10px;width:130px;height:90px;opacity:.12;pointer-events:none;
  background:no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 130 90' fill='none' stroke='%23CCFBF1' stroke-width='4' stroke-linejoin='round'%3E%3Cpath d='M65 22c-14-9-34-10-52-6v58c18-4 38-3 52 6 14-9 34-10 52-6V16c-18-4-38-3-52 6zM65 22v58'/%3E%3C/svg%3E")}
.hf2-lb{color:#CCFBF1;font:800 12px var(--f-body);letter-spacing:.08em}
.hf2 h2{margin:0;color:#fff;font:800 19px/1.35 var(--f-display);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.hf2-m{margin:0;color:#CCFBF1;font-size:14px}
.hf2-go{margin-top:8px;display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;border-radius:12px;background:#fff;color:#0F766E;font:800 16px var(--f-body);text-decoration:none}
.hf2-go svg{width:18px;height:18px}.hf2-go:hover{filter:brightness(.97)}.hf2-go:focus-visible{outline:3px solid #FDE68A;outline-offset:2px}
.hf2-done{flex-direction:row;align-items:center;gap:16px;flex-wrap:wrap}.hf2-done>div{flex:1 1 220px;display:flex;flex-direction:column;gap:6px}
.hs-star{width:110px;height:90px;flex:none}
.hf2-0 .hg-jf{margin-top:8px}
.hcode{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;width:100%;border-radius:12px;border:1.5px solid var(--line,#E2E8F0);background:var(--surface,#fff);color:var(--ink,#0F172A);font:700 15px var(--f-body);cursor:pointer}
.hcode svg{width:18px;height:18px;color:#0F766E}.hcode:hover{border-color:#0F766E}
.hn{display:flex;flex-direction:column;gap:10px}
.hn-h{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.hn-h h2{margin:0;font:800 17px var(--f-display)}.hn-c{color:var(--muted,#64748B);font-weight:700}
.hn-h a{font-weight:700;font-size:14px;color:#0F766E;text-decoration:none;min-height:44px;display:inline-flex;align-items:center}
.hn-l{display:flex;flex-direction:column;gap:8px}
.hn-r{display:flex;align-items:center;gap:12px;min-height:68px;padding:10px 12px;border:1px solid var(--line,#E2E8F0);border-radius:14px;background:var(--surface,#fff);color:inherit;text-decoration:none}
.hn-r:hover{border-color:#0F766E}
.hn-ic{flex:none;width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:#F0FDFA;color:#0F766E}.hn-ic svg{width:20px;height:20px}
.hn-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.hn-t b{font-size:15px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hn-t small{font-size:13px;color:var(--muted,#64748B)}
.hn-ch{flex:none;color:#94A3B8}.hn-ch svg{width:16px;height:16px}
.hn-0{margin:0;color:var(--muted,#64748B);font-size:14px}
@media (min-width:900px){.hh-s .hcode{width:auto;justify-self:start;align-self:flex-start;padding:0 24px}.hf2-go{align-self:flex-start;padding:0 28px}}
:root[data-theme="dark"] .hn-ic{background:#134e4a;color:#99f6e4}
/* ===== v1.7.40 – BS90 G2: Tổng quan giáo viên theo Canvas v3 – hàng việc 65% + cột phải 35% ===== */
.hg-n0{margin:6px 0 0;color:#e0f2f1;font-size:16px;font-weight:600}
.hh-tg{display:grid;gap:20px;align-items:start}
@media (min-width:1200px){.hh-tg{grid-template-columns:minmax(0,65fr) minmax(300px,35fr)}}
.hh-rail{display:flex;flex-direction:column;gap:16px;min-width:0}
.hr-cls{display:flex;flex-direction:column;gap:6px}
.hr-h{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:4px}
.hr-h h2{margin:0;font:800 16px var(--f-display)}.hr-h a{font-weight:700;font-size:14px;color:#0f766e;text-decoration:none}
.hr-c{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 8px;padding:8px 4px;border-radius:10px;color:inherit;text-decoration:none;min-height:44px}
.hr-c:hover{background:var(--soft,#f1f5f9)}
.hr-n{font-weight:700;font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hr-m{font-size:13px;color:var(--muted,#64748b);white-space:nowrap}
.hr-c i{grid-column:1/-1;height:4px;border-radius:4px;background:var(--line,#e2e8f0);position:relative;overflow:hidden}
.hr-c i::after{content:"";position:absolute;inset:0 auto 0 0;width:var(--w);background:#0f766e;border-radius:4px}
.hr-more{font-size:14px;font-weight:700;color:#0f766e;text-decoration:none;padding:4px}
.hr-word{display:flex;gap:12px;align-items:center;color:inherit;text-decoration:none}
.hr-word>span:last-child{display:flex;flex-direction:column;gap:2px}.hr-word b{font-size:15px}.hr-word small{font-size:13px;color:var(--muted,#64748b)}
.hr-word:hover{border-color:#0f766e}
.hh-desk{width:140px;height:100px;flex:none}
/* v1.7.48 – BS107 "Sắp diễn ra" (Canvas, Gemini): một ô, một thẻ nổi bật + tối đa 2 dòng gọn. Màu theo trạng thái:
   2–3 ngày xám xanh · ngày mai / hôm nay viền teal · dưới 1 giờ hổ phách · đang diễn ra xanh lá · đã nộp xám. Không màu đỏ báo động. */
.sdr{margin:14px 0}.sdr-h{font-size:16px;font-weight:700;margin:0 0 8px}
.sdr-the{position:relative;display:flex;flex-direction:column;gap:6px;padding:14px 16px;border-radius:16px;border:1px solid var(--line,#e2e8f0);background:var(--card,#fff)}
.sdr-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.sdr-top>button{margin-left:auto}
.sdr-chip{display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:600;padding:3px 10px;border-radius:999px;background:#f1f5f9;color:#334155}.sdr-chip svg{width:16px;height:16px}
.sdr-bd{font-size:13.5px;font-weight:700;padding:2px 10px;border-radius:999px}.sdr-bd.gan{background:#fef3c7;color:#92400e}.sdr-bd.dang{background:#dcfce7;color:#166534}
.sdr-t{font-size:17px;line-height:1.35}.sdr-k{display:flex;align-items:center;gap:6px;margin:0;font-size:14.5px;font-weight:600;color:#334155}.sdr-k svg{width:16px;height:16px;flex:none}
.sdr-p{margin:0;font-size:14px;color:var(--muted,#64748b)}
.sdr-go{display:flex;align-items:center;justify-content:center;min-height:44px;margin-top:4px;border-radius:12px;font-weight:700;font-size:15px;text-decoration:none;background:#f1f5f9;color:#0f172a;border:1px solid #e2e8f0}
.sdr-go.gan{background:#b45309;color:#fff;border-color:#b45309}.sdr-go.dang{background:#15803d;color:#fff;border-color:#15803d}
.sdr-gon,.sdr-x{min-width:44px;min-height:44px;margin:-10px -10px -10px auto;border:0;background:none;color:#64748b;font-size:22px;line-height:1;cursor:pointer;display:grid;place-items:center;border-radius:10px}.sdr-gon svg{width:20px;height:20px}
.sdr-gon:focus-visible,.sdr-x:focus-visible,.sdr-go:focus-visible{outline:3px solid #2563eb;outline-offset:2px}
.sdr-the.st-mai,.sdr-the.st-hom_nay{border-color:#5eead4;background:#f0fdfa}.sdr-the.st-hom_nay{border-width:2px}
.sdr-the.st-gan{border:2px solid #f59e0b;background:#fffbeb}.sdr-the.st-dang{border:2px solid #22c55e;background:#f0fdf4}
.sdr-the.st-xong{background:#f8fafc}.sdr-the.st-xong .sdr-k{color:#64748b}
.sdr-the.gon .sdr-p,.sdr-the.gon .sdr-go{display:none}
.sdr-them{margin:10px 0 6px;font-size:14px;color:var(--muted,#64748b);font-weight:600}
.sdr-dong{display:flex;align-items:center;border:1px solid var(--line,#e2e8f0);border-radius:12px;background:var(--card,#fff);margin-top:6px;padding-left:12px}
.sdr-dong a{flex:1;min-width:0;display:flex;align-items:center;gap:8px;min-height:44px;text-decoration:none;color:inherit;font-size:14px}.sdr-dong a svg{width:16px;height:16px;flex:none;color:#0f766e}
.sdr-dong b{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sdr-dong span{flex:none;color:var(--muted,#64748b)}.sdr-dong .sdr-x{margin:0}
:root[data-theme="dark"] .sdr-the{background:#0f172a;border-color:#334155}:root[data-theme="dark"] .sdr-chip{background:#1e293b;color:#cbd5e1}:root[data-theme="dark"] .sdr-k{color:#cbd5e1}
:root[data-theme="dark"] .sdr-the.st-mai,:root[data-theme="dark"] .sdr-the.st-hom_nay{background:#0f2a28;border-color:#0d9488}:root[data-theme="dark"] .sdr-the.st-gan{background:#292111;border-color:#b45309}:root[data-theme="dark"] .sdr-the.st-dang{background:#0f2a18;border-color:#16a34a}
:root[data-theme="dark"] .sdr-go{background:#1e293b;color:#e2e8f0;border-color:#334155}:root[data-theme="dark"] .sdr-dong{background:#0f172a;border-color:#334155}
.sdr.sdr-tren{margin:12px 0}.sdr.sdr-tren .sdr-h{color:#fff}.sdr.sdr-tren .sdr-them{color:rgba(255,255,255,.85)}

/* v1.7.61 – thẻ chào học sinh gọn theo Canvas "SAU" (anh Huu 27/11: "quá to và thô") – thẻ trắng ~158px máy tính, một nút chính */
.hh-s .hg.hg3{background:var(--surface,#fff);color:#0F172A;border:1px solid #CCFBF1;border-radius:16px;padding:0;overflow:hidden;box-shadow:0 8px 28px -8px rgba(15,118,110,.12)}
.hh-s .hg.hg3::after{display:none}
.hg3::before{content:"";display:block;height:4px;background:linear-gradient(90deg,#0F766E,#14B8A6,#2DD4BF)}
.hg3-rb{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#F0FDFA;border-bottom:1px solid #CCFBF1;padding:2px 8px 2px 20px;font-size:14px}
.hg3-rb[hidden]{display:none}
.hg3-rb .rb-t{display:flex;align-items:center;gap:8px;min-width:0;color:#0F172A}
.hg3-rb .rb-t>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hg3-rb b{color:#0F766E;font-weight:700}
.hg3-rb .rb-c .ngan{display:none}
.hg3-rb .rb-c{flex:0 0 auto;font-style:normal;background:#fff;border-radius:6px;padding:1px 8px;font-weight:600;color:#0F766E;box-shadow:inset 0 0 0 1px #CCFBF1}
.hg3-rb .rb-dot{position:relative;flex:0 0 10px;width:10px;height:10px;display:grid;place-items:center}
.hg3-rb .rb-dot::before{content:"";position:absolute;inset:0;border-radius:50%;background:#14B8A6;opacity:.45;animation:hg3ping 1.8s ease-out infinite}
.hg3-rb .rb-dot::after{content:"";width:8px;height:8px;border-radius:50%;background:#0F766E}
.hg3-rb.dang .rb-dot::after{background:#16A34A}
.hg3-rb a{flex:0 0 auto;display:inline-flex;align-items:center;gap:2px;min-height:44px;min-width:44px;padding:0 10px;border-radius:12px;color:#0F766E;font-weight:600;text-decoration:none}
.hg3-rb .ic{width:16px;height:16px;flex:0 0 16px;color:#0F766E}
.hg3-rb a:hover{background:#fff}.hg3-rb a svg{width:16px;height:16px}
@keyframes hg3ping{0%{transform:scale(1);opacity:.5}80%,100%{transform:scale(2.2);opacity:0}}
.hg3-bd{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;grid-template-areas:"hi hd wk go" "tt tt wk go";align-items:center;column-gap:12px;row-gap:4px;padding:14px 20px}
.hg3-wm{position:absolute;right:340px;bottom:-12px;width:96px;height:96px;color:#14B8A6;opacity:.04;pointer-events:none}
.hg3 .hg2-h{grid-area:hi;display:flex;align-items:center;gap:8px;margin:0;flex-wrap:nowrap}
.hg3 .hg2-h h1{display:inline-flex;align-items:center;gap:6px;margin:0;color:#0F172A;font:700 16px/1.3 var(--f-display,inherit);white-space:nowrap}
.hg3-sp{width:16px;height:16px;color:#14B8A6}
.hg3 .hg2-h::after{content:"|";color:#CBD5E1;margin-left:4px}
.hg3 .hg2-st{margin:0;padding:1px 8px 1px 6px;font-size:14px}
.hg3 .wow-d7 li{font-size:14px}
.hg3 .hf2{display:contents}
.hh-s .hg3 .hf2>.wow-bp,.hh-s .hg3 .hf2>.wow-light{display:none}
.hh-s .hg3 .hf2::after,.hh-s .hg3 .hf2::before{display:none}
.hg3 .hf2-hd{grid-area:hd;display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0}
.hg3 .hf2-lb{display:inline-flex;align-items:center;background:rgba(15,118,110,.1);color:#0F766E;border-radius:8px;padding:2px 10px;font:700 14px var(--f-body,inherit);letter-spacing:.03em}
.hg3 .wow-cd{display:inline-flex;align-items:center;gap:4px;background:#FFFBEB;color:#92400E;border-radius:8px;padding:2px 10px;font-size:14px;font-weight:600;box-shadow:inset 0 0 0 1px #FDE68A;margin:0}
.hg3 .wow-cd svg{width:14px;height:14px;color:#D97706}
.hg3 .wow-cd.gap{background:#FEF2F2;color:#B91C1C;box-shadow:inset 0 0 0 1px #FECACA}.hg3 .wow-cd.gap svg{color:#DC2626}
.hg3 .hf2-tt{grid-area:tt;display:flex;flex-wrap:wrap;align-items:baseline;column-gap:12px;row-gap:2px;min-width:0}
.hg3 .hf2 h2{margin:0;color:#0F172A;font:800 18px/1.35 var(--f-display,inherit);letter-spacing:-.01em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hg3 .hf2-m{margin:0;color:#475569;font-size:14px;font-weight:500}
.hg3 .wow-tuan{grid-area:wk;margin:0;min-width:0;background:#F8FAFC;border:1px solid #E2E8F0;border-radius:16px;padding:8px 14px;display:flex;flex-direction:column;gap:4px}
.hg3 .wow-wk{order:-1}.hg3 .wow-bar{display:none}
.hg3 .wow-wkh{font-size:14px;color:#475569}.hg3 .wow-wkh b{color:#0F766E}
.hg3 .wow-d7{gap:6px}.hg3 .wow-d7 li i{width:24px;height:24px;border:1.5px dashed #64748B}.hg3 .wow-d7 li.on i{border:0}
.hg3 .wow-tuan{background:#F1F5F9}
.hg3 .hf2-go,.hg3 .hg-jf{grid-area:go;margin:0}
.hg3 .hf2-go{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 20px;border-radius:16px;background:linear-gradient(135deg,#0F766E 0%,#14B8A6 100%);color:#fff;font:700 15px var(--f-body,inherit);text-decoration:none;white-space:nowrap;box-shadow:0 4px 12px rgba(15,118,110,.22)}
.hg3 .hf2-go:hover{filter:brightness(1.05)}.hg3 .hf2-go:focus-visible{outline:3px solid #99F6E4;outline-offset:2px}
.hg3 .hg-jf{display:flex;gap:8px}
@media (max-width:899px){
  .hg3-rb{padding-left:14px;padding-right:4px}.hg3-rb .rb-t{gap:6px}
  .hg3-bd{grid-template-columns:auto minmax(0,1fr);grid-template-areas:"hi wkh" "d7 d7" "tk tk";padding:14px;row-gap:10px}
  .hh-s .hg3 .hg3-wm{display:none}
  .hg3-rb .rb-c .dai{display:none}.hg3-rb .rb-c .ngan{display:inline}
  .hg3-rb .rb-t>.ic{display:none}
  .hg3 .wow-tuan,.hg3 .wow-wk{display:contents}
  .hg3 .wow-wkh{grid-area:wkh;justify-self:end;gap:6px}
  .hg3 .wow-d7{grid-area:d7;background:#F8FAFC;border:1px solid #E2E8F0;border-radius:12px;padding:8px}
  .hg3 .hg2-h::after{display:none}
  .hg3 .hf2{display:flex;grid-area:tk;flex-direction:column;gap:4px;border:1px solid #CCFBF1;background:rgba(240,253,250,.45);border-radius:12px;padding:12px}
  .hg3 .hf2-hd{justify-content:space-between}
  .hg3 .hf2-lb{background:none;padding:0;font-size:14px}
  .hg3 .hf2-tt{flex-direction:column;align-items:flex-start;margin-top:2px}
  .hg3 .hf2 h2{font-size:16px}
  .hg3 .hf2-go{width:100%;margin-top:8px}
  .hg3 .hg-jf{margin-top:8px}
  .hg3 .wow-d7{justify-content:space-between}
  .hg3 .wow-tuan:not(:has(.wow-wk)) .wow-d7{grid-column:1/-1}
}
.sdr.sdr-gap .sdr-the{border-color:#F59E0B;box-shadow:0 0 0 3px rgba(245,158,11,.15)}
@media (prefers-reduced-motion:reduce){.hg3-rb .rb-dot::before{animation:none}}
