/* ==========================================================================
   FasherMed — style.css  ·  Design « D », palette médicale
   Bleu-vert (confiance, santé) · bleu nuit (sérieux) · corail (énergie, alertes douces)
   1 Tokens · 2 Base · 3 Layout & navigation · 4 Shared components
   5 Landing page · 6 Dashboard · 7 Subjects & plan · 8 Lesson
   9 Flashcards & quiz · 10 Profile & accounts · 11 Systems & clinical cases
   12 Author space · 13 Dr Fasher (tutor) · 14 Arabic (RTL) · 16 IMAT · 15 Phone
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --primary: #0E7C86;
  --primary-dark: #095A61;
  --primary-soft: #DDF1F2;
  --primary-tint: #EEF8F8;
  --primary-line: #B6E0E2;

  --ink: #0F2235;
  --ink-2: #2E3E52;
  --muted: #52627A;
  --bg: #F4F7FA;
  --surface: #FFFFFF;
  --line: #E3E9F0;
  --line-2: #D8E0EA;
  --track: #E3E9F0;

  --teal: #0891B2;   --teal-soft: #E0F4FA;   --teal-ink: #0B6283;
  --green: #2FA45F;  --green-soft: #DDF5E6;  --green-ink: #2C6A42;
  --amber: #E59A12;  --amber-soft: #FFF4D9;  --amber-ink: #6E4B00;
  --violet: #7660E0; --violet-soft: #F1EEFC; --violet-ink: #4C3AA8;
  --blue: #3557E6;   --blue-soft: #EAF1FF;   --blue-ink: #2B44B0;
  --red-soft: #5A2A26;
  --accent: #F26B4F;  --accent-soft: #FFE9E3; --accent-ink: #B23A22;
  --rose: #D63A6F;   --rose-soft: #FDE7EF;   --rose-ink: #A8264F;

  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 28px;
  --shadow: 0 6px 24px rgba(15, 34, 53, .06);
  --shadow-lg: 0 18px 44px rgba(15, 34, 53, .12);

  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-ar: 'IBM Plex Sans Arabic', 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* 2. Base ----------------------------------------------------------------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; }
html[lang="ar"] body { font-family: var(--font-ar); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--primary-dark); }
:focus-visible { outline: 3px solid rgba(14, 124, 134, .35); outline-offset: 2px; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
img { max-width: 100%; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1260px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }

/* 3. Layout & navigation ---------------------------------------------------- */
/* The app shell (side bar, top bar, phone bar) is styled in section 19 at the end of this file. */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; direction: ltr; }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand .word { font-size: 22px; font-weight: 800; letter-spacing: -.03em; font-family: var(--font); }
.brand .word span { color: var(--primary); }
.header-right { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; background: #7FD6D0; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; text-decoration: none; flex: none;
}
.page { padding-top: 28px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 22px; }
.bottom-nav { display: none; }

