:root{
  --ink:#1e293b;--muted:#64748b;--line:#e2e8f0;--bg:#f1f5f9;
  --dark:#2c3338;--green:#16a34a;--green2:#15803d;--blue:#2563eb;--navy:#0f172a;
  --ok:#166534;--bad:#b91c1c;
}
*{box-sizing:border-box}
html,body{margin:0;font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;background:var(--bg);color:var(--ink)}
a{color:inherit}
.top{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px;background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}
.top .acts{display:flex;align-items:center;gap:6px;flex-shrink:0}
.brand{font-size:13px;font-weight:800;color:var(--navy);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.btn{border:0;border-radius:8px;padding:8px 10px;font-weight:700;cursor:pointer;font-size:13px;white-space:nowrap}
.btn-g{background:var(--green);color:#fff}
.btn-g:hover{background:var(--green2)}
.btn-n{background:var(--dark);color:#fff}
.btn-ghost{background:#e2e8f0;color:var(--navy)}
.wrap{max-width:1180px;margin:0 auto;padding:12px 12px 88px}
.hero{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px;margin-bottom:12px}
.hero h1{margin:0 0 8px;font-size:22px}
.law{background:#eff6ff;border:1px solid #bfdbfe;border-radius:12px;padding:12px 14px;margin:0 0 12px;font-size:14px;line-height:1.55}
.law b{color:#1e3a8a}
.cta{display:grid;grid-template-columns:1fr;gap:10px;margin:14px 0}
@media(min-width:700px){.cta{grid-template-columns:1fr 1fr}}
.cta a{display:block;background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px;text-decoration:none}
.cta a h2{margin:0 0 6px;font-size:17px}
.cta a p{margin:0;color:var(--muted);font-size:13px}
.cta a.pri{border-color:#86efac;background:#f0fdf4}
.meo{background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px}
.meo h2{margin:0 0 8px;font-size:16px}
.meo ul{margin:0;padding-left:18px;color:#334155;font-size:14px;line-height:1.55}
.bar-dark{background:var(--dark);color:#fff;border-radius:10px;padding:10px 12px;font-weight:700;margin-bottom:10px}
.grid-box{background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px;margin-bottom:12px}
.chap{font-size:13px;color:#334155;margin:0 0 8px;font-weight:700}
.nums{display:flex;flex-wrap:wrap;gap:6px}
.nums button{width:46px;height:42px;border:1px solid var(--line);background:#fff;border-radius:10px;cursor:pointer;font-weight:800;font-size:16px}
.nums button.on{background:var(--blue);color:#fff;border-color:var(--blue)}
.stage{display:flex;flex-direction:column;gap:12px}
.stage .col-vid{order:0}
.stage .col-text{order:1}
.title-row{display:flex;align-items:center;gap:8px;margin:0 0 8px}
.title-row h2{margin:0;font-size:16px}
.vid-wrap{background:#000;border-radius:12px;overflow:hidden}
video{width:100%;display:block;max-height:52vh;background:#000}
.hint{font-size:13px;color:var(--muted);margin:8px 0}
.watch{margin:8px 0 0;color:#6b7280;font-size:13px}
.q{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:12px;margin:0 0 12px}
.q h3{margin:0 0 10px;font-size:18px;display:flex;align-items:center;gap:8px;font-weight:800}
.badge{width:22px;height:22px;border-radius:6px;background:#2563eb;color:#fff;font-size:12px;display:inline-flex;align-items:center;justify-content:center}
.opt{display:flex;align-items:center;gap:12px;width:100%;text-align:left;border:1px solid #e5e7eb;background:#fff;border-radius:14px;padding:14px 14px;margin:8px 0;font-size:17px;cursor:pointer;line-height:1.45;color:#111;font-weight:600}
.opt:before{content:"";width:18px;height:18px;border:2px solid #cbd5e1;border-radius:50%;flex-shrink:0;background:#fff}
.opt:after{content:"";margin-left:auto;min-width:16px;flex-shrink:0}
.opt.pick{border-color:#93c5fd}
.opt.pick:before{border-color:#2563eb;box-shadow:inset 0 0 0 4px #2563eb}
.opt.right{border-color:#86efac;background:#ecfdf5;color:#166534}
.opt.right:before{border-color:#16a34a;box-shadow:inset 0 0 0 4px #16a34a}
.opt.right:after{content:"✓";color:#16a34a;font-weight:800}
.opt.wrong{border-color:#fecaca;background:#fef2f2;color:#b91c1c}
.opt.wrong:before{border-color:#dc2626;box-shadow:inset 0 0 0 4px #dc2626}
.opt.wrong:after{content:"✕";color:#dc2626;font-weight:800}
.meo-mini{background:#f8fafc;border:1px dashed #cbd5e1;border-radius:10px;padding:8px 10px;font-size:13px;color:#334155}
.nav{display:flex;gap:8px;margin-top:10px}
.nav .btn{flex:1;padding:12px}
.meta{font-size:13px;color:var(--muted)}
.score{font-size:32px;font-weight:800;margin:8px 0}
.ok{color:var(--ok)}.bad{color:var(--bad)}
.fs-btn{position:fixed;right:12px;bottom:16px;z-index:40;background:var(--dark);color:#fff;border:0;border-radius:999px;padding:10px 14px;font-weight:700;font-size:13px;box-shadow:0 6px 20px rgba(0,0,0,.2)}
/* desktop layout moved to hlx-desk.css */


.rs{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden;margin-bottom:12px}
.rs-hd{background:var(--dark);color:#fff;padding:10px 14px;font-weight:700}
.rs-body{padding:18px 14px 16px;text-align:center}
.rs-ico{width:52px;height:52px;border-radius:50%;margin:0 auto 8px;display:flex;align-items:center;justify-content:center;font-size:28px;font-weight:800}
.rs-ico.fail{background:#dc2626;color:#fff}
.rs-ico.pass{background:#16a34a;color:#fff}
.rs-st{font-weight:800;margin:0 0 8px}
.rs-st.fail{color:#dc2626}
.rs-st.pass{color:#16a34a}
.rs-sc{font-size:42px;font-weight:800;line-height:1.1;margin:4px 0}
.rs-sc.fail{color:#dc2626}
.rs-sc.pass{color:#16a34a}
.rs-sub{color:#64748b;font-size:13px;margin:0 0 8px}
.rs-meta{font-size:13px;color:#475569;margin:0 0 12px}
.rs-meta .hot{color:#dc2626;font-weight:700}
.rs-warn{background:#facc15;color:#422006;border-radius:8px;padding:10px 12px;font-size:13px;font-weight:600;text-align:center;margin:0 0 12px}
.rs-ok{background:#dcfce7;color:#14532d;border-radius:8px;padding:10px 12px;font-size:13px;font-weight:600;text-align:center;margin:0 0 12px}
.btn-blue{background:#2563eb;color:#fff;width:100%;padding:12px;border-radius:8px}
.card-th{background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px;margin:0 0 10px}
.card-th .hd{display:flex;justify-content:space-between;gap:8px;align-items:flex-start;margin-bottom:8px;font-weight:700;font-size:14px}
.pill{background:#2563eb;color:#fff;border-radius:6px;font-size:11px;padding:3px 8px;white-space:nowrap;font-weight:800}
.ln{font-size:14px;margin:0 0 8px;line-height:1.45}
.ln .mark{font-weight:700}
.ln.good{color:#15803d}
.ln.bad{color:#0f172a}
.ln.bad .mark{color:#dc2626}
.ln .ans{display:block;color:#16a34a;font-size:13px;margin-top:2px}

body.sch{background:#f3f4f6}
.sch-top{position:sticky;top:0;z-index:30;display:flex;justify-content:flex-end;align-items:center;gap:8px;padding:8px 12px;background:#f3f4f6}
.sch-home{background:#16a34a;color:#fff;text-decoration:none;font-weight:800;font-size:14px;padding:10px 16px;border-radius:8px}
.sch-fs{width:40px;height:40px;border:1px solid #d1d5db;background:#fff;border-radius:8px;font-size:16px}
.sch-bar{margin:0 12px 8px;background:#2c3338;color:#fff;border-radius:10px;padding:12px 14px;font-weight:800;font-size:15px;text-align:center}
.ch-scroll{margin:0 12px 8px;max-height:156px;overflow-y:auto;-webkit-overflow-scrolling:touch;background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:8px 10px}
.ch-block{margin-bottom:10px}
.ch-block:last-child{margin-bottom:0}
.chap{margin:0 0 6px;font-size:13px;font-weight:700;color:#334155}
.nums{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}
.nums button{height:38px;border:1px solid #e5e7eb;background:#fff;border-radius:8px;font-weight:700;font-size:14px;color:#111}
.nums button.on{background:#2563eb;color:#fff;border-color:#2563eb}
.pin{position:sticky;top:56px;z-index:20;background:#f3f4f6;padding:0 12px 8px}
.sit{margin:0 0 8px;font-size:16px;font-weight:800;display:flex;align-items:center;gap:8px}
.sit-ico{width:18px;height:18px;border-radius:3px;background:#2563eb;flex-shrink:0;position:relative}
.sit-ico:after{content:"";position:absolute;left:6px;top:4px;border-style:solid;border-width:5px 0 5px 8px;border-color:transparent transparent transparent #fff}
.vid-wrap{background:#000;border-radius:10px;overflow:hidden}
.qs{padding:0 12px 80px}
@media(min-width:992px){
  .ch-scroll{max-height:220px}
  .pin{top:56px}
  video{max-height:48vh}
}

.sch-clock{margin-right:auto;font-weight:800;font-size:14px;color:#0f172a;min-width:48px}
body.fs-on{position:fixed;inset:0;width:100%;height:100%;overflow:auto;background:#f3f4f6;z-index:80}
.guide{margin:0 12px 20px;background:#fff;border:1px solid #e5e7eb;border-radius:0 0 12px 12px;padding:16px 16px 20px}
.guide h2{margin:0 0 10px;font-size:18px;font-weight:800}
.guide ul{margin:0;padding-left:22px;line-height:1.55;font-size:15px}
.guide ul ul{margin:6px 0;padding-left:18px;list-style:circle}
.btn-start{display:block;width:100%;margin-top:16px;background:#16a34a;color:#fff;border:0;border-radius:10px;padding:14px 16px;font-size:16px;font-weight:800}
.btn-start.gray{background:#2c3338}
.btn-start.slim{width:auto;flex:1;margin-top:0;padding:12px}
.reset-line{text-align:center;margin:10px 0 0}
.linkish{background:none;border:0;color:#2563eb;font-weight:700;text-decoration:underline;font-size:13px}
.rs{margin:0 12px 16px}
.card-th{margin:0 12px 10px}

.hub .wrap{max-width:560px;padding-top:8px}
.intro-hero{text-align:center;padding:8px 4px 16px}
.intro-badge{display:inline-block;background:#e8eefc;color:#1e3a8a;border-radius:999px;padding:4px 12px;font-size:12px;font-weight:700;margin-bottom:10px}
.intro-title{margin:0 0 8px;font-size:26px;line-height:1.2}
.intro-sub{margin:0 0 16px;color:#64748b;font-size:14px}
.hlx-cta-row{display:flex;gap:10px}
.hlx-cta{flex:1;text-align:center;text-decoration:none;padding:14px 12px;border-radius:12px;font-weight:800;color:#fff}
.hlx-cta-on{background:#1d4ed8}
.hlx-cta-thi{background:#ea580c}
.hub-meo{display:block;margin:14px 0 8px;background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:14px 16px;text-decoration:none;font-weight:700}
.hub-law{margin:8px 2px 0;color:#64748b;font-size:12px;line-height:1.45}
.sch-top{justify-content:flex-end}
.sch-name{margin-right:auto;max-width:46%;font-weight:800;font-size:14px;color:#0f172a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sch-bar{margin:0 12px 8px}
.ch-scroll{max-height:132px}
.chap{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pin{padding:0 12px 6px}
.sit{font-size:15px;margin:2px 0 6px}
.law2{display:grid;gap:10px;margin:4px 0 12px}
.law2 article{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:12px 14px}
.law2 h3{margin:0 0 6px;font-size:15px}
.law2 p{margin:0 0 6px;font-size:13px;color:#334155;line-height:1.5}
.law2 p:last-child{margin:0}
.hub-card{display:block;background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:14px 16px;margin:0 0 10px;text-decoration:none;color:#0f172a}
.hub-card strong{display:block;font-size:17px;margin-bottom:4px}
.hub-card span{display:block;font-size:13px;color:#64748b}
.hub-card-thi{border-color:#fdba74;background:#fff7ed}


/* hub cards lớn + màu */
.hub-big{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:4px 0 12px}
.hub .hub-card{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:132px;padding:16px 10px;border-radius:18px;border:0;color:#fff;text-decoration:none;box-shadow:0 3px 0 rgba(0,0,0,.14)}
.hub .hub-card strong{color:#fff;font-size:18px;margin-bottom:6px;line-height:1.2}
.hub .hub-card span{color:rgba(255,255,255,.95);font-size:13px;line-height:1.3}
.hub .hub-on{background:#26a69a}
.hub .hub-thi{background:#e74c4c}
.hub .hub-meo{display:flex;align-items:center;justify-content:center;min-height:64px;margin:0 0 14px;background:#f5a623;color:#fff;border:0;border-radius:18px;font-size:18px;font-weight:800;box-shadow:0 3px 0 rgba(0,0,0,.12)}
.hub .intro-title{font-size:24px}
.hub .intro-sub{font-size:15px;max-width:22em}
.hub .law2 article{padding:16px}
.hub .law2 h3{font-size:17px}
.hub .law2 p{font-size:15px}
.sch-bar{font-size:17px;font-weight:800;padding:10px 4px}
.chap{font-size:15px!important}
.sit{font-size:17px!important;font-weight:800}
.q{padding:16px!important}
