/* TESOL Flex – màu lấy từ visual chương trình (logo TESOL Flex + "Cấu trúc Flex update"):
   đỏ TESOL #CA2027, xanh FLEX #1834AD, navy tiêu đề #102290, thanh xanh #1D4197→#4262AB,
   nền hồng #FEF0F0, nền xanh nhạt #E8F2FC. Font Helvetica Neue theo Brand Guideline Educap. */
:root {
  --navy: #102290; --navy-d: #0B1A6E; --blue: #1834AD; --blue-2: #4262AB; --bar: linear-gradient(90deg, #1D4197, #4262AB);
  --red: #CA2027; --red-d: #B01C26; --red-grad: linear-gradient(135deg, #D02130, #BE1E2A);
  --pink-bg: #FEF0F0; --blue-bg: #E8F2FC;
  --bg: #F6F8FD; --card: #fff; --line: #E2E7F2; --text: #161B33; --muted: #646B85;
  --ok: #17845A; --ok-bg: #E5F5EE; --warn: #B3540A; --warn-bg: #FFF2E2; --wait-bg: #E8F2FC;
  --radius: 14px; --shadow: 0 1px 2px rgba(16,34,144,.04), 0 4px 16px rgba(16,34,144,.06);
}
* { box-sizing: border-box; }
html { scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 "Helvetica Neue", Helvetica, Arial, sans-serif; }
a { color: var(--navy); }
h1 { font-size: 28px; line-height: 1.2; margin: 4px 0 14px; color: var(--navy-d); letter-spacing: -.01em; }
h2 { font-size: 18px; margin: 0 0 12px; display: flex; align-items: center; gap: 10px; color: var(--navy-d); }
h3 { font-size: 16px; margin: 0 0 8px; color: var(--navy-d); }
.muted { color: var(--muted); } .small { font-size: 13px; } .center { text-align: center; }
.wrap { max-width: 860px; margin: 0 auto; padding: 24px 16px 60px; }
.wrap.wide { max-width: 1180px; }
.print-only { display: none; }

/* header */
.top { background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 20px;
  padding: 8px 24px; position: sticky; top: 0; z-index: 10; box-shadow: 0 2px 0 var(--navy); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand .lg-educap { height: 26px; } .brand .lg-ait { height: 40px; } .brand .lg-flex { height: 40px; }
.sep { width: 1px; height: 28px; background: var(--line); display: inline-block; }
.mainnav { display: flex; gap: 4px; flex: 1; }
.mainnav a { text-decoration: none; color: var(--text); font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 8px; }
.mainnav a:hover { background: var(--bg); }
.who { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; }
.tag { font-style: normal; background: var(--red); color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 4px; }
.foot { display: flex; gap: 20px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 24px 16px 32px;
  font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); background: #fff; text-align: left; }
.foot-logos { display: flex; align-items: center; gap: 16px; }
.foot-logos img:first-child { height: 22px; } .foot-logos img:last-child { height: 40px; }

/* common */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 16px; box-shadow: var(--shadow); }
.card.dim { opacity: .6; }
.btn { display: inline-block; background: var(--navy); color: #fff; border: 0; border-radius: 10px; padding: 10px 18px;
  font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; transition: background .15s, transform .15s; }
