:root {
  --ink: #34382f;
  --ink-strong: #24271f;
  --muted: #70746b;
  --paper: #ffffff;
  --paper-soft: #fafaf7;
  --yellow: #f4c928;
  --yellow-deep: #d9ae13;
  --yellow-text: #a87900;
  --yellow-soft: #fff8d8;
  --purple: #7655e8;
  --purple-deep: #5736ba;
  --purple-soft: #f0edff;
  --line: #e7e7e2;
  --shadow: 0 20px 44px rgba(52, 56, 47, 0.1);
  --radius-lg: 28px;
  --radius-md: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Vazirmatn", Tahoma, sans-serif;
}
body.menu-scroll-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }

.page-shell { min-width: 0; overflow: clip; }
.container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }

.site-header {
  position: relative;
  z-index: 50;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
  min-height: 94px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand-logo { display: block; width: 156px; height: 62px; object-fit: contain; object-position: center; }
.brand-mark, .header-title { display: none; }
.main-nav { display: flex; min-width: 0; align-items: center; justify-content: center; gap: clamp(15px, 1.7vw, 25px); color: var(--muted); font-size: 13px; white-space: nowrap; }
.main-nav > a { padding: 10px 0; transition: color 0.2s ease; }
.main-nav > a:hover, .main-nav .active { color: var(--purple); font-weight: 800; }
.header-actions { display: flex; align-items: center; gap: 16px; white-space: nowrap; }
.header-login { color: var(--muted); font-size: 13px; font-weight: 700; transition: color 0.2s ease; }
.header-login:hover { color: var(--ink); }

.button, .header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 21px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.button:hover, .header-cta:hover { transform: translateY(-2px); }
.button span, .header-cta span, .text-link span { direction: ltr; }
.button-primary, .header-cta, .mobile-menu-cta {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--ink-strong);
  box-shadow: 0 10px 22px rgba(244, 201, 40, 0.28);
}
.button-primary:hover, .header-cta:hover, .mobile-menu-cta:hover { background: var(--yellow-deep); border-color: var(--yellow-deep); color: var(--ink-strong); }
.button-light, .button-ghost {
  border-color: var(--purple);
  background: var(--paper);
  color: var(--purple);
}
.button-light:hover, .button-ghost:hover { background: var(--purple); border-color: var(--purple); color: #fff; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--yellow-deep); font-size: 13px; font-weight: 800; transition: color 0.2s ease, transform 0.2s ease; }
.text-link:hover { color: var(--purple); transform: translateX(-3px); }

.menu-toggle, .mobile-menu, .mobile-menu-backdrop { display: none; }

.hero { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); align-items: center; gap: clamp(36px, 6vw, 76px); min-height: 650px; padding: 64px 0 82px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--yellow-deep); font-size: 12px; font-weight: 800; }
.kicker span { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 5px rgba(244, 201, 40, 0.18); }
.hero h1, .inner-hero h1, .course-hero h1 { margin: 19px 0 22px; color: var(--ink-strong); font-weight: 900; letter-spacing: -0.08em; }
.hero h1 { max-width: 620px; font-size: clamp(3.25rem, 6.4vw, 5.5rem); line-height: 1.15; }
.hero h1 em, .section-heading h2 em, .about-panel h2 em, .course-intro h2 em, .course-outcomes h2 em, .statement-section h2 em, .content-highlight em, .inner-hero h1 em, .auth-card h1 em { color: var(--yellow-text); font-style: normal; }
.contact-section h2 em { color: var(--yellow); font-style: normal; }
.hero-copy > p, .inner-hero > p, .course-hero-lead { max-width: 540px; margin: 0; color: var(--muted); font-size: 15px; line-height: 2.05; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 32px; }
.hero-visual { min-width: 0; }
.hero-art { position: relative; isolation: isolate; height: 510px; overflow: hidden; border: 1px solid #f0ebd2; border-radius: 36px; background: linear-gradient(145deg, #fffdf2, var(--purple-soft)); }
.hero-art::after { position: absolute; inset: 0; z-index: 28; pointer-events: none; content: ""; background: linear-gradient(120deg, rgba(255, 255, 255, 0.65), transparent 45%); }
.hero-proof { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.hero-proof p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.9; }
.hero-proof strong { color: var(--ink); }
.avatar-stack { display: flex; direction: ltr; }
.avatar-stack span, .avatar-stack b { display: grid; width: 32px; height: 32px; margin-left: -8px; border: 2px solid var(--paper); border-radius: 50%; place-items: center; background: #f1dd92; color: var(--ink); font-size: 11px; }
.avatar-stack span:nth-child(2) { background: #d8d1f6; }
.avatar-stack span:nth-child(3) { background: #dceefa; }
.avatar-stack b { background: var(--ink); color: #fff; }

.hero-orbital-scene { perspective: 1100px; }
.hero-orbital-scene .art-halo { position: absolute; top: 50%; right: calc(50% - 180px); z-index: 2; width: 360px; height: 360px; border-radius: 50%; transform: translateY(-50%); background: radial-gradient(circle at 35% 28%, #fff4b1 0, var(--yellow) 58%, #d7a900 100%); box-shadow: 0 25px 55px rgba(180, 139, 16, 0.28); }
.art-grid { position: absolute; bottom: 0; left: 0; z-index: 1; width: 260px; height: 170px; opacity: 0.4; background: linear-gradient(135deg, transparent 49%, rgba(118, 85, 232, 0.17) 50%, transparent 51%); background-size: 22px 22px; }
.art-planet { position: absolute; top: 50%; left: 50%; z-index: 10; width: 290px; height: 290px; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle at 29% 23%, #fff7b8 0 8%, #f4d94c 28%, var(--yellow) 64%, #bf9600 100%); box-shadow: inset -32px -36px 58px rgba(108, 79, 0, 0.32), inset 20px 18px 30px rgba(255, 255, 255, 0.3), 0 28px 65px rgba(155, 124, 24, 0.25); }
.art-planet::after { position: absolute; inset: 7%; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 50%; content: ""; }
.planet-highlight { position: absolute; inset: 10% 8% 53% 13%; border-radius: 50%; transform: rotate(-14deg); background: linear-gradient(145deg, rgba(255, 255, 255, 0.7), transparent 70%); filter: blur(3px); }
.orbital-rings { position: absolute; top: 50%; left: 50%; z-index: 12; width: 440px; height: 140px; border: 1px solid rgba(255, 255, 255, 0.85); border-radius: 50%; transform: translate(-50%, -50%) rotate(-14deg); box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.1), 0 0 30px rgba(255, 255, 255, 0.1); pointer-events: none; }
.orbital-rings::before { position: absolute; inset: 28px 42px; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 50%; content: ""; }
.orbital-rings-back { z-index: 3; clip-path: inset(0 0 50% 0); opacity: 0.6; }
.orbital-rings-front { z-index: 16; clip-path: inset(50% 0 0 0); }
.art-core { position: absolute; top: 50%; left: 50%; z-index: 20; display: grid; width: 144px; height: 144px; border-radius: 42px; transform: translate(-50%, -50%) rotate(-6deg); place-items: center; align-content: center; background: linear-gradient(145deg, var(--purple), var(--purple-deep)); color: #fff; box-shadow: 0 22px 35px rgba(87, 54, 186, 0.32), inset 0 1px rgba(255, 255, 255, 0.3); }
.core-mark { display: block; width: 52px; height: 38px; margin-bottom: 9px; border-radius: 8px; object-fit: contain; background: #fff; }
.art-core strong { font-size: 14px; }
.art-core small { margin-top: 5px; color: #eee8ff; font-size: 9px; }
.orbit-item { position: absolute; top: 50%; left: 50%; transform-origin: center; will-change: transform, opacity, filter; }
.orbit-satellite { display: grid; justify-items: center; gap: 7px; color: var(--ink); text-align: center; white-space: nowrap; pointer-events: none; }
.satellite-icon { display: grid; width: 52px; height: 52px; border: 1px solid rgba(255, 255, 255, 0.9); border-radius: 18px; place-items: center; background: rgba(255, 255, 255, 0.92); color: var(--purple); font-size: 14px; font-weight: 900; box-shadow: 0 10px 19px rgba(87, 54, 186, 0.14); }
.orbit-satellite small { font-size: 9px; font-weight: 800; text-shadow: 0 1px #fff; }
.satellite-ai .satellite-icon { color: #9d7700; background: #fffbea; }
.satellite-code .satellite-icon, .satellite-robot .satellite-icon { color: var(--purple); }
.orbit-spark { position: absolute; z-index: 14; width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 6px rgba(244, 201, 40, 0.28), 0 0 18px rgba(244, 201, 40, 0.55); }
.orbit-spark-one { top: 50%; left: calc(50% - 218px); }
.orbit-spark-two { top: calc(50% + 68px); left: calc(50% + 184px); background: var(--purple); box-shadow: 0 0 0 6px rgba(118, 85, 232, 0.2), 0 0 18px rgba(118, 85, 232, 0.45); }

.programs-section, .content-section { padding: 78px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 34px; }
.section-heading h2, .about-panel h2, .contact-section h2, .course-intro h2, .course-outcomes h2, .statement-section h2 { margin: 14px 0 0; color: var(--ink-strong); font-size: clamp(2.1rem, 4vw, 3rem); font-weight: 900; letter-spacing: -0.07em; line-height: 1.35; }
.section-heading > p { max-width: 300px; margin: 0 0 7px; color: var(--muted); font-size: 13px; line-height: 2; }
.program-grid, .teacher-grid, .article-grid, .outcome-grid, .public-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.program-card, .teacher-card, .article-card, .outcome-card, .public-cards article { border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }
.program-card { display: flex; min-height: 258px; padding: 25px; flex-direction: column; justify-content: space-between; }
.program-card.violet, .program-card.blue { background: var(--purple-soft); }
.program-card.orange { background: var(--yellow-soft); }
.card-icon, .program-row-icon { display: grid; width: 45px; height: 45px; border-radius: 14px; place-items: center; background: rgba(255, 255, 255, 0.75); color: var(--purple); font-size: 20px; }
.program-card span, .teacher-card > span, .article-card > span { color: var(--muted); font-size: 11px; }
.program-card h3, .teacher-card h3 { margin: 10px 0; color: var(--ink-strong); font-size: 21px; }
.program-card p, .teacher-card p, .article-card p { color: var(--muted); font-size: 12px; line-height: 2; }
.program-card a, .article-card a { color: var(--yellow-deep); font-size: 12px; font-weight: 800; }

.about-section { padding: 24px 0 90px; }
.about-panel { display: grid; grid-template-columns: 80px minmax(0, 1fr) 150px; align-items: center; gap: 30px; padding-top: 50px; border-top: 1px solid var(--line); }
.about-number, .outcome-number { color: var(--yellow-deep); font-size: 12px; font-weight: 900; }
.about-panel p { max-width: 560px; color: var(--muted); font-size: 13px; line-height: 2.1; }
.about-stamp { display: grid; width: 125px; height: 125px; border: 1px dashed var(--purple); border-radius: 50%; place-items: center; color: var(--purple); text-align: center; font-size: 18px; font-weight: 900; transform: rotate(12deg); }
.about-stamp small { font-size: 7px; letter-spacing: 1px; }
.contact-section { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 55px; border-radius: var(--radius-lg); padding: 44px 52px; background: var(--purple); color: #fff; }
.contact-section .kicker { color: #fff6cc; }
.contact-section .kicker span { background: var(--yellow); }
.contact-section h2 { color: #fff; }
.contact-section .button-light { border-color: #fff; background: #fff; color: var(--purple); }
.contact-section .button-light:hover { border-color: var(--yellow); background: var(--yellow); color: var(--ink-strong); }
.site-footer { display: flex; justify-content: space-between; gap: 16px; padding: 0 0 30px; color: var(--muted); font-size: 11px; }

.course-page { --course-accent: var(--purple); }
.course-hero { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: clamp(40px, 6vw, 70px); padding: 72px 0 90px; }
.course-back { display: inline-flex; margin-bottom: 34px; color: var(--muted); font-size: 12px; transition: color 0.2s ease, transform 0.2s ease; }
.course-back:hover { color: var(--purple); transform: translateX(4px); }
.course-hero h1 { max-width: 620px; font-size: clamp(3rem, 6vw, 4.75rem); line-height: 1.25; }
.course-visual { position: relative; height: 420px; overflow: hidden; border: 1px solid #e7e0ff; border-radius: 32px; background: linear-gradient(145deg, #fffdf2, var(--purple-soft)); }
.course-visual-orb { position: absolute; top: 50%; left: 50%; width: 300px; height: 300px; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle at 30% 25%, #fff6b9, var(--yellow) 55%, #d3a200); box-shadow: -24px 22px 55px rgba(207, 160, 0, 0.25); }
.course-visual-icon { position: absolute; top: 50%; left: 50%; display: grid; width: 90px; height: 90px; border-radius: 26px; transform: translate(-50%, -50%); place-items: center; background: var(--purple); color: #fff; font-size: 45px; box-shadow: 0 16px 35px rgba(87, 54, 186, 0.25); }
.course-visual-note { position: absolute; bottom: 30px; left: 30px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.9); box-shadow: 0 12px 24px rgba(36, 39, 31, 0.08); }
.course-visual-note strong, .course-visual-note small { display: block; }
.course-visual-note strong { font-size: 12px; }
.course-visual-note small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.course-info { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(35px, 7vw, 80px); padding: 68px 0 80px; border-top: 1px solid var(--line); }
.course-intro p { max-width: 510px; color: var(--muted); font-size: 14px; line-height: 2.1; }
.course-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-content: center; }
.course-facts div { min-height: 145px; padding: 23px; border-radius: var(--radius-md); background: var(--paper-soft); }
.course-facts span, .course-facts strong { display: block; }
.course-facts span { margin-bottom: 18px; color: var(--muted); font-size: 11px; }
.course-facts strong { font-size: 15px; line-height: 1.8; }
.course-outcomes { padding: 20px 0 90px; }
.outcome-card { position: relative; min-height: 185px; padding: 23px; box-shadow: 0 14px 30px rgba(36, 39, 31, 0.05); }
.outcome-card h3 { max-width: 230px; margin-top: 45px; font-size: 17px; line-height: 1.8; }
.outcome-arrow { position: absolute; bottom: 21px; left: 22px; color: var(--purple); font-size: 18px; }

.inner-hero { padding: 64px 0 75px; border-bottom: 1px solid var(--line); }
.inner-hero h1 { max-width: 760px; font-size: clamp(3rem, 6vw, 4.8rem); line-height: 1.3; white-space: pre-line; }
.about-content, .contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr); align-items: center; gap: clamp(35px, 8vw, 90px); }
.content-copy p { margin: 0 0 22px; color: var(--muted); font-size: 16px; line-height: 2.2; }
.content-highlight { display: grid; min-height: 320px; border-radius: var(--radius-lg); place-items: center; align-content: center; background: var(--purple-soft); color: var(--purple); text-align: center; }
.content-highlight span { font-size: 14px; letter-spacing: 5px; }
.content-highlight strong { margin: 20px 0; color: var(--ink-strong); font-size: 38px; line-height: 1.5; }
.content-highlight small { font-size: 8px; letter-spacing: 2px; }
.statement-section { padding: 30px 0 110px; }
.teacher-card { min-height: 300px; padding: 28px; }
.teacher-avatar { display: grid; width: 75px; height: 75px; margin-bottom: 44px; border-radius: 24px; place-items: center; background: var(--purple); color: #fff; font-size: 29px; }
.teacher-avatar.orange { background: var(--yellow); color: var(--ink-strong); }
.program-list { display: grid; gap: 14px; }
.program-row { display: grid; grid-template-columns: 58px minmax(0, 1fr) 24px; align-items: center; gap: 20px; padding: 24px 28px; border-radius: 21px; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.program-row:hover { transform: translateX(-5px); box-shadow: var(--shadow); }
.program-row.violet, .program-row.blue { background: var(--purple-soft); }
.program-row.orange { background: var(--yellow-soft); }
.program-row small, .program-row strong, .program-row em { display: block; }
.program-row small, .program-row em { color: var(--muted); font-size: 12px; }
.program-row strong { margin: 7px 0; color: var(--ink-strong); font-size: 24px; }
.program-row em { font-style: normal; }
.article-card { display: flex; min-height: 270px; padding: 27px; flex-direction: column; }
.article-card > span { color: var(--purple); font-weight: 800; }
.article-card h2 { margin: 25px 0 10px; color: var(--ink-strong); font-size: 22px; line-height: 1.7; }
.article-card a { margin-top: auto; }
.contact-grid { padding: 65px 0 100px; }
.contact-details { display: grid; gap: 18px; align-content: start; }
.contact-details div { padding: 22px; border-radius: 18px; background: var(--paper-soft); }
.contact-details span, .contact-details a, .contact-details strong { display: block; }
.contact-details span { margin-bottom: 9px; color: var(--muted); font-size: 11px; }
.contact-details a, .contact-details strong { color: var(--ink-strong); font-size: 15px; }
.contact-form { display: grid; gap: 17px; }
.contact-form label { font-size: 12px; font-weight: 800; }
.contact-form input, .contact-form textarea, .auth-card input { display: block; width: 100%; margin-top: 8px; border: 1px solid var(--line); border-radius: 13px; padding: 14px 16px; background: #fff; color: var(--ink); outline: none; }
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus, .auth-card input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(118, 85, 232, 0.15); }

.public-intro { display: flex; align-items: center; gap: 25px; max-width: 720px; }
.public-symbol { display: grid; width: 68px; height: 68px; flex: 0 0 auto; border-radius: 22px; place-items: center; background: var(--purple); color: #fff; font-size: 28px; }
.public-intro p { color: var(--muted); font-size: 16px; line-height: 2; }
.public-cards { margin-top: 55px; }
.public-cards article { padding: 25px; }
.public-cards span { color: var(--yellow-deep); font-size: 12px; font-weight: 900; }
.public-cards h2 { margin: 38px 0 10px; font-size: 22px; }
.public-cards p { color: var(--muted); font-size: 12px; line-height: 2; }

.auth-page { min-height: 100vh; background: radial-gradient(circle at 80% 20%, var(--purple-soft), transparent 30%), var(--paper); }
.auth-wrap { display: grid; min-height: 100vh; padding: 50px 0; place-items: center; }
.auth-brand { position: fixed; top: 22px; right: 28px; z-index: 3; align-items: center; gap: 9px; }
.auth-wordmark { color: var(--purple); font-size: 23px; font-weight: 900; letter-spacing: -0.05em; }
.auth-wordmark-label { color: var(--ink-strong); font-size: 12px; font-weight: 800; }
.auth-card { width: min(100%, 470px); border: 1px solid var(--line); border-radius: 26px; padding: 42px; background: #fff; box-shadow: var(--shadow); }
.auth-card h1 { margin: 16px 0 8px; color: var(--ink-strong); font-size: 37px; line-height: 1.5; }
.auth-card > p { margin-bottom: 28px; color: var(--muted); font-size: 13px; line-height: 2; }
.auth-card form { display: grid; gap: 15px; }
.auth-card label { display: grid; gap: 7px; font-size: 12px; font-weight: 800; }
.auth-card input { direction: ltr; }
.auth-card button { border: 0; margin-top: 8px; }
.auth-error, .field-error { display: block; color: #b43e4d; font-size: 11px; line-height: 1.8; }
.auth-card ul.errorlist { margin: 0; padding: 0; color: #b43e4d; list-style: none; font-size: 11px; }
.auth-switch { margin-top: 24px; color: var(--muted); text-align: center; font-size: 12px; }
.auth-switch a { color: var(--purple); font-weight: 800; }

@media (max-width: 900px) {
  .site-header { display: flex; min-height: 82px; justify-content: space-between; padding-block: 10px; }
  .brand-logo { width: 145px; height: 60px; }
  .main-nav, .header-actions, .header-title { display: none; }
  .menu-toggle { position: relative; z-index: 102; display: flex; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 13px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; background: #fff; color: var(--ink); }
  .menu-toggle span { display: block; width: 18px; height: 2px; border-radius: 3px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
  .mobile-menu-backdrop { position: fixed; inset: 0; z-index: 90; display: block; opacity: 0; background: rgba(29, 32, 26, .48); pointer-events: none; transition: opacity .24s ease; }
  .mobile-menu { position: fixed; top: 0; right: 0; bottom: 0; z-index: 101; display: flex; width: min(100%, 370px); overflow-y: auto; border: 0; border-radius: 0; padding: 20px 18px 28px; flex-direction: column; background: #fff; box-shadow: -20px 0 50px rgba(28, 31, 23, .18); opacity: 0; pointer-events: none; transform: translateX(100%); transition: opacity .24s ease, transform .24s ease; visibility: hidden; }
  .mobile-menu-head { display: flex; align-items: center; justify-content: space-between; padding: 5px 4px 20px; }
  .mobile-menu-head strong, .mobile-menu-head small { display: block; }
  .mobile-menu-head strong { color: var(--ink-strong); font-size: 18px; font-weight: 900; }
  .mobile-menu-head small { margin-top: 4px; color: var(--muted); font-size: 9px; font-weight: 700; }
  .mobile-menu-close { display: grid; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 12px; place-items: center; background: var(--paper-soft); color: var(--ink); font-size: 26px; line-height: 1; }
  .mobile-account-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; margin: 0 0 18px; border-radius: 16px; padding: 17px; background: linear-gradient(135deg, var(--purple-soft), #fff9dc); color: var(--ink-strong); }
  .mobile-account-card > span { color: var(--purple); font-size: 10px; font-weight: 900; }
  .mobile-account-card > strong { font-size: 16px; }
  .mobile-account-card > b { grid-row: span 2; align-self: center; color: var(--purple); font-size: 18px; }
  .mobile-account-card > a { grid-column: span 2; display: flex; min-height: 42px; align-items: center; justify-content: space-between; margin-top: 8px; border-radius: 11px; padding: 10px 13px; background: var(--yellow); color: var(--ink-strong); font-size: 12px; font-weight: 900; }
  .mobile-menu-links { display: grid; margin-bottom: 12px; }
  .mobile-menu-links a { display: flex; min-height: 49px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 13px; font-weight: 800; }
  .mobile-menu-links a.active { color: var(--purple); }
  .mobile-menu-links a span { color: var(--purple); font-size: 16px; }
  .mobile-menu-group { display: grid; gap: 7px; margin-top: 14px; padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper-soft); }
  .mobile-menu-group strong { margin-bottom: 3px; color: var(--purple); font-size: 10px; font-weight: 900; }
  .mobile-menu-group a { display: grid; grid-template-columns: minmax(0, 1fr) 17px; gap: 2px 8px; min-height: 47px; align-content: center; border-radius: 10px; padding: 8px 10px; color: var(--ink); }
  .mobile-menu-group a:hover, .mobile-menu-group a:focus-visible { background: #fff; outline: 0; }
  .mobile-menu-group a span, .mobile-menu-group a small { display: block; }
  .mobile-menu-group a span { font-size: 12px; font-weight: 850; }
  .mobile-menu-group a small { overflow: hidden; color: var(--muted); font-size: 9px; line-height: 1.6; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-menu-group a b { grid-row: span 2; align-self: center; color: var(--purple); font-size: 16px; }
  .mobile-menu-login { display: flex; min-height: 50px; align-items: center; justify-content: space-between; margin-top: 16px; border: 1px solid var(--line); border-radius: 13px; padding: 10px 14px; color: var(--ink); font-size: 12px; font-weight: 800; }
  .mobile-menu-login span { color: var(--purple); font-size: 16px; }
  .site-header.menu-open .mobile-menu { opacity: 1; pointer-events: auto; transform: translateX(0); visibility: visible; }
  .site-header.menu-open .mobile-menu-backdrop { opacity: 1; pointer-events: auto; }
  .site-header.menu-open .menu-toggle { opacity: 0; pointer-events: none; }
  .hero, .course-hero, .course-info, .about-content, .contact-grid { grid-template-columns: 1fr; }
  .hero { min-height: 0; padding: 44px 0 68px; }
  .hero h1 { font-size: clamp(3rem, 12vw, 4.8rem); }
  .hero-art { height: 400px; }
  .program-grid, .teacher-grid, .article-grid, .outcome-grid, .public-cards { grid-template-columns: 1fr; }
  .section-heading { display: block; }
  .section-heading > p { max-width: 550px; margin-top: 18px; }
  .about-panel { grid-template-columns: 45px minmax(0, 1fr); }
  .about-stamp { display: none; }
  .contact-section { display: block; padding: 34px 28px; }
  .contact-section .button { margin-top: 25px; }
  .course-hero { padding: 45px 0 65px; }
  .course-visual { height: 330px; }
  .course-facts { grid-template-columns: 1fr 1fr; }
  .inner-hero { padding: 45px 0 55px; }
  .site-footer { display: block; }
  .site-footer span { display: block; margin-top: 8px; }
}

@media (max-width: 520px) {
  .container { width: min(100% - 32px, 1160px); }
  .brand-logo { width: 130px; height: 54px; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 14px; }
  .hero-actions .button, .hero-actions .text-link { justify-content: center; }
  .hero-art { height: 340px; border-radius: 27px; }
  .hero-orbital-scene .art-halo { width: 245px; height: 245px; right: calc(50% - 123px); }
  .art-planet { width: 190px; height: 190px; }
  .orbital-rings { width: 226px; height: 74px; }
  .orbital-rings::before { inset: 13px 21px; }
  .art-core { width: 108px; height: 108px; border-radius: 30px; }
  .core-mark { width: 40px; height: 30px; }
  .art-core strong { font-size: 11px; }
  .art-core small { font-size: 7px; }
  .satellite-icon { width: 42px; height: 42px; border-radius: 14px; font-size: 11px; }
  .orbit-satellite { gap: 5px; }
  .orbit-satellite small { font-size: 7px; }
  .orbit-spark-one { left: calc(50% - 112px); }
  .orbit-spark-two { top: calc(50% + 34px); left: calc(50% + 91px); }
  .course-facts { grid-template-columns: 1fr; }
  .course-visual-note { bottom: 20px; left: 20px; }
  .program-row { grid-template-columns: 48px minmax(0, 1fr) 20px; padding: 20px; }
  .program-row strong { font-size: 18px; }
  .public-intro { display: block; }
  .public-symbol { margin-bottom: 20px; }
  .auth-wrap { padding: 90px 16px 35px; }
  .auth-brand { top: 16px; right: 16px; }
  .auth-card { padding: 28px 22px; }
  .auth-card h1 { font-size: 31px; }
}

.auth-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.auth-form-grid .guardian-field { grid-column: span 2; }
.auth-form-grid input, .auth-form-grid select { width: 100%; }
.dashboard-page { min-height: 100vh; background: var(--paper-soft); }
.dashboard-shell { padding: 58px 0 90px; }
.dashboard-welcome { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 38px; border-radius: var(--radius-lg); background: linear-gradient(145deg, var(--purple-soft), #fffdf2); }
.dashboard-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.dashboard-welcome h1 { margin: 14px 0 8px; color: var(--ink-strong); font-size: clamp(2.2rem, 5vw, 3.8rem); letter-spacing: -0.07em; }
.dashboard-welcome p { max-width: 620px; margin: 0; color: var(--muted); line-height: 2; }
.dashboard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.dashboard-grid article { min-height: 190px; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; box-shadow: 0 12px 30px rgba(52, 56, 47, 0.05); }
.dashboard-grid span, .dashboard-grid strong { display: block; }
.dashboard-grid span { color: var(--muted); font-size: 12px; }
.dashboard-grid strong { margin: 25px 0 8px; color: var(--purple); font-size: 23px; }
.dashboard-grid p { margin: 0; color: var(--muted); font-size: 12px; line-height: 2; }

@media (max-width: 900px) {
  .auth-form-grid, .dashboard-grid { grid-template-columns: 1fr; }
  .auth-form-grid .guardian-field { grid-column: auto; }
  .dashboard-welcome { display: block; padding: 28px; }
  .dashboard-actions { justify-content: flex-start; margin-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .orbit-item { transform: translate(-50%, -50%) !important; opacity: 1 !important; filter: none !important; }
  .satellite-code { transform: translate(-50%, -50%) translate(-84px, -4px) !important; }
  .satellite-ai { transform: translate(-50%, -50%) translate(74px, -42px) !important; }
  .satellite-robot { transform: translate(-50%, -50%) translate(78px, 42px) !important; }
}
.header-signout{margin:0}.header-signout button{border:0;background:transparent;color:var(--muted);font:inherit;font-size:13px;font-weight:700;cursor:pointer}.header-signout button:hover{color:var(--ink)}

.nav-menu { position: relative; }
.nav-menu-toggle { display: inline-flex; align-items: center; gap: 6px; border: 1px solid transparent; border-radius: 10px; padding: 9px 10px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; line-height: 1; transition: color .2s ease, background .2s ease, border-color .2s ease; }
.nav-menu-toggle span { display: inline-block; direction: ltr; font-size: 14px; line-height: 1; transition: transform .2s ease; }
.nav-menu-toggle:hover, .nav-menu.active .nav-menu-toggle, .nav-menu.is-open .nav-menu-toggle { border-color: #e3dcfa; background: var(--purple-soft); color: var(--purple); font-weight: 800; }
.nav-menu.is-open .nav-menu-toggle span { transform: rotate(180deg); }
.mega-menu { position: absolute; top: calc(100% + 13px); right: 0; z-index: 60; display: none; width: 306px; border: 1px solid #e5e1f3; border-radius: 18px; padding: 8px; background: #fff; box-shadow: 0 22px 45px rgba(47, 39, 78, .16); transform-origin: top right; }
.nav-menu.is-open .mega-menu { display: grid; pointer-events: auto; animation: menu-reveal .18s ease both; }
@keyframes menu-reveal { from { opacity: 0; transform: translateY(-7px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.mega-menu-catalog { width: min(760px, calc(100vw - 60px)); padding: 16px; }
.mega-menu-tabs { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; border-bottom: 1px solid var(--line); padding-bottom: 11px; }
.mega-menu-tab { border: 0; border-radius: 9px; padding: 8px 10px; background: transparent; color: var(--muted); font: inherit; font-size: 11px; font-weight: 800; white-space: nowrap; }
.mega-menu-tab:hover, .mega-menu-tab.is-active { background: var(--purple-soft); color: var(--purple); }
.mega-menu-panel[hidden] { display: none; }
.mega-menu-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mega-menu-card { position: relative; display: grid; min-width: 0; overflow: hidden; min-height: 150px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper-soft); color: #fff; isolation: isolate; }
.mega-menu-card::after { position: absolute; inset: 35% 0 0; z-index: -1; background: linear-gradient(transparent, rgba(31, 34, 28, .88)); content: ""; }
.mega-menu-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.mega-menu-card:hover img { transform: scale(1.05); }
.mega-menu-card > span { display: grid; align-self: end; gap: 3px; padding: 12px; }
.mega-menu-card strong { overflow: hidden; color: #fff; font-size: 11px; line-height: 1.55; text-overflow: ellipsis; white-space: nowrap; }
.mega-menu-card small { overflow: hidden; color: rgba(255,255,255,.78); font-size: 9px; line-height: 1.55; text-overflow: ellipsis; white-space: nowrap; }
.mega-menu-card.is-placeholder img { filter: saturate(.8); }
.mega-menu-card.is-placeholder::before { position: absolute; top: 9px; right: 9px; z-index: 1; border-radius: 999px; padding: 4px 6px; background: rgba(255,255,255,.88); color: var(--purple); content: "به‌زودی"; font-size: 8px; font-weight: 900; }
.mega-menu-all-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--purple); font-size: 10px; font-weight: 900; }
.mega-menu-all-link:hover { color: var(--purple-deep); }
.mega-menu-all-link span { font-size: 15px; }
.mega-menu:not(.mega-menu-catalog) a { display: grid; grid-template-columns: 38px minmax(0, 1fr) 17px; min-height: 62px; align-items: center; gap: 11px; border-radius: 12px; padding: 9px; color: var(--ink); }
.mega-menu:not(.mega-menu-catalog) a:hover, .mega-menu:not(.mega-menu-catalog) a:focus-visible { background: var(--purple-soft); color: var(--ink); outline: 0; }
.mega-menu-icon { display: grid; width: 36px; height: 36px; border-radius: 11px; place-items: center; background: var(--yellow-soft); color: var(--purple); font-size: 15px; font-weight: 900; }

.catalog-section { padding: 54px 0 88px; }
.catalog-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 26px; }
.catalog-filter > span { margin-inline-end: 6px; color: var(--muted); font-size: 12px; font-weight: 800; }
.catalog-filter a { border: 1px solid var(--line); border-radius: 999px; padding: 8px 13px; color: var(--muted); font-size: 12px; font-weight: 700; transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease; }
.catalog-filter a:hover, .catalog-filter a.active { border-color: var(--purple); background: var(--purple); color: #fff; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.catalog-card { display: flex; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); flex-direction: column; background: #fff; box-shadow: 0 10px 30px rgba(52, 56, 47, 0.04); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.catalog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.catalog-card > img, .catalog-card > .catalog-placeholder { display: block; width: 100%; height: 186px; object-fit: cover; }
.catalog-placeholder { display: grid; min-height: 130px; place-items: center; background: linear-gradient(145deg, var(--yellow-soft), var(--purple-soft)); color: var(--purple); font-size: 45px; font-weight: 900; }
.catalog-card-body { display: flex; min-height: 276px; padding: 22px; flex-direction: column; }
.catalog-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.catalog-tags span { border-radius: 999px; padding: 5px 9px; background: var(--paper-soft); color: var(--muted); font-size: 10px; font-weight: 800; }
.catalog-card h2 { margin: 15px 0 9px; color: var(--ink-strong); font-size: 20px; line-height: 1.65; }
.catalog-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 2; }
.catalog-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 18px 0 0; }
.catalog-details div { min-width: 0; padding: 9px; border-radius: 12px; background: var(--paper-soft); }
.catalog-details dt { margin-bottom: 4px; color: var(--muted); font-size: 9px; }
.catalog-details dd { overflow: hidden; margin: 0; color: var(--ink); font-size: 10px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.catalog-card-footer { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin-top: auto; padding-top: 20px; }
.catalog-card-footer .button { min-height: 37px; padding: 10px 13px; font-size: 10px; }
.catalog-price { display: grid; gap: 3px; }
.catalog-price del { color: var(--muted); font-size: 9px; }
.catalog-price strong { color: var(--purple); font-size: 12px; }
.catalog-empty { display: grid; min-height: 390px; border: 1px dashed #d9d1fb; border-radius: var(--radius-lg); padding: 42px; place-items: center; align-content: center; background: linear-gradient(145deg, #fffdf5, var(--purple-soft)); text-align: center; }
.catalog-empty .catalog-placeholder { width: 72px; min-height: 72px; border-radius: 22px; font-size: 27px; }
.catalog-empty h2 { margin: 21px 0 8px; color: var(--ink-strong); font-size: 24px; }
.catalog-empty p { max-width: 430px; margin: 0 0 25px; color: var(--muted); font-size: 13px; line-height: 2; }
.catalog-detail-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(350px, 0.95fr); align-items: center; gap: clamp(40px, 6vw, 80px); padding: 66px 0 80px; }
.catalog-detail-hero h1 { max-width: 650px; margin: 17px 0; color: var(--ink-strong); font-size: clamp(2.8rem, 5.6vw, 4.7rem); font-weight: 900; letter-spacing: -0.07em; line-height: 1.3; }
.catalog-detail-hero > div > p { max-width: 580px; margin: 0 0 23px; color: var(--muted); font-size: 15px; line-height: 2.1; }
.catalog-detail-hero .button { margin-top: 26px; }
.catalog-detail-media { display: grid; min-height: 390px; overflow: hidden; border: 1px solid #eee6bb; border-radius: 31px; place-items: center; background: linear-gradient(145deg, #fffdf2, var(--purple-soft)); }
.catalog-detail-media img { display: block; width: 100%; height: 390px; object-fit: cover; }
.catalog-detail-media .catalog-placeholder { width: 100%; height: 390px; }
.catalog-detail-price { margin-top: 23px; }
.catalog-detail-price strong { font-size: 20px; }
.catalog-unavailable { display: inline-flex; margin-top: 26px; border: 1px solid #efd8d8; border-radius: 999px; padding: 11px 15px; background: #fff7f7; color: #9f4848; font-size: 12px; font-weight: 800; }
.catalog-detail-section { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.65fr); gap: clamp(45px, 8vw, 105px); padding: 76px 0; border-top: 1px solid var(--line); }
.catalog-prose h2, .catalog-outline h2 { margin: 14px 0 20px; color: var(--ink-strong); font-size: clamp(2.1rem, 4vw, 3.1rem); font-weight: 900; letter-spacing: -0.07em; line-height: 1.38; }
.catalog-prose h2 em, .catalog-outline h2 em { color: var(--yellow-text); font-style: normal; }
.catalog-prose p, .catalog-outline p { margin: 0; color: var(--muted); font-size: 14px; line-height: 2.25; }
.catalog-summary { display: grid; align-content: start; gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--line); }
.catalog-summary div { padding: 20px 22px; background: #fff; }
.catalog-summary span, .catalog-summary strong { display: block; }
.catalog-summary span { margin-bottom: 8px; color: var(--muted); font-size: 10px; }
.catalog-summary strong { color: var(--ink-strong); font-size: 13px; line-height: 1.8; }
.catalog-outline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 15px 0 88px; }
.catalog-outline article { min-height: 305px; border-radius: var(--radius-lg); padding: 32px; background: var(--paper-soft); }
.webinar-player-section { padding: 0 0 72px; }
.webinar-player { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--ink-strong); aspect-ratio: 16 / 9; box-shadow: var(--shadow); }
.webinar-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.webinar-access-card { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; gap: 25px; border: 1px solid #eee6bb; border-radius: var(--radius-lg); padding: 28px; background: linear-gradient(145deg, #fffdf2, var(--purple-soft)); }
.webinar-access-card .catalog-placeholder { width: 100px; min-height: 100px; border-radius: 25px; font-size: 31px; }
.webinar-access-card h2 { margin: 12px 0 8px; color: var(--ink-strong); font-size: 24px; }
.webinar-access-card p { max-width: 550px; margin: 0 0 19px; color: var(--muted); font-size: 13px; line-height: 2; }

@media (max-width: 600px) {
  .webinar-access-card { grid-template-columns: 1fr; padding: 24px; }
}
.mobile-menu-group { display: grid; padding: 16px 0 5px; border-bottom: 1px solid var(--line); }
.mobile-menu-group strong { margin-bottom: 6px; color: var(--purple); font-size: 11px; }
.mobile-menu-group a { display: flex; min-height: 43px; align-items: center; justify-content: space-between; color: var(--ink); font-size: 13px; font-weight: 750; }
.mobile-menu-group a span { color: var(--purple); }

@media (max-width: 900px) {
  .nav-menu { display: none; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-detail-hero, .catalog-detail-section, .catalog-outline { grid-template-columns: 1fr; }
  .catalog-detail-hero { padding: 45px 0 60px; }
  .catalog-detail-media, .catalog-detail-media img, .catalog-detail-media .catalog-placeholder { min-height: 320px; height: 320px; }
  .catalog-detail-section { gap: 30px; padding: 58px 0; }
  .catalog-outline { padding-bottom: 65px; }
}

@media (max-width: 600px) {
  .catalog-section { padding: 38px 0 65px; }
  .catalog-grid { grid-template-columns: 1fr; }
  .catalog-card-body { min-height: 250px; }
  .catalog-filter { gap: 8px; }
  .catalog-filter > span { width: 100%; }
  .catalog-detail-media, .catalog-detail-media img, .catalog-detail-media .catalog-placeholder { min-height: 255px; height: 255px; }
  .catalog-outline article { min-height: 0; padding: 26px; }
  .catalog-empty { min-height: 330px; padding: 30px 20px; }
}

.home-catalog-section { padding: 0 0 88px; }
.home-catalog-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.home-catalog-link { position: relative; display: grid; min-height: 215px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 22px; align-content: start; background: #fff; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.home-catalog-link:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.home-catalog-link.violet, .home-catalog-link.blue { background: var(--purple-soft); }
.home-catalog-link.yellow { background: var(--yellow-soft); }
.home-catalog-link.shop { background: #eef7f5; }
.home-catalog-link > span { display: grid; width: 43px; height: 43px; border-radius: 14px; place-items: center; background: rgba(255,255,255,.78); color: var(--purple); font-size: 18px; font-weight: 900; }
.home-catalog-link strong { margin-top: 30px; color: var(--ink-strong); font-size: 16px; }
.home-catalog-link small { margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.home-catalog-link b { position: absolute; bottom: 20px; left: 22px; color: var(--purple); font-size: 18px; }

@media (max-width: 900px) {
  .home-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .home-catalog-grid { grid-template-columns: 1fr; }
}

.home-featured-section { padding: 0 0 88px; }
.home-featured-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.featured-item { position: relative; display: grid; min-height: 178px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 22px; align-content: start; background: #fff; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.featured-item::before { position: absolute; top: -24px; left: -24px; width: 100px; height: 100px; border-radius: 50%; background: var(--yellow-soft); content: ""; }
.featured-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.featured-item span, .featured-item strong, .featured-item small, .featured-item b { position: relative; }
.featured-item span { color: var(--purple); font-size: 10px; font-weight: 900; }
.featured-item strong { margin-top: 22px; color: var(--ink-strong); font-size: 16px; line-height: 1.7; }
.featured-item small { margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.featured-item b { position: absolute; bottom: 18px; left: 21px; color: var(--purple); font-size: 17px; }

@media (max-width: 900px) {
  .home-featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .home-featured-grid { grid-template-columns: 1fr; }
}

.learning-dashboard-page { min-height: 100vh; background: var(--paper-soft); }
.learning-dashboard { padding: 55px 0 88px; }
.learning-dashboard-hero, .learning-course-hero { display: flex; align-items: end; justify-content: space-between; gap: 35px; margin-bottom: 28px; border-radius: var(--radius-lg); padding: clamp(30px, 5vw, 54px); background: linear-gradient(145deg, var(--purple-soft), #fffdf3); }
.learning-dashboard-hero h1, .learning-course-hero h1, .learning-lesson-header h1, .learning-activity-header h1 { margin: 15px 0; color: var(--ink-strong); font-size: clamp(2.4rem, 5vw, 4.1rem); font-weight: 900; letter-spacing: -0.08em; line-height: 1.25; }
.learning-dashboard-hero h1 em, .learning-course-hero h1 em, .learning-section-head h2 em, .learning-submission-form h2 em, .certificate-card h1 em, .learning-empty h2 em, .catalog-empty h2 em { color: var(--yellow-text); font-style: normal; }
.learning-dashboard-hero p, .learning-course-hero p, .learning-lesson-header p, .learning-activity-header > p { max-width: 660px; margin: 0; color: var(--muted); font-size: 14px; line-height: 2.1; }
.learning-dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.learning-enrollment-card { display: flex; min-height: 290px; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 25px; flex-direction: column; background: #fff; box-shadow: 0 10px 25px rgba(52, 56, 47, .04); }
.learning-card-top, .learning-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.learning-card-top span, .learning-card-top strong, .learning-card-meta span { font-size: 10px; font-weight: 800; }
.learning-card-top span { color: var(--purple); }
.learning-card-top strong { border-radius: 999px; padding: 5px 9px; background: var(--yellow-soft); color: var(--yellow-deep); }
.learning-enrollment-card h2 { margin: 22px 0 8px; color: var(--ink-strong); font-size: 22px; }
.learning-enrollment-card p { margin: 0 0 22px; color: var(--muted); font-size: 12px; line-height: 2; }
.learning-progress { display: flex; align-items: center; gap: 11px; }
.learning-progress > div { width: 100%; height: 8px; overflow: hidden; border-radius: 999px; background: #e9e7e0; }
.learning-progress > div span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--yellow), var(--purple)); }
.learning-progress > strong { color: var(--purple); font-size: 11px; white-space: nowrap; }
.learning-card-meta { margin: 15px 0 22px; color: var(--muted); }
.learning-enrollment-card .button { margin-top: auto; align-self: flex-start; }
.learning-empty { display: grid; min-height: 330px; border: 1px dashed #d9d1fb; border-radius: var(--radius-lg); padding: 36px; place-items: center; align-content: center; background: linear-gradient(145deg, #fffdf5, var(--purple-soft)); text-align: center; }
.learning-empty .catalog-placeholder { width: 68px; min-height: 68px; border-radius: 20px; font-size: 26px; }
.learning-empty h2 { margin: 20px 0 7px; color: var(--ink-strong); font-size: 24px; }
.learning-empty p { max-width: 450px; margin: 0 0 23px; color: var(--muted); font-size: 13px; line-height: 2; }
.learning-course-hero { align-items: center; }
.learning-course-progress { width: min(100%, 260px); border: 1px solid rgba(118, 85, 232, .16); border-radius: 20px; padding: 21px; background: rgba(255,255,255,.72); }
.learning-course-progress > span { display: block; color: var(--muted); font-size: 11px; }
.learning-course-progress > strong { display: block; margin: 8px 0 15px; color: var(--purple); font-size: 31px; }
.learning-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .35fr); gap: 24px; align-items: start; }
.learning-curriculum { display: grid; gap: 16px; }
.learning-section-head { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 8px; }
.learning-section-head h2 { margin: 13px 0 0; color: var(--ink-strong); font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; letter-spacing: -.07em; line-height: 1.35; }
.learning-section-head > p { max-width: 280px; margin: 0; color: var(--muted); font-size: 12px; line-height: 2; }
.learning-module { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }
.learning-module > header { padding: 22px 24px 17px; border-bottom: 1px solid var(--line); }
.learning-module > header > span { color: var(--purple); font-size: 10px; font-weight: 900; }
.learning-module h3 { margin: 8px 0 0; color: var(--ink-strong); font-size: 18px; }
.learning-module header p { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.9; }
.learning-lesson-list { display: grid; }
.learning-lesson-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 20px; min-height: 68px; align-items: center; gap: 13px; border-bottom: 1px solid var(--line); padding: 12px 24px; transition: background .2s ease; }
.learning-lesson-row:last-child { border-bottom: 0; }
.learning-lesson-row:hover { background: var(--paper-soft); }
.learning-lesson-row > span { display: grid; width: 30px; height: 30px; border-radius: 10px; place-items: center; background: var(--paper-soft); color: var(--muted); font-size: 11px; font-weight: 900; }
.learning-lesson-row.is-complete > span { background: #e5f7ed; color: #23854f; }
.learning-lesson-row strong, .learning-lesson-row small { display: block; }
.learning-lesson-row strong { color: var(--ink); font-size: 13px; }
.learning-lesson-row small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.learning-lesson-row b { color: var(--purple); font-size: 16px; }
.learning-empty-row { margin: 0; padding: 22px; color: var(--muted); font-size: 12px; }
.learning-sidebar { display: grid; gap: 17px; }
.learning-sidebar > section { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }
.learning-sidebar > section > .kicker, .learning-sidebar > section > h2, .learning-sidebar-empty, .learning-report-card > strong, .learning-report-card > p, .learning-report-card > a { margin-right: 21px; margin-left: 21px; }
.learning-sidebar h2 { margin-top: 13px; color: var(--ink-strong); font-size: 18px; }
.learning-sidebar section > a { display: grid; border-top: 1px solid var(--line); padding: 14px 21px; }
.learning-sidebar section > a:hover { background: var(--paper-soft); }
.learning-sidebar section > a span, .learning-sidebar section > a strong, .learning-sidebar section > a small { display: block; }
.learning-sidebar section > a span { color: var(--purple); font-size: 9px; font-weight: 900; }
.learning-sidebar section > a strong { margin: 6px 0 3px; color: var(--ink); font-size: 12px; }
.learning-sidebar section > a small, .learning-sidebar-empty { color: var(--muted); font-size: 10px; }
.learning-sidebar-empty { margin-top: 0; margin-bottom: 22px; line-height: 1.9; }
.learning-report-card { padding: 21px 0; background: linear-gradient(145deg, var(--yellow-soft), #fff) !important; }
.learning-report-card > strong { display: block; margin-top: 18px; color: var(--purple); font-size: 36px; }
.learning-report-card > p { margin-top: 8px; color: var(--muted); font-size: 11px; line-height: 2; }
.learning-report-card > a { display: inline-flex; margin-top: 12px; color: var(--purple); font-size: 11px; font-weight: 900; }
.learning-lesson-header, .learning-activity-header { padding: 18px 0 35px; border-bottom: 1px solid var(--line); }
.learning-lesson-header h1, .learning-activity-header h1 { margin-bottom: 7px; font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
.learning-lesson-layout, .learning-submission-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .36fr); gap: 24px; padding: 34px 0 75px; }
.learning-lesson-content, .learning-submission-form { border: 1px solid var(--line); border-radius: var(--radius-md); padding: clamp(23px, 4vw, 35px); background: #fff; }
.learning-video-locked { display: grid; grid-template-columns: 115px minmax(0, 1fr); align-items: center; gap: 22px; border-radius: 20px; padding: 24px; background: linear-gradient(145deg, #fffdf3, var(--purple-soft)); }
.learning-video-locked .catalog-placeholder { width: 104px; min-height: 104px; border-radius: 24px; font-size: 31px; }
.learning-video-locked h2 { margin: 11px 0 7px; color: var(--ink-strong); font-size: 21px; }
.learning-video-locked p { margin: 0; color: var(--muted); font-size: 12px; line-height: 2; }
.learning-prose { margin-top: 31px; color: var(--ink); font-size: 14px; line-height: 2.25; }
.learning-resources { margin-top: 36px; padding-top: 25px; border-top: 1px solid var(--line); }
.learning-resources h2 { margin: 13px 0 16px; color: var(--ink-strong); font-size: 20px; }
.learning-resources > div { display: grid; gap: 9px; }
.learning-resources a { display: grid; grid-template-columns: 80px minmax(0, 1fr) 20px; align-items: center; gap: 12px; border-radius: 13px; padding: 13px; background: var(--paper-soft); }
.learning-resources a:hover { background: var(--purple-soft); }
.learning-resources span { color: var(--purple); font-size: 10px; font-weight: 800; }
.learning-resources strong { color: var(--ink); font-size: 12px; }
.learning-resources b { color: var(--purple); font-size: 17px; }
.learning-lesson-sidebar, .learning-submission-status { align-self: start; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 24px; background: #fff; }
.learning-lesson-sidebar > strong { display: block; margin: 17px 0 7px; color: var(--purple); font-size: 38px; }
.learning-lesson-sidebar > p, .learning-submission-status > p { margin: 0 0 20px; color: var(--muted); font-size: 12px; line-height: 2; }
.learning-lesson-sidebar form { display: grid; gap: 15px; }
.learning-lesson-sidebar input[type=range] { width: 100%; accent-color: var(--purple); }
.learning-progress-message { min-height: 20px; margin: 14px 0 0 !important; color: #23854f !important; font-weight: 800; }
.learning-submission-form h2 { margin: 13px 0 24px; color: var(--ink-strong); font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; letter-spacing: -.07em; line-height: 1.35; }
.learning-submission-form form { display: grid; gap: 18px; }
.learning-submission-form label { display: grid; gap: 8px; color: var(--ink); font-size: 12px; font-weight: 800; }
.learning-submission-form textarea, .learning-submission-form input[type=file], .quiz-form textarea, .quiz-file input { width: 100%; border: 1px solid var(--line); border-radius: 13px; padding: 13px; background: #fff; color: var(--ink); font: inherit; }
.learning-submission-form textarea:focus, .quiz-form textarea:focus { border-color: var(--purple); outline: 0; box-shadow: 0 0 0 3px rgba(118,85,232,.15); }
.form-errors { border-radius: 12px; padding: 12px; background: #fff1f1; color: #9f4848; font-size: 11px; }
.learning-submission-status > strong { display: block; margin: 17px 0 8px; color: var(--purple); font-size: 24px; }
.learning-score, .learning-feedback { margin-top: 17px; border-radius: 13px; padding: 15px; background: var(--paper-soft); }
.learning-score span, .learning-score strong, .learning-feedback span { display: block; }
.learning-score span, .learning-feedback span { color: var(--muted); font-size: 10px; }
.learning-score strong { margin-top: 6px; color: var(--ink); font-size: 13px; }
.learning-feedback p { margin: 7px 0 0; color: var(--ink); font-size: 12px; line-height: 2; }
.quiz-form { display: grid; gap: 18px; padding: 35px 0 80px; }
.quiz-question { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 23px; background: #fff; }
.quiz-question legend { display: flex; width: 100%; align-items: center; gap: 10px; color: var(--ink-strong); font-size: 14px; font-weight: 900; line-height: 1.9; }
.quiz-question legend > span { display: grid; width: 28px; height: 28px; border-radius: 9px; flex: 0 0 auto; place-items: center; background: var(--purple-soft); color: var(--purple); font-size: 11px; }
.quiz-choice { display: flex; align-items: center; gap: 10px; margin-top: 12px; border: 1px solid var(--line); border-radius: 11px; padding: 12px; color: var(--ink); font-size: 12px; cursor: pointer; }
.quiz-choice:has(input:checked) { border-color: var(--purple); background: var(--purple-soft); }
.quiz-choice input { accent-color: var(--purple); }
.quiz-file { display: grid; gap: 8px; margin-top: 15px; color: var(--muted); font-size: 11px; }
.quiz-hint { margin: 13px 0 0; color: var(--muted); font-size: 11px; line-height: 1.9; }
.certificate-page { min-height: 100vh; background: radial-gradient(circle at 80% 18%, var(--yellow-soft), transparent 28%), var(--paper-soft); }
.certificate-wrap { display: grid; min-height: calc(100vh - 150px); padding: 60px 0; place-items: center; }
.certificate-card { width: min(100%, 790px); border: 1px solid var(--line); border-radius: 30px; padding: clamp(30px, 6vw, 60px); background: #fff; box-shadow: var(--shadow); text-align: center; }
.certificate-seal { display: grid; width: 70px; height: 70px; margin: 0 auto 22px; border-radius: 50%; place-items: center; background: #e5f7ed; color: #23854f; font-size: 33px; font-weight: 900; }
.certificate-card.is-revoked .certificate-seal { background: #fff0f0; color: #a44848; }
.certificate-card h1 { margin: 14px 0 10px; color: var(--ink-strong); font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 900; letter-spacing: -.07em; }
.certificate-card > p { max-width: 560px; margin: 0 auto; color: var(--muted); font-size: 13px; line-height: 2.1; }
.certificate-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; margin: 32px 0; border: 1px solid var(--line); border-radius: 18px; background: var(--line); text-align: right; }
.certificate-facts div { padding: 18px; background: #fff; }
.certificate-facts dt { margin-bottom: 7px; color: var(--muted); font-size: 10px; }
.certificate-facts dd { margin: 0; color: var(--ink-strong); font-size: 13px; font-weight: 800; overflow-wrap: anywhere; }
.certificate-facts code { direction: ltr; font-family: ui-monospace, monospace; font-size: 11px; }

@media (max-width: 900px) {
  .learning-dashboard-hero, .learning-course-hero { display: block; }
  .learning-dashboard-hero .button { margin-top: 24px; }
  .learning-course-progress { margin-top: 24px; }
  .learning-layout, .learning-lesson-layout, .learning-submission-layout { grid-template-columns: 1fr; }
  .learning-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .learning-dashboard { padding: 32px 0 58px; }
  .learning-dashboard-grid, .learning-sidebar, .certificate-facts { grid-template-columns: 1fr; }
  .learning-dashboard-hero, .learning-course-hero { padding: 27px 23px; }
  .learning-section-head { display: block; }
  .learning-section-head > p { max-width: 550px; margin-top: 15px; }
  .learning-lesson-row { padding: 12px 15px; }
  .learning-video-locked { grid-template-columns: 1fr; }
  .learning-video-locked .catalog-placeholder { width: 70px; min-height: 70px; font-size: 22px; }
  .learning-resources a { grid-template-columns: 65px minmax(0, 1fr) 18px; }
  .learning-lesson-content, .learning-submission-form { padding: 22px; }
  .quiz-question { padding: 18px; }
  .certificate-wrap { padding: 35px 0; }
}

.protected-player { position: relative; min-height: 390px; overflow: hidden; border: 1px solid #e6defd; border-radius: 24px; background: #1d2020; box-shadow: var(--shadow); }
.protected-player-video { display: block; width: 100%; min-height: 390px; background: #101111; }
.protected-player-gate { position: absolute; inset: 0; z-index: 2; display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; gap: 23px; padding: 35px; background: radial-gradient(circle at 20% 20%, rgba(244,201,40,.18), transparent 30%), linear-gradient(145deg, rgba(40,32,74,.98), rgba(18,20,22,.98)); color: #fff; }
.protected-player-gate[hidden] { display: none; }
.protected-player-gate .catalog-placeholder { width: 100px; min-height: 100px; border-radius: 25px; background: var(--yellow); color: var(--ink-strong); font-size: 31px; }
.protected-player-gate h2 { margin: 11px 0 8px; color: #fff; font-size: 23px; }
.protected-player-gate p { max-width: 550px; margin: 0 0 19px; color: #e3dff3; font-size: 12px; line-height: 2; }
.protected-player-gate .protected-player-message { min-height: 21px; margin: 12px 0 0; color: #fff4b6; font-size: 11px; font-weight: 800; }
.protected-player-watermark { position: absolute; right: 23px; bottom: 61px; z-index: 3; max-width: min(75%, 420px); border-radius: 8px; padding: 6px 10px; background: rgba(0,0,0,.38); color: rgba(255,255,255,.82); font-size: 11px; font-weight: 800; pointer-events: none; text-shadow: 0 1px 2px rgba(0,0,0,.9); }
.protected-player-watermark[hidden] { display: none; }

@media (max-width: 600px) {
  .protected-player, .protected-player-video { min-height: 315px; }
  .protected-player-gate { grid-template-columns: 1fr; padding: 26px; }
  .protected-player-gate .catalog-placeholder { width: 70px; min-height: 70px; border-radius: 20px; font-size: 22px; }
  .protected-player-watermark { right: 14px; bottom: 55px; font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-card:hover, .home-catalog-link:hover, .featured-item:hover { transform: none; }
}

.classroom-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, .34fr); gap: 24px; align-items: start; }
.classroom-main, .classroom-sidebar { display: grid; gap: 22px; }
.classroom-section, .classroom-sidebar > section { border: 1px solid var(--line); border-radius: var(--radius-md); padding: clamp(22px, 3vw, 32px); background: #fff; }
.classroom-section h2, .classroom-sidebar h2 { margin: 13px 0 20px; color: var(--ink-strong); font-size: clamp(1.7rem, 3vw, 2.45rem); font-weight: 900; letter-spacing: -.06em; }
.classroom-section h2 em { color: var(--yellow-text); font-style: normal; }
.classroom-session-list { display: grid; gap: 12px; }
.classroom-session { display: grid; grid-template-columns: 76px minmax(0, 1fr) minmax(140px, .42fr); gap: 18px; align-items: start; border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: var(--paper-soft); }
.classroom-session.is-live { border-color: #b8a6fa; background: linear-gradient(135deg, #fcfbff, var(--purple-soft)); }
.classroom-session-state span { display: inline-flex; border-radius: 999px; padding: 6px 9px; background: #ebe9e2; color: var(--muted); font-size: 9px; font-weight: 900; white-space: nowrap; }
.classroom-session.is-live .classroom-session-state span { background: #e4f8ec; color: #197345; }
.classroom-session strong, .classroom-session small { display: block; }
.classroom-session strong { color: var(--ink-strong); font-size: 14px; }
.classroom-session small, .classroom-session p { margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.9; }
.classroom-session p { margin-bottom: 0; }
.classroom-session-actions { display: grid; gap: 9px; align-items: start; }
.classroom-session-actions .button { min-height: 38px; padding: 10px 13px; font-size: 10px; }
.classroom-session-actions > span, .classroom-session-actions > a { color: var(--muted); font-size: 10px; line-height: 1.8; }
.classroom-session-actions > a { color: var(--purple); font-weight: 800; }
.classroom-activity-grid, .classroom-teacher-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.classroom-activity-grid > div + div { border-right: 1px solid var(--line); padding-right: 24px; }
.classroom-activity-grid h2 { font-size: 21px; }
.classroom-activity-item, .classroom-teacher-session { display: grid; grid-template-columns: minmax(0, 1fr) 19px; gap: 8px; margin-top: 11px; border-radius: 13px; padding: 14px; background: var(--paper-soft); transition: background .2s ease, transform .2s ease; }
.classroom-activity-item:hover, .classroom-teacher-session:hover { background: var(--purple-soft); transform: translateX(-3px); }
.classroom-activity-item span, .classroom-activity-item strong, .classroom-activity-item small, .classroom-teacher-session span, .classroom-teacher-session strong, .classroom-teacher-session small { display: block; }
.classroom-activity-item span, .classroom-teacher-session span { color: var(--purple); font-size: 9px; font-weight: 900; }
.classroom-activity-item strong, .classroom-teacher-session strong { color: var(--ink); font-size: 12px; }
.classroom-activity-item small, .classroom-teacher-session small { color: var(--muted); font-size: 10px; }
.classroom-activity-item b, .classroom-teacher-session b { grid-row: span 3; align-self: center; color: var(--purple); font-size: 17px; }
.classroom-sidebar > section > strong { display: block; margin: 15px 0 8px; color: var(--ink-strong); font-size: 19px; }
.classroom-sidebar > section > p { color: var(--muted); font-size: 12px; line-height: 2; }
.classroom-sidebar .button { margin-top: 12px; }
.classroom-meeting-modal { position: fixed; inset: 0; z-index: 200; display: grid; overflow: auto; padding: 32px; place-items: center; background: rgba(25, 28, 23, .74); }
.classroom-meeting-modal[hidden] { display: none; }
.classroom-meeting-panel { position: relative; width: min(1180px, 100%); min-height: min(720px, calc(100vh - 64px)); overflow: hidden; border-radius: 25px; background: #181919; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.classroom-meeting-close { position: absolute; top: 13px; left: 13px; z-index: 3; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink-strong); font-size: 25px; line-height: 1; }
.classroom-meeting-status { position: absolute; top: 50%; right: 50%; z-index: 1; width: min(90%, 390px); transform: translate(50%, -50%); color: #fff; text-align: center; font-size: 14px; }
.classroom-meeting { position: relative; z-index: 2; width: 100%; min-height: min(720px, calc(100vh - 64px)); }
.classroom-meeting iframe { width: 100%; min-height: min(720px, calc(100vh - 64px)); border: 0; }
.classroom-teacher-grid .classroom-section { min-height: 340px; }
.classroom-teacher-class { display: grid; gap: 6px; margin-top: 13px; border-radius: 14px; padding: 16px; background: var(--paper-soft); }
.classroom-teacher-class span { color: var(--purple); font-size: 9px; font-weight: 900; }
.classroom-teacher-class strong { color: var(--ink-strong); font-size: 13px; }
.classroom-teacher-class small { color: var(--muted); font-size: 10px; }
.attendance-list { display: grid; gap: 10px; }
.attendance-list article { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr); gap: 20px; align-items: center; border-radius: 15px; padding: 17px; background: var(--paper-soft); }
.attendance-list strong, .attendance-list small { display: block; }
.attendance-list strong { color: var(--ink-strong); font-size: 13px; }
.attendance-list small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.attendance-list form { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 8px; }
.attendance-list input, .attendance-list select { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; background: #fff; color: var(--ink); font: inherit; font-size: 10px; }
.attendance-list .button { min-height: 35px; padding: 9px 12px; font-size: 10px; }

@media (max-width: 900px) {
  .classroom-layout, .classroom-teacher-grid { grid-template-columns: 1fr; }
  .classroom-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
  .classroom-session, .attendance-list article { grid-template-columns: 1fr; gap: 11px; }
  .classroom-activity-grid, .classroom-sidebar { grid-template-columns: 1fr; }
  .classroom-activity-grid > div + div { border-top: 1px solid var(--line); border-right: 0; margin-top: 22px; padding-top: 22px; padding-right: 0; }
  .attendance-list form { grid-template-columns: 1fr; }
  .classroom-meeting-modal { padding: 12px; }
  .classroom-meeting-panel, .classroom-meeting, .classroom-meeting iframe { min-height: calc(100vh - 24px); }
}
