/* AOU-LMS — الهوية البصرية مشتقة من الجامعة العربية المفتوحة (امتداد لتصميم منصة ED643) */
@font-face{font-family:"IBM Plex Sans Arabic";font-weight:400;font-display:swap;src:url(../assets/fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2) format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+FB50-FDFF,U+FE70-FEFF,U+200C-200E}
@font-face{font-family:"IBM Plex Sans Arabic";font-weight:600;font-display:swap;src:url(../assets/fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2) format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+FB50-FDFF,U+FE70-FEFF,U+200C-200E}
@font-face{font-family:"IBM Plex Sans Arabic";font-weight:700;font-display:swap;src:url(../assets/fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2) format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+FB50-FDFF,U+FE70-FEFF,U+200C-200E}
@font-face{font-family:"IBM Plex Sans Arabic";font-weight:400;font-display:swap;src:url(../assets/fonts/ibm-plex-sans-arabic-latin-400-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+2000-206F}
@font-face{font-family:"IBM Plex Sans Arabic";font-weight:600;font-display:swap;src:url(../assets/fonts/ibm-plex-sans-arabic-latin-600-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+2000-206F}
@font-face{font-family:"IBM Plex Sans Arabic";font-weight:700;font-display:swap;src:url(../assets/fonts/ibm-plex-sans-arabic-latin-700-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+2000-206F}
:root{
  --navy:#002D58;--navy-2:#0a3d6e;--slate:#4D6C8F;--sky:#C9D5E3;--sky-2:#E7EDF4;--cream:#FCFAF0;--line:#E2DCCB;
  --accent:#E4573D;--ok:#2E7D5B;--ok-bg:#E5F2EC;--warn:#A86B00;--warn-bg:#FFF4DC;--err:#B3261E;--err-bg:#FCE8E6;
  --ink:#14263B;--muted:#5B6B7E;--r:14px;--r-lg:20px;
  --shadow:0 1px 2px rgba(0,45,88,.06),0 6px 20px rgba(0,45,88,.06);--shadow-lg:0 2px 4px rgba(0,45,88,.06),0 18px 40px rgba(0,45,88,.12);
  --font:"IBM Plex Sans Arabic",system-ui,sans-serif;
}
*{box-sizing:border-box}
body{margin:0;font-family:var(--font);color:var(--ink);background:var(--cream);font-size:16px;line-height:1.7;-webkit-font-smoothing:antialiased}
a{color:var(--navy);text-decoration:none}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer;border:0;background:none}
:focus-visible{outline:3px solid #7FA6D0;outline-offset:2px;border-radius:8px}
img{max-width:100%}
svg{width:1.25em;height:1.25em;flex-shrink:0;vertical-align:middle}
h1,h2,h3,h4{color:var(--navy);line-height:1.4;margin:0 0 .5em}
.en{direction:ltr;unicode-bidi:isolate}
.muted{color:var(--muted)}.small{font-size:13.5px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.skip{position:absolute;inset-inline-start:-999px;top:8px;background:var(--navy);color:#fff;padding:8px 14px;border-radius:8px;z-index:100}.skip:focus{inset-inline-start:8px}

/* شريط علوي */
.topbar{position:sticky;top:0;z-index:40;background:rgba(255,255,255,.94);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.topbar .in{max-width:1320px;margin:auto;display:flex;align-items:center;gap:16px;padding:8px 22px;min-height:64px}
.brand{display:flex;align-items:center;gap:12px;flex-shrink:0}
.brand img{height:44px}.brand .sep{width:1px;height:28px;background:var(--line)}.brand b{font-size:15px;color:var(--slate)}
.nav{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none}
.nav a{padding:8px 14px;border-radius:999px;font-weight:500;font-size:15px;color:var(--muted);white-space:nowrap;display:flex;gap:6px;align-items:center}
.nav a svg{width:17px;height:17px}
.nav a:hover{background:var(--sky-2);color:var(--navy)}.nav a[aria-current=page]{background:var(--navy);color:#fff}
.tb-end{margin-inline-start:auto;display:flex;gap:10px;align-items:center}
.avatar{width:38px;height:38px;border-radius:50%;background:var(--navy);color:#fff;display:grid;place-items:center;font-weight:700;font-size:15px}
.umenu{position:relative}
.umenu .pop{position:absolute;inset-inline-end:0;top:46px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow-lg);min-width:220px;padding:8px;display:none}
.umenu.open .pop{display:block}
.umenu .pop a,.umenu .pop button{display:flex;gap:10px;align-items:center;width:100%;padding:9px 10px;border-radius:10px;text-align:start;font-size:15px}
.umenu .pop a:hover,.umenu .pop button:hover{background:var(--sky-2)}
.umenu .pop svg{width:18px;height:18px}
.umenu small{display:block;padding:2px 10px 8px;color:var(--muted);border-bottom:1px solid var(--line);margin-bottom:6px;direction:ltr;text-align:right}

/* أزرار ونماذج */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 20px;border-radius:12px;font-weight:600;font-size:15.5px;transition:.15s;white-space:nowrap}
.btn svg{width:18px;height:18px}.btn:disabled{opacity:.55;cursor:not-allowed}
.btn-primary{background:var(--navy);color:#fff}.btn-primary:hover{background:var(--navy-2);box-shadow:var(--shadow)}
.btn-line{border:1.5px solid var(--line);background:#fff;color:var(--navy)}.btn-line:hover{border-color:var(--slate)}
.btn-light{background:#fff;color:var(--navy)}.btn-ghost{border:1.5px solid rgba(255,255,255,.45);color:#fff}
.btn-danger{background:var(--err);color:#fff}.btn-ok{background:var(--ok);color:#fff}
.btn-sm{padding:7px 13px;font-size:14px;border-radius:10px}.btn-xs{padding:4px 9px;font-size:13px;border-radius:8px}
.icon-btn{width:36px;height:36px;border-radius:10px;display:inline-grid;place-items:center;color:var(--slate)}.icon-btn:hover{background:var(--sky-2);color:var(--navy)}.icon-btn svg{width:18px;height:18px}
.field{display:flex;flex-direction:column;gap:6px;margin-bottom:14px}
.field>span{font-weight:600;font-size:14.5px;color:var(--navy)}
.field small{color:var(--muted);font-size:13px}
input[type=text],input[type=email],input[type=password],input[type=number],input[type=url],input[type=datetime-local],input[type=date],input[type=search],select,textarea{width:100%;padding:10px 12px;border:1.5px solid var(--line);border-radius:10px;background:#fff;font-size:15px}
textarea{resize:vertical;min-height:90px;line-height:1.7}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--slate);box-shadow:0 0 0 3px var(--sky-2)}
.check{display:flex;gap:10px;align-items:center;font-size:15px;cursor:pointer}
.check input{width:18px;height:18px;accent-color:var(--navy)}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:0 16px}
.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.row-end{display:flex;gap:10px;justify-content:flex-end;margin-top:18px;flex-wrap:wrap}
.spacer{flex:1}

/* تخطيط */
main{min-height:calc(100vh - 140px)}
.wrap{max-width:1320px;margin:auto;padding:28px 22px 60px}
.narrow{max-width:880px}
.card{background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);padding:22px;box-shadow:var(--shadow)}
.card+.card{margin-top:16px}
.ph{display:flex;align-items:flex-end;gap:16px;flex-wrap:wrap;margin-bottom:20px}
.ph h1{font-size:28px;margin:0}.ph p{margin:4px 0 0;color:var(--muted)}
.hero{position:relative;background:var(--navy);color:#fff;overflow:hidden}
.hero .arcs{position:absolute;inset-inline-end:-140px;top:-80px;width:560px;height:560px;pointer-events:none}
.hero .in{position:relative;max-width:1320px;margin:auto;padding:38px 22px 34px}
.hero h1{color:#fff;font-size:32px;margin:0 0 6px}.hero p{margin:0;color:#C9D5E3;max-width:760px}
.crumbs{display:flex;gap:8px;flex-wrap:wrap;font-size:14px;color:#C9D5E3;margin-bottom:10px}.crumbs a{color:#fff}
.tabsbar{display:flex;gap:4px;border-bottom:1px solid var(--line);margin-bottom:20px;overflow-x:auto}
.tabsbar a{padding:10px 16px;font-weight:600;color:var(--muted);border-bottom:3px solid transparent;white-space:nowrap;display:flex;gap:6px;align-items:center}
.tabsbar a svg{width:17px;height:17px}.tabsbar a[aria-current=page]{color:var(--navy);border-color:var(--accent)}

/* بطاقات المساقات */
.cgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:20px}
.ccard{background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden;display:flex;flex-direction:column;transition:.15s;box-shadow:var(--shadow)}
.ccard:hover{transform:translateY(-3px);box-shadow:var(--shadow-lg)}
.ccard .cover{height:140px;background:var(--navy) center/cover;position:relative;overflow:hidden}
.ccard .cover .arcs{position:absolute;inset-inline-end:-120px;top:-120px;width:300px;height:300px}
.ccard .cover .code{position:absolute;bottom:12px;inset-inline-start:14px;background:rgba(0,45,88,.85);color:#fff;font-weight:700;padding:3px 10px;border-radius:8px;font-size:13px;direction:ltr}
.ccard .body{padding:16px 18px;flex:1;display:flex;flex-direction:column;gap:8px}
.ccard h3{font-size:17.5px;margin:0}.ccard .meta{font-size:13.5px;color:var(--muted)}
.bar{height:8px;border-radius:99px;background:var(--sky-2);overflow:hidden}.bar i{display:block;height:100%;background:var(--ok);border-radius:99px}
.badge{display:inline-flex;align-items:center;gap:5px;padding:2px 10px;border-radius:99px;font-size:12.5px;font-weight:600;background:var(--sky-2);color:var(--navy)}
.badge.ok{background:var(--ok-bg);color:var(--ok)}.badge.warn{background:var(--warn-bg);color:var(--warn)}.badge.err{background:var(--err-bg);color:var(--err)}.badge.acc{background:#FDE7E2;color:var(--accent)}
.badge svg{width:13px;height:13px}

/* صفحة المساق */
.cwrap{display:grid;grid-template-columns:300px 1fr;gap:24px;align-items:start}
.side{position:sticky;top:84px;background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);padding:14px;max-height:calc(100vh - 100px);overflow:auto}
.side h4{font-size:14px;color:var(--muted);margin:10px 8px 6px}
.side a{display:flex;gap:8px;align-items:center;padding:8px 10px;border-radius:10px;font-size:14.5px;color:var(--ink)}
.side a:hover{background:var(--sky-2)}.side a[aria-current=page]{background:var(--navy);color:#fff}
.side a svg{width:17px;height:17px;flex-shrink:0}.side a .d{margin-inline-start:auto;color:var(--ok)}
.sec{background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);margin-bottom:16px;overflow:hidden}
.sec>header{display:flex;align-items:center;gap:12px;padding:16px 20px;cursor:pointer}
.sec>header h2{font-size:18px;margin:0}.sec>header .n{width:34px;height:34px;border-radius:10px;background:var(--sky-2);color:var(--navy);display:grid;place-items:center;font-weight:700;flex-shrink:0}
.sec>header .chev{margin-inline-start:auto;transition:.2s;width:20px;height:20px;color:var(--slate)}
.sec.closed>header .chev{transform:rotate(90deg)}.sec.closed .acts,.sec.closed .ssum{display:none}
.sec .ssum{padding:0 20px 8px;color:var(--muted);font-size:15px}
.acts{list-style:none;margin:0;padding:0 10px 10px}
.act{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:12px}
.act:hover{background:var(--cream)}
.act .ic{width:38px;height:38px;border-radius:10px;background:var(--sky-2);color:var(--navy);display:grid;place-items:center;flex-shrink:0}
.act .ic svg{width:19px;height:19px}
.act.t-quiz .ic,.act.t-assign .ic{background:#FDE7E2;color:var(--accent)}.act.t-scorm .ic,.act.t-h5p .ic{background:var(--ok-bg);color:var(--ok)}
.act .tt{flex:1;min-width:0}.act .tt b{display:block;font-weight:600;font-size:15.5px}.act .tt small{color:var(--muted);font-size:13px}
.act .st{color:var(--ok)}.act .st svg{width:22px;height:22px}
.act.hidden{opacity:.55}.act.label{display:block;padding:6px 14px}.act.label:hover{background:none}
.edit-tools{display:flex;gap:2px}

/* مشغّل النشاط */
.player{background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden}
.player>.ph2{display:flex;align-items:center;gap:14px;padding:16px 22px;border-bottom:1px solid var(--line);flex-wrap:wrap}
.player>.ph2 h1{font-size:21px;margin:0}
.player>.pb{padding:22px}
.player .stage{border-radius:14px;overflow:hidden;background:#0b1a2b}
.player .stage iframe{display:block;width:100%;border:0;background:#fff}
.ratio{aspect-ratio:16/9}.tall{height:min(78vh,860px)}
.prose{font-size:16.5px;line-height:1.9}.prose img{height:auto;border-radius:10px}.prose table{border-collapse:collapse}.prose td,.prose th{border:1px solid var(--line);padding:6px 10px}
.pnav{display:flex;justify-content:space-between;gap:10px;padding:14px 22px;border-top:1px solid var(--line);background:var(--cream)}
.flist{list-style:none;padding:0;margin:0;display:grid;gap:8px}
.flist li{display:flex;gap:12px;align-items:center;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#fff}
.flist li svg{width:20px;height:20px;color:var(--slate)}.flist li .nm{flex:1;min-width:0;overflow-wrap:anywhere}
.note{padding:12px 16px;border-radius:12px;background:var(--sky-2);color:var(--navy);font-size:15px;display:flex;gap:10px;align-items:flex-start}
.note svg{width:20px;height:20px;flex-shrink:0;margin-top:3px}.note.warn{background:var(--warn-bg);color:var(--warn)}.note.err{background:var(--err-bg);color:var(--err)}.note.ok{background:var(--ok-bg);color:var(--ok)}

/* جداول */
.tbl-wrap{overflow:auto;border:1px solid var(--line);border-radius:14px;background:#fff}
table.tbl{width:100%;border-collapse:collapse;font-size:14.5px}
.tbl th{background:var(--sky-2);color:var(--navy);text-align:start;padding:10px 12px;font-weight:600;white-space:nowrap;position:sticky;top:0}
.tbl td{padding:9px 12px;border-top:1px solid var(--line);vertical-align:middle}
.tbl tr:hover td{background:#FDFCF6}
.tbl input,.tbl select{padding:5px 8px;font-size:14px}
.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px;margin-bottom:18px}
.kpi{background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px 18px}.kpi b{display:block;font-size:26px;color:var(--navy)}.kpi span{color:var(--muted);font-size:14px}

/* اختبار */
.qcard{border:1px solid var(--line);border-radius:16px;padding:18px;margin-bottom:14px;background:#fff}
.qcard .qh{display:flex;gap:10px;margin-bottom:10px;font-weight:600;color:var(--navy)}
.qcard .qh .qn{flex-shrink:0;width:30px;height:30px;border-radius:8px;background:var(--sky-2);display:grid;place-items:center;font-size:14px}
.opt{display:flex;gap:10px;align-items:center;padding:10px 14px;border:1.5px solid var(--line);border-radius:12px;margin-top:8px;cursor:pointer}
.opt:hover{border-color:var(--slate)}.opt input{accent-color:var(--navy);width:18px;height:18px}
.opt.right{border-color:var(--ok);background:var(--ok-bg)}.opt.wrong{border-color:var(--err);background:var(--err-bg)}
.timer{position:sticky;top:76px;z-index:5;display:inline-flex;gap:8px;align-items:center;background:var(--navy);color:#fff;padding:8px 16px;border-radius:99px;font-weight:700;float:inline-end}
.timer svg{width:18px;height:18px}

/* منتدى */
.post{border:1px solid var(--line);border-radius:14px;padding:14px 16px;background:#fff;margin-bottom:10px}
.post .who{display:flex;gap:10px;align-items:center;margin-bottom:6px}.post .who .avatar{width:32px;height:32px;font-size:13px}
.post .replies{margin-top:10px;padding-inline-start:18px;border-inline-start:3px solid var(--sky-2)}

/* نوافذ */
dialog.dlg{border:0;border-radius:20px;padding:26px;width:min(620px,94vw);max-height:90vh;overflow:auto;box-shadow:var(--shadow-lg)}
dialog.dlg.wide{width:min(1000px,96vw)}
dialog.dlg::backdrop{background:rgba(0,30,60,.45)}
dialog.dlg h3{margin-top:0;font-size:20px}
.dlg-x{position:absolute;inset-inline-end:14px;top:14px;width:34px;height:34px;border-radius:10px;display:grid;place-items:center;color:var(--muted)}.dlg-x:hover{background:var(--sky-2)}.dlg-x svg{width:18px;height:18px}
.toast{position:fixed;bottom:22px;left:50%;transform:translate(-50%,20px);background:var(--navy);color:#fff;padding:12px 20px;border-radius:12px;box-shadow:var(--shadow-lg);opacity:0;transition:.25s;z-index:999;pointer-events:none;max-width:90vw}
.toast.show{opacity:1;transform:translate(-50%,0)}.toast.err{background:var(--err)}.toast.ok{background:var(--ok)}
.loading{display:flex;gap:12px;align-items:center;justify-content:center;padding:50px;color:var(--muted)}
.spin{width:22px;height:22px;border:3px solid var(--sky);border-top-color:var(--navy);border-radius:50%;animation:sp .8s linear infinite;display:inline-block}
.spin.sm{width:15px;height:15px;border-width:2px}
@keyframes sp{to{transform:rotate(360deg)}}
.empty{text-align:center;padding:40px 20px;color:var(--muted)}.empty svg{width:40px;height:40px;color:var(--sky)}
.drop{border:2px dashed var(--sky);border-radius:16px;padding:30px;text-align:center;background:#fff;cursor:pointer;transition:.15s}
.drop:hover,.drop.over{border-color:var(--navy);background:var(--sky-2)}.drop svg{width:34px;height:34px;color:var(--slate)}
.prog{margin:10px 0}.prog .bar{height:10px}.prog small{color:var(--muted)}
.log{font-size:13px;color:var(--muted);max-height:180px;overflow:auto;background:var(--cream);border-radius:10px;padding:10px}

/* محرر نصوص بسيط */
.rte{border:1.5px solid var(--line);border-radius:12px;background:#fff}
.rte .bar2{display:flex;gap:2px;padding:6px;border-bottom:1px solid var(--line);flex-wrap:wrap}
.rte .bar2 button{padding:4px 10px;border-radius:8px;font-size:14px}.rte .bar2 button:hover{background:var(--sky-2)}
.rte .ed{min-height:180px;padding:12px 14px;outline:none;line-height:1.8}

/* تسجيل الدخول */
.login{min-height:100vh;display:grid;grid-template-columns:1.1fr 1fr}
.login .art{background:var(--navy);color:#fff;position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;padding:48px}
.login .art .arcs{position:absolute;inset-inline-end:-160px;top:-120px;width:700px;height:700px}
.login .art h1{color:#fff;font-size:34px;position:relative}.login .art p{color:#C9D5E3;position:relative;max-width:520px}
.login .box{display:flex;flex-direction:column;justify-content:center;padding:48px;max-width:520px;width:100%;margin:auto}
.login .box img{height:62px;align-self:flex-start;margin-bottom:22px}
.seg{display:inline-flex;background:var(--sky-2);border-radius:12px;padding:4px;gap:4px;margin-bottom:18px}
.seg button{padding:8px 18px;border-radius:9px;font-weight:600;color:var(--muted)}.seg button[aria-pressed=true]{background:#fff;color:var(--navy);box-shadow:var(--shadow)}

/* المساعد الذكي */
#tutorFab{position:fixed;bottom:22px;inset-inline-end:22px;z-index:70;display:flex;align-items:center;gap:10px;padding:6px 18px 6px 6px;border-radius:999px;background:var(--navy);color:#fff;font-weight:600;box-shadow:0 10px 30px rgba(0,45,88,.35)}
#tutorFab .buddy{width:46px;height:46px;border-radius:50%;box-shadow:0 0 0 3px #fff;animation:bob 3s ease-in-out infinite}
@keyframes bob{50%{transform:translateY(-3px) rotate(-4deg)}}
@media (prefers-reduced-motion:reduce){#tutorFab .buddy{animation:none}*{transition:none!important}}
#tutor[hidden]{display:none!important}
#tutor{position:fixed;bottom:86px;inset-inline-end:22px;z-index:71;width:min(400px,calc(100vw - 24px));height:min(600px,calc(100vh - 120px));background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow-lg);display:flex;flex-direction:column;overflow:hidden}
#tutor header{display:flex;gap:12px;align-items:center;padding:12px 14px;background:var(--navy);color:#fff}
#tutor header b{display:block}#tutor header small{color:#C9D5E3;font-size:12.5px}
#tutor header .tav{width:44px;height:44px;border-radius:50%;background:#fff;overflow:hidden;flex-shrink:0}#tutor header .tav .buddy{width:44px;height:44px}
#tutor header button{margin-inline-start:auto;color:#fff;width:32px;height:32px;border-radius:8px}#tutor header button:hover{background:rgba(255,255,255,.12)}
#tlog{flex:1;overflow:auto;padding:14px;display:flex;flex-direction:column;gap:10px;background:var(--cream)}
.tmsg{display:flex;gap:8px;align-items:flex-end}.tmsg.me{justify-content:flex-start}.tmsg.bot{justify-content:flex-end}
.tmsg .tb{max-width:86%;padding:10px 14px;font-size:15px;line-height:1.75}
.tmsg.me .tb{background:var(--navy);color:#fff;border-radius:16px 16px 4px 16px}
.tmsg.bot .tb{background:#fff;border:1px solid var(--line);border-radius:16px 16px 16px 4px}
.tava{flex:0 0 30px;order:2}.tava .buddy{width:30px;height:30px;display:block}
.tsrc{margin-top:8px;padding-top:6px;border-top:1px dashed var(--line);display:flex;flex-direction:column;gap:3px;font-size:13px}.tsrc a{color:var(--slate);text-decoration:underline}
#tform{display:flex;gap:8px;padding:10px;border-top:1px solid var(--line);background:#fff}
#tq{flex:1;resize:none;min-height:44px;max-height:120px}
#tsend{width:44px;border-radius:12px;background:var(--navy);color:#fff;display:grid;place-items:center}#tsend svg{width:18px;height:18px}
.tdots{display:inline-flex;gap:4px}.tdots i{width:7px;height:7px;border-radius:50%;background:var(--slate);animation:td 1s infinite alternate}.tdots i:nth-child(2){animation-delay:.2s}.tdots i:nth-child(3){animation-delay:.4s}
@keyframes td{to{opacity:.25;transform:translateY(-3px)}}

footer.foot{border-top:1px solid var(--line);background:#fff;color:var(--muted);font-size:13.5px}
footer.foot .in{max-width:1320px;margin:auto;padding:18px 22px;display:flex;gap:10px;flex-wrap:wrap;justify-content:space-between}

@media (max-width:980px){
  .cwrap{grid-template-columns:1fr}.side{position:static;max-height:none}
  .login{grid-template-columns:1fr}.login .art{min-height:220px;padding:28px}
  .grid2,.grid3{grid-template-columns:1fr}
  .brand b,.brand .sep{display:none}
}
@media (max-width:680px){
  .wrap{padding:18px 14px 50px}.hero h1{font-size:24px}
  #tutorFab span{display:none}#tutorFab{padding:5px}
  #tutor{bottom:80px;inset-inline-end:12px;height:calc(100vh - 100px)}
  .nav a span{display:none}
}
@media print{.topbar,#tutorFab,#tutor,.side,.pnav,footer{display:none!important}.cwrap{display:block}}
[dir=rtl] .arcs{transform:scaleX(-1)}
.prose iframe{max-width:100%;border:0;border-radius:12px}
.prose iframe[src*="youtube"],.prose iframe[src*="vimeo"]{width:100%;height:auto;aspect-ratio:16/9}
