/* ZAAD ACADEMY — course space (lecturer portal + students' learn.html) */
.lms-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; background: linear-gradient(120deg, #0b1a4a, #3b2a7a); color: #fff; border-radius: 16px; padding: 14px 16px; margin-bottom: 12px; }
.lms-top b { font-size: 1.05rem; display: block; } .lms-top small { display: block; opacity: .9; margin-top: 4px; } .lms-top code { color: #ffe9b0; word-break: break-all; }
.lms-top .btn { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.25); }
.lms-tact { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .lms-sw { display: inline-flex; gap: 6px; align-items: center; font-size: .85rem; }
.lms-warn { color: #ffd38a; }
.lms-tabs { margin-bottom: 12px; flex-wrap: wrap; }
.lms-pill { display: inline-block; font-size: .72rem; padding: 2px 9px; border-radius: 99px; background: #eef1fb; color: #33408a; margin-inline-start: 6px; white-space: nowrap; }
.lms-pill.ok { background: #e3f6ec; color: #11683f; } .lms-pill.bad { background: #fde8e8; color: #9b1c1c; } .lms-pill.md { background: #fff4dc; color: #8a5a00; } .lms-pill.muted { background: #eef0f4; color: #6b7088; }
.lms-week { border: 1px solid #e3e1ef; border-radius: 16px; background: #fff; padding: 12px 14px; margin-bottom: 12px; box-shadow: 0 2px 10px rgba(20, 20, 60, .04); }
.lms-week.hid { opacity: .6; }
.lms-week header { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.lms-week header b { color: #0b1a4a; margin-inline-start: 8px; } .lms-week header small { color: #6b7088; margin-inline-start: 8px; }
.lms-wn { display: inline-block; background: linear-gradient(135deg, #0b1a4a, #3b2a7a); color: #fff; border-radius: 10px; padding: 3px 10px; font-size: .8rem; font-weight: 700; }
.lms-ia { display: inline-flex; gap: 4px; flex-wrap: nowrap; }
.lms-note { background: #f7f6fb; border-radius: 10px; padding: 8px 12px; white-space: pre-wrap; line-height: 1.8; margin: 8px 0; }
.lms-items { list-style: none; margin: 8px 0; padding: 0; }
.lms-items li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 7px 4px; border-bottom: 1px dashed #ebe9f3; }
.lms-items li > i { color: #3b2a7a; width: 18px; text-align: center; } .lms-items li > span:first-of-type { flex: 1; min-width: 160px; }
.lms-actrow > i { color: #0a7a49 !important; }
.lms-pv { flex-basis: 100%; }
.lms-add { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.lms-embed { position: relative; width: 100%; padding-top: 59%; border-radius: 12px; overflow: hidden; background: #0b1a4a; margin: 8px 0; }
.lms-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lms-acts { display: grid; gap: 10px; }
.lms-act { display: flex; gap: 12px; align-items: center; text-align: start; border: 1px solid #e3e1ef; border-radius: 14px; background: #fff; padding: 10px 14px; cursor: pointer; font: inherit; color: inherit; }
.lms-act:hover { box-shadow: 0 6px 18px rgba(30, 20, 80, .1); }
.lms-act-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #0b1a4a, #3b2a7a); color: #fff; flex: none; }
.lms-act-b { flex: 1; display: flex; flex-direction: column; gap: 2px; } .lms-act-b small { color: #6b7088; } .lms-act-b b { color: #0b1a4a; }
.lms-act-s { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.lms-form .lms-checks, .lms-checks { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 8px 0; font-size: .9rem; }
.lms-checks label { display: inline-flex; gap: 6px; align-items: center; }
.lms-rub { border: 1px dashed #c9bfe3; border-radius: 12px; padding: 10px; margin: 8px 0; display: grid; gap: 8px; }
.lms-qsrc { border: 1px solid #e3e1ef; border-radius: 12px; padding: 10px; margin: 8px 0; }
.lms-tbl tr.lms-click, th.lms-click { cursor: pointer; } .lms-tbl tr.lms-click:hover { background: #f7f6fb; }
.lms-sim { display: inline-block; padding: 2px 8px; border-radius: 99px; font-weight: 700; font-size: .8rem; }
.lms-sim.lo { background: #e3f6ec; color: #11683f; } .lms-sim.md { background: #fff4dc; color: #8a5a00; } .lms-sim.hi { background: #fde8e8; color: #9b1c1c; }
.lms-text { white-space: pre-wrap; line-height: 1.9; background: #fbfbfe; border: 1px solid #ecebf4; border-radius: 12px; padding: 12px; max-height: 50vh; overflow: auto; }
.lms-files { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.lms-ext { margin: 8px 0; } .lms-ext summary { cursor: pointer; font-weight: 600; color: #3b2a7a; }
.lms-cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .lms-cmp > div { white-space: pre-wrap; line-height: 1.8; border: 1px solid #ecebf4; border-radius: 10px; padding: 10px; max-height: 45vh; overflow: auto; font-size: .9rem; }
mark.lms-hit { background: #ffd9d9; color: #7a1010; border-radius: 3px; }
.lms-erub { display: grid; gap: 10px; margin: 6px 0 10px; }
.lms-cr { border: 1px solid #e3e1ef; border-radius: 12px; padding: 8px; display: grid; gap: 6px; }
.lms-lvs { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 6px; }
.lms-lv { text-align: start; border: 1px solid #ddd8ee; border-radius: 10px; background: #fff; padding: 6px 8px; cursor: pointer; font: inherit; display: flex; flex-direction: column; gap: 2px; }
.lms-lv b { color: #3b2a7a; } .lms-lv small { color: #6b7088; font-size: .75rem; } .lms-lv.on { background: #3b2a7a; color: #fff; border-color: #3b2a7a; } .lms-lv.on b, .lms-lv.on small { color: #fff; }
.lms-crv { max-width: 110px; }
.lms-qrev li { margin: 8px 0; } .lms-qa { color: #33408a; background: #f3f5fc; border-radius: 8px; padding: 4px 8px; margin: 4px 0; display: inline-block; }
.lms-qrev .ok { color: #11683f; } .lms-qrev .md { color: #8a5a00; } .lms-qrev .bad { color: #9b1c1c; } .lms-man input { width: 80px; }
.lms-cat { border: 1px solid #e3e1ef; border-radius: 12px; padding: 8px 12px; margin-bottom: 10px; background: #fff; } .lms-cat summary { cursor: pointer; }
.lms-ql li { padding: 6px 0; border-bottom: 1px dashed #eee; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; } .lms-ql li > span:nth-child(2) { flex: 1; }
.lms-gift { background: #f7f6fb; padding: 10px; border-radius: 10px; white-space: pre-wrap; }
.lms-threads { display: grid; gap: 8px; } .lms-th { text-align: start; display: flex; flex-direction: column; gap: 3px; border: 1px solid #e3e1ef; border-radius: 12px; padding: 10px 14px; background: #fff; cursor: pointer; font: inherit; }
.lms-th b { color: #0b1a4a; } .lms-th small { color: #6b7088; }
.lms-post { border: 1px solid #e3e1ef; border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; background: #fff; } .lms-post.st { border-color: #c9bfe3; background: #faf8ff; }
.lms-post header { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; } .lms-post header small { color: #6b7088; margin-inline-start: auto; } .lms-post > div { white-space: pre-wrap; line-height: 1.8; }
.lms-att td.lms-a { text-align: center; font-weight: 700; } .lms-att td.ok, .lms-gb td.ok, .lms-att b.ok { color: #11683f; } .lms-att td.bad, .lms-gb td.bad, .lms-att b.bad { color: #9b1c1c; } .lms-att td.md { color: #8a5a00; } .lms-att td.muted { color: #6b7088; }
.lms-attl { display: grid; gap: 6px; max-height: 55vh; overflow: auto; }
.lms-attr { display: flex; justify-content: space-between; gap: 8px; align-items: center; border-bottom: 1px dashed #eee; padding: 4px 0; }
.lms-attb { display: inline-flex; gap: 4px; } .lms-attb button { width: 34px; height: 30px; border-radius: 8px; border: 1px solid #ddd8ee; background: #fff; font-weight: 700; cursor: pointer; }
.lms-attb button.on.ok { background: #11683f; color: #fff; } .lms-attb button.on.md { background: #c98a00; color: #fff; } .lms-attb button.on.bad { background: #b42318; color: #fff; } .lms-attb button.on.muted { background: #6b7088; color: #fff; }
@media (max-width: 700px) { .lms-cmp { grid-template-columns: 1fr; } .lms-embed { padding-top: 75%; } }
/* iSIMS-style parts */
.lms-band { background: #e8f3fe; color: #0b3f7a; border-radius: 12px; padding: 10px 14px; margin: 8px 0 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lms-band.ok { background: #e3f6ec; color: #11683f; } .lms-band.warn { background: #fff4dc; color: #7a5200; } .lms-band ul { margin: 0; padding-inline-start: 18px; }
.lms-dl { background: linear-gradient(120deg, #0b6fc2, #1590e0); color: #fff; border-radius: 12px; padding: 12px 16px; margin-bottom: 12px; } .lms-dl ul { margin: 6px 0 0; padding-inline-start: 20px; line-height: 1.9; }
.lms-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 10px; }
.lms-stats > div { background: linear-gradient(135deg, #0b6fc2, #1590e0); color: #fff; border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.lms-stats > div.red { background: linear-gradient(135deg, #e0565c, #f07c80); } .lms-stats b { font-size: 1.5rem; } .lms-stats span { opacity: .95; }
.lms-prog { height: 14px; border-radius: 99px; background: repeating-linear-gradient(45deg, #f2777a, #f2777a 6px, #f59395 6px, #f59395 12px); overflow: hidden; margin-bottom: 12px; }
.lms-prog i { display: block; height: 100%; background: repeating-linear-gradient(45deg, #2fbf71, #2fbf71 6px, #51cf8b 6px, #51cf8b 12px); }
.lms-kv th { width: 34%; text-align: start; color: #4b5170; font-weight: 600; } .lms-gold { color: #b8860b; cursor: pointer; }
.fld-in { display: inline-flex; gap: 6px; align-items: center; font-size: .88rem; } .fld-in input, .fld-in select { width: auto; }
.lms-tasks tr.lms-grp td { background: #f3f1fa; } .lms-tasks .lms-pill { margin: 0; }
.lms-mk .mk-opts { display: flex; flex-wrap: wrap; gap: 4px 12px; } .lms-mk .mk-opts label { display: inline-flex; gap: 4px; align-items: center; white-space: nowrap; font-size: .88rem; } .lms-mk .mk-opts input { width: auto; }
.lms-mk .mk-rm { min-width: 140px; }
b.md { color: #8a5a00; } b.bad, td b.bad { color: #9b1c1c; } b.ok { color: #11683f; }
/* Teaching section — iSIMS / Moodle layout */
.sims-h { display: flex; gap: 14px; align-items: center; background: linear-gradient(120deg, #0b2a6b, #0b6fc2); color: #fff; border-radius: 16px; padding: 16px 20px; margin-bottom: 14px; }
.sims-h > i { font-size: 1.6rem; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: rgba(255,255,255,.15); }
.sims-h h2 { margin: 0; color: #fff; font-size: 1.3rem; } .sims-h small { opacity: .85; }
.sims-tbl th { background: #f3f5fb; white-space: nowrap; font-size: .85rem; } .sims-tbl td { vertical-align: middle; }
.sims-act { white-space: nowrap; } .sims-act .ib { width: 32px; height: 32px; border-radius: 8px; margin: 1px; background: #eef2fb; color: #0b4fa0; border: 0; cursor: pointer; } .sims-act .ib:hover { background: #0b6fc2; color: #fff; }
.sims-gh { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid #e3e7f2; border-radius: 14px; padding: 12px 16px; margin-bottom: 10px; } .sims-gh > div { flex: 1; } .sims-gh h2 { margin: 2px 0; font-size: 1.15rem; }
.sims-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 2px solid #e3e7f2; margin-bottom: 12px; }
.sims-tabs button { border: 0; background: none; padding: 10px 14px; font: inherit; cursor: pointer; color: #4b5170; border-bottom: 3px solid transparent; margin-bottom: -2px; display: inline-flex; gap: 6px; align-items: center; }
.sims-tabs button.on { color: #0b4fa0; border-bottom-color: #0b6fc2; font-weight: 700; } .sims-tabs button:hover { color: #0b4fa0; }
.mdl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.mdl-card { background: #fff; border: 1px solid #e3e7f2; border-radius: 14px; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; color: inherit; text-decoration: none; }
.mdl-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(11,42,107,.12); }
.mdl-img { height: 110px; background: linear-gradient(135deg, hsl(var(--h) 60% 42%), hsl(calc(var(--h) + 40) 65% 58%)); display: flex; align-items: flex-end; padding: 10px 12px; }
.mdl-img span { color: #fff; font-weight: 800; letter-spacing: .5px; background: rgba(0,0,0,.18); padding: 2px 8px; border-radius: 6px; }
.mdl-b { padding: 12px; display: flex; flex-direction: column; gap: 3px; } .mdl-b b { font-size: 1.02rem; } .mdl-b small { color: #6b7190; } .mdl-b span { margin-top: 6px; font-size: .85rem; color: #0b4fa0; }
.sims-dash { display: flex; flex-direction: column; gap: 8px; padding: 12px; }
.sims-task { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 10px; background: #f7f8fc; border-inline-start: 4px solid #9aa3c0; }
.sims-task.soon { border-inline-start-color: #e0a100; } .sims-task.over { border-inline-start-color: #d64545; background: #fff5f5; }
.sims-task > div:first-child { display: flex; flex-direction: column; gap: 2px; } .sims-task small { color: #6b7190; } .sims-task .r { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: end; }
/* Courses ready to teach */
.au-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-bottom: 14px; }
.au-step { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid #e3e7f2; border-radius: 12px; padding: 10px 12px; }
.au-step b { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #0b2a6b; color: #fff; font-size: .85rem; }
.au-step i { color: #0b6fc2; } .au-step span { font-size: .88rem; line-height: 1.6; }
.au-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.au-card { background: #fff; border: 1px solid #e3e7f2; border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 2px 10px rgba(11,42,107,.05); }
.au-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; } .au-code { font-weight: 800; color: #0b2a6b; letter-spacing: .3px; }
.au-card > small { color: #6b7190; }
.au-nums { display: flex; gap: 8px; } .au-nums span { flex: 1; background: #f3f5fb; border-radius: 10px; padding: 6px 8px; text-align: center; font-size: .8rem; color: #4b5170; } .au-nums b { display: block; font-size: 1.2rem; color: #0b2a6b; }
.au-acts { display: flex; flex-wrap: wrap; gap: 6px; } .au-acts .btn { font-size: .82rem; }
.au-gl summary { cursor: pointer; color: #0b4fa0; font-size: .88rem; } .au-gl ul { margin: 6px 0 0; padding-inline-start: 18px; font-size: .85rem; line-height: 1.8; }
.au-card { cursor: pointer; } .au-card:hover { border-color: #0b6fc2; }
.au-bar { height: 8px; border-radius: 99px; background: #e8ebf5; overflow: hidden; min-width: 90px; } .au-bar i { display: block; height: 100%; background: linear-gradient(90deg, #2fbf71, #0b6fc2); }
.tt-row { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; } .tt-row select, .tt-row input { width: auto; flex: 1; } .tt-row .ib { flex: none; }
.tt-grid { display: grid; grid-template-columns: repeat(7, minmax(140px, 1fr)); gap: 8px; overflow-x: auto; }
.tt-day { background: #fff; border: 1px solid #e3e7f2; border-radius: 12px; padding: 8px; min-height: 120px; } .tt-day h4 { margin: 0 0 6px; text-align: center; color: #0b2a6b; }
.tt-slot { background: #eef4ff; border-inline-start: 4px solid #0b6fc2; border-radius: 8px; padding: 6px 8px; margin-bottom: 6px; display: flex; flex-direction: column; gap: 2px; font-size: .85rem; } .tt-slot small { color: #6b7190; }
.lms-wait { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
@media print { .no-print, .sb, .topbar { display: none !important; } .tt-grid { grid-template-columns: repeat(7, 1fr); } }
@media (max-width: 900px) { .tt-grid { grid-template-columns: repeat(2, 1fr); } }
.lms-tii { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: #eef6ff; border: 1px solid #c9dcf5; border-radius: 12px; padding: 10px 12px; margin: 10px 0; } .lms-tii .btn { padding: 6px 12px; }
.tii-in { display: inline-flex; gap: 6px; align-items: center; font-size: .9rem; } .tii-in input { width: auto; }
.lms-mkf { list-style: none; padding: 0; margin: 8px 0; } .lms-mkf li { display: flex; gap: 8px; align-items: center; padding: 4px 0; border-bottom: 1px solid #eef0f6; } .lms-mkf li span { flex: 1; }
/* results statistics */
.st-row { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; margin: 12px 0; } @media (max-width: 900px) { .st-row { grid-template-columns: 1fr; } }
.st-bars { width: 100%; max-height: 230px; }
.st-pf { display: flex; flex-direction: column; align-items: center; gap: 8px; } .st-pf > div { width: 140px; height: 140px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#1f6f4a calc(var(--p) * 1%), #f1c4c4 0); } .st-pf > div b { width: 100px; height: 100px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 1.4rem; color: #1f6f4a; }
/* presentation maker */
.pm-wrap { display: grid; grid-template-columns: minmax(340px, 1fr) minmax(360px, 1.15fr); gap: 16px; align-items: start; } @media (max-width: 1000px) { .pm-wrap { grid-template-columns: 1fr; } }
.pm-form { padding: 14px; } .pm-form textarea { font-family: inherit; line-height: 1.7; }
.pm-view { position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow: auto; }
.pm-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(256px, 1fr)); gap: 12px; }
.pm-th { width: 256px; height: 144px; overflow: hidden; direction: ltr; border-radius: 10px; cursor: pointer; box-shadow: 0 3px 12px rgba(0,0,0,.15); position: relative; } .pm-th:hover { outline: 3px solid #c9a227; }
.pm-sc { transform: scale(.2); transform-origin: 0 0; width: 1280px; height: 720px; position: absolute; left: 0; top: 0; } [dir=rtl] .pm-sc, [dir=rtl] .pm-sc2 { transform-origin: 0 0; }
.pm-styles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 6px 0; }
.pm-st { border: 2px solid transparent; border-radius: 10px; padding: 0; background: none; cursor: pointer; overflow: hidden; position: relative; width: 150px; height: 84px; direction: ltr; } .pm-st.on { border-color: #c9a227; box-shadow: 0 0 0 3px rgba(201,162,39,.35); }
.pm-st small { position: absolute; bottom: 2px; right: 4px; background: rgba(0,0,0,.55); color: #fff; border-radius: 6px; padding: 0 5px; font: 600 11px Inter, sans-serif; }
.pm-sc2 { transform: scale(.1171875); transform-origin: 0 0; width: 1280px; height: 720px; pointer-events: none; position: absolute; left: 0; top: 0; }
#pm-pg { justify-content: center; gap: 10px; }
.ps-player { position: fixed; inset: 0; z-index: 99999; background: #000; direction: ltr; }
.ps-stage { position: absolute; top: 50%; left: 50%; width: 1280px; height: 720px; }
.ps-player .ps-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.12); } .ps-player .ps-bar i { display: block; height: 100%; background: #c9a227; transition: width .4s; }
.ps-nav { position: absolute; bottom: 14px; right: 18px; display: flex; gap: 8px; align-items: center; opacity: .25; transition: opacity .3s; color: #fff; font: 600 14px Inter, sans-serif; } .ps-nav:hover { opacity: 1; }
.ps-nav button { background: rgba(255,255,255,.15); color: #fff; border: 0; border-radius: 8px; width: 38px; height: 34px; font-size: 18px; cursor: pointer; }
.ps-go { animation: psIn .7s ease both; }
.ps-player:not(.ps-an-none) .ps-go .ps-a { animation: psFade .8s ease both; }
.ps-an-rise .ps-go .ps-a { animation-name: psRise !important; } .ps-an-zoom .ps-go .ps-a { animation-name: psZoom !important; } .ps-an-slide .ps-go .ps-a { animation-name: psSlide !important; }
.ps-an-royal .ps-go .ps-t { animation-name: psZoom !important; } .ps-an-royal .ps-go li.ps-a { animation-name: psSlide !important; } .ps-an-royal .ps-go .ps-rule { animation-name: psGrow !important; }
.ps-an-none .ps-go { animation: none; }
@keyframes psIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes psFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes psRise { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }
@keyframes psZoom { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: none; } }
@keyframes psSlide { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: none; } }
[dir=rtl] .ps-slide li.ps-a { --dx: -60px; }
@keyframes psGrow { from { opacity: 0; transform: scaleX(0); } to { opacity: 1; transform: none; } }
/* rules for students */
.sr-doc { padding: 0; } .sr-doc > summary { cursor: pointer; padding: 12px 16px; display: flex; gap: 10px; align-items: center; } .sr-doc[open] > summary { border-bottom: 1px solid #e3e7f2; }
.sr-sec { padding: 8px 18px; } .sr-sec h4 { margin: 8px 0 4px; color: #0b2a6b; } .sr-tx { line-height: 1.9; } .sr-doc .toolbar { padding: 8px 16px 14px; }
.re-sec { padding: 10px; margin: 8px 0; display: flex; flex-direction: column; gap: 6px; }
/* site themes */
.th-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin: 10px 0; }
.th-it { border: 2px solid transparent; background: none; padding: 0; border-radius: 14px; cursor: pointer; position: relative; } .th-it.on { border-color: #c9a227; box-shadow: 0 0 0 3px rgba(201,162,39,.3); } .th-it.cur::after { content: "✓"; position: absolute; top: 6px; left: 8px; background: #1f6f4a; color: #fff; border-radius: 50%; width: 22px; height: 22px; display: grid; place-items: center; font-size: 12px; }
.th-it small { position: absolute; bottom: 6px; right: 8px; background: rgba(0,0,0,.55); color: #fff; border-radius: 6px; padding: 0 6px; font: 600 11px Inter, sans-serif; }
.th-mini { height: 120px; overflow: hidden; border: 1px solid rgba(0,0,0,.08); } .th-hd { height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 10px; color: #fff; } .th-hd i { width: 14px; height: 14px; transform: rotate(45deg); display: inline-block; } .th-hd b { font-size: 15px; }
.th-bd { padding: 10px; display: flex; gap: 8px; align-items: center; } .th-card { flex: 1; background: #fff; height: 52px; display: flex; gap: 4px; padding: 8px; align-items: flex-end; } .th-card span { flex: 1; border-radius: 4px; height: 100%; opacity: .9; } .th-card span:nth-child(2) { height: 70%; } .th-card span:nth-child(3) { height: 45%; }
.th-btn { padding: 8px 12px; font-weight: 800; }
.th-sel { display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid #e3e7f2; border-radius: 14px; padding: 12px; margin: 10px 0; } .th-sel > div:first-child { width: 220px; }

/* ═════ Quiz — Moodle-style: numbers at the side, one question at a time, flags, summary ═════ */
.qz { display: grid; grid-template-columns: 1fr 250px; gap: 16px; align-items: start; }
.qz-nav { grid-column: 2; grid-row: 1; position: sticky; top: 12px; background: #fff; border: 1px solid #e3e7ef; border-radius: 14px; padding: 12px; box-shadow: 0 6px 20px rgba(15, 23, 42, .06); max-height: calc(100vh - 24px); display: flex; flex-direction: column; gap: 10px; }
.qz-main { grid-column: 1; grid-row: 1; min-width: 0; }
.qz-nh { display: flex; align-items: center; justify-content: space-between; } .qz-nh b { font-size: .92rem; } .qz-tg { display: none; border: 0; background: #f1f5f9; border-radius: 8px; width: 34px; height: 30px; cursor: pointer; }
.qz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 5px; overflow-y: auto; padding: 2px; }
.qz-grid button { position: relative; height: 38px; border: 1.5px solid #cbd5e1; border-radius: 6px; background: #fff; cursor: pointer; font: 600 .82rem Inter, sans-serif; color: #334155; padding: 0; overflow: hidden; }
.qz-grid button span { position: relative; z-index: 1; }
.qz-grid button::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 40%; background: transparent; }
.qz-grid button.a::after { background: #94a3b8; } .qz-grid button.a { color: #0f172a; }
.qz-grid button i { position: absolute; top: 0; inset-inline-end: 0; width: 0; height: 0; border-style: solid; border-width: 0; }
.qz-grid button.f i { border-width: 0 12px 12px 0; border-color: transparent #dc2626 transparent transparent; }
[dir="rtl"] .qz-grid button.f i { border-width: 0 0 12px 12px; border-color: transparent transparent transparent #dc2626; }
.qz-grid button.cur { outline: 3px solid #1e3a8a; outline-offset: 1px; border-color: #1e3a8a; }
.qz-grid button:hover { border-color: #1e3a8a; }
.qz-leg { display: flex; flex-wrap: wrap; gap: 8px; font-size: .72rem; color: #64748b; } .qz-leg i { display: inline-block; width: 12px; height: 12px; border: 1.5px solid #cbd5e1; border-radius: 3px; vertical-align: middle; } .qz-leg i.a { background: linear-gradient(to top, #94a3b8 40%, #fff 40%); } .qz-leg i.f { border-color: #dc2626; background: #fee2e2; }
.qz-stat { font-size: .8rem; font-weight: 600; color: #1e3a8a; } .qz-mode { font-size: .78rem; display: flex; gap: 6px; align-items: center; cursor: pointer; }
.qz-fin { width: 100%; justify-content: center; }
.qz-nav .timer { margin: 0; text-align: center; }
.qq .qhd { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: -10px -12px 8px; padding: 8px 12px; background: #f8fafc; border-bottom: 1px solid #e3e7ef; border-radius: 12px 12px 0 0; font-size: .82rem; }
.qq .qhd .qst { color: #64748b; } .qq .qhd .qflag { margin-inline-start: auto; border: 1px solid #e2e8f0; background: #fff; border-radius: 8px; padding: 3px 10px; cursor: pointer; color: #64748b; font: inherit; } .qq .qhd .qflag.on { color: #dc2626; border-color: #fca5a5; background: #fef2f2; }
.qz:not(.all) .qq { min-height: 220px; }
.qz-pn { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 14px 0; } .qz-pn button { display: inline-flex; gap: 8px; align-items: center; border: 1px solid #cbd5e1; background: #fff; border-radius: 10px; padding: 9px 18px; cursor: pointer; font: inherit; } .qz-pn button.go { background: #1e3a8a; color: #fff; border-color: #1e3a8a; } .qz-pn button:disabled { opacity: .4; cursor: default; } .qz-pn span { color: #64748b; font-size: .85rem; }
.qz-sum { position: fixed; inset: 0; z-index: 9999; background: rgba(15, 23, 42, .55); display: grid; place-items: center; padding: 16px; }
.qz-sumc { background: #fff; border-radius: 18px; padding: 18px; width: min(680px, 100%); max-height: 90vh; overflow: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.qz-sl { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; margin: 10px 0; } .qz-sl button { display: flex; gap: 8px; align-items: center; border: 1px solid #e2e8f0; border-radius: 10px; padding: 6px 10px; background: #fff; cursor: pointer; font: inherit; font-size: .8rem; text-align: start; } .qz-sl button b { min-width: 26px; } .qz-sl button:not(.a) { background: #fff7ed; border-color: #fdba74; } .qz-sl button.f i { color: #dc2626; }
@media (max-width: 860px) {
  .qz { grid-template-columns: 1fr; } .qz-nav { grid-column: 1; grid-row: 1; top: 0; z-index: 20; max-height: none; padding: 8px 10px; border-radius: 0 0 14px 14px; }
  .qz-main { grid-row: 2; } .qz-tg { display: block; }
  .qz-nav:not(.open) .qz-grid { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 34px; overflow-x: auto; overflow-y: hidden; }
  .qz-nav:not(.open) .qz-leg, .qz-nav:not(.open) .qz-mode, .qz-nav:not(.open) .qz-fin { display: none; }
  .qz-nav.open .qz-grid { max-height: 50vh; }
}
/* students' videos & links */
.lw-med { border: 1px solid #e3e7ef; border-radius: 12px; padding: 10px 12px; margin: 8px 0; background: #fff; } .lw-med b { display: block; } .lw-med p { margin: 4px 0; color: #475569; } .lw-med audio, .lw-med video { width: 100%; margin: 6px 0; } .lw-emb { position: relative; padding-top: 56.25%; margin: 6px 0; border-radius: 10px; overflow: hidden; background: #000; } .lw-emb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ═════ Module workspace (portal) ═════ */
.mh-top { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 14px 16px; border-radius: 18px; color: #fff; background: linear-gradient(120deg, #0b1b4d, #1e3a8a 55%, #0e7490); box-shadow: 0 10px 30px rgba(30, 58, 138, .25); margin-bottom: 14px; }
.mh-top .ib { background: rgba(255, 255, 255, .15); color: #fff; } .mh-ttl { flex: 1; min-width: 200px; } .mh-ttl h2 { margin: 2px 0; font-size: 1.35rem; color: #fff; } .mh-ttl small { opacity: .85; } .mh-ttl code { background: rgba(255, 255, 255, .18); color: #fde68a; padding: 1px 6px; border-radius: 6px; }
.mh-ta { display: flex; gap: 6px; flex-wrap: wrap; } .mh-ta .btn-ghost { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .3); }
.mh-grid { display: grid; grid-template-columns: 240px 1fr; gap: 14px; align-items: start; }
.mh-nav { position: sticky; top: 74px; display: flex; flex-direction: column; gap: 6px; max-height: calc(100vh - 90px); overflow-y: auto; padding-bottom: 10px; }
.mh-g { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 6px; } .mh-g > b { display: flex; gap: 8px; align-items: center; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: #64748b; padding: 4px 8px; } .mh-g.on > b { color: #1e3a8a; }
.mh-g button { display: flex; gap: 9px; align-items: center; width: 100%; border: 0; background: none; text-align: start; padding: 7px 10px; border-radius: 10px; cursor: pointer; font: inherit; font-size: .88rem; color: #334155; transition: .15s; } .mh-g button i { width: 18px; text-align: center; color: #64748b; } .mh-g button:hover { background: #f1f5f9; } .mh-g button.on { background: #1e3a8a; color: #fff; } .mh-g button.on i { color: #fde68a; }
.mh-main { min-width: 0; } .mh-crumb { font-weight: 700; color: #1e3a8a; margin: 2px 0 10px; display: flex; gap: 8px; align-items: center; font-size: 1.05rem; }
.mh-kpi { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 12px; }
.mh-k { border: 0; cursor: pointer; text-align: start; background: #fff; border-radius: 16px; padding: 12px; box-shadow: 0 4px 14px rgba(15, 23, 42, .06); border-top: 4px solid var(--c); display: flex; flex-direction: column; gap: 2px; animation: ssUp .5s both; animation-delay: var(--d); font: inherit; min-width: 0; } .mh-k i { color: var(--c); } .mh-k b { font-size: 1.3rem; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .mh-k span { font-size: .76rem; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mh-qa { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.mh-sec { margin-bottom: 16px; } .mh-sec > h3 { font-size: .95rem; color: #1e3a8a; display: flex; gap: 8px; align-items: center; margin: 0 0 8px; }
.mh-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.mh-tile { position: relative; border: 1px solid #e5e7eb; background: #fff; border-radius: 14px; padding: 12px; text-align: start; cursor: pointer; display: flex; flex-direction: column; gap: 4px; font: inherit; transition: .2s; min-height: 92px; } .mh-tile:hover { border-color: #1e3a8a; box-shadow: 0 8px 22px rgba(30, 58, 138, .12); transform: translateY(-2px); }
.mh-tile > i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, #1e3a8a, #0e7490); color: #fff; } .mh-tile b { font-size: .9rem; color: #0f172a; } .mh-tile small { color: #64748b; font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .mh-tile em { position: absolute; top: 10px; inset-inline-end: 10px; font-style: normal; font: 700 .8rem Inter, sans-serif; background: #eef2ff; color: #1e3a8a; border-radius: 99px; padding: 2px 9px; }
.mh-list { display: grid; gap: 6px; } .mh-list button { display: flex; gap: 10px; align-items: center; border: 1px solid #e5e7eb; background: #fff; border-radius: 12px; padding: 8px 12px; cursor: pointer; font: inherit; text-align: start; } .mh-list button small { margin-inline-start: auto; color: #b45309; }
.mh-decks { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; } .mh-deck { border: 1px solid #e5e7eb; border-radius: 14px; overflow: hidden; background: #fff; } .mh-deck .th { aspect-ratio: 16 / 9; display: flex; flex-direction: column; justify-content: center; padding: 14px; color: #fff; background: linear-gradient(135deg, hsl(var(--h) 55% 28%), hsl(calc(var(--h) + 40) 60% 40%)); } .mh-deck .th b { font-size: 1.05rem; } .mh-deck .th small { opacity: .85; } .mh-deck .a { display: flex; gap: 6px; align-items: center; padding: 8px 10px; } .mh-deck .a small { margin-inline-end: auto; color: #64748b; }
.mh-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; } .mh-m { border: 1px solid #e5e7eb; background: #fff; border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 6px; } .mh-m.hid { opacity: .55; } .mh-m .h { display: flex; gap: 8px; align-items: center; } .mh-m .h b { flex: 1; } .mh-m .h .a { display: flex; gap: 4px; align-items: center; font-size: .76rem; } .mh-m p { margin: 0; color: #475569; font-size: .84rem; } .mh-m audio, .mh-m video { width: 100%; } .mh-m .u { font-size: .74rem; color: #64748b; word-break: break-all; }
.mh-emb { position: relative; padding-top: 56.25%; border-radius: 10px; overflow: hidden; background: #000; } .mh-emb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mh-live { margin-bottom: 10px; }
@media (max-width: 1000px) {
  .mh-grid { grid-template-columns: 1fr; }
  .mh-nav { position: sticky; top: 56px; z-index: 15; flex-direction: row; overflow-x: auto; overflow-y: hidden; max-height: none; gap: 4px; padding: 6px 2px; background: var(--bg, #f6f7fb); scrollbar-width: thin; }
  .mh-g { display: flex; align-items: center; gap: 2px; padding: 3px; flex-shrink: 0; } .mh-g > b { white-space: nowrap; padding: 2px 6px; } .mh-g > b { font-size: 0; gap: 0; } .mh-g > b i { font-size: .85rem; }
  .mh-g button { width: auto; white-space: nowrap; padding: 6px 10px; font-size: .82rem; }
  .mh-kpi { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) { .mh-kpi { grid-template-columns: repeat(2, 1fr); } .mh-tiles { grid-template-columns: repeat(2, 1fr); } .mh-tile { min-height: 84px; padding: 10px; } }
.qz-fin, .qz-fin .en, .qz-pn .go, .qz-pn .go .en, .qz-sumc .go, .qz-sumc .go .en { color: #fff !important; }
.qz-fin { background: #1e3a8a !important; border-color: #1e3a8a !important; display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 10px; }
.qz-mode { display: grid; grid-template-columns: auto 1fr; gap: 8px; line-height: 1.6; } .qz-mode input { margin-top: 3px; }
.qz-leg { line-height: 1.8; } .qz-grid button { font-family: Inter, sans-serif; }