.btn:hover { background: var(--navy-d); }
.btn:active { transform: translateY(1px); }
.btn:disabled { background: #A9AECB; cursor: not-allowed; }
.btn.big { padding: 13px 24px; font-size: 16px; }
.btn.block { width: 100%; }
.btn.ghost { background: #fff; color: var(--navy); border: 1.5px solid var(--navy); }
.btn.ghost:hover { background: var(--wait-bg); }
.link { background: none; border: 0; color: var(--navy); cursor: pointer; font: inherit; text-decoration: underline; padding: 0 8px; }
.back { display: inline-block; margin-bottom: 10px; text-decoration: none; font-size: 14px; font-weight: 600; }
.eyebrow { text-transform: uppercase; letter-spacing: .07em; font-size: 12px; color: var(--red); font-weight: 700; margin: 0 0 4px; }
.num { background: var(--navy); color: #fff; min-width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 13px; flex: none; }
.okline { color: var(--ok); font-weight: 700; margin: 12px 0 0; }
.err { color: var(--red); min-height: 1em; margin: 8px 0 0; font-size: 14px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.st-wait { background: var(--wait-bg); color: var(--navy); } .st-ok { background: var(--ok-bg); color: var(--ok); }
.st-warn { background: var(--warn-bg); color: var(--warn); } .st-opt { background: #F1F2F6; color: var(--muted); }
.st-next { background: var(--red); color: #fff; } .st-none { background: #F1F2F6; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input:not([type]), input[type=datetime-local], textarea { width: 100%; font: inherit; font-size: 15px; padding: 10px 12px;
  border: 1px solid #D6D9E6; border-radius: 10px; background: #fff; color: var(--text); transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; min-height: 44px; }
input:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(43,57,144,.15); }
label { display: block; }
.bar { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 8px 0 6px; }
.bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--navy), var(--blue)); border-radius: 99px; transition: width .3s; }
.bar.sm { height: 6px; margin: 2px 0; width: 110px; }
.alert { display: block; padding: 12px 16px; border-radius: 12px; margin-bottom: 12px; text-decoration: none; color: var(--text); border: 1px solid; }
.alert.info { background: var(--wait-bg); border-color: #D3DAFF; }
.alert.warn { background: var(--warn-bg); border-color: #F6D2A8; }
a.alert:hover { filter: brightness(.98); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; background: var(--navy-d); color: #fff;
  padding: 12px 20px; border-radius: 10px; font-weight: 600; z-index: 50; transition: all .25s; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* login */
.login-page { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-art { background: #F7F5F2 url(img/hero-bg.jpg) left center / cover; display: grid; place-content: center; text-align: center; padding: 40px; }
.login-art img { width: min(380px, 70%); margin: 0 auto; }
.login-art p { font-weight: 700; color: var(--navy); letter-spacing: .04em; margin-top: 12px; }
.login-box { padding: 48px clamp(20px, 6vw, 72px); display: flex; flex-direction: column; justify-content: center; background: #fff; }
.cobrand { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.cobrand .lg-educap { height: 30px; } .cobrand .lg-ait { height: 56px; }
.login-box h1 { margin-bottom: 4px; }
.login-box form { margin: 20px 0; }
.login-box label { font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.login-box label input { margin-top: 6px; }
.demo { font-size: 14px; background: #FFFBEA; border: 1px dashed #E6CF7A; border-radius: 12px; padding: 14px; }
.demo-list { display: grid; gap: 8px; margin: 10px 0; }
.demo-list .btn { text-align: left; }

/* welcome / guide */
.welcome { display: flex; gap: 24px; align-items: center; background: #fff url(img/hero-bg.jpg) right center / cover; border-radius: var(--radius);
  padding: 28px; margin-bottom: 18px; border: 1px solid var(--line); }
.welcome-logo { width: 170px; flex: none; }
.steps { padding-left: 20px; } .steps li { margin-bottom: 8px; }
.rules { padding-left: 20px; margin: 0; } .rules li { margin-bottom: 6px; }
.help { background: var(--wait-bg); border-color: #D3DAFF; box-shadow: none; }

/* home */
.hero { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 32px; margin-bottom: 16px;
  border-radius: var(--radius); background: #fff url(img/hero-bg.jpg) right center / cover; border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero h1 { margin: 0 0 6px; font-size: 30px; }
.hero p { margin: 0 0 16px; }
.ring { --p: 0; width: 132px; height: 132px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--red) calc(var(--p) * 1%), #E7E9F3 0); }
.ring > div { width: 104px; height: 104px; border-radius: 50%; background: #fff; display: grid; place-content: center; text-align: center; }
.ring b { font-size: 28px; color: var(--navy-d); line-height: 1; } .ring span { font-size: 12px; color: var(--muted); }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.sec { font-size: 19px; margin: 0 0 12px; justify-content: space-between; }
.tblock { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; box-shadow: var(--shadow); }
.tblock.is-current { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(43,57,144,.12); }
.tblock.is-locked { background: #FAFAFC; box-shadow: none; }
.tblock.is-locked h3 { color: var(--muted); }
.block-head { display: flex; gap: 12px; align-items: center; padding: 14px 18px; }
.block-head h3 { margin: 0; } .block-head p { margin: 2px 0 0; } .block-head > div { flex: 1; }
.dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--line); color: var(--muted); flex: none; }
.is-open .dot { background: var(--navy); color: #fff; } .is-done .dot { background: var(--ok); color: #fff; }
.items { list-style: none; margin: 0; padding: 0 10px 10px; }
.items li a, .items li .row-locked { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; text-decoration: none; color: inherit; flex-wrap: wrap; }
.items li a:hover { background: var(--bg); }
.items li.next a { background: var(--wait-bg); }
.items li.done .ic { color: var(--ok); }
.items li.task { border-top: 1px dashed var(--line); margin-top: 4px; padding-top: 4px; }
.items li.task b { color: var(--red); }
.row-locked { color: var(--muted); cursor: not-allowed; }
.ic { width: 22px; text-align: center; flex: none; color: var(--navy); font-weight: 700; }
.nm { flex: 1; min-width: 160px; }
aside .card h3 { margin-bottom: 10px; }
.next-webinar { background: var(--navy); color: #fff; border: 0; }
.next-webinar h3, .next-webinar .eyebrow { color: #fff; } .next-webinar .eyebrow { opacity: .8; }
.next-webinar .muted { color: #C9CFF0; }
.big-date { font-size: 20px; font-weight: 700; margin: 6px 0 0; }
table.webinars td { padding: 8px 6px; } table.webinars tr.past { opacity: .5; }
.assess { list-style: none; padding: 0; margin: 0; } .assess li { display: flex; flex-direction: column; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.assess li:last-child { border: 0; }

/* module */
.mod-head { margin-bottom: 8px; }
.mini-steps { display: flex; gap: 6px; margin-bottom: 14px; }
.mini-steps span { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: #fff; border: 1px solid var(--line); color: var(--muted); }
.mini-steps span.ok { background: var(--ok-bg); color: var(--ok); border-color: #BFE3D0; }
.video { position: relative; aspect-ratio: 16/9; background: #10153A; border-radius: 12px; overflow: hidden; margin-bottom: 14px; }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video.ph { display: grid; place-items: center; color: #fff; text-align: center; background: linear-gradient(135deg, var(--navy-d), var(--navy) 60%, var(--blue)); }
.video.ph .play { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.15); font-size: 26px; margin: 0 auto 8px; }
.video.ph small { opacity: .8; }
.q { padding: 14px 0; border-bottom: 1px solid var(--line); }
.q:last-of-type { border-bottom: 0; }
.qt { font-weight: 600; margin: 0 0 10px; display: flex; gap: 10px; }
.qt span { color: var(--red); }
.opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 6px; cursor: pointer; }
.opt:hover { border-color: #B9BFDD; }
.opt input { margin-top: 4px; accent-color: var(--navy); }
.opt.right { border-color: var(--ok); background: var(--ok-bg); }
.opt.wrong { border-color: var(--red); background: #FBEAEA; }
.fb { font-size: 14px; margin: 6px 0 0; font-weight: 700; } .fb.ok { color: var(--ok); } .fb.no { color: var(--warn); }
.reading p { margin: 0 0 12px; }
.nextbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px;
  background: var(--ok-bg); border: 1px solid #BFE3D0; border-radius: var(--radius); padding: 16px 20px; font-weight: 700; color: var(--ok); }
.nextbar span { flex: 1; min-width: 220px; }

/* task */
.meta-row { display: flex; gap: 8px 18px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin-bottom: 18px; align-items: center; }
.intro p { margin: 0 0 6px; }
.task-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: start; }
.task-layout.review { grid-template-columns: minmax(0, 1fr) 340px; }
.toc { position: sticky; top: 84px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.toc a { display: flex; gap: 8px; align-items: flex-start; padding: 6px 6px; border-radius: 8px; text-decoration: none; color: var(--text); font-size: 14px; line-height: 1.35; }
.toc a:hover { background: var(--bg); }
.tk { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #C7CBDD; flex: none; margin-top: 1px; }
.toc a.ok .tk { background: var(--ok); border-color: var(--ok); box-shadow: inset 0 0 0 2px #fff; }
.toc-foot { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; }
.toc-foot p { margin: 2px 0; }
.field { display: block; margin: 0 0 18px; }
.field:last-child { margin-bottom: 0; }
.flabel { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.flabel em, .ck em { font-weight: 400; color: var(--muted); font-style: normal; }
.hint { display: block; font-size: 13px; color: var(--muted); margin: -2px 0 6px; }
.field.missing input, .field.missing textarea { border-color: var(--red); background: #FFF8F8; }
.field.missing .flabel, .field.missing .checklist { color: var(--red); }
.field.missing .choices { outline: 2px solid #F3B9BB; outline-offset: 4px; border-radius: 8px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid #D6D9E6; border-radius: 99px; cursor: pointer; font-size: 14px; background: #fff; }
.choice:has(input:checked) { border-color: var(--navy); background: var(--wait-bg); color: var(--navy-d); font-weight: 700; }
.choice input { accent-color: var(--navy); margin: 0; }
.choice.other input[type=text] { padding: 4px 8px; width: 170px; border-radius: 8px; }
.choice.block { display: flex; border-radius: 12px; align-items: flex-start; margin-bottom: 8px; }
.choice.block input { margin-top: 4px; }
.checklist { display: grid; gap: 6px; }
.ck { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; background: var(--bg); cursor: pointer; }
.ck input { margin-top: 4px; accent-color: var(--ok); width: 16px; height: 16px; flex: none; }
.ck.auto { background: var(--ok-bg); cursor: default; }
.auto-tag { font-size: 12px; color: var(--ok) !important; font-weight: 700 !important; }
div.ck { cursor: default; } div.ck.on { color: var(--ok); }
.grow { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.grow-label { font-weight: 700; font-size: 14px; color: var(--navy-d); margin-bottom: 8px; }
.grow-cells { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 10px; }
.ans { background: var(--bg); border-radius: 10px; padding: 10px 12px; white-space: pre-wrap; }
.ans p { margin: 0 0 6px; } .ans p:last-child { margin: 0; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { background: var(--wait-bg); color: var(--navy-d); font-weight: 700; font-size: 13px; padding: 4px 12px; border-radius: 99px; }
.submit-card { text-align: center; background: var(--wait-bg); border-color: #D3DAFF; }
.sub-bar { margin-bottom: 14px; }
.feedback { border-left: 4px solid var(--red); background: #FFF8F8; }
.feedback p { margin: 0 0 8px; }
div.feedback { padding: 10px 14px; border-radius: 0 10px 10px 0; margin: 8px 0; }
.review-panel { position: sticky; top: 84px; }
.old { border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 12px; }
details summary { cursor: pointer; font-weight: 700; color: var(--navy); }

/* trainer */
.tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.tabs a { text-decoration: none; padding: 8px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--text); font-size: 14px; font-weight: 600; }
.tabs a.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.tabs b { margin-left: 4px; }
.tbl { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--muted); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
th, td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr.trow td { background: #FFF8F8; }
.urgent { color: var(--red) !important; font-weight: 700; }
.tchips { white-space: nowrap; }
.tchip { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; font-size: 12px; font-weight: 700; margin-right: 2px; }
.tchip.reviewed { background: var(--ok); color: #fff; } .tchip.pending { background: var(--navy); color: #fff; }
.tchip.revision { background: var(--warn); color: #fff; } .tchip.none { background: #ECEEF4; color: var(--muted); }

/* responsive */
@media (max-width: 1000px) {
  .cols, .task-layout, .task-layout.review { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
  .toc a { display: none; } .toc .eyebrow { display: none; } .toc-foot { border: 0; margin: 0; padding: 0; }
  .review-panel { position: static; }
}
@media (max-width: 760px) {
  .login-page { grid-template-columns: minmax(0, 1fr); }
  .login-art { padding: 28px; } .login-art img { width: 200px; }
  .top { padding: 8px 12px; gap: 10px; flex-wrap: wrap; }
  .brand .lg-flex, .brand .sep:nth-of-type(2), .who-name { display: none; }
  .brand .lg-educap { height: 20px; } .brand .lg-ait { height: 32px; }
  .mainnav { order: 3; width: 100%; flex: none; }
  .who { margin-left: auto; }
  h1 { font-size: 24px; } .hero h1 { font-size: 24px; }
  .hero { padding: 20px; background: #fff; }
  .ring { width: 96px; height: 96px; } .ring > div { width: 76px; height: 76px; } .ring b { font-size: 22px; }
  .welcome { flex-direction: column; text-align: center; background: #fff; }
  .card { padding: 16px; }
  .grow-cells { grid-template-columns: minmax(0, 1fr); }
}

/* print: learner keeps a copy of the task for the webinar */
@media print {
  .no-print, .top, .foot, .toc, .alert { display: none !important; }
  .print-only { display: block; }
  .print-logos { display: flex; gap: 18px; align-items: center; margin-bottom: 12px; }
  .print-logos img { height: 36px; }
  body { background: #fff; font-size: 12pt; }
  .wrap { max-width: none; padding: 0; }
  .card { box-shadow: none; break-inside: avoid; border-color: #ccc; }
  .task-layout { display: block; }
}

/* ===== Stage banners & roadmap (visual "Cấu trúc khóa học TESOL Flex") ===== */
.stage-banner { display: flex; align-items: stretch; border-radius: var(--radius); overflow: hidden; margin: 8px 0 16px; background: var(--bar); color: #fff; box-shadow: var(--shadow); }
.sb-num { background: var(--red-grad); padding: 12px 26px 12px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%); min-width: 110px; line-height: 1; }
.sb-num span { font-size: 14px; font-weight: 700; } .sb-num b { font-size: 38px; }
.sb-body { padding: 14px 18px; flex: 1; }
.sb-body h2 { color: #fff; margin: 0 0 2px; font-size: 22px; }
.sb-body p { margin: 0; opacity: .88; font-size: 14px; }
.sb-meta { padding: 14px 20px; font-size: 24px; font-weight: 700; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.sb-meta span { font-size: 12px; font-weight: 400; opacity: .85; margin-top: 4px; }
.stage-ov { margin-bottom: 18px; }
.so-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.so-col { border-radius: var(--radius); padding: 16px 18px; }
.so-col.pink { background: var(--pink-bg); } .so-col.blue { background: var(--blue-bg); }
.so-col h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; padding-bottom: 8px; border-bottom: 1px solid rgba(202,32,39,.25); }
.so-col.blue h3 { border-color: rgba(16,34,144,.2); }
.so-ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--red-grad); font-size: 15px; flex: none; }
.so-col.blue .so-ic { background: var(--navy); }
.so-col ul { margin: 0; padding-left: 18px; font-size: 14px; } .so-col li { margin-bottom: 4px; }
.so-col.pink li::marker { color: var(--red); } .so-col.blue li::marker { color: var(--navy); }
.completion { display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--red);
  border-radius: var(--radius); padding: 16px 20px; margin: 4px 0 18px; box-shadow: var(--shadow); }
.completion p { margin: 2px 0 0; font-size: 14px; } .completion b { color: var(--navy); font-size: 17px; }
.medal { width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 22px; flex: none;
  box-shadow: 0 0 0 4px var(--blue-bg); }
.roadmap { list-style: none; display: grid; grid-template-columns: 2fr 1.2fr 1fr; gap: 10px; padding: 0; margin: 4px 0 22px; }
.roadmap li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; position: relative; }
.roadmap li.on { border-color: var(--navy); box-shadow: inset 0 -4px 0 var(--red); }
.roadmap li.done { border-color: #BFE3D0; }
.roadmap b { color: var(--navy); font-size: 16px; }
.rm-stage { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--red); }
.rm-end .rm-stage { color: var(--muted); }
.rm-sub { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.rm-sub i { font-style: normal; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--bg); color: var(--muted); }
.rm-sub i.on { background: var(--red); color: #fff; } .rm-sub i.ok { background: var(--ok-bg); color: var(--ok); }
.part { display: flex; align-items: center; gap: 10px; font-size: 17px; margin: 22px 0 10px; flex-wrap: wrap; }
.part > span { width: 26px; height: 26px; border-radius: 8px; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 13px; }
.part em { font-style: normal; font-weight: 400; font-size: 13px; color: var(--muted); }
.ks-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 8px; }
.ks-step { background: var(--blue-bg); border-radius: 12px; padding: 12px; font-size: 14px; font-weight: 600; color: var(--navy-d); }
.ks-step span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 12px; margin-bottom: 6px; }
.assess-sum { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.assess-sum li { padding: 8px 0; border-bottom: 1px solid var(--line); } .assess-sum li:last-child { border: 0; }
.assess-sum b { display: block; color: var(--red); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.next-webinar { background: var(--bar); }
.next-webinar .small { color: #DCE6FF; }
@media (max-width: 760px) {
  .so-grid, .ks-grid, .roadmap { grid-template-columns: minmax(0, 1fr); }
  .sb-num { min-width: 80px; padding: 10px 18px 10px 12px; } .sb-num b { font-size: 28px; }
  .sb-body h2 { font-size: 18px; } .sb-meta { display: none; }
}

/* ===== Course guide banner (home) ===== */
.mainnav a.on { background: var(--blue-bg); color: var(--navy); }
.eyebrow.light { color: #FFD5D7; }
.hero.slim { padding: 22px 28px; }
.hero.slim h1 { margin-bottom: 14px; }
.guide-banner { background: var(--bar); border-radius: 18px; padding: 24px; margin: 4px 0 18px; color: #fff; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.guide-banner::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--red); }
.gb-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.gb-head h2 { color: #fff; font-size: 26px; margin: 0 0 4px; }
.gb-head p { margin: 0; opacity: .9; }
.gb-head img { height: 64px; background: #fff; border-radius: 12px; padding: 6px 10px; flex: none; }
.gb-flow { display: grid; grid-template-columns: 1fr 28px 1fr 28px 0.85fr; align-items: stretch; gap: 8px; }
.gb-arrow { display: grid; place-items: center; font-size: 24px; font-weight: 700; opacity: .8; }
.gb-stage, .gb-cert { background: #fff; color: var(--text); border-radius: 14px; padding: 16px; text-decoration: none; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
a.gb-stage:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.gb-stage.locked { background: #F3F5FB; }
.gb-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.gb-top > div { flex: 1; } .gb-top h3 { margin: 0; font-size: 17px; }
.gb-num { width: 42px; height: 42px; border-radius: 10px; background: var(--red-grad); color: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 700; flex: none; }
.gb-stage.locked .gb-num { background: #A8AFC6; }
.gb-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--red); }
.gb-steps { list-style: none; margin: 0 0 10px; padding: 0; counter-reset: g; flex: 1; }
.gb-steps li { position: relative; padding: 6px 0 6px 30px; font-size: 14px; border-left: 2px dashed var(--line); margin-left: 10px; }
.gb-steps li::before { counter-increment: g; content: counter(g); position: absolute; left: -11px; top: 6px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 2px solid var(--navy); color: var(--navy); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.gb-steps li.ok::before { content: "✓"; background: var(--ok); border-color: var(--ok); color: #fff; }
.gb-steps li:last-child { border-left-color: transparent; }
.gb-steps b { display: block; color: var(--navy-d); } .gb-steps span { color: var(--muted); font-size: 13px; }
.gb-assess { font-size: 13px; margin: 0 0 10px; background: var(--pink-bg); border-radius: 8px; padding: 8px 10px; }
.gb-assess b { color: var(--red); }
.gb-go { font-weight: 700; color: var(--navy); font-size: 14px; }
.gb-cert { align-items: center; text-align: center; background: linear-gradient(180deg, #fff, var(--blue-bg)); }
.gb-cert h3 { margin: 10px 0 2px; } .gb-cert p { margin: 0 0 8px; font-size: 14px; }
.gb-cert.done { box-shadow: 0 0 0 3px #FFD86B; }
.medal.big { width: 64px; height: 64px; font-size: 30px; box-shadow: 0 0 0 5px #fff, 0 0 0 7px var(--red); }
.cert-req { list-style: none; padding: 0; margin: 4px 0 8px; text-align: left; font-size: 13px; width: 100%; }
.cert-req li { padding: 4px 8px; border-radius: 6px; color: var(--muted); }
.cert-req li.ok { color: var(--ok); font-weight: 700; }
.home-cards { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 14px; }
.ring.sm { width: 92px; height: 92px; margin: 4px auto; } .ring.sm > div { width: 72px; height: 72px; } .ring.sm b { font-size: 20px; }

/* ===== Stage 2 ===== */
.locked-card { text-align: center; } .lock-ic { font-size: 40px; margin: 0; }
.locked-card h2 { justify-content: center; }
.subjects { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin: 12px 0; }
.subject { display: flex; align-items: center; gap: 10px; text-align: left; font: inherit; font-size: 14px; font-weight: 600; color: var(--navy-d);
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; transition: all .15s; }
.subject:hover { border-color: var(--blue-2); }
.subject.on { border-color: var(--red); background: var(--pink-bg); box-shadow: 0 0 0 3px rgba(202,32,39,.12); }
.subject.ro { cursor: default; background: var(--bg); }
.subject > span:nth-child(2) { flex: 1; }
.tick { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; flex: none; color: var(--muted); }
.subject.on .tick { background: var(--red); color: #fff; border-color: var(--red); }
.code { display: inline-block; font-size: 12px; font-weight: 700; color: #fff; background: var(--navy); border-radius: 6px; padding: 2px 7px; font-family: inherit; }
.code.big { font-size: 15px; padding: 4px 10px; }
.ks-confirm { text-align: center; padding-top: 8px; }
.ks-mine { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ks-card h3 { font-size: 18px; margin: 10px 0; }
.ks-track { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 0; margin: 0 0 12px; }
.ks-track li { font-size: 12px; font-weight: 700; text-align: center; padding: 6px 2px; border-radius: 6px; background: var(--bg); color: var(--muted); }
.ks-track li.ok { background: var(--ok-bg); color: var(--ok); } .ks-track li.on { background: var(--red); color: #fff; }

/* ===== Admin ===== */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.kpi b { display: block; font-size: 30px; color: var(--navy); line-height: 1.1; } .kpi span { font-size: 13px; color: var(--muted); }
.kpi.hot { border-color: var(--red); background: var(--pink-bg); } .kpi.hot b { color: var(--red); }
tr.hot-row td { background: #FFF6F6; }
.btn.sm { padding: 6px 10px; font-size: 13px; border-radius: 8px; }
select { font: inherit; padding: 8px 10px; border-radius: 10px; border: 1px solid #D6D9E6; background: #fff; min-width: 220px; }
pre { white-space: pre-wrap; font-size: 11px; background: var(--bg); padding: 8px; border-radius: 8px; max-width: 420px; }

@media (max-width: 1000px) {
  .gb-flow { grid-template-columns: minmax(0, 1fr); } .gb-arrow { transform: rotate(90deg); height: 20px; }
  .home-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .gb-head img { display: none; } .gb-head h2 { font-size: 21px; }
  .guide-banner { padding: 16px 14px 16px 20px; }
  .home-cards, .ks-mine, .kpis { grid-template-columns: minmax(0, 1fr); }
}
.mainnav { overflow-x: auto; scrollbar-width: none; }
.mainnav a { white-space: nowrap; }
@media (max-width: 1000px) { .brand .lg-flex, .brand .sep:nth-of-type(2) { display: none; } .who-name { display: none; } }

/* ===== Module player (learner) ===== */
.mod-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.mod-top h1 { margin-bottom: 0; }
.mod-prog { min-width: 220px; } .mod-prog .bar { margin-top: 0; }
.player { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; align-items: start; margin-top: 12px; }
.playlist { position: sticky; top: 84px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; box-shadow: var(--shadow); max-height: calc(100vh - 110px); overflow: auto; }
.playlist a { display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; border-radius: 10px; text-decoration: none; color: var(--text); font-size: 14px; line-height: 1.3; }
.playlist a:hover { background: var(--bg); }
.playlist a.on { background: var(--blue-bg); box-shadow: inset 3px 0 0 var(--red); }
.pl-ic { width: 26px; height: 26px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; flex: none; font-size: 12px; color: var(--navy); }
.playlist a.ok .pl-ic { background: var(--ok); color: #fff; font-weight: 700; }
.pl-t { display: flex; flex-direction: column; font-weight: 600; }
.pl-t em { font-style: normal; font-weight: 400; font-size: 12px; color: var(--muted); }
.step { min-height: 380px; display: flex; flex-direction: column; }
.step h2 { font-size: 21px; }
.step .lead { font-size: 17px; }
.step-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.step-nav .btns { align-items: center; }
.step-nav .okline { margin: 0 6px 0 0; }
.ticks { list-style: none; padding: 0; } .ticks li { padding: 4px 0 4px 28px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.tips { background: var(--pink-bg); border-radius: 12px; padding: 12px 16px; margin: 12px 0; }
.tips h3 { margin: 0 0 6px; } .tips ul { margin: 0; padding-left: 18px; font-size: 14px; }
.inside { list-style: none; padding: 0; margin: 0; columns: 2; font-size: 14px; }
.inside li { break-inside: avoid; padding: 4px 0; display: flex; gap: 8px; } .inside em { font-style: normal; color: var(--muted); font-size: 12px; margin-left: auto; padding-left: 6px; }
.demo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.demo-grid .video { margin-bottom: 0; }
.res-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; }
.res-item > span:nth-child(2) { flex: 1; font-weight: 600; }
.res-ic { font-size: 20px; }
@media (max-width: 1000px) {
  .player { grid-template-columns: minmax(0, 1fr); }
  .playlist { position: static; max-height: none; display: flex; overflow-x: auto; gap: 4px; }
  .playlist a { flex: none; max-width: 210px; }
  .inside { columns: 1; }
}

/* ===== Hub content: articles, lesson questions ===== */
.article { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: #fff; }
.article summary { list-style: none; padding: 12px 16px; font-weight: 700; color: var(--navy-d); display: flex; justify-content: space-between; gap: 10px; }
.article summary::after { content: "＋"; color: var(--red); } .article[open] summary::after { content: "－"; }
.article summary::-webkit-details-marker { display: none; }
.article[open] summary { border-bottom: 1px solid var(--line); }
.article-body { padding: 4px 18px 14px; font-size: 15px; line-height: 1.65; }
.article-body h4 { color: var(--navy); margin: 16px 0 6px; font-size: 16px; }
.article-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 6px 0; }
.article-body ul, .article-body ol { padding-left: 22px; } .article-body li { margin-bottom: 6px; }
.md-table { font-size: 14px; } .md-table th { background: var(--blue-bg); color: var(--navy-d); text-transform: none; letter-spacing: 0; font-size: 13px; }
.leadin-media img { max-width: 100%; border-radius: 12px; margin-bottom: 12px; }
.lesson-q { margin-top: 18px; padding-top: 6px; border-top: 1px solid var(--line); }
.lesson-q h3 { margin-bottom: 2px; }
.suggested { background: var(--ok-bg); border: 1px solid #BFE3D0; border-radius: 12px; margin-top: 14px; }
.suggested summary { padding: 12px 16px; font-weight: 700; color: var(--ok); cursor: pointer; }
.opt.picked { border-color: var(--navy); background: var(--blue-bg); }
.slides { position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); margin-bottom: 16px; }
.slides iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 760px) { .slides { aspect-ratio: 3 / 4; } }
.deck { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #fff; margin-bottom: 18px; }
.deck-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.deck-track::-webkit-scrollbar { display: none; }
.deck-track img { flex: 0 0 100%; width: 100%; height: auto; scroll-snap-align: start; display: block; }
.deck-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(16,34,144,.75);
  color: #fff; font-size: 26px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.deck-btn:hover { background: var(--navy); } .deck-btn.prev { left: 10px; } .deck-btn.next { right: 10px; }
.deck-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.deck-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(16,34,144,.25); }
.deck-dots span.on { background: var(--red); width: 20px; border-radius: 4px; }

/* Admin cohort form */
.field label.small { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.field label.small input { max-width: 260px; }

/* Show/hide password */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 44px; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center;
  border: 0; background: transparent; color: var(--muted, #6B7280); cursor: pointer; border-radius: 8px; padding: 0; }
.pw-eye:hover { color: var(--navy); background: var(--blue-bg); }
.login-box label .pw-wrap { margin-top: 6px; }
.login-box label .pw-wrap input { margin-top: 0; }

/* In-page confirm box */
.modal-bg { position: fixed; inset: 0; background: rgba(16,34,144,.35); display: grid; place-items: center; padding: 16px; z-index: 1000; }
.modal { background: #fff; border-radius: 16px; max-width: 460px; width: 100%; padding: 24px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.modal-body p { margin: 0 0 12px; }
.modal .btns { margin-top: 16px; }

/* ===== UX update 10/11/2026: task validation, quiz + readings, mobile ===== */
/* Task: missing parts */
.field.missing { background: #FFF5F5; border-radius: 12px; padding: 10px; margin-left: -10px; margin-right: -10px; box-shadow: inset 3px 0 0 var(--red); }
.field.missing .flabel::after { content: " · required"; font-weight: 600; font-size: 12px; }
.ck.miss { background: #FFE9EA; box-shadow: inset 0 0 0 1px #F3B9BB; }
.tsec.has-missing { border-color: #F3B9BB; }
.tsec.has-missing h2 .num { background: var(--red); }
.toc a.miss { color: var(--red); font-weight: 700; }
.toc a.miss .tk { border-color: var(--red); }
.missing-box { text-align: left; background: #FFF5F5; border: 1px solid #F3B9BB; border-radius: 12px; padding: 12px 14px; margin: 0 auto 14px; max-width: 560px; color: var(--red); font-size: 14px; }
.missing-box ul { margin: 6px 0 0; padding-left: 18px; }
.missing-box a { color: var(--red); }
.toc-foot { display: flex; align-items: center; gap: 12px; }
.toc-foot-txt { flex: 1; min-width: 0; }
.toc-submit { display: none; }

/* Review quiz with readings side by side */
.qr-tabs { display: none; }
.qr-split.has-read { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.qr-read { position: sticky; top: 84px; max-height: calc(100vh - 110px); overflow: auto; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.qr-read .eyebrow { margin: 0 0 2px; }
.qr-read .article { background: #fff; }
#qcount { margin: 6px 0 10px; }

/* Playlist toggle (mobile only) */
.pl-toggle { display: none; }

/* Offline banner */
.net-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; background: #7A1A1E; color: #fff; font-size: 14px; padding: 10px 16px; text-align: center; }

/* Header avatar as link */
a.avatar { text-decoration: none; }

@media (max-width: 1100px) {
  .qr-split.has-read { grid-template-columns: minmax(0, 1fr); }
  .qr-tabs { display: flex; gap: 6px; position: sticky; top: 0; z-index: 5; background: #fff; padding: 8px 0; margin: 4px 0 10px; }
  .qr-tabs button { flex: 1; font: inherit; font-weight: 700; font-size: 14px; padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--text); cursor: pointer; }
  .qr-tabs button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
  .qr-read { display: none; position: static; max-height: none; }
  .qr-split.show-read .qr-read { display: block; }
  .qr-split.show-read .qr-q { display: none; }
}
@media (max-width: 1000px) {
  /* Module player: compact step selector instead of a long list */
  .pl-toggle { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 10px; font: inherit; font-size: 14px; text-align: left;
    background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); cursor: pointer; color: var(--text); }
  .pl-toggle b { color: var(--navy); }
  .pl-caret { flex: none; color: var(--navy); font-weight: 700; font-size: 13px; }
  .player .playlist { display: none; }
  .player .playlist.open { display: block; overflow: visible; }
  .player .playlist.open a { max-width: none; }
  /* Task: sticky progress + submit bar */
  .toc { position: sticky; top: auto; bottom: 0; z-index: 20; padding: 10px 14px; border-radius: 14px 14px 0 0; order: 2; }
  .task-layout { display: flex; flex-direction: column; }
  .task-layout > form { order: 1; }
  .toc-submit { display: inline-flex; }
  .toc-foot p#saved { display: none; }
}
@media (max-width: 760px) {
  .wrap { padding: 16px 12px 40px; }
  .pw-link { display: none; }
  .who .link { font-size: 13px; }
  h1 { font-size: 24px; line-height: 1.2; }
  .card { padding: 16px; }
  .card.step h2 { font-size: 19px; }
  .mod-top { gap: 8px; }
  /* sticky step actions so the next button is always in reach */
  .card.step .step-nav { position: sticky; bottom: 0; background: #fff; margin: 18px -16px -16px; padding: 10px 12px; border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 -6px 14px rgba(16,34,144,.08); z-index: 4; }
  .step-nav .btn { padding: 10px 14px; }
  .grow-cells { grid-template-columns: minmax(0, 1fr); }
  .choice { font-size: 14px; }
  .q textarea, .field textarea, .field input { font-size: 16px; } /* 16px stops iOS zooming into fields */
  .modal { padding: 18px; }
  .modal .btns { flex-direction: column-reverse; } .modal .btns .btn { width: 100%; justify-content: center; }
}
.field.missing .checklist { color: inherit; }
.field.missing .ck.auto { color: var(--text); }
.ck.miss { color: var(--red); }
@media (max-width: 1000px) { .toast { bottom: 84px !important; } }

/* ===== Bottom tab bar, reminders, video resume (10/11/2026) ===== */
.bnav { display: none; }
.remind { display: flex; align-items: center; gap: 10px; text-decoration: none; background: #FFF7E6; border: 1px solid #F5D9A3; color: #7A4B00;
  border-radius: 12px; padding: 10px 14px; margin: 0 0 14px; font-size: 14px; font-weight: 600; }
.remind span:nth-child(2) { flex: 1; }
.remind.late { background: #FFF0F0; border-color: #F3B9BB; color: var(--red); }
.video-wrap .resume { margin: 8px 0 0; font-size: 14px; color: var(--navy); }
.video-wrap .resume .link { font-size: 14px; }
@media (max-width: 760px) {
  body.has-bnav { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  body.has-bnav .mainnav { display: none; }
  body.has-bnav .foot { padding-bottom: 20px; }
  .bnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 800; background: #fff; border-top: 1px solid var(--line);
    box-shadow: 0 -4px 16px rgba(16,34,144,.08); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bnav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: var(--muted, #6B7280);
    font-size: 11px; font-weight: 700; padding: 4px 0; border-radius: 10px; }
  .bnav a.on { color: var(--navy); }
  .bnav a.on .bn-ic { background: var(--blue-bg); }
  .bn-ic { position: relative; display: grid; place-items: center; width: 44px; height: 28px; border-radius: 99px; }
  .bn-badge { position: absolute; top: -3px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--red); color: #fff;
    font-size: 10px; font-style: normal; line-height: 16px; text-align: center; }
  /* sticky bars sit above the tab bar */
  body.has-bnav .card.step .step-nav { bottom: calc(64px + env(safe-area-inset-bottom)); }
  body.has-bnav .net-banner { bottom: calc(64px + env(safe-area-inset-bottom)); }
  body.has-bnav .toast { bottom: calc(150px + env(safe-area-inset-bottom)) !important; }
}
@media (max-width: 1000px) {
  body.has-bnav .toc { bottom: 0; }
}
@media (max-width: 760px) {
  body.has-bnav .toc { bottom: calc(64px + env(safe-area-inset-bottom)); }
}
@media print { .bnav, .remind { display: none !important; } }
@media (max-width: 760px) { table.webinars { font-size: 13px; } table.webinars th, table.webinars td { padding: 6px 4px; } }
@media (max-width: 760px) {
  .card.step .step-nav { flex-wrap: nowrap; gap: 8px; }
  .card.step .step-nav > a.btn.ghost { flex: none; font-size: 0; padding: 10px 14px; }
  .card.step .step-nav > a.btn.ghost::before { content: "←"; font-size: 18px; }
  .card.step .step-nav .btns { flex: 1; justify-content: flex-end; flex-wrap: nowrap; gap: 6px; min-width: 0; }
  .card.step .step-nav .btns .btn { white-space: nowrap; font-size: 14px; padding: 10px 12px; }
  .card.step .step-nav .okline { display: none; }
}