/* 4. Shared components ------------------------------------------------------ */
.card { background: var(--surface); border-radius: var(--radius-xl); box-shadow: var(--shadow); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
@media (max-width: 480px) { .card-title { flex-wrap: wrap; row-gap: 8px; } }
.card-title h2 { font-size: 19px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.card-title h2 svg { width: 22px; height: 22px; color: var(--primary); }
.row { display: flex; flex-wrap: wrap; gap: 20px; }
.row > .grow-2 { flex: 2 1 520px; min-width: 0; }
.row > .grow-1 { flex: 1 1 290px; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 20px; }

.btn {
  min-height: 50px; padding: 0 22px; border: 0; border-radius: var(--radius); font-weight: 800; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #FFFFFF; box-shadow: 0 10px 24px rgba(14, 124, 134, .25); }
.btn-primary:hover { background: var(--primary-dark); color: #FFFFFF; }
.btn-dark { background: var(--ink); color: #FFFFFF; }
.btn-dark:hover { color: #FFFFFF; background: #1C3550; }
.btn-light { background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); font-weight: 700; }
.btn-light:hover { color: var(--ink); border-color: var(--primary-line); }
.btn-ghost { background: transparent; color: inherit; font-weight: 700; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 13px; border-radius: 12px; }
.btn:disabled { opacity: .45; cursor: default; box-shadow: none; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 4px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 800; white-space: nowrap;
}
.chip svg { width: 14px; height: 14px; }
.chip-pink { background: var(--primary-soft); color: var(--primary-dark); }
.chip-grey { background: #EDF1F5; color: var(--muted); }
.chip-amber { background: var(--amber-soft); color: var(--amber-ink); }
.chip-green { background: var(--green-soft); color: var(--green-ink); }
.chip-violet { background: var(--violet-soft); color: var(--violet-ink); }
.chip-solid { background: var(--primary); color: #FFFFFF; }

.bar { display: block; height: 8px; border-radius: 999px; background: var(--track); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 999px; background: var(--primary); }

.segmented { display: inline-flex; flex-wrap: wrap; padding: 4px; border-radius: 14px; background: #E4EAF1; gap: 2px; }
.segmented button { min-height: 42px; padding: 0 16px; border: 0; border-radius: 11px; background: transparent; color: var(--muted); font-weight: 700; font-size: 14px; }
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(15, 34, 53, .1); }
.segmented.dark { background: #1C3550; }
.segmented.dark button { color: #B9C8D8; }
.segmented.dark button[aria-pressed="true"] { background: #FFFFFF; color: var(--ink); }

.pill-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-tabs button, .pill-tabs a {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--surface); color: var(--ink);
  font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
}
.pill-tabs [aria-pressed="true"], .pill-tabs .active { background: var(--ink); color: #FFFFFF; }
.pill-tabs .dot { width: 10px; height: 10px; border-radius: 50%; }

.icon-tile { width: 46px; height: 46px; border-radius: 15px; flex: none; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; font-family: var(--font); }
.icon-tile svg { width: 22px; height: 22px; }
.tone-pink   { background: var(--rose-soft); color: var(--rose-ink); }
.tone-teal   { background: var(--teal-soft);    color: var(--teal-ink); }
.tone-violet { background: var(--violet-soft);  color: var(--violet-ink); }
.tone-amber  { background: var(--amber-soft);   color: var(--amber-ink); }
.tone-green  { background: var(--green-soft);   color: var(--green-ink); }
.tone-blue   { background: var(--blue-soft);    color: var(--blue-ink); }
.fill-pink { background: var(--rose); } .fill-teal { background: var(--teal); } .fill-violet { background: var(--violet); }
.fill-amber { background: var(--amber); } .fill-green { background: var(--green); } .fill-blue { background: var(--blue); }

.search-box { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; border-radius: 999px; background: var(--surface); }
.search-box svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search-box input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 15px; }

.lang-switch { display: inline-flex; padding: 3px; border-radius: 12px; background: #EEF2F6; }
.lang-switch button { min-height: 36px; min-width: 42px; border: 0; border-radius: 10px; background: transparent; color: #5F7086; font-size: 13px; font-weight: 700; }
.lang-switch button[aria-pressed="true"] { background: var(--surface); color: var(--ink); }

.empty-state { text-align: center; color: var(--muted); padding: 32px 16px; }
.toast {
  position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); z-index: 60;
  background: var(--ink); color: #FFFFFF; padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 700;
  animation: fade 1.8s ease forwards;
}
@keyframes fade { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }

/* 5. Landing page ----------------------------------------------------------- */
.l-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; min-height: 80px; padding-top: 10px; padding-bottom: 10px; }
.l-nav { display: flex; flex-wrap: wrap; gap: 2px; }
.l-nav a { min-height: 42px; padding: 0 14px; display: flex; align-items: center; text-decoration: none; color: #435469; font-weight: 600; font-size: 15px; }
.l-nav a:hover { color: var(--ink); }
.l-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.hero { position: relative; overflow: hidden; background: var(--primary-tint); }
.hero::before, .hero::after { content: ''; position: absolute; border-radius: 50%; }
.hero::before { width: 560px; height: 560px; right: -160px; top: -160px; background: #D4EEF0; }
.hero::after { width: 380px; height: 380px; left: -120px; bottom: -180px; background: var(--accent-soft); }
.hero .wrap { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 64px; padding-bottom: 80px; }
.hero-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 4px 14px; border-radius: 999px; background: #FFFFFF; color: var(--primary-dark); font-size: 13px; font-weight: 800; }
.hero-badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.hero h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.08; font-weight: 800; letter-spacing: -.035em; }
.hero h1 span { color: var(--primary); }
.hero p { margin: 0; font-size: 19px; line-height: 1.6; color: #435469; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn { min-height: 56px; font-size: 17px; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: 14px; font-weight: 600; color: #435469; }
.checks span { display: inline-flex; align-items: center; gap: 6px; }
.checks svg { width: 18px; height: 18px; color: var(--teal); }

.hero-visual { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.hero-visual .row { gap: 16px; }
.mock { background: #FFFFFF; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.mock-streak { align-items: center; justify-content: center; text-align: center; gap: 6px; }
.mock-streak svg { width: 28px; height: 28px; color: var(--accent); }
.mock-streak strong { font-size: 34px; line-height: 1; }
.mock-qcm { background: var(--ink); color: #FFFFFF; direction: ltr; text-align: left; font-family: var(--font); }
.mock-qcm .k { font-size: 12px; font-weight: 800; letter-spacing: .1em; color: #7FD6D0; }
.mock-qcm .opt { min-height: 44px; padding: 8px 14px; border-radius: 12px; background: #1C3550; color: #B9C8D8; display: flex; align-items: center; gap: 10px; font-size: 14px; }
.mock-qcm .opt.good { background: var(--teal); color: #FFFFFF; font-weight: 700; }
.mascot { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: #435469; }
.mascot .face { width: 104px; height: 104px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 14px 34px rgba(14, 124, 134, .28); display: flex; align-items: center; justify-content: center; }

.section { padding: 88px 0; }
.section.alt { background: var(--bg); }
.section.white { background: #FFFFFF; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 680px; margin-bottom: 36px; }
.kicker { font-size: 13px; font-weight: 800; letter-spacing: .1em; color: var(--primary); text-transform: uppercase; }
html[lang="ar"] .kicker { letter-spacing: 0; }
.section h2.big { font-size: clamp(30px, 4vw, 42px); line-height: 1.15; font-weight: 800; letter-spacing: -.03em; }
html[lang="ar"] .section h2.big, html[lang="ar"] .hero h1 { letter-spacing: 0; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.feature { border-radius: 26px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.feature .top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.feature .num { width: 52px; height: 52px; border-radius: 16px; color: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.feature .num svg { width: 26px; height: 26px; }
.feature h3 { font-size: 20px; font-weight: 800; }
.feature p { margin: 0; font-size: 15px; line-height: 1.6; color: #435469; }
.soon { min-height: 28px; padding: 4px 12px; border-radius: 999px; background: #FFFFFF; color: #435469; font-size: 12px; font-weight: 800; }

.preview { background: var(--ink); color: #FFFFFF; }
.preview .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.preview-text { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.preview-text .segmented { align-self: flex-start; }
.preview-text p { margin: 0; font-size: 17px; line-height: 1.65; color: #B9C8D8; }
.preview-text .kicker { color: #7FD6D0; }
.preview-card { flex: 1.4 1 460px; min-width: 0; background: #FFFFFF; color: var(--ink); border-radius: var(--radius-xl); padding: 24px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); display: flex; flex-direction: column; gap: 14px; direction: ltr; text-align: left; font-family: var(--font); }

.subject-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.subject-tile { border-radius: 22px; background: #FFFFFF; padding: 18px; display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); box-shadow: 0 4px 16px rgba(15, 34, 53, .05); }
.subject-tile .name { font-weight: 800; font-size: 16px; }
.subject-tile .meta { font-size: 13px; color: var(--muted); }
a.subject-tile:hover { color: var(--ink); box-shadow: var(--shadow-lg); }
.subject-tile.empty { opacity: .65; }

.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.step { border-radius: 26px; border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 12px; background: #FFFFFF; }
.step .n { font-size: 48px; font-weight: 800; line-height: 1; font-family: var(--font); }
.step h3 { font-size: 20px; font-weight: 800; }
.step p { margin: 0; font-size: 15px; line-height: 1.6; color: #435469; }

.story { border-radius: 32px; background: var(--primary-tint); padding: 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 32px; }
.story > div:first-child { flex: 2 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.story h2 { font-size: 30px; line-height: 1.25; font-weight: 800; }
.story p { margin: 0; font-size: 16px; line-height: 1.65; color: #435469; }
.story .ar { font-family: var(--font-ar); font-size: 34px; font-weight: 700; }

.faq { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq details { border-radius: 20px; background: #FFFFFF; }
.faq summary { list-style: none; min-height: 64px; padding: 12px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 17px; font-weight: 700; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; width: 32px; height: 32px; flex: none; border-radius: 50%; background: #EEF2F6; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.faq details[open] summary::after { content: '−'; background: var(--primary); color: #FFFFFF; }
.faq details p { margin: 0; padding: 0 22px 22px; font-size: 15px; line-height: 1.65; color: #435469; }

.cta-band { position: relative; overflow: hidden; border-radius: 36px; background: var(--primary); color: #FFFFFF; padding: 56px 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta-band::after { content: ''; position: absolute; right: -80px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: 36px; font-weight: 800; }
.cta-band p { margin: 8px 0 0; font-size: 17px; }
.cta-band .btn { background: #FFFFFF; color: var(--primary-dark); min-height: 58px; font-size: 17px; }

.l-footer { border-top: 1px solid var(--line); background: #FFFFFF; }
.l-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 32px; padding-bottom: 32px; font-size: 14px; color: #435469; }
.l-footer nav { display: flex; gap: 18px; }

/* 6. Dashboard -------------------------------------------------------------- */
.greet small { display: block; font-size: 15px; color: var(--muted); }
.greet h1 { font-size: clamp(28px, 3.5vw, 36px); font-weight: 800; letter-spacing: -.03em; }
html[lang="ar"] .greet h1 { letter-spacing: 0; }

.resume { border-radius: var(--radius-xl); background: var(--primary); color: #FFFFFF; padding: 26px; display: flex; flex-direction: column; gap: 14px; text-decoration: none; }
.resume:hover { color: #FFFFFF; }
.resume .k { font-size: 12px; font-weight: 800; letter-spacing: .1em; opacity: .85; }
.resume .t { font-size: 26px; font-weight: 800; }
.resume .s { font-size: 15px; opacity: .9; }
.resume .bar { background: rgba(255, 255, 255, .25); }
.resume .bar > span { background: #FFFFFF; }
.resume .go { align-self: flex-start; min-height: 46px; padding: 0 20px; border-radius: 14px; background: #FFFFFF; color: var(--primary-dark); display: inline-flex; align-items: center; font-weight: 800; }

.streak { align-items: center; text-align: center; }
.streak .big { font-size: 56px; font-weight: 800; line-height: 1; font-family: var(--font); }
.streak .big small { font-size: 20px; color: var(--accent); }
.week { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.week span { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--primary); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; }
.week span.on { background: var(--primary); color: #FFFFFF; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.stat { background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.stat .v { font-size: 30px; font-weight: 800; font-family: var(--font); }
.stat .l { font-size: 13px; color: var(--muted); font-weight: 600; }

.progress-row { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.progress-row .mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.progress-row .top { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; }
.progress-row .pct { font-weight: 800; font-size: 14px; white-space: nowrap; }
.progress-row .icon-tile { border-radius: 50%; }

.todo { border-radius: var(--radius-lg); padding: 20px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); }
.todo:hover { color: var(--ink); filter: brightness(.98); }
.todo .k { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.todo .t { font-size: 16px; font-weight: 800; line-height: 1.35; }
.todo .d { font-size: 13px; color: var(--muted); }
.todo.pink { background: var(--primary-tint); } .todo.pink .k { color: var(--primary-dark); }
.todo.teal { background: var(--teal-soft); } .todo.teal .k { color: var(--teal-ink); }
.todo.amber { background: var(--amber-soft); } .todo.amber .k { color: var(--amber-ink); }
.todo.dashed { border: 2px dashed #CDD7E2; background: transparent; }

.modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.module { border-radius: 22px; border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; background: #FFFFFF; text-decoration: none; color: var(--ink); }
.module:hover { color: var(--ink); box-shadow: var(--shadow-lg); }
.module .cover { height: 112px; display: flex; align-items: center; justify-content: center; position: relative; }
.module .cover .abbr { width: 70px; height: 70px; border-radius: 22px; background: rgba(255, 255, 255, .28); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; font-family: var(--font); }
.module .cover .tag { position: absolute; top: 10px; inset-inline-end: 10px; min-height: 26px; padding: 4px 10px; border-radius: 8px; background: rgba(255, 255, 255, .88); color: var(--ink); font-size: 11px; font-weight: 800; }
.module .body { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.module .body .n { font-weight: 800; }
.module .body .m { font-size: 12px; color: var(--muted); }

/* 7. Subjects & plan -------------------------------------------------------- */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.page-head h1 { font-size: clamp(30px, 4vw, 40px); font-weight: 800; letter-spacing: -.03em; }
.page-head small { display: block; font-size: 14px; color: var(--muted); margin-bottom: 4px; }
html[lang="ar"] .page-head h1 { letter-spacing: 0; }
.phase-title { font-size: 18px; font-weight: 800; margin-top: 8px; }

.counters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.counter { border-radius: 22px; padding: 18px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.counter .v { font-size: 40px; font-weight: 800; line-height: 1.1; font-family: var(--font); }
.counter .l { font-size: 14px; font-weight: 600; }
.counter.total { background: var(--blue-soft); color: var(--blue-ink); }
.counter.done { background: var(--green-soft); color: var(--green-ink); }
.counter.left { border: 2px dashed #CDD7E2; color: var(--muted); }
.counter .v { color: var(--ink); }

.path { display: flex; flex-direction: column; }
.path-item { display: flex; gap: 16px; }
.rail { width: 44px; flex: none; display: flex; flex-direction: column; align-items: center; }
.node { width: 44px; height: 44px; border-radius: 50%; flex: none; border: 2px solid #CDD7E2; background: #FFFFFF; color: var(--muted); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; font-family: var(--font); }
.rail .line { flex: 1; width: 0; min-height: 20px; border-inline-start: 2px dashed #CDD7E2; }
.path-item:last-child .rail .line { visibility: hidden; }
.path-item.done .node { background: var(--green); border-color: var(--green); color: #FFFFFF; }
.path-item.done .rail .line { border-color: var(--green); }
.path-item.current .node { background: var(--primary); border-color: var(--primary); color: #FFFFFF; }
.lesson-card { flex: 1; min-width: 0; margin-bottom: 16px; border-radius: var(--radius-lg); background: #FFFFFF; border: 1px solid var(--line); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.path-item.current .lesson-card { background: var(--primary-tint); border-color: var(--primary-line); }
.path-item.locked .lesson-card { opacity: .72; }
.lesson-card .head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.lesson-card h2 { font-size: 20px; font-weight: 800; line-height: 1.25; }
.lesson-card .meta { font-size: 13px; color: var(--muted); margin-top: 4px; }
.lesson-card .actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* 8. Lesson ----------------------------------------------------------------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.crumbs a { text-decoration: none; font-weight: 600; }
.crumbs strong { color: var(--ink); }
.lesson-layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.lesson-side { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.lesson-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.side-box { background: #FFFFFF; border-radius: var(--radius-lg); padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.side-box .label { font-size: 12px; font-weight: 800; letter-spacing: .08em; color: var(--muted); padding: 0 6px 6px; }
html[lang="ar"] .side-box .label { letter-spacing: 0; }
.part-link { min-height: 48px; padding: 8px 10px; border-radius: 14px; display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.3; }
.part-link .dot { width: 30px; height: 30px; flex: none; border-radius: 50%; background: #EDF1F5; color: var(--muted); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; font-family: var(--font); }
.part-link.done .dot { background: var(--green); color: #FFFFFF; }
.part-link.active { background: var(--primary-tint); font-weight: 800; }
.part-link.active .dot { background: var(--primary); color: #FFFFFF; }
.side-link { min-height: 46px; padding: 0 12px; border-radius: 14px; display: flex; align-items: center; justify-content: space-between; text-decoration: none; font-weight: 700; font-size: 14px; }
.side-link.teal { background: var(--teal-soft); color: var(--teal-ink); }
.side-link.amber { background: var(--amber-soft); color: var(--amber-ink); }
.side-link.violet { background: var(--violet-soft); color: var(--violet-ink); }

.lesson-top { background: #FFFFFF; border-radius: var(--radius-xl); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.lesson-top .head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 14px; }
.lesson-top .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.lesson-top h1 { font-size: clamp(28px, 3.4vw, 36px); font-weight: 800; letter-spacing: -.03em; }
.steps-bar { display: flex; gap: 6px; }
.steps-bar a { flex: 1; height: 7px; border-radius: 999px; background: var(--track); }
.steps-bar a.done { background: var(--green); }
.steps-bar a.active { background: var(--primary); }

.prose { background: #FFFFFF; border-radius: var(--radius-xl); padding: 30px; font-size: 17px; line-height: 1.75; color: var(--ink-2); }
.prose .part-k { font-size: 13px; font-weight: 800; letter-spacing: .08em; color: var(--primary); }
.prose > h2 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); margin: 6px 0 18px; }
.prose p { margin: 0 0 16px; }
.prose h3, .prose h4, .prose h5 { color: var(--ink); margin: 26px 0 10px; line-height: 1.3; }
.prose h3 { font-size: 20px; } .prose h4, .prose h5 { font-size: 17px; }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { margin: 0 0 16px; padding-inline-start: 24px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--primary); font-weight: 800; }
.prose li.task { list-style: none; margin-inline-start: -24px; display: flex; gap: 10px; align-items: flex-start; }
.prose .box { width: 18px; height: 18px; border: 2px solid var(--line-2); border-radius: 5px; flex: none; margin-top: 5px; }
.prose .box.done { background: var(--green); border-color: var(--green); }
.prose code { background: #EEF2F6; padding: 1px 6px; border-radius: 6px; font-size: .92em; }
.md-pre { background: #0F2235; color: #E3ECF5; border-radius: 14px; padding: 16px 18px; margin: 0 0 16px; overflow-x: auto; font-size: 13.5px; line-height: 1.5; direction: ltr; text-align: left; }
.md-pre code { background: none; padding: 0; font-size: inherit; color: inherit; font-family: ui-monospace, Consolas, 'Courier New', monospace; white-space: pre; }
.md-table { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 16px; }
.md-table table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.5; }
.md-table th, .md-table td { padding: 12px 14px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); min-width: 120px; }
.md-table th { background: var(--primary-tint); color: #0A4F55; font-weight: 800; }
.md-table tr:last-child td { border-bottom: 0; }
.md-table td:first-child { font-weight: 700; color: var(--ink); }
.diagram { margin: 4px 0 18px; padding: 12px; border-radius: 18px; background: var(--bg); overflow-x: auto; }
.diagram svg { width: 100%; min-width: 520px; height: auto; display: block; font-family: var(--font); font-size: 13px; }
.dg-title { font-size: 15px; font-weight: 700; fill: var(--ink); }
.dg-head text, .dg-legend text { font-size: 11.5px; fill: var(--muted); }
.dg-text { fill: var(--ink); }
.dg-box { fill: #FFFFFF; stroke: #C9C2D6; stroke-width: 1.25; }
.dg-box.strong { fill: var(--primary-soft); stroke: var(--primary); stroke-width: 1.5; }
.dg-line { fill: none; stroke: #C9C2D6; stroke-width: 1.25; }
.dg-line.post { stroke: var(--primary); stroke-width: 1.5; stroke-dasharray: 5 4; }
.dg-line.acc { stroke: var(--primary); stroke-width: 1.5; }

.check { background: var(--ink); color: #FFFFFF; border-radius: var(--radius-xl); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.check .k { font-size: 12px; font-weight: 800; letter-spacing: .1em; color: #7FD6D0; }
.check .q { font-size: 19px; font-weight: 700; line-height: 1.4; }
.check .opt { min-height: 52px; padding: 10px 16px; border-radius: 14px; border: 2px solid #1C3550; background: #1C3550; color: #FFFFFF; font-size: 15px; font-weight: 600; text-align: start; display: flex; align-items: center; gap: 12px; }
.check .opt .l { width: 28px; height: 28px; flex: none; border-radius: 9px; background: #2A4766; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }
.check .opt.right { background: #0E5E58; border-color: #3FD3C5; }
.check .opt.right .l { background: var(--teal); }
.check .opt.wrong { background: var(--red-soft); border-color: #FFA48F; }
.check .opt.wrong .l { background: var(--accent); }
.check .fb { margin: 0; padding: 14px 16px; border-radius: 14px; background: #0E5E58; font-size: 15px; line-height: 1.6; }
.check .fb.bad { background: var(--red-soft); }

.lesson-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.lesson-actions .btn-primary { flex: 1 1 220px; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--amber-soft); color: var(--amber-ink); font-size: 13px; font-weight: 600; }
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }

.terms-list .term { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.terms-list .term:last-child { border-bottom: 0; }
.terms-list .en { font-weight: 800; color: var(--ink); }

/* 9. Flashcards & quiz ------------------------------------------------------ */
.session { max-width: 720px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.session-head { display: flex; align-items: center; gap: 12px; }
.session-head .bar { flex: 1; height: 10px; }
.session-head .count { font-size: 14px; font-weight: 800; min-width: 48px; text-align: end; font-family: var(--font); }
.icon-btn { width: 46px; height: 46px; border-radius: 14px; background: #FFFFFF; border: 1px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; color: var(--ink); text-decoration: none; flex: none; }
.icon-btn svg { width: 20px; height: 20px; }

.flash-wrap { position: relative; padding-top: 24px; }
.flash-wrap::before, .flash-wrap::after { content: ''; position: absolute; height: 40px; border-radius: 26px 26px 0 0; }
.flash-wrap::before { left: 24px; right: 24px; top: 0; background: #BFE4E6; }
.flash-wrap::after { left: 12px; right: 12px; top: 12px; background: #8ED0D4; }
.flashcard { position: relative; z-index: 1; width: 100%; min-height: 340px; border: 0; border-radius: 28px; background: #FFFFFF; box-shadow: var(--shadow-lg); padding: 28px 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; text-align: center; color: var(--ink); }
.flashcard .tag { align-self: center; min-height: 30px; padding: 4px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-dark); font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.flashcard.flipped .tag { background: var(--primary); color: #FFFFFF; }
.flashcard .main { font-size: 23px; font-weight: 800; line-height: 1.35; }
.flashcard .small { font-size: 14px; color: var(--muted); }
.flashcard .hint { font-size: 13px; font-weight: 700; color: var(--muted); }
.rating { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.rating button { min-height: 64px; border: 0; border-radius: 16px; font-weight: 800; font-size: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.rating button small { font-size: 11px; font-weight: 600; }
.rate-again { background: var(--accent-soft); color: var(--accent-ink); }
.rate-hard { background: var(--amber-soft); color: var(--amber-ink); }
.rate-good { background: var(--teal-soft); color: var(--teal-ink); }
.rate-easy { background: var(--teal); color: #FFFFFF; }

.q-text { font-size: clamp(20px, 2.6vw, 24px); line-height: 1.35; font-weight: 800; }
.options { display: flex; flex-direction: column; gap: 10px; }
.option { min-height: 60px; padding: 12px 16px; border-radius: 16px; border: 2px solid var(--line); background: #FFFFFF; font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 14px; text-align: start; color: var(--ink); }
.option .l { width: 32px; height: 32px; border-radius: 10px; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; color: var(--muted); flex: none; }
.option:hover:not(:disabled) { border-color: var(--primary); }
.option.right { border-color: var(--green); background: var(--green-soft); color: var(--green-ink); }
.option.right .l { background: var(--green); color: #FFFFFF; }
.option.wrong { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.option.wrong .l { background: var(--accent); color: #FFFFFF; }
.option:disabled { cursor: default; }
.option svg { width: 18px; height: 18px; }
.feedback { border-radius: var(--radius-lg); padding: 20px; background: var(--green-soft); display: flex; flex-direction: column; gap: 12px; }
.feedback.bad { background: var(--accent-soft); }
.feedback .verdict { font-size: 20px; font-weight: 800; color: var(--green-ink); }
.feedback.bad .verdict { color: var(--accent-ink); }
.feedback p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.feedback .buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.feedback .buttons .btn-primary { flex: 1 1 200px; }
.score { background: #FFFFFF; border-radius: var(--radius-xl); padding: 32px; text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; box-shadow: var(--shadow); }
.score .big { font-size: 52px; font-weight: 800; color: var(--primary); font-family: var(--font); }

/* 10. Profile & accounts -------------------------------------------------------------- */
.form { background: #FFFFFF; border-radius: var(--radius-xl); padding: 24px; display: flex; flex-direction: column; gap: 20px; box-shadow: var(--shadow); max-width: 680px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span { font-size: 14px; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); }
.field textarea { padding: 12px 14px; min-height: 0; line-height: 1.55; resize: vertical; }
.field input:disabled { opacity: .7; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.field small { font-size: 12px; }
.field-row { display: flex; flex-wrap: wrap; gap: 14px; }
.field-row > .field { flex: 1 1 200px; min-width: 0; }
.form-title { font-size: 18px; font-weight: 800; }
.profile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; align-items: start; }
.profile-grid .form { max-width: none; }
.profile-card { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 20px; }
.profile-avatar { width: 84px; height: 84px; border-radius: 50%; flex: none; background: var(--primary); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 800; font-family: var(--font); box-shadow: 0 0 0 6px var(--primary-soft); }
.profile-stats { flex: 1 1 360px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.profile-stats div { border-radius: 16px; background: var(--bg); padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.profile-stats strong { font-size: 22px; font-family: var(--font); }
.profile-stats span { font-size: 12px; color: var(--muted); font-weight: 600; }
@media (max-width: 480px) { .profile-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .profile-grid { grid-template-columns: 1fr; } }

.form-error { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); font-size: 14px; font-weight: 700; }
.link-sm { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; text-decoration: none; align-self: flex-start; }
.link-sm svg { width: 18px; height: 18px; }
.account p svg { width: 20px; height: 20px; flex: none; color: var(--primary); }
.account .btn svg, .danger-btn svg { width: 18px; height: 18px; }
.sub-form { display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: 16px; background: var(--bg); }
.sub-form .field input { background: #FFFFFF; }
.danger-zone summary { cursor: pointer; font-weight: 700; color: var(--accent-ink); font-size: 14px; }
.danger-zone[open] summary { margin-bottom: 12px; }
.danger-btn { background: var(--accent); color: #FFFFFF; }
.danger-btn:hover { background: var(--accent-ink); color: #FFFFFF; }
.btn.danger { color: var(--accent-ink); }
.auth { display: flex; justify-content: center; padding: 12px 0 24px; }
.auth-card { width: 100%; max-width: 460px; gap: 16px; }
.auth-card h1 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.auth-logo svg { width: 48px; height: 48px; }
.auth-card .btn-primary { width: 100%; }
.auth .switch { margin: 0; text-align: center; font-size: 14px; color: var(--muted); }
.auth .switch a { font-weight: 800; }

/* 11. Systems & clinical cases ------------------------------------------------ */
.formula { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.formula-item { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 14px; border-radius: 999px; background: var(--bg); font-size: 14px; font-weight: 700; }
.formula-item .dot, .pill-tabs .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.formula .plus { color: var(--muted); font-weight: 800; }
.sys-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.sys-subject { background: #FFFFFF; border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 4px 16px rgba(15, 34, 53, .05); }
.sys-subject.empty { opacity: .65; box-shadow: none; border: 1px dashed var(--line-2); background: transparent; }
.sys-subject .top { display: flex; align-items: center; gap: 12px; }
.sys-subject .meta { font-size: 13px; color: var(--muted); }
.sys-subject .more { font-size: 13px; font-weight: 800; text-decoration: none; }
.sys-lesson { min-height: 44px; padding: 6px 10px; border-radius: 12px; background: var(--primary-tint); display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 700; }
.sys-lesson.locked { background: var(--bg); color: var(--muted); }
.sys-lesson .st { width: 34px; height: 26px; flex: none; border-radius: 8px; background: #FFFFFF; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: var(--primary-dark); font-family: var(--font); }
.sys-lesson .st svg { width: 14px; height: 14px; }
.sys-lesson .st.done { background: var(--green); color: #FFFFFF; }

.case-card, .studio-row { background: #FFFFFF; border-radius: 20px; padding: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); box-shadow: 0 4px 16px rgba(15, 34, 53, .05); }
a.case-card:hover { color: var(--ink); box-shadow: var(--shadow-lg); }
.case-card .mid, .studio-row .mid { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.case-card .date, .studio-row .date { font-size: 12px; font-weight: 800; color: var(--primary-dark); }
.case-card strong, .studio-row strong { font-size: 16px; line-height: 1.35; }
.case-card .meta, .studio-row .meta { font-size: 13px; color: var(--muted); }
.case-hero { flex: 1 1 340px; min-width: 0; position: relative; overflow: hidden; border-radius: var(--radius-xl); background: var(--ink); color: #FFFFFF; padding: 26px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.case-hero:hover { color: #FFFFFF; }
.case-hero .k { font-size: 12px; font-weight: 800; letter-spacing: .08em; color: #7FD6D0; text-transform: uppercase; }
html[lang="ar"] .case-hero .k { letter-spacing: 0; }
.case-hero .t { font-size: 24px; font-weight: 800; line-height: 1.25; max-width: 85%; }
.case-hero .s { font-size: 14px; color: #B9C8D8; }
.case-hero .go { align-self: flex-start; margin-top: 6px; min-height: 46px; padding: 0 20px; border-radius: 14px; background: var(--primary); display: inline-flex; align-items: center; font-weight: 800; }
.case-hero .abbr { position: absolute; inset-inline-end: -10px; bottom: -24px; font-size: 120px; font-weight: 800; line-height: 1; color: rgba(255, 255, 255, .06); font-family: var(--font); }
.todo.rose { background: var(--rose-soft); } .todo.rose .k { color: var(--rose-ink); }
.side-link.pink { background: var(--primary-tint); color: var(--primary-dark); }
.side-link.pink svg { width: 18px; height: 18px; }
.takeaways { background: var(--primary-tint); }

/* 12. Author space ---------------------------------------------------------- */
.week-plan { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.week-plan .day { border-radius: 16px; border: 1.5px dashed var(--line-2); padding: 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: var(--muted); text-align: center; }
.week-plan .day .w { font-size: 12px; font-weight: 800; text-transform: capitalize; }
.week-plan .day .d { font-size: 12px; }
.week-plan .day .n { margin-top: 4px; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; background: var(--bg); color: var(--ink); font-family: var(--font); }
.week-plan .day.has { border: 1.5px solid var(--primary-line); background: var(--primary-tint); color: var(--primary-dark); }
.week-plan .day.has .n { background: var(--primary); color: #FFFFFF; }
.studio-row { box-shadow: none; border: 1px solid var(--line); }
.studio-row.deleted { opacity: .6; }
.studio-row .acts { display: flex; flex-wrap: wrap; gap: 6px; }
.how ol { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.55; }
.editor { display: flex; flex-direction: column; gap: 20px; max-width: 900px; }
.editor .form { max-width: none; }
.q-edit { display: flex; flex-direction: column; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.q-edit h3 { font-size: 17px; font-weight: 800; }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.check-line { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; }
.check-line input { width: 20px; height: 20px; accent-color: var(--primary); }

/* 13. Dr Fasher (tutor) ----------------------------------------------------- */
.tutor-fab { position: fixed; z-index: 35; bottom: 24px; inset-inline-end: 24px; min-height: 56px; padding: 0 20px 0 16px; border-radius: 999px; background: var(--primary); color: #FFFFFF; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; box-shadow: 0 12px 30px rgba(14, 124, 134, .35); }
.tutor-fab:hover { color: #FFFFFF; background: var(--primary-dark); }
.tutor-fab svg { width: 24px; height: 24px; }
.tutor { max-width: 860px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.tutor-head { background: #FFFFFF; border-radius: var(--radius-xl); padding: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; box-shadow: var(--shadow); }
.tutor-head .face { width: 72px; height: 72px; border-radius: 50%; background: var(--primary-tint); display: flex; align-items: center; justify-content: center; flex: none; }
.tutor-head .face svg { width: 60px; height: 60px; }
.tutor-head .who { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.tutor-head .chip { white-space: normal; line-height: 1.35; }
.tutor-head h1 { font-size: 26px; font-weight: 800; }
.tutor-head .ctx { flex: 1 1 240px; display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.chat { display: flex; flex-direction: column; gap: 14px; }
.msg.me { align-self: flex-end; max-width: 80%; background: var(--ink); color: #FFFFFF; border-radius: 20px 20px 6px 20px; padding: 12px 16px; }
[dir="rtl"] .msg.me { border-radius: 20px 20px 20px 6px; }
.msg.me p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.bot { display: flex; align-items: flex-start; gap: 10px; max-width: 94%; }
.msg.bot .who { width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--primary); color: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.msg.bot .who svg { width: 20px; height: 20px; }
.bubble { flex: 1; min-width: 0; background: #FFFFFF; border-radius: 6px 20px 20px 20px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); font-size: 15px; line-height: 1.6; }
[dir="rtl"] .bubble { border-radius: 20px 6px 20px 20px; }
.bubble p { margin: 0; }
.bubble .md { color: var(--ink-2); }
.bubble .md p, .bubble .md ul, .bubble .md ol { margin: 0 0 10px; }
.bubble .md ul, .bubble .md ol { padding-inline-start: 22px; }
.bubble .md h3, .bubble .md h4 { font-size: 16px; margin: 4px 0 8px; }
.bubble .md .md-table { margin-bottom: 10px; }
.bubble .md .md-table th, .bubble .md .md-table td { min-width: 90px; padding: 8px 10px; font-size: 14px; }
.bubble .src { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 4px 12px; border-radius: 12px; background: var(--primary-tint); text-decoration: none; font-size: 13px; font-weight: 700; }
.bubble .src svg { width: 16px; height: 16px; flex: none; }
.bubble .note { font-size: 13px; color: var(--amber-ink); background: var(--amber-soft); padding: 8px 12px; border-radius: 10px; }
.bubble .flash-note { font-size: 14px; background: var(--teal-soft); color: var(--teal-ink); padding: 10px 12px; border-radius: 12px; }
.term-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.term-pair span { background: var(--bg); border-radius: 12px; padding: 10px 12px; font-weight: 800; display: flex; flex-direction: column; }
.term-pair small { font-size: 11px; color: var(--muted); font-weight: 800; letter-spacing: .08em; }
.reveal summary { cursor: pointer; font-weight: 800; color: var(--primary-dark); }
.reveal p { margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: var(--green-soft); color: var(--green-ink); font-weight: 700; }
.sugg { display: flex; flex-wrap: wrap; gap: 8px; }
.sugg button { min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--primary-line); background: #FFFFFF; color: var(--primary-dark); font-size: 13px; font-weight: 700; text-align: start; }
.sugg button:hover { background: var(--primary-tint); }
.chat-input { position: sticky; bottom: 16px; display: flex; gap: 8px; padding: 8px; border-radius: 20px; background: #FFFFFF; box-shadow: var(--shadow-lg); }
.chat-input input { flex: 1; min-width: 0; min-height: 48px; border: 0; outline: none; padding: 0 12px; font-size: 16px; background: transparent; }
.chat-input .btn { min-height: 48px; width: 56px; padding: 0; }
.chat-input .btn svg { width: 22px; height: 22px; }

/* 14. Arabic interface (RTL) ------------------------------------------------ */
[dir="rtl"] .flip { transform: scaleX(-1); }
.course { direction: ltr; text-align: left; font-family: var(--font); }

/* 17. Offline mode (offline.js) ------------------------------------------------ */
.net-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; padding: 8px 16px; background: var(--amber-soft); color: var(--amber-ink); font-size: 14px; font-weight: 700; text-align: center; }
.net-banner.update { background: var(--primary-tint); color: var(--primary-dark); }
.net-banner.hidden { display: none; }
.offline-card .off-line { margin: 0; font-weight: 700; color: var(--ink-2); }
.offline-card .off-line.ok { color: var(--green-ink); }
.offline-card .off-line.ok::before { content: "✓ "; }
.offline-card .off-line.warn { color: var(--amber-ink); }
.off-packs { display: flex; flex-direction: column; gap: 8px; }
.off-packs .bar { width: 100%; }
.off-packs .btn { align-self: flex-start; }

/* 16. IMAT module (imat.js) ---------------------------------------------------- */
.imat-en { direction: ltr; text-align: left; font-family: var(--font); }
.imat-legend .dot, .qnav-title .dot, .md-table .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.imat-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.imat-kpis > div { background: var(--primary-tint); border-radius: 18px; padding: 14px 8px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.imat-kpis .v { font-size: 30px; font-weight: 800; color: var(--ink); line-height: 1.1; }
.imat-kpis .l { font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; }
.imat-kpis.small { width: 100%; margin-top: 6px; }
.imat-kpis .good { background: var(--green-soft); } .imat-kpis .bad { background: var(--accent-soft); }
.imat-scoring { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.imat-scoring span { flex: 1 1 90px; border-radius: 14px; background: #EDF1F5; padding: 10px; font-size: 20px; font-weight: 800; display: flex; flex-direction: column; color: var(--ink); }
.imat-scoring .good { background: var(--green-soft); color: var(--green-ink); }
.imat-scoring .bad { background: var(--accent-soft); color: var(--accent-ink); }
.imat-scoring small { font-size: 12px; font-weight: 700; opacity: .85; }
.imat-split { display: flex; height: 30px; border-radius: 10px; overflow: hidden; gap: 2px; }
.imat-split span { display: flex; align-items: center; justify-content: center; color: #FFFFFF; font-size: 13px; font-weight: 800; min-width: 0; }
.imat-legend { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-2); }
.imat-legend > span { display: flex; align-items: center; gap: 8px; }
.imat-topic { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.imat-topic .info { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1 1 240px; }
.imat-topic .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.imat-topic .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.imat-formulas { display: flex; flex-direction: column; gap: 10px; }
.imat-formulas > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.imat-formulas > div:last-child { border-bottom: 0; }
.imat-formulas code { font-size: 15px; color: var(--ink); }
.exam-bar { position: sticky; top: 72px; z-index: 29; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; background: var(--surface); border-radius: 0 0 var(--radius-lg) var(--radius-lg); box-shadow: var(--shadow); padding: 12px 16px; }
.exam-count { font-weight: 800; flex: 1 1 auto; }
.exam-timer { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums; color: var(--ink); background: var(--primary-tint); border-radius: 12px; padding: 6px 12px; }
.exam-timer svg { width: 20px; height: 20px; }
.exam-timer.warn { background: var(--accent-soft); color: var(--accent-ink); }
.exam-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.option.selected { border-color: var(--primary); background: var(--primary-tint); }
.option.selected .l { background: var(--primary); color: #FFFFFF; }
.exam-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.exam-actions .btn-primary { margin-inline-start: auto; }
.exam-actions svg { width: 16px; height: 16px; }
.exam-actions .is-flagged { border-color: var(--amber); background: var(--amber-soft); color: var(--amber-ink); }
.exam-side { gap: 14px; position: sticky; top: 160px; }
.qnav-sec { display: flex; flex-direction: column; gap: 8px; }
.qnav-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: var(--ink-2); }
.qnav { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 6px; }
.qnav button { height: 34px; border-radius: 9px; border: 1px solid var(--line-2); background: #FFFFFF; font-size: 13px; font-weight: 700; color: var(--ink-2); position: relative; }
.qnav button.answered { background: var(--primary-soft); border-color: var(--primary-line); color: var(--primary-dark); }
.qnav button.flagged { box-shadow: inset 0 0 0 2px var(--amber); }
.qnav button.current { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.qnav-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted); }
.qnav-legend span { display: inline-flex; align-items: center; gap: 6px; }
.qnav-legend i { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line-2); display: inline-block; }
.qnav-legend i.answered { background: var(--primary-soft); border-color: var(--primary-line); }
.qnav-legend i.flagged { box-shadow: inset 0 0 0 2px var(--amber); }
.qnav-legend i.current { background: var(--ink); border-color: var(--ink); }
.imat-review { background: var(--surface); border-radius: var(--radius-lg); border-inline-start: 5px solid var(--line-2); box-shadow: var(--shadow); padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.imat-review.correct { border-inline-start-color: var(--green); }
.imat-review.wrong { border-inline-start-color: var(--accent); }
.imat-review .top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.imat-review .num { font-weight: 800; color: var(--ink); min-width: 28px; }
.imat-review .pts { margin-inline-start: auto; font-weight: 800; color: var(--muted); }
.imat-review.correct .pts { color: var(--green-ink); } .imat-review.wrong .pts { color: var(--accent-ink); }
.imat-review .stem { margin: 0; font-weight: 700; color: var(--ink); line-height: 1.5; }
.imat-review .ropts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.imat-review .ropts li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 10px; border-radius: 10px; }
.imat-review .ropts .l { font-weight: 800; color: var(--muted); }
.imat-review .ropts li.right { background: var(--green-soft); color: var(--green-ink); font-weight: 700; }
.imat-review .ropts li.wrong { background: var(--accent-soft); color: var(--accent-ink); text-decoration: line-through; }
.imat-review .expl p, .feedback .imat-en p { margin: 0 0 8px; }
.imat-review .expl > :last-child, .feedback .imat-en > :last-child { margin-bottom: 0; }
.imat-review .expl ul, .feedback .imat-en ul { margin: 0 0 8px; padding-inline-start: 20px; font-size: 14.5px; line-height: 1.55; }
.feedback .imat-en { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.imat-lesson-link { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.imat-lesson-link:hover { color: var(--primary-dark); }
.imat-lesson-link .num { flex: none; min-width: 44px; height: 36px; border-radius: 10px; background: var(--violet-soft); color: var(--violet-ink); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.imat-lesson-link .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.imat-lesson-link .meta { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.imat-lesson-link .go { font-size: 22px; color: var(--muted); }
.imat-lesson h3 { font-size: 22px; padding-top: 10px; border-top: 1px solid var(--line); }
.imat-lesson h3:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.imat-review .expl { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); background: var(--bg); border-radius: 12px; padding: 12px 14px; }
@media (max-width: 960px) {
  .exam-layout { grid-template-columns: 1fr; }
  .exam-side { position: static; }
}
@media (max-width: 480px) {
  .exam-timer { font-size: 17px; }
  .exam-count { flex-basis: 100%; order: -1; font-size: 14px; }
  .imat-kpis .v { font-size: 24px; }
}

/* 15. Phone ----------------------------------------------------------------- */
@media (max-width: 860px) {
  .tutor-fab { bottom: calc(92px + env(safe-area-inset-bottom)); inset-inline-end: 16px; width: 56px; padding: 0; justify-content: center; }
  .tutor-fab span { display: none; }
  .chat-input { bottom: calc(92px + env(safe-area-inset-bottom)); }
  .week-plan { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .case-hero .t { font-size: 21px; max-width: 100%; }
  .page { padding-bottom: 120px; }
  .bottom-nav {
    display: flex; position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    height: 68px; border-radius: 22px; background: var(--ink); align-items: center; justify-content: space-around; box-shadow: var(--shadow-lg);
  }
  .bottom-nav { padding: 0 6px; gap: 2px; }
  .bottom-nav a { flex: 1 1 0; min-width: 0; padding: 0 2px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 54px; border-radius: 14px; color: #B9C8D8; text-decoration: none; font-size: 11px; font-weight: 700; }
  .bottom-nav a svg { width: 22px; height: 22px; flex: none; }
  .bottom-nav a span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 10.5px; }
  .bottom-nav a.active { background: var(--primary); color: #FFFFFF; }
  .l-nav { display: none; }
  .hero .wrap { padding-top: 40px; padding-bottom: 56px; }
  .section { padding: 64px 0; }
  .story, .cta-band { padding: 32px 24px; }
  .prose, .card, .check, .lesson-top { padding: 20px; }
  .counter .v { font-size: 32px; }
  .lesson-side { order: 2; }
  .page { padding-top: 20px; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .rating button { min-height: 58px; font-size: 13px; }
  .terms-list .term { grid-template-columns: 1fr; gap: 2px; }
  .week-plan { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .msg.me { max-width: 90%; }
  .msg.bot { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* 18. Medical lessons in English with Arabic help (data/medicine/) ---------- */
.ar-title, .ar-sub, .ar-help, .terms-list .ar, .term-pair [lang="ar"] { font-family: var(--font-ar); }
.lesson-top .ar-title { margin: 6px 0 0; font-size: 19px; font-weight: 700; color: var(--violet-ink); line-height: 1.6; text-align: start; }
.prose .ar-sub { margin: -10px 0 18px; font-size: 17px; font-weight: 600; color: var(--violet-ink); text-align: start; }
.ar-help { margin: 22px 0 4px; border: 1.5px solid #DCD5FA; background: var(--violet-soft); border-radius: var(--radius-lg); text-align: start; }
.ar-help summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 18px; font-size: 17px; font-weight: 700; color: var(--violet-ink); }
.ar-help summary::-webkit-details-marker { display: none; }
.ar-help summary::before { content: '+'; width: 28px; height: 28px; flex: none; border-radius: 50%; background: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.ar-help[open] summary::before { content: '−'; background: var(--violet); color: #FFFFFF; }
.ar-help .ar-body { padding: 0 20px 16px; font-size: 17px; line-height: 1.9; }
.ar-help .ar-body p:last-child, .ar-help .ar-body ul:last-child { margin-bottom: 0; }
.callout { margin: 0 0 18px; padding: 14px 18px; border-radius: var(--radius); border-inline-start: 5px solid var(--primary); background: var(--primary-tint); font-size: 16px; line-height: 1.65; }
.callout .callout-k { display: block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--primary-dark); }
.callout .callout-t { display: block; margin: 2px 0 6px; color: var(--ink); }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout-mnemonic { border-color: var(--amber); background: var(--amber-soft); }
.callout-mnemonic .callout-k { color: var(--amber-ink); }
.callout-clinical { border-color: var(--rose); background: var(--rose-soft); }
.callout-clinical .callout-k { color: var(--rose-ink); }
.callout-exam { border-color: var(--blue); background: var(--blue-soft); }
.callout-exam .callout-k { color: var(--blue-ink); }
.why-list { background: rgba(255, 255, 255, .7); border-radius: var(--radius); padding: 10px 14px; text-align: left; }
.why-list summary { cursor: pointer; font-weight: 800; color: var(--ink); font-size: 15px; }
.why-list ul { margin: 10px 0 0; padding-inline-start: 20px; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.why-list li { margin: 6px 0; }
.why-list li.ok strong { color: var(--green-ink); }
.why-list li.ok::marker { content: '✓  '; color: var(--green); }
@media (max-width: 640px) { .ar-help .ar-body, .ar-help summary { font-size: 16px; } .callout { padding: 12px 14px; } }

/* 19. Medical lessons, model v2 (English + French): path, in short, video, practice, sources --- */
.path-card { background: var(--primary-tint); border: 1.5px solid var(--primary-line); border-radius: var(--radius-lg); padding: 16px 18px; margin: 0 0 22px; }
.prose .path-card h3 { margin: 0 0 10px; font-size: 18px; color: var(--primary-dark); }
.path-row { display: grid; grid-template-columns: 74px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--primary-line); font-size: 15px; line-height: 1.55; }
.path-row:first-of-type { border-top: 0; }
.path-row p { margin: 0; }
.path-t { font-weight: 800; color: var(--primary-dark); font-size: 14px; }
.path-time { margin: 8px 0 0 !important; font-size: 13px; color: var(--muted); font-weight: 700; }
.path-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.further { margin: 18px 0; border: 1.5px dashed var(--line-2); border-radius: var(--radius); background: #FBFCFD; }
.further summary { cursor: pointer; padding: 12px 16px; font-weight: 800; color: var(--ink); font-size: 16px; }
.further > div { padding: 0 16px 6px; font-size: 16px; }
.in-short { margin: 20px 0; padding: 14px 18px; border-radius: var(--radius); background: var(--green-soft); }
.prose .in-short h3 { margin: 0 0 6px; font-size: 16px; color: var(--green-ink); text-transform: uppercase; letter-spacing: .06em; }
.in-short ul { margin: 0; font-size: 15.5px; }
.video-card { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 20px 0 0; padding: 14px 16px; border-radius: var(--radius); background: var(--ink); color: #FFFFFF; }
.video-card .video-info { flex: 1 1 220px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.video-card strong { color: #FFFFFF; font-size: 16px; line-height: 1.35; }
.video-k { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #8FD6DB; }
.video-meta { font-size: 13.5px; color: #C7D2DE; }
.video-net { align-self: flex-start; margin-top: 4px; }
.video-seg { font-size: 13.5px; font-weight: 700; color: #FFFFFF; }
.video-data { font-size: 12.5px; color: #C7D2DE; }
.video-msg { flex-basis: 100%; margin: 0 !important; font-size: 14px; color: #FFD9CF; }
.video-card.pending { background: #EEF2F6; color: var(--muted); flex-direction: column; align-items: flex-start; gap: 4px; font-size: 15px; }
.video-card.pending .video-k { color: var(--muted); }
.video-card.playing { display: block; padding: 0; background: #000000; overflow: hidden; }
.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-link { display: block; padding: 10px 16px; color: #8FD6DB !important; font-size: 14px; font-weight: 700; }
.practice-item { margin: 0 0 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.practice-item .pk { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.prose .practice-item .pq { margin: 4px 0 8px; font-weight: 700; color: var(--ink); }
.reveal-box summary { cursor: pointer; font-weight: 800; color: var(--primary-dark); font-size: 15px; }
.reveal-box > div { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: var(--bg); font-size: 15.5px; }
.prose .reveal-box h4 { margin: 10px 0 4px; }
.prose ul.related a { font-weight: 700; }
.transparency { margin-top: 18px !important; padding: 12px 14px; border-radius: 12px; background: var(--amber-soft); color: var(--amber-ink); font-size: 14.5px; font-weight: 600; }
.v2 h3 { font-size: 19px; }
.dg-blue { fill: #DCE8FB; stroke: #3557E6; stroke-width: 1.5; }
.dg-red { fill: #FBE1DD; stroke: #C8412F; stroke-width: 1.5; }
.dg-red.thick { stroke-width: 4; }
.dg-redline { stroke: #C8412F; stroke-width: 6; stroke-linecap: round; }
.dg-muscle { fill: #E9B9AF; stroke: #B5574A; stroke-width: 1; }
.dg-valve { fill: #FFFFFF; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.dg-num circle { fill: var(--ink); }
.dg-num text { fill: #FFFFFF; font-size: 11px; font-weight: 800; }
.dg-num.mark circle { fill: var(--accent); }
.dg-leg { font-size: 12px; fill: var(--ink); }
.dg-cart { stroke: #D9DEE6; stroke-width: 7; stroke-linecap: round; }
.dg-bone { fill: #F1EEE6; stroke: #B9AE95; stroke-width: 1.25; }
.dg-mcl { stroke: var(--muted); stroke-width: 1.25; stroke-dasharray: 5 4; }
.dg-outline { fill: rgba(214, 58, 111, .12); stroke: var(--rose); stroke-width: 2.5; }
.dg-vpos circle { fill: #FFFFFF; stroke: var(--violet); stroke-width: 1.5; }
.dg-vpos text { fill: var(--violet-ink); font-size: 9px; font-weight: 800; }
.diagram text.dg-head { font-size: 11.5px; fill: var(--muted); }
.diagram.fit svg { min-width: 0; max-width: 520px; margin: 0 auto; }
/* general anatomy diagrams */
.dg-body { fill: #F4E3D7; stroke: #B98E74; stroke-width: 1.25; }
.dg-nose { fill: none; stroke: #B98E74; stroke-width: 1.25; }
.dg-plane { stroke: var(--primary); stroke-width: 2; stroke-dasharray: 6 4; fill: none; }
.dg-plane.alt { stroke: var(--violet); }
.dg-arrow { stroke: var(--ink); stroke-width: 1.75; fill: none; }
.dg-arrowhead { fill: var(--ink); }
.dg-spongy { fill: #F1EEE6; stroke: #B9AE95; stroke-width: 1.25; }
.dg-trab { fill: #D8CDB4; }
.dg-cortex { fill: #E3D6B8; stroke: #B9AE95; stroke-width: 1.25; }
.dg-marrow { fill: #F6E7A8; stroke: #D9C26A; stroke-width: 1; }
.dg-cartilage { fill: none; stroke: #6C9BC0; stroke-width: 7; stroke-linecap: round; }
.dg-plate { fill: #CFE3F2; stroke: #6C9BC0; stroke-width: 1; }
.dg-periost { stroke: var(--violet); stroke-width: 2.5; fill: none; }
.dg-art { stroke: #C8412F; stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.dg-capsule { stroke: #8B6F47; stroke-width: 5; fill: none; }
.dg-synov { stroke: #D6A02B; stroke-width: 2.5; fill: none; }
.dg-fluid { fill: #E6F3FB; stroke: #9EC7E0; stroke-width: 1; }
.dg-disc { fill: #D7E6C8; stroke: #7C9A5E; stroke-width: 1.25; }
.dg-lig { fill: #E9DCC4; stroke: #8B6F47; stroke-width: 1.25; }
.dg-bursa { fill: #FFF3D1; stroke: #D6A02B; stroke-width: 1.5; }
.dg-nerve { stroke: #D6A02B; stroke-width: 3; fill: none; stroke-dasharray: 2 0; stroke-linecap: round; }
.dg-musc { fill: #F2C4BA; stroke: #B5574A; stroke-width: 1.25; }
.dg-fibre { stroke: #B5574A; stroke-width: 1.5; fill: none; }
.dg-tendon { stroke: #E8E2D3; stroke-width: 6; stroke-linecap: round; }
.dg-hole { fill: var(--bg); stroke: #B5574A; stroke-width: 1.25; }
.dg-cord { fill: #FFFFFF; stroke: #8A97A8; stroke-width: 1.5; }
.dg-grey { fill: #C9CED8; stroke: #8A97A8; stroke-width: 1; }
.dg-gang { fill: #FFF3D1; stroke: #D6A02B; stroke-width: 1.5; }
.dg-nervel { stroke: #D6A02B; stroke-width: 4; fill: none; stroke-linecap: round; }
.dg-nervel.motor { stroke: #B5574A; }
.dg-nerve-trunk { stroke: #8B6F47; stroke-width: 7; stroke-linecap: round; }
.dg-ramus { stroke: #7C9A5E; stroke-width: 2.5; fill: none; }
.dg-viscera { fill: #FBEFE6; stroke: #C99A7B; stroke-width: 1.25; }
.dg-cordv { fill: #FFFFFF; stroke: #8A97A8; stroke-width: 1.5; }
.dg-para { fill: #CDE8C9; stroke: #3E8E4A; stroke-width: 1.5; }
.dg-symp { fill: #F6CFC9; stroke: #C8412F; stroke-width: 1.5; }
.dg-trunk { stroke: #C8412F; stroke-width: 2; fill: none; }
.dg-sympl { stroke: #C8412F; stroke-width: 2.5; fill: none; }
.dg-paral { stroke: #3E8E4A; stroke-width: 3; fill: none; }
.dg-advent { fill: #F3E7D3; stroke: #B9AE95; stroke-width: 1.25; }
.dg-media { fill: #E9A99C; stroke: #B5574A; stroke-width: 1; }
.dg-intima { fill: #FFFFFF; stroke: #B5574A; stroke-width: 1; }
.dg-lumen { fill: #F8D9D4; stroke: none; }
.dg-lumen.v { fill: #D9E3F7; }
.dg-veinlong { stroke: #3557E6; stroke-width: 2.5; fill: none; }
.dg-lymph { stroke: #3E8E4A; stroke-width: 4; fill: none; stroke-linecap: round; }
.dg-node { fill: #CDE8C9; stroke: #3E8E4A; stroke-width: 1.5; }
.dg-skin { fill: #E8C3A8; stroke: #A8775A; stroke-width: 1.5; }
.dg-fat { fill: #FFF1C9; stroke: #E3C46F; stroke-width: 1; }
.dg-deepf { fill: none; stroke: #6B5B45; stroke-width: 3; }
.dg-septum { stroke: #6B5B45; stroke-width: 2.25; fill: none; }
.dg-bonex { fill: #F1EEE6; stroke: #8E8163; stroke-width: 2; }
.dg-veinx { fill: #9DB2F2; stroke: #3557E6; stroke-width: 1.5; }
.dg-artx { fill: #E8705F; stroke: #C8412F; stroke-width: 1.5; }
.dg-nervex { fill: #F6D77A; stroke: #B8861B; stroke-width: 1.5; }
.dg-facet { fill: #CFE3F2; stroke: #6C9BC0; stroke-width: 1.25; }
.dg-annulus { fill: #E7F0DC; stroke: #7C9A5E; stroke-width: 1.25; }
.dg-nucleus { fill: #FFF3D1; stroke: #D6A02B; stroke-width: 1.5; }
.dg-rib { stroke: #7C7C82; stroke-width: 2.5; fill: none; }
.dg-clav { stroke: #E6E6E9; stroke-width: 5; fill: none; stroke-linecap: round; }
.next-lesson { display: flex; flex-direction: column; gap: 6px; margin: 0 0 20px; padding: 14px 16px; border-radius: var(--radius); background: var(--primary-tint); border: 1.5px solid var(--primary-line); }
.next-lesson .video-k { color: var(--primary); }
.next-lesson a { color: var(--ink); text-decoration: none; font-size: 17px; }
.next-lesson a::after { content: " →"; color: var(--primary); }
.dg-groove { stroke: #8E8163; stroke-width: 2; fill: none; }
.dg-groove.dash { stroke-dasharray: 5 4; }
.dg-cartilage-fill { fill: #CFE3F2; stroke: #6C9BC0; stroke-width: 1.25; }


/* 19. App shell, dashboard and saved items (redesign, Nov 2026) -------------
   Dark green narrow side bar (icons + tooltips) on computers, 5-button bar at the bottom on phones,
   soft mint background, white rounded cards, big numbers, small coloured bars. No blur, short animations. */
:root {
  /* names kept from the green theme; colours = navy and medical blue (proposition D "Clinique", 15 Nov 2026) */
  --forest: #0B2545; --forest-2: #1A5BC8; --forest-ink: #081C36;
  --mint-1: #E3EEFF; --mint-2: #F4F7FB; --mint-line: #E4E8EF;
  --c-green: #16A34A; --c-mint: #1A66E0; --c-orange: #E8A317; --orange-btn: #1A66E0;
  --soft-text: #5F6E86;
}
.shell { min-height: 100vh; background: #F4F6F9; }
.shell-main { padding-inline-start: 84px; min-width: 0; }

/* side bar (computers) */
.side-nav {
  position: fixed; z-index: 40; top: 0; bottom: 0; inset-inline-start: 0; width: 84px;
  background: var(--forest); display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 0;
}
.side-logo { display: flex; width: 48px; height: 48px; margin-bottom: 14px; border-radius: 14px; }
.side-logo svg { width: 48px; height: 48px; }
.side-items { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; }
.side-nav .side-items a, .side-me {
  position: relative; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #9FB3D1; text-decoration: none; transition: background-color .15s ease, color .15s ease;
}
.side-nav .side-items a svg { width: 23px; height: 23px; flex: none; }
.side-nav .side-items a:hover { background: rgba(255, 255, 255, .09); color: #FFFFFF; }
.side-nav .side-items a.active { background: #173A66; color: #FFFFFF; }
.side-avatar { width: 50px; height: 50px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #2E5C94; color: #FFFFFF; font-weight: 800; }
.side-me.active .side-avatar { background: #FFFFFF; color: var(--forest); }
.side-label, .side-word, .side-sec, .side-off-t { display: none; }
/* badge on "Review": number of cards due (a small dot on the narrow bar) */
.side-badge { position: absolute; top: 6px; inset-inline-end: 6px; min-width: 10px; height: 10px; border-radius: 99px; background: #1A66E0; box-shadow: 0 0 0 2px var(--forest); font-size: 0; }
/* "Offline use" link */
.side-off { position: relative; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #5EE0B5; text-decoration: none; margin-bottom: 6px; }
.side-off svg { width: 22px; height: 22px; flex: none; }
.side-off:hover { background: rgba(255, 255, 255, .09); }
.side-nav :focus-visible { outline: 3px solid #F6C27A; outline-offset: 3px; }
.side-nav [data-tip]::after {
  content: attr(data-tip); position: absolute; top: 50%; inset-inline-start: calc(100% + 12px); transform: translateY(-50%);
  background: var(--forest-ink); color: #FFFFFF; padding: 7px 12px; border-radius: 10px; font-size: 13px; font-weight: 700; white-space: nowrap;
  pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .12s ease; box-shadow: 0 6px 18px rgba(10, 46, 39, .2);
}
.side-nav [data-tip]:hover::after, .side-nav [data-tip]:focus-visible::after { opacity: 1; visibility: visible; }

/* top bar: language and avatar (computers); brand on phones */
.app-top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.app-top-brand { visibility: hidden; }
.app-top .avatar { display: none; }
.app-top .lang-switch { background: #FFFFFF; border: 1px solid var(--mint-line); }
.app-top .lang-switch button { min-height: 44px; min-width: 44px; }
.app-top .lang-switch button[aria-pressed="true"] { background: var(--forest); color: #FFFFFF; }
.shell .page { padding-top: 6px; }

/* phone bar and "More" sheet */
.more-btn { display: none; }
.more-sheet[hidden] { display: none; }

/* shared pieces */
.btn-orange {
  min-height: 48px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--orange-btn); color: #FFFFFF;
  font-weight: 800; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
  box-shadow: 0 8px 18px rgba(242, 154, 58, .28); transition: background-color .15s ease;
}
.btn-orange:hover { background: #1452B8; color: #FFFFFF; }
.btn-orange svg { width: 18px; height: 18px; }
.fill-c-green { background: var(--c-green); } .fill-c-mint { background: var(--c-mint); } .fill-c-orange { background: var(--c-orange); }
.tone-grey { background: #EDF1F5; color: var(--muted); }

.fav-btn {
  min-width: 44px; min-height: 44px; border-radius: 999px; border: 1px solid var(--mint-line); background: #FFFFFF; color: var(--soft-text);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 10px; font-weight: 700; font-size: 14px; flex: none;
}
.fav-btn svg { width: 20px; height: 20px; }
.fav-btn.with-label { padding: 0 16px 0 12px; }
.fav-btn:hover { border-color: var(--c-orange); color: var(--forest); }
.fav-btn.on { color: #B45F06; border-color: #F6C88F; background: #FFF6EB; }
.lesson-top-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.part-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.part-head .fav-btn { min-width: 40px; min-height: 40px; }

/* phones and small tablets: bottom bar with 5 buttons */
@media (max-width: 860px) {
  .side-nav { display: none; }
  .shell-main { padding-inline-start: 0; }
  .app-top-brand { visibility: visible; }
  .app-top .brand svg { width: 34px; height: 34px; }
  .app-top .brand .word { font-size: 20px; }
  .app-top .lang-switch { display: none; }
  .app-top .avatar { display: inline-flex; background: var(--forest); color: #FFFFFF; width: 44px; height: 44px; }
  .header-right { gap: 8px; }
  .bottom-nav { background: var(--forest); }
  .bottom-nav a, .bottom-nav .more-btn { color: #B4D3CA; position: relative; z-index: 1; }
  .bottom-nav a.active, .bottom-nav .more-btn.active { background: transparent; color: var(--forest); }
  .more-btn {
    display: flex; flex: 1 1 0; min-width: 0; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 54px;
    border: 0; background: transparent; border-radius: 14px; font-size: 10.5px; font-weight: 700; padding: 0 2px;
  }
  .more-btn svg { width: 22px; height: 22px; }
  .more-sheet {
    position: fixed; z-index: 45; left: 12px; right: 12px; bottom: calc(90px + env(safe-area-inset-bottom));
    background: #FFFFFF; border-radius: 24px; box-shadow: 0 18px 44px rgba(13, 59, 50, .22); padding: 16px; display: flex; flex-direction: column; gap: 8px;
  }
  .more-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-inline-start: 8px; }
  .more-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .more-links a { min-height: 52px; display: flex; align-items: center; gap: 12px; padding: 0 16px; border-radius: 16px; background: var(--mint-2); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; }
  .more-links a svg { width: 22px; height: 22px; color: var(--c-green); flex: none; }
  .more-links a.active { background: var(--forest); color: #FFFFFF; }
  .more-links a.active svg { color: #FFFFFF; }
  .more-lang { display: flex; justify-content: center; }
  .more-lang .lang-switch button { min-height: 44px; min-width: 52px; }
}

/* Dr Fasher: round icon in the top bar; floating round button only on very wide screens, in the empty margin,
   where it cannot cover a card (content ends at most 1448 px from the left edge of a 1600 px screen) */
.top-tutor {
  width: 44px; height: 44px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center;
  background: var(--forest); color: #FFFFFF; text-decoration: none;
}
.top-tutor:hover { background: var(--forest-2); color: #FFFFFF; }
.top-tutor svg { width: 22px; height: 22px; }
.shell ~ .tutor-fab, .shell .tutor-fab { display: none; }
@media (min-width: 1600px) {
  .shell .tutor-fab { display: inline-flex; width: 56px; padding: 0; justify-content: center; inset-inline-end: 20px; background: var(--forest); box-shadow: 0 12px 28px rgba(13, 59, 50, .3); }
  .shell .tutor-fab:hover { background: var(--forest-2); }
  .shell .tutor-fab span { display: none; }
  .top-tutor { display: none; }
}


/* 20. Dashboard, saved items and profile, quality pass (Nov 2026) ------------------------------------------
   Grid of 8 px. Radii by level: banner 28, cards 24, inner tiles and thumbnails 16–18, buttons and chips round.
   One shadow for cards at rest, one larger and softer when lifted. Numbers use tabular figures.
   Motion rules: only transform and opacity are animated; durations 150–300 ms (numbers count up in ≤ 600 ms);
   one easing curve (--ease) for everything; everything off with prefers-reduced-motion or html.no-motion
   (Profile › Preferences › Animations). Entrance effects only on the first display of a page (script.js render). */
:root {
  --ease: cubic-bezier(.22, .8, .24, 1);
  --t1: 150ms; --t2: 220ms; --t3: 300ms;
  --card-shadow: 0 1px 2px rgba(11, 27, 51, .04), 0 8px 28px rgba(11, 27, 51, .06);
  --card-shadow-hi: 0 2px 6px rgba(11, 27, 51, .05), 0 22px 44px rgba(11, 27, 51, .13);
  --line-soft: #E4E8EF;
  --danger: #B42318; --danger-line: #F1C2BC; --danger-bg: #FFF7F6;
}
.shell { background: #F4F6F9; }
.shell .page { gap: 24px; }
.num { font-variant-numeric: tabular-nums; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }

/* focus: always visible, dark ring on light backgrounds, warm ring on the dark green ones */
.shell :focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; }
.side-nav :focus-visible, .bottom-nav :focus-visible, .d-hero :focus-visible { outline-color: #F6C27A; }

/* buttons */
.btn-dark, .btn-soft, .btn-danger, .btn-danger-line {
  min-height: 44px; padding: 0 20px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 14px; text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
}
.btn-dark { background: var(--forest); color: #FFFFFF; }
.btn-dark:hover { background: var(--forest-2); color: #FFFFFF; }
.btn-soft { background: #FFFFFF; color: var(--forest); border-color: var(--mint-line); }
.btn-soft:hover { background: var(--mint-2); color: var(--forest); }
.btn-danger { background: var(--danger); color: #FFFFFF; }
.btn-danger:hover { background: #912018; color: #FFFFFF; }
.btn-danger-line { background: #FFFFFF; color: var(--danger); border-color: var(--danger-line); }
.btn-danger-line:hover { background: var(--danger-bg); color: #912018; }
.btn-dark svg, .btn-soft svg, .btn-danger svg, .btn-danger-line svg { width: 18px; height: 18px; flex: none; }
.btn-xs { padding: 0 16px; }
.btn-orange { font-weight: 700; }
.exam-chip {
  min-height: 44px; padding: 0 16px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px;
  background: #FFF1DE; color: #774600; font-weight: 700; font-size: 14px; text-decoration: none;
}
.exam-chip svg { width: 16px; height: 16px; }
.exam-chip:hover { color: #5C3600; background: #FFE7C7; }
.icon-btn { border-radius: 999px; }

/* cards */
.d-card { background: #FFFFFF; border-radius: 24px; box-shadow: var(--card-shadow); padding: 24px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.d-title { margin: 0; font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; color: var(--ink); letter-spacing: -.01em; }
.d-title svg { width: 20px; height: 20px; color: var(--c-green); flex: none; }
.d-title-row { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.d-big { margin: 0; font-size: 40px; font-weight: 700; line-height: 1.05; letter-spacing: -.035em; color: var(--ink); font-variant-numeric: tabular-nums; }
.d-big small { font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--soft-text); }
.d-lab { font-size: 13px; color: var(--soft-text); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.d-note { margin: 0; font-size: 13px; color: var(--soft-text); line-height: 1.5; }
.d-empty { margin: 0; font-size: 14px; color: var(--soft-text); line-height: 1.55; background: var(--mint-2); border-radius: 16px; padding: 16px; }
.d-tag { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--green-ink); background: var(--mint-1); border-radius: 999px; padding: 2px 8px; line-height: 1.5; }
.d-link {
  align-self: flex-start; margin-top: auto; min-height: 44px; display: inline-flex; align-items: center; gap: 4px; padding: 0;
  font-weight: 700; font-size: 14px; color: var(--forest-2); text-decoration: none; background: none; border: 0;
}
.d-link:hover { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
.d-link-top { margin-top: 0; }
.d-mini-bar { display: block; height: 6px; border-radius: 999px; background: #E6EFEC; overflow: hidden; }
.d-mini-bar > span { display: block; height: 100%; border-radius: 999px; }

/* thumbnails: image slot (subject colour + icon); a real free-licence picture (<img>) fills it later */
.thumb { position: relative; flex: none; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 18px; isolation: isolate; }
.thumb::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 20% 0%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 60%); }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb-icon { width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 255, 255, .8); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(13, 59, 50, .08); }
.thumb-icon svg { width: 24px; height: 24px; }
.thumb-tag { position: absolute; top: 8px; inset-inline-start: 8px; background: rgba(13, 59, 50, .9); color: #FFFFFF; font-size: 11px; font-weight: 700; line-height: 1.45; padding: 2px 8px; border-radius: 999px; }

/* dashboard (proposition D "Clinique", 15 Nov 2026) ---------------------------------------------------- */
.d-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.d-hello { margin: 0; font-size: clamp(24px, 2.4vw, 30px); font-weight: 700; letter-spacing: -.025em; line-height: 1.2; color: var(--ink); }
.d-date { margin: 6px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 14px; color: var(--soft-text); }
.d-streak { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--soft-text); }
.d-streak svg { width: 14px; height: 14px; color: #B7C2D3; }
.d-streak.on { color: #8A5A00; }
.d-streak.on svg { color: var(--c-orange); }
.d-head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.d-head-actions .btn-orange { min-height: 44px; border-radius: 12px; }

.d-card { background: #FFFFFF; border: 1px solid var(--mint-line); border-radius: 16px; box-shadow: 0 1px 2px rgba(11, 27, 51, .04), 0 8px 24px -6px rgba(11, 27, 51, .06); padding: 22px 24px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.d-card-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.d-title { margin: 0; font-size: 16px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.d-sub { margin: 2px 0 0; font-size: 13px; color: var(--soft-text); }
.d-chip { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: 6px; background: #EEF1F6; color: #3A4A63; font-size: 12px; font-weight: 600; white-space: nowrap; }
.d-chip.blue { background: var(--mint-1); color: #1450B8; }
.d-chip.st-done { background: #DCFCE7; color: #15803D; }
.d-chip.st-prog { background: var(--mint-1); color: #1450B8; }
.d-chip.st-not { background: #F1F3F7; color: var(--soft-text); }

/* four key figures */
.d-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.d-kpi { gap: 10px; padding: 18px 20px; text-decoration: none; color: var(--ink); }
.d-kpi-l { font-size: 13px; font-weight: 500; color: var(--soft-text); }
.d-kpi-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; min-height: 40px; }
.d-kpi-v { font-size: 28px; font-weight: 700; line-height: 1.1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.d-kpi-v small { font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--soft-text); }
.d-kpi-dash { color: #B7C2D3; }
.d-kpi .d-mini-bar { flex: 1 1 auto; max-width: 110px; margin-bottom: 8px; }
.d-kpi-n { font-size: 12px; font-weight: 500; color: var(--soft-text); line-height: 1.45; }
.d-kpi-n .up { color: #15803D; font-weight: 700; }
.d-kpi-n .down { color: #B45309; font-weight: 700; }
.d-spark { flex: none; color: #1A66E0; }
.k-due .d-kpi-v { color: #8A5A00; }

/* continue learning + overall progress */
.d-row2 { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; align-items: stretch; }
.d-cur { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 12px; background: #F5F9FF; border: 1px solid #D6E6FF; }
.d-cur .thumb { width: 64px; height: 64px; border-radius: 12px; }
.d-cur .thumb-icon { width: 36px; height: 36px; border-radius: 10px; }
.d-cur .thumb-icon svg { width: 20px; height: 20px; }
.d-cur-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.d-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.d-cur-body strong { font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.d-cur-prog { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 500; color: var(--soft-text); }
.d-cur-prog .d-mini-bar { flex: 1 1 auto; max-width: 260px; }
.d-cur .btn-orange { min-height: 44px; border-radius: 10px; padding: 0 18px; flex: none; }
.d-steps { list-style: none; margin: 0; padding: 0; }
.d-step + .d-step { border-top: 1px solid var(--mint-line); }
.d-step a { display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 6px 4px; text-decoration: none; color: var(--ink); border-radius: 8px; }
.d-step a:hover { background: var(--mint-2); }
.d-step-ic { flex: none; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #F1F3F7; box-shadow: inset 0 0 0 2px #DCE3EE; }
.d-step-ic svg { width: 13px; height: 13px; }
.d-step.s-done .d-step-ic { background: #DCFCE7; box-shadow: none; color: #16A34A; }
.d-step.s-now .d-step-ic { background: var(--mint-1); box-shadow: none; color: #1A66E0; }
.d-step-t { flex: 1; min-width: 0; font-size: 14px; font-weight: 500; line-height: 1.35; }
.d-step.s-now .d-step-t { font-weight: 700; }
.d-step.s-done .d-step-t { color: var(--soft-text); }
.d-btn-start { align-self: flex-start; }

.d-gauge { position: relative; width: 100%; max-width: 260px; align-self: center; }
.d-gauge svg { display: block; width: 100%; height: auto; }
.d-gauge-v { position: absolute; left: 0; right: 0; bottom: 4px; text-align: center; font-size: 38px; font-weight: 700; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.d-gauge-v small { font-size: 18px; color: var(--soft-text); }
.d-gauge-line { margin: -6px 0 0; text-align: center; font-size: 13px; color: var(--soft-text); }
.d-weak h3 { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--ink); }
.d-weak ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.d-weak a { display: flex; align-items: center; gap: 10px; min-height: 40px; text-decoration: none; color: #3A4A63; font-size: 13px; font-weight: 500; border-radius: 8px; }
.d-weak a:hover { background: var(--mint-2); }
.d-weak a .course { flex: 1; min-width: 0; }
.d-weak-ic { flex: none; width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: #FFFFFF; }
.d-weak-ic.red { background: #E5484D; } .d-weak-ic.amber { background: #D99A0B; }
.d-weak b.red { color: #C53030; } .d-weak b.amber { color: #8A5A00; }

/* progress by subject: a table on computers, a list on phones */
.d-table { display: flex; flex-direction: column; }
.d-thead, .d-trow a { display: grid; grid-template-columns: minmax(160px, 2.2fr) minmax(80px, 1fr) minmax(170px, 2.4fr) minmax(56px, .8fr) minmax(110px, 1.1fr); align-items: center; gap: 12px; padding: 0 12px; }
.d-thead { min-height: 38px; border-radius: 8px; background: #F8FAFC; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--soft-text); }
.d-tbody { list-style: none; margin: 0; padding: 0; }
.d-trow + .d-trow { border-top: 1px solid var(--mint-line); }
.d-trow a { min-height: 52px; text-decoration: none; color: #3A4A63; font-size: 14px; font-weight: 500; border-radius: 8px; }
.d-trow a:hover { background: var(--mint-2); }
.d-tc { display: flex; align-items: center; gap: 10px; min-width: 0; font-variant-numeric: tabular-nums; }
.d-tc-name { font-weight: 700; color: var(--ink); }
.d-sdot { flex: none; width: 10px; height: 10px; border-radius: 3px; }
.d-sdot[class] { background: currentColor; }
.d-tc-prog .d-mini-bar { flex: 1 1 auto; max-width: 180px; }
.d-tc-prog b { font-size: 13px; font-weight: 600; min-width: 36px; }
.d-tl { display: none; }

/* lessons list with thumbnails */
.d-lessons { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.d-lesson { display: flex; align-items: center; gap: 4px; border-radius: 18px; padding: 8px; background: #FFFFFF; border: 1px solid var(--line-soft); }
.d-lesson:hover { background: var(--mint-2); }
.d-lesson-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); border-radius: 12px; }
.d-lesson .thumb { width: 64px; height: 64px; border-radius: 16px; }
.d-lesson .thumb-icon { width: 36px; height: 36px; border-radius: 11px; }
.d-lesson .thumb-icon svg { width: 20px; height: 20px; }
.d-lesson-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.d-lesson-body strong { font-size: 14px; line-height: 1.3; font-weight: 700; }
.d-lesson-body .d-lab { font-size: 12px; }
.d-lesson .fav-btn { align-self: center; }
/* offline */
.d-off-body { display: flex; flex-direction: column; gap: 8px; }
.d-status { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--ink); }
.d-status .dot { background: #C9D6D2; }
.d-status.ok { color: var(--green-ink); }
.d-status.ok .dot { background: var(--c-green); box-shadow: 0 0 0 4px rgba(46, 158, 98, .15); }
.d-status.warn { color: #774600; }
.d-status.warn .dot { background: var(--c-orange); }
.d-c-offline .d-link { margin-top: 0; }

/* tablets and small computers */
@media (max-width: 1180px) {
  .d-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .d-row2 { grid-template-columns: minmax(0, 1fr); }
}
/* phones */
@media (max-width: 860px) {
  /* room for the bottom bar (an older ".wrap { padding: 0 16px }" rule used to cancel it on every page) */
  .shell .page { gap: 16px; padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
  .d-kpis { gap: 12px; }
  .d-card { padding: 18px 16px; }
  .d-kpi { padding: 16px; }
  .d-kpi-v { font-size: 24px; }
  .d-spark { width: 72px; height: 32px; }
  .d-cur { flex-wrap: wrap; }
  .d-cur .btn-orange { flex: 1 1 100%; }
  .d-thead { display: none; }
  .d-trow a { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name st" "prog prog" "les mcq"; gap: 8px 12px; padding: 12px 4px; }
  .d-tc-name { grid-area: name; } .d-tc-st { grid-area: st; } .d-tc-prog { grid-area: prog; } .d-tc-les { grid-area: les; } .d-tc-mcq { grid-area: mcq; justify-content: flex-end; }
  .d-tc-prog .d-mini-bar { max-width: none; }
  .d-tl { display: inline; font-size: 12px; color: var(--soft-text); }
}
@media (max-width: 400px) {
  .d-kpi-row { flex-wrap: wrap; min-height: 0; }
  .d-spark { display: none; }
}

/* dashboard "Mon année" (direction B + the day's tasks, chosen by the owner on 21 Nov 2026) ---------------- */
.h-head .d-date { gap: 6px 14px; }
.h-head .exam-chip { margin: 0; }
.h-grid { width: 100%; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
.h-main, .h-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.h-today-h { display: flex; align-items: center; gap: 16px; }
.h-ring { --p: 0; flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--c-green) calc(var(--p) * 1%), #E6EBF2 0); }
.h-ring b { width: 50px; height: 50px; border-radius: 50%; background: #FFFFFF; display: grid; place-items: center; font-size: 15px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.h-cur .d-cur-body strong { font-size: 16px; }
.h-next { font-size: 12px; color: var(--soft-text); font-weight: 500; }
.h-cur-empty { background: var(--mint-2); border-color: var(--mint-line); }
.h-tasks { list-style: none; margin: 0; padding: 0; }
.h-task + .h-task { border-top: 1px solid var(--mint-line); }
.h-task a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 4px; color: var(--ink); text-decoration: none; border-radius: 8px; }
.h-task a:hover { background: var(--mint-2); }
.h-check { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 2px #C9D3E0; color: #FFFFFF; }
.h-check svg { width: 13px; height: 13px; }
.h-task.done .h-check { background: var(--c-green); box-shadow: none; }
.h-task-t { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; line-height: 1.35; }
.h-task.done .h-task-t { color: var(--soft-text); text-decoration: line-through; font-weight: 500; }
.h-task-m { flex: none; font-size: 12px; font-weight: 700; color: var(--soft-text); font-variant-numeric: tabular-nums; }
.h-task-m.warn { color: #B42318; background: #FDECEC; border-radius: 6px; padding: 2px 8px; }

.h-space { border-inline-start: 4px solid var(--c-orange); }
.h-space .d-title svg { width: 18px; height: 18px; color: var(--forest-2); }
.h-btn { align-self: flex-start; min-height: 44px; border-radius: 10px; }
.h-sp-list { list-style: none; margin: 0; padding: 0; }
.h-sp-list li + li { border-top: 1px solid var(--mint-line); }
.h-sp-list a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 4px; color: var(--ink); text-decoration: none; border-radius: 8px; }
.h-sp-list a:hover { background: var(--mint-2); }
.h-sp-ic { flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--mint-1); color: var(--forest-2); }
.h-sp-ic.hw { background: #FFF4E0; color: #A15C00; }
.h-sp-ic svg { width: 16px; height: 16px; }
.h-sp-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.h-sp-t b { font-size: 14px; font-weight: 600; line-height: 1.3; }
.h-sp-t small { font-size: 12px; color: var(--soft-text); }
.d-chip.st-due { background: #FFF4E0; color: #8A5A00; }
.d-chip.st-late { background: #FDECEC; color: #B42318; }

.h-subjects { display: flex; flex-direction: column; gap: 12px; }
.h-subj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.h-subj { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: #FFFFFF; border: 1px solid var(--mint-line); color: var(--ink); text-decoration: none; min-width: 0; }
.h-subj .thumb { width: 48px; height: 48px; border-radius: 12px; }
.h-subj .thumb-icon { width: 30px; height: 30px; border-radius: 9px; }
.h-subj .thumb-icon svg { width: 17px; height: 17px; }
.h-subj-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.h-subj-b b { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h-subj-b small { font-size: 12px; color: var(--soft-text); }
.h-subj-p { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; color: var(--soft-text); font-variant-numeric: tabular-nums; }
.h-subj-p .d-mini-bar { flex: 1; }
.h-subj.empty { background: transparent; border-style: dashed; }
.h-subj.empty .thumb { opacity: .6; }

.h-figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.h-fig { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 14px; background: #FFFFFF; border: 1px solid var(--mint-line); color: var(--ink); text-decoration: none; }
.h-fig b { font-size: 22px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.h-fig b small { font-size: 13px; color: var(--soft-text); font-weight: 600; letter-spacing: 0; }
.h-fig > small { font-size: 12px; color: var(--soft-text); }

/* one column below 1180 px, in this order: today, university space, subjects, figures */
@media (max-width: 1180px) { .h-grid { display: flex; flex-direction: column; gap: 16px; } .h-main, .h-side { display: contents; } .h-today { order: 1; } .h-space { order: 2; } .h-subjects { order: 3; } .h-figs { order: 4; } .h-today, .h-space, .h-subjects, .h-figs { width: 100%; } .h-figs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .h-figs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .h-fig { padding: 10px 8px; text-align: center; }
  .h-fig b { font-size: 17px; }
  .h-fig > small { font-size: 11px; line-height: 1.3; }
  .h-subj-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .h-subj { padding: 10px 12px; }
  .h-subj .thumb { width: 40px; height: 40px; border-radius: 10px; }
  .h-cur .btn-orange { flex: 1 1 100%; }
}
@media (max-width: 360px) { .h-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* saved items ---------------------------------------------------------------------------------------- */
.s-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
.s-head h1 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; letter-spacing: -.035em; line-height: 1.1; }
.s-sub { margin: 8px 0 0; font-size: 15px; color: var(--soft-text); }
.s-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.s-filters { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .72); box-shadow: inset 0 0 0 1px var(--mint-line); }
.s-filters button {
  min-height: 44px; padding: 0 16px; border-radius: 999px; border: 0; background: transparent; color: var(--ink-2);
  font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 8px;
}
.s-filters button:hover { background: var(--mint-2); }
.s-filters button .n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--mint-1); color: var(--forest); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.s-filters button[aria-pressed="true"] { background: var(--forest); color: #FFFFFF; }
.s-filters button[aria-pressed="true"] .n { background: rgba(255, 255, 255, .2); color: #FFFFFF; }
.s-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.s-main { min-width: 0; }
.s-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.s-card { background: #FFFFFF; border-radius: 22px; box-shadow: var(--card-shadow); padding: 8px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.s-card-link { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--ink); border-radius: 16px; }
.s-card .thumb { width: 100%; height: 128px; border-radius: 16px; }
.s-card-body { display: flex; flex-direction: column; gap: 4px; padding: 0 8px; min-width: 0; }
.s-card-body strong { font-size: 15px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.s-card-body .d-lab { display: block; font-size: 12px; line-height: 1.45; }
.s-card-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 0 0 0 8px; }
.s-card-foot .d-mini-bar { flex: 1 1 auto; min-width: 24px; }
.s-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.s-icon, .s-actions .fav-btn { width: 44px; height: 44px; min-width: 44px; padding: 0; border-radius: 999px; }
.s-actions .icon-btn { border-color: var(--mint-line); color: var(--soft-text); }
.s-colpick { position: relative; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--mint-line); background: #FFFFFF; color: var(--soft-text); }
.s-colpick svg { width: 20px; height: 20px; }
.s-colpick select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border-radius: 999px; font-size: 16px; }
.s-colpick:hover { color: var(--forest); background: var(--mint-2); }
.s-colpick:focus-within { outline: 3px solid var(--forest); outline-offset: 3px; }
.s-empty { align-items: center; text-align: center; padding: 48px 24px; gap: 16px; }
.s-empty p { margin: 0; max-width: 44ch; color: var(--soft-text); line-height: 1.55; }
.s-empty-ico { width: 56px; height: 56px; border-radius: 50%; background: #FFF1DE; color: var(--c-orange); display: flex; align-items: center; justify-content: center; }
.s-empty-ico svg { width: 26px; height: 26px; }
/* collections */
.s-side { position: sticky; top: 16px; gap: 16px; }
.s-col-add { width: 44px; height: 44px; border-color: var(--mint-line); }
.s-cols { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.s-col { display: flex; align-items: center; gap: 4px; border-radius: 16px; }
.s-col-open { flex: 1; min-width: 0; min-height: 60px; display: flex; align-items: center; gap: 12px; text-align: start; border: 0; background: transparent; padding: 8px; border-radius: 16px; color: var(--ink); }
.s-col-open:hover { background: var(--mint-2); }
.s-col.active .s-col-open { background: var(--mint-1); }
.s-col-ico { width: 40px; height: 40px; border-radius: 12px; flex: none; display: flex; align-items: center; justify-content: center; }
.s-col-ico svg { width: 20px; height: 20px; }
.col-forest { background: var(--forest); color: #FFFFFF; } .col-green { background: var(--green-soft); color: var(--green-ink); }
.col-orange { background: #FFEBD6; color: #8A4500; } .col-mint { background: var(--mint-1); color: var(--forest); }
.s-col-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.s-col-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.s-col-name { font-weight: 700; font-size: 14px; overflow-wrap: anywhere; }
.s-col-n { font-size: 12px; font-weight: 600; color: var(--soft-text); white-space: nowrap; }
.s-col-del { width: 44px; height: 44px; border-color: transparent; background: transparent; color: var(--soft-text); }
.s-col-del:hover { color: var(--danger); background: var(--danger-bg); }
.s-col-form { display: flex; gap: 8px; }
.s-col-form input { flex: 1; min-width: 0; min-height: 44px; border-radius: 999px; border: 1px solid var(--mint-line); background: var(--mint-2); padding: 0 16px; font-size: 15px; }
.s-col-form input:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(13, 59, 50, .15); }
.s-total { margin: 0; display: flex; align-items: baseline; gap: 8px; border-top: 1px solid var(--line-soft); padding-top: 16px; font-size: 13px; color: var(--soft-text); font-weight: 600; }
.s-total .num { font-size: 28px; font-weight: 700; color: var(--ink); letter-spacing: -.03em; }
@media (max-width: 1100px) { .s-layout { grid-template-columns: minmax(0, 1fr); } .s-side { position: static; } }
@media (max-width: 860px) {
  .s-head { align-items: flex-start; }
  .s-tools, .s-filters { width: 100%; }
  .s-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 26px; }
  .s-filters button { justify-content: center; padding: 0 12px; }
  .s-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .s-card .thumb { height: 96px; }
  .s-card-foot { flex-wrap: wrap; }
  .s-card-foot .d-mini-bar { flex-basis: 100%; margin-inline-end: 8px; }
  .s-actions { margin-inline-start: auto; }
}
@media (max-width: 360px) { .s-grid { grid-template-columns: minmax(0, 1fr); } }

/* profile ---------------------------------------------------------------------------------------- */
.pf-head { padding: 0; gap: 0; overflow: hidden; }
.pf-band { height: 96px; background: linear-gradient(115deg, var(--forest) 0%, #12407A 60%, #1A66E0 100%); }
.pf-head-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 16px 24px 24px; }
.pf-avatar { width: 96px; height: 96px; border-radius: 50%; flex: none; background: var(--forest-2); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 700; letter-spacing: -.02em; box-shadow: 0 0 0 4px #FFFFFF, 0 8px 20px rgba(13, 59, 50, .18); margin-top: -64px; align-self: flex-start; }
.pf-id { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding-bottom: 4px; }
.pf-id h1 { font-size: 26px; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; }
.pf-id p { margin: 0; font-size: 15px; color: var(--soft-text); }
.pf-id .pf-place { font-size: 13px; }
.pf-head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pf-layout { display: grid; grid-template-columns: 256px minmax(0, 1fr); gap: 24px; align-items: start; }
.pf-nav { position: sticky; top: 16px; padding: 8px; }
.pf-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.pf-nav button { width: 100%; min-height: 48px; display: flex; align-items: center; gap: 12px; padding: 0 16px; border-radius: 16px; border: 0; background: transparent; color: var(--ink-2); font-size: 14px; font-weight: 700; text-align: start; }
.pf-nav button svg { width: 20px; height: 20px; color: var(--c-green); flex: none; }
.pf-nav button:hover { background: var(--mint-2); }
.pf-nav button[aria-current="true"] { background: var(--forest); color: #FFFFFF; }
.pf-nav button[aria-current="true"] svg { color: #A8E3D3; }
.pf-secs { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.pf-sec { display: none; gap: 16px; }
.pf-sec.is-shown { display: flex; }
.pf-sec-h { margin: 0; }
.pf-toggle { width: 100%; min-height: 44px; display: flex; align-items: center; gap: 12px; padding: 0; border: 0; background: transparent; text-align: start; color: var(--ink); font-size: 20px; font-weight: 700; letter-spacing: -.02em; pointer-events: none; }
.pf-toggle > svg { display: none; width: 20px; height: 20px; color: var(--soft-text); flex: none; transition: transform var(--t2) var(--ease); }
.pf-ico { width: 40px; height: 40px; border-radius: 12px; flex: none; background: var(--mint-1); color: var(--forest); display: flex; align-items: center; justify-content: center; }
.pf-ico svg { width: 20px; height: 20px; }
.pf-sec-name { flex: 1; min-width: 0; }
.pf-sec-b { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.pf-lead { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); max-width: 62ch; }
.pf-small { margin: 0; font-size: 13px; line-height: 1.5; color: var(--soft-text); }
.pf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pf-rows { margin: 0; display: flex; flex-direction: column; }
.pf-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.pf-row:first-child { border-top: 1px solid var(--line-soft); }
.pf-row dt { font-size: 14px; font-weight: 600; color: var(--soft-text); }
.pf-row dd { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.pf-unset { color: var(--soft-text); font-weight: 500; }
.pf-form { display: flex; flex-direction: column; gap: 16px; }
.pf-form .field input, .pf-form .field select { background: var(--mint-2); border-color: var(--mint-line); }
.pf-form .field input:focus, .pf-form .field select:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(13, 59, 50, .15); }
.pf-pref { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.pf-pref:first-child { padding-top: 0; }
.pf-pref:last-child { border-bottom: 0; padding-bottom: 0; }
.pf-pref-text { flex: 1 1 260px; display: flex; flex-direction: column; gap: 4px; }
.pf-pref-text strong { font-size: 15px; }
.pf-pref-text span { font-size: 13px; color: var(--soft-text); line-height: 1.5; }
.pf-sec .segmented { background: #EAF2EF; border-radius: 999px; }
.pf-sec .segmented button { min-height: 44px; border-radius: 999px; padding: 0 18px; color: var(--soft-text); }
.pf-sec .segmented button[aria-pressed="true"] { background: var(--forest); color: #FFFFFF; box-shadow: none; }
.switch { min-height: 44px; display: inline-flex; align-items: center; gap: 12px; padding: 0 4px; border: 0; background: transparent; font-weight: 700; font-size: 14px; color: var(--ink); border-radius: 999px; }
.switch-knob { position: relative; width: 48px; height: 28px; border-radius: 999px; background: #B9C9C4; flex: none; }
.switch-knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform var(--t2) var(--ease); }
.switch[aria-checked="true"] .switch-knob { background: var(--c-green); }
.switch[aria-checked="true"] .switch-knob::after { transform: translateX(20px); }
[dir="rtl"] .switch[aria-checked="true"] .switch-knob::after { transform: translateX(-20px); left: auto; right: 3px; }
.switch-text { min-width: 2.5em; text-align: start; }
.pf-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pf-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.pf-list svg { width: 18px; height: 18px; flex: none; color: var(--c-green); margin-top: 2px; }
.pf-danger { margin-top: 8px; border: 1px solid var(--danger-line); border-radius: 20px; background: var(--danger-bg); padding: 16px 20px; display: flex; flex-direction: column; gap: 16px; }
.pf-danger h3 { font-size: 15px; font-weight: 700; color: #912018; }
.pf-danger-row { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.pf-danger-row + .pf-danger-row { border-top: 1px solid var(--danger-line); padding-top: 16px; }
.pf-danger-row > p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.pf-danger .pf-form { width: 100%; max-width: 420px; }
.pf-danger .pf-form .field input { background: #FFFFFF; border-color: var(--danger-line); }
.pf-confirm { width: 100%; background: #FFFFFF; border: 1px solid var(--danger-line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.pf-confirm p { margin: 0; color: #912018; }
/* offline section from offline.js, inside the profile card */
.pf-sec .offline-card { background: none; box-shadow: none; padding: 0; border-radius: 0; max-width: none; gap: 16px; }
.pf-sec .offline-card > .form-title, .pf-sec .offline-card > .form-title + .muted { display: none; }
.pf-sec .offline-card .btn { border-radius: 999px; min-height: 44px; }
@media (max-width: 860px) {
  .pf-band { height: 72px; }
  .pf-head-row { padding: 12px 20px 20px; gap: 12px 16px; }
  .pf-avatar { width: 80px; height: 80px; font-size: 28px; margin-top: -52px; }
  .pf-id { flex-basis: 100%; }
  .pf-id h1 { font-size: 22px; }
  .pf-head-actions { width: 100%; }
  .pf-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .pf-nav { display: none; }
  .pf-sec, .pf-sec.is-shown { display: flex; padding: 0; gap: 0; }
  .pf-toggle { pointer-events: auto; cursor: pointer; min-height: 68px; padding: 12px 16px; font-size: 16px; border-radius: 24px; }
  .pf-toggle > svg { display: block; transform: rotate(90deg); }
  .pf-toggle[aria-expanded="true"] > svg { transform: rotate(-90deg); }
  .pf-sec-b { display: none; padding: 0 20px 20px; }
  .pf-sec.is-open .pf-sec-b { display: flex; }
  .pf-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* motion ---------------------------------------------------------------------------------------- */
@keyframes fm-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fm-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fm-grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fm-grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes fm-pop { 0% { transform: scale(.7); } 60% { transform: scale(1.2); } 100% { transform: scale(1); } }
.page.is-entering { animation: fm-fade 180ms var(--ease) both; }
.is-entering .anim { animation: fm-rise var(--t3) var(--ease) both; animation-delay: calc(var(--d, 0) * 40ms); }
.is-entering .grow-x { transform-origin: left center; animation: fm-grow-x var(--t3) var(--ease) 160ms both; }
[dir="rtl"] .is-entering .grow-x { transform-origin: right center; }
.is-entering .grow-y { transform-origin: center bottom; animation: fm-grow-y var(--t3) var(--ease) 160ms both; }
.fav-btn.pop svg { animation: fm-pop var(--t3) var(--ease); }
/* lift on hover / keyboard focus: the larger shadow sits on a layer that only fades in (opacity) */
.lift { position: relative; transition: transform var(--t2) var(--ease); }
.lift::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: var(--card-shadow-hi); opacity: 0; transition: opacity var(--t2) var(--ease); pointer-events: none; }
.lift:focus-within { transform: translateY(-3px); }
.lift:focus-within::after { opacity: 1; }
@media (hover: hover) {
  .lift:hover { transform: translateY(-3px); }
  .lift:hover::after { opacity: 1; }
  .btn-orange:hover, .btn-dark:hover, .btn-soft:hover, .btn-danger:hover, .btn-danger-line:hover, .exam-chip:hover, .fav-btn:hover, .top-tutor:hover { transform: translateY(-2px); }
}
.btn-orange, .btn-dark, .btn-soft, .btn-danger, .btn-danger-line, .exam-chip, .fav-btn, .top-tutor, .s-filters button, .pf-nav button, .s-col-open, .switch, .more-btn, .bottom-nav a {
  transition: transform var(--t1) var(--ease);
}
.btn-orange:active, .btn-dark:active, .btn-soft:active, .btn-danger:active, .btn-danger-line:active, .exam-chip:active, .fav-btn:active, .top-tutor:active,
.s-filters button:active, .pf-nav button:active, .s-col-open:active, .switch:active, .more-btn:active, .bottom-nav a:active { transform: scale(.96); }
.lift:active { transform: translateY(-1px) scale(.99); }
/* navigation marker that glides to the active page */
.side-items { position: relative; }
.side-items .nav-ind { position: absolute; top: 0; left: 50%; width: 50px; height: 50px; margin-left: -25px; border-radius: 50%; background: #173A66; transform: translateY(calc(var(--i, 0) * 58px)); transition: transform var(--t3) var(--ease), opacity var(--t2) var(--ease); }
.side-items .nav-ind.off { opacity: 0; }
.side-nav .side-items a { z-index: 1; }
.side-nav .side-items a.active { background: transparent; color: #FFFFFF; }
.bottom-nav .nav-ind { display: none; }
@media (max-width: 860px) {
  .bottom-nav .nav-ind { display: block; position: absolute; top: 7px; left: 6px; height: 54px; width: calc((100% - 20px) / 5); border-radius: 14px; background: var(--mint-1); transform: translateX(calc(var(--i, 0) * (100% + 2px))); transition: transform var(--t3) var(--ease); }
  [dir="rtl"] .bottom-nav .nav-ind { left: auto; right: 6px; transform: translateX(calc(var(--i, 0) * (-100% - 2px))); }
}
/* side bar with labels (wide screens, proposition 2 of 15 Nov 2026): the name of each page next to its icon */
@media (min-width: 1280px) {
  .shell-main { padding-inline-start: 232px; }
  .side-nav { width: 232px; align-items: stretch; padding: 22px 16px; }
  .side-logo { width: auto; height: 48px; align-items: center; gap: 12px; margin: 0 4px 22px; color: #FFFFFF; text-decoration: none; }
  .side-logo svg { flex: none; }
  .side-word { display: inline; font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: #FFFFFF; }
  .side-word span { color: #8FB8F5; }
  .side-sec { display: block; margin: 4px 12px 8px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6F86AA; }
  .side-badge { position: static; margin-inline-start: auto; min-width: 22px; height: 20px; padding: 0 7px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #FFFFFF; box-shadow: none; }
  .side-off { width: 100%; height: auto; border-radius: 12px; justify-content: flex-start; gap: 10px; padding: 12px 14px; background: #102F55; margin-bottom: 10px; }
  .side-off:hover { background: #143966; }
  .side-off svg { width: 18px; height: 18px; }
  .side-off-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .side-off-t b { font-size: 13px; font-weight: 700; color: #FFFFFF; }
  .side-off-t small { font-size: 12px; color: #9FB3D1; }
  .side-off-t small.ok { color: #5EE0B5; }
  .side-me-t { display: flex !important; flex-direction: column; gap: 1px; min-width: 0; }
  .side-me-t b { font-size: 14px; font-weight: 700; color: #FFFFFF; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .side-me-t small { font-size: 12px; font-weight: 500; color: #8FA6C8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .side-items { align-items: stretch; }
  .side-nav .side-items a, .side-me { width: 100%; height: 44px; border-radius: 10px; justify-content: flex-start; gap: 12px; padding: 0 12px; }
  .side-nav .side-items a svg { width: 19px; height: 19px; }
  .side-items { gap: 4px; }
  .side-me { padding: 0 6px; height: 56px; }
  .side-me .side-avatar { width: 40px; height: 40px; font-size: 15px; }
  .side-me:hover { background: rgba(255, 255, 255, .09); }
  .side-label { display: inline; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: inherit; }
  .side-me .side-label { color: #FFFFFF; }
  .side-nav [data-tip]::after { display: none; }
  .side-items .nav-ind { left: 0; right: 0; width: auto; height: 44px; margin-left: 0; border-radius: 10px; transform: translateY(calc(var(--i, 0) * 48px)); }
}
/* everything still, when asked */
html.no-motion *, html.no-motion *::before, html.no-motion *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
html.no-motion { scroll-behavior: auto; }

/* English-only lesson read by a student who chose French (rule of 15 Nov 2026) */
.lang-note { margin: 4px 0 12px; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--soft-text); }
.lang-note svg { width: 16px; height: 16px; flex: none; color: var(--c-green); }

/* 21. Platform: the two doors and the university space (platform.js, Nov 2026) --------------------------- */
.pl .icon-tile svg { width: 22px; height: 22px; }
.pl .btn svg, .pl .chip svg { width: 16px; height: 16px; }
.pl .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pl .subject-tile .chip { margin-top: 6px; }
.pl-doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.pl-door { text-decoration: none; color: var(--ink); gap: 10px; }
.pl-door h2 { font-size: 21px; font-weight: 800; }
.pl-door p { margin: 0; }
.pl-door-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-dark); }
.pl-door-ic svg { width: 26px; height: 26px; }
.pl-join { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; }
.pl-code { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; flex: 1 1 280px; }
.pl-code .field { flex: 1 1 180px; }
.pl-code input { text-transform: uppercase; letter-spacing: .08em; }
.pl-view { display: flex; flex-direction: column; gap: 6px; }
.pl-view small { color: var(--muted); font-weight: 700; }
.pl-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.pl-post { gap: 10px; }
.pl-post .card-title { flex-wrap: wrap; }
.pl-code-txt { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .12em; }
.pl-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pl-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.pl-list li > span:first-child { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.pl-list svg { width: 18px; height: 18px; }
.pl-table-wrap { overflow-x: auto; }
.pl-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pl-table th, .pl-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line-2); }
.pl-table th { color: var(--muted); font-weight: 700; font-size: 13px; }
.pl-grade { display: flex; flex-direction: column; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.pl-grade p { margin: 0; }

/* 22. Référentiel: universities list, years (platform.js, 21 Nov 2026) ------------------------------------ */
.pl-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pl-search { flex: 1 1 240px; min-width: 0; }
.pl-group { display: flex; flex-direction: column; gap: 12px; }
.pl-group[hidden], .pl [data-search][hidden] { display: none; }
.pl .phase-title small { font-size: 14px; font-weight: 600; margin-left: 6px; }
.pl-year { font-size: 20px; font-weight: 800; }
.pl-info { background: var(--primary-soft); color: var(--primary-dark); }
.pl-facts { gap: 6px; }
.pl-facts p { margin: 0; }
.pl-new { margin: 0; }

/* 23. University space, complete ENT (ent.js, 22 Nov 2026) — phone first; logical properties for Arabic (RTL) */
.ent .pl-text { margin: 0; }
.ent-head { align-items: center; }
.ent-head-r { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; }
.ent-bell { position: relative; width: 46px; height: 46px; border-radius: 14px; display: inline-grid; place-items: center; background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); }
.ent-bell svg { width: 20px; height: 20px; }
.ent-badge { position: absolute; inset-block-start: -6px; inset-inline-end: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #D64545; color: #FFFFFF; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.ent-tabs { display: flex; gap: 8px; overflow-x: auto; padding-block-end: 4px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.ent-tabs a { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
.ent-tabs a svg { width: 18px; height: 18px; }
.ent-tabs a.active { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.ent-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #D64545; color: #FFFFFF; font-size: 11px; font-weight: 800; display: inline-grid; place-items: center; }
.ent-body { display: flex; flex-direction: column; gap: 16px; }
.ent-grid, .ent-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; align-items: start; }
.ent-two { margin-block-start: 4px; }
.ent .card { gap: 12px; }
.ent .card-title { flex-wrap: wrap; }
.ent .card-title h2 { font-size: 17px; }
.ent .card-title .d-link { font-size: 14px; }
.ent-meta { margin: 0; font-size: 13px; }
.ent-h3 { font-size: 15px; font-weight: 800; margin: 6px 0 0; }
.ent-form { display: flex; flex-direction: column; gap: 12px; }
.ent input[type="file"] { padding: 10px; min-height: 0; }
.ent-slots { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ent-slots li, .ent-convs a { display: flex; align-items: center; gap: 12px; }
.ent-time { flex: none; min-width: 92px; padding: 6px 10px; border-radius: 10px; background: var(--primary-soft); color: var(--primary-dark); font-weight: 800; font-size: 13px; text-align: center; direction: ltr; }
.ent-slot-t, .ent-doc-t { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ent-slot-t small, .ent-doc-t small { color: var(--muted); }
.ent-slot-t b, .ent-doc-t b { overflow-wrap: anywhere; }
.ent-day.is-today { outline: 2px solid var(--primary); outline-offset: -2px; }
.ent-docs li { align-items: center; }
.ent-file { max-width: 100%; }
.ent-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.ent-file small { color: var(--muted); font-weight: 600; }
.ent-convs li { padding: 0; }
.ent-convs a { width: 100%; padding: 10px 0; color: var(--ink); text-decoration: none; }
.ent-avatar { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-dark); font-weight: 800; }
.ent-notifs li a { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.ent-notifs svg { width: 18px; height: 18px; flex: none; color: var(--primary); }
.ent-thread { gap: 14px; }
.ent-bubbles { display: flex; flex-direction: column; gap: 10px; max-height: 60vh; overflow-y: auto; padding: 4px; }
.ent-bubble { max-width: 82%; align-self: flex-start; padding: 10px 14px; border-radius: 16px; border-end-start-radius: 4px; background: #EDF1F5; display: flex; flex-direction: column; gap: 4px; }
.ent-bubble.mine { align-self: flex-end; background: var(--primary-soft); border-end-start-radius: 16px; border-end-end-radius: 4px; }
.ent-bubble small { color: var(--muted); font-size: 11px; }
.ent-send { display: flex; gap: 10px; align-items: flex-end; }
.ent-send .field { flex: 1; }
.ent-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.ent-stat { text-decoration: none; color: var(--ink); gap: 4px; padding: 18px; }
.ent-big { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.ent-big small { font-size: 15px; color: var(--muted); }
.ent-stat-one { align-items: flex-start; }
.ent-bar { height: 12px; border-radius: 999px; background: #E4EAF1; overflow: hidden; }
.ent-bar span { display: block; height: 100%; background: var(--primary); border-radius: inherit; }
.ent-code-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; }
.ent-link { width: 100%; min-height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line-2); font-size: 12px; direction: ltr; }
.ent-server { display: flex; flex-direction: column; gap: 8px; }
.ent .pl-table th, .ent .pl-table td { text-align: start; vertical-align: top; }
.ent .pl-list li > span:first-child { flex-wrap: wrap; }
.ent .pl-list small { font-weight: 500; }
[dir="rtl"] .ent-tabs, [dir="rtl"] .crumbs { direction: rtl; }
@media (max-width: 860px) {
  .ent-head-r { width: 100%; justify-content: space-between; }
  .ent .pl-view .segmented button { padding: 0 10px; font-size: 13px; }
  .ent .card { padding: 18px; }
  .ent-send { flex-direction: column; align-items: stretch; }
  .ent-bubble { max-width: 92%; }
  .ent-docs li { flex-direction: column; align-items: stretch; }
  .ent-file span { max-width: 60vw; }
}
.ent .pl-code { flex: none; }
@media (max-width: 860px) { .ent .pl-table { min-width: 560px; } }

/* 24. Nile Campus console (owner.js, 21 Nov 2026) — style « Bento Pro » chosen by the owner:
   light tiles, big numbers, navy + turquoise + sand. Phone first: one column, then 2, then the 12-column bento. */
.nc { --nc-navy: #0F2E4C; --nc-sky: #5CC8E6; --nc-sky-ink: #0B6283; --nc-sand: #FBF1DE; --nc-sand-line: #F1E0BE; --nc-sand-ink: #A86E14;
  --nc-track: #EEF2F6; --nc-line: #E7EBF0; --nc-mute: #6B7A8C; display: grid; gap: 16px; padding-bottom: 8px; }
.nc-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; }
.nc-kick { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--nc-sky-ink); }
.nc-head h1 { margin: 4px 0 0; font-size: clamp(28px, 4vw, 38px); font-weight: 800; letter-spacing: -.035em; }
.nc-seg { display: flex; background: #fff; border: 1px solid var(--nc-line); border-radius: 14px; padding: 4px; }
.nc-seg a { padding: 8px 14px; border-radius: 10px; font-size: 14px; font-weight: 700; color: var(--nc-mute); text-decoration: none; }
.nc-seg a[aria-current] { background: var(--nc-navy); color: #fff; }
.nc-note { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--nc-sand); border: 1px solid var(--nc-sand-line); color: #6E4B00; font-size: 13.5px; }
.nc-note svg { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.nc-bento { display: grid; grid-template-columns: 1fr; gap: 14px; }
.nc-c { position: relative; display: block; background: #fff; border: 1px solid var(--nc-line); border-radius: 22px; padding: 18px 20px; color: var(--ink); text-decoration: none; text-align: start; font: inherit; overflow: hidden; }
button.nc-c { cursor: pointer; width: 100%; }
.nc-lbl { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 12.5px; font-weight: 700; color: var(--nc-mute); letter-spacing: .01em; }
.nc-lbl svg { width: 16px; height: 16px; }
.nc-demo { margin-inline-start: auto; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; background: var(--nc-track); color: var(--nc-mute); }
.nc-big { display: block; margin-top: 10px; font-size: clamp(44px, 6vw, 56px); font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.nc-mid { font-size: 40px; font-weight: 800; letter-spacing: -.04em; line-height: 1; flex: none; }
.nc-sub { display: block; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--nc-mute); }
.nc-row { display: flex; align-items: center; gap: 16px; }
.nc-row .nc-sub { margin-top: 2px; }
.nc-sand { background: var(--nc-sand); border-color: var(--nc-sand-line); }
.nc-sand .nc-mid { color: var(--nc-sand-ink); }
.nc-sand .nc-lbl, .nc-sand .nc-sub { color: #8a6a30; }
/* decide first */
.nc-dark { background: var(--nc-navy); border: 0; color: #fff; }
.nc-dark .nc-lbl { color: #9FB6CC; }
.nc-q { list-style: none; margin: 10px 0 0; padding: 0; }
.nc-q li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.1); }
.nc-q li:first-child { border-top: 0; }
.nc-qi { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; background: rgba(127,220,242,.14); color: #7FDCF2; }
.nc-qi svg { width: 18px; height: 18px; }
.nc-qt { min-width: 0; }
.nc-qt b { display: block; font-size: 14.5px; }
.nc-qt small { display: block; font-size: 12.5px; color: #9FB6CC; }
.nc-go { margin-inline-start: auto; flex: none; font: inherit; font-size: 12.5px; font-weight: 800; padding: 8px 13px; border-radius: 10px; border: 1px solid rgba(127,220,242,.35); background: transparent; color: #7FDCF2; text-decoration: none; cursor: pointer; }
.nc-q li:first-child .nc-go { background: var(--nc-sky); border-color: var(--nc-sky); color: #0B1A2A; }
.nc-go:hover, .nc-go:focus-visible { background: #7FDCF2; border-color: #7FDCF2; color: #0B1A2A; }
/* universities donut */
.nc-donut-w { display: flex; align-items: center; gap: 18px; margin-top: 10px; position: relative; }
.nc-donut { width: 112px; height: 112px; flex: none; }
.nc-donut-n { position: absolute; inset-inline-start: 0; width: 112px; text-align: center; font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.nc-leg { display: grid; gap: 8px; font-size: 13.5px; font-weight: 700; }
.nc-leg i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 8px; }
/* tools */
.nc-tool { display: flex; align-items: center; gap: 12px; }
.nc-ti { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: #E8F7FC; color: var(--nc-sky-ink); }
.nc-ti svg { width: 20px; height: 20px; }
.nc-sand .nc-ti { background: #fff; color: var(--nc-sand-ink); }
.nc-tool b { display: block; font-size: 15px; }
.nc-tool small { display: block; font-size: 12.5px; color: var(--nc-mute); font-weight: 600; }
.nc-tool-l > svg:last-child { margin-inline-start: auto; width: 18px; height: 18px; color: var(--nc-mute); }
.nc-tools { display: grid; grid-template-columns: 1fr; gap: 12px; }
.nc-lead { margin: 0; color: var(--nc-mute); font-weight: 600; }
/* activity and onboarding */
.nc-acts { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; font-size: 13.5px; }
.nc-acts b { display: block; }
.nc-acts small { color: var(--nc-mute); font-weight: 600; }
.nc-onb-h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: 12px 0 0; font-size: 13px; }
.nc-onb-h > span { display: flex; flex-wrap: wrap; gap: 6px; }
.nc-onb-h b { color: var(--nc-sky-ink); }
.nc-step { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 999px; background: var(--nc-track); color: var(--nc-mute); font-weight: 700; font-size: 12px; }
.nc-step.ok { background: #E3F5FB; color: var(--nc-sky-ink); }
.nc-step svg { width: 13px; height: 13px; }
.nc-bar { height: 10px; border-radius: 10px; background: var(--nc-track); margin-top: 12px; overflow: hidden; }
.nc-bar span { display: block; height: 100%; border-radius: 10px; background: linear-gradient(90deg, var(--nc-sky), var(--nc-sky-ink)); transform-origin: 0 50%; }
/* universities list */
.nc-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.nc-filters a { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--nc-line); font-size: 14px; font-weight: 700; color: var(--nc-mute); text-decoration: none; }
.nc-filters a span { margin-inline-start: 4px; opacity: .7; }
.nc-filters a[aria-current] { background: var(--nc-navy); border-color: var(--nc-navy); color: #fff; }
.nc-unis-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 10px; }
.nc-uni { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 18px; }
.nc-uni-t { min-width: 0; }
.nc-uni-t b { display: block; font-size: 15px; }
.nc-uni-t small { display: block; font-size: 12.5px; color: var(--nc-mute); font-weight: 600; }
.nc-todo { color: #8a6a30 !important; }
.nc-chip { margin-inline-start: auto; flex: none; font-size: 11.5px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.nc-chip.ok { background: #E6EDF4; color: var(--nc-navy); }
.nc-chip.ck { background: var(--nc-sand); color: var(--nc-sand-ink); }
.nc-chip.p { background: #E3F5FB; color: var(--nc-sky-ink); }
.nc-small { margin: 0; font-size: 12.5px; color: var(--nc-mute); }
@media (min-width: 640px) {
  .nc-bento { grid-template-columns: repeat(2, 1fr); }
  .nc-decide, .nc-act, .nc-onb { grid-column: 1 / -1; }
  .nc-tools, .nc-unis-list { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1180px) {
  .nc-bento { grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(104px, auto); }
  .nc-decide { grid-column: span 5; grid-row: span 4; }
  .nc-unis { grid-column: span 4; grid-row: span 2; }
  .nc-students { grid-column: span 3; grid-row: span 2; }
  .nc-bento > .nc-row { grid-column: span 7; }
  .nc-bento > .nc-row + .nc-row { grid-column: span 7; }
  .nc-bento > .nc-tool { grid-column: span 2; flex-direction: column; align-items: flex-start; text-align: start; }
  .nc-act { grid-column: span 7; }
  .nc-onb { grid-column: span 5; }
  .nc-tools { grid-template-columns: repeat(4, 1fr); }
  .nc-unis-list { grid-template-columns: repeat(3, 1fr); }
}

/* 25. Nile Campus toolbox (toolbox.js, 22 Nov 2026): the platform's own tools at three levels
   (Nile Campus › university › faculty), same Bento Pro look as section 24. */
.tb-scope { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; }
.tb-lvl { display: flex; align-items: center; gap: 4px; width: 100%; font-size: 12.5px; font-weight: 700; color: var(--nc-mute); }
.tb-lvl svg { width: 14px; height: 14px; opacity: .6; }
.tb-lvl .on { color: #fff; background: var(--nc-navy); padding: 3px 10px; border-radius: 999px; }
.tb-sel { display: grid; gap: 4px; flex: 1 1 220px; min-width: 0; font-size: 12.5px; font-weight: 700; color: var(--nc-mute); }
.tb-sel select, .tb-form select, .tb-form input, .tb-form textarea, .tb-inline input { width: 100%; min-height: 42px; padding: 8px 12px; border: 1px solid var(--nc-line); border-radius: 12px; background: #fff; font: inherit; color: var(--ink); }
.tb-form textarea { resize: vertical; }
.tb-switch, .tb-check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--ink); cursor: pointer; min-height: 42px; }
.tb-switch input, .tb-check input { width: 18px; height: 18px; accent-color: var(--nc-navy); }
.tb-hub { display: grid; grid-template-columns: 1fr; gap: 12px; }
.tb-n { margin-top: 6px; color: var(--nc-sky-ink) !important; font-weight: 700 !important; }
.nc-dark.nc-tool small { color: #9FB6CC; }
.nc-dark .tb-n { color: var(--nc-sky) !important; }
.nc-dark.nc-tool-l > svg:last-child { color: #9FB6CC; }
.tb-head { display: grid; gap: 8px; }
.tb-head h2 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.tb-head h2 small { font-size: 13px; font-weight: 700; color: var(--nc-mute); padding: 4px 10px; border-radius: 999px; background: var(--nc-track); letter-spacing: 0; }
.tb-link { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--nc-sky-ink); cursor: pointer; text-decoration: none; }
.tb-link svg { width: 16px; height: 16px; }
.tb-backlink { justify-self: start; }
.tb-tool { display: grid; gap: 12px; }
.tb-add { padding: 0; }
.tb-add summary { display: flex; align-items: center; gap: 10px; padding: 14px 20px; font-weight: 800; cursor: pointer; list-style: none; color: var(--nc-navy); }
.tb-add summary::-webkit-details-marker { display: none; }
.tb-add summary svg { width: 20px; height: 20px; padding: 3px; border-radius: 8px; background: var(--nc-sky); color: var(--nc-navy); }
.tb-add[open] summary { border-bottom: 1px solid var(--nc-line); }
.tb-form { display: grid; gap: 12px; padding: 16px 20px 18px; }
.tb-form .field { display: grid; gap: 4px; margin: 0; font-size: 12.5px; font-weight: 700; color: var(--nc-mute); min-width: 0; }
.tb-row { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: end; }
.tb-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.tb-actions .btn svg { width: 16px; height: 16px; }
.tb-list, .tb-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tb-item { display: grid; gap: 6px; }
.tb-item-h { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tb-item-h b { font-size: 16px; min-width: 0; overflow-wrap: anywhere; }
.tb-item-h .nc-chip { margin-inline-start: auto; }
.tb-icon { margin-inline-start: auto; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 10px; background: var(--nc-track); color: var(--nc-mute); cursor: pointer; }
.tb-item-h .nc-chip + .tb-icon { margin-inline-start: 0; }
.tb-icon:hover { background: #FDE8E8; color: #B42318; }
.tb-icon svg { width: 16px; height: 16px; }
.tb-pin { border-color: var(--nc-sky); box-shadow: inset 4px 0 0 var(--nc-sky); }
.tb-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.tb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--nc-mute); }
.tb-from { padding: 2px 8px; border-radius: 999px; background: #E6F6FB; color: var(--nc-sky-ink); font-weight: 700; }
.tb-empty { margin: 0; padding: 22px; text-align: center; color: var(--nc-mute); font-weight: 600; border: 1px dashed var(--nc-line); border-radius: 22px; }
.tb-hint { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 13.5px; font-weight: 600; color: var(--nc-mute); }
.tb-hint svg { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.tb-links { display: flex; flex-wrap: wrap; gap: 8px; }
.tb-links .btn { max-width: 100%; }
.tb-links .btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-code { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 13px; font-weight: 700; color: var(--nc-mute); }
.tb-code b { font-family: ui-monospace, monospace; font-size: 16px; letter-spacing: .12em; color: var(--nc-navy); background: var(--nc-sand); padding: 3px 10px; border-radius: 8px; }
.tb-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.tb-tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px 4px 10px; border-radius: 999px; background: var(--nc-track); font-size: 13px; font-weight: 600; }
.tb-tag button { display: grid; place-items: center; width: 20px; height: 20px; border: 0; border-radius: 50%; background: none; color: var(--nc-mute); cursor: pointer; }
.tb-tag button svg { width: 12px; height: 12px; }
.tb-inline { display: flex; gap: 8px; }
.tb-inline input { min-width: 0; flex: 1; }
.tb-inline .btn { flex: none; }
.tb-inline .btn svg { width: 16px; height: 16px; }
.tb-avg { margin: 0; font-weight: 800; color: var(--nc-sand-ink); }
.tb-marks { width: 100%; border-collapse: collapse; font-size: 14px; }
.tb-marks th { text-align: start; font-size: 12px; color: var(--nc-mute); font-weight: 700; padding: 4px 0; }
.tb-marks td { padding: 6px 0; border-top: 1px solid var(--nc-line); }
.tb-marks td:last-child { width: 40px; }
.tb-week { display: grid; grid-template-columns: 1fr; gap: 12px; }
.tb-day h3 { margin: 0 0 8px; font-size: 14px; font-weight: 800; color: var(--nc-sky-ink); text-transform: uppercase; letter-spacing: .06em; }
.tb-slot { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-top: 1px solid var(--nc-line); }
.tb-slot:first-of-type { border-top: 0; }
.tb-slot b { display: block; }
.tb-slot small { display: block; font-size: 12.5px; color: var(--nc-mute); font-weight: 600; }
.tb-time { flex: none; font-variant-numeric: tabular-nums; font-weight: 800; font-size: 13px; padding: 3px 8px; border-radius: 8px; background: var(--nc-sand); color: var(--nc-sand-ink); }
.tb-thread { display: flex; align-items: center; gap: 12px; }
.tb-thread > svg:last-child { margin-inline-start: auto; width: 18px; height: 18px; color: var(--nc-mute); flex: none; }
.tb-thread > span:nth-child(2) { min-width: 0; }
.tb-chat { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 8px; }
.tb-chat li { max-width: 80%; padding: 10px 14px; border-radius: 16px; background: var(--nc-track); }
.tb-chat li.me { justify-self: end; background: var(--nc-navy); color: #fff; }
.tb-chat li small { font-size: 11.5px; opacity: .75; font-weight: 700; }
.tb-chat li p { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.tb-av { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--nc-sky); color: var(--nc-navy); font-weight: 800; }
.tb-status { display: flex; align-items: center; gap: 10px; margin: 0; }
.nc-chip.no { background: #FDE8E8; color: #B42318; }
.tb-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tb-stat .nc-big { margin: 0 0 8px; font-size: 40px; }
.tb-stat.nc-sand .nc-big { color: var(--nc-sand-ink); }
@media (min-width: 640px) {
  .tb-hub, .tb-grid, .tb-week { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-row { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
  .tb-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1180px) {
  .tb-hub, .tb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tb-week { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  .tb-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .tb-lvl { width: auto; margin-inline-end: 8px; align-self: center; }
}

/* 26. Nile Campus console shell (owner.js, 21 Nov 2026), after the owner's mock-up "Nile Campus web application":
   white top bar (logo, Platform Owner / Student switch, dark mode, initials), teal side bar "Platform workspace",
   dark hero, 4 figures, partner requests + shared campus tools. Phones (≤ 860 px): no side bar, the six pages
   become a row of tabs under the top bar. Dark mode = class .ncx-dark (Settings or the moon button). */
.ncx { --x-bg: #F3F6F6; --x-card: #FFFFFF; --x-line: #E1E8EA; --x-ink: #13242E; --x-mute: #5B6B74; --x-teal: #17616E; --x-teal-2: #1F7A88;
  --x-teal-soft: #E7F2F2; --x-side: #1C3B48; --x-side-2: #2B4C5A; --x-side-ink: #DCE8EA; --x-hero: #12283A; --x-mint: #6CC8C2;
  --x-sand: #FBF1DE; --x-sand-ink: #8A5A12; --x-shadow: 0 1px 2px rgba(19,36,46,.04), 0 6px 18px rgba(19,36,46,.05);
  min-height: 100vh; background: var(--x-bg); color: var(--x-ink); }
.ncx .nc { --nc-line: var(--x-line); --nc-mute: var(--x-mute); --nc-navy: var(--x-side); --nc-sky-ink: var(--x-teal); --nc-track: #EDF2F3; --ink: var(--x-ink); gap: 18px; }
.ncx svg { flex: none; }
/* top bar */
.ncx-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px; height: 72px; padding: 0 20px; background: var(--x-card); border-bottom: 1px solid var(--x-line); }
.ncx-brand { display: flex; align-items: center; gap: 12px; color: var(--x-ink); text-decoration: none; min-width: 0; }
.ncx-logo { width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 4px 10px rgba(22,56,71,.25); }
.ncx-brand b { display: block; font-size: 18px; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.ncx-brand small { display: block; font-size: 11.5px; font-weight: 700; color: var(--x-mute); letter-spacing: .02em; }
.ncx-role { display: flex; margin-inline: auto; padding: 4px; border-radius: 14px; background: #EDF2F3; border: 1px solid var(--x-line); }
.ncx-role a { padding: 8px 16px; border-radius: 10px; font-size: 13.5px; font-weight: 700; color: var(--x-mute); text-decoration: none; white-space: nowrap; transition: background-color var(--t1, .15s), color var(--t1, .15s); }
.ncx-role a[aria-current] { background: var(--x-card); color: var(--x-ink); box-shadow: 0 1px 3px rgba(19,36,46,.12); }
.ncx-role a:not([aria-current]):hover { color: var(--x-ink); }
.ncx-role .ncx-s { display: none; }
.ncx-tr { display: flex; align-items: center; gap: 10px; }
.ncx-round { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--x-line); background: var(--x-card); color: var(--x-ink); cursor: pointer; }
.ncx-round svg { width: 19px; height: 19px; }
.ncx-av { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--x-teal-soft); color: var(--x-teal); font-size: 13px; font-weight: 800; text-decoration: none; }
/* side bar */
.ncx-body { display: flex; align-items: stretch; }
.ncx-side { display: none; }
.ncx-main { flex: 1; min-width: 0; padding: 18px 16px 48px; }
.ncx-ws { margin: 0 0 14px; padding-inline: 14px; font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #9FB8BF; }
.ncx-nav { display: grid; gap: 4px; }
.ncx-nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; color: var(--x-side-ink); font-size: 14.5px; font-weight: 700; text-decoration: none; transition: background-color .15s; }
.ncx-nav a svg { width: 20px; height: 20px; opacity: .9; }
.ncx-nav a:hover { background: rgba(255,255,255,.06); }
.ncx-nav a[aria-current] { background: var(--x-side-2); color: #fff; }
.ncx-nav a[aria-current]::before { content: ""; position: absolute; inset-inline-start: 6px; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--x-mint); }
.ncx-nav a[aria-current] { padding-inline-start: 22px; }
.ncx-badge { margin-inline-start: auto; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--x-mint); color: #0E2A33; font-size: 12px; font-weight: 800; text-align: center; }
.ncx-foot { margin-top: auto; border-top: 1px solid rgba(255,255,255,.1); padding: 18px 14px 4px; font-size: 12.5px; line-height: 1.55; color: #B7CBD0; }
.ncx-foot p { margin: 0; }
.ncx-fb { display: flex; align-items: center; gap: 10px; padding-bottom: 16px; margin-bottom: 14px !important; border-bottom: 1px solid rgba(255,255,255,.1); color: #fff; font-size: 14px; letter-spacing: -.03em; }
.ncx-fb .ncx-logo { width: 32px; height: 32px; border-radius: 9px; box-shadow: none; outline: 1px solid rgba(255,255,255,.14); }
/* phone: the six pages as tabs under the top bar */
@media (max-width: 860px) {
  .ncx-top { flex-wrap: wrap; height: auto; padding: 10px 16px; gap: 10px; }
  .ncx-brand small { display: none; }
  .ncx-role { order: 3; margin: 0; width: 100%; }
  .ncx-role a { flex: 1; text-align: center; padding: 8px 10px; }
  .ncx-tr { margin-inline-start: auto; }
  .ncx-body { flex-direction: column; }
  .ncx-side { display: block; position: sticky; top: 0; z-index: 20; background: var(--x-side); }
  .ncx-ws, .ncx-foot { display: none; }
  .ncx-nav { display: flex; overflow-x: auto; scrollbar-width: none; padding: 8px 12px; gap: 6px; }
  .ncx-nav::-webkit-scrollbar { display: none; }
  .ncx-nav a { flex: none; padding: 9px 13px; font-size: 13.5px; gap: 8px; }
  .ncx-nav a svg { width: 17px; height: 17px; }
  .ncx-nav a[aria-current] { padding-inline-start: 13px; }
  .ncx-nav a[aria-current]::before { inset-inline-start: 12px; inset-inline-end: 12px; top: auto; bottom: 3px; width: auto; height: 3px; }
}
@media (max-width: 420px) { .ncx-role .ncx-l { display: none; } .ncx-role .ncx-s { display: inline; } }
@media (min-width: 861px) {
  .ncx-side { display: flex; flex-direction: column; position: sticky; top: 72px; flex: none; width: 250px; height: calc(100vh - 72px); padding: 28px 16px 20px; background: var(--x-side); overflow-y: auto; }
  .ncx-main { padding: 32px clamp(20px, 3.5vw, 48px) 56px; }
  .ncx-main > .nc { max-width: 1120px; }
}
/* page heads */
.ncx-kick { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--x-teal); }
.ncx-ph h1 { margin: 6px 0 0; font-size: clamp(28px, 4vw, 36px); font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.ncx-ph p:not(.ncx-kick) { margin: 8px 0 0; color: var(--x-mute); font-weight: 600; }
/* hero */
.ncx-hero { position: relative; overflow: hidden; padding: clamp(28px, 5vw, 64px) clamp(22px, 4vw, 44px); border-radius: 24px; background: var(--x-hero); color: #fff; }
.ncx-hero::after { content: ""; position: absolute; inset-inline-end: -120px; top: -140px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(closest-side, rgba(108,200,194,.16), transparent); pointer-events: none; }
.ncx-hero .ncx-kick { color: var(--x-mint); }
.ncx-hero h1 { margin: 12px 0 0; font-size: clamp(32px, 5.4vw, 48px); font-weight: 800; letter-spacing: -.045em; line-height: 1.05; }
.ncx-hero p:not(.ncx-kick) { margin: 14px 0 0; max-width: 640px; font-size: clamp(15px, 1.6vw, 17px); color: #D5E1E6; }
.ncx-snap { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 10px 16px; border-radius: 999px; background: #F2F6F6; color: var(--x-hero); font-size: 13.5px; font-weight: 800; text-decoration: none; }
.ncx-snap svg { width: 18px; height: 18px; }
@media (min-width: 861px) { .ncx-snap { position: absolute; inset-inline-end: 40px; bottom: 36px; margin: 0; } .ncx-hero p:not(.ncx-kick) { max-width: calc(100% - 220px); } }
.ncx-sec { margin: 8px 0 -4px; font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--x-mute); }
/* figures */
.ncx-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ncx .nc-c { background: var(--x-card); border-color: var(--x-line); border-radius: 18px; box-shadow: var(--x-shadow); color: var(--x-ink); }
.ncx-stat { display: flex; flex-direction: column; padding: 18px 20px; min-height: 150px; }
.ncx-sh { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; font-size: 13.5px; font-weight: 700; color: #34454F; }
.ncx-sh svg { width: 21px; height: 21px; color: var(--x-teal); }
.ncx-sv { margin-top: auto; padding-top: 18px; font-size: clamp(30px, 4vw, 38px); font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.ncx-sd { display: flex; align-items: center; gap: 4px; margin-top: 12px; font-size: 12.5px; font-weight: 700; color: var(--x-teal); }
.ncx-sd svg { width: 13px; height: 13px; }
.ncx-warm .ncx-sv { color: var(--x-sand-ink); }
@media (min-width: 1000px) { .ncx-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } .ncx-stat { min-height: 170px; padding: 22px 24px; } }
/* cards */
.ncx-two, .ncx-three { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
@media (min-width: 1000px) { .ncx-two { grid-template-columns: 1.45fr 1fr; gap: 20px; } .ncx-three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.ncx-card { padding: 22px 24px; }
@media (min-width: 1000px) { .ncx-two > .ncx-card { padding: 26px 28px; min-height: 100%; } .ncx-two { align-items: stretch; } }
.ncx-ch { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ncx-ch h2 { margin: 0; font-size: clamp(19px, 2vw, 22px); font-weight: 800; letter-spacing: -.035em; }
.ncx-ch p { margin: 4px 0 0; font-size: 13.5px; color: var(--x-mute); }
.ncx-ch .nc-demo { margin-inline-start: 0; }
.ncx-pend { flex: none; padding: 5px 10px; border-radius: 8px; background: var(--x-sand); color: var(--x-sand-ink); font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.ncx-empty { margin: 18px 0 0; padding: 16px; border-radius: 14px; background: #F4F8F8; border: 1px dashed var(--x-line); color: var(--x-mute); font-size: 14px; }
.ncx-more { display: inline-flex; align-items: center; gap: 4px; margin-top: 16px; font-size: 13.5px; font-weight: 800; color: var(--x-teal); text-decoration: none; }
.ncx-more svg { width: 16px; height: 16px; }
.ncx-sub { margin: 22px 0 0; font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--x-mute); }
/* partner requests */
.ncx-reqs { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--x-line); }
.ncx-req { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; padding: 16px 0; border-bottom: 1px solid var(--x-line); }
.ncx-ri { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--x-teal-soft); color: var(--x-teal); }
.ncx-ri svg { width: 20px; height: 20px; }
.ncx-rt { flex: 1 1 160px; min-width: 0; }
.ncx-rt b { display: block; font-size: 15px; }
.ncx-rt small { display: block; margin-top: 2px; font-size: 13px; color: var(--x-mute); }
.ncx-ra { display: flex; gap: 8px; margin-inline-start: auto; }
.ncx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--x-line); background: var(--x-card); color: var(--x-ink); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; text-decoration: none; transition: transform .15s var(--ease, ease), background-color .15s; }
.ncx-btn:hover { transform: translateY(-1px); }
.ncx-btn:active { transform: scale(.97); }
.ncx-btn.ncx-pri { background: var(--x-teal); border-color: var(--x-teal); color: #fff; }
.ncx-btn.ncx-pri:hover { background: var(--x-teal-2); }
.ncx-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }
/* shared campus tools */
.ncx-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.ncx-tool { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--x-line); background: var(--x-card); color: var(--x-ink); font-size: 14px; font-weight: 800; line-height: 1.25; text-decoration: none; }
.ncx-tool svg { width: 21px; height: 21px; color: var(--x-teal); }
.ncx-tool:hover { border-color: #B9D6D8; }
/* decide first, latest, onboarding: the old dark list, now on a light card */
.ncx .nc-q li { border-top-color: var(--x-line); }
.ncx .nc-qi { background: var(--x-teal-soft); color: var(--x-teal); }
.ncx .nc-qt small { color: var(--x-mute); }
.ncx .nc-go { border-color: var(--x-line); color: var(--x-teal); }
.ncx .nc-q li:first-child .nc-go { background: var(--x-teal); border-color: var(--x-teal); color: #fff; }
.ncx .nc-go:hover, .ncx .nc-go:focus-visible { background: var(--x-teal-2); border-color: var(--x-teal-2); color: #fff; }
.ncx .nc-bar { margin-top: 18px; }
.ncx .nc-bar span { background: linear-gradient(90deg, var(--x-mint), var(--x-teal)); }
.ncx .nc-step.ok { background: var(--x-teal-soft); color: var(--x-teal); }
.ncx .nc-note { background: var(--x-sand); border-color: #F1E0BE; color: #6E4B00; }
.ncx .nc-uni { box-shadow: none; }
.ncx .nc-uni .ncx-ri { width: 38px; height: 38px; }
.ncx .nc-filters a[aria-current] { background: var(--x-teal); border-color: var(--x-teal); }
.ncx .tb-lvl .on, .ncx .tb-chat li.me { background: var(--x-teal); }
.ncx .tb-switch input, .ncx .tb-check input { accent-color: var(--x-teal); }
.ncx .btn-dark { background: var(--x-teal); border-color: var(--x-teal); }
.ncx .nc-dark { background: var(--x-hero); }
.ncx-uniblock { display: grid; gap: 14px; }
.ncx-form { display: grid; gap: 14px; align-content: start; }
.ncx-form .ncx-btn { justify-self: start; }
.ncx-dl { margin: 14px 0 0; padding-inline-start: 18px; display: grid; gap: 8px; font-size: 14px; color: var(--x-mute); }
.ncx-seg { display: inline-flex; gap: 4px; margin-top: 16px; padding: 4px; border-radius: 12px; background: #EDF2F3; border: 1px solid var(--x-line); }
.ncx-seg button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 0; border-radius: 9px; background: transparent; color: var(--x-mute); font: inherit; font-size: 13.5px; font-weight: 800; cursor: pointer; }
.ncx-seg button svg { width: 17px; height: 17px; }
.ncx-seg button[aria-pressed="true"] { background: var(--x-card); color: var(--x-ink); box-shadow: 0 1px 3px rgba(19,36,46,.12); }
/* dark mode */
.ncx-dark { --x-bg: #0D1A21; --x-card: #142530; --x-line: #23394A; --x-ink: #E6EEF1; --x-mute: #93A7B1; --x-teal: #5CC3BD; --x-teal-2: #7DD3CD;
  --x-teal-soft: rgba(92,195,189,.13); --x-side: #10232D; --x-side-2: #1F3A47; --x-hero: #091620; --x-sand: rgba(232,170,70,.14); --x-sand-ink: #E8B65E;
  --x-shadow: 0 1px 2px rgba(0,0,0,.25); color-scheme: dark; }
.ncx-dark .nc { --nc-track: #1C3140; }
.ncx-dark .ncx-role, .ncx-dark .ncx-seg { background: #0F1E27; }
.ncx-dark .ncx-sh { color: #B6C7CE; }
.ncx-dark .ncx-btn.ncx-pri, .ncx-dark .ncx .nc-q li:first-child .nc-go { color: #062026; }
.ncx-dark .ncx-btn.ncx-pri, .ncx-dark .nc-q li:first-child .nc-go, .ncx-dark .nc-go:hover, .ncx-dark .btn-dark, .ncx-dark .nc-filters a[aria-current], .ncx-dark .tb-lvl .on { color: #062026; }
.ncx-dark .ncx-empty { background: rgba(255,255,255,.03); }
.ncx-dark .nc-note { color: #E8CF9C; border-color: rgba(232,170,70,.25); }
.ncx-dark .ncx-logo { box-shadow: none; outline: 1px solid rgba(255,255,255,.12); }
.ncx-dark .ncx-tool:hover { border-color: #2F5466; }
.ncx-dark .nc-filters a, .ncx-dark .tb-sel select, .ncx-dark .tb-form select, .ncx-dark .tb-form input, .ncx-dark .tb-form textarea, .ncx-dark .tb-inline input,
.ncx-dark .field input, .ncx-dark .field select, .ncx-dark .field textarea, .ncx-dark .btn-light { background: #0F1E27; border-color: var(--x-line); color: var(--x-ink); }
.ncx-dark .nc-chip.ok { background: rgba(255,255,255,.08); color: var(--x-ink); }
.ncx-dark .nc-chip.p { background: var(--x-teal-soft); color: var(--x-teal); }
.ncx-dark .nc-chip.ck { background: var(--x-sand); color: var(--x-sand-ink); }
.ncx-dark .nc-demo { background: rgba(255,255,255,.08); }
.ncx-dark .nc-sand { background: var(--x-sand); border-color: rgba(232,170,70,.2); }
.ncx-dark .nc-ti { background: var(--x-teal-soft); color: var(--x-teal); }
.ncx-dark .tb-time { background: var(--x-sand); color: var(--x-sand-ink); }
@media (min-width: 861px) { .ncx-body { background: linear-gradient(90deg, var(--x-side) 250px, transparent 250px); } }
@media (min-width: 1000px) { .ncx-three { grid-template-columns: 1.35fr 1fr 1fr; } }
.ncx-tool > span { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .ncx-tools { gap: 8px; } .ncx-tool { gap: 9px; padding: 10px; font-size: 13px; } .ncx-tool svg { width: 18px; height: 18px; } .ncx-card { padding: 18px; } .ncx-stat { padding: 16px; min-height: 132px; } }
.ncx .nc-c.nc-dark { background: var(--x-hero); border-color: transparent; color: #fff; }
.ncx-tool > span { overflow-wrap: break-word; }
.ncx-tool { font-size: 13.5px; gap: 10px; }
.ncx-dark .ncx-hero { border: 1px solid var(--x-line); }
.ncx-tool { padding: 12px; }
.ncx-tool > span { overflow-wrap: normal; }
@media (min-width: 1000px) { .ncx-two { grid-template-columns: 1.3fr 1fr; } }

/* 27. University dashboard (campus.js, 22 Nov 2026): the console frame (section 26) with the University
   role, for one partner university (El Fasher first). Faculties list, figures by faculty and by year. */
.cp-uni { margin: 6px 0 0; font-size: 13px; font-weight: 800; color: var(--x-teal); }
.cp-hero h1 { max-width: 760px; }
.cp-tags { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0 !important; }
.cp-tags > * { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #E4EEF1; font-size: 12.5px; font-weight: 800; text-decoration: none; }
.cp-tags svg { width: 15px; height: 15px; color: var(--x-mint); }
.cp-tags a:hover { background: rgba(255,255,255,.14); }
button.ncx-snap { border: 0; font: inherit; font-size: 13.5px; font-weight: 800; cursor: pointer; }
.cp-facs .cp-fac { color: inherit; text-decoration: none; border-radius: 0; }
.cp-facs .cp-fac:hover .ncx-rt b { color: var(--x-teal); }
.cp-n { flex: none; margin-inline-start: auto; font-size: 12.5px; font-weight: 800; color: var(--x-teal); }
.cp-zero { color: var(--x-mute); font-weight: 700; }
.cp-facs .nc-chip + .cp-n { margin-inline-start: 0; }
.cp-linkbtn { border: 0; background: none; padding: 0; font: inherit; font-size: 13.5px; font-weight: 800; cursor: pointer; }
.cp-bars { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.cp-bars li { display: grid; grid-template-columns: 58px 1fr 28px; align-items: center; gap: 10px; font-size: 13px; }
.cp-bl { color: var(--x-mute); font-weight: 700; }
.cp-bt { display: block; height: 10px; border-radius: 10px; background: var(--nc-track, #EDF2F3); overflow: hidden; }
.cp-bt span { display: block; height: 100%; border-radius: 10px; background: linear-gradient(90deg, var(--x-mint), var(--x-teal)); transform-origin: 0 50%; }
.cp-bars b { text-align: end; }
.cp-grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .cp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cp-fcard .ncx-ch { justify-content: flex-start; align-items: center; }
.cp-fh { flex: 1; min-width: 0; }
.cp-fh h2 { font-size: 18px !important; }
.cp-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.cp-fig { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 14px; background: var(--x-bg); }
.cp-fig .ncx-sv { padding: 0; font-size: 26px; }
.cp-fig small { font-size: 12.5px; font-weight: 700; color: var(--x-mute); }
.cp-next { align-self: center; font-size: 12.5px; font-weight: 700; color: var(--x-mute); }
.nc-note.cp-ok { background: var(--x-teal-soft); border-color: transparent; color: var(--x-ink); }
.nc-note.cp-ok svg { color: var(--x-teal); }
.cp-table { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 14px; }
.cp-table th { text-align: start; padding: 8px 6px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--x-mute); border-bottom: 1px solid var(--x-line); }
.cp-table td { padding: 10px 6px; border-bottom: 1px solid var(--x-line); }
.cp-table td + td, .cp-table th + th { text-align: end; width: 80px; font-weight: 800; }
.cp-warm { color: var(--x-sand-ink); }
.cp-tools { display: grid; gap: 12px; }
@media (min-width: 640px) { .cp-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .cp-tools { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cp-tool { display: flex; align-items: center; gap: 14px; padding: 18px; }
.cp-tool > span:nth-child(2) { flex: 1; min-width: 0; }
.cp-tool b { display: block; font-size: 15px; }
.cp-tool small { display: block; margin-top: 2px; font-size: 13px; color: var(--x-mute); }
.cp-tool > svg { width: 18px; height: 18px; color: var(--x-mute); }
.ncx-tools button.ncx-tool { font: inherit; font-size: 13.5px; font-weight: 800; text-align: start; cursor: pointer; }
@media (max-width: 420px) { .cp-figs { gap: 6px; } .cp-fig { padding: 10px; } .cp-fig .ncx-sv { font-size: 22px; } }
/* in the narrow third column the shortcut tiles become one list, so long names ("Announcements") fit */
@media (min-width: 1000px) { .cp-mini { grid-template-columns: 1fr; gap: 8px; } .cp-mini .ncx-tool { min-height: 46px; padding: 10px 12px; } }

/* 28. Faculty dashboard (faculty.js, 22 Nov 2026): the Faculty of Medicine of El Fasher linked to FasherMed.
   Year plan rows with coverage bars, lessons by subject with a stage bar (reviewed / enriched / draft). */
.cp-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; font-size: 13px; font-weight: 800; color: var(--x-mute); text-decoration: none; }
.cp-back svg { width: 16px; height: 16px; }
.cp-back:hover { color: var(--x-teal); }
.fd-yrs { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.fd-yr { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--x-line); color: inherit; text-decoration: none; }
.fd-yr:hover { border-color: #B9D6D8; }
.fd-yn { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 11px; background: var(--x-teal-soft); color: var(--x-teal); font-size: 16px; font-weight: 800; }
.fd-yt { flex: 1; min-width: 0; }
.fd-yt b { display: block; font-size: 14.5px; }
.fd-yt small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--x-mute); }
.fd-yt .nc-bar { height: 6px; margin-top: 8px; }
.fd-stage { display: flex; height: 8px; min-width: 90px; border-radius: 8px; background: var(--nc-track, #EDF2F3); overflow: hidden; }
.fd-stage span { display: block; height: 100%; transform-origin: 0 50%; }
.fd-s-ok { background: var(--x-teal); }
.fd-s-rich { background: var(--x-mint); }
.fd-s-draft { background: #E3B464; }
.fd-legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 14px 0 0; font-size: 12px; font-weight: 700; color: var(--x-mute); }
.fd-legend span { display: inline-flex; align-items: center; gap: 6px; }
.fd-legend i { width: 10px; height: 10px; border-radius: 3px; }
.fd-subj { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 4px; }
.fd-subj a { display: grid; grid-template-columns: 1fr 110px; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--x-line); color: inherit; text-decoration: none; }
.fd-subj b { display: block; font-size: 14px; }
.fd-subj small { display: block; font-size: 12.5px; color: var(--x-mute); }
.fd-subj a:hover b { color: var(--x-teal); }
.fd-list { list-style: none; margin: 14px 0 0; padding: 0; }
.fd-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--x-line); color: inherit; text-decoration: none; font-size: 14px; }
.fd-list a:hover span { color: var(--x-teal); }
.fd-list b { flex: none; font-size: 12.5px; color: var(--x-teal); }
.fd-list small { flex: none; font-size: 12.5px; }
.cp-scroll { overflow-x: auto; }
.fd-table { min-width: 560px; margin-top: 0; }
.fd-table td a { color: var(--x-ink); font-weight: 800; text-decoration: none; }
.fd-table td a:hover { color: var(--x-teal); }
.fd-table td:last-child { width: 130px; }
.fd-table th + th, .fd-table td + td { width: 90px; }
@media (min-width: 1000px) { .ncx-stats.fd-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ncx-btn svg { width: 17px; height: 17px; }
.ncx-dark .fd-s-ok { background: #2A8F9B; }

/* 29. University space in the Nile Campus frame (ent.js, 23 Nov 2026): the ENT pages use the console frame
   (section 26: teal side bar, top bar with the demo views, dark mode .ncx-dark). Everything below only
   re-colours the ENT parts with the frame's colours, so light and dark both follow the console. */
.ncx-role-none { margin-inline: auto; }
.ncx .ent { --surface: var(--x-card); --ink: var(--x-ink); --muted: var(--x-mute); --line-2: var(--x-line); --bg: var(--x-bg);
  --primary: var(--x-teal); --primary-dark: var(--x-teal); --primary-soft: var(--x-teal-soft); color: var(--x-ink); gap: 16px; }
.ncx .ent .card { background: var(--x-card); border: 1px solid var(--x-line); box-shadow: var(--x-shadow); border-radius: 20px; color: var(--x-ink); }
.ncx .ent .card-title h2, .ncx .ent .d-title, .ncx .ent h1 { color: var(--x-ink); }
.ncx .ent .card-title h2 svg { width: 19px; height: 19px; color: var(--x-teal); }
.ncx .ent .muted, .ncx .ent .empty-state, .ncx .ent small { color: var(--x-mute); }
.ncx .ent .d-link { color: var(--x-teal); }
.ncx .ent .btn-primary { background: var(--x-teal); box-shadow: none; }
.ncx .ent .btn-primary:hover { background: var(--x-teal-2); }
.ncx .ent .chip-grey { background: rgba(127,150,165,.14); color: var(--x-mute); }
.ncx .ent .chip-solid { background: var(--x-teal); color: #fff; }
.ncx .ent-ph { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.ncx .ent-ph h1 { margin: 0; }
.ncx .ent .ent-bell { background: var(--x-card); border-color: var(--x-line); color: var(--x-ink); }
.ncx .ent .ent-time { background: var(--x-teal-soft); color: var(--x-teal); }
.ncx .ent .ent-bubble { background: rgba(127,150,165,.13); }
.ncx .ent .ent-bubble.mine { background: var(--x-teal-soft); }
.ncx .ent .ent-bar { background: rgba(127,150,165,.18); }
.ncx .ent .ent-bar span { background: var(--x-teal); }
.ncx .ent .pl-list li, .ncx .ent .pl-table th, .ncx .ent .pl-table td, .ncx .ent .pl-grade { border-color: var(--x-line); }
.ncx .ent .ent-avatar { background: var(--x-teal-soft); color: var(--x-teal); }
.ncx .ent .ent-stats { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.ncx .ent .ent-stat .ent-big { color: var(--x-ink); }
.ncx .ent .ent-nc { border-inline-start: 4px solid var(--x-teal); }
/* the "Today" card of the student */
.ent-today { gap: 10px; }
.ent-todo { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.ent-todo a { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--x-line, var(--line-2));
  color: var(--x-mute, var(--muted)); text-decoration: none; font-weight: 700; font-size: 14px; transition: transform var(--t2, .2s) var(--ease, ease), border-color .15s; }
.ent-todo a > span { flex: 1; }
.ent-todo a svg { width: 18px; height: 18px; flex: none; }
.ent-todo a.is-on { color: var(--x-ink, var(--ink)); border-color: var(--x-teal, var(--primary)); background: var(--x-teal-soft, var(--primary-soft)); }
.ent-todo a:hover { transform: translateY(-2px); }
.ent-todo a:focus-visible, .ncx .ent a:focus-visible, .ncx .ent button:focus-visible { outline: 3px solid var(--x-teal, var(--primary)); outline-offset: 2px; }
html.no-motion .ent-todo a, html.no-motion .ent-todo a:hover { transition: none; transform: none; }
@media (prefers-reduced-motion: reduce) { .ent-todo a, .ent-todo a:hover { transition: none; transform: none; } }
/* dark mode extras */
.ncx-dark .ent .chip-amber { background: var(--x-sand); color: var(--x-sand-ink); }
.ncx-dark .ent .chip-green { background: rgba(92,195,189,.16); color: #8FE0D9; }
.ncx-dark .ent .notice { background: var(--x-sand); color: #F1D7A6; }
.ncx-dark .ent .btn-primary, .ncx-dark .ent .chip-solid { color: #062026; }
.ncx-dark .ent .btn-ghost { color: var(--x-ink); }
.ncx-dark .ent .ent-link { background: #0F1E27; color: var(--x-ink); border-color: var(--x-line); }
.ncx-dark .ent input[type="file"] { color: var(--x-ink); }
@media (max-width: 860px) { .ncx .ent .card { padding: 18px; } }
.ncx .ent form.card > .btn, .ncx .ent .ent-form > .btn, .ncx .ent .pl-grade > .btn { align-self: flex-start; }
/* wide tables scroll inside their card, never the page */
.ncx .nc > .ent, .ncx .ent .ent-body, .ncx .ent .card, .ncx .ent .ent-grid > *, .ncx .ent .ent-two > * { min-width: 0; }
.ncx .ent .pl-table-wrap { max-width: 100%; }
/* 30. Learning tools of the university space (ent.js, 24 Nov 2026), after AFPA's Métis: pathway (sequences of
   steps), roll call, tests, record book, follow-up. Same frame colours as section 29, light and dark. */
.ent-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ent-chips .chip { text-decoration: none; }
.ent-seq + .ent-seq { margin-top: 6px; }
.ent-seq .ent-h3 { margin: 10px 0 8px; font-size: 14px; letter-spacing: .02em; color: var(--x-mute, var(--muted)); text-transform: uppercase; }
.ent-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ent-step { display: grid; grid-template-columns: 36px 1fr; gap: 6px 12px; align-items: start; padding: 12px; border: 1px solid var(--x-line, var(--line-2)); border-radius: 16px; background: var(--x-card, var(--surface)); }
.ent-step-dot { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--x-teal-soft, var(--primary-soft)); color: var(--x-teal, var(--primary)); }
.ent-step-dot svg { width: 18px; height: 18px; }
.ent-step-t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ent-step-t b { overflow-wrap: anywhere; }
.ent-step-t .chip { align-self: flex-start; }
.ent-step-k { font-size: 12px; font-weight: 800; color: var(--x-mute, var(--muted)); text-transform: uppercase; letter-spacing: .03em; }
.ent-step-a { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ent-step-ed { display: inline-flex; gap: 2px; }
.ent-step.is-done { opacity: .78; }
.ent-step.is-done .ent-step-dot { background: var(--x-teal, var(--primary)); color: #fff; }
.ent-step.is-next { border-color: var(--x-teal, var(--primary)); box-shadow: 0 0 0 2px var(--x-teal-soft, var(--primary-soft)); }
@media (min-width: 720px) { .ent-step { grid-template-columns: 36px 1fr auto; } .ent-step-a { grid-column: 3; justify-content: flex-end; } }
.ent-path .ent-bar { margin: 4px 0; }
/* roll call: one row per student, four choices as a segmented control */
.ent-roll { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ent-roll li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 10px 0; border-bottom: 1px solid var(--x-line, var(--line-2)); }
.ent-seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.ent-seg label { position: relative; }
.ent-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ent-seg span { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--x-line, var(--line-2)); font-size: 13px; font-weight: 700; color: var(--x-mute, var(--muted)); }
.ent-seg input:focus-visible + span { outline: 3px solid var(--x-teal, var(--primary)); outline-offset: 2px; }
.ent-seg-present input:checked + span, .ent-att-present { background: var(--green-soft); color: var(--green-ink); border-color: transparent; }
.ent-seg-late input:checked + span, .ent-att-late { background: var(--amber-soft); color: var(--amber-ink); border-color: transparent; }
.ent-seg-absent input:checked + span, .ent-att-absent { background: #FDE3E3; color: #9B1C1C; border-color: transparent; }
.ent-seg-excused input:checked + span, .ent-att-excused { background: rgba(127,150,165,.18); color: var(--x-ink, var(--ink)); border-color: transparent; }
.ncx-dark .ent .ent-seg-present input:checked + span, .ncx-dark .ent .ent-att-present { background: rgba(92,195,189,.18); color: #8FE0D9; }
.ncx-dark .ent .ent-seg-late input:checked + span, .ncx-dark .ent .ent-att-late { background: var(--x-sand); color: var(--x-sand-ink); }
.ncx-dark .ent .ent-seg-absent input:checked + span, .ncx-dark .ent .ent-att-absent { background: rgba(240,110,110,.18); color: #F5A3A3; }
/* tests */
.ent-q { border: 1px solid var(--x-line, var(--line-2)); border-radius: 16px; padding: 12px 14px; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.ent-q legend { font-weight: 800; padding: 0 4px; }
.ent-opt { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--x-line, var(--line-2)); cursor: pointer; }
.ent-opt:has(input:checked) { border-color: var(--x-teal, var(--primary)); background: var(--x-teal-soft, var(--primary-soft)); }
.ent-opt input { width: 18px; height: 18px; accent-color: var(--x-teal, var(--primary)); flex: none; }
.ent-review { margin: 0; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 10px; }
.ent-review li { display: flex; flex-direction: column; gap: 2px; padding-inline-start: 8px; border-inline-start: 3px solid var(--x-line, var(--line-2)); }
.ent-review li.is-ok { border-color: var(--green-ink); }
.ent-review li.is-ko { border-color: #C53030; }
.ent-qd summary { cursor: pointer; font-weight: 700; color: var(--x-teal, var(--primary)); min-height: 32px; }
/* follow-up table and record book */
.ent-mini { display: flex; flex-direction: column; gap: 4px; min-width: 110px; }
.ent-mini .ent-bar { height: 8px; }
.ent-follow tr.is-alert td:first-child { box-shadow: inset 3px 0 0 #C53030; }
.ent-row-a { white-space: nowrap; }
.ent-row-a .btn { margin-inline-end: 4px; }
.ent-book .ent-stat { cursor: default; }
.ent-book .ent-stat span svg { width: 16px; height: 16px; margin-inline-end: 4px; vertical-align: -3px; }
@media print {
  .ncx-top, .ncx-side, .ncx-tabs, .no-print, .nc-note, .ent-server, .ent-bell, .app-nav, .bottom-bar, .toast { display: none !important; }
  .ncx, .ncx .ent .card { background: #fff !important; color: #000 !important; box-shadow: none !important; }
  .ent-book .card { break-inside: avoid; border: 1px solid #ccc !important; }
}
.ent .ent-meta svg, .ent .notice svg, .ent p > svg { width: 16px; height: 16px; flex: none; vertical-align: -3px; margin-inline-end: 6px; }

/* 31. One frame for the whole platform (22 Nov 2026) ---------------------------------------------
   The student pages use the same frame as the console and the university space (section 26): white top bar
   (logo · switch between the three spaces · avatar), teal side bar with sections, page on a light grey-green
   background. Phones (≤ 860 px): top bar + switch, 5-button bottom bar of the current space (section 19). */
.us { --x-line: #E1E8EA; --x-ink: #13242E; --x-mute: #5B6B74; --x-teal: #17616E; --x-teal-soft: #E7F2F2; --x-side: #1C3B48; --x-side-2: #2B4C5A;
  --x-side-ink: #DCE8EA; --x-mint: #6CC8C2; background: #F3F6F6; }
.us .shell-main { padding-inline-start: 0; flex: 1; min-width: 0; }
.us-top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 16px; height: 72px; padding: 0 20px; background: #fff; border-bottom: 1px solid var(--x-line); }
.us-brand { display: flex; align-items: center; gap: 12px; color: var(--x-ink); text-decoration: none; min-width: 0; flex: none; }
.us-brand svg { width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 4px 10px rgba(22,56,71,.25); flex: none; }
.us-brand b { display: block; font-size: 18px; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.us-brand b span { color: inherit; }
.us-brand small { display: block; font-size: 11.5px; font-weight: 700; color: var(--x-mute); letter-spacing: .02em; }
.us-tr { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; flex: none; }
.us-av { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--x-teal-soft); color: var(--x-teal); font-size: 14px; font-weight: 800; text-decoration: none; }
.us .top-tutor { width: 40px; height: 40px; background: var(--x-side); }
.us .top-tutor:hover { background: var(--x-teal); }
@media (min-width: 1600px) { .us .top-tutor { display: inline-flex; } }
/* switch between the spaces (also used by the university space, owner.js frame) */
.sp-switch { display: flex; margin-inline: auto; padding: 4px; border-radius: 14px; background: #EDF2F3; border: 1px solid #E1E8EA; min-width: 0; }
.sp-switch a { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 700; color: #5B6B74; text-decoration: none; white-space: nowrap; transition: background-color var(--t1, .15s), color var(--t1, .15s); }
.sp-switch a i { width: 8px; height: 8px; border-radius: 50%; background: #5CC8E6; flex: none; }
.sp-switch .sp-study i { background: #6CC8C2; } .sp-switch .sp-uni i { background: #E8A33B; }
.sp-switch a[aria-current] { background: #fff; color: #13242E; box-shadow: 0 1px 3px rgba(19,36,46,.12); }
.sp-switch a:not([aria-current]):hover { color: #13242E; }
.sp-switch .sp-s { display: none; }
.ncx-dark .sp-switch { background: #0D1A21; border-color: #23394A; }
.ncx-dark .sp-switch a { color: #93A7B1; } .ncx-dark .sp-switch a[aria-current] { background: #142530; color: #E6EEF1; }
@media (max-width: 1180px) { .sp-switch .sp-l { display: none; } .sp-switch .sp-s { display: inline; } }
/* side bar */
.us-body { display: flex; align-items: stretch; }
.us-side { display: none; }
@media (min-width: 861px) {
  .us-side { display: flex; flex-direction: column; position: sticky; top: 72px; flex: none; width: 250px; height: calc(100vh - 72px); padding: 24px 16px 16px; background: var(--x-side); overflow-y: auto; gap: 4px; }
}
.us-sec { margin: 18px 14px 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #9FB8BF; }
.us-sec:first-child { margin-top: 0; }
.us-side > a { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; color: var(--x-side-ink); font-size: 14.5px; font-weight: 700; text-decoration: none; transition: background-color .15s; }
.us-side > a svg { width: 20px; height: 20px; opacity: .9; flex: none; }
.us-side > a:hover { background: rgba(255,255,255,.06); color: #fff; }
.us-side > a.active { background: var(--x-side-2); color: #fff; padding-inline-start: 22px; }
.us-side > a.active::before { content: ""; position: absolute; inset-inline-start: 6px; top: 11px; bottom: 11px; width: 3px; border-radius: 3px; background: var(--x-mint); }
.us-badge { margin-inline-start: auto; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--x-mint); color: #0E2A33; font-size: 12px; font-weight: 800; text-align: center; }
.us-tag { margin-inline-start: auto; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,.1); color: #CFE3E6; }
.us-side :focus-visible { outline: 3px solid #F6C27A; outline-offset: 2px; }
.us-foot { margin-top: auto; padding-top: 16px; display: grid; gap: 8px; }
.us-off, .us-me { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; color: #fff; text-decoration: none; min-width: 0; }
.us-off { background: rgba(255,255,255,.06); }
.us-off svg { width: 18px; height: 18px; color: var(--x-mint); flex: none; }
.us-off span, .us-me > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.us-off b, .us-me b { font-size: 13.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.us-off small, .us-me small { font-size: 12px; color: #A9C0C6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.us-off small.ok { color: var(--x-mint); }
.us-me:hover, .us-off:hover { background: rgba(255,255,255,.1); }
.us-me.active { background: var(--x-side-2); }
.us-me .side-avatar { width: 38px; height: 38px; font-size: 14px; background: var(--x-teal); }
/* phones */
@media (max-width: 860px) {
  .us-top { flex-wrap: wrap; height: auto; padding: 10px 16px; gap: 10px; }
  .us-brand small { display: none; }
  .us-brand svg { width: 34px; height: 34px; }
  .us-top .sp-switch { order: 3; margin: 0; width: 100%; }
  .us-top .sp-switch a { flex: 1; justify-content: center; padding: 8px 6px; }
  .us .bottom-nav { background: var(--x-side); }
  .us .bottom-nav a.active, .us .bottom-nav .more-btn.active { color: var(--x-side); }
  .us .bottom-nav .nav-ind { background: #E7F2F2; }
}
@media (max-width: 380px) { .sp-switch a i { display: none; } }
/* console frame: sections in the side bar, "view as" (demo), bottom bar on phones */
.ncx-sec2 { margin: 16px 14px 6px; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #9FB8BF; }
.ncx-nav > .ncx-sec2:first-child { margin-top: 0; }
.ncx-views { margin-top: 16px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.06); }
.ncx-views p { margin: 0 0 8px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #9FB8BF; }
.ncx-views div { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ncx-views a { padding: 7px 8px; border-radius: 9px; font-size: 12.5px; font-weight: 700; color: #DCE8EA; text-decoration: none; text-align: center; background: rgba(255,255,255,.05); }
.ncx-views a[aria-current] { background: var(--x-mint); color: #0E2A33; }
.more-sheet .ncx-views { background: #F3F6F6; margin-top: 4px; }
.more-sheet .ncx-views p { color: #5B6B74; } .more-sheet .ncx-views a { color: #13242E; background: #fff; border: 1px solid #E1E8EA; }
.more-sheet .ncx-views a[aria-current] { background: #17616E; color: #fff; border-color: #17616E; }
.ncx-dot { position: absolute; top: 8px; inset-inline-end: calc(50% - 16px); width: 8px; height: 8px; border-radius: 50%; background: #E8A33B; }
@media (max-width: 860px) {
  .ncx-has-bar .ncx-side { display: none; }
  .ncx-has-bar .ncx-main { padding-bottom: 112px; }
  .ncx-top .sp-switch { order: 3; margin: 0; width: 100%; }
  .ncx-top .sp-switch a { flex: 1; justify-content: center; padding: 8px 6px; }
  .ncx .bottom-nav { background: var(--x-side); }
  .ncx .bottom-nav a, .ncx .bottom-nav .more-btn { color: #B9CDD2; position: relative; z-index: 1; }
  .ncx .bottom-nav a.active, .ncx .bottom-nav .more-btn.active { color: var(--x-side); background: transparent; }
  .ncx .bottom-nav .nav-ind { background: #E7F2F2; }
  .ncx .more-links a svg { color: var(--x-teal); }
  .ncx .more-links a.active { background: var(--x-side); }
}
.us .page { padding-top: 28px; }
@media (min-width: 861px) { .us .shell-main > .page { padding-inline: clamp(20px, 3.5vw, 48px); } }

/* 32. "Fresh Flow" (owner's choice of 22 Nov 2026, direction 3 of the six dashboard mock-ups in
   /mnt/project-files/nile-campus/tableaux-de-bord-6-directions/) + logo "Sprout Drop" ------------------------
   Coolors palette lime → Nile blue (D9ED92 B5E48C 99D98C 76C893 52B69A 34A0A4 168AAD 1A759F 1E6091 184E77),
   Fontpair Urbanist (titles) + Open Sans (text), soft "clay" cards (radius 28, deep soft shadow), fffuel
   "sssurf" waves in the banners, a pill-shaped space switch and NO side bar: on computers the pages of the
   current space sit in a floating dock at the bottom of the screen (icons, the current page also shows its
   name; the name of the others shows on hover), on phones the same dock replaces the bottom bar. Only colours,
   fonts, radii and the place of the menu change here: every page keeps its content and its address. */
:root {
  --ff-l: #D9ED92; --ff-g1: #B5E48C; --ff-g2: #99D98C; --ff-g3: #76C893; --ff-g4: #52B69A; --ff-t: #34A0A4;
  --ff-b0: #168AAD; --ff-b1: #1A759F; --ff-b2: #1E6091; --ff-n: #184E77; --ff-ink: #0E2A3F; --ff-bg: #F3F8F4;
  --ff-mute: #5B7486; --ff-line: #E1ECE6; --ff-soft: #EAF5EE;
  --ff-grad: linear-gradient(120deg, #E9F6C9 0%, #C4EBC0 40%, #9ED9C6 100%);
  --ff-grad-d: linear-gradient(120deg, #184E77 0%, #1A759F 55%, #34A0A4 100%);
  --ff-clay: 0 18px 40px -24px rgba(24, 78, 119, .45), inset 0 -4px 0 rgba(24, 78, 119, .05);
  --ff-wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 160' preserveAspectRatio='none'%3E%3Cpath d='M0 70 C240 120 480 20 720 60 S1200 120 1440 50 V160 H0Z' fill='%23ffffff' fill-opacity='.35'/%3E%3Cpath d='M0 110 C260 70 520 150 780 110 S1220 70 1440 105 V160 H0Z' fill='%23ffffff' fill-opacity='.55'/%3E%3C/svg%3E");
  --font: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-ar: 'IBM Plex Sans Arabic', 'Open Sans', system-ui, sans-serif;
  --font-t: 'Urbanist', 'Open Sans', system-ui, sans-serif;
  /* the older names used everywhere, moved to the new palette */
  --primary: #1A759F; --primary-dark: #184E77; --primary-soft: #DDEFE6; --primary-tint: #EEF7F1; --primary-line: #B9E0CC;
  --ink: #0E2A3F; --ink-2: #29465A; --muted: #5B7486; --bg: #F3F8F4; --line: #E1ECE6; --line-2: #D3E3DA; --track: #E1ECE6;
  --teal: #168AAD; --teal-soft: #E1F2F6; --teal-ink: #1E6091; --green: #52B69A; --green-soft: #E3F4EA; --green-ink: #2C6A52;
  --forest: #184E77; --forest-2: #1A759F; --forest-ink: #0E2A3F; --mint-1: #E9F6C9; --mint-2: #F3F8F4; --mint-line: #E1ECE6;
  --c-green: #52B69A; --c-mint: #1A759F; --orange-btn: #184E77; --soft-text: #5B7486; --line-soft: #E1ECE6;
  --radius: 18px; --radius-lg: 26px; --radius-xl: 28px;
  --shadow: var(--ff-clay); --shadow-lg: 0 26px 50px -24px rgba(24, 78, 119, .5);
  --card-shadow: var(--ff-clay); --card-shadow-hi: 0 28px 54px -26px rgba(24, 78, 119, .55), inset 0 -4px 0 rgba(24, 78, 119, .05);
}
body, .shell { background: var(--ff-bg); }
h1, h2, h3, h4, .ncx-brand b, .us-brand b, .ncx-hero h1, .d-title, .card-title h2, .btn, .btn-dark, .btn-soft, .btn-orange,
.sp-switch a, .ncx-role a, .bottom-nav a, .d-kpi-v, .big, .num, .ncx-ph h1, .ncx-kick, .us-sec, .ncx-sec2 { font-family: var(--font-t); }
h1, h2, h3 { letter-spacing: -.02em; }
:focus-visible { outline-color: rgba(26, 117, 159, .45); }

/* cards: soft clay */
.card, .d-card, .ncx-card, .nc .nc-card { border-radius: 28px; border-color: transparent; box-shadow: var(--ff-clay); }
.btn-primary, .btn-orange, .btn-dark { background: var(--ff-n); color: #fff; box-shadow: 0 12px 24px -10px rgba(24, 78, 119, .7); border-radius: 999px; }
.btn-primary:hover, .btn-orange:hover, .btn-dark:hover { background: var(--ff-b1); color: #fff; }
.btn-soft, .btn-light { border-radius: 999px; }

/* frame: top bar (study pages .us and console / university / faculty .ncx) */
.us, .ncx { --x-bg: var(--ff-bg); --x-line: var(--ff-line); --x-ink: var(--ff-ink); --x-mute: var(--ff-mute); --x-teal: var(--ff-b1); --x-teal-2: var(--ff-t);
  --x-teal-soft: #E3F1EC; --x-side: var(--ff-n); --x-side-2: #22618F; --x-side-ink: #D5E8EE; --x-mint: var(--ff-g2); --x-hero: var(--ff-n); background: var(--ff-bg); }
.us-top, .ncx-top { background: rgba(243, 248, 244, .86); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 0; height: 76px; padding: 0 clamp(16px, 2.6vw, 36px); }
.us-brand svg, .ncx-logo { border-radius: 13px; box-shadow: 0 8px 18px -8px rgba(24, 78, 119, .6); }
.us-brand b, .ncx-brand b { font-weight: 800; color: var(--ff-n); letter-spacing: -.02em; }
.sp-switch, .ncx-role { background: #fff; border: 0; border-radius: 999px; padding: 5px; box-shadow: 0 8px 24px -12px rgba(24, 78, 119, .35); }
.sp-switch a, .ncx-role a { border-radius: 999px; font-weight: 700; color: #5B7486; padding: 9px 18px; }
.sp-switch a[aria-current], .ncx-role a[aria-current] { background: linear-gradient(90deg, var(--ff-t), var(--ff-n)); color: #fff; box-shadow: none; }
.sp-switch a[aria-current] i { background: #fff; }
.sp-switch a i { background: var(--ff-b0); } .sp-switch .sp-study i { background: var(--ff-g3); } .sp-switch .sp-uni i { background: #E8A33B; }
.us-av, .ncx-av { background: linear-gradient(135deg, var(--ff-l), var(--ff-t)); color: var(--ff-n); }
.ncx-round { border-radius: 50%; border: 0; background: #fff; box-shadow: 0 6px 18px -10px rgba(24, 78, 119, .4); color: var(--ff-n); }
.us .top-tutor { border-radius: 50%; background: var(--ff-n); }

/* banners: lime → Nile blue with waves */
.ncx-hero { background: var(--ff-wave) bottom / 100% 90px no-repeat, var(--ff-grad-d); border-radius: 34px; }
.ncx-hero::after { background: radial-gradient(closest-side, rgba(217, 237, 146, .22), transparent); }
.ncx-hero .ncx-kick { color: var(--ff-l); }
.ncx-snap { background: #fff; color: var(--ff-n); }
.h-head { position: relative; overflow: hidden; padding: clamp(24px, 3.4vw, 40px) clamp(20px, 3.4vw, 44px) clamp(56px, 7vw, 84px); border-radius: 34px;
  background: var(--ff-wave) bottom / 100% 70px no-repeat, var(--ff-grad); color: var(--ff-n); }
.h-head h1 { color: var(--ff-n); font-weight: 900; font-size: clamp(30px, 4.4vw, 50px); letter-spacing: -.03em; }
.h-ring { background: conic-gradient(var(--ff-t) calc(var(--p) * 1%), #E1ECE6 0); }
.h-task.done .h-check { background: linear-gradient(135deg, var(--ff-g3), var(--ff-t)); }
.h-space { border-inline-start: 0; }

/* no side bar: the pages of the space float in a dock at the bottom (computers) */
@media (min-width: 861px) {
  .us-body, .ncx-body { display: block; }
  .us-side, .ncx-side { position: fixed; z-index: 45; top: auto; bottom: 20px; left: 50%; transform: translateX(-50%); width: auto; max-width: calc(100vw - 32px);
    height: auto; flex-direction: row; align-items: center; gap: 4px; padding: 8px; border-radius: 999px; overflow-x: auto; overflow-y: visible; scrollbar-width: none;
    background: var(--ff-n); box-shadow: 0 24px 44px -18px rgba(14, 42, 63, .6); }
  [dir="rtl"] .us-side, [dir="rtl"] .ncx-side { transform: translateX(50%); left: auto; right: 50%; }
  .us-side::-webkit-scrollbar, .ncx-side::-webkit-scrollbar { display: none; }
  .ncx-side { display: flex; }
  .ncx-nav { display: flex; gap: 4px; }
  .us-sec, .ncx-sec2, .ncx-ws, .us-foot, .ncx-foot { display: none; }
  .us-side > a, .ncx-nav a { flex: none; gap: 8px; height: 48px; min-width: 48px; padding: 0 14px; justify-content: center; border-radius: 999px; color: #CFE3EA; font-size: 14px; }
  .us-side > a span:not(.us-badge):not(.us-tag), .ncx-nav a > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .us-side > a.active, .ncx-nav a[aria-current] { background: #fff; color: var(--ff-n); padding: 0 18px; }
  .us-side > a.active span:not(.us-badge):not(.us-tag), .ncx-nav a[aria-current] > span { position: static; width: auto; height: auto; clip: auto; overflow: visible; }
  .us-side > a.active::before, .ncx-nav a[aria-current]::before { display: none; }
  .us-side > a:hover, .ncx-nav a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
  .us-side > a.active:hover, .ncx-nav a[aria-current]:hover { background: #fff; color: var(--ff-n); }
  .us-badge, .ncx-badge { position: absolute; top: 2px; inset-inline-end: 2px; min-width: 18px; padding: 0 5px; font-size: 11px; line-height: 18px; background: var(--ff-g2); color: var(--ff-ink); }
  .us-tag { display: none; }
  .us .shell-main, .ncx-main { padding-bottom: 120px; }
  .us .shell-main > .page { max-width: 1260px; margin-inline: auto; }
  .ncx-main > .nc { max-width: 1180px; margin-inline: auto; }
  /* demo "view as" of the university space: a small card at the bottom left */
  .ncx-views { position: fixed; z-index: 44; bottom: 20px; inset-inline-start: 20px; width: 210px; margin: 0; background: #fff; box-shadow: var(--ff-clay); border-radius: 22px; }
  .ncx-views p { color: var(--ff-mute); }
  .ncx-views a { color: var(--ff-ink); background: var(--ff-bg); }
  .ncx-views a[aria-current] { background: var(--ff-n); color: #fff; }
}
/* the "view as" card would cover the dock on mid-size screens: it goes to the top right of the page instead */
@media (min-width: 861px) and (max-width: 1500px) {
  .ncx-views { position: static; width: auto; max-width: 1180px; margin: 0 auto 16px; display: flex; align-items: center; gap: 12px; box-shadow: none; background: #fff; }
  .ncx-side .ncx-views { display: none; }
}

/* phones: the same dock, floating above the bottom of the screen */
@media (max-width: 860px) {
  .bottom-nav, .us .bottom-nav, .ncx .bottom-nav { left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); border-radius: 26px; background: var(--ff-n); box-shadow: 0 20px 40px -16px rgba(14, 42, 63, .6); }
  .bottom-nav .nav-ind, .us .bottom-nav .nav-ind, .ncx .bottom-nav .nav-ind { background: #fff; border-radius: 18px; }
  .bottom-nav a, .bottom-nav .more-btn, .ncx .bottom-nav a, .ncx .bottom-nav .more-btn { color: #CFE3EA; }
  .bottom-nav a.active, .bottom-nav .more-btn.active, .us .bottom-nav a.active, .ncx .bottom-nav a.active { color: var(--ff-n); }
  .ncx-side { background: var(--ff-n); }
  .h-head { border-radius: 28px; }
  .ncx-hero { border-radius: 28px; }
}

/* dark mode of the console and the university space: deep Nile night, lime accents */
.ncx-dark { --x-bg: #0B1F2E; --x-card: #12304A; --x-line: #1D4262; --x-ink: #E8F3EE; --x-mute: #9DB8C4; --x-teal: #99D98C; --x-teal-2: #B5E48C;
  --x-teal-soft: rgba(153, 217, 140, .14); --x-side: #0E2A3F; --x-side-2: #1A4A6B; --x-hero: #0E2A3F; background: #0B1F2E; }
.ncx-dark .ncx-top { background: rgba(11, 31, 46, .86); }
.ncx-dark .ncx-brand b { color: #E8F3EE; }
.ncx-dark .sp-switch, .ncx-dark .ncx-role { background: #12304A; }
.ncx-dark .ncx-round { background: #12304A; color: #E8F3EE; }
.ncx-dark .ncx-card, .ncx-dark .card, .ncx-dark .d-card { box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .7); }
.ncx-dark .ncx-hero { background: var(--ff-wave) bottom / 100% 90px no-repeat, linear-gradient(120deg, #0E2A3F, #184E77 60%, #1A759F); }
@media (min-width: 861px) { .ncx-dark .ncx-side { background: #12304A; } .ncx-dark .ncx-views { background: #12304A; } .ncx-dark .ncx-views a { background: #0B1F2E; color: #E8F3EE; } }
@media (min-width: 861px) { .ncx-body, .ncx-dark .ncx-body { background: none; } }
.pf-band { background: var(--ff-wave) bottom / 100% 40px no-repeat, var(--ff-grad); }
/* phones, console pages without a bottom bar: the page tabs become light pills under the top bar */
@media (max-width: 860px) {
  .ncx-side { background: var(--x-bg); border-bottom: 1px solid var(--x-line); }
  .ncx-nav a { color: var(--x-mute); background: var(--x-card); border-radius: 999px; }
  .ncx-nav a[aria-current] { background: var(--ff-n); color: #fff; }
  .ncx-nav a[aria-current]::before { display: none; }
  .ncx-dark .ncx-nav a[aria-current] { background: var(--ff-g2); color: var(--ff-ink); }
}
@media (max-width: 860px) { .us-top, .ncx-top { height: auto; min-height: 64px; padding: 10px 16px; } }

/* 32b. Tidy-up (22 Nov 2026, owner's OK on the plan in /mnt/project-files/nile-campus/rangement-2/):
   smaller icon tiles, lower dashboard banner, compact universities list grouped by region */
.icon-tile, .pl .icon-tile { width: 32px; height: 32px; border-radius: 10px; font-size: 12px; }
.icon-tile svg, .pl .icon-tile svg { width: 18px; height: 18px; }
.pl-door-ic { width: 40px; height: 40px; border-radius: 12px; }
.pl-door-ic svg { width: 20px; height: 20px; }
.h-head { padding: clamp(20px, 2.6vw, 30px) clamp(20px, 3vw, 40px) clamp(40px, 4.6vw, 56px); }
.h-head h1 { font-size: clamp(28px, 3.4vw, 40px); }
.h-soon { margin: 2px 0 0; font-size: 13px; font-weight: 600; color: var(--ff-n); }
.h-soon span { font-weight: 400; color: var(--soft-text); }
.un-sum { margin: 4px 0 0; font-size: 14px; }
.un-filters { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; }
.un-filters .pl-search { margin: 0; }
.un-region select { height: 44px; border-radius: 999px; border: 1px solid var(--mint-line); background: #fff; color: var(--ink); padding: 0 34px 0 16px; font: inherit; font-size: 14px; }
.un-partner.pl-group { display: flex; flex-direction: row; align-items: center; text-align: start; gap: 14px; padding: 16px 20px; border-radius: 22px; background: var(--ff-grad); color: var(--ff-ink); text-decoration: none; }
.un-partner-ic { width: 32px; height: 32px; border-radius: 10px; background: rgba(255, 255, 255, .6); display: grid; place-items: center; flex: none; color: var(--ff-n); }
.un-partner-ic svg { width: 18px; height: 18px; }
.un-partner .un-row-b b { font-family: var(--font-t); font-size: 18px; }
.un-partner .un-row-b small { color: rgba(14, 42, 63, .75); }
.un-partner-go { margin-inline-start: auto; background: var(--ff-n); color: #fff; border-radius: 999px; padding: 9px 16px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.un-group { display: flex; flex-direction: column; gap: 8px; }
.un-h { margin: 4px 0 0; font-family: var(--font-t); font-size: 16px; color: var(--ff-n); display: flex; gap: 8px; align-items: baseline; }
.un-h small { font-family: var(--font); font-weight: 400; font-size: 12px; color: var(--soft-text); }
.un-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.un-row { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 14px; border-radius: 16px; background: #fff; color: var(--ink); text-decoration: none; box-shadow: 0 1px 2px rgba(14, 42, 63, .06); }
.un-row-b { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.un-row-b b { font-size: 14px; font-weight: 700; line-height: 1.25; }
.un-row-b small { font-size: 12px; color: var(--soft-text); }
.un-row-r { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; flex: none; }
.un-tag { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #EEF3F5; color: var(--soft-text); }
.un-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #F0A63A; flex: none; }
.un-chev { color: #9FB0BB; font-size: 18px; line-height: 1; }
.un-note { font-size: 12px; color: var(--soft-text); margin: 4px 0 0; }
.un-row[hidden], .un-partner[hidden] { display: none; }
@media (max-width: 1180px) { .un-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .un-list { grid-template-columns: minmax(0, 1fr); }
  .un-filters { grid-template-columns: 1fr auto; }
  .un-filters .pl-search { grid-column: 1 / -1; }
  .un-partner.pl-group { flex-wrap: wrap; padding: 14px 16px; }
  .un-partner .un-row-b { flex: 1 1 calc(100% - 60px); }
  .un-partner .un-row-b b { font-size: 16px; }
  .un-partner-go { margin-inline-start: 46px; padding: 8px 14px; }
  .un-filters .segmented { flex-wrap: nowrap; }
  .un-filters .segmented button { padding-inline: 12px; }
  .un-region select { width: 100%; padding-inline: 12px 28px; }
}
.ncx-dark .un-row { background: var(--x-card); color: var(--x-ink); }
.pl-choose.card { flex-direction: row; text-align: start; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 20px; }
.pl-choose p { margin: 0; flex: 1 1 260px; }
.pl-choose .btn { width: auto; flex: none; }
/* 23 Nov 2026: on the Explore page no dock item is current (Explore is the pill of the space switch, the dock starts with Home) */
.bottom-nav .nav-ind.off { opacity: 0; }

/* 32c. Fresh Flow, faithful to the mock-up (23 Nov 2026, owner's OK on the side-by-side plan in
   /mnt/project-files/nile-campus/fresh-flow-fidele/): round search + bell in the top bar, white floating dock with
   the current page in a gradient pill, big banners with an unDraw illustration and stacked waves (fresh.js),
   three/four clay cards under the banner. Dashboard (.ff-*), university space home (.ffe-*), console overview (.ffo-*). */
.ff-round { position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none; background: #fff; color: var(--ff-n);
  box-shadow: 0 6px 18px -10px rgba(24, 78, 119, .4); text-decoration: none; }
.ff-round svg { width: 19px; height: 19px; }
.ff-round:hover { color: var(--ff-b1); transform: translateY(-1px); }
.ff-badge { position: absolute; top: -3px; inset-inline-end: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--ff-l); color: var(--ff-n);
  font: 800 11px/18px var(--font-t); text-align: center; box-shadow: 0 0 0 2px var(--ff-bg); }
.ncx-tr { display: flex; align-items: center; gap: 10px; }
.ncx-dark .ff-round { background: #12304A; color: #E8F3EE; }
.sp-switch .sp-owner i { background: var(--ff-n); }

/* white dock (computers) */
@media (min-width: 861px) {
  .us-side, .ncx-side { background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-radius: 26px; padding: 8px; gap: 6px;
    box-shadow: 0 20px 40px -18px rgba(24, 78, 119, .55); }
  .us-side > a, .ncx-nav a { color: #4F6B7D; border-radius: 20px; height: 48px; padding: 0 16px; }
  .us-side > a:hover, .ncx-nav a:hover { background: var(--ff-bg); color: var(--ff-n); }
  .us-side > a.active, .ncx-nav a[aria-current], .us-side > a.active:hover, .ncx-nav a[aria-current]:hover { background: linear-gradient(90deg, var(--ff-t), var(--ff-n)); color: #fff; padding: 0 18px; }
  .ncx-dark .ncx-side { background: rgba(18, 48, 74, .92); }
  .ncx-dark .ncx-nav a { color: #9DB8C4; }
}
/* phones: white dock, icons only, the current page shows its name in a gradient pill */
@media (max-width: 860px) {
  .bottom-nav, .us .bottom-nav, .ncx .bottom-nav { background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); padding: 6px; gap: 2px;
    box-shadow: 0 20px 40px -18px rgba(24, 78, 119, .55); }
  .bottom-nav .nav-ind, .us .bottom-nav .nav-ind, .ncx .bottom-nav .nav-ind { display: none; }
  .bottom-nav a, .bottom-nav .more-btn, .ncx .bottom-nav a, .ncx .bottom-nav .more-btn { flex: 1 1 0; flex-direction: row; gap: 8px; height: 48px; border-radius: 20px; color: #4F6B7D; background: none; }
  .bottom-nav a span, .bottom-nav .more-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .bottom-nav a.active, .bottom-nav .more-btn.active, .us .bottom-nav a.active, .ncx .bottom-nav a.active { flex: 0 0 auto; padding: 0 16px; background: linear-gradient(90deg, var(--ff-t), var(--ff-n)); color: #fff; }
  .bottom-nav a.active span, .bottom-nav .more-btn.active span { position: static; width: auto; height: auto; clip: auto; overflow: visible; font-size: 14px; font-family: var(--font-t); font-weight: 700; }
}

/* the dashboard banner */
.ff-hero { position: relative; overflow: hidden; min-height: 330px; border-radius: 34px; background: var(--ff-grad); color: var(--ff-n); margin-bottom: 20px; }
.ff-hero-t { position: relative; z-index: 2; padding: 38px 44px 80px; max-width: 640px; }
.ff-kick { margin: 0 0 12px; font: 700 13px var(--font-t); letter-spacing: .12em; text-transform: uppercase; color: var(--ff-b1); }
.ff-h1 { margin: 0; font: 900 clamp(34px, 4.2vw, 54px)/1 var(--font-t); letter-spacing: -.03em; color: var(--ff-n); }
.ff-line { margin: 14px 0 18px; font-weight: 600; color: var(--ff-b1); }
.ff-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.ff-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px; background: var(--ff-n); color: #fff; text-decoration: none;
  font: 700 15px var(--font-t); box-shadow: 0 12px 24px -10px rgba(24, 78, 119, .7); }
.ff-pill svg { width: 16px; height: 16px; flex: none; }
.ff-pill.light { background: #fff; color: var(--ff-n); box-shadow: 0 10px 22px -12px rgba(24, 78, 119, .5); }
.ff-pill:hover { transform: translateY(-2px); color: #fff; background: var(--ff-b1); }
.ff-pill.light:hover { color: var(--ff-n); background: #fff; }
.ff-art { position: absolute; z-index: 2; inset-inline-end: 70px; bottom: 18px; width: 270px; color: var(--ff-b0); }
.ff-art svg { width: 100%; height: auto; display: block; }
.ff-wave { position: absolute; inset: auto 0 0 0; z-index: 1; line-height: 0; }
.ff-surf { width: 100%; display: block; }
.ff-hero.navy { background: var(--ff-grad-d); color: #fff; }
.ff-hero.navy .ff-kick { color: var(--ff-l); }
.ff-hero.navy .ff-h1 { color: #fff; font-size: clamp(30px, 3.8vw, 48px); }
.ff-hero.navy .ff-wave { opacity: .5; }
.ff-hero.navy .ff-art { width: 180px; bottom: 10px; color: var(--ff-l); }

/* clay cards under the banner */
.ff-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 20px; align-items: stretch; }
.ff-card { background: #fff; border-radius: 28px; padding: 22px; box-shadow: var(--ff-clay); min-width: 0; }
.ff-h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font: 800 19px var(--font-t); color: var(--ff-ink); }
.ff-h3 svg { width: 18px; height: 18px; color: var(--ff-n); }
.ff-h3 small { margin-inline-start: auto; font: 600 12px var(--font); color: #6C8798; letter-spacing: 0; }
.ff-small-link { margin-inline-start: auto; font: 700 13px var(--font-t); color: var(--ff-b1); }
.ff-subj { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ff-sj { display: flex; flex-direction: column; border-radius: 20px; padding: 14px; background: var(--ff-bg); color: var(--ff-ink); text-decoration: none; min-width: 0; }
.ff-sj-i { color: var(--ff-b0); height: 22px; }
.ff-sj-i svg { width: 20px; height: 20px; }
.ff-sj b { margin-top: 8px; font: 700 14px/1.25 var(--font-t); }
.ff-sj small { margin-top: 3px; font-size: 11.5px; color: #6C8798; }
.ff-sj.on { background: linear-gradient(140deg, var(--ff-g1), var(--ff-t)); color: #fff; }
.ff-sj.on .ff-sj-i, .ff-sj.on small { color: #EEFAF2; }
.ff-today-h { display: flex; align-items: center; gap: 14px; }
.ff-today-h small { display: block; color: #6C8798; font-size: 13px; margin-top: 2px; }
.ff-streak { font: 700 17px var(--font-t); color: var(--ff-ink); }
.ff-ring-b { font-family: var(--font-t); font-weight: 900; fill: var(--ff-n); dominant-baseline: middle; }
.ff-ring-s { font-size: 11px; fill: #6C8798; }
.ff-tasks { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ff-task { display: flex; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 18px; background: var(--ff-bg); color: var(--ff-ink); text-decoration: none; font-size: 13.5px; }
.ff-task:hover { background: #E8F3EC; }
.ff-bx { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--ff-t); display: grid; place-items: center; flex: none; color: #fff; }
.ff-bx svg { width: 14px; height: 14px; }
.ff-task.done .ff-bx { background: linear-gradient(135deg, var(--ff-g3), var(--ff-t)); border: 0; }
.ff-task.done .ff-task-t > span { text-decoration: line-through; color: #6C8798; }
.ff-task-t { min-width: 0; }
.ff-task-t small { display: block; font-size: 12px; color: #6C8798; }
.ff-task-t small.warn { color: #B4532A; }
.ff-week-h { display: flex; gap: 18px; align-items: flex-end; }
.ff-week-h small { display: block; color: #6C8798; font-size: 13px; }
.ff-big { display: block; font: 900 clamp(32px, 3.4vw, 46px)/1.05 var(--font-t); letter-spacing: -.02em; color: var(--ff-n); }
.ff-bars-w { margin-inline-start: auto; }
.ff-bars rect.on { fill: var(--ff-g1); } .ff-bars rect.off { fill: #E3EEE6; } .ff-bars rect.hi { fill: var(--ff-n); }
.ff-minis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.ff-mini { display: block; padding: 11px 14px; border-radius: 18px; background: var(--ff-bg); color: var(--ff-ink); text-decoration: none; }
.ff-mini b { display: block; font: 800 24px var(--font-t); color: var(--ff-n); }
.ff-mini small { font-size: 12px; color: #6C8798; }
.ff-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.ff-chips .ff-pill { background: #fff; color: var(--ff-n); }
.ff-chips .ff-pill:hover { background: #fff; color: var(--ff-b1); }
.ff-tag { display: inline-block; font: 700 10.5px var(--font); letter-spacing: .05em; text-transform: uppercase; background: var(--ff-l); color: var(--ff-n); border-radius: 999px; padding: 4px 10px; }
.ff-tag.t2 { background: var(--ff-g1); } .ff-tag.t3 { background: #9ED9C6; } .ff-tag.t4 { background: #E3EEE6; }
.ff-empty { margin: 6px 0 0; color: #6C8798; font-size: 13.5px; }
.ff-more { display: inline-block; margin-top: 12px; font: 700 13px var(--font-t); color: var(--ff-b1); text-decoration: none; }
.ff-bar { display: block; height: 10px; border-radius: 10px; background: #E3EEE6; overflow: hidden; }
.ff-bar i { display: block; height: 100%; border-radius: 10px; background: linear-gradient(90deg, var(--ff-l), var(--ff-t), var(--ff-n)); }
.ff-barrow { display: flex; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.ff-barrow span { margin-inline-start: auto; }
.ff-center { display: grid; place-items: center; text-align: center; }

@media (max-width: 1180px) {
  .ff-grid { grid-template-columns: 1fr 1fr; }
  .ff-subjects { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .ff-hero { min-height: 0; border-radius: 30px; margin-bottom: 14px; }
  .ff-hero-t { padding: 24px 22px 74px; max-width: none; }
  .ff-kick { font-size: 11px; margin-bottom: 8px; }
  .ff-h1 { font-size: 34px; }
  .ff-line { display: none; }
  .ff-btns .ff-pill.light { display: none; }
  .ff-btns .ff-pill { min-height: 42px; padding: 0 16px; font-size: 14px; }
  .ff-art { width: 120px; inset-inline-end: 16px; bottom: 30px; }
  .ff-hero.navy .ff-art { width: 96px; }
  .ff-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .ff-grid .ff-today { order: -1; }
  .ff-today .ff-h3 { display: none; }
  .ff-today .ff-tasks { display: none; }
  .ff-card { padding: 16px; }
  .ff-subjects { background: none; box-shadow: none; padding: 0; }
  .ff-subj { grid-template-columns: 1fr 1fr; }
  .ff-sj { background: #fff; box-shadow: 0 14px 30px -22px rgba(24, 78, 119, .6); }
  .ff-sj.on { background: linear-gradient(140deg, var(--ff-g1), var(--ff-t)); }
}
/* university space home (student) */
.ffe-hero { min-height: 290px; }
.ffe-hero .ff-hero-t { padding-bottom: 70px; }
.ffe-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 16px; }
.ffe-time { width: 52px; flex: none; font: 700 14px var(--font-t); color: var(--ff-b1); }
.ffe-path { gap: 10px; color: var(--ff-ink); text-decoration: none; }
.ffe-next { font-size: 13px; }
.ffe-att { margin-top: 16px; }
.ffe-ann { flex-direction: column; align-items: flex-start; gap: 6px; }
.ffe-ann b { font-weight: 600; font-size: 13.5px; }
.ent-body > .ff-hero { margin-bottom: 14px; }
@media (max-width: 1180px) { .ffe-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) {
  .ffe-grid { grid-template-columns: minmax(0, 1fr); }
  .ff-hero .ff-surf { height: 70px !important; }
  .ffe-hero .ff-chips .ff-pill { min-height: 38px; padding: 0 14px; font-size: 13px; }
}
/* console overview */
.ffo-hero { min-height: 300px; margin-bottom: 20px; }
.ffo-figs { position: absolute; z-index: 2; inset-inline-end: 44px; top: 40px; display: flex; gap: 14px; }
.ffo-fig { display: block; min-width: 130px; padding: 18px 22px; border-radius: 24px; background: #fff; box-shadow: var(--ff-clay); color: var(--ff-ink); text-decoration: none; }
.ffo-fig small { color: #6C8798; font-weight: 600; font-size: 13px; }
.ffo-donut { display: flex; align-items: center; gap: 18px; color: var(--ff-ink); text-decoration: none; }
.ffo-legend { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.ffo-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-inline-end: 8px; }
.ffo-go { margin-inline-start: auto; flex: none; border: 0; border-radius: 999px; padding: 8px 14px; background: var(--ff-n); color: #fff; font: 700 12.5px var(--font-t); text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 20px -10px rgba(24, 78, 119, .7); }
.ffo-go:hover { background: var(--ff-b1); color: #fff; }
.ffo-course { display: block; margin: 12px 0; color: var(--ff-ink); text-decoration: none; }
.ffo-grid { grid-template-columns: 1fr 1.1fr 1fr; margin-bottom: 24px; }
.ncx-dark .ff-card, .ncx-dark .ffo-fig { background: var(--x-card); color: var(--x-ink); }
.ncx-dark .ff-h3, .ncx-dark .ff-task, .ncx-dark .ffo-course, .ncx-dark .ffo-donut { color: var(--x-ink); }
.ncx-dark .ff-task, .ncx-dark .ff-mini { background: #0B1F2E; }
.ncx-dark .ff-hero:not(.navy) { background: linear-gradient(120deg, #12304A, #184E77 60%, #1A759F); }
.ncx-dark .ff-hero:not(.navy) .ff-h1 { color: #E8F3EE; }
.ncx-dark .ff-hero:not(.navy) .ff-kick { color: var(--ff-l); }
@media (max-width: 1180px) { .ffo-figs { position: relative; inset: auto; padding: 0 44px 80px; flex-wrap: wrap; } .ffo-hero .ff-hero-t { padding-bottom: 20px; } .ffo-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) {
  .ffo-figs { padding: 0 22px 70px; gap: 10px; display: grid; grid-template-columns: 1fr 1fr; }
  .ffo-fig { min-width: 0; padding: 14px 16px; }
  .ffo-grid { grid-template-columns: minmax(0, 1fr); }
}
/* 32d. Every page on the whole width, aligned with the top bar (owner, 23 Nov 2026: no empty space left and right;
   the content starts under the logo and ends under the profile button) */
@media (min-width: 861px) {
  .us .shell-main > .page, .ncx-main > .nc, .ncx-main > .nc.nc-wide { max-width: none; margin-inline: 0; }
  .us .shell-main > .page { padding-inline: clamp(16px, 2.6vw, 36px); }
  .ncx-main { padding-inline: clamp(16px, 2.6vw, 36px); }
  /* the demo "View as" card of the university space sits at the top of the page on every computer
     (a fixed card inside the dock was drawn over the dock on wide screens) */
  .ncx-views { position: static; width: auto; max-width: none; margin: 0 0 16px; display: flex; align-items: center; gap: 12px; box-shadow: none; background: #fff; }
  .ncx-side .ncx-views { display: none; }
  .ncx-views-top { padding: 10px 16px; border-radius: 22px; }
  .ncx-views-top p { margin: 0; }
  .ncx-views-top div { display: flex; flex-wrap: wrap; gap: 6px; }
}
@media (max-width: 860px) { .ncx-views-top { display: none; } }

/* ---------- 32e. Home of Nile Campus (#/home, 23 Nov 2026, owner's choice: the richest version, 8 cards) ----------
   The study dashboard moved to My studies (#/studies, classes .ff-*); this page = .hm-* */
.hm-spaces { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 20px; }
.hm-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 20px; align-items: start; }
.hm-sp { position: relative; overflow: hidden; display: flex; gap: 18px; align-items: center; padding: 22px; border-radius: 28px; background: #fff; box-shadow: var(--ff-clay); text-decoration: none; color: var(--ff-ink); }
.hm-sp.med { background: linear-gradient(120deg, #E9F6C9, #B9E6C3); }
.hm-sp.uni { background: linear-gradient(120deg, #184E77, #1A759F 60%, #34A0A4); color: #fff; }
.hm-sp > span:nth-child(2) { min-width: 0; }
.hm-sp b { display: block; font-family: var(--font-t); font-size: 21px; letter-spacing: -.02em; margin-top: 4px; }
.hm-sp small { display: block; opacity: .82; font-size: 13px; margin-top: 2px; }
.hm-go { margin-inline-start: auto; flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.7); color: var(--ff-n); font-weight: 900; font-size: 20px; }
.hm-sp.uni .hm-go { background: rgba(255,255,255,.18); color: #fff; }
.hm-sp.own .hm-go { background: var(--ff-bg); }
.hm-big { flex: none; min-width: 64px; text-align: center; font-family: var(--font-t); font-weight: 900; font-size: 44px; line-height: 1; }
.hm-sp.own .hm-big, .hm-sp.med .hm-big { color: var(--ff-n); }
.hm-chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--ff-soft); color: var(--ff-b2); vertical-align: 1px; }
.hm-chip.uni { background: #FFF1DC; color: #8A5200; }
.hm-chip.nc { background: #E6F0FB; color: var(--ff-n); }
.hm-sp.uni .hm-chip.uni { background: rgba(255,255,255,.2); color: #fff; }
.hm-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.hm-list li { min-width: 0; }
.hm-list a { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 18px; background: var(--ff-bg); color: var(--ff-ink); text-decoration: none; transition: transform .2s var(--ease); }
.hm-list a:hover { transform: translateY(-2px); }
.hm-t { flex: 1; min-width: 0; }
.hm-t b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-t small { display: block; color: var(--ff-mute); font-size: 12px; margin-top: 3px; }
.hm-r { flex: none; max-width: 40%; overflow: hidden; text-overflow: ellipsis; color: var(--ff-mute); font-size: 12px; font-weight: 700; white-space: nowrap; }
.hm-list .ff-bx { color: #fff; }
.hm-list .ff-bx.on { background: linear-gradient(135deg, var(--ff-g3), var(--ff-t)); border: 0; }
.hm-thumb { width: 44px; height: 44px; border-radius: 14px; flex: none; display: grid; place-items: center; background: linear-gradient(135deg, var(--ff-l), var(--ff-g3)); color: var(--ff-n); font-weight: 900; font-size: 14px; }
.hm-thumb svg { width: 20px; height: 20px; }
.hm-bar { display: block; height: 6px; border-radius: 6px; background: #E1ECE6; margin-top: 7px; overflow: hidden; }
.hm-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--ff-g2), var(--ff-n)); }
.hm-empty { margin: 14px 0 0; padding: 16px 18px; border-radius: 18px; background: var(--ff-bg); color: var(--ff-mute); font-size: 14px; line-height: 1.5; }
.hm-fields { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hm-fields a { padding: 8px 12px; border-radius: 999px; background: var(--ff-bg); font-size: 13px; font-weight: 700; color: var(--ff-ink); text-decoration: none; }
.hm-fields a.on { background: linear-gradient(90deg, var(--ff-t), var(--ff-n)); color: #fff; }
.hm-figs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.hm-figs a { padding: 14px; border-radius: 18px; background: var(--ff-bg); text-decoration: none; }
.hm-figs b { font-family: var(--font-t); font-size: 28px; color: var(--ff-n); display: block; }
.hm-figs small { color: var(--ff-mute); }
.hm-uni { display: block; margin-top: 14px; padding: 18px; border-radius: 22px; background: linear-gradient(120deg, #184E77, #1A759F 60%, #34A0A4); color: #fff; text-decoration: none; }
.hm-uni b { font-family: var(--font-t); font-size: 20px; display: block; }
.hm-uni small { opacity: .85; }
.hm-uni-p { margin: 10px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.hm-uni-p span { padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.16); font-size: 12px; font-weight: 700; }
.hm-web { margin: 10px 0 0; font-size: 13px; font-weight: 700; }
.hm-web a { color: var(--ff-b1); }
.hm-acc { display: flex; gap: 18px; align-items: center; margin-top: 10px; }
.hm-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13.5px; }
.hm-checks li::before { content: '✓'; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-inline-end: 8px; border-radius: 50%; background: var(--ff-g2); color: #fff; font-size: 12px; font-weight: 900; }
.hm-checks li.no::before { content: '•'; background: #E1ECE6; color: var(--ff-mute); }
.hm-checks a { color: var(--ff-b1); font-weight: 700; }
@media (max-width: 1180px) { .hm-grid3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) {
  .hm-grid3, .hm-spaces { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 14px; }
  .hm-sp { padding: 18px; gap: 14px; } .hm-big { font-size: 36px; min-width: 52px; }
}
.ff-h3 + .hm-list, .ff-h3 + .hm-empty, .ff-h3 + .hm-figs, .ff-h3 + .hm-uni, .ff-h3 + .hm-acc { margin-top: 0; }
.hm-grid3 > .ff-card { min-width: 0; }

/* ---------- 32f. VLE = Virtual Learning Environment (#/vle, 23 Nov 2026, owner: option A, the VLE holds the field and the university space) ---------- */
.vle-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: s; }
.vle-steps li { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 18px; background: var(--ff-bg); font-size: 14px; }
.vle-steps li::before { counter-increment: s; content: counter(s); width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--ff-g3), var(--ff-t)); color: #fff; font-weight: 900; }
.vle-steps li.ok::before { content: '✓'; }
.vle-steps small { display: block; color: var(--ff-mute); font-size: 12px; }
.vle-form { margin: 0; }
.vle-field { display: grid; gap: 6px; margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--ff-ink); }
.vle-field input, .vle-field select { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 14px; background: #fff; border: 1.5px solid #D5E5DD; font: 500 15px var(--font); color: var(--ff-ink); }
.vle-field input:focus, .vle-field select:focus { outline: 3px solid rgba(52,160,164,.35); border-color: var(--ff-t); }
.vle-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }
.vle-btns button.ff-pill { border: 0; cursor: pointer; font: 700 15px var(--font-t); }
.vle-note { margin: 10px 0 0; font-size: 12.5px; color: var(--ff-mute); line-height: 1.5; }
.vle-ok { display: flex; gap: 8px; align-items: center; margin: 12px 0 0; padding: 10px 14px; border-radius: 14px; background: #E9F6C9; color: var(--ff-n); font-size: 13px; font-weight: 700; }
.vle-ok svg { width: 16px; height: 16px; flex: none; }
#vle-connect, #vle-create { scroll-margin-top: 90px; }
.ff-h3 + .vle-steps { margin-top: 0; }

/* 32g. Pill of the field (owner, 23 Nov 2026): Home · Medicine · VLE · Owner console. The VLE holds only the university. */
.sp-switch .sp-field i { background: var(--ff-g3); }
.sp-switch .sp-study i { background: #E8A33B; }
/* courses of my faculty in the VLE (pathway lessons of the student's groups) */
.vle-courses { margin-top: 20px; }
.vle-courses .vle-note { margin: 0 0 12px; }
@media (min-width: 1100px) { .vle-clist { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; } }
@media (max-width: 860px) { .vle-courses { margin-top: 14px; } }

/* 32h. Media library (#/media, media.js, owner's plan validated 23 Nov 2026): videos, diagrams, audio, books & articles,
   documents of my university space, offline. */
.md-search { display: flex; align-items: center; gap: 10px; max-width: 560px; margin-top: 16px; padding: 0 18px; min-height: 52px; border-radius: 999px; background: #fff; box-shadow: 0 12px 26px -16px rgba(24,78,119,.55); position: relative; z-index: 2; }
.md-search svg { width: 18px; height: 18px; color: var(--ff-mute); flex: none; }
.md-search input { flex: 1; min-width: 0; border: 0; background: none; font: 500 15px var(--font); color: var(--ff-ink); outline: none; }
.md-search:focus-within { box-shadow: 0 0 0 3px rgba(52,160,164,.45), 0 12px 26px -16px rgba(24,78,119,.55); }
.md-bar { margin: 20px 0 4px; display: grid; gap: 12px; }
.md-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.md-tabs button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: #fff; color: var(--ff-n); font: 700 14px var(--font); cursor: pointer; box-shadow: 0 8px 18px -14px rgba(24,78,119,.6); }
.md-tabs button .n { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--ff-soft); font-size: 12px; text-align: center; }
.md-tabs button[aria-pressed="true"] { background: linear-gradient(90deg, var(--ff-t), var(--ff-n)); color: #fff; }
.md-tabs button[aria-pressed="true"] .n { background: rgba(255,255,255,.25); }
.md-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.md-f { display: grid; gap: 4px; font-size: 12px; font-weight: 700; color: var(--ff-mute); }
.md-f select { min-height: 40px; padding: 0 34px 0 14px; border-radius: 14px; border: 1.5px solid #D5E5DD; background: #fff; font: 600 14px var(--font); color: var(--ff-ink); max-width: 220px; }
.md-clear { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: none; color: var(--ff-b1); font: 700 14px var(--font); cursor: pointer; text-decoration: underline; }
.md-sec { margin-top: 24px; }
.md-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.md-head .ff-h3 { margin: 0; }
.md-head .ff-h3 small { font: 500 13px var(--font); color: var(--ff-mute); margin-left: 6px; }
.md-more { border: 0; background: none; cursor: pointer; font: 700 14px var(--font); color: var(--ff-b1); }
.md-ch { margin: 18px 0 0; font: 800 16px var(--font-t); color: var(--ff-n); } .md-ch small { color: var(--ff-mute); font-weight: 600; font-size: 13px; margin-left: 4px; }
.md-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; margin-top: 12px; }
.md-grid-d { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.md-grid-a { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
.md-grid-b { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
/* video cards */
.md-v { display: flex; flex-direction: column; background: #fff; border-radius: 24px; overflow: hidden; box-shadow: var(--ff-clay); min-width: 0; }
.md-v-t { position: relative; height: 128px; display: grid; place-items: center; background: var(--ff-grad-d); color: #fff; }
.md-v:nth-child(4n+2) .md-v-t { background: linear-gradient(120deg, #1A759F, #52B69A); }
.md-v:nth-child(4n+3) .md-v-t { background: linear-gradient(120deg, #34A0A4, #B5E48C); }
.md-v:nth-child(4n+4) .md-v-t { background: linear-gradient(120deg, #1E6091, #76C893); }
.md-v.seen .md-v-t { filter: saturate(.55); }
.md-play { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.95); color: var(--ff-n); box-shadow: 0 10px 24px -10px rgba(0,0,0,.5); }
.md-play svg { width: 22px; height: 22px; margin-left: 3px; }
.md-dur { position: absolute; right: 12px; bottom: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(14,42,63,.75); font: 700 12px var(--font); }
.md-lang { position: absolute; left: 12px; top: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.25); font: 700 11px var(--font); }
.md-seen { position: absolute; right: 12px; top: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: #E9F6C9; color: var(--ff-n); font: 700 11px var(--font); }
.md-seen svg { width: 12px; height: 12px; }
.md-v-b { display: grid; gap: 4px; padding: 14px 16px 6px; }
.md-v-b strong { font: 800 15px/1.3 var(--font-t); color: var(--ff-ink); }
.md-v-b small { color: var(--ff-mute); font-size: 13px; }
.md-from { font-size: 12.5px; font-weight: 700; color: var(--ff-b1); text-decoration: none; margin-top: 4px; }
.md-from:hover { text-decoration: underline; }
.md-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.md-meta span { padding: 3px 9px; border-radius: 999px; background: var(--ff-soft); color: var(--ff-n); font-size: 11.5px; font-weight: 700; }
.md-v .video-card.md-play-row { margin: auto 0 0; padding: 8px 16px 16px; border: 0; background: none; box-shadow: none; display: flex; align-items: center; gap: 10px; }
.md-v .video-card.playing { padding: 0 0 12px; display: block; }
.md-later { margin-left: auto; width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--ff-soft); color: var(--ff-n); cursor: pointer; }
.md-later svg { width: 18px; height: 18px; } .md-later[aria-pressed="true"] { background: #FDEBD0; color: #B8761A; }
.ff-pill.sm { min-height: 38px; padding: 0 16px; font-size: 14px; border: 0; cursor: pointer; font-weight: 700; }
.ff-pill em { font-style: normal; font-weight: 600; opacity: .75; font-size: 12.5px; }
/* diagram cards */
.md-d { display: flex; flex-direction: column; background: #fff; border-radius: 24px; overflow: hidden; box-shadow: var(--ff-clay); color: inherit; text-decoration: none; min-width: 0; border: 0; padding: 0; text-align: left; cursor: zoom-in; font: inherit; }
.md-d-img { height: 170px; padding: 10px; background: var(--ff-bg); display: grid; place-items: center; overflow: hidden; pointer-events: none; }
.md-d-img .diagram { margin: 0; width: 100%; height: 100%; min-width: 0 !important; overflow: hidden; }
.md-d-img figcaption, .md-d-img .dia-legend, .md-d-img ol { display: none; }
.md-d-img svg { width: 100% !important; height: 100% !important; min-width: 0 !important; }
.md-d-b { display: grid; gap: 4px; padding: 12px 16px 16px; }
.md-d-b strong { font: 800 15px var(--font-t); color: var(--ff-ink); } .md-d-b small { font-size: 12.5px; color: var(--ff-mute); }
/* audio cards */
.md-a { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: #fff; border-radius: 24px; box-shadow: var(--ff-clay); min-width: 0; }
.md-a-i { flex: none; width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--ff-grad); color: var(--ff-n); }
.md-a-i svg { width: 22px; height: 22px; }
.md-a-b { display: grid; gap: 4px; min-width: 0; }
.md-a-b strong { font: 800 15px/1.3 var(--font-t); color: var(--ff-ink); } .md-a-b small { color: var(--ff-mute); font-size: 13px; }
.md-a-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
/* books & articles */
.md-b { display: flex; flex-direction: column; gap: 6px; padding: 18px; background: #fff; border-radius: 24px; box-shadow: var(--ff-clay); min-width: 0; }
.md-b-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.md-b-t { padding: 3px 10px; border-radius: 999px; background: var(--ff-soft); color: var(--ff-n); font: 800 11.5px var(--font); text-transform: uppercase; letter-spacing: .04em; }
.md-b-t.t-guide { background: #E3F1EC; } .md-b-t.t-db { background: #E4EEF7; } .md-b-t.t-article { background: #FDEBD0; color: #8A5A12; } .md-b-t.t-sheet { background: #E9F6C9; }
.md-badge { padding: 3px 10px; border-radius: 999px; font: 700 11.5px var(--font); }
.md-badge.h { background: #E9F6C9; color: #2E6B2E; } .md-badge.l { background: #EEF2F5; color: var(--ff-mute); }
.md-b strong { font: 800 16px/1.3 var(--font-t); color: var(--ff-ink); margin-top: 4px; }
.md-b small { color: var(--ff-mute); font-size: 13px; }
.md-b p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ff-ink); }
.md-b .md-b-for { font-size: 12.5px; color: var(--ff-n); font-weight: 600; }
.md-b .md-b-lic { font-size: 12px; color: var(--ff-mute); }
.md-b-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
/* documents, offline, notes */
.md-docs { margin-top: 12px; }
.md-off { margin-top: 12px; }
.md-offline-c { padding: 22px; }
.md-offl { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.md-offl li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ff-ink); line-height: 1.45; }
.md-offl li svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--ff-mute); }
.md-offl li.ok svg { color: var(--ff-g4); }
.md-note { margin: 12px 0 0; font-size: 12.5px; color: var(--ff-mute); }
.md-none { margin-top: 28px; text-align: center; }
/* big diagram viewer + research sheet (dialog) */
html.md-lock, html.md-lock body { overflow: hidden; }
.md-dia { position: fixed; inset: 0; z-index: 400; display: flex; flex-direction: column; background: rgba(10, 30, 46, .92); color: #fff; }
.md-dia-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px clamp(12px, 2.6vw, 36px); background: rgba(14,42,63,.9); }
.md-dia-top b { display: block; font: 800 17px var(--font-t); } .md-dia-top small { font-size: 12.5px; opacity: .75; }
.md-dia-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.md-dia-tools button, .md-dia-tools a { min-height: 40px; min-width: 40px; padding: 0 14px; border-radius: 999px; border: 0; display: inline-grid; place-items: center; background: rgba(255,255,255,.14); color: #fff; font: 700 14px var(--font); cursor: pointer; text-decoration: none; }
.md-dia-tools button[aria-pressed="true"] { background: var(--ff-l); color: var(--ff-n); }
.md-dia-tools a { background: #fff; color: var(--ff-n); }
.md-dia-tools svg { width: 18px; height: 18px; }
.md-dia-stage { flex: 1; overflow: hidden; display: grid; place-items: center; touch-action: none; cursor: grab; padding: 16px; }
.md-dia-stage:active { cursor: grabbing; }
.md-dia-img { width: min(1000px, 100%); max-height: 100%; background: #fff; border-radius: 22px; padding: 14px; color: var(--ff-ink); transform-origin: center; user-select: none; }
.md-dia-img .diagram { margin: 0; } .md-dia-img svg { width: 100%; height: auto; max-height: 72vh; }
.md-sheet { overflow-y: auto; }
.md-sheet-b { width: min(760px, calc(100% - 32px)); margin: 20px auto 40px; padding: 26px; border-radius: 26px; background: #fff; color: var(--ff-ink); }
.md-sheet-b h2 { margin: 0 0 8px; font: 800 22px/1.3 var(--font-t); color: var(--ff-n); }
.md-sheet-b h3 { margin: 18px 0 6px; font: 800 15px var(--font-t); color: var(--ff-n); }
.md-sheet-b p { line-height: 1.6; }
.md-sheet-w { padding: 10px 14px; border-radius: 14px; background: #FDEBD0; color: #8A5A12; font-size: 13px; font-weight: 600; }
/* audio player bar (reading aloud) */
.md-abar { position: fixed; z-index: 350; left: 50%; transform: translateX(-50%); bottom: 96px; width: min(560px, calc(100% - 24px)); display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 22px; background: var(--ff-n); color: #fff; box-shadow: 0 22px 44px -18px rgba(14,42,63,.7); }
.md-abar-i { flex: none; width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: var(--ff-grad); color: var(--ff-n); }
.md-abar-i svg { width: 18px; height: 18px; }
.md-abar-t { flex: 1; min-width: 0; display: grid; gap: 6px; }
.md-abar-t b { font: 700 13.5px var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.md-abar-p { height: 5px; border-radius: 999px; background: rgba(255,255,255,.2); overflow: hidden; } .md-abar-p i { display: block; height: 100%; background: var(--ff-l); border-radius: 999px; }
.md-abar button { flex: none; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 999px; border: 0; background: rgba(255,255,255,.14); color: #fff; font: 700 13px var(--font); cursor: pointer; display: grid; place-items: center; }
.md-abar button svg { width: 16px; height: 16px; }
/* "Listen" button at the top of a v2 lesson */
.md-listen { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 14px; margin-left: auto; margin-right: 8px; border-radius: 999px; border: 0; background: var(--ff-soft); color: var(--ff-n); font: 700 13px var(--font); cursor: pointer; }
.md-listen svg { width: 14px; height: 14px; }
.md-listen:hover { background: #DDEFE4; }
@media (max-width: 860px) {
  .md-grid, .md-grid-a, .md-grid-b { grid-template-columns: minmax(0, 1fr); }
  .md-grid-d { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .md-d-img { height: 120px; }
  .md-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; } .md-tabs button { flex: none; }
  .md-f { flex: 1 1 140px; } .md-f select { max-width: none; width: 100%; }
  .md-abar { bottom: 100px; }
  .md-dia-top { padding: 10px 12px; } .md-dia-tools button, .md-dia-tools a { padding: 0 10px; }
}
@media (min-width: 861px) { .md-abar { bottom: 110px; } }
.md-a-btns .ff-pill { white-space: nowrap; }
@media (max-width: 860px) { .md-hero .ff-art { display: none; } .md-hero .md-search { max-width: none; } }

/* 32i. Media library by field › subject › chapter › lesson (owner, 23 Nov 2026) */
.md-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 22px 0 0; font-size: 14px; }
.md-crumbs a { color: var(--ff-b1); font-weight: 700; text-decoration: none; } .md-crumbs a:hover { text-decoration: underline; }
.md-crumbs span { color: var(--ff-mute); } .md-crumbs b { color: var(--ff-ink); }
.md-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 12px; }
.md-tile { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 24px; background: #fff; box-shadow: var(--ff-clay); color: inherit; text-decoration: none; min-width: 0; }
.md-tile.big { padding: 22px; }
.md-tile.soon { opacity: .6; box-shadow: none; border: 2px dashed #D5E5DD; background: transparent; }
.md-tile-i { flex: none; width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; background: var(--ff-grad); color: var(--ff-n); }
.md-tile.big .md-tile-i { background: var(--ff-grad-d); color: #fff; }
.md-tile-i svg { width: 24px; height: 24px; }
.md-tile-b { display: grid; gap: 6px; min-width: 0; flex: 1; }
.md-tile-b strong { font: 800 17px/1.25 var(--font-t); color: var(--ff-ink); }
.md-tile-b small { color: var(--ff-mute); font-size: 13px; }
.md-go { flex: none; font: 800 22px var(--font-t); color: var(--ff-b1); }
.md-cnt { display: flex; flex-wrap: wrap; gap: 6px; }
.md-cnt i { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: var(--ff-soft); color: var(--ff-n); font: 700 12px var(--font); font-style: normal; }
.md-cnt svg { width: 12px; height: 12px; }
.md-rows { display: grid; gap: 10px; margin-top: 12px; }
.md-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 20px; background: #fff; box-shadow: var(--ff-clay); color: inherit; text-decoration: none; }
.md-row-n { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--ff-soft); color: var(--ff-n); font: 800 15px var(--font-t); }
.md-lhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; }
.md-lhead .ff-h3 { margin: 0; }
.md-kinds { margin-top: 14px; }
.md-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.md-jump button { display: inline-flex; gap: 6px; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: #fff; color: var(--ff-n); font: 700 13.5px var(--font); cursor: pointer; box-shadow: 0 8px 18px -14px rgba(24,78,119,.6); }
.md-jump span { padding: 0 7px; border-radius: 999px; background: var(--ff-soft); font-size: 12px; }
#md-s-gen, [id^="md-s-"] { scroll-margin-top: 90px; }
@media (max-width: 860px) { .md-tiles { grid-template-columns: minmax(0, 1fr); } .md-tile { padding: 14px; } .md-row { padding: 12px 14px; } }

/* 32j. Media library › My files: the student's own books, notes and sheets, private, on the phone (prototype 23 Nov 2026) */
.mf-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px 28px; padding: 22px; align-items: center; }
.mf-top .ff-btns { grid-column: 1 / -1; margin: 0; }
.mf-private { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0 0; padding: 12px 14px; border-radius: 16px; background: var(--ff-soft); color: var(--ff-ink); font-size: 14px; line-height: 1.45; }
.mf-private svg { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.mf-store { display: grid; gap: 6px; }
.mf-bar { height: 12px; border-radius: 99px; background: var(--ff-line); overflow: hidden; }
.mf-bar i { display: block; height: 100%; border-radius: inherit; background: var(--ff-grad); min-width: 4px; }
.mf-store small { color: var(--ff-mute); font-size: 13px; }
.mf-soon { display: inline-flex; align-items: center; gap: 6px; }
.mf-soon svg { width: 16px; height: 16px; }
.mf-form { padding: 22px; margin-bottom: 22px; }
.mf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin-top: 12px; }
.mf-grid label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ff-ink); min-width: 0; }
.mf-grid .wide { grid-column: 1 / -1; }
.mf-grid input, .mf-grid select, .mf-grid textarea { font: inherit; font-weight: 400; font-size: 15px; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--ff-line); background: #fff; color: var(--ff-ink); min-width: 0; width: 100%; box-sizing: border-box; }
.mf-grid textarea { resize: vertical; line-height: 1.5; }
.mf-msg { min-height: 1em; color: #b42318; font-size: 14px; margin: 10px 0 0; }
.mf-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mf-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 12px 16px; border-radius: 20px; background: #fff; box-shadow: var(--ff-clay); }
.mf-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--ff-soft); color: var(--ff-n); }
.mf-ic svg { width: 20px; height: 20px; }
.mf-ic.k-book { background: var(--ff-grad); color: #fff; }
.mf-t { display: grid; gap: 2px; min-width: 0; }
.mf-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mf-t small { color: var(--ff-mute); font-size: 13px; }
.mf-where { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ff-mute); white-space: nowrap; }
.mf-where svg { width: 14px; height: 14px; }
.mf-btns { display: inline-flex; gap: 6px; align-items: center; }
.mf-del { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; border: 0; background: transparent; color: var(--ff-mute); cursor: pointer; }
.mf-del:hover, .mf-del:focus-visible { background: #fdecea; color: #b42318; }
.mf-del svg { width: 18px; height: 18px; }
.mf-sheet { line-height: 1.6; }
@media (max-width: 860px) {
  .mf-top { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .mf-grid { grid-template-columns: minmax(0, 1fr); }
  .mf-item { grid-template-columns: auto minmax(0, 1fr) auto; padding: 12px; }
  .mf-where { display: none; }
}
@media (max-width: 860px) { .mf-top .ff-btns .ff-pill.light, .mf-form .ff-btns .ff-pill.light { display: inline-flex; } }
.md-more svg { width: 16px; height: 16px; flex: none; vertical-align: -3px; margin-right: 4px; }
.mf-more { justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 8px 14px; border-radius: 99px; border: 1.5px solid var(--ff-b1, #34A0A4); background: #fff; color: var(--ff-n); font: 700 14px var(--font-t); cursor: pointer; }
.mf-more svg { width: 16px; height: 16px; }
.mf-packs { padding: 22px; display: grid; gap: 16px; }
.mf-pack-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mf-pack { display: grid; gap: 4px; padding: 16px; border-radius: 20px; background: var(--ff-soft); text-align: center; }
.mf-pack b { font: 800 24px/1.1 var(--font-t); color: var(--ff-n); }
.mf-pack small { color: var(--ff-mute); }
.mf-pack em { font-style: normal; font-size: 13px; color: var(--ff-ink); }
.mf-code { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; align-items: end; }
.mf-code label { display: grid; gap: 4px; font-weight: 700; color: var(--ff-ink); }
.mf-code small { font-weight: 400; color: var(--ff-mute); }
.mf-code input { font: inherit; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--ff-line); letter-spacing: .06em; }
.mf-code .mf-msg { grid-column: 1 / -1; margin: 0; color: var(--ff-n); }
.mf-full { margin: 0; padding: 12px 14px; border-radius: 16px; background: #fff8e6; color: var(--ff-ink); font-size: 14px; line-height: 1.45; }
@media (max-width: 860px) { .mf-pack-row { grid-template-columns: minmax(0, 1fr); } .mf-pack { grid-template-columns: auto 1fr; text-align: left; align-items: center; } .mf-pack em { grid-column: 1 / -1; } .mf-code { grid-template-columns: minmax(0, 1fr); } }
/* 32k. Owner console › Prices & income (prototype 23 Nov 2026) */
.mn-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mn-row .field small, .ncx-form .field small { font-weight: 400; opacity: .75; }
.mn-age { margin: 0; font-size: 13px; opacity: .8; }
.mn-age.old { color: #b42318; opacity: 1; font-weight: 600; }
.mn-t { width: 100%; border-collapse: collapse; }
.mn-t th, .mn-t td { text-align: left; padding: 8px 6px; border-bottom: 1px solid rgba(127,127,127,.18); }
.mn-t input { width: 100%; max-width: 120px; font: inherit; padding: 8px 10px; border-radius: 10px; border: 1.5px solid rgba(127,127,127,.3); background: transparent; color: inherit; }
.mn-figs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.mn-fig { display: grid; gap: 4px; padding: 14px; border-radius: 16px; background: rgba(52,160,164,.10); }
.mn-fig b { font: 800 20px/1.1 var(--font-t); }
.mn-fig small { font-size: 12px; opacity: .8; }
.mf-rate { margin: 0; font-size: 13px; color: var(--ff-mute); }
.mf-pack strong { font-weight: 800; color: var(--ff-n); }
@media (max-width: 860px) { .mn-row { grid-template-columns: minmax(0, 1fr); } .mn-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ===== 32l. HOME REDESIGN (23 Nov 2026, owner's "oui" to /mnt/project-files/nile-campus/home-parfaite/): .hx-* =====
   Banner with 3 figures · quick actions overlapping the banner · sections Today / My studies / My spaces & news /
   Discover in a 3-column grid (2 below 1180 px, 1 on phones) · visitor version (.hx-vis). */
.hx .hx-hero { min-height: 0; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: center; margin-bottom: 0; }
.hx .hx-hero .ff-hero-t { max-width: none; padding: 34px 0 86px 44px; }
.hx .hx-hero .ff-h1 { margin-bottom: 6px; }
.hx-btns { flex-wrap: wrap; }
.hx-btns .ff-pill.light { display: inline-flex; }
button.ff-pill { border: 0; cursor: pointer; }
.hx-stats { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0 44px 60px 0; }
.hx-stats a { display: block; padding: 16px 18px; border-radius: 22px; background: rgba(255,255,255,.62); color: var(--ff-n); text-decoration: none; transition: transform .2s var(--ease); }
.hx-stats a:hover { transform: translateY(-2px); }
.hx-stats b { display: block; font: 900 30px/1.1 var(--font-t); letter-spacing: -.02em; }
.hx-stats small { font-size: 13px; font-weight: 600; color: var(--ff-b1); }
.hx-quick { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: -34px 24px 8px; }
.hx-quick a { display: flex; gap: 12px; align-items: center; padding: 13px 16px; border-radius: 22px; background: #fff; box-shadow: var(--ff-clay); color: var(--ff-n); text-decoration: none; min-width: 0; }
.hx-quick i { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--ff-soft); color: var(--ff-b1); }
.hx-quick i svg { width: 19px; height: 19px; }
.hx-quick b { display: block; font: 700 14px var(--font-t); }
.hx-quick small { display: block; font-size: 12px; color: var(--ff-mute); }
.hx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; }
.hx-grid > .ff-card { min-width: 0; margin: 0; }
.hx-w2 { grid-column: span 2; } .hx-w3 { grid-column: 1 / -1; }
.hx-sec { grid-column: 1 / -1; margin: 22px 4px -6px; font: 800 13px var(--font-t); letter-spacing: .14em; text-transform: uppercase; color: var(--ff-mute); }
.hx-todo { display: flex; gap: 16px; align-items: center; margin-top: 12px; }
.hx-todo > span { flex: none; }
.hx-todo ul { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 0; display: grid; gap: 8px; }
.hx-todo a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 16px; background: var(--ff-bg); color: var(--ff-ink); text-decoration: none; font-size: 14px; }
.hx-todo a.done .hx-tt { text-decoration: line-through; color: var(--ff-mute); }
.hx-todo .ff-bx { color: #fff; flex: none; } .hx-todo .ff-bx.on { background: linear-gradient(135deg, var(--ff-g3), var(--ff-t)); border: 0; }
.hx-tt { flex: 1; min-width: 0; }
.hx-todo small { flex: none; font-size: 12px; color: var(--ff-mute); }
.hx-flash { margin-top: 12px; border-radius: 22px; padding: 20px 22px; min-height: 160px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; background: linear-gradient(120deg, #184E77, #1A759F 55%, #34A0A4); color: #fff; }
.hx-flash small { font: 800 11px var(--font-t); letter-spacing: .14em; text-transform: uppercase; color: var(--ff-l); }
.hx-fa { margin: 6px 0 0; font: 700 19px/1.3 var(--font-t); }
.hx-fq { margin: 6px 0 0; font-size: 13px; opacity: .8; }
.hx-frow { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.hx-frow button { border: 0; cursor: pointer; border-radius: 999px; padding: 8px 15px; font: 700 13px var(--font-t); background: rgba(255,255,255,.18); color: #fff; }
.hx-frow button.on { background: #fff; color: var(--ff-n); }
.hx-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin: 12px 0 6px; }
.hx-days span { text-align: center; border-radius: 14px; padding: 6px 0 5px; background: var(--ff-bg); font: 700 11.5px var(--font-t); color: var(--ff-mute); }
.hx-days b { display: block; font-size: 16px; color: var(--ff-n); }
.hx-days span.on { background: var(--ff-n); color: #fff; } .hx-days span.on b { color: #fff; }
.hx-days i, .hx-days em { display: block; width: 6px; height: 6px; margin: 3px auto 0; border-radius: 50%; background: var(--ff-t); }
.hx-days em { background: transparent; }
.hx-ev { list-style: none; margin: 0; padding: 0; }
.hx-ev a { display: flex; gap: 12px; align-items: center; padding: 10px 2px; border-top: 1px solid var(--ff-line); color: var(--ff-ink); text-decoration: none; font-size: 14px; }
.hx-ev li:first-child a { border-top: 0; }
.hx-d { flex: none; width: 48px; text-align: center; font: 800 12px var(--font-t); color: var(--ff-b1); }
.hx-tag { flex: none; padding: 3px 9px; border-radius: 999px; font: 700 11px var(--font-t); background: var(--ff-soft); color: var(--ff-b1); }
.hx-tag.due { background: #FFF1DB; color: #8A5200; }
.hx-les { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.hx-les li { min-width: 0; }
.hx-les a { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 20px; background: var(--ff-bg); color: var(--ff-ink); text-decoration: none; transition: transform .2s var(--ease); }
.hx-les a:hover { transform: translateY(-2px); }
.hx-th { flex: none; width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--ff-l), var(--ff-g3)); color: var(--ff-n); }
.hx-th svg { width: 24px; height: 24px; }
.hx-les b { display: block; font: 700 15px var(--font-t); color: var(--ff-n); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hx-les small { display: block; color: var(--ff-mute); font-size: 12.5px; }
.hx-les .hm-bar { max-width: 260px; }
.hx-go { flex: none; padding: 8px 16px; border-radius: 999px; background: var(--ff-n); color: #fff; font: 700 13px var(--font-t); }
.hx-bars { display: block; margin-top: 14px; } .hx-bars svg { display: block; max-width: 100%; margin: 0 auto; }
.hx-minis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hx-minis .ff-mini b { font-size: 20px; }
.hx-sp { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 22px; margin-top: 10px; background: linear-gradient(120deg, #E9F6C9, #B9E6C3); color: var(--ff-n); text-decoration: none; }
.hx-sp.d { background: linear-gradient(120deg, #184E77, #1A759F 60%, #34A0A4); color: #fff; }
.hx-sp.o { background: var(--ff-bg); }
.hx-sp > span:nth-child(2) { flex: 1; min-width: 0; }
.hx-sp b { display: block; font: 800 17px var(--font-t); }
.hx-sp small { display: block; font-size: 12.5px; opacity: .85; }
.hx-ic { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(255,255,255,.55); }
.hx-sp.d .hx-ic { background: rgba(255,255,255,.18); }
.hx-ic svg { width: 22px; height: 22px; }
.hx-sp .hm-go { width: 34px; height: 34px; }
.hx-sp.d .hm-go { background: rgba(255,255,255,.18); color: #fff; }
.hx-n { flex: none; padding: 3px 10px; border-radius: 999px; background: var(--ff-l); color: var(--ff-n); font: 800 12px var(--font-t); }
.hx-news { list-style: none; margin: 8px 0 0; padding: 0; }
.hx-news li > a, .hx-news li { display: block; color: var(--ff-ink); text-decoration: none; }
.hx-news li { padding: 10px 0; border-top: 1px solid var(--ff-line); }
.hx-news li:first-child { border-top: 0; }
.hx-news b { display: block; margin-top: 4px; font: 700 14.5px var(--font-t); color: var(--ff-n); }
.hx-news small { color: var(--ff-mute); font-size: 12px; }
.hx-bd { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hx-bd li { text-align: center; padding: 12px 6px; border-radius: 18px; background: var(--ff-bg); font: 700 12px/1.25 var(--font-t); color: var(--ff-n); }
.hx-bd i { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 6px; border-radius: 50%; background: linear-gradient(135deg, var(--ff-l), var(--ff-g3)); color: var(--ff-n); }
.hx-bd i svg { width: 20px; height: 20px; }
.hx-bd li.off { opacity: .5; } .hx-bd li.off i { background: var(--ff-line); color: var(--ff-mute); }
.hx-disc { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hx-disc .hm-fields { margin: 0; flex: 1; }
.hx-fig { display: block; padding: 10px 16px; border-radius: 18px; background: var(--ff-bg); color: var(--ff-ink); text-decoration: none; font-size: 14px; }
.hx-fig b { font: 900 24px var(--font-t); color: var(--ff-n); margin-inline-end: 6px; }
.hx-acc { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.hx-acc span, .hx-acc a { display: inline-flex; gap: 5px; align-items: center; padding: 4px 11px; border-radius: 999px; background: var(--ff-soft); color: var(--ff-b1); font-size: 12.5px; font-weight: 600; text-decoration: none; }
.hx-acc a.no { background: #FFF1DB; color: #8A5200; }
.hx-acc svg { width: 13px; height: 13px; }
.hx-acc [hidden] { display: none; }
.hx-feats { position: relative; z-index: 2; display: grid; gap: 10px; padding: 34px 44px 70px 0; }
.hx-feats a { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 20px; background: rgba(255,255,255,.7); color: var(--ff-n); text-decoration: none; }
.hx-feats svg { flex: none; width: 22px; height: 22px; }
.hx-feats b { display: block; font: 800 15px var(--font-t); }
.hx-feats small { font-size: 13px; color: var(--ff-ink); }
.hx-vis + .hx-grid { margin-top: 22px; }
.ncx-dark .hx-quick a, .ncx-dark .hx-stats a { background: #10293B; color: #E6F1F5; }
@media (max-width: 1180px) {
  .hx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hx-w2 { grid-column: 1 / -1; }
  .hx .hx-hero { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hx .hx-hero .ff-hero-t { padding: 30px 32px 12px; }
  .hx-stats, .hx-feats { padding: 0 32px 70px; }
}
@media (max-width: 860px) {
  .hx-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .hx .hx-hero .ff-hero-t { padding: 22px 20px 8px; }
  .hx-stats { gap: 8px; padding: 0 20px 64px; }
  .hx-stats a { padding: 10px 12px; border-radius: 18px; } .hx-stats b { font-size: 22px; } .hx-stats small { font-size: 11.5px; }
  .hx-feats { padding: 6px 20px 64px; }
  .hx-quick { display: flex; overflow-x: auto; margin: -30px 0 4px; padding: 0 4px 10px; scrollbar-width: none; }
  .hx-quick a { flex: 0 0 auto; }
  .hx-sec { margin: 14px 2px -4px; }
  .hx-go { display: none; }
  .hx-todo { align-items: flex-start; } .hx-todo > span svg { width: 76px; height: 76px; }
}

/* ===== 32m. EXPLORE FIRST (23 Nov 2026, owner's "ok" to /mnt/project-files/nile-campus/explore/): .xp-* =====
   The Explore pill comes before Home and the site link opens Explore. */
.sp-switch .sp-xp i { background: var(--ff-t); }
.xp { display: block; }
.xp a { text-decoration: none; }
.xp-hero { position: relative; overflow: hidden; border-radius: 34px; min-height: 440px; background: var(--ff-grad); color: var(--ff-n); text-align: start; }
.xp-art { position: absolute; inset: 0; z-index: 0; }
.xp-art svg { width: 100%; height: 100%; display: block; }
.xp-hero-t { position: relative; z-index: 1; padding: 42px 48px 84px; max-width: 660px; min-height: 440px; box-sizing: border-box; background: linear-gradient(90deg, rgba(233, 246, 201, .97) 62%, rgba(233, 246, 201, 0)); }
.xp-hero-t .xp-srch, .xp-hero-t .xp-results { margin-inline: 0; }
.xp-hero-t .xp-hints, .xp-hero-t .xp-figs { justify-content: flex-start; }
.xp-news { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.xp-nw { background: #fff; border-radius: 24px; padding: 18px 20px; box-shadow: var(--ff-clay); color: var(--ff-ink); display: block; }
.xp-nw-who { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.xp-nw-who b { display: block; font: 700 14.5px var(--font-t); color: var(--ff-n); }
.xp-nw-who small { color: var(--ff-mute); font-size: 12.5px; }
.xp-nw-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--ff-grad-d); color: #fff; display: grid; place-items: center; font: 800 14px var(--font-t); flex: none; }
.xp-nw-t { display: block; font: 800 16px var(--font-t); color: var(--ff-n); }
.xp-nw p { margin: 6px 0 0; font-size: 14px; }
.xp-nw-ask { background: var(--ff-grad-d); color: #fff; }
.xp-nw-ask .xp-nw-t, .xp-nw-ask p { color: #fff; }
.xp-nw-go { display: inline-block; margin-top: 12px; background: #fff; color: var(--ff-n); border-radius: 999px; padding: 8px 16px; font: 700 13px var(--font-t); }
.xp-hero .ff-kick { margin: 0; }
.xp-h1 { font-family: var(--font-t); font-size: clamp(30px, 4.4vw, 54px); margin: 6px 0 8px; font-weight: 900; letter-spacing: -.03em; line-height: 1.05; color: var(--ff-n); }
.xp-sub { margin: 0; color: var(--ff-b1); font-weight: 600; }
.xp-srch { max-width: 720px; margin: 18px auto 0; background: #fff; border-radius: 999px; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 20px; box-shadow: 0 18px 36px -20px rgba(24, 78, 119, .6); }
.xp-srch > svg { width: 20px; height: 20px; color: var(--ff-mute); flex: none; }
.xp-srch input:focus, .xp-srch input:focus-visible { outline: none; box-shadow: none; border: 0; }
.xp-srch input { flex: 1; min-width: 0; border: 0; background: transparent; font: 500 15px var(--font); color: var(--ff-ink); padding: 8px 0; outline: none; }
.xp-srch:focus-within { box-shadow: 0 0 0 3px rgba(52, 160, 164, .35), 0 18px 36px -20px rgba(24, 78, 119, .6); }
.xp-go { border: 0; cursor: pointer; background: var(--ff-n); color: #fff; border-radius: 999px; padding: 11px 22px; font: 700 14px var(--font-t); }
.xp-hints { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
.xp-hint { border: 0; cursor: pointer; background: rgba(255, 255, 255, .7); border-radius: 999px; padding: 6px 14px; font: 700 13px var(--font-t); color: var(--ff-n); }
.xp-hint:hover, .xp-hint:focus-visible { background: #fff; }
.xp-results { max-width: 720px; margin: 14px auto 0; text-align: start; background: #fff; border-radius: 24px; padding: 14px; box-shadow: var(--ff-clay); display: grid; gap: 12px; }
.xp-results[hidden] { display: none; }
.xp-hits-b h3 { margin: 2px 6px 6px; font: 800 12px var(--font-t); letter-spacing: .12em; text-transform: uppercase; color: var(--ff-mute); }
.xp-hits-b h3 small { font-size: 12px; color: var(--ff-b1); }
.xp-hit { display: flex; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 16px; color: var(--ff-ink); }
.xp-hit:hover, .xp-hit:focus-visible { background: var(--ff-bg); }
.xp-hit > span:nth-child(2) { min-width: 0; flex: 1; }
.xp-hit b { display: block; font: 700 14.5px var(--font-t); color: var(--ff-n); }
.xp-hit small { display: block; font-size: 12.5px; color: var(--ff-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xp-hit-ic { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--ff-soft); color: var(--ff-b1); flex: none; }
.xp-hit-ic svg { width: 18px; height: 18px; }
.xp-none { margin: 4px 8px; color: var(--ff-mute); }
.xp-figs { display: flex; gap: 12px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.xp-figs span { background: rgba(255, 255, 255, .55); border-radius: 20px; padding: 10px 18px; font-weight: 600; color: var(--ff-b1); }
.xp-figs b { font: 900 24px var(--font-t); color: var(--ff-n); margin-inline-end: 6px; }
.xp-doors { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: -44px 30px 0; position: relative; z-index: 1; }
.xp-door { border-radius: 28px; padding: 24px 26px; box-shadow: var(--ff-clay); background: #fff; display: flex; gap: 18px; align-items: center; color: var(--ff-ink); }
.xp-door.dark { background: var(--ff-grad-d); color: #fff; }
.xp-door-ic { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--ff-soft); color: var(--ff-n); flex: none; }
.xp-door-ic svg { width: 30px; height: 30px; }
.xp-door.dark .xp-door-ic { background: rgba(255, 255, 255, .18); color: #fff; }
.xp-door b { font: 800 21px var(--font-t); display: block; color: inherit; }
.xp-door:not(.dark) b { color: var(--ff-n); }
.xp-door small { font-size: 14px; opacity: .85; display: block; margin: 4px 0 8px; }
.xp-door em { font-style: normal; font: 700 12.5px var(--font-t); border-radius: 999px; padding: 4px 10px; background: var(--ff-soft); color: var(--ff-b1); display: inline-block; }
.xp-door.dark em { background: rgba(255, 255, 255, .2); color: #fff; }
.xp-sec { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 34px 4px 14px; }
.xp-sec h2 { margin: 0; font: 800 24px var(--font-t); color: var(--ff-n); }
.xp-sec a { color: var(--ff-b1); font-weight: 600; font-size: 14px; white-space: nowrap; }
.xp-ftiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.xp-ft { background: #fff; border-radius: 22px; padding: 16px; box-shadow: var(--ff-clay); color: var(--ff-ink); display: block; }
.xp-ft-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--ff-soft); color: var(--ff-n); margin-bottom: 10px; }
.xp-ft-ic svg { width: 24px; height: 24px; }
.xp-ft b { font: 800 15px var(--font-t); display: block; color: var(--ff-n); }
.xp-ft small { font-size: 12.5px; color: var(--ff-mute); }
.xp-ft.on { background: var(--ff-grad-d); }
.xp-ft.on b, .xp-ft.on small { color: #fff; }
.xp-ft.on .xp-ft-ic { background: rgba(255, 255, 255, .18); color: #fff; }
.xp-ft.soon { opacity: .8; }
.xp-tag { display: inline-block; margin-top: 8px; font: 700 11px var(--font-t); border-radius: 999px; padding: 3px 9px; background: #FFF1DB; color: #A0620A; }
.xp-media { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.xp-mt { border-radius: 22px; padding: 18px; color: #fff; background: var(--ff-grad-d); display: block; }
.xp-mt:nth-child(2) { background: linear-gradient(120deg, #1A759F, #52B69A); }
.xp-mt:nth-child(3) { background: linear-gradient(120deg, #34A0A4, #99D98C); }
.xp-mt:nth-child(4) { background: linear-gradient(120deg, #52B69A, #B5E48C); color: var(--ff-n); }
.xp-mt:nth-child(5) { background: #fff; color: var(--ff-n); box-shadow: var(--ff-clay); }
.xp-mt-ic svg { width: 24px; height: 24px; }
.xp-mt b { display: block; font: 800 16px var(--font-t); margin-top: 8px; }
.xp-mt small { font-size: 12.5px; opacity: .85; }
.xp-two { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.xp-reg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.xp-rg { background: var(--ff-bg); border-radius: 16px; padding: 10px 14px; display: flex; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--ff-ink); }
.xp-rg b { font: 800 15px var(--font-t); color: var(--ff-n); }
.xp-rg.p { background: var(--ff-grad-d); color: #fff; grid-column: span 2; }
.xp-rg.p b { color: var(--ff-l); }
.xp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.xp-steps li { display: flex; gap: 12px; align-items: center; background: var(--ff-bg); border-radius: 18px; padding: 12px 14px; }
.xp-n { width: 34px; height: 34px; border-radius: 50%; background: var(--ff-n); color: #fff; display: grid; place-items: center; font: 800 15px var(--font-t); flex: none; }
.xp-steps b:not(.xp-n) { font: 700 15px var(--font-t); color: var(--ff-n); display: block; }
.xp-steps small { display: block; color: var(--ff-mute); font-size: 12.5px; }
.xp-cta { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }
.xp-cta .ff-pill.light { background: var(--ff-bg); }
@media (max-width: 1180px) {
  .xp-ftiles, .xp-media { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .xp-news { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xp-two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .xp-hero { border-radius: 28px; }
  .xp-srch { padding: 6px 6px 6px 14px; }
  .xp-go { padding: 10px 14px; }
  .xp-doors { grid-template-columns: minmax(0, 1fr); margin: 14px 0 0; gap: 12px; }
  .xp-door { padding: 18px; }
  .xp-ftiles, .xp-media { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .xp-media .xp-mt:last-child { grid-column: span 2; }
  .xp-news { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .xp-hero { min-height: 0; }
  .xp-art { position: relative; height: 170px; }
  .xp-hero-t { max-width: none; min-height: 0; padding: 20px 18px 26px; background: #E9F6C9; }
  .xp-reg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xp-sec { margin: 26px 2px 12px; } .xp-sec h2 { font-size: 20px; }
}

/* ===== 32n. COURSE SPACES (VLE step 1, 23 Nov 2026, ent.js coursesPage / coursePage): .ent-course* =====
   One subject of one year of a faculty: list of spaces, the space page (sections = weeks, activities),
   teacher controls. Reuses the pathway look of section 30 (.ent-step). */
.ent-courses { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.ent-course { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: start; text-decoration: none; color: inherit; }
.ent-course-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--x-teal-soft, var(--primary-soft)); color: var(--x-teal, var(--primary)); }
.ent-course-ic svg { width: 22px; height: 22px; }
.ent-course-t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ent-course-t b { font-family: var(--font-t, inherit); font-size: 17px; overflow-wrap: anywhere; }
.ent-course-t .ent-bar { margin: 6px 0 2px; }
.ent-course-head .ent-meta { display: flex; align-items: center; gap: 6px; }
.ent-chiprow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.ent-step.is-off { background: var(--x-bg, var(--surface-2, #F4F6F8)); }
.ent-step.is-off .ent-step-dot { background: transparent; border: 1px dashed var(--x-line, var(--line-2)); color: var(--x-mute, var(--muted)); }
.ent-page summary { cursor: pointer; font-weight: 700; color: var(--x-teal, var(--primary)); }
.ent-page .pl-text { white-space: pre-line; margin-top: 6px; }
button.chip { border: 0; cursor: pointer; font: inherit; display: inline-flex; align-items: center; gap: 4px; }
button.chip svg { width: 14px; height: 14px; }
.ff-h4 { margin: 10px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--ff-mute, var(--muted)); }
.vle-spaces .ff-bx svg { width: 14px; height: 14px; }
.ent-checkbox { display: flex; align-items: center; gap: 8px; margin: 4px 0 10px; font-weight: 600; }
.ent-checkbox input { width: 18px; height: 18px; }
.ent-chiprow .chip { white-space: normal; max-width: 100%; text-align: left; }

/* ===== 32o. FORUM AND ROLL CALL IN A COURSE SPACE (VLE step 2, 24 Nov 2026, ent.js forumPage / rollActPage): .ent-post*, .ent-topic =====
   A forum = topics (card each, pinned first) with their replies; the roll call reuses .ent-roll / .ent-seg of section 30. */
.ent-topic.is-pinned { box-shadow: inset 4px 0 0 var(--ff-lime-d, var(--x-teal, var(--primary))), var(--ff-shadow, 0 1px 2px rgba(0,0,0,.06)); }
.ent-post { display: flex; flex-direction: column; gap: 6px; }
.ent-post.is-off { opacity: .72; }
.ent-post-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; font-size: 14px; }
.ent-post-av { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--x-teal-soft, var(--primary-soft)); color: var(--x-teal, var(--primary)); font-weight: 800; font-size: 13px; flex: none; }
.ent-post-t { margin: 2px 0 0; font-family: var(--font-t, inherit); font-size: 18px; line-height: 1.3; overflow-wrap: anywhere; }
.ent-post .pl-text { white-space: pre-line; overflow-wrap: anywhere; margin: 0; }
.ent-post-a { margin: 0; justify-content: flex-start; }
.ent-replies { margin: 12px 0 0 18px; padding-left: 14px; border-left: 2px solid var(--x-line, var(--line-2)); display: flex; flex-direction: column; gap: 14px; }
.ent-replies .ent-meta { margin: 0; }
.ent-reply { margin-top: 12px; }
.ent-reply summary { cursor: pointer; font-weight: 700; color: var(--x-teal, var(--primary)); }
.ent-reply form { margin-top: 8px; }
.ent-reply textarea { width: 100%; }
@media (max-width: 560px) { .ent-replies { margin-left: 4px; padding-left: 10px; } }

/* ===== 32p. GRADEBOOK OF A COURSE SPACE (VLE step 3, 24 Nov 2026, ent.js gradesPage / markForm / studentGrades): .ent-g* =====
   Grid students × items (scrolls sideways on phones, first column stays), charts with the existing bars, typed marks. */
.ent-course-a { margin: 4px 0 0; justify-content: flex-start; flex-wrap: wrap; }
.ent-gbook th, .ent-gbook td { vertical-align: top; white-space: nowrap; }
.ent-gbook thead th { min-width: 130px; }
.ent-gbook thead th small, .ent-gbook thead th .btn { display: block; margin-top: 4px; font-weight: 600; }
.ent-gh { display: block; white-space: normal; max-width: 180px; }
.ent-gbook tbody th, .ent-gbook tfoot th { position: sticky; left: 0; background: var(--x-card, var(--surface, #fff)); z-index: 1; text-align: left; white-space: normal; min-width: 150px; }
.ent-gbook tfoot td, .ent-gbook tfoot th { border-top: 2px solid var(--x-line, var(--line-2)); }
.ent-gbook td svg { width: 12px; height: 12px; vertical-align: -2px; margin-right: 2px; }
.ent-g-pub { color: var(--ff-green, #2E7D32); }
.ent-g-draft { color: var(--x-mute, var(--muted)); }
.ent-gchart { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ent-gchart li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr) 56px; gap: 10px; align-items: center; }
.ent-gc-t { font-size: 14px; overflow-wrap: anywhere; }
.ent-gchart b { text-align: right; }
.ent-ghist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; align-items: end; }
.ent-ghist li { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ent-gh-bar { display: flex; align-items: flex-end; width: 100%; height: 120px; border-radius: 10px; background: var(--x-bg, var(--surface-2, #F4F6F8)); overflow: hidden; }
.ent-gh-bar span { display: block; width: 100%; background: linear-gradient(180deg, var(--ff-lime, #99D98C), var(--ff-blue, #1A759F)); border-radius: 10px 10px 0 0; }
.ent-ghist small { font-size: 12px; color: var(--x-mute, var(--muted)); text-align: center; }
.ent-gitems { margin-bottom: 14px; }
.ent-gitems li { flex-wrap: wrap; gap: 8px; }
.ent-gitems .actions { align-items: center; flex-wrap: wrap; }
.ent-gw { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.ent-gw input { width: 70px; }
.ent-gmarks { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; }
.ent-gmarks li { display: grid; grid-template-columns: minmax(140px, 1fr) 140px minmax(0, 2fr); gap: 4px 14px; align-items: end; padding: 10px 0; border-bottom: 1px solid var(--x-line, var(--line-2)); }
.ent-gmarks li > b { align-self: center; }
.ent-gmarks .field { margin: 0; }
.ent-gmine { align-items: flex-start; }
.ent-gmine > span:first-child { display: flex; flex-direction: column; gap: 2px; }
.ent-gfb { display: flex; gap: 6px; align-items: flex-start; margin-top: 4px; color: var(--x-ink, inherit); }
.ent-gfb svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.ent-gscore { display: flex; flex-direction: column; align-items: flex-end; }
@media (max-width: 640px) { .ent-gmarks li { grid-template-columns: 1fr 1fr; } .ent-gmarks li > b { grid-column: 1 / -1; } .ent-gchart li { grid-template-columns: 1fr 48px; } .ent-gc-b { grid-column: 1 / -1; grid-row: 2; } }
.ent-gavg { display: flex; align-items: baseline; gap: 12px; margin: 6px 0; }
.pl-list li.ent-gmine > span:first-child { flex-direction: column; flex: 1 1 200px; align-items: flex-start; text-align: left; min-width: 0; }
.ent-gmine { justify-content: space-between; gap: 12px; }

/* ===== 32q. ONE CALENDAR (VLE step 4, 24 Nov 2026, ent.js calendarPage / calRow / calForm): .ent-c* =====
   Day / week / month of the classes, work due, tests, exams, events and days without classes. One colour per kind
   (--ck), used by the chips, the left edge of each row, the month labels and dots. Works in the dark console too. */
.ent-ck-class, .ent-ci-class { --ck: #1A759F; }
.ent-ck-due, .ent-ci-due { --ck: #C98A00; }
.ent-ck-test, .ent-ci-test { --ck: #7B5CD6; }
.ent-ck-exam, .ent-ci-exam { --ck: #D14343; }
.ent-ck-event, .ent-ci-event { --ck: #2E9C7E; }
.ent-ck-holiday, .ent-ci-holiday { --ck: #7D8E9B; }
.ent-cal-bar { display: flex; flex-direction: column; gap: 10px; }
.ent-cal-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ent-cal-nav h2 { margin: 0 0 0 6px; font: 800 clamp(18px, 2vw, 22px)/1.2 var(--font-t, inherit); }
.ent-cal-nav .btn { min-width: 40px; justify-content: center; }
.ent-cal-modes { display: flex; gap: 6px; flex-wrap: wrap; }
.ent-cal-modes .chip { text-decoration: none; }
.ent-cal-legend { display: flex; gap: 6px 12px; flex-wrap: wrap; }
.ent-ck { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap;
  color: var(--ck); background: color-mix(in srgb, var(--ck) 12%, transparent); }
.ent-ck svg { width: 13px; height: 13px; }
.ent-clist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ent-ci { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 9px 10px 9px 12px; border-radius: 14px;
  border-left: 4px solid var(--ck); background: color-mix(in srgb, var(--ck) 6%, var(--x-card, #fff)); }
.ent-ci-time { font-size: 13px; font-weight: 700; color: var(--x-mute, var(--muted)); font-variant-numeric: tabular-nums; }
.ent-ci-t { display: flex; flex-direction: column; min-width: 0; }
.ent-ci-t b { overflow-wrap: anywhere; }
.ent-ci-t a { color: inherit; text-decoration: none; }
.ent-ci-t a:hover, .ent-ci-t a:focus-visible { text-decoration: underline; }
.ent-ci-t small { color: var(--x-mute, var(--muted)); font-size: 13px; overflow-wrap: anywhere; }
.ent-ci-t .ent-ci-body { color: var(--x-ink, inherit); margin-top: 4px; white-space: pre-line; }
.ent-ci-k { display: flex; align-items: center; gap: 4px; justify-self: end; }
.ent-cweek { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; align-items: start; }
.ent-cday { padding: 12px; min-height: 140px; }
.ent-cday h3 { margin: 0 0 8px; font-size: 14px; text-transform: capitalize; }
.ent-cday h3 a { color: inherit; text-decoration: none; }
.ent-cday.is-today { outline: 2px solid var(--ff-t, #34A0A4); outline-offset: -2px; }
.ent-cday .ent-ci { grid-template-columns: minmax(0, 1fr); padding: 7px 8px 7px 10px; gap: 2px; }
.ent-cday .ent-ci-k { justify-self: start; }
.ent-cday .ent-ci-k .ent-ck span { display: none; }
.ent-cday-none { margin: 0; }
.ent-cmonth { padding: 12px; }
.ent-cm-head, .ent-cm-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.ent-cm-head span { font-size: 12px; font-weight: 800; color: var(--x-mute, var(--muted)); text-align: center; padding: 4px 0; text-transform: uppercase; letter-spacing: .04em; }
.ent-cm-row { margin-top: 6px; }
.ent-cm-day { display: flex; flex-direction: column; gap: 3px; min-height: 104px; padding: 6px; border-radius: 12px; text-decoration: none; color: inherit;
  background: var(--x-bg, var(--ff-bg, #F3F8F4)); border: 1px solid transparent; min-width: 0; }
.ent-cm-day:hover, .ent-cm-day:focus-visible { border-color: var(--ff-t, #34A0A4); }
.ent-cm-day.is-out { opacity: .45; }
.ent-cm-day.is-today b { background: var(--ff-n, #184E77); color: #fff; border-radius: 999px; padding: 0 7px; align-self: flex-start; }
.ent-cm-day b { font-size: 13px; }
.ent-cm-it { display: block; font-size: 11.5px; line-height: 1.35; padding: 2px 5px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--x-ink, var(--ff-ink, #0E2A3F)); background: color-mix(in srgb, var(--ck) 16%, transparent); border-left: 3px solid var(--ck); }
.ent-cm-it i { font-style: normal; font-weight: 700; margin-right: 3px; }
.ent-cm-more { font-size: 11px; font-weight: 700; color: var(--x-mute, var(--muted)); }
.ent-cm-dots { display: none; gap: 3px; flex-wrap: wrap; }
.ent-cm-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--ck); }
@media (max-width: 1100px) { .ent-cweek { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ent-cday { min-height: 0; } }
@media (max-width: 640px) {
  .ent-cweek { grid-template-columns: minmax(0, 1fr); }
  .ent-ci { grid-template-columns: 1fr auto; } .ent-ci-time { grid-column: 1 / -1; }
  .ent-cmonth { padding: 8px; } .ent-cm-head, .ent-cm-row { gap: 3px; }
  .ent-cm-day { min-height: 58px; padding: 4px; align-items: center; } .ent-cm-it, .ent-cm-more { display: none; } .ent-cm-dots { display: flex; justify-content: center; }
}

/* ===== 32r. ADVANCED TESTS (VLE step 5, 24 Nov 2026, ent.js runForm / studentTest / profTests / bankPage) =====
   Timer bar that stays on screen while the student answers, typed answers, rules before starting, the bank
   picker of the test form, signals chips for the professor, per-question success bars. */
.ent-qbar { position: sticky; top: 84px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin: -6px -6px 14px; padding: 10px 12px; border-radius: 16px; background: var(--x-card, var(--card, #fff)); box-shadow: 0 6px 18px rgba(14, 42, 63, .10); }
.ent-qbar h2 { margin: 0; font-size: 18px; display: flex; align-items: center; gap: 8px; flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
.ent-qbar h2 svg { width: 22px; height: 22px; flex: none; }
.ent-qtimer { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; font-variant-numeric: tabular-nums;
  background: var(--ff-n, #184E77); color: #fff; font-size: 16px; }
.ent-qtimer svg { width: 18px; height: 18px; }
.ent-qtimer.is-low { background: #D14343; }
@media (prefers-reduced-motion: no-preference) { html:not(.no-motion) .ent-qtimer.is-low { animation: ent-qpulse 1s ease-in-out infinite alternate; } }
@keyframes ent-qpulse { from { opacity: 1; } to { opacity: .72; } }
.ent-q legend .chip { margin-left: 6px; vertical-align: middle; font-weight: 600; }
.ent-qin { margin: 4px 0 0; }
.ent-qin input { width: 100%; max-width: 420px; min-height: 44px; font-size: 16px; }
.ent-rules { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 6px; }
.ent-rules li { line-height: 1.5; }
.ent-check { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0 12px; cursor: pointer; }
.ent-check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--x-teal, var(--primary)); }
.ent-check span { display: flex; flex-direction: column; gap: 2px; }
.ent-check small { font-size: 13px; }
.ent-qkeep { align-items: center; }
.ent-qkeep .ent-check { margin: 0; }
.ent-qpick { margin: 6px 0 14px; padding: 10px 12px; border-radius: 14px; border: 1px dashed var(--x-line, var(--line-2)); }
.ent-qpick summary { cursor: pointer; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.ent-qpick-g { border: 0; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.ent-qpick-g legend { font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--x-mute, var(--muted)); margin-bottom: 4px; }
.ent-qrow { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.ent-qres li > span { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; text-align: start; }
.ent-sigs { display: flex; flex-wrap: wrap; gap: 4px; }
.ent-sigs:empty { display: none; }
.chip.ent-sig { background: #FDF1DC; color: #8A5A00; font-size: 12px; }
.chip.ent-sig svg { width: 13px; height: 13px; }
.ent-qstat { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 10px; }
.ent-qstat li > span:first-child { display: block; margin-bottom: 4px; overflow-wrap: anywhere; }
@media (max-width: 860px) { .ent-qbar { top: 126px; } }
.ncx-dark .chip.ent-sig { background: rgba(217, 237, 146, .14); color: #E9F5B8; }
.ent-review li > .chip { align-self: flex-start; width: fit-content; }

/* ===== 32s. ADMIN TOOLS (VLE step 6, 24 Nov 2026, ent.js yearPage / bulkCard / importPage / reportsPage) =====
   Academic year with its terms, the shortcuts to the admin tools, the "prepare a year" picker, the student import
   with its live check, the reports (tiles, tables per faculty / year / group, students to help). */
.ent-ayline { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 8px 0 4px; font-size: 14px; }
.ent-ayline svg { width: 18px; height: 18px; color: var(--ff-n, #184E77); }
.ent-ayline span { padding: 2px 10px; border-radius: 999px; background: rgba(118, 200, 147, .18); color: var(--x-ink, #0E2A3F); font-weight: 600; }
.ent-ay-big { display: flex; flex-direction: column; gap: 2px; margin: 0 0 8px; }
.ent-ay-big b { font-family: var(--font-t, inherit); font-size: 22px; }
.ent-atools { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 12px; }
.ent-atool { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 12px; border-radius: 16px; text-decoration: none; color: inherit; font-weight: 700;
  border: 1px solid var(--x-line, var(--line-2)); background: var(--x-card, var(--card, #fff)); }
.ent-atool svg { width: 20px; height: 20px; color: var(--ff-n, #184E77); flex: none; }
.ent-atool small { margin-left: auto; }
.ent-ayears { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.ent-ayears > li { padding: 12px 14px; border-radius: 16px; border: 1px solid var(--x-line, var(--line-2)); display: grid; gap: 8px; }
.ent-ayears > li.is-current { border-color: rgba(118, 200, 147, .7); background: rgba(217, 237, 146, .16); }
.ent-ay-h { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.ent-ay-h b { font-size: 17px; }
.ent-ay-h small { flex-basis: 100%; }
.ent-terms { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.ent-terms li { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 12px; background: var(--x-soft, rgba(14, 42, 63, .04)); }
.ent-terms li.is-now { box-shadow: inset 3px 0 0 var(--ff-g, #52B69A); }
.ent-terms small { color: var(--x-mute, var(--muted)); font-size: 13px; }
.ent-ayprog { display: grid; gap: 4px; }
.ent-ayterms { border: 1px dashed var(--x-line, var(--line-2)); border-radius: 14px; padding: 8px 12px 0; margin: 4px 0 14px; }
.ent-ayterms legend { font-weight: 700; padding: 0 4px; }
.ent-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.ent-chips .chip { text-decoration: none; }
.ent-pick { border: 0; margin: 10px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 2px 12px; }
.ent-pick legend { font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--x-mute, var(--muted)); margin-bottom: 6px; }
.ent-pick .ent-check { margin: 4px 0; }
.ent-pick .ent-check.is-off { opacity: .6; cursor: default; }
.ent-pick > p { grid-column: 1 / -1; margin: 0; }
.ent-import textarea { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }
.ent-csv-out { margin: 4px 0 12px; padding: 10px 12px; border-radius: 14px; background: var(--x-soft, rgba(14, 42, 63, .04)); }
.ent-csv-out > p { margin: 0 0 6px; display: flex; align-items: center; gap: 6px; }
.ent-csv-out > p:last-child { margin-bottom: 0; }
.ent-csv-out .ent-ok { font-weight: 700; color: #1E7A4F; }
.ent-csv-out .ent-ok svg { width: 18px; height: 18px; }
.ent-csv-out .ent-bad { color: #A23B3B; display: block; font-size: 14px; }
.ent-imprev td, .ent-imports td { overflow-wrap: anywhere; }
.ent-rep-bar .actions { margin-top: 8px; }
.ent-rep-tiles .ent-stat { cursor: default; }
.ent-rep-tiles .ent-stat.is-alert .ent-big { color: #C0392B; }
.ent-rep th[scope="row"] { text-align: start; font-weight: 700; }
.ent-rep .ent-mini { min-width: 110px; }
.ent-rep-who li { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.ent-rep-who li { justify-content: flex-start; text-align: start; }
.ent-rep-who li > span:first-child { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; flex: 1 1 220px; min-width: 0; text-align: start; }
.ncx-dark .ent-ayline span { background: rgba(217, 237, 146, .14); color: #E9F5B8; }
.ncx-dark .ent-ayears > li.is-current { background: rgba(217, 237, 146, .08); }
.ncx-dark .ent-csv-out .ent-ok { color: #9FE0B8; }
.ncx-dark .ent-csv-out .ent-bad { color: #F2A7A7; }
.ncx-dark .ent-atool svg, .ncx-dark .ent-ayline svg { color: #D9ED92; }
@media print {
  .ent-rep-bar .actions, .ent-rep-bar .ent-chips { display: none; }
  .ent-rep-tiles { grid-template-columns: repeat(5, 1fr); }
}

/* ===== 32t. STUDENT NUMBER (24 Nov 2026, ent.js numChip / numBlock / rowFilter) ===== */
.ent-num { display: inline-block; font: 600 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; padding: 1px 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--ff-5, #34A0A4) 14%, transparent); color: var(--ff-8, #1A759F); vertical-align: middle; white-space: nowrap; }
.ent-roll-n .ent-num { margin-left: 8px; }
.ent-numline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 4px; font-weight: 600; }
.ent-numline svg { width: 18px; height: 18px; color: var(--ff-8, #1A759F); }
.ent-numline .ent-num { font-size: 14px; padding: 3px 12px; }
.ent-numedit { margin: 6px 0 10px; }
.ent-numedit summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 600; color: var(--ff-8, #1A759F); }
.ent-numedit summary svg { width: 16px; height: 16px; }
.ent-numform { display: grid; gap: 8px; max-width: 420px; margin-top: 10px; }
.ent-numform .btn { justify-self: start; }
.ent-rowfilter { display: block; max-width: 360px; margin: 0 0 12px; }
.ent-rowfilter input { width: 100%; }
.ent-rowfilter .sr-only, .ent-numform .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ncx-dark .ent-num { background: rgba(217, 237, 146, .14); color: #D9ED92; }
.ncx-dark .ent-numline svg, .ncx-dark .ent-numedit summary { color: #D9ED92; }

/* ===== 32u. NOTIFICATION SETTINGS + ALERTS ON THE DEVICE (24 Nov 2026, ent.js notifSettings) ===== */
.ent-nset-link { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 12px; }
.ent-nset-link .btn svg { width: 16px; height: 16px; }
.ent-nset { display: grid; gap: 18px; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 960px) { .ent-nset { grid-template-columns: 1fr; } }
.ent-ntable th, .ent-ntable td { vertical-align: middle; }
.ent-ntable thead th:not(:first-child), .ent-ntable td { text-align: center; width: 128px; }
.ent-ntable thead th svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; color: var(--ff-6, #34A0A4); }
.ent-ntable tbody th { font-weight: 600; text-align: left; }
.ent-nchk { display: inline-flex; padding: 8px; cursor: pointer; }
.ent-nchk input { width: 20px; height: 20px; accent-color: #1A759F; cursor: pointer; }
.ent-nh3 { display: flex; align-items: center; gap: 8px; margin: 18px 0 6px; font-size: 1rem; }
.ent-nh3 svg { width: 18px; height: 18px; color: #1A759F; }
.ent-nquiet { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 4px; }
.ent-nquiet label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.ent-nquiet input[type="checkbox"] { width: 20px; height: 20px; accent-color: #1A759F; }
.ent-nquiet input[type="time"] { padding: 6px 10px; border: 1px solid var(--line, #d7dee6); border-radius: 12px; font: inherit; background: var(--card, #fff); color: inherit; }
.ent-ndev-state { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; padding: 12px 14px; border-radius: 16px; background: rgba(24, 78, 119, .06); }
.ent-ndev-state svg { width: 20px; height: 20px; color: #1A759F; flex: none; }
.ent-ndev-state.on { background: linear-gradient(90deg, rgba(217, 237, 146, .45), rgba(153, 217, 140, .25)); }
.ent-ndev-state.on svg { color: #168AAD; }
.ent-ndev .actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 520px) { .ent-ntable thead th:not(:first-child), .ent-ntable td { width: 64px; font-size: .8rem; } .ent-ntable thead th svg { display: block; margin: 0 auto 2px; } }
.ncx-dark .ent-ndev-state { background: rgba(255, 255, 255, .06); }
.ncx-dark .ent-ndev-state.on { background: rgba(217, 237, 146, .14); }
.ncx-dark .ent-ndev-state svg, .ncx-dark .ent-nh3 svg { color: #D9ED92; }
.ncx-dark .ent-nquiet input[type="time"] { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .15); color-scheme: dark; }
.ent-nset > * { min-width: 0; }
.ent .pl-table.ent-ntable { min-width: 0; }
.ent .pl-table.ent-ntable td, .ent .pl-table.ent-ntable thead th:not(:first-child) { text-align: center; vertical-align: middle; }
.ent .pl-table.ent-ntable tbody th { vertical-align: middle; }

/* ===== 32v. ATTESTATION OF COMPLETION OF A COURSE SPACE (24 Nov 2026, ent.js certPage / certView / verifyScreen) ===== */
.ent-crit { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 4px; }
.ent-crit li { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.ent-crit li svg { width: 16px; height: 16px; flex: none; color: #2E8B57; }
.ent-crit li.is-no { color: var(--x-mute, #5B6B74); }
.ent-crit-dot { width: 12px; height: 12px; margin: 2px; border-radius: 50%; border: 2px solid currentColor; flex: none; }
.ent .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ent-certs tr.is-ready td:first-child { box-shadow: inset 4px 0 0 #2E8B57; }
.ent-certs td { vertical-align: middle; }
.ent-certs .ent-row-a { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; }
.ent-certlog .ent-row-a { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ent-certlog li > span:first-child small { display: block; }
.ent-certcard { border-top: 4px solid var(--ff-4, #76C893); }
.ent-certcard.is-got { background: linear-gradient(135deg, color-mix(in srgb, var(--ff-1, #D9ED92) 40%, #fff), #fff 70%); }
.ent-cert-bar { display: flex; flex-wrap: wrap; gap: 8px; }
/* the attestation itself: an A4-like sheet, landscape feel on computers, one column on phones */
.ent-cert { position: relative; overflow: hidden; max-width: 900px; margin: 0 auto; padding: clamp(24px, 5vw, 56px); text-align: center; color: #13242E;
  background: #fff; border-radius: 28px; box-shadow: 0 18px 40px rgba(24, 78, 119, .14);
  border: 2px solid transparent; background-image: linear-gradient(#fff, #fff), linear-gradient(135deg, #D9ED92, #52B69A 45%, #1A759F 75%, #184E77); background-origin: border-box; background-clip: padding-box, border-box; }
.ent-cert::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(24, 78, 119, .18); border-radius: 18px; pointer-events: none; }
.ent-cert-top { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 18px; text-align: start; }
.ent-cert-logo svg { width: 48px; height: 48px; display: block; border-radius: 13px; }
.ent-cert-top b { display: block; font: 800 20px/1.1 var(--font-t, inherit); letter-spacing: -.03em; color: #184E77; }
.ent-cert-top small { display: block; font-size: 13px; color: #5B6B74; }
.ent-cert-kick { font: 800 clamp(22px, 3.6vw, 34px)/1.15 var(--font-t, inherit); letter-spacing: -.02em; margin: 6px 0 14px;
  background: linear-gradient(90deg, #1E6091, #34A0A4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ent-cert-p { margin: 6px 0; color: #3A4A53; }
.ent-cert-name { font: 800 clamp(26px, 4.4vw, 42px)/1.1 var(--font-t, inherit); margin: 8px 0 4px; color: #13242E; letter-spacing: -.02em; }
.ent-cert-num { margin: 0 0 10px; color: #5B6B74; font-size: 14px; }
.ent-cert-num code { font-weight: 700; color: #1A759F; }
.ent-cert-course { font: 700 clamp(18px, 2.6vw, 24px)/1.2 var(--font-t, inherit); margin: 6px 0 2px; color: #184E77; }
.ent-cert-where { margin: 0 0 6px; color: #5B6B74; }
.ent-cert-foot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; padding-top: 18px; border-top: 1px dashed rgba(24, 78, 119, .25); text-align: start; }
.ent-cert-foot small { display: block; font-size: 12px; color: #5B6B74; text-transform: uppercase; letter-spacing: .06em; }
.ent-cert-foot b { display: block; font-size: 15px; overflow-wrap: anywhere; }
.ent-cert-code b { font: 700 17px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #184E77; letter-spacing: .04em; }
.ent-cert-code .ent-cert-url { text-transform: none; letter-spacing: 0; overflow-wrap: anywhere; margin-top: 4px; }
.ent-cert-legal { margin: 22px auto 0; max-width: 640px; font-size: 12.5px; color: #5B6B74; }
.ent-cert-demo { position: absolute; top: 34px; right: -50px; transform: rotate(35deg); background: #FFE8A3; color: #6B4E00; font: 800 11px/1 var(--font, inherit);
  letter-spacing: .08em; padding: 7px 56px; }
.ent-cert-stamp { position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%) rotate(-12deg); border: 4px solid #C0392B; color: #C0392B; border-radius: 12px;
  padding: 8px 22px; font: 800 26px/1 var(--font-t, inherit); text-transform: uppercase; background: rgba(255, 255, 255, .85); white-space: nowrap; }
.ent-cert.is-revoked > :not(.ent-cert-stamp):not(.ent-cert-demo) { opacity: .45; }
@media (max-width: 640px) {
  .ent-cert { border-radius: 20px; }
  .ent-cert::before { inset: 8px; border-radius: 14px; }
  .ent-cert-foot { grid-template-columns: 1fr; gap: 10px; text-align: center; }
  .ent-cert-stamp { font-size: 18px; }
}
/* public check page */
.ent-vhero h1 { display: flex; align-items: center; gap: 10px; font: 800 clamp(24px, 3.4vw, 32px)/1.15 var(--font-t, inherit); margin: 0 0 8px; }
.ent-vhero h1 svg { width: 28px; height: 28px; color: #1A759F; }
.ent .ent-vform { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; }
.ent .ent-vform .field { margin: 0; min-width: 0; }
.ent .ent-vform .btn { justify-self: start; }
@media (max-width: 640px) { .ent .ent-vform { grid-template-columns: minmax(0, 1fr); } }
.ent-vform input { font: 700 18px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .06em; text-transform: uppercase; }
.ent-vres h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; }
.ent-vres h2 svg { width: 26px; height: 26px; }
.ent-vres.is-valid { border-top: 6px solid #2E8B57; }
.ent-vres.is-valid h2 { color: #1F7A4A; }
.ent-vres.is-revoked { border-top: 6px solid #C0392B; }
.ent-vres.is-revoked h2 { color: #A93226; }
.ent-vres.is-unknown { border-top: 6px solid #B0BEC5; }
.ent-vres .ent-cert-kick { text-align: start; margin: 10px 0; font-size: 22px; }
.ent-vdl { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 20px; margin: 0; }
.ent-vdl div { min-width: 0; }
.ent-vdl dt { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #5B6B74; }
.ent-vdl dd { margin: 2px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.ncx-dark .ent-crit li svg { color: #9FE0B8; }
.ncx-dark .ent-certcard.is-got { background: rgba(217, 237, 146, .08); }
@media print {
  .ent-cert-bar { display: none !important; }
  .ent-cert { box-shadow: none !important; max-width: none; border-radius: 0; break-inside: avoid; }
  .ent-cert-kick { color: #1E6091 !important; -webkit-text-fill-color: #1E6091; background: none; }
  .ent:has(.ent-cert) > :not(.ent-body), .ent-body:has(.ent-cert) > :not(.ent-cert), .ncx-views-top { display: none !important; }
  .ncx:has(.ent-cert) .ncx-main { padding: 0 !important; margin: 0 !important; }
}

/* ===== 32w. PROFILE ADDITIONS + SIGN-UP + WELCOME STEPS (27 Nov 2026, script.js screenStart / screenLegal / avatarIn / spaceBlock) ===== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pf-avatar img, .us-av img, .side-avatar img, .wz-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.us-av:has(img), .side-avatar:has(img) { padding: 0; overflow: hidden; }
.pf-avatar-w { position: relative; flex: none; align-self: flex-start; margin-top: -64px; }
.pf-avatar-w .pf-avatar { margin-top: 0; overflow: hidden; }
.pf-cam { position: absolute; right: -2px; bottom: 2px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--ff-grad-d); color: #FFFFFF; box-shadow: 0 0 0 3px #FFFFFF, 0 6px 14px rgba(24, 78, 119, .3); transition: transform .15s var(--ease, ease); }
.pf-cam:hover { transform: scale(1.06); }
.pf-cam:focus-within { outline: 3px solid var(--ff-b0); outline-offset: 2px; }
.pf-cam svg { width: 17px; height: 17px; }
@media (max-width: 860px) { .pf-avatar-w { margin-top: -52px; } }
.pf-priv { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 2px 8px; font-size: 11px; font-weight: 700; background: var(--ff-soft); color: var(--ff-n); border-radius: 999px; vertical-align: middle; }
.pf-priv svg { width: 11px; height: 11px; }
.pf-space { margin-top: 18px; padding: 16px 18px; border-radius: 20px; background: var(--ff-soft); border: 1px solid var(--ff-line); }
.pf-space h3 { margin: 0 0 6px; font: 800 16px/1.3 var(--font-t, inherit); color: var(--ff-ink); }
.pf-st { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #FFFFFF; color: var(--ff-mute); }
.pf-st.ok { background: #E3F4D2; color: #2F6B1E; } .pf-st.wait { background: #FFF2D6; color: #8A5A00; } .pf-st.no { background: #FDE4E1; color: #A23325; }
.pf-num { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; color: var(--ff-n); }
/* sign-up: show-password button, terms box */
.pw-field { position: relative; }
.pw-field input { padding-right: 84px; }
.pw-eye { position: absolute; right: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 10px; border: 0; border-radius: 10px;
  background: var(--ff-soft); color: var(--ff-n); font: 700 12px/1 var(--font, inherit); cursor: pointer; }
.pw-eye svg { width: 16px; height: 16px; }
.pw-eye[aria-pressed="true"] { background: var(--ff-n); color: #FFFFFF; }
.terms-check { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0 4px; font-size: 14px; line-height: 1.45; color: var(--ff-ink); cursor: pointer; }
.terms-check input { width: 20px; height: 20px; flex: none; margin: 1px 0 0; accent-color: var(--ff-b1); }
.terms-check a { color: var(--ff-b1); font-weight: 700; }
/* welcome steps (#/start/1..3) */
.wz-wrap { display: flex; justify-content: center; padding: 8px 0 24px; }
.wz { width: min(100%, 680px); display: flex; flex-direction: column; gap: 14px; padding: clamp(20px, 3.6vw, 36px); border-radius: 28px; box-shadow: var(--ff-clay); }
.wz-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.wz-steps span { height: 6px; border-radius: 99px; background: var(--ff-line); }
.wz-steps span.on { background: linear-gradient(90deg, var(--ff-g2), var(--ff-b1)); }
.wz-k { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ff-b1); }
.wz h1 { margin: 0; font: 800 clamp(24px, 3.4vw, 32px)/1.15 var(--font-t, inherit); color: var(--ff-ink); }
.wz-s { margin: 0; }
.wz-av { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.wz-av .pf-photo, .wz-photo { margin-top: 0; width: 88px; height: 88px; font-size: 30px; box-shadow: 0 0 0 4px #FFFFFF, 0 8px 20px rgba(24, 78, 119, .18); overflow: hidden; align-self: center; }
.wz-file { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.wz-file:focus-within { outline: 3px solid var(--ff-b0); outline-offset: 2px; }
.wz-file svg { width: 18px; height: 18px; }
.wz-fields, .wz-goal { border: 0; margin: 0; padding: 0; min-width: 0; }
.wz-fields legend, .wz-goal legend { font-weight: 700; margin-bottom: 8px; color: var(--ff-ink); }
.wz-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.wz-fields legend { grid-column: 1 / -1; }
.wz-tile { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 16px; border: 2px solid var(--ff-line); background: #FFFFFF; cursor: pointer; transition: border-color .15s, transform .15s var(--ease, ease); }
.wz-tile:hover { transform: translateY(-2px); }
.wz-tile input { position: absolute; opacity: 0; pointer-events: none; }
.wz-tile b { font-size: 14px; color: var(--ff-ink); }
.wz-tile small { font-size: 12px; color: var(--ff-mute); }
.wz-tile.soon { background: #FAFCFB; border-style: dashed; }
.wz-tile:has(input:checked) { border-color: var(--ff-b1); background: var(--ff-soft); box-shadow: 0 0 0 3px rgba(26, 117, 159, .15); }
.wz-tile:has(input:focus-visible) { outline: 3px solid var(--ff-b0); outline-offset: 2px; }
.wz-goal { display: flex; flex-wrap: wrap; gap: 10px; }
.wz-goal legend { width: 100%; }
.wz-goal label { position: relative; cursor: pointer; }
.wz-goal input { position: absolute; opacity: 0; }
.wz-goal span { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; border: 2px solid var(--ff-line); font: 800 18px/1 var(--font-t, inherit); color: var(--ff-n); background: #FFFFFF; }
.wz-goal input:checked + span { background: var(--ff-grad-d); color: #FFFFFF; border-color: transparent; }
.wz-goal input:focus-visible + span { outline: 3px solid var(--ff-b0); outline-offset: 2px; }
.wz-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--ff-line); }
.wz-go { display: flex; gap: 10px; flex-wrap: wrap; margin-left: auto; }
.wz-go .btn-dark { background: var(--ff-grad-d); color: #FFFFFF; border: 0; }
/* Terms of use / Privacy policy (drafts) */
.legal { width: min(100%, 820px); margin: 0 auto; padding: clamp(20px, 3.6vw, 40px); border-radius: 28px; background: #FFFFFF; box-shadow: var(--ff-clay); line-height: 1.65; color: var(--ff-ink); }
.legal h1 { font: 800 clamp(26px, 3.6vw, 36px)/1.15 var(--font-t, inherit); margin: 6px 0 10px; }
.legal h2 { font: 800 19px/1.3 var(--font-t, inherit); margin: 26px 0 8px; color: var(--ff-n); }
.legal .legal-draft { padding: 10px 14px; border-radius: 14px; background: #FFF2D6; color: #6B4600; font-size: 14px; }
.legal ul { padding-left: 20px; }
html[data-theme="dark"] .legal, html[data-theme="dark"] .wz-tile, html[data-theme="dark"] .wz-goal span { background: #10283A; color: #E8F1EC; }

/* 32x. Profile › Alerts on this device: the result of the last press stays under the switch */
.pf-pref-text .pf-push-st { margin: 6px 0 0; font-size: 13px; line-height: 1.5; font-weight: 600; padding: 6px 10px; border-radius: 10px; }
.pf-push-st.ok { color: var(--ff-n, #184E77); background: rgba(153, 217, 140, .25); }
.pf-push-st.bad { color: var(--danger, #B42318); background: var(--danger-bg, #FFF7F6); }
.pf-push-st small { display: block; font-weight: 400; opacity: .85; word-break: break-word; }
