@font-face { font-family: Inter; font-weight: 400; src: url(fonts/inter-400.woff) format('woff'); font-display: swap; }
@font-face { font-family: Inter; font-weight: 600; src: url(fonts/inter-600.woff) format('woff'); font-display: swap; }
@font-face { font-family: Inter; font-weight: 700; src: url(fonts/inter-700.woff) format('woff'); font-display: swap; }
@font-face { font-family: InterDisplay; font-weight: 800; src: url(fonts/interdisplay-800.woff) format('woff'); font-display: swap; }
:root { --brand: #C62828; --brand-d: #8E1414; --ink: #111; --bg: #F2F2F5; --card: #fff; --line: #E4E5EA; --mute: #666B75;
  --green: #1E8E3E; --blue: #1A63D6; --amber: #B97E00; --purple: #7B3FBF; --teal: #0E8A86; --r: 16px; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.45 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--blue); }
img { max-width: 100%; }
.boot { min-height: 80vh; display: grid; place-items: center; text-align: center; color: var(--mute); } .boot img { width: 90px; }

/* ---------- top bar + layout ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--ink); color: #fff; padding: calc(10px + env(safe-area-inset-top)) 14px 10px; display: flex; align-items: center; gap: 10px; }
.top img { width: 38px; height: 38px; object-fit: contain; }
.top .tt { flex: 1; min-width: 0; } .top small { display: block; color: #ff7676; font: 700 10px 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter; letter-spacing: .14em; text-transform: uppercase; }
.top b { display: block; font-size: 18px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .ic { width: 42px; height: 42px; border-radius: 12px; border: 0; background: #262629; color: #fff; font-size: 20px; flex: none; position: relative; }
.top .ic i { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--brand); font: 700 11px/20px 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter; font-style: normal; padding: 0 5px; }
main { max-width: 820px; margin: 0 auto; padding: 14px 14px calc(96px + env(safe-area-inset-bottom)); display: grid; gap: 12px; }
main.wide { max-width: 1200px; }
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line); display: flex; justify-content: center; padding-bottom: env(safe-area-inset-bottom); }
.nav a { flex: 1; max-width: 140px; text-align: center; padding: 8px 2px 9px; text-decoration: none; color: var(--mute); font: 600 11px 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter; position: relative; }
.nav a span { display: block; font-size: 22px; line-height: 1.2; }
.nav a.on { color: var(--brand); } .nav a.on::before { content: ''; position: absolute; top: 0; left: 25%; right: 25%; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand); }
.nav a i { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 18px; height: 18px; border-radius: 9px; background: var(--brand); color: #fff; font: 700 10px/18px 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter; font-style: normal; padding: 0 4px; }

/* ---------- blocks ---------- */
.card { background: var(--card); border-radius: var(--r); padding: 14px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.card h3 { margin: 0 0 8px; font-size: 17px; }
.h { font: 800 22px/1.2 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter, sans-serif; margin: 4px 2px 0; }
.sub { color: var(--mute); font-size: 14px; margin: 0 2px; }
.sec { font: 700 12px 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin: 8px 2px -4px; }
.muted { color: var(--mute); } .small { font-size: 13px; }
.hero { background: linear-gradient(135deg, var(--brand), var(--brand-d)); color: #fff; border-radius: 20px; padding: 16px; }
.hero small { opacity: .92; display: block; } .hero b { display: block; font: 800 24px/1.2 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter; margin: 2px 0; }
.bar { height: 10px; border-radius: 5px; background: rgba(0,0,0,.12); overflow: hidden; } .hero .bar { background: rgba(255,255,255,.3); margin-top: 10px; }
.bar i { display: block; height: 100%; background: var(--green); border-radius: 5px; } .hero .bar i { background: #fff; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 700px) { .grid2.w4 { grid-template-columns: repeat(4, 1fr); } }
.tile { border: 0; border-radius: 16px; padding: 12px; color: #fff; text-align: left; display: flex; flex-direction: column; gap: 2px; min-height: 84px; text-decoration: none; }
.tile b { font: 800 26px/1.1 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter; } .tile span { font: 600 13px 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter; opacity: .95; }
.tile.ic { min-height: 92px; justify-content: space-between; } .tile.ic em { font-size: 26px; font-style: normal; }
.c-red { background: var(--brand); } .c-green { background: var(--green); } .c-blue { background: var(--blue); } .c-amber { background: var(--amber); }
.c-purple { background: var(--purple); } .c-ink { background: #2a2a2e; } .c-teal { background: var(--teal); } .c-grey { background: #8b8f98; }

/* buttons */
.btn { min-height: 50px; border-radius: 14px; border: 0; background: var(--brand); color: #fff; font: 700 16px 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter; padding: 10px 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; text-align: center; }
.btn.block { display: flex; width: 100%; } .btn.sm { min-height: 40px; font-size: 14px; padding: 6px 12px; border-radius: 11px; }
.btn.green { background: var(--green); } .btn.ink { background: var(--ink); } .btn.blue { background: var(--blue); } .btn.amber { background: var(--amber); } .btn.purple { background: var(--purple); }
.btn.ghost { background: #fff; color: var(--ink); border: 2px solid var(--line); } .btn.danger { background: #fff; color: var(--brand); border: 2px solid #f3c4c4; }
.btn:disabled { opacity: .5; cursor: default; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; } .row-btns .btn { flex: 1 1 140px; }

/* chips + tabs */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; } .tabs::-webkit-scrollbar { display: none; }
.tabs button, .tabs a { flex: none; border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: 8px 12px; font: 700 14px 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter; text-decoration: none; color: var(--ink); white-space: nowrap; }
.tabs .on { border-color: var(--brand); background: #FDECEC; color: var(--brand-d); }
.chip { display: inline-block; background: #EEF0F3; color: #333; border-radius: 9px; padding: 3px 8px; font: 700 12px 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter; margin: 2px 4px 2px 0; white-space: nowrap; }
.chip.red { background: #FDECEC; color: #A51818; } .chip.green { background: #E5F4EA; color: #146C2E; } .chip.amber { background: #FFF3D6; color: #845A00; } .chip.blue { background: #E6EEFC; color: #1450AE; } .chip.purple { background: #F1E8FB; color: #5F2C9A; }

/* lists */
.list { display: grid; gap: 8px; }
.item { background: #fff; border-radius: 14px; padding: 12px; display: flex; gap: 12px; align-items: center; border: 0; width: 100%; text-align: left; text-decoration: none; color: var(--ink); border-left: 6px solid var(--line); }
.item .em { font-size: 24px; flex: none; width: 30px; text-align: center; } .item .tx { flex: 1; min-width: 0; }
.item b { display: block; line-height: 1.25; } .item small { display: block; color: var(--mute); font-size: 13px; margin-top: 2px; }
.item .end { flex: none; text-align: right; font: 700 14px 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter; }
.item.done { border-left-color: var(--green); } .item.now { border-left-color: var(--brand); } .item.lock { opacity: .62; } .item.wait { border-left-color: var(--amber); } .item.blue { border-left-color: var(--blue); } .item.purple { border-left-color: var(--purple); }
.alert { border-radius: 14px; padding: 12px; color: #fff; display: flex; gap: 10px; align-items: center; border: 0; width: 100%; text-align: left; text-decoration: none; }
.alert .em { font-size: 24px; } .alert b { display: block; } .alert small { display: block; opacity: .95; font-size: 13px; }
.mod { background: #fff; border-radius: 16px; overflow: hidden; }
.mod > summary { list-style: none; padding: 14px; display: flex; gap: 12px; align-items: center; cursor: pointer; border-left: 6px solid var(--line); }
.mod > summary::-webkit-details-marker { display: none; }
.mod > summary .n { width: 34px; height: 34px; border-radius: 10px; background: #EEF0F3; display: grid; place-items: center; font: 800 16px 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter; flex: none; }
.mod.done > summary { border-left-color: var(--green); } .mod.done > summary .n { background: var(--green); color: #fff; }
.mod.now > summary { border-left-color: var(--brand); } .mod.now > summary .n { background: var(--brand); color: #fff; }
.mod.lock > summary { opacity: .65; }
.mod .les { padding: 0 10px 10px; display: grid; gap: 6px; } .mod .les .item { border: 1px solid var(--line); border-left-width: 5px; }

/* forms */
label.f { display: grid; gap: 4px; font: 600 14px 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter; } label.f small { font-weight: 400; color: var(--mute); }
.in, select.in, textarea.in { width: 100%; min-height: 48px; border-radius: 12px; border: 2px solid var(--line); background: #fff; padding: 10px 12px; font-size: 16px; }
textarea.in { min-height: 110px; resize: vertical; line-height: 1.5; }
.in:focus { outline: none; border-color: var(--blue); }
.form { display: grid; gap: 12px; }
.sw { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 12px; cursor: pointer; }
.sw b { display: block; font-size: 15px; } .sw small { display: block; color: var(--mute); font-size: 13px; }
.sw input { position: absolute; opacity: 0; pointer-events: none; }
.sw i { width: 50px; height: 30px; border-radius: 15px; background: #c9ccd2; position: relative; flex: none; transition: background .15s; }
.sw i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.sw input:checked + i { background: var(--green); } .sw input:checked + i::after { left: 23px; }
.pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.pick button { border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 12px 8px; font: 700 14px 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter; display: grid; gap: 2px; justify-items: center; text-align: center; }
.pick button span { font-size: 26px; } .pick button small { font-weight: 400; color: var(--mute); font-size: 12px; }
.pick button.on { border-color: var(--brand); background: #FDECEC; }

/* lesson + test */
.reading { background: #fff; border-radius: var(--r); padding: 18px; font-size: 17px; line-height: 1.65; }
.reading h2 { font-size: 21px; margin: 18px 0 6px; } .reading h3 { font-size: 18px; margin: 14px 0 4px; } .reading p { margin: 0 0 12px; } .reading ul { padding-left: 22px; margin: 0 0 12px; }
.reading img { border-radius: 10px; }
.video { position: relative; background: #000; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 9; } .video video, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.q { background: #fff; border-radius: var(--r); padding: 16px; display: grid; gap: 10px; }
.q .qn { font: 700 12px 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter; letter-spacing: .12em; color: var(--mute); text-transform: uppercase; }
.q .qp { font: 700 18px/1.35 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter; white-space: pre-wrap; }
.opt { border: 2px solid var(--line); border-radius: 14px; padding: 13px 14px; background: #fff; text-align: left; font: 600 16px 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter; display: flex; gap: 10px; align-items: center; width: 100%; }
.opt i { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #b9bdc6; flex: none; font-style: normal; display: grid; place-items: center; font-size: 14px; color: #fff; }
.opt.multi i { border-radius: 7px; }
.opt.on { border: 3px solid var(--brand); background: #FDECEC; padding: 12px 13px; } .opt.on i { background: var(--brand); border-color: var(--brand); }
.opt.right { border-color: var(--green); background: #E5F4EA; } .opt.wrong { border-color: var(--brand); background: #FDECEC; }
.dots { display: flex; gap: 4px; flex-wrap: wrap; } .dots button { flex: 1 0 18px; min-width: 18px; height: 22px; border-radius: 6px; background: #dcdfe4; border: 0; font: 700 10px 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter; color: #555; }
.dots button.a { background: #f3b9b9; color: #7d0b0b; } .dots button.c { outline: 3px solid var(--ink); }
.exam-top { position: sticky; top: 0; z-index: 25; background: var(--ink); color: #fff; padding: calc(8px + env(safe-area-inset-top)) 12px 8px; display: flex; gap: 10px; align-items: center; }
.exam-top .tt { flex: 1; min-width: 0; } .exam-top b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .exam-top small { color: #ff8a8a; font: 700 11px 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter; letter-spacing: .1em; }
.clock { font: 800 22px 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter; background: #262629; padding: 6px 10px; border-radius: 10px; font-variant-numeric: tabular-nums; } .clock.low { background: var(--brand); }
.selfcam { position: fixed; right: 12px; bottom: calc(88px + env(safe-area-inset-bottom)); width: 108px; height: 81px; border-radius: 12px; overflow: hidden; z-index: 40; border: 3px solid var(--green); background: #000; box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.selfcam video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); } .selfcam span { position: absolute; left: 4px; top: 3px; font: 700 10px 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter; color: #fff; background: rgba(198,40,40,.9); border-radius: 6px; padding: 1px 5px; }
.selfcam.off { border-color: var(--brand); }
.warnbar { background: var(--brand); color: #fff; border-radius: 14px; padding: 12px; font-weight: 700; }
.camcheck { position: relative; border-radius: var(--r); overflow: hidden; background: #000; aspect-ratio: 4 / 3; max-width: 420px; margin: 0 auto; width: 100%; } .camcheck video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.result { text-align: center; padding: 22px 14px; } .result .big { font: 800 54px 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter; } .result .em { font-size: 56px; }

/* grids for the team */
.watch { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.watch .cell { background: #fff; border-radius: 14px; overflow: hidden; } .watch .cell .ph { aspect-ratio: 4 / 3; background: #222; display: grid; place-items: center; color: #aaa; font-size: 13px; } .watch .cell .ph img { width: 100%; height: 100%; object-fit: cover; }
.watch .cell .meta { padding: 8px 10px; font-size: 13px; } .watch .cell.warn { outline: 4px solid var(--brand); }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 6px; } .shots figure { margin: 0; position: relative; } .shots img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: #222; display: block; }
.shots figcaption { position: absolute; left: 4px; bottom: 4px; background: rgba(0,0,0,.65); color: #fff; font: 600 10px 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter; border-radius: 5px; padding: 1px 5px; }
.tbl-wrap { overflow-x: auto; background: #fff; border-radius: 14px; }
table.gb { border-collapse: collapse; width: 100%; font-size: 14px; } table.gb th, table.gb td { padding: 9px 8px; border-bottom: 1px solid #eee; text-align: center; white-space: nowrap; }
table.gb th { font: 700 11px 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter; color: var(--mute); vertical-align: bottom; max-width: 110px; white-space: normal; } table.gb td:first-child, table.gb th:first-child { text-align: left; position: sticky; left: 0; background: #fff; font-weight: 700; }
table.gb td button { border: 0; background: none; font: 800 14px 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter; padding: 4px 6px; border-radius: 8px; }
.ok { color: var(--green); } .no { color: var(--brand); } .wt { color: var(--amber); }
.months { display: flex; gap: 4px; flex-wrap: wrap; } .months span { border-radius: 8px; padding: 4px 7px; font: 700 12px 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter; color: #fff; background: #9aa0a9; }
.months .paid { background: var(--green); } .months .failed { background: var(--brand); } .months .late { background: var(--amber); } .months .waived { background: #c0c4cb; }
.thread { display: grid; gap: 8px; } .bubble { max-width: 82%; padding: 10px 12px; border-radius: 16px; background: #fff; white-space: pre-wrap; } .bubble small { display: block; color: var(--mute); font-size: 11px; margin-top: 3px; }
.bubble.me { justify-self: end; background: var(--ink); color: #fff; } .bubble.me small { color: #bbb; }
.bubble.staff-reply { justify-self: start; background: #fff; border-left: 4px solid var(--brand); }
.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--bg); width: 100%; max-width: 620px; max-height: 92vh; overflow-y: auto; border-radius: 22px 22px 0 0; padding: 14px 14px calc(18px + env(safe-area-inset-bottom)); display: grid; gap: 12px; }
@media (min-width: 700px) { .overlay { align-items: center; } .sheet { border-radius: 22px; } }
.sheet .sh-h { display: flex; align-items: center; gap: 10px; } .sheet .sh-h b { flex: 1; font: 800 20px 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter; } .sheet .sh-h button { width: 40px; height: 40px; border-radius: 12px; border: 0; background: #fff; font-size: 18px; }
#toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: .2s; z-index: 90; max-width: calc(100vw - 32px); text-align: center; }
#toast.on { opacity: 1; transform: translateX(-50%); }
.empty { text-align: center; color: var(--mute); padding: 26px 10px; background: #fff; border-radius: var(--r); }
.empty span { display: block; font-size: 40px; }
.auth { max-width: 420px; margin: 0 auto; padding: 30px 18px 60px; display: grid; gap: 14px; }
.auth .logo { text-align: center; } .auth .logo img { width: 120px; } .auth .logo b { display: block; font: 800 26px 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter; margin-top: 4px; } .auth .logo small { color: var(--mute); }
.prog { position: relative; height: 12px; border-radius: 6px; background: #e3e5ea; overflow: hidden; } .prog i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--blue); }
.qed { background: #fff; border-radius: 14px; padding: 12px; display: grid; gap: 8px; border-left: 6px solid var(--blue); }
.qed .oprow { display: flex; gap: 6px; align-items: center; } .qed .oprow .in { min-height: 42px; padding: 6px 10px; }
.qed .tick { width: 42px; height: 42px; border-radius: 10px; border: 2px solid var(--line); background: #fff; font-size: 18px; flex: none; } .qed .tick.on { background: var(--green); border-color: var(--green); color: #fff; }
.mini { width: 40px; height: 40px; border-radius: 10px; border: 2px solid var(--line); background: #fff; flex: none; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; } .kv span { color: var(--mute); }
@media print { .top, .nav, .no-print { display: none !important; } main { padding: 0; } body { background: #fff; } }
.mod > summary .tx small { display: block; font-size: 13px; margin-top: 2px; }
.grid2 > *, .grid3 > * { min-width: 0; }
select.in { max-width: 100%; text-overflow: ellipsis; }
.modcard > summary { list-style: none; cursor: pointer; } .modcard > summary::-webkit-details-marker { display: none; }
.modcard[open] > summary .chev { transform: rotate(180deg); } .chev { transition: transform .15s; display: inline-block; }
main > *, .card > *, .form > * { min-width: 0; } main { grid-template-columns: minmax(0, 1fr); }

/* ===================== v2 · course studio ===================== */
.ctiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.ctile { background: #fff; border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.ctile .cv { height: 120px; display: flex; align-items: flex-end; justify-content: space-between; padding: 10px; text-decoration: none; position: relative; }
.ctile .cv span { color: #fff; font: 800 22px 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.ctile .cv em { font-style: normal; background: rgba(0,0,0,.6); color: #fff; border-radius: 9px; padding: 3px 9px; font: 700 13px 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter; }
.ctile .bd { padding: 12px; display: grid; gap: 4px; flex: 1; } .ctile .bd > a { color: var(--ink); text-decoration: none; } .ctile .bd b { font-size: 17px; line-height: 1.25; }
.ctile .ab { margin: 0; color: var(--mute); font-size: 13px; line-height: 1.35; } .ctile small { color: var(--mute); font-size: 13px; }
.ctile .acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.cmini { border: 2px solid var(--line); background: #fff; border-radius: 10px; padding: 5px 10px; font: 700 13px 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter; color: var(--ink); text-decoration: none; }
.cadd { border: 2px dashed #c9ccd4; background: transparent; border-radius: var(--r); min-height: 200px; font: 700 16px 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter; color: var(--mute); }
.colors { display: flex; gap: 8px; flex-wrap: wrap; } .colors button { width: 36px; height: 36px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--line); }
.colors .on { box-shadow: 0 0 0 3px var(--ink); }
.pk-row { display: flex; gap: 6px; flex-wrap: wrap; }
.pk { border: 2px solid var(--line); background: #fff; border-radius: 11px; padding: 7px 12px; font: 700 14px 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter; }
.pk.on { border-color: var(--brand); background: #FDECEC; color: var(--brand-d); }
.note { background: #F4F6FA; border-radius: 12px; padding: 10px 12px; font-size: 14px; color: #333; }
.logl { font-size: 14px; padding: 4px 0; border-bottom: 1px solid #f0f1f4; } .logl.ok { color: var(--green); font-weight: 700; } .logl.no { color: var(--brand); font-weight: 700; }
#clog:empty, #mlog:empty { display: none; }
.acc { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.acc button { text-align: left; border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 10px 12px; }
.acc button b { display: block; font-size: 15px; } .acc button small { display: block; color: var(--mute); font-size: 12px; line-height: 1.3; margin-top: 2px; }
.acc button.on { border-color: var(--brand); background: #FDECEC; box-shadow: inset 0 0 0 1px var(--brand); }
.urlrow { display: flex; gap: 6px; align-items: center; } .urlrow .in { flex: 1; min-width: 0; font-size: 13px; }
.drop { display: block; border: 2px dashed #c9ccd4; border-radius: 14px; padding: 16px; text-align: center; font: 700 15px 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter; color: #444; cursor: pointer; background: #FAFBFC; }
.drop.big { padding: 28px 16px; font-size: 17px; } .drop small { font-weight: 400; color: var(--mute); font-size: 13px; }
.drop.over { border-color: var(--brand); background: #FDECEC; }
.upl { display: block; border: 2px dashed #c9ccd4; border-radius: 14px; padding: 16px; text-align: center; font-weight: 700; cursor: pointer; }
.menu { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.menu button { text-align: left; border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 10px; display: grid; gap: 2px; }
.menu button span { font-size: 22px; } .menu button b { font-size: 14px; } .menu button small { color: var(--mute); font-size: 12px; }
.act { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px 10px; }
.act .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 19px; background: #F1F3F6; flex: none; }
.act .ic.k-handout, .act .ic.k-reading { background: #E6EEFC; } .act .ic.k-quiz, .act .ic.k-exam { background: #FFF3D6; } .act .ic.k-case, .act .ic.k-written, .act .ic.k-upload { background: #F1E8FB; } .act .ic.k-video { background: #FDECEC; }
.act .g, .mrow .g { flex: 1; min-width: 0; color: var(--ink); text-decoration: none; } .act .g b { display: block; line-height: 1.25; } .act .g small { color: var(--mute); font-size: 13px; }
.mrow { display: flex; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid #f0f1f4; }
.stepper { display: flex; align-items: center; gap: 6px; } .stepper button { width: 36px; height: 36px; border-radius: 10px; border: 2px solid var(--line); background: #fff; font: 700 18px 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter; } .stepper b { min-width: 26px; text-align: center; }
.qmeta { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; margin-bottom: 4px; } button.chip { border: 0; cursor: pointer; }
.picrow { display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px; }
.picrow img, .picrow .hph { width: 120px; flex: none; border-radius: 10px; aspect-ratio: 3/2; object-fit: cover; }
.guide { background: #F1E8FB; border-radius: 12px; padding: 10px 12px; font-size: 14px; white-space: pre-wrap; } .guide b { display: block; margin-bottom: 4px; }
.mkrow { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.scen { border-left: 6px solid var(--purple); }
.c-teal { border-left-color: var(--teal) !important; }

/* handouts */
.hand { background: #fff; border-radius: var(--r); padding: 18px 16px; font-size: 16.5px; line-height: 1.6; }
.hand h3 { font: 800 20px/1.25 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter; margin: 18px 0 6px; } .hand h3:first-child { margin-top: 0; }
.hand p { margin: 0 0 10px; } .hand ul { margin: 0 0 10px; padding-left: 22px; } .hand li { margin: 3px 0; }
.htip { background: #FFF8E6; border-left: 5px solid var(--amber); border-radius: 10px; padding: 10px 12px; margin: 10px 0; font-size: 15px; }
.hfig { margin: 14px 0; } .hfig img { width: 100%; border-radius: 12px; display: block; background: #F4F6FA; }
.hfig figcaption { font-size: 13px; color: var(--mute); margin-top: 6px; text-align: center; }
.hph { background: repeating-linear-gradient(45deg, #F4F6FA, #F4F6FA 10px, #EEF0F4 10px, #EEF0F4 20px); border-radius: 12px; min-height: 120px; display: grid; place-items: center; text-align: center; padding: 12px; color: var(--mute); font-size: 14px; }
.ck { border: 2px solid #CFE0FB; background: #F5F9FF; border-radius: 14px; padding: 12px; margin: 14px 0; }
.ckh { font: 800 12px 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); } .ck p { margin: 4px 0 8px; font-weight: 700; }
.ckopt { display: block; width: 100%; text-align: left; border: 2px solid var(--line); background: #fff; border-radius: 11px; padding: 9px 12px; margin: 6px 0; font-size: 15px; }
.ckopt.right { border-color: var(--green); background: #E5F4EA; } .ckopt.wrong { border-color: var(--brand); background: #FDECEC; }
.ckwhy { font-size: 14px; margin-top: 6px; }

/* ===================== v2 · the public website ===================== */
.web { min-height: 100vh; background: #fff; }
.wtop { position: sticky; top: 0; z-index: 20; background: rgba(17,17,17,.96); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; }
.wbrand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; } .wbrand img { width: 36px; height: 36px; object-fit: contain; } .wbrand b { font: 800 19px 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter; }
.wtop .btn.ghost { background: transparent; color: #fff; border-color: #444; }
.whero { background: radial-gradient(120% 120% at 0% 0%, var(--brand) 0%, #3a0a0a 55%, #111 100%); color: #fff; padding: 44px 16px 40px; }
.whero > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.whero small { display: block; font: 700 12px 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter; letter-spacing: .14em; text-transform: uppercase; color: #ffb3b3; }
.whero h1 { font: 800 clamp(30px, 6vw, 46px)/1.08 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter; margin: 10px auto 12px; }
.whero p { font-size: 18px; opacity: .9; margin: 0 auto 20px; } .whero .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.wsec { max-width: 1080px; margin: 0 auto; padding: 34px 16px 6px; } .wsec h2 { font: 800 26px 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter; margin: 0 0 14px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.step { background: var(--bg); border-radius: var(--r); padding: 14px; } .step i { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; font: 800 16px 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter; font-style: normal; }
.step b { display: block; margin: 8px 0 2px; font-size: 17px; } .step small { color: var(--mute); font-size: 14px; }
.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.feat { border: 1px solid var(--line); border-radius: 14px; padding: 12px; } .feat span { font-size: 26px; } .feat b { display: block; margin-top: 4px; } .feat small { color: var(--mute); font-size: 13px; }
.feats.sm { grid-template-columns: repeat(3, 1fr); } .feats.sm .feat { text-align: center; padding: 10px 6px; } .feats.sm .feat b { font-size: 13px; }
.wtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; padding-bottom: 30px; }
.wtile { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.08); text-decoration: none; color: var(--ink); transition: transform .15s; }
.wtile:hover { transform: translateY(-2px); }
.wtile .cv { height: 160px; position: relative; display: flex; align-items: flex-start; justify-content: space-between; padding: 12px; }
.wtile .cv span { background: rgba(255,255,255,.95); color: var(--ink); border-radius: 8px; padding: 3px 8px; font: 800 11px 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter; letter-spacing: .08em; }
.wtile .cv em { font-style: normal; background: rgba(0,0,0,.65); color: #fff; border-radius: 8px; padding: 3px 8px; font: 700 12px 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter; margin-left: auto; }
.wtile .bd { padding: 14px; display: grid; gap: 6px; flex: 1; } .wtile .bd > b { font: 800 19px/1.2 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter; } .wtile .bd p { margin: 0; color: var(--mute); font-size: 14px; }
.wtile .meta, .chero .meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--mute); }
.wtile .ft { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); }
.wtile .ft strong { font: 800 18px 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter; } .wtile .go { color: var(--brand); font: 700 14px 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter; }
.chero { color: #fff; padding: 22px 16px 34px; } .chero > * { max-width: 1040px; margin-left: auto; margin-right: auto; }
.wback { display: block; color: #fff; opacity: .85; text-decoration: none; font-weight: 700; margin-bottom: 18px; }
.chero .badge { display: inline-block; background: #fff; color: var(--ink); border-radius: 8px; padding: 3px 9px; font: 800 11px 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter; letter-spacing: .08em; }
.chero h1 { font: 800 clamp(28px, 5.5vw, 44px)/1.1 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter; margin: 10px auto 8px; } .chero p { font-size: 18px; opacity: .92; margin: 0 auto 12px; } .chero .meta { color: rgba(255,255,255,.88); font-size: 14px; }
.cbody { max-width: 1072px; margin: -16px auto 0; padding: 0 16px 90px; display: grid; gap: 14px; position: relative; }
.cmain, .cside { display: grid; gap: 14px; align-content: start; } .cbody .card { box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; } .ticks li { padding-left: 28px; position: relative; } .ticks li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: #E5F4EA; color: var(--green); font: 800 13px/20px 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter; text-align: center; }
.mods { margin: 0; padding-left: 22px; display: grid; gap: 6px; } .mods li { padding-left: 4px; }
.buy { display: grid; gap: 10px; } .buy .price { font: 800 32px 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter; }
.stickbuy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: #fff; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
.stickbuy b { font: 800 20px 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter; } .stickbuy .btn { flex: 1; max-width: 260px; }
.wfoot { text-align: center; padding: 30px 16px 90px; color: var(--mute); font-size: 14px; border-top: 1px solid var(--line); margin-top: 20px; }
.done-msg { text-align: center; display: grid; gap: 6px; padding: 8px 0; } .done-msg span { font-size: 44px; } .done-msg b { font-size: 20px; } .done-msg p { margin: 0 0 6px; color: #333; }
@media (min-width: 860px) {
  .cbody { grid-template-columns: 1fr 330px; } .cside { position: sticky; top: 76px; } .stickbuy { display: none; } .cbody { padding-bottom: 40px; } .wfoot { padding-bottom: 30px; }
}

/* v2.1 · course page like Learnworlds (dark, red bands) */
.lwhero { background: radial-gradient(120% 100% at 50% 0%, #3a0d0d, #0b0b0b 70%); background-size: cover; background-position: center; color: #fff; text-align: center; padding: 22px 16px 40px; }
.lwhero > * { max-width: 900px; margin-left: auto; margin-right: auto; } .lwhero .wback { text-align: left; max-width: 1040px; }
.lwhero .badge { display: inline-block; background: #fff; color: #111; border-radius: 8px; padding: 3px 9px; font: 800 11px 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter; letter-spacing: .08em; }
.lwhero h1 { font: 800 clamp(30px, 6vw, 52px)/1.08 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter; margin: 14px auto 12px; text-shadow: 0 2px 16px rgba(0,0,0,.5); }
.lwhero p { font-size: 18px; line-height: 1.5; opacity: .95; margin: 0 auto 22px; max-width: 760px; }
.lwenrol { width: 100%; max-width: 760px; border-radius: 999px; min-height: 56px; font-size: 18px; box-shadow: 0 6px 24px rgba(198,40,40,.45); }
.lwhero .pn { display: block; margin-top: 8px; opacity: .8; }
.lwcols { background: var(--brand); color: #fff; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; padding: 0; }
.lwcols > div { background: var(--brand); padding: 20px 18px; text-align: center; border-right: 1px solid rgba(255,255,255,.18); }
.lwcols h4 { margin: 0 0 8px; font: 800 13px 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter; letter-spacing: .08em; text-transform: uppercase; opacity: .9; } .lwcols p { margin: 0; font-size: 14.5px; line-height: 1.5; }
.lwstats { background: #E53935; color: #fff; display: flex; justify-content: space-around; flex-wrap: wrap; gap: 10px; padding: 16px; border-top: 1px solid rgba(255,255,255,.25); }
.lwstats div { text-align: center; min-width: 110px; } .lwstats b { display: block; font: 800 22px 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter; } .lwstats small { font: 700 11px 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter; letter-spacing: .1em; text-transform: uppercase; opacity: .9; }
.lwhl { background: #0b0b0b; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; padding: 26px 16px; }
.lwhl > div { background: #191919; border: 1px solid #2a2a2a; border-radius: 16px; padding: 18px; color: #fff; max-width: 520px; width: 100%; justify-self: center; }
.lwhl i { display: block; width: 26px; height: 26px; border-radius: 7px; background: var(--brand); margin-bottom: 12px; } .lwhl b { font: 800 18px 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter; } .lwhl p { color: #c9c9c9; font-size: 14.5px; line-height: 1.55; margin: 8px 0 0; }
.cbody.lw { margin-top: 18px; }
.incl { display: grid; gap: 6px; border-top: 1px solid var(--line); padding-top: 10px; font-size: 14px; } .incl b { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); }
/* v2.1 · video library */
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.vcard { background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.vcard.used { border-color: #bfe3c9; }
.vth { position: relative; aspect-ratio: 16/9; background: #222; cursor: pointer; } .vth video, .vth .hph { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 0; border-radius: 0; }
.vpl { position: absolute; inset: 0; margin: auto; width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; font-size: 15px; }
.vsz, .vdur { position: absolute; bottom: 6px; background: rgba(0,0,0,.7); color: #fff; font: 700 11px 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter; border-radius: 6px; padding: 2px 6px; } .vsz { left: 6px; } .vdur { right: 6px; } .vsz:empty, .vdur:empty { display: none; }
.vbd { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px 4px; font-size: 14px; } .vbd b { line-height: 1.25; word-break: break-word; } .vbd input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.vft { padding: 4px 10px 10px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: auto; } .vft a.chip { text-decoration: none; }
.vft a.chip { white-space: normal; line-height: 1.3; }

/* ===================== v2.2 · icons, covers, codes, locks ===================== */
.ki { display: inline-grid; place-items: center; flex: none; border-radius: 28%; color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.ki.g-c { background: linear-gradient(145deg, #E53935, #B71C1C); } .ki.g-t { background: linear-gradient(145deg, #2b2b2e, #0d0d0f); } .ki.g-a { background: linear-gradient(145deg, #A31919, #5C0B0B); }
.ki.g-o { background: linear-gradient(145deg, #5a5a60, #2c2c30); } .ki.g-g { background: linear-gradient(145deg, #2EA44F, #1E7B34); }
.item .em .ki { vertical-align: middle; } .item .em:has(.ki) { width: auto; }
.menu button .ki { margin-bottom: 4px; }
.feat .ki { margin-bottom: 6px; } .feat span:empty { display: none; }
h3.kh { display: flex; align-items: center; gap: 10px; }
.act .ki { flex: none; }
.cv.auto { position: relative; overflow: hidden; }
.ac { position: absolute; inset: 0; display: block; padding: 12px; }
.ac-logo { position: absolute; top: 10px; left: 12px; width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 1px 3px rgba(0,0,0,.4)); }
.ac-t { position: absolute; left: 12px; right: 40%; bottom: 12px; color: #fff; font: 800 17px/1.15 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter; text-shadow: 0 1px 8px rgba(0,0,0,.35); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ac-ic { position: absolute; right: -14px; bottom: -18px; color: rgba(255,255,255,.16); } .ac-ic svg { width: 130px; height: 130px; stroke-width: 1.4; }
.wtile .cv.auto .ac-t { font-size: 21px; right: 35%; } .wtile .cv.auto { height: 170px; }
.ctile .cv em, .wtile .cv em { position: relative; z-index: 1; }
.ctile .cv.auto { align-items: flex-start; justify-content: flex-end; }
.prevcov { height: 150px; border-radius: 12px; display: block; }
.codebig { font: 800 44px/1 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter; letter-spacing: .08em; text-align: center; background: #111; color: #E8C878; border-radius: 16px; padding: 18px 10px; }
.in.code { font: 800 26px 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter; letter-spacing: .3em; text-align: center; }
.pwgate { text-align: center; display: grid; justify-items: center; gap: 8px; } .pwgate .form { width: 100%; } .pwgate h3 { margin: 4px 0 0; }
.stepper.big { gap: 10px; flex-wrap: wrap; } .stepper.big b { font-size: 20px; min-width: 34px; } .stepper.big button { width: 46px; height: 46px; font-size: 22px; }
.cv .ac .ac-ic { color: rgba(255,255,255,.14); font: inherit; text-shadow: none; } .cv .ac .ac-ic svg { width: 120px; height: 120px; stroke-width: 1.3; }
.cv .ac .ac-t { color: #fff; } .cv.auto em { position: absolute; top: 10px; right: 10px; }
.unl { display: grid; gap: 6px; } .unl-r { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.unl-r input { width: 22px; height: 22px; flex: none; accent-color: var(--green); } .unl-r b { display: block; font-size: 15px; } .unl-r small { color: var(--mute); font-size: 12.5px; }
.unl-r.on { border-color: #bfe3c9; background: #EEF8F0; }
.pwopt summary { cursor: pointer; font-weight: 700; font-size: 14px; color: #444; }
/* v2.3 · handout plan + drag to reorder */
.hplan { display: grid; gap: 6px; }
.hp-row { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 12px; padding: 8px; background: #fff; }
.hp-row.done { background: #EEF8F0; border-color: #bfe3c9; }
.hp-n { width: 28px; height: 28px; border-radius: 50%; background: #111; color: #fff; display: grid; place-items: center; font: 800 13px 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter; flex: none; } .hp-row.done .hp-n { background: var(--green); }
.hp-t { flex: 1; min-width: 0; display: grid; gap: 2px; } .hp-t .in.sm { min-height: 38px; padding: 6px 10px; font-weight: 700; } .hp-t small { color: var(--mute); font-size: 12px; line-height: 1.3; }
.drag { cursor: grab; touch-action: none; user-select: none; font-size: 20px; color: #9a9aa2; padding: 6px 2px; flex: none; }
.acts-list { display: grid; gap: 6px; } .act.dragging { box-shadow: 0 8px 24px rgba(0,0,0,.18); border-color: var(--brand); opacity: .95; } .acts-list.sorting { user-select: none; }
.ctop { display: flex; gap: 8px; flex-wrap: wrap; } .ctop .btn { flex: 1 1 140px; }
@media print { .wtop, .stickbuy, .cside .btn, .wback, .wfoot a, #toast { display: none !important; } .lwhero, .lwcols, .lwstats, .lwhl { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
.nav .nvi { display: grid; place-items: center; height: 26px; } .nav .nvi svg { stroke-width: 1.8; }
.tabs .tabi { display: inline-flex; align-items: center; gap: 6px; } .tabs .tabi svg { flex: none; }
.ctop .btn svg { flex: none; }
/* v2.4.2 🎬 the film on the website's first page */
.wfilm { position: relative; background: #111; line-height: 0; }
.wfilm video { width: 100%; display: block; max-height: 78vh; object-fit: contain; background: #111; }
.wfilm.wide video { aspect-ratio: 16 / 9; } .wfilm.square video { aspect-ratio: 1 / 1; }
.wsound { position: absolute; right: 14px; bottom: 14px; line-height: 1; border: 0; border-radius: 999px; padding: 10px 16px; font: 700 14px 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter, system-ui, sans-serif; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; backdrop-filter: blur(6px); }
/* v2.4.4 👁 view as a visitor / a student */
.top .viewbtn { width: auto; padding: 0 12px; gap: 6px; display: inline-flex; align-items: center; font: 700 13px 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter, system-ui, sans-serif; margin-left: auto; white-space: nowrap; }
#viewas { position: relative; z-index: 60; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 12px; background: #FFD54F; color: #3a2a00; font: 600 14px 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter, system-ui, sans-serif; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
#viewas span { flex: 1; min-width: 180px; } #viewas button { border: 0; border-radius: 999px; padding: 7px 12px; font: 700 13px 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter, system-ui, sans-serif; cursor: pointer; background: #111; color: #fff; } #viewas [data-vs] { background: #fff; color: #111; }
/* v2.5 📶 waiting for the internet · ⬆ uploads in the background */
#netwait { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 9999; max-width: min(92vw, 520px); padding: 10px 16px; border-radius: 14px; background: #3a2a00; color: #FFE08A; font: 700 14px 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter, system-ui, sans-serif; text-align: center; box-shadow: 0 6px 20px rgba(0,0,0,.3); }
#upbox { position: fixed; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 9998; width: min(360px, calc(100vw - 24px)); background: #111; color: #fff; border-radius: 16px; padding: 12px 14px; box-shadow: 0 10px 30px rgba(0,0,0,.35); font: 500 13px 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter, system-ui, sans-serif; display: flex; flex-direction: column; gap: 8px; }
#upbox .upb-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; } #upbox .upb-h b { font-size: 15px; flex: 1; } #upbox .upb-h small { flex-basis: 100%; color: #bbb; }
#upbox .upb-h button { border: 0; background: #333; color: #fff; border-radius: 999px; width: 28px; height: 28px; cursor: pointer; }
#upbox .upb-r { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 6px 8px 8px; border-radius: 10px; background: #1e1e1e; overflow: hidden; }
#upbox .upb-n { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } #upbox .upb-s { color: #bbb; font-size: 12px; }
#upbox .upb-r i { position: absolute; left: 0; bottom: 0; height: 3px; background: #C62828; transition: width .3s; } #upbox .failed .upb-s { color: #ff9a9a; }

/* v2.5 a clearer font (Stacie: in Inter the capital I looks like a small l). Atkinson Hyperlegible: made so every letter is different. */
body, button, input, select, textarea { font-family: 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter, system-ui, sans-serif; }

/* v2.5 📖 beautiful handouts: easier to read, less like a wall of text */
.hand { max-width: 760px; margin: 0 auto; font-size: 18px; line-height: 1.75; color: #1d1d22; padding: 26px 22px; }
.hand p { margin: 0 0 14px; } .hand b { color: #111; }
.hand h3 { display: flex; align-items: center; gap: 12px; font: 800 22px/1.25 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter, sans-serif; margin: 30px 0 12px; padding-bottom: 10px; border-bottom: 2px solid #F3D9D9; }
.hand h3:first-child { margin-top: 0; }
.hand .hsn { flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #C62828; color: #fff; font-size: 17px; }
.hand ul { padding-left: 0; list-style: none; } .hand ul li { position: relative; padding-left: 26px; margin: 6px 0; } .hand ul li::before { content: ''; position: absolute; left: 6px; top: .72em; width: 8px; height: 8px; border-radius: 50%; background: #C62828; }
.hkeys, .hsum { border-radius: 16px; padding: 16px 18px; margin: 0 0 22px; }
.hkeys { background: linear-gradient(135deg, #FDECEC, #FFF6F0); border: 1px solid #F3C4C4; } .hsum { background: #EEF6F0; border: 1px solid #CFE6D5; margin-top: 24px; }
.hkeys > b, .hsum > b { display: block; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; color: #8E1B1B; } .hsum > b { color: #1E4D2B; }
.hkeys ul, .hsum ul { margin: 0; } .hsum ul li::before { background: #2E7D32; }
.hterm { display: grid; gap: 2px; border-left: 5px solid #1A63D6; background: #EEF4FD; border-radius: 0 12px 12px 0; padding: 12px 16px; margin: 0 0 16px; } .hterm b { color: #0D3C8A; font-size: 17px; }
.hand .htip { display: grid; gap: 4px; background: #FFF8E1; border: 1px solid #F2DB8B; border-radius: 14px; padding: 14px 16px; margin: 0 0 16px; } .hand .htip b { color: #7A5A00; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.hand .hfig { margin: 20px 0; } .hand .hfig img { width: 100%; border-radius: 14px; box-shadow: 0 6px 22px rgba(0,0,0,.12); } .hand .hfig figcaption { font-size: 14px; color: #666; text-align: center; margin-top: 8px; }
.hand .ck { border: 2px solid #E4E5EA; border-radius: 16px; padding: 16px; margin: 20px 0; background: #FAFAFC; }
.hand .ckopt { display: flex; align-items: center; gap: 10px; text-align: left; } .hand .ckopt i { flex: 0 0 auto; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #EDEEF2; font-style: normal; font-weight: 800; font-size: 14px; }
@media (max-width: 600px) { .hand { font-size: 17px; padding: 18px 14px; } .hand h3 { font-size: 20px; } }
/* wider pages on a computer (Stacie: open in a wider view) */
@media (min-width: 1000px) { main { max-width: 1080px; } }
/* v2.5 ⬇ handout as PDF */
#printbox { display: none; }
@media print {
  body.printing > *:not(#printbox) { display: none !important; }
  body.printing #printbox { display: block; padding: 0; color: #111; }
  body.printing { background: #fff; }
  #printbox .ph { display: flex; align-items: center; gap: 14px; border-bottom: 3px solid #C62828; padding-bottom: 10px; margin-bottom: 14px; }
  #printbox .ph img { width: 56px; height: 56px; object-fit: contain; } #printbox .ph small { display: block; color: #C62828; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 11px; } #printbox .ph b { font-size: 22px; }
  #printbox .hand { max-width: none; padding: 0; font-size: 12pt; line-height: 1.55; box-shadow: none; }
  #printbox .hand h3, #printbox .hkeys, #printbox .hsum, #printbox .hterm, #printbox .htip, #printbox .pq, #printbox figure { break-inside: avoid; }
  #printbox .hfig img { max-height: 9cm; width: auto; max-width: 100%; display: block; margin: 0 auto; box-shadow: none; }
  #printbox .pq { border: 1px solid #ccc; border-radius: 10px; padding: 8px 12px; margin: 10px 0; } #printbox .pq ol { margin: 4px 0 0; padding-left: 22px; }
  #printbox .pans { break-before: auto; margin-top: 18px; border-top: 2px solid #eee; padding-top: 10px; } #printbox .pans span { color: #555; }
  #printbox .pf { margin-top: 18px; color: #888; font-size: 9pt; text-align: center; }
  #printbox, #printbox * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #printbox .hfig:has(.hph) { display: none; }
  @page { margin: 16mm 14mm; }
}
#hprev { position: fixed; inset: 0; z-index: 9990; background: #F4F4F6; display: flex; flex-direction: column; }
#hprev .hpv-top { display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 14px 10px; background: #111; color: #fff; }
#hprev .hpv-top span { flex: 1; min-width: 0; } #hprev .hpv-top small { display: block; color: #ff7676; font-size: 11px; font-weight: 700; letter-spacing: .1em; } #hprev .hpv-top b { font-size: 18px; }
#hprev .hpv-body { flex: 1; overflow: auto; padding: 16px; } #hprev .reading { max-width: 860px; margin: 0 auto; }
.hbar { flex-wrap: wrap; } .hpdf { justify-self: end; }
/* v2.5 ✅ build the course step by step */
.csteps ol { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; }
.csteps li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; border: 2px solid #E4E5EA; background: #fff; }
.csteps li.ok { border-color: #CFE6D5; background: #F3FAF5; } .csteps li.now { border-color: #C62828; background: #FFF5F5; box-shadow: 0 4px 14px rgba(198,40,40,.12); }
.csteps .cs-n { flex: 0 0 auto; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #EDEEF2; font-weight: 800; }
.csteps li.ok .cs-n { background: #2E7D32; color: #fff; } .csteps li.now .cs-n { background: #C62828; color: #fff; }
.csteps .cs-t { flex: 1; min-width: 0; display: grid; } .csteps .cs-t small { color: #666; }

/* v2.6 team sign-out button in the top bar */
.top .outbtn{margin-left:6px;width:40px;height:40px;border-radius:12px;background:rgba(255,255,255,.08);color:#fff;display:grid;place-items:center;flex:none}

/* v2.6 Titan Hub icons (instead of emojis) */
.ei{display:inline-block;width:1.08em;height:1.08em;vertical-align:-.17em;margin-right:.12em;flex:none;line-height:1}
.ei svg{display:block;width:100%;height:100%}
.ei-g{color:#16a34a}.ei-a{color:#d97706}.ei-r{color:#dc2626}.ei-b{color:#2563eb}
.ei-dot{width:.6em;height:.6em;border-radius:50%;background:currentColor;vertical-align:.05em}
.btn .ei,.top .ei,[class*="tile"] .ei,.chip .ei,.alert .ei,[class*=" c-"] .ei,[class^="c-"] .ei{color:inherit}

/* v2.6 New course: drop a folder */
.cadd.drop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;padding:18px;cursor:pointer}
.cadd.drop b{font-size:17px;color:var(--ink,#111)}.cadd.drop span{font-weight:600;font-size:14px}.cadd.drop small{font-weight:400;font-size:12px;max-width:220px}
.cadd.drop.over{border-color:#c62828;background:rgba(198,40,40,.06);color:#c62828}
