/* الخطوط مستضافة على الموقع نفسه: بدون طلبات لجهات خارجية */
@font-face { font-family: "Tajawal"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("assets/fonts/tajawal-arabic-400-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Tajawal"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("assets/fonts/tajawal-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212; }
@font-face { font-family: "Tajawal"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("assets/fonts/tajawal-arabic-500-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Tajawal"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("assets/fonts/tajawal-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212; }
@font-face { font-family: "Tajawal"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("assets/fonts/tajawal-arabic-700-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Tajawal"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("assets/fonts/tajawal-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212; }
@font-face { font-family: "Tajawal"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("assets/fonts/tajawal-arabic-800-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Tajawal"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("assets/fonts/tajawal-latin-800-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212; }

/* الموقع داكن دائمًا */
:root {
  --navy: #141d2c;
  --navy-2: #1d2a40;
  --primary: #4a9fd4;
  --primary-dark: #3a8bbf;
  --accent: #5fb3e4;
  --bg: #0f1623;
  --bg-alt: #141d2c;
  --text: #e6edf6;
  --muted: #9aaabf;
  --card: #1a2538;
  --border: #26354d;
  --radius: 16px;
  --lead-border: #5fb3e4;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg); }
section[id] { scroll-margin-top: 72px; }
body {
  font-family: "Tajawal", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }

.container { width: min(1100px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(640px, 100% - 32px); }
.center { text-align: center; margin-top: 28px; }
.muted { color: var(--muted); }

/* الأزرار */
.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  border: 2px solid var(--primary);
  padding: 10px 24px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: .2s;
}
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline { background: transparent; color: #fff; border-color: #fff; }
.btn-outline:hover { background: #fff; color: var(--navy); }

/* الهيدر */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 2px 12px rgb(0 0 0 / .2);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; position: relative; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; line-height: 1.3; white-space: nowrap; flex-shrink: 0; }
.logo img { width: 52px; height: 52px; object-fit: contain; }
.logo small { display: block; font-weight: 400; font-size: .75rem; opacity: .75; }
.nav-links { display: flex; align-items: center; gap: 2px; font-weight: 500; }
.nav-links a { padding: 8px 11px; border-radius: 999px; transition: .2s; white-space: nowrap; }
.nav-links a:hover { background: rgb(255 255 255 / .1); }
.nav-links a[aria-current="page"] { background: var(--accent); color: var(--navy); font-weight: 700; }
.nav-tools { display: none; align-items: center; gap: 4px; order: 3; }
.menu-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.menu-toggle { display: none; background: none; border: 0; font-size: 1.6rem; color: #fff; cursor: pointer; }

/* البطل */
.hero {
  background:
    radial-gradient(circle at 15% 50%, rgb(95 179 228 / .18), transparent 45%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, #1f3b5c 100%);
  color: #fff;
  padding: 80px 0 72px;
}
.hero-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.hero-logo { width: min(320px, 32vw); opacity: .95; }
.eyebrow { color: var(--accent); font-weight: 700; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.3; font-weight: 800; }
.hero h1 span { color: var(--accent); }
.hero-text > p:not(.eyebrow) { max-width: 540px; margin: 16px 0 28px; opacity: .9; font-size: 1.1rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-actions .btn:not(.btn-outline) { background: var(--accent); border-color: var(--accent); color: var(--navy); }

/* رأس الصفحات الداخلية */
.page-head {
  background: linear-gradient(135deg, var(--navy) 0%, #1f3b5c 100%);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}
.page-head h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 800; }
.page-head p { opacity: .85; font-size: 1.1rem; }

/* الأقسام */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-alt); }
.section-title { font-size: 1.9rem; font-weight: 800; margin-bottom: 32px; text-align: center; }
.section-title::after {
  content: ""; display: block; width: 56px; height: 4px;
  background: var(--accent); border-radius: 4px; margin: 10px auto 0;
}

.cards { display: grid; gap: 20px; }
.cards.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgb(20 29 44 / .1); }
.card h3 { margin: 8px 0; }
.card p { color: var(--muted); }
.icon { font-size: 2rem; }
.link-card { display: block; }
.link-card .more { display: inline-block; margin-top: 12px; color: var(--primary); font-weight: 700; }

/* هيكلة المجلس */
.org { display: flex; flex-direction: column; align-items: center; }
.org-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; width: 100%; }
.org-row.row-4 { max-width: 880px; }
.person.level-4 { width: 260px; }
.org-link { width: 2px; height: 32px; background: var(--accent); }
.person {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 28px;
  min-width: 260px;
  box-shadow: 0 4px 16px rgb(20 29 44 / .06);
}
.person h3 { font-size: 1.25rem; font-weight: 800; line-height: 1.4; }
.person span { color: var(--muted); font-size: .9rem; }

.person.level-1 { background: var(--navy); color: #fff; border-color: var(--lead-border); padding: 22px 28px; }
.person.level-1 h3 { font-size: 1.5rem; }
.person.level-1 span { color: var(--accent); }
.person.level-2 { border: 2px solid var(--primary); }
.person.level-2 h3 { font-size: 1.35rem; }
.person.level-3 { border-top: 4px solid var(--primary); }

/* الفعاليات */
.events { display: grid; gap: 16px; }
.event {
  display: flex; gap: 20px; align-items: center;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px;
}
.event-date {
  flex-shrink: 0; width: 76px; height: 76px; border-radius: 14px;
  background: var(--navy); color: #fff;
  display: grid; place-content: center; text-align: center; line-height: 1.2;
}
.event-date strong { font-size: 1.6rem; color: var(--accent); }
.event p { color: var(--muted); }
.event small { color: var(--primary); font-weight: 500; }
.event-body { flex: 1; min-width: 0; }
.event h3 a:hover, .news-card h3 a:hover { color: var(--primary); }

/* أيقونة الانتقال لصفحة التفاصيل */
.more-link {
  flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-alt); color: var(--primary);
  border: 1px solid var(--border);
  transition: .2s;
}
.more-link svg { width: 22px; height: 22px; }
.more-link:hover, .more-link:focus-visible { background: var(--primary); color: #fff; border-color: var(--primary); }
.more-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.news-card { display: flex; flex-direction: column; }
.news-card p { flex: 1; }
.news-foot { display: flex; justify-content: flex-end; margin-top: 12px; }

/* صفحة التفاصيل */
.item-kind { display: inline-block; background: var(--accent); color: var(--navy); font-weight: 700; font-size: .85rem; padding: 2px 14px; border-radius: 999px; margin-bottom: 8px; }
.item-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 16px 20px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 24px; font-weight: 500; }
.item-meta li { display: flex; gap: 8px; align-items: center; }
.item-text { display: grid; gap: 14px; font-size: 1.1rem; margin-bottom: 32px; }

/* أزرار الفعالية: التطوع والتقويم */
.event-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.event-actions .volunteer-btn { margin-top: 0; }
.cal-menu { position: relative; }
.cal-menu summary { list-style: none; }
.cal-menu summary::-webkit-details-marker { display: none; }
.cal-btn {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: .9rem;
  border: 1px solid var(--border); color: var(--text); background: var(--bg-alt);
}
.cal-btn svg { width: 16px; height: 16px; }
.cal-btn:hover, .cal-menu[open] .cal-btn { border-color: var(--accent); color: var(--accent); }
.cal-options {
  position: absolute; z-index: 5; top: calc(100% + 6px); inset-inline-start: 0;
  min-width: 200px; display: grid; background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgb(0 0 0 / .35);
}
.cal-options a, .cal-options button {
  font: inherit; text-align: start; padding: 10px 14px; background: none; border: 0; color: var(--text); cursor: pointer;
}
.cal-options a:hover, .cal-options button:hover { background: var(--bg-alt); color: var(--accent); }

/* التصفية */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; }
.filter {
  font: inherit; font-weight: 700; padding: 8px 20px; border-radius: 999px; cursor: pointer;
  background: var(--card); color: var(--text); border: 1px solid var(--border); transition: .2s;
}
.filter:hover { border-color: var(--accent); }
.filter.active { background: var(--accent); color: var(--navy); border-color: var(--accent); }
.empty { text-align: center; color: var(--muted); padding: 30px 0; }
.badge { display: inline-block; font-size: .8rem; font-weight: 700; padding: 2px 12px; border-radius: 999px; }
.badge.club { background: color-mix(in srgb, #a78bfa 22%, transparent); color: #c4b5fd; }
.badge.college { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent); }

/* نافذة تذكير الفعاليات */
.reminder {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px;
  background: rgb(5 9 16 / .7); backdrop-filter: blur(3px);
}
.reminder-card {
  position: relative; width: min(480px, 100%); background: var(--card); border: 1px solid var(--accent);
  border-radius: 20px; padding: 24px 22px 20px; display: grid; gap: 10px; box-shadow: 0 20px 60px rgb(0 0 0 / .5);
}
.reminder-card h2 { font-size: 1.35rem; font-weight: 800; }
.reminder-close { position: absolute; top: 12px; inset-inline-end: 12px; background: none; border: 0; color: var(--muted); font-size: 1.1rem; cursor: pointer; }
.reminder-list { list-style: none; display: grid; gap: 10px; margin: 6px 0; }
.reminder-list li {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--bg-alt); border-radius: 12px; padding: 12px 14px;
}
.reminder-list li > div { min-width: 0; display: grid; }
.reminder-list small { color: var(--muted); font-size: .82rem; }
.reminder-ok { justify-self: stretch; text-align: center; }

/* زر مهتم */
.interest-btn {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font: inherit;
  padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: .9rem;
  border: 1px solid #f5b942; color: #f5b942; background: color-mix(in srgb, #f5b942 10%, transparent); transition: .2s;
}
.interest-btn[hidden] { display: none; }
.interest-btn svg { width: 16px; height: 16px; }
.interest-total { margin-top: 6px; color: #f5b942; font-weight: 700; font-size: .92rem; }
.item-meta + .interest-total { margin: -12px 0 20px; font-size: 1rem; }
.interest-btn:hover, .interest-btn[aria-pressed="true"] { background: #f5b942; color: var(--navy); }
.interest-btn:disabled { cursor: progress; opacity: .8; }
.interest-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* إمكانية الوصول */
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--navy); font-weight: 700; padding: 8px 16px; border-radius: 10px; transition: top .2s; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.container.narrow, .narrow { width: min(820px, 100% - 32px); margin-inline: auto; }
.lead { font-size: 1.12rem; color: var(--text); opacity: .92; margin-bottom: 18px; }
.note { color: var(--muted); font-size: .9rem; margin-top: 18px; }
.empty { text-align: center; color: var(--muted); padding: 24px 0; }
.sub-title { font-size: 1.3rem; font-weight: 800; margin: 18px 0 12px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section-head .section-title { margin: 0; text-align: start; }
.section-head .section-title::after { margin-inline: 0; }
.section-head .more { color: var(--accent); font-weight: 700; white-space: nowrap; }
.btn-lg { padding: 14px 34px; font-size: 1.1rem; }

/* الرئيسية: بطاقات الأقسام */
.quick { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.quick-card { display: flex; flex-direction: column; gap: 8px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; transition: .2s; }
.quick-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.quick-card b { font-size: 1.12rem; }
.quick-card small { color: var(--muted); font-size: .92rem; line-height: 1.6; }
.quick-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.quick-icon svg { width: 24px; height: 24px; }

/* قوائم بعلامة */
.checklist { list-style: none; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.checklist svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--accent); margin-top: 4px; }

/* أسئلة شائعة */
.faq { display: grid; gap: 10px; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: 14px; }
.faq-item summary { cursor: pointer; list-style: none; padding: 16px 18px; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding: 0 18px 16px; color: var(--muted); }

/* التخصصات */
.major-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 24px; }
.major-tabs button { display: flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; color: var(--muted); background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 14px 10px; cursor: pointer; transition: .2s; }
.major-tabs button svg { width: 20px; height: 20px; flex-shrink: 0; }
.major-tabs button:hover { color: var(--text); }
.major-tabs button[aria-selected="true"] { color: var(--navy); background: var(--accent); border-color: var(--accent); }
.major header { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.major header h2 { font-size: 1.7rem; font-weight: 800; line-height: 1.3; }
.major header span[dir] { color: var(--muted); font-size: .95rem; }
.major-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.major-icon svg { width: 28px; height: 28px; }
.major-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.major-grid .card h3 { margin: 0 0 8px; color: var(--accent); }
.major-grid ul { list-style: none; display: grid; gap: 6px; }
.major-grid li::before { content: "• "; color: var(--accent); }
.major-grid li, .major-grid .fit p { color: var(--text); }

/* صوتك مسموع */
.initiative { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
.steps { list-style: none; counter-reset: s; display: grid; gap: 10px; margin-bottom: 22px; }
.steps li { counter-increment: s; display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; font-weight: 500; }
.steps li::before { content: counter(s); width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--navy); font-weight: 800; }
.privacy-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.privacy-box .sub-title { margin-top: 0; }
.privacy-box .checklist li { background: var(--bg-alt); }
.cards.goals { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* أنشطة المجلس */
.event small { display: inline-flex; align-items: center; gap: 6px; }
.event small svg { width: 15px; height: 15px; }
.past-title { margin-top: 28px; }
.event.past { opacity: .6; }
.item-meta svg { width: 18px; height: 18px; color: var(--accent); }
.back { margin-top: 24px; }
.back a { color: var(--accent); font-weight: 700; }

/* المختبر */
.lab { display: grid; gap: 18px; }
.lab[hidden], .major[hidden] { display: none; }
.lab-head { display: flex; align-items: center; gap: 14px; }
.lab-head h2 { font-size: 1.6rem; font-weight: 800; line-height: 1.3; }
.lab-head span { color: var(--muted); }
.lab-block { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.lab-block h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 800; margin-bottom: 14px; }
.lab-block h3 svg { width: 22px; height: 22px; color: var(--accent); }
.lab-block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.lab-block .checklist li { background: var(--bg-alt); }
.lab-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.roadmap { list-style: none; counter-reset: r; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.roadmap li { counter-increment: r; position: relative; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 12px; padding: 42px 12px 12px; font-weight: 500; font-size: .95rem; line-height: 1.6; }
.roadmap li::before { content: counter(r); position: absolute; top: 10px; inset-inline-start: 12px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--navy); font-weight: 800; font-size: .85rem; }
.ch-num { flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--border); color: var(--accent); font-size: .85rem; }
.res-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.res-card { position: relative; display: flex; flex-direction: column; gap: 4px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; padding-inline-end: 34px; transition: .2s; }
a.res-card:hover { border-color: var(--accent); }
.res-card small { color: var(--muted); font-size: .85rem; line-height: 1.5; }
.res-card .go { position: absolute; top: 12px; inset-inline-end: 12px; color: var(--muted); }
.res-card .go svg { width: 14px; height: 14px; }
.soon-note { background: var(--bg-alt); border: 1px dashed var(--border); border-radius: 12px; padding: 14px 16px; color: var(--muted); }
.major .btn { margin-top: 18px; }

[hidden] { display: none !important; }

/* التخصصات: الشرح المفصل */
.major-tag { color: var(--accent); font-weight: 700; font-size: 1.1rem; margin-bottom: 10px; }
.major-overview { display: grid; gap: 12px; font-size: 1.05rem; line-height: 1.9; margin-bottom: 8px; }
.major-h { font-size: 1.25rem; font-weight: 800; margin: 26px 0 12px; }
.mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mini-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.mini-card b { display: block; margin-bottom: 4px; color: var(--accent); }
.mini-card p { color: var(--muted); font-size: .95rem; line-height: 1.7; }
.major-grid { margin-top: 20px; }
.major-grid.two { grid-template-columns: 1fr 1fr; }
.major-grid ul.ltr-list li { text-align: start; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 999px; padding: 3px 12px; font-size: .9rem; font-weight: 500; }
.media-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.media-card { position: relative; display: flex; flex-direction: column; gap: 4px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; transition: .2s; }
.media-card:hover { border-color: var(--accent); }
.media-card small { color: var(--muted); line-height: 1.6; }
.media-type { align-self: flex-start; font-size: .75rem; font-weight: 700; color: var(--navy); background: var(--accent); border-radius: 999px; padding: 0 10px; }
.media-card .go { position: absolute; top: 14px; inset-inline-end: 14px; color: var(--muted); }
.media-card .go svg { width: 14px; height: 14px; }
.compare { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.compare table { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { padding: 14px 16px; text-align: start; border-bottom: 1px solid var(--border); }
.compare thead th { background: var(--card); color: var(--accent); }
.compare tbody th { color: var(--muted); font-weight: 700; white-space: nowrap; }
.compare tr:last-child > * { border-bottom: 0; }

/* الشهادات المهنية */
.card.saudi { margin-top: 20px; }
.certs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cert { display: flex; align-items: center; gap: 16px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.cert-badge {
  flex-shrink: 0; width: 92px; height: 92px; border-radius: 18px; display: grid; place-content: center; text-align: center; gap: 2px;
  background: #f4f6fa; color: #1b2130; border: 3px solid var(--badge, var(--accent)); box-shadow: inset 0 0 0 3px #fff;
}
.cert-badge small { font-size: .68rem; font-weight: 700; color: var(--badge, var(--accent)); letter-spacing: .3px; }
.cert-badge b { font-size: 1.05rem; font-weight: 800; line-height: 1.15; word-break: break-word; padding: 0 4px; }
.cert-badge[data-issuer="AWS"] { --badge: #ec7211; }
.cert-badge[data-issuer="Microsoft"] { --badge: #0078d4; }
.cert-badge[data-issuer="Google"], .cert-badge[data-issuer="Google Cloud"] { --badge: #1a73e8; }
.cert-badge[data-issuer="PMI"] { --badge: #4b2e83; }
.cert-badge[data-issuer="CompTIA"] { --badge: #c8102e; }
.cert-badge[data-issuer="Cisco"] { --badge: #0d8bc4; }
.cert-badge[data-issuer="INE"] { --badge: #7b2ff7; }
.cert-badge[data-issuer="OffSec"] { --badge: #d81e05; }
.cert-badge b.long { font-size: .88rem; word-break: normal; white-space: nowrap; }
.cert-body { min-width: 0; display: grid; gap: 6px; align-content: start; }
.cert-body header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.cert-body h4 { font-size: 1.05rem; font-weight: 800; line-height: 1.4; text-align: start; }
.lvl { flex-shrink: 0; font-size: .75rem; font-weight: 700; border-radius: 999px; padding: 1px 10px; }
.lvl.lv1 { color: #4ade80; background: rgb(74 222 128 / .12); }
.lvl.lv2 { color: #facc15; background: rgb(250 204 21 / .12); }
.lvl.lv3 { color: #f87171; background: rgb(248 113 113 / .12); }
.cert-price { color: #4ade80; font-weight: 500; }
.cert-price small { color: var(--muted); }
.cert-body > p:not(.cert-price) { color: var(--muted); line-height: 1.7; }
.cert-who { display: flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--text) !important; }
.cert-who svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }
.cert-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 700; font-size: .9rem; margin-top: 2px; }
.cert-link svg { width: 14px; height: 14px; }

/* المختبر: تجارب عملية (بالإنجليزي) */
.lab-page, .lab-page + * { font-family: "Tajawal", system-ui, sans-serif; }
.lab-head p { color: var(--muted); max-width: 820px; }
.lab-goal { color: var(--text); margin: -4px 0 14px; }
/* الأكواد تبقى من اليسار لليمين داخل صناديقها */
.code, .code-in, .sql-out, .qb, .table-wrap, #ml-plot, .lab code, .fake-bar { direction: ltr; text-align: left; }
.lab code { unicode-bidi: isolate; }
.decoded-ar { color: #4ade80; font-weight: 700; margin: -4px 0 8px; }
.walkthrough { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; }
.walkthrough summary { cursor: pointer; display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 700; list-style: none; }
.walkthrough summary::-webkit-details-marker { display: none; }
.walkthrough summary svg { width: 18px; height: 18px; }
.walkthrough ol { margin: 10px 0 2px; padding-inline-start: 22px; display: grid; gap: 6px; line-height: 1.7; }
.walkthrough li::marker { color: var(--accent); font-weight: 700; }
.lab-done { display: inline-flex; align-items: center; gap: 6px; color: #4ade80; font-weight: 700; font-size: .9rem; background: rgb(74 222 128 / .12); border-radius: 999px; padding: 2px 12px; }
.lab-done svg { width: 15px; height: 15px; }
.hands-on { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.ide { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ide-editors { display: grid; gap: 6px; align-content: start; }
.ide-label { display: block; font-size: .82rem; font-weight: 700; color: var(--muted); letter-spacing: .3px; margin: 6px 0 4px; }
.code, .code-in, .qb select, .qb input:not([type="checkbox"]) {
  font: 500 .92rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; width: 100%; min-width: 0;
}
.code { resize: vertical; tab-size: 2; }
.code:focus, .code-in:focus, .qb select:focus, .qb input:focus { outline: none; border-color: var(--accent); }
.preview-host { min-height: 240px; border: 1px solid var(--border); border-radius: 12px; overflow: auto; }
.checks-title { margin: 16px 0 8px; font-size: 1rem; }
.checks { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.checks li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .92rem; }
.checks li svg { width: 16px; height: 16px; color: #4ade80; flex-shrink: 0; }
.checks li .dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--border); flex-shrink: 0; }
.checks li.ok { color: var(--text); }
.concept { margin-top: 16px; background: var(--bg-alt); border-inline-start: 3px solid var(--accent); border-radius: 8px; padding: 12px 14px; color: var(--muted); line-height: 1.7; }
.concept b { color: var(--text); }
.concept code, .mission code, .hint-box code { font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--accent); }
.btn.small { padding: 8px 16px; font-size: .92rem; }
.btn-ghost { background: transparent; color: var(--accent); border-color: var(--border); }
#ui-reset { margin-top: 12px; }
.mission { background: color-mix(in srgb, var(--accent) 10%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.qb { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 10px; }
.qb fieldset { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px 12px; min-width: 0; }
.qb legend { font: 700 .82rem ui-monospace, Menlo, Consolas, monospace; color: var(--accent); padding: 0 6px; }
.qb-cols { display: flex; flex-wrap: wrap; gap: 6px 12px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9rem; }
.qb-cols label, .qb-and { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.qb input[type="checkbox"] { accent-color: var(--accent); width: 16px; height: 16px; }
.qb-row { display: grid; grid-template-columns: auto 1fr 70px 1fr; gap: 6px; align-items: center; margin-top: 6px; }
.qb-row:first-of-type { grid-template-columns: 1fr 70px 1fr; }
.qb fieldset:last-child .qb-row { grid-template-columns: 1fr 90px; }
.qb select, .qb input:not([type="checkbox"]) { padding: 7px 8px; }
.sql-out { font: 500 .9rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin: 12px 0; white-space: pre-wrap; word-break: break-word; color: #a5d8ff; direction: ltr; text-align: left; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; }
.result { width: 100%; border-collapse: collapse; font-size: .92rem; }
.result th, .result td { padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--border); }
.result th { background: var(--bg-alt); color: var(--accent); font-family: ui-monospace, Menlo, Consolas, monospace; }
.result tr:last-child td { border-bottom: 0; }
.mission-status { margin-top: 10px; font-weight: 700; color: var(--muted); min-height: 1.5em; }
.mission-status.ok { color: #4ade80; }
.mission-status.bad { color: #f87171; }
.steps-x { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.step-x { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 12px; padding: 14px; min-width: 0; }
.step-x h4 { display: flex; align-items: center; gap: 8px; font-size: 1rem; }
.range-label { display: block; margin: 6px 0; font-size: .92rem; }
input[type="range"] { width: 100%; accent-color: var(--accent); }
.hint { color: var(--muted); font-size: .85rem; margin-top: 8px; }
.inline-form { display: flex; gap: 8px; align-items: center; }
.inline-form .code-in { flex: 1; }
.ethics { display: flex; gap: 10px; align-items: flex-start; background: rgb(250 204 21 / .08); border: 1px solid rgb(250 204 21 / .35); color: #fde68a; border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; font-size: .95rem; }
.ethics svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.sqli { display: grid; grid-template-columns: 300px 1fr; gap: 16px; align-items: start; }
.fake-login { background: #f4f6fa; color: #111; border-radius: 12px; padding: 0 16px 16px; display: grid; gap: 4px; overflow: hidden; }
.fake-login .ide-label { color: #555; }
.fake-login .code-in { background: #fff; color: #111; border-color: #cbd2dc; }
.fake-login .btn { margin-top: 10px; }
.fake-bar { margin: 0 -16px 8px; padding: 8px 14px; background: #dfe4ec; color: #555; font: .8rem ui-monospace, Menlo, Consolas, monospace; }
.toggle { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: .9rem; color: #333; cursor: pointer; }
.toggle input { accent-color: #16a34a; width: 16px; height: 16px; }
.hint-box { margin-top: 10px; color: var(--muted); }
.hint-box summary { cursor: pointer; color: var(--accent); font-weight: 700; }
.hint-box p { margin-top: 6px; }
.ml { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; align-items: start; }
#ml-plot { width: 100%; height: auto; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; }
#ml-plot .grid { stroke: #1f2b3d; stroke-width: 1; }
#ml-plot .tick { fill: #7d8aa0; font-size: 11px; font-family: system-ui, sans-serif; }
#ml-plot .axis { fill: #9aaabf; font-size: 12px; font-family: system-ui, sans-serif; }
#ml-plot .pt { fill: var(--accent); }
#ml-plot .model { stroke: #f6c177; stroke-width: 3; stroke-linecap: round; }
#ml-plot .err { stroke: #f87171; stroke-width: 1.5; stroke-dasharray: 3 3; opacity: .7; }
.ml-side { display: grid; gap: 4px; }
.ml-stats, .ml-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.ml-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ml-stats div, .ml-facts div { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; display: grid; }
.ml-stats span, .ml-facts span { font-size: .8rem; color: var(--muted); }
.ml-stats b, .ml-facts b { font-size: 1.3rem; color: var(--accent); }
.pred { color: #f6c177; font-weight: 700; white-space: nowrap; }

/* المختبر: هوية المجلس، وخريطة الأنشطة، والتلميحات، والمسافات */
.lab-kicker { display: inline-block; color: var(--accent); font-weight: 700; background: color-mix(in srgb, var(--accent) 14%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 999px; padding: 4px 16px; margin-bottom: 12px; }
.lab-map-box { margin-bottom: 28px; }
.lab-map-box .sub-title { margin-top: 0; }
.lab-map { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.map-item { width: 100%; height: 100%; display: grid; gap: 8px; align-content: start; text-align: start; font: inherit; color: var(--text); background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 14px; cursor: pointer; transition: .2s; }
.map-item:hover { border-color: var(--accent); }
.map-item.is-done { border-color: rgb(74 222 128 / .6); }
.map-item.is-done .map-num { background: #4ade80; }
.map-num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--navy); font-weight: 800; }
.map-text { display: grid; gap: 2px; }
.map-text small, .map-meta small { color: var(--muted); font-size: .85rem; }
.map-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hands-on { display: grid; gap: 18px; padding: 24px; }
.hands-on > * { margin: 0 !important; }
.hands-on h3:focus { outline: none; }
.lab-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.lab-time { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .9rem; }
.lab-time svg { width: 16px; height: 16px; }
.lab-stage { display: grid; gap: 16px; }
.lab-stage > .concept { margin-top: 8px; }
.lab-help { display: grid; gap: 12px; border-top: 1px solid var(--border); padding-top: 18px; }
.hints { display: grid; gap: 10px; justify-items: start; }
.hint-list { list-style: none; display: grid; gap: 8px; width: 100%; }
.hint-list li { display: grid; gap: 4px; background: var(--bg-alt); border: 1px solid var(--border); border-inline-start: 3px solid #f6c177; border-radius: 10px; padding: 10px 14px; line-height: 1.8; }
.hint-list b { color: #f6c177; font-size: .9rem; }
.btn:disabled { opacity: .6; cursor: default; }
.hint-codes { display: flex; flex-wrap: wrap; gap: 8px; }
.hint-codes code { font: 600 .95rem ui-monospace, Menlo, Consolas, monospace; color: #a5d8ff; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 4px 10px; }
.hint-note { color: #fde68a; font-weight: 700; }
.safe-why { display: flex; gap: 8px; align-items: flex-start; background: rgb(74 222 128 / .08); border: 1px solid rgb(74 222 128 / .35); color: #bbf7d0; border-radius: 10px; padding: 10px 12px; margin-top: 10px; }
.safe-why svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 4px; }

/* الخطط الدراسية */
.plan-tools { margin-bottom: 16px; }
.plan-help { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 24px; }
.plan-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .95rem; color: var(--text); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 18px; margin-bottom: 24px; }
.plan-legend li { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 14px; height: 14px; border-radius: 4px; border: 2px solid; }
.sw.uni { background: rgb(45 212 191 / .2); border-color: #2dd4bf; }
.sw.sci { background: rgb(148 163 184 / .2); border-color: #94a3b8; }
.sw.core { background: color-mix(in srgb, var(--accent) 20%, transparent); border-color: var(--accent); }
.sw.elec { background: rgb(251 146 60 / .2); border-color: #fb923c; border-style: dashed; }
.sw.pre { background: rgb(250 204 21 / .2); border-color: #facc15; }
.key { font-weight: 700; padding: 0 8px; border-radius: 6px; }
.key-pre { color: #fde68a; background: rgb(250 204 21 / .15); }
.key-next { color: #bbf7d0; background: rgb(74 222 128 / .15); }
.plan-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.plan-head h2 { font-size: 1.7rem; font-weight: 800; }
.plan-en { color: var(--accent); font-weight: 500; text-align: right; }
.plan-dept { color: var(--muted); }
.plan-stats { display: flex; align-items: center; gap: 10px; }
.plan-stats > div { display: grid; text-align: center; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 8px 16px; }
.plan-stats b { font-size: 1.4rem; color: var(--accent); line-height: 1.3; }
.plan-stats span { font-size: .8rem; color: var(--muted); }
.print-brand { display: none; }
.p-grid { display: grid; gap: 18px; }
.p-year { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 18px; padding: 16px; }
.p-year-title { font-size: 1.15rem; font-weight: 800; color: var(--accent); margin-bottom: 12px; }
.p-levels { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.p-level { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; }
.p-level h4 { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; font-size: 1rem; font-weight: 800; padding-bottom: 6px; border-bottom: 1px solid var(--border); margin-bottom: 2px; }
.p-level h4 small { color: var(--muted); font-weight: 500; font-size: .85rem; }
.c { font: inherit; color: var(--text); text-align: start; display: grid; gap: 2px; align-content: start; background: var(--card); border: 1.5px solid var(--border); border-inline-start: 4px solid var(--accent); border-radius: 10px; padding: 8px 10px; cursor: pointer; transition: .15s; min-width: 0; }
.c:hover { border-color: var(--accent); }
.c.uni { border-inline-start-color: #2dd4bf; }
.c.sci { border-inline-start-color: #94a3b8; }
.c.elec { border-inline-start-color: #fb923c; border-style: dashed; border-inline-start-style: solid; }
.c.slot { cursor: default; place-content: center; text-align: center; color: #fdba74; border-inline-start-width: 1.5px; border-style: dashed; border-color: #fb923c; background: rgb(251 146 60 / .08); }
.c-code { font: 700 .92rem ui-monospace, Menlo, Consolas, monospace; text-align: right; }
.c-name { font-size: .82rem; line-height: 1.4; color: var(--muted); text-align: right; }
.c-h { font-size: .78rem; color: var(--muted); }
.c-pre { font-size: .75rem; color: #fde68a; }
.c.is-pre .c-pre { color: #fde68a; }
.plan.focus .c:not(.is-sel):not(.is-pre):not(.is-next) { opacity: .35; }
.c.is-sel { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 22%, var(--card)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.c.is-pre { border-color: #facc15; background: rgb(250 204 21 / .14); }
.c.is-next { border-color: #4ade80; background: rgb(74 222 128 / .12); }
.p-summer { display: grid; grid-template-columns: auto minmax(0, 360px) auto; align-items: center; justify-content: start; gap: 14px; background: color-mix(in srgb, var(--accent) 10%, var(--bg-alt)); border: 1px dashed var(--accent); border-radius: 18px; padding: 14px 16px; }
.p-summer .p-year-title { margin: 0; }
.p-summer-note { color: var(--muted); font-size: .9rem; }
.p-info { position: sticky; bottom: 12px; z-index: 5; margin-top: 16px; background: var(--card); border: 1px solid var(--accent); border-radius: 16px; padding: 16px 18px; box-shadow: 0 16px 40px rgb(0 0 0 / .45); }
.p-info h4 { font-size: 1.05rem; margin-inline-end: 30px; margin-bottom: 10px; }
.p-info-close { position: absolute; top: 10px; inset-inline-end: 12px; background: none; border: 0; color: var(--muted); font-size: 1.1rem; cursor: pointer; }
.p-info-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.p-info ul { list-style: none; display: grid; gap: 4px; margin-top: 8px; font-size: .92rem; }
.p-info li span { color: var(--muted); }
.muted-line { color: var(--muted); margin: -6px 0 12px; }
.p-electives { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.major-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.major-actions .btn { margin: 0; }

/* صفحة غير موجودة */
.notfound { text-align: center; padding: 100px 0; }
.notfound h1 { font-size: 2.2rem; margin-bottom: 8px; }

/* الفوتر */
.site-footer { background: var(--navy); color: #c9d6e6; padding: 28px 0; text-align: center; font-size: .9rem; }
.socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 28px; margin-bottom: 12px; }
.socials a { display: inline-flex; align-items: center; gap: 8px; color: #fff; }
.socials a:hover { color: var(--accent); }
.socials svg { width: 20px; height: 20px; }

/* الآيباد والشاشات المتوسطة: قائمة منسدلة، والهيكلة ثلاث بطاقات في الصف */
@media (max-width: 1260px) {
  .menu-toggle { display: block; }
  .nav-tools { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 72px; inset-inline: -16px;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 12px 16px 16px;
    background: var(--navy); box-shadow: 0 12px 24px rgb(0 0 0 / .3);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 18px; }
  .hero { padding: 64px 0 56px; }
  .hero-logo { width: min(220px, 26vw); }
  .cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .org-row { gap: 16px; }
  .person { min-width: 0; padding: 16px 14px; }
  .person h3 { font-size: 1.1rem; }
  .person.level-1, .person.level-2 { width: min(300px, 100%); }
  .row-3 .person, .person.level-4 { flex: 0 0 calc((100% - 32px) / 3); width: auto; }
}

/* الآيباد العمودي */
@media (max-width: 820px) {
  .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .major-grid { grid-template-columns: 1fr 1fr; }
  .initiative { grid-template-columns: 1fr; }
  .lab-two { grid-template-columns: 1fr; }
  .p-levels { grid-template-columns: 1fr; }
  .lab-map { grid-template-columns: 1fr 1fr; }
  .mini-grid, .media-grid { grid-template-columns: 1fr 1fr; }
  .ide, .sqli, .ml, .qb { grid-template-columns: 1fr; }
  .certs { grid-template-columns: 1fr; }
  .steps-x { grid-template-columns: 1fr; }
  .roadmap { grid-template-columns: 1fr 1fr; }
  .cards.three { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .section { padding: 56px 0; }
}

/* الجوال */
@media (max-width: 640px) {
  .quick { grid-template-columns: 1fr 1fr; gap: 10px; }
  .quick-card { padding: 16px; }
  .major-tabs { grid-template-columns: 1fr 1fr; }
  .major-grid { grid-template-columns: 1fr; }
  .roadmap, .ch-options, .res-grid { grid-template-columns: 1fr; }
  .mini-grid, .media-grid, .major-grid.two, .checks, .certs { grid-template-columns: 1fr; }
  .cert { padding: 14px; gap: 12px; }
  .cert-badge { width: 72px; height: 72px; border-radius: 14px; }
  .cert-badge b { font-size: .9rem; }
  .cert-badge b.long { font-size: .72rem; }
  .ml-facts { grid-template-columns: 1fr 1fr; }
  .lab-map { grid-template-columns: 1fr; gap: 8px; }
  .p-year { padding: 12px; }
  .p-summer { grid-template-columns: 1fr; }
  .p-info-cols { grid-template-columns: 1fr; }
  .plan-stats { width: 100%; }
  .map-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; }
  .map-text { flex: 1; min-width: 0; }
  .map-text small, .map-meta small { font-size: .8rem; }
  .map-meta { flex-direction: column; align-items: flex-end; gap: 2px; }
  .hands-on { padding: 16px; }
  .lab-block { padding: 16px; }
  .section-head { flex-wrap: wrap; }
  .hero > .container > .hero-logo { display: none; }
  .hero { padding: 48px 0 40px; }
  .highlights { padding-top: 28px; }
  .section { padding: 48px 0; }
  .section-title { font-size: 1.6rem; margin-bottom: 24px; }
  .page-head { padding: 40px 0; }
  .cards.three { grid-template-columns: minmax(0, 1fr); }
  .logo { font-size: 1rem; }
  .logo img { width: 44px; height: 44px; }
  /* الهيكلة على الجوال: بطاقتان في كل صف، والبطاقة الأخيرة في المنتصف */
  .org-row { gap: 12px; }
  .org-link { height: 24px; }
  .person { padding: 16px 12px; }
  .person h3 { font-size: 1.05rem; line-height: 1.45; }
  .person span { display: block; font-size: .8rem; line-height: 1.5; margin-top: 4px; }
  .person.level-1, .person.level-2 { padding: 18px 16px; }
  .person.level-1 h3 { font-size: 1.25rem; }
  .person.level-2 h3 { font-size: 1.15rem; }
  .row-3 .person, .person.level-4 { flex: 0 0 calc((100% - 12px) / 2); }
  /* بطاقة الفعالية: التاريخ والسهم فوق، والنص بعرض البطاقة */
  .event { flex-wrap: wrap; gap: 14px; padding: 16px; }
  .event-date { width: 64px; height: 64px; }
  .event-date strong { font-size: 1.35rem; }
  .event .more-link { margin-inline-start: auto; }
  .event-body { order: 3; flex-basis: 100%; }
  .cal-menu[open] { flex-basis: 100%; }
  .cal-options { position: static; margin-top: 6px; min-width: 0; }
  .form .q { padding: 16px; }
  .form .btn { justify-self: stretch; text-align: center; }
  .item-meta { flex-direction: column; gap: 8px; }
  .volunteer-cta .btn { width: 100%; text-align: center; }
}

/* طباعة الخطة الدراسية بهوية المجلس: صفحة A4 أفقية واحدة مثل مخططات الأقسام */
@media print {
  @page { size: A4 landscape; margin: 7mm; }
  :root { --bg: #fff; --bg-alt: #f3f6fa; --card: #fff; --border: #c9d3e0; --text: #111827; --muted: #4b5563; --accent: #1f5f8b; }
  html, body { background: #fff; color: #111827; }
  .site-header, .site-footer, .skip, .page-head, .plan-tools, .plan-help, .note, .p-info, [data-print], .plan[hidden], .muted-line { display: none !important; }
  .section, .container { padding: 0; width: 100%; margin: 0; }
  * { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .print-brand { display: flex; align-items: center; gap: 10px; padding-bottom: 4px; margin-bottom: 4px; border-bottom: 2px solid #1f5f8b; }
  .print-brand img { width: 34px; height: 34px; background: #141d2c; border-radius: 8px; padding: 3px; }
  .print-brand b { display: block; font-size: 12pt; color: #1f5f8b; line-height: 1.2; }
  .print-brand span { font-size: 7.5pt; color: #4b5563; }
  .plan-head { margin-bottom: 4px; gap: 8px; }
  .plan-head h2 { font-size: 12pt; line-height: 1.3; }
  .plan-en, .plan-dept { font-size: 7.5pt; line-height: 1.3; }
  .plan-stats > div { padding: 1px 8px; border-radius: 6px; }
  .plan-stats b { font-size: 10pt; } .plan-stats span { font-size: 6.5pt; }
  .p-grid { grid-template-columns: 1fr 1fr 1fr 34mm 1fr; gap: 4px; align-items: stretch; }
  .p-year, .p-summer { padding: 4px; border-radius: 8px; break-inside: avoid; }
  .p-summer { display: grid; grid-template-columns: 1fr; align-content: center; justify-content: stretch; gap: 4px; }
  .p-year-title { font-size: 8pt; margin-bottom: 2px; }
  .p-levels { grid-template-columns: 1fr 1fr; gap: 3px; }
  .p-level { grid-template-columns: 1fr; gap: 3px; }
  .p-level h4 { font-size: 7.5pt; padding-bottom: 1px; display: grid; gap: 0; }
  .p-level h4 small { font-size: 6pt; }
  .c { padding: 2px 4px; border-radius: 4px; border-width: 1px; border-inline-start-width: 3px; gap: 0; }
  .c-code { font-size: 7.4pt; } .c-name { font-size: 6.4pt; line-height: 1.3; } .c-h, .c-pre { font-size: 6pt; line-height: 1.3; }
  .c.slot b { font-size: 7pt; }
  .plan { padding: 0 2mm; }
  .c-pre { color: #92400e; }
  .p-summer-note { font-size: 6pt; }
  .plan.focus .c { opacity: 1 !important; }
  .c.is-sel, .c.is-pre, .c.is-next { background: #fff; box-shadow: none; }
  .major-h { font-size: 8pt; margin: 4px 0 2px; }
  .p-electives { grid-template-columns: repeat(7, 1fr); gap: 3px; }
  .plan-legend { display: none; }
}

/* فعاليات سابقة بصورها */
.year-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -8px 0 24px; }
.year-btn { font: inherit; font-weight: 700; cursor: pointer; padding: 8px 22px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--muted); transition: .2s; }
.year-btn:hover { color: var(--text); border-color: var(--accent); }
.year-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--navy); }
.past-event { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; }
.past-event-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 20px; margin-bottom: 16px; }
.past-event-head h3 { margin: 8px 0 6px; font-size: 1.35rem; }
.past-event-head p { margin: 0; color: var(--muted); line-height: 1.8; max-width: 640px; }
.past-event-head .btn { display: inline-flex; align-items: center; gap: 8px; }
.past-event-head .btn svg { width: 18px; height: 18px; }
.edition { padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--border); }
.edition:first-of-type { margin-top: 0; }
.edition-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 6px; }
.edition-head h4 { margin: 0; font-size: 1.05rem; }
.edition-desc { margin: 0 0 12px; color: var(--muted); line-height: 1.8; max-width: 720px; }
.gallery { display: grid; gap: 8px; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 150px; }
.gallery.g-5 .gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
.gallery.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 220px; }
.gallery.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 260px; }
.gallery.g-1 { grid-template-columns: 1fr; grid-auto-rows: auto; max-width: 640px; }
.gallery.g-1 .gallery-item { aspect-ratio: 4 / 3; max-height: 520px; }
.gallery-item { position: relative; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: var(--navy-2); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(15, 22, 35, .65); color: #fff; font-size: 1.3rem; font-weight: 800; }
.lightbox { margin: auto; max-width: min(1100px, 96vw); width: 100%; padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(5, 9, 16, .88); }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 12px; display: block; margin: 0 auto; }
.lightbox figcaption { color: #e6edf6; margin-top: 10px; font-size: .9rem; }
.lb-close, .lb-nav { position: absolute; z-index: 2; border: 0; cursor: pointer; color: #fff; background: rgba(20, 29, 44, .8); width: 44px; height: 44px; border-radius: 50%; font-size: 1.6rem; line-height: 1; display: grid; place-items: center; }
.lb-close { top: -12px; inset-inline-end: -12px; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { inset-inline-start: 8px; }
.lb-next { inset-inline-end: 8px; }
.lb-close:hover, .lb-nav:hover { background: var(--primary); }
@media (max-width: 820px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 120px; }
  .gallery.g-5 .gallery-item:first-child { grid-row: span 2; }
  .gallery.g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 140px; }
  .gallery.g-3 .gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
}
@media (max-width: 640px) {
  .past-event { padding: 16px; }
  .lb-close { top: 8px; inset-inline-end: 8px; }
}

/* المجالس السابقة */
.past-councils { margin-top: 40px; }
.past-council { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; }
.past-council summary { cursor: pointer; padding: 16px 20px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; list-style: none; }
.past-council summary::-webkit-details-marker { display: none; }
.past-council summary::before { content: "+"; color: var(--accent); font-weight: 800; font-size: 1.2rem; }
.past-council[open] summary::before { content: "−"; }
.past-council summary small { color: var(--muted); }
.past-council .org { padding: 0 16px 20px; }
.past-version { margin: 8px 20px 14px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 1rem; color: var(--accent); }

/* تسجيلات المجلس وإنجازاته */
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 28px; }
.video-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: .2s; color: var(--text); }
.video-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.video-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--navy-2); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(15, 22, 35, .15); transition: .2s; }
.video-play svg { width: 54px; height: 54px; color: #fff; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .5)); opacity: .9; }
.video-card:hover .video-play { background: rgba(15, 22, 35, .35); }
.video-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.video-body b { line-height: 1.6; }
.video-body small { color: var(--muted); line-height: 1.7; }
.video-year { align-self: flex-start; font-size: .75rem; font-weight: 700; color: var(--navy); background: var(--accent); border-radius: 999px; padding: 0 10px; }
.video-go { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: .85rem; font-weight: 700; }
.video-go svg { width: 14px; height: 14px; }
.video-card.big { flex-direction: row; }
.video-card.big .video-thumb { flex: 0 0 52%; }
.video-card.big .video-body { justify-content: center; padding: 20px 24px; }
.video-card.big .video-body b { font-size: 1.15rem; }
.major-video { margin-bottom: 22px; }
.archive-desc { margin: -6px 0 14px; }
.ach-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 22px; }
.ach-stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 4px; text-align: center; }
.ach-stat b { font-size: 2.4rem; line-height: 1.1; color: var(--accent); font-weight: 800; }
.ach-stat span { font-weight: 700; }
.ach-stat small { color: var(--muted); line-height: 1.6; font-size: .85rem; }
@media (max-width: 820px) {
  .video-grid { grid-template-columns: 1fr 1fr; }
  .ach-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .video-card.big { flex-direction: column; }
}
@media (max-width: 640px) {
  .video-grid { grid-template-columns: 1fr; }
  .ach-stats { grid-template-columns: 1fr; }
  .ach-stat { padding: 14px; }
  .ach-stat b { font-size: 2rem; }
}

/* منظّم الفصل */
.pl-privacy { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 24px; padding: 14px 18px; border-radius: 12px; background: rgba(95, 179, 228, .08); border: 1px solid rgba(95, 179, 228, .3); color: var(--text); line-height: 1.8; }
.pl-setup { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.pl-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pl-card h2 { margin: 0; font-size: 1.2rem; display: flex; align-items: center; gap: 10px; }
.pl-step { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--navy); font-size: .95rem; flex: none; }
.pl-card label { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; color: var(--muted); font-weight: 700; min-width: 0; }
.pl-card select, .pl-card input:not([type="checkbox"]):not([type="file"]) { font: inherit; font-size: 16px; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; min-width: 0; width: 100%; }
.pl-card input[type="date"], .pl-card input[type="time"] { color-scheme: dark; }
.pl-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pl-hint { margin: -6px 0 0; font-size: .85rem; color: var(--muted); line-height: 1.7; }
.pl-courses { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow-y: auto; }
.pl-courses li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 10px; background: var(--bg-alt); border: 1px solid var(--border); }
.pl-courses li span { display: flex; flex-direction: column; min-width: 0; }
.pl-courses li small { color: var(--muted); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.pl-courses .pl-empty { color: var(--muted); justify-content: center; }
.pl-add-course { display: flex; gap: 8px; }
.pl-add-course input { flex: 1; }
.pl-x { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.pl-x:hover { background: rgba(240, 100, 100, .15); color: #ff8a8a; }
.pl-drop { position: relative; align-items: center; text-align: center; padding: 26px 16px; border: 2px dashed var(--border); border-radius: 14px; cursor: pointer; transition: .2s; }
.pl-drop:hover, .pl-drop:focus-within { border-color: var(--accent); background: rgba(95, 179, 228, .06); }
.pl-drop b { color: var(--text); font-size: 1.05rem; }
.pl-drop small { font-weight: 400; line-height: 1.7; }
.pl-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.pl-status { margin: 0; min-height: 1.5em; font-size: .92rem; color: var(--muted); }
.pl-status.ok { color: #7ee2a8; }
.pl-status.err { color: #ffb36b; }
.pl-manual summary { cursor: pointer; color: var(--accent); font-weight: 700; }
.pl-manual-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; align-items: end; }
.pl-manual-form .wide { grid-column: 1 / -1; }
.pl-review { margin-top: 20px; border-color: var(--accent); }
.pl-cands { display: flex; flex-direction: column; gap: 8px; }
.pl-cand { display: grid; grid-template-columns: auto 130px 1fr 160px 64px; gap: 8px; align-items: center; padding: 8px; border-radius: 10px; background: var(--bg-alt); }
.pl-cand.off { opacity: .5; }
.pl-cand input[type="checkbox"], .pl-task input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--accent); cursor: pointer; }
.pl-approx { font-size: .75rem; color: #ffb36b; border: 1px solid #ffb36b; border-radius: 999px; padding: 2px 8px; text-align: center; }
.pl-actions, .pl-tools { display: flex; flex-wrap: wrap; gap: 10px; }
.pl-dash { margin-top: 32px; }
.pl-stats { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.pl-stat { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pl-stat small { color: var(--muted); font-size: .82rem; }
.pl-stat b { font-size: 1.6rem; line-height: 1.3; }
.pl-stat span { color: var(--muted); font-size: .88rem; overflow-wrap: anywhere; }
.pl-stat.main { background: linear-gradient(135deg, var(--navy-2), #1e3a5a); border-color: var(--primary); }
.pl-stat.main b { color: var(--accent); }
.pl-stat.warn b { color: #ffb36b; }
.pl-tabs { display: flex; gap: 6px; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.pl-tabs [role="tab"] { font: inherit; font-weight: 700; background: none; border: 0; border-bottom: 3px solid transparent; color: var(--muted); padding: 10px 16px; cursor: pointer; margin-bottom: -1px; }
.pl-tabs [aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.pl-h { font-size: 1rem; margin: 18px 0 10px; color: var(--text); }
.pl-h small { color: var(--muted); font-weight: 400; font-size: .82rem; }
.pl-h.late { color: #ffb36b; }
.pl-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pl-task { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--card); border: 1px solid var(--border); border-inline-start: 4px solid var(--muted); border-radius: 12px; }
.pl-task.t-exam { border-inline-start-color: #ff6b6b; }
.pl-task.t-quiz { border-inline-start-color: #ffb36b; }
.pl-task.t-assign { border-inline-start-color: var(--accent); }
.pl-task.t-project { border-inline-start-color: #b48cff; }
.pl-task.t-pres { border-inline-start-color: #7ee2a8; }
.pl-task.done { opacity: .55; }
.pl-task.done b { text-decoration: line-through; }
.pl-task-body { flex: 1; min-width: 0; }
.pl-task-body b { display: block; overflow-wrap: anywhere; }
.pl-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 4px; font-size: .82rem; color: var(--muted); }
.pl-code { color: var(--accent); font-weight: 700; }
.pl-late { color: #ffb36b; font-weight: 700; }
.pl-left { color: var(--text); }
.pl-empty-box { margin: 0; padding: 18px; border: 1px dashed var(--border); border-radius: 12px; color: var(--muted); text-align: center; }
.pl-week-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.pl-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.pl-day { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 12px; padding: 10px; min-height: 120px; min-width: 0; }
.pl-day.is-today { border-color: var(--accent); }
.pl-day h4 { margin: 0 0 8px; font-size: .8rem; color: var(--muted); }
.pl-day.is-today h4 { color: var(--accent); }
.pl-day .pl-task { padding: 8px; gap: 6px; flex-wrap: wrap; }
.pl-day .pl-task-body b { font-size: .85rem; }
.pl-day .pl-x { width: 24px; height: 24px; }
.pl-free { margin: 0; color: var(--muted); font-size: .8rem; opacity: .6; }
.pl-tools { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border); }
.pl-danger { color: #ff8a8a; }
.pl-danger:hover { border-color: #ff8a8a; }
@media (max-width: 1260px) {
  .pl-week { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .pl-setup { grid-template-columns: 1fr; }
  .pl-stats { grid-template-columns: 1fr 1fr; }
  .pl-stat.main { grid-column: 1 / -1; }
  .pl-cand { grid-template-columns: auto 1fr 1fr; }
  .pl-cand [data-f="title"] { grid-column: 2 / -1; order: 3; }
  .pl-week { grid-template-columns: 1fr; }
  .pl-day { min-height: 0; }
}
@media (max-width: 640px) {
  .pl-card { padding: 16px; }
  .pl-manual-form { grid-template-columns: 1fr; }
  .pl-week-nav .btn { padding: 6px 10px; font-size: .8rem; }
  .pl-cand { grid-template-columns: auto 1fr; }
  .pl-cand [data-f="title"], .pl-cand [data-f="date"] { grid-column: 1 / -1; }
}
@media print { .pl-setup, .pl-review, .pl-tools, .pl-privacy, .pl-tabs { display: none !important; } }

/* لمسات ثلاثية الأبعاد (depth.js) */
.depth-on .quick-card, .depth-on .card, .depth-on .person, .depth-on .cert, .depth-on .media-card,
.depth-on .video-card, .depth-on .ach-stat, .depth-on .gallery-item, .depth-on .event { transform-style: preserve-3d; will-change: transform; }
.depth-on .is-tilting {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px) scale(1.015);
  transition: transform .12s ease-out, box-shadow .2s, border-color .2s;
  box-shadow: 0 18px 40px rgb(0 0 0 / .45), 0 0 0 1px rgb(95 179 228 / .25);
  background-image: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgb(255 255 255 / .08), transparent 55%);
}
.depth-on .gallery-item.is-tilting { scale: 1; }
.depth-on .c, .depth-on .major-tabs button, .depth-on .plan-stats > div { transform-style: preserve-3d; }
.depth-on .c.is-tilting { transform: perspective(600px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-3px) scale(1.04); z-index: 2; position: relative; }
.depth-on .c.is-sel.is-tilting { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent), 0 18px 40px rgb(0 0 0 / .45); }
.depth-on .major-tabs button[aria-selected="true"].is-tilting { background-image: none; }
.depth-on .major-tabs button[aria-selected="true"] { box-shadow: 0 10px 30px rgb(95 179 228 / .35); }
.depth-on .reveal { opacity: 0; transform: perspective(900px) translateY(32px) rotateX(12deg); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.depth-on main { overflow-x: clip; }
.depth-on .reveal.from-top { transform: perspective(900px) translateY(-32px) rotateX(-12deg); }
.depth-on .reveal.in-view { opacity: 1; transform: none; }
.hero { position: relative; overflow: hidden; }
.hero-inner { position: relative; z-index: 1; }
.depth-on .hero-logo { transform: translate3d(calc(var(--px, 0) * -28px), calc(var(--py, 0) * -20px + var(--sy, 0) * .18px), 0) rotateY(calc(var(--px, 0) * 18deg)); transition: transform .25s ease-out; filter: drop-shadow(0 20px 30px rgb(0 0 0 / .4)); }
.depth-on .hero-text { transform: translate3d(calc(var(--px, 0) * 10px), calc(var(--py, 0) * 8px - var(--sy, 0) * .08px), 0); transition: transform .25s ease-out; }
.hero-depth { position: absolute; inset: 0; pointer-events: none; perspective: 800px; }
.hero-depth span { position: absolute; border-radius: 50%; border: 1px solid rgb(95 179 228 / .22); transition: transform .3s ease-out; }
.hero-depth .d1 { width: 420px; height: 420px; inset-inline-end: -120px; top: -140px; transform: translate3d(calc(var(--px, 0) * 40px), calc(var(--py, 0) * 30px + var(--sy, 0) * .35px), 0); }
.hero-depth .d2 { width: 220px; height: 220px; inset-inline-start: 6%; bottom: -80px; border-style: dashed; transform: translate3d(calc(var(--px, 0) * -60px), calc(var(--py, 0) * -40px + var(--sy, 0) * .25px), 0) rotate(calc(var(--px, 0) * 40deg)); }
.hero-depth .d3 { width: 12px; height: 12px; background: var(--accent); border: 0; top: 22%; inset-inline-start: 42%; opacity: .6; transform: translate3d(calc(var(--px, 0) * 90px), calc(var(--py, 0) * 70px + var(--sy, 0) * .5px), 0); }
.hero-depth .d4 { width: 8px; height: 8px; background: #fff; border: 0; bottom: 24%; inset-inline-end: 38%; opacity: .35; transform: translate3d(calc(var(--px, 0) * -110px), calc(var(--py, 0) * -80px + var(--sy, 0) * .6px), 0); }
.hero-depth .d5 { width: 640px; height: 640px; inset-inline-start: -260px; top: -200px; border-color: rgb(255 255 255 / .06); transform: translate3d(calc(var(--px, 0) * 20px), calc(var(--py, 0) * 14px + var(--sy, 0) * .15px), 0); }
@media (prefers-reduced-motion: reduce) { .hero-depth { display: none; } }
@media print { .depth-on .reveal { opacity: 1 !important; transform: none !important; transition: none !important; } .hero-depth { display: none; } }

/* الواجهة الرئيسية: كرة الشبكة والعنوان المتحرك */
.hero-visual { position: relative; flex: none; width: min(440px, 38vw); aspect-ratio: 1; display: grid; place-items: center; }
.hero-visual::before { content: ""; position: absolute; inset: 4%; border-radius: 50%; border: 1px dashed rgb(95 179 228 / .18); }
.hero-visual::after { content: ""; position: absolute; inset: 22%; border-radius: 50%; background: radial-gradient(circle, rgb(95 179 228 / .22), transparent 70%); filter: blur(10px); }
#hero-globe { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-visual .hero-logo { position: relative; z-index: 1; width: 38%; height: auto; opacity: .95; filter: drop-shadow(0 0 18px rgb(95 179 228 / .45)); }
.depth-on .hero-visual { transform: translate3d(calc(var(--px, 0) * -24px), calc(var(--py, 0) * -18px + var(--sy, 0) * .18px), 0); transition: transform .25s ease-out; }
.depth-on .hero-visual .hero-logo { transform: none; filter: drop-shadow(0 0 18px rgb(95 179 228 / .45)); }
#hero-typed { display: inline-block; padding: 0 .08em .12em; background: linear-gradient(90deg, #9fd6f5, var(--accent) 55%, #3a8bbf); -webkit-background-clip: text; background-clip: text; color: transparent; transition: opacity .45s ease, transform .45s ease, filter .45s ease; }
#hero-typed.swap-out { opacity: 0; transform: translateY(-14px); filter: blur(6px); }
#hero-typed.swap-in { opacity: 0; transform: translateY(14px); filter: blur(6px); transition: none; }
.hero h1 { min-height: 2.6em; }
@media (max-width: 820px) {
  .hero-visual { width: min(300px, 40vw); }
}
@media (max-width: 640px) {
  .hero-inner { flex-direction: column-reverse; gap: 8px; }
  .hero-visual { width: min(210px, 58vw); }
  .hero-text { text-align: center; }
  .hero-text > p:not(.eyebrow) { margin-inline: auto; }
  .hero-actions { justify-content: center; }
}

/* خلفية الشبكة المتحركة (bg.js) */
.bg-net { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
main, .site-footer { position: relative; z-index: 1; }
.section.alt { background: rgb(20 29 44 / .55); }
.page-head { background: linear-gradient(135deg, rgb(20 29 44 / .85) 0%, rgb(31 59 92 / .75) 100%); }
@media print { .bg-net { display: none; } }

/* ألوان وتوهّج */
body { background:
  radial-gradient(700px 480px at 88% 8%, rgb(74 159 212 / .14), transparent 70%),
  radial-gradient(800px 560px at 8% 55%, rgb(95 179 228 / .08), transparent 70%),
  var(--bg); background-attachment: fixed; }
.section-title { background: linear-gradient(90deg, #fff, #9fd6f5 60%, #5fb3e4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-title::after { width: 120px; background: linear-gradient(90deg, transparent, var(--accent), transparent); box-shadow: 0 0 14px var(--accent); }
.btn:not(.btn-outline):not(.btn-ghost) { background: linear-gradient(135deg, #5fb3e4, #3a8bbf); border-color: transparent; box-shadow: 0 8px 24px rgb(95 179 228 / .35); }
.btn:not(.btn-outline):not(.btn-ghost):hover { box-shadow: 0 10px 30px rgb(95 179 228 / .55); }
.hero-actions .btn:not(.btn-outline) { color: var(--navy); }
.card, .ach-stat, .past-event, .video-card {
  --fill: linear-gradient(160deg, #1c2a40, #161f30);
  --edge: linear-gradient(135deg, rgb(95 179 228 / .65), rgb(38 53 77 / .6) 40%, rgb(95 179 228 / .3));
  border: 1px solid transparent; background: var(--fill) padding-box, var(--edge) border-box;
  box-shadow: 0 10px 40px rgb(95 179 228 / .08);
}
.depth-on :is(.card, .ach-stat, .past-event, .video-card).is-tilting {
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgb(255 255 255 / .08), transparent 55%) padding-box, var(--fill) padding-box, var(--edge) border-box;
}
.glow-ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 12px; color: #bfe6ff;
  background: radial-gradient(circle at 30% 30%, rgb(95 179 228 / .45), rgb(95 179 228 / .08)); box-shadow: inset 0 0 0 1px rgb(95 179 228 / .4), 0 0 24px rgb(95 179 228 / .25); }
.glow-ic svg { width: 28px; height: 28px; stroke-width: 1.8; }

/* صورة فعالية خلف عنوان الصفحة */
.page-head.has-photo { position: relative; overflow: hidden; padding: 96px 0 76px; background: #0f1623; }
.page-head .ph-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-head.has-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(15 22 35 / .55), rgb(15 22 35 / .93)); }
.page-head.has-photo .container { position: relative; z-index: 1; }
.page-head.has-photo h1 { text-shadow: 0 4px 24px rgb(0 0 0 / .5); }

/* صورة باهتة خلف بطاقة الفعالية */
.past-event { position: relative; overflow: hidden; }
.past-event > :not(.pe-bg) { position: relative; z-index: 1; }
.pe-bg { position: absolute; inset: 0; width: 100%; height: 340px; object-fit: cover; opacity: .16; filter: blur(2px) saturate(.8);
  -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent); mask-image: linear-gradient(180deg, #000 20%, transparent); pointer-events: none; }

/* شريط لحظات من فعالياتنا */
.moments { overflow: hidden; direction: ltr; margin-bottom: 28px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.moments-track { display: flex; gap: 14px; width: max-content; animation: moments 70s linear infinite; }
.moments:hover .moments-track { animation-play-state: paused; }
.moment { flex: none; display: block; height: 190px; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgb(0 0 0 / .4); border: 1px solid rgb(95 179 228 / .25); }
.moment img { height: 100%; width: auto; display: block; transition: transform .4s; }
.moment:hover img { transform: scale(1.05); }
@keyframes moments { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .moments { overflow-x: auto; } .moments-track { animation: none; } }
@media (max-width: 640px) {
  .page-head.has-photo { padding: 64px 0 52px; }
  .moment { height: 140px; }
  .pe-bg { height: 260px; }
}
@media print { .ph-img, .pe-bg, .moments { display: none !important; } .section-title { color: #111827; background: none; } .section-title::before { display: none; } }

/* التخصصات الأربعة في رأس صفحة التخصصات */
.ph-majors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 30px auto 0; max-width: 900px; }
.ph-major { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 10px; border-radius: 18px; color: #fff;
  background: rgb(20 29 44 / .55); border: 1px solid rgb(95 179 228 / .35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: .25s; }
.ph-major:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 12px 30px rgb(95 179 228 / .25); }
.ph-major.is-on { border-color: var(--accent); background: rgb(95 179 228 / .22); box-shadow: 0 0 0 2px rgb(95 179 228 / .35), 0 12px 30px rgb(95 179 228 / .25); }
#major-tabs { display: none; }
.major { scroll-margin-top: 104px; }
.ph-major .glow-ic { margin: 0 0 4px; }
.ph-major b { font-size: 1.02rem; }
.ph-major small { color: #c9d6e6; font-size: .78rem; }
@media (max-width: 640px) { .ph-majors { grid-template-columns: 1fr 1fr; gap: 10px; } .ph-major { padding: 14px 8px; } }

/* رسمة واجهة الكلية (college-art.js) */
.page-head.has-art { position: relative; overflow: hidden; padding: 64px 0 236px; background: linear-gradient(180deg, #0d1422 0%, #142238 60%, #1b2c47 100%); }
.page-head.has-art .container { position: relative; z-index: 1; }
.college-art { position: absolute; inset-inline: 0; bottom: 0; width: 100%; height: 220px; pointer-events: none; }
.page-head.has-art::after { content: none; }
.college-art .ca-star { fill: #9fd6f5; opacity: .55; }
.college-art .ca-wall { fill: url(#caWall); stroke: rgb(95 179 228 / .55); stroke-width: 2; }
.college-art .ca-far { fill: #16223a; stroke: rgb(95 179 228 / .2); stroke-width: 1.5; }
.college-art .ca-farwin { fill: rgb(95 179 228 / .12); }
.college-art .ca-fin { fill: #22344f; stroke: rgb(95 179 228 / .4); stroke-width: 1.5; }
.college-art .ca-win { fill: url(#caWin); stroke: #5fb3e4; stroke-width: 2; filter: url(#caGlow); }
.college-art .ca-mull { stroke: rgb(159 214 245 / .55); stroke-width: 1.5; }
.college-art .ca-line { stroke: rgb(95 179 228 / .3); stroke-width: 1.5; }
.college-art .ca-band { fill: #1f3150; stroke: rgb(95 179 228 / .45); stroke-width: 1.5; }
.college-art .ca-ar { font-family: "Tajawal", sans-serif; font-weight: 800; font-size: 22px; fill: #9fd6f5; filter: url(#caGlow); }
.college-art .ca-en { font-family: "Tajawal", sans-serif; font-weight: 700; font-size: 14px; letter-spacing: 1.5px; fill: #7fbfe6; }
.college-art .ca-canopy { fill: #2a3d5c; stroke: rgb(95 179 228 / .5); stroke-width: 1.5; }
.college-art .ca-lamp { fill: #fde68a; filter: url(#caGlow); }
.college-art .ca-col { fill: #24375a; stroke: rgb(95 179 228 / .55); stroke-width: 1.5; }
.college-art .ca-glass { fill: rgb(95 179 228 / .22); stroke: #5fb3e4; stroke-width: 1.5; filter: url(#caGlow); }
.college-art .ca-planter { fill: #22344f; stroke: rgb(95 179 228 / .4); stroke-width: 1.2; }
.college-art .ca-grass { fill: #2f9e6b; opacity: .7; }
.college-art .ca-step { stroke: rgb(95 179 228 / .45); stroke-width: 2; fill: none; }
.college-art .ca-rail { stroke: rgb(201 214 230 / .5); stroke-width: 2; fill: none; stroke-linecap: round; }
.college-art .ca-ground { stroke: rgb(95 179 228 / .5); stroke-width: 2; }
.college-art .ca-tile { stroke: rgb(95 179 228 / .14); stroke-width: 1.5; }
.depth-on .college-art { transform-origin: 50% 100%; transform: perspective(900px) rotateY(calc(var(--ax, 0) * 10deg)) rotateX(calc(var(--ay, 0) * -6deg)) translate3d(calc(var(--ax, 0) * -24px), 0, 0); transition: transform .3s ease-out; }
.depth-on .page-head.has-art .container { transform: translate3d(calc(var(--ax, 0) * 12px), calc(var(--ay, 0) * 8px), 0); transition: transform .3s ease-out; }
.depth-on .pl-task.is-tilting, .depth-on .map-item.is-tilting { transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-3px) scale(1.02); }
@media (max-width: 640px) { .page-head.has-art { padding: 44px 0 168px; } .college-art { height: 150px; } }
@media print { .college-art { display: none; } }

/* الرئيسية: من نحن وقيادة المجلس وصوتك مسموع */
.home-lead { max-width: 760px; margin: 0 auto 28px; text-align: center; }
#home-leaders .org-row { gap: 20px; }
.sawtak-cta { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding: 32px; border-radius: 24px;
  border: 1px solid transparent; background: linear-gradient(135deg, #1f3b5c, #162234) padding-box, linear-gradient(135deg, rgb(95 179 228 / .8), rgb(38 53 77 / .5) 50%, rgb(95 179 228 / .5)) border-box;
  box-shadow: 0 18px 50px rgb(95 179 228 / .15); }
.sawtak-cta h2 { margin: 0 0 6px; font-size: 1.6rem; font-weight: 800; }
.sawtak-cta p { margin: 0; color: #c9d6e6; line-height: 1.8; max-width: 620px; }
.sawtak-actions { display: flex; flex-direction: column; gap: 10px; }
.glow-ic.big { width: 72px; height: 72px; border-radius: 20px; margin: 0; }
.glow-ic.big svg { width: 36px; height: 36px; }
@media (max-width: 820px) {
  .sawtak-cta { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 26px 20px; }
  .sawtak-actions { flex-direction: row; flex-wrap: wrap; justify-content: center; }
}

/* مساعد المجلس */
.bot-fab {
  position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: var(--accent); color: var(--navy);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .45); transition: transform .2s;
}
.bot-fab:hover { transform: translateY(-2px); }
.bot-fab svg { width: 28px; height: 28px; }
.bot-fab.is-open { background: var(--card); color: var(--accent); border: 1px solid var(--border); }
.bot-panel {
  position: fixed; inset-inline-end: 20px; bottom: 90px; z-index: 60;
  width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100dvh - 120px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .55);
}
.bot-panel[hidden] { display: none; }
.bot-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--navy-2); border-bottom: 1px solid var(--border); }
.bot-title { display: flex; flex-direction: column; }
.bot-title b { font-size: 1.05rem; }
.bot-title small { color: var(--muted); font-size: .8rem; }
.bot-close { background: none; border: 0; color: var(--muted); cursor: pointer; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; }
.bot-close:hover { color: var(--text); background: var(--card); }
.bot-close svg { width: 20px; height: 20px; }
.bot-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.bot-msg { align-self: flex-start; max-width: 88%; margin: 0; padding: 10px 14px; border-radius: 14px; border-start-start-radius: 4px; background: var(--card); border: 1px solid var(--border); line-height: 1.75; font-size: .95rem; overflow-wrap: anywhere; }
.bot-msg p { margin: 0; }
.bot-msg.me { align-self: flex-end; background: var(--primary); border-color: var(--primary); color: #fff; border-start-start-radius: 14px; border-start-end-radius: 4px; }
.bot-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.bot-link { display: inline-block; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent); font-size: .85rem; font-weight: 700; }
.bot-link:hover { background: var(--accent); color: var(--navy); }
.bot-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bot-chip { font: inherit; font-size: .85rem; cursor: pointer; padding: 6px 12px; border-radius: 999px; background: transparent; color: var(--text); border: 1px solid var(--border); }
.bot-chip:hover { border-color: var(--accent); color: var(--accent); }
.bot-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); background: var(--navy-2); }
.bot-input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); color: var(--text); }
.bot-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.bot-send { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; background: var(--accent); color: var(--navy); display: grid; place-items: center; }
.bot-send svg { width: 20px; height: 20px; transform: scaleX(-1); }
@media (max-width: 640px) {
  .bot-fab { inset-inline-end: 16px; bottom: 16px; width: 54px; height: 54px; }
  .bot-panel { inset-inline: 8px; bottom: 80px; width: auto; height: calc(100dvh - 100px); }
}
@media print { .bot-fab, .bot-panel { display: none !important; } }

/* منظّم الفصل: جدول الفصل */
.pl-print-only { display: none; }
.pl-s-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.pl-s-head h3 { margin: 0; font-size: 1.3rem; }
.pl-s-head p { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }
.pl-s-sum { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pl-s-sum li { display: flex; align-items: baseline; gap: 6px; padding: 6px 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--border); font-size: .85rem; color: var(--muted); }
.pl-s-sum b { font-size: 1.1rem; color: var(--text); }
.pl-s-sum .t-exam b { color: #ff6b6b; } .pl-s-sum .t-quiz b { color: #ffb36b; } .pl-s-sum .t-assign b { color: var(--accent); } .pl-s-sum .t-project b { color: #b48cff; }
.pl-s-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.pl-s-table th, .pl-s-table td { padding: 8px 10px; border: 1px solid var(--border); text-align: right; vertical-align: middle; }
.pl-s-table thead th { background: var(--navy-2); color: var(--muted); font-size: .82rem; }
.pl-s-table tbody th { width: 150px; background: var(--bg-alt); font-weight: 700; white-space: nowrap; }
.pl-s-table tbody.is-now th { color: var(--accent); }
.pl-s-table small { display: block; font-weight: 400; color: var(--muted); font-size: .75rem; }
.pl-s-table tbody.empty td, .pl-s-table tbody.empty th { padding-block: 4px; }
.pl-s-free { color: var(--muted); opacity: .5; text-align: center !important; }
.pl-s-code { font-weight: 700; color: var(--accent); white-space: nowrap; text-align: left !important; }
.pl-s-type { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .78rem; border: 1px solid currentColor; white-space: nowrap; }
.pl-s-table tr.t-exam .pl-s-type { color: #ff6b6b; } .pl-s-table tr.t-quiz .pl-s-type { color: #ffb36b; }
.pl-s-table tr.t-assign .pl-s-type { color: var(--accent); } .pl-s-table tr.t-project .pl-s-type { color: #b48cff; } .pl-s-table tr.t-pres .pl-s-type { color: #7ee2a8; }
.pl-s-table tr.done .pl-s-title { text-decoration: line-through; opacity: .6; }
.pl-s-check { width: 44px; text-align: center !important; font-weight: 700; color: #7ee2a8; }
#pl-sched { overflow-x: auto; }
@media (max-width: 640px) {
  .pl-s-table { font-size: .8rem; min-width: 560px; }
}
@media print {
  .print-sched .site-header, .print-sched .site-footer, .print-sched .page-head, .print-sched .bot-fab, .print-sched .bot-panel,
  .print-sched #planner > :not(.pl-dash), .print-sched .pl-dash > :not(#pl-sched) { display: none !important; }
  .print-sched #pl-sched { display: block !important; overflow: visible; }
  .print-sched .pl-print-only { display: flex; }
  .print-sched p.pl-print-only { display: block; }
  .print-sched .section { padding: 0; }
  .pl-s-head h3 { font-size: 14pt; color: #1f5f8b; }
  .pl-s-head p { font-size: 9pt; }
  .pl-s-sum li { padding: 2px 8px; font-size: 8pt; background: #fff; }
  .pl-s-sum b { font-size: 10pt; }
  .pl-s-table { font-size: 8.5pt; min-width: 0; }
  .pl-s-table th, .pl-s-table td { padding: 3px 6px; }
  .pl-s-table thead { display: table-header-group; }
  .pl-s-table thead th { background: #1f5f8b; color: #fff; }
  .pl-s-table tbody { break-inside: avoid; }
  .pl-s-table tbody th { background: #eef3f8; width: 36mm; }
  .pl-s-table small { font-size: 7pt; }
  .pl-s-table tbody.empty th, .pl-s-table tbody.empty td { padding-block: 1px; }
  .pl-s-table tbody.is-now th { color: #111827; }
  .pl-s-table tr.t-exam .pl-s-type { color: #c0392b; } .pl-s-table tr.t-quiz .pl-s-type { color: #b9620f; }
  .pl-s-table tr.t-project .pl-s-type { color: #6b3fc4; } .pl-s-table tr.t-pres .pl-s-type { color: #1e8a50; }
  .pl-s-sum .t-exam b { color: #c0392b; } .pl-s-sum .t-quiz b { color: #b9620f; } .pl-s-sum .t-project b { color: #6b3fc4; }
  .pl-s-check { color: #1e8a50; }
  .pl-s-foot { margin-top: 6px; font-size: 7.5pt; color: #4b5563; }
}
