:root {
  --sci-blue-950: #071648;
  --sci-blue-900: #0b1f63;
  --sci-blue-800: #12307e;
  --sci-blue-700: #1d4ed8;
  --sci-blue-100: #dbeafe;
  --sci-blue-50: #eff6ff;
  --sci-red: #dc2626;
  --sci-red-600: #c91538;
  --sci-red-50: #fef2f2;
  --sci-slate-900: #0f172a;
  --sci-slate: #475569;
  --sci-border: #d8dee8;
  --sci-bg: #f3f4f6;
}

html { background: var(--sci-bg); }
.sc-body { background: var(--sci-bg); color: #171717; font-family: Arial, Helvetica, sans-serif; }
.sci-container { width: min(100% - 32px, 1280px); margin-inline: auto; }
.sci-public-main { min-height: 70vh; padding-top: 64px; }
.sci-logo { display: inline-flex; align-items: center; gap: 9px; color: var(--sci-blue-900); font-weight: 800; text-decoration: none; }
.sci-logo__icon { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 999px; color: var(--sci-red); font-size: 18px; line-height: 1; }

.sci-header { position: fixed; inset: 0 0 auto 0; z-index: 60; height: 64px; border-bottom: 1px solid var(--sci-blue-900); background: rgba(255,255,255,.96); backdrop-filter: blur(16px); box-shadow: 0 8px 30px rgba(15,23,42,.06); }
.sci-header__inner { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.sci-level-nav { display: flex; align-items: center; gap: 24px; color: var(--sci-blue-900); font-size: 14px; font-weight: 700; }
.sci-nav-group { position: relative; }
.sci-nav-group > button { border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.sci-nav-group > button:hover, .sci-level-nav a:hover, .sci-login:hover { color: var(--sci-red); }
.sci-nav-group > div { position: absolute; top: calc(100% + 12px); left: 0; display: none; min-width: 164px; padding: 6px; border: 1px solid var(--sci-border); border-radius: 14px; background: rgba(255,255,255,.98); box-shadow: 0 18px 40px rgba(15,23,42,.12); }
.sci-nav-group:hover > div, .sci-nav-group:focus-within > div { display: grid; gap: 2px; }
.sci-nav-group a { display: block; border-radius: 10px; padding: 9px 10px; color: var(--sci-blue-900); text-decoration: none; }
.sci-nav-group a:hover { background: var(--sci-blue-50); }
.sci-header__actions { display: flex; align-items: center; gap: 10px; }
.sci-login, .sci-register { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 800; text-decoration: none; }
.sci-login { color: var(--sci-blue-900); }
.sci-register { color: #fff; background: var(--sci-red); box-shadow: 0 12px 26px rgba(220,38,38,.22); }
.sci-register:hover { background: var(--sci-red-600); }
.sci-burger { display: none; border: 1px solid var(--sci-border); border-radius: 10px; background: #fff; color: var(--sci-blue-900); width: 40px; height: 40px; font-weight: 800; }
.sci-mobile { display: none; position: fixed; top: 64px; left: 16px; right: 16px; z-index: 70; padding: 12px; border: 1px solid var(--sci-border); border-radius: 14px; background: #fff; box-shadow: 0 18px 46px rgba(15,23,42,.18); }
.sci-mobile a, .sci-mobile button { display: block; width: 100%; padding: 11px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--sci-blue-900); text-align: left; font-weight: 800; text-decoration: none; }
.sci-mobile__cta { background: var(--sci-red) !important; color: #fff !important; }

.sci-eyebrow { margin: 0 0 10px; color: var(--sci-red); font-size: 13px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.sci-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border-radius: 999px; padding: 0 22px; border: 1px solid transparent; font-size: 14px; font-weight: 900; text-decoration: none; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease; }
.sci-btn:hover { transform: translateY(-1px); }
.sci-btn--primary { background: linear-gradient(90deg, var(--sci-blue-900), var(--sci-blue-700), var(--sci-blue-900)); color: #fff; box-shadow: 0 14px 30px rgba(30,58,138,.25); }
.sci-btn--outline { background: #fff; border-color: var(--sci-blue-900); color: var(--sci-blue-900); }
.sci-btn--light { background: #fff; color: var(--sci-blue-900); }
.sci-pill { display: inline-flex; align-items: center; width: fit-content; min-height: 28px; border-radius: 999px; padding: 0 16px; background: var(--sci-blue-100); color: var(--sci-blue-900); font-size: 14px; font-weight: 800; }
.sci-pill--red { background: var(--sci-red-50); color: var(--sci-red); }

.sci-home { overflow: hidden; background: linear-gradient(180deg,#fff 0%,#fff 64%,var(--sci-blue-50) 100%); }
.sci-hero { background: rgba(255,255,255,.85); }
.sci-hero__grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(420px,1fr); align-items: center; gap: 56px; padding: 64px 0 80px; }
.sci-hero__copy h1 { margin: 0; max-width: 650px; color: var(--sci-blue-900); font-size: 56px; line-height: 1.05; font-weight: 900; }
.sci-hero__copy h1 span, .sci-hero__copy h1 strong { display: block; }
.sci-hero__copy h1 strong, .sci-section-title h2 span, .sci-demo-grid h2 span, .sci-showcase h2 span, .sci-testimonials h2 span, .sci-auth-promo h2 span { color: var(--sci-red); }
.sci-hero__copy > p { margin: 20px 0 0; max-width: 650px; color: #5f6d82; font-size: 18px; line-height: 1.75; }
.sci-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.sci-hero__note { margin-top: 16px; color: #64748b; font-size: 14px; }
.sci-hero-image { position: relative; height: 430px; overflow: visible; border-radius: 24px; box-shadow: 0 28px 70px rgba(15,23,42,.22); }
.sci-hero-image img, .sci-showcase__image > img, .sci-auth-promo figure img, .sci-catalog-preview img, .sci-course-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sci-hero-image > img { border-radius: 24px; }
.sci-hero-image__overlay { position: absolute; inset: 0; border-radius: 24px; background: linear-gradient(45deg,rgba(11,31,99,.24),transparent 55%,rgba(220,38,38,.18)); }
.sci-float-card { position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; min-width: 152px; padding: 14px 16px; border-radius: 16px; background: #fff; box-shadow: 0 20px 42px rgba(15,23,42,.18); }
.sci-float-card strong, .sci-float-card small { display: block; }
.sci-float-card strong { color: var(--sci-blue-900); font-size: 16px; }
.sci-float-card small { color: #64748b; font-size: 12px; }
.sci-float-card__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 999px; background: linear-gradient(135deg,var(--sci-blue-900),var(--sci-blue-700)); color: #fff; font-weight: 900; }
.sci-float-card--students { left: -20px; bottom: -18px; }
.sci-float-card--rating { top: -18px; right: -18px; }
.sci-stats-band { background-color: var(--sci-blue-900); background-image: linear-gradient(90deg,var(--sci-blue-900),var(--sci-blue-800),var(--sci-blue-900)); color: #fff; padding: 34px 0; }
.sci-stats-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; }
.sci-stats-grid article { color: #fff; text-align: center; }
.sci-stats-grid strong { display: block; color: #fff; font-size: 34px; font-weight: 900; }
.sci-stats-grid span { color: #bfdbfe; font-size: 14px; }
.sci-section { padding: 88px 0; background: #fff; }
.sci-section--blue, .sci-testimonials { background: rgba(239,246,255,.85); }
.sci-section-title { max-width: 760px; margin: 0 auto; text-align: center; }
.sci-section-title h2, .sci-demo-grid h2, .sci-showcase h2, .sci-auth-promo h2 { margin: 0; color: var(--sci-blue-900); font-size: 38px; line-height: 1.14; font-weight: 900; }
.sci-section-title p:not(.sci-eyebrow), .sci-demo-grid p, .sci-showcase p, .sci-auth-promo p { color: #64748b; font-size: 18px; line-height: 1.7; }
.sci-feature-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; margin-top: 48px; }
.sci-feature-card, .sci-notion-card, .sci-price-card, .sci-testimonial-grid article, .sci-faq-list article, .sci-dash-panel, .sci-auth-card, .sci-course-summary-card { border: 1px solid var(--sci-border); background: rgba(255,255,255,.9); box-shadow: 0 20px 44px rgba(15,23,42,.08); }
.sci-feature-card { overflow: hidden; border-radius: 18px; transition: transform .2s ease,border-color .2s ease; }
.sci-feature-card:hover { transform: translateY(-6px); border-color: var(--sci-red); }
.sci-feature-card img { width: 100%; height: 132px; object-fit: cover; }
.sci-feature-card div { padding: 20px; }
.sci-feature-card h3 { display: flex; align-items: center; gap: 9px; margin: 0 0 10px; color: var(--sci-blue-900); font-size: 17px; font-weight: 900; }
.sci-feature-card h3 i { width: 12px; height: 12px; border-radius: 999px; background: var(--sci-red); }
.sci-feature-card p { margin: 0; color: #64748b; line-height: 1.6; }
.sci-demo-grid, .sci-showcase { display: grid; grid-template-columns: minmax(0,.9fr) minmax(430px,1.1fr); align-items: center; gap: 58px; }
.sci-demo-grid h2, .sci-showcase h2 { margin-top: 16px; }
.sci-notion-card { border-radius: 18px; padding: 24px; }
.sci-notion-card header h3 { margin: 0 0 18px; color: var(--sci-blue-900); font-size: 20px; font-weight: 900; }
.sci-notion-tabs, .sci-billing-toggle { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--sci-blue-900); border-radius: 999px; background: #fff; }
.sci-notion-tabs button, .sci-billing-toggle button { border: 0; border-radius: 999px; padding: 9px 15px; background: transparent; color: var(--sci-blue-900); font-weight: 900; cursor: pointer; }
.sci-notion-tabs button.is-active, .sci-billing-toggle button.is-active { background: var(--sci-blue-900); color: #fff; }
.sci-notion-panel { display: none; margin-top: 18px; }
.sci-notion-panel.is-active { display: block; }
.sci-notion-label { color: var(--sci-blue-900) !important; font-size: 15px !important; font-weight: 900; }
.sci-notion-box { margin: 12px 0 16px; border: 1px solid var(--sci-border); border-radius: 14px; padding: 16px; background: #fff; }
.sci-notion-box p, .sci-notion-box li, .sci-notion-panel > p { color: #475569; line-height: 1.6; }
.sci-notion-box ol { margin: 12px 0 0 20px; }
.sci-input, .sci-field .input, .sci-auth-form input, .sci-auth-form select, .sci-auth-form textarea { width: 100%; min-height: 46px; border: 1px solid var(--sci-border); border-radius: 14px; background: #fff; padding: 0 14px; color: #111827; outline: none; }
.sci-input:focus, .sci-field .input:focus, .sci-auth-form input:focus { border-color: var(--sci-blue-900); box-shadow: 0 0 0 4px rgba(29,78,216,.12); }
.sci-notion-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.sci-feedback { min-height: 22px; margin-top: 12px; font-weight: 800; }
.sci-feedback.is-ok { color: #047857; }
.sci-feedback.is-bad { color: var(--sci-red); }
.sci-showcase { grid-template-columns: minmax(420px,.95fr) minmax(0,1.05fr); }
.sci-showcase__image { position: relative; min-height: 360px; }
.sci-showcase__image > img { border-radius: 24px; box-shadow: 0 30px 70px rgba(15,23,42,.18); }
.sci-showcase__mini { position: absolute; right: -28px; bottom: -28px; width: 210px; border: 6px solid #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 22px 42px rgba(15,23,42,.22); }
.sci-showcase__mini img { width: 100%; height: 150px; object-fit: cover; }
.sci-check-list { display: grid; gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; }
.sci-check-list li { position: relative; padding-left: 34px; color: #334155; font-weight: 700; }
.sci-check-list li::before { content: "✓"; position: absolute; top: -2px; left: 0; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 999px; background: #dcfce7; color: #047857; font-size: 13px; font-weight: 900; }
.sci-step-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px; margin-top: 48px; }
.sci-step-grid article { position: relative; text-align: center; }
.sci-step-icon { position: relative; display: flex; align-items: center; justify-content: center; width: 80px; height: 80px; margin: 0 auto 24px; border-radius: 0; background: transparent; color: inherit; box-shadow: none; isolation: isolate; }
.sci-step-halo { position: absolute; inset: 0; display: block; min-width: 0; border-radius: 999px; background: #dbeafe; padding: 0; }
.sci-step-icon strong { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 999px; background: linear-gradient(135deg,var(--sci-blue-900),var(--sci-blue-700)); color: #fff; font-size: 30px; line-height: 1; box-shadow: 0 10px 15px -3px rgba(15,23,42,.14), 0 4px 6px -4px rgba(15,23,42,.12); transition: transform .3s ease; }
.sci-step-icon b { position: absolute; top: -8px; right: -8px; z-index: 2; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 999px; background: #dc2626; color: #fff; font-size: 12px; font-weight: 800; line-height: 1; box-shadow: 0 4px 6px -1px rgba(15,23,42,.18); }
.sci-step-grid h3 { margin: 0 0 8px; color: var(--sci-blue-900); font-size: 20px; font-weight: 800; }
.sci-step-grid p { max-width: 360px; margin: 0 auto; color: #4b5563; line-height: 1.5; }
.sci-billing-toggle { display: flex; width: min(100%,430px); margin: 28px auto 0; }
.sci-billing-toggle button { flex: 1; }
.sci-billing-toggle span { font-size: 12px; }
.sci-price-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; margin-top: 40px; }
.sci-price-card { position: relative; display: flex; flex-direction: column; gap: 14px; border-radius: 18px; padding: 24px; }
.sci-price-card.is-popular { border-color: var(--sci-red); box-shadow: 0 24px 55px rgba(220,38,38,.14); }
.sci-popular { position: absolute; top: 18px; right: 18px; border-radius: 999px; background: var(--sci-red); color: #fff; padding: 5px 10px; font-size: 12px; font-weight: 900; }
.sci-price-card h3 { margin: 0; color: var(--sci-blue-900); font-size: 24px; font-weight: 900; }
.sci-price-card p { margin: 0; color: #64748b; }
.sci-price-card div strong { color: var(--sci-blue-900); font-size: 32px; font-weight: 900; }
.sci-price-card div span { color: #64748b; }
.sci-price-card ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; flex: 1; }
.sci-price-card li { position: relative; padding-left: 24px; color: #334155; font-size: 14px; line-height: 1.45; }
.sci-price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--sci-blue-900); font-weight: 900; }
.sci-compare { margin-top: 64px; }
.sci-compare__table { margin-top: 28px; overflow-x: auto; }
.sci-compare table { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0 8px; }
.sci-compare th, .sci-compare td { padding: 13px 14px; background: #fff; color: var(--sci-blue-900); text-align: center; }
.sci-compare th:first-child, .sci-compare td:first-child { text-align: left; }
.sci-compare th { background: var(--sci-blue-50); font-weight: 900; }
.sci-pricing-note { margin-top: 22px; text-align: center; color: #64748b; font-size: 13px; }
.sci-testimonial-grid, .sci-faq-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; margin-top: 40px; }
.sci-testimonial-grid article, .sci-faq-list article { border-radius: 18px; padding: 24px; }
.sci-testimonial-grid img { width: 54px; height: 54px; border-radius: 999px; object-fit: cover; box-shadow: 0 0 0 3px var(--sci-blue-50); }
.sci-testimonial-grid h3, .sci-faq-list h3 { margin: 14px 0 4px; color: var(--sci-blue-900); font-size: 18px; font-weight: 900; }
.sci-testimonial-grid span { color: #64748b; font-size: 13px; }
.sci-testimonial-grid p, .sci-faq-list p { color: #475569; line-height: 1.65; }
.sci-testimonial-grid small { color: #f59e0b; letter-spacing: .12em; }
.sci-success { background: var(--sci-blue-900); color: #fff; padding: 88px 0; text-align: center; }
.sci-success h2 { margin: 0; font-size: 44px; line-height: 1.12; font-weight: 900; }
.sci-success h2 span { color: #fca5a5; }
.sci-success p { max-width: 700px; margin: 18px auto 0; color: #bfdbfe; font-size: 18px; line-height: 1.7; }
.sci-success__stats { display: flex; justify-content: center; gap: 56px; margin: 36px 0; }
.sci-success__stats strong, .sci-success__stats span { display: block; }
.sci-success__stats strong { font-size: 38px; font-weight: 900; }
.sci-success__stats span { color: #93c5fd; font-size: 14px; }
.sci-footer { border-top: 1px solid var(--sci-blue-900); background: #fff; color: #64748b; }
.sci-footer__inner { display: grid; grid-template-columns: 1.4fr repeat(5,minmax(0,1fr)); gap: 28px; padding: 42px 0; }
.sci-footer p { margin: 14px 0 0; max-width: 260px; line-height: 1.55; }
.sci-footer h3 { margin: 0 0 12px; color: var(--sci-blue-900); font-size: 14px; font-weight: 900; }
.sci-footer a:not(.sci-logo) { display: block; margin-top: 8px; color: #475569; text-decoration: none; }
.sci-footer a:hover { color: var(--sci-red); }
.sci-footer__bottom { border-top: 1px solid #edf1f7; padding: 18px; text-align: center; color: #64748b; font-size: 13px; }

.sci-app-sidebar { background: #fff !important; border-right: 1px solid var(--sci-border) !important; color: var(--sci-blue-900) !important; }
.sci-app-sidebar .cc-app-nav__label { color: #94a3b8 !important; }
.sci-app-sidebar .cc-app-nav__link { color: var(--sci-blue-900) !important; border-radius: 12px !important; }
.sci-app-sidebar .cc-app-nav__link:hover, .sci-app-sidebar .cc-app-nav__link.is-active { background: var(--sci-blue-50) !important; color: var(--sci-blue-900) !important; }
.sci-app-sidebar .cc-app-nav__link.is-active { box-shadow: inset 4px 0 0 var(--sci-red); }
.sci-app-topbar { background: rgba(255,255,255,.96) !important; border-bottom: 1px solid var(--sci-border) !important; }
.sci-app-main { background: var(--sci-bg); }
.sci-dashboard { display: grid; gap: 28px; color: var(--sci-slate-900); }
.sci-dash-hero { position: relative; overflow: hidden; display: flex; justify-content: space-between; gap: 28px; border-radius: 28px; padding: 34px; background: linear-gradient(135deg,var(--sci-blue-900),var(--sci-blue-700),var(--sci-red)); color: #fff; box-shadow: 0 28px 70px rgba(30,58,138,.25); }
.sci-dash-hero__copy p, .sci-dash-hero__copy span { color: #dbeafe; }
.sci-dash-hero h1 { margin: 4px 0 8px; font-size: 38px; line-height: 1.12; font-weight: 900; }
.sci-dash-continue { display: inline-flex; align-items: center; gap: 12px; margin-top: 24px; min-height: 48px; border-radius: 14px; background: #fff; color: var(--sci-blue-900); padding: 0 20px; font-weight: 900; text-decoration: none; }
.sci-dash-quickstats { display: flex; align-items: stretch; gap: 12px; }
.sci-dash-quickstats article { min-width: 128px; border: 1px solid rgba(255,255,255,.22); border-radius: 18px; padding: 18px; background: rgba(255,255,255,.14); }
.sci-dash-quickstats strong, .sci-dash-quickstats span { display: block; }
.sci-dash-quickstats strong { font-size: 28px; font-weight: 900; }
.sci-dash-quickstats span { color: #dbeafe; font-size: 12px; }
.sci-student-grid { display: grid; grid-template-columns: minmax(0,2fr) minmax(320px,.92fr); gap: 24px; }
.sci-student-main, .sci-student-side { display: grid; gap: 24px; align-content: start; }
.sci-dash-panel { border-radius: 20px; overflow: hidden; }
.sci-dash-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; border-bottom: 1px solid #edf1f7; }
.sci-dash-panel > header a { color: var(--sci-blue-700); font-weight: 900; text-decoration: none; }
.sci-panel-title { display: flex; align-items: center; gap: 12px; }
.sci-panel-title > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--sci-blue-100); color: var(--sci-blue-700); font-weight: 900; }
.sci-panel-title h2, .sci-panel-title p { margin: 0; }
.sci-panel-title h2 { color: var(--sci-slate-900); font-size: 18px; font-weight: 900; }
.sci-panel-title p { color: #64748b; font-size: 14px; line-height: 1.45; }
.sci-course-progress-list, .sci-activity-feed, .sci-goals { display: grid; }
.sci-course-progress-item { display: grid; grid-template-columns: 58px minmax(0,1fr) auto; align-items: center; gap: 16px; padding: 18px 24px; border-bottom: 1px solid #edf1f7; color: inherit; text-decoration: none; }
.sci-course-progress-item:hover { background: #f8fafc; }
.sci-subject-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(135deg,var(--sci-blue-700),var(--sci-blue-900)); color: #fff; font-size: 22px; font-weight: 900; }
.sci-course-progress-item small, .sci-course-progress-item span, .sci-mini-progress b, .sci-mini-progress i { display: block; }
.sci-course-progress-item small { color: var(--sci-blue-700); font-size: 12px; font-weight: 800; }
.sci-course-progress-item strong { display: block; color: var(--sci-slate-900); font-weight: 900; }
.sci-course-progress-item span { color: #64748b; font-size: 13px; }
.sci-mini-progress { min-width: 108px; }
.sci-mini-progress b { margin-bottom: 6px; text-align: right; color: #334155; font-size: 13px; }
.sci-mini-progress i { height: 8px; border-radius: 999px; overflow: hidden; background: #e2e8f0; }
.sci-mini-progress em { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--sci-blue-700),var(--sci-red)); }
.sci-empty-state { display: grid; gap: 9px; padding: 28px; color: #64748b; }
.sci-empty-state strong { color: var(--sci-slate-900); }
.sci-goal-meter { display: flex; align-items: center; gap: 10px; }
.sci-goal-meter > i { position: relative; display: block; width: 132px; height: 8px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.sci-goal-meter > i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 50%; background: #10b981; }
.sci-goal-meter b { color: #047857; font-size: 13px; }
.sci-goals { gap: 10px; padding: 18px; }
.sci-goals article { display: flex; align-items: center; gap: 12px; border-radius: 14px; background: #f8fafc; padding: 13px; }
.sci-goals article.is-done { background: #ecfdf5; }
.sci-goals b { width: 20px; height: 20px; border: 2px solid #cbd5e1; border-radius: 999px; }
.sci-goals .is-done b { border-color: #10b981; background: #10b981; }
.sci-goals span { flex: 1; color: #334155; font-weight: 700; }
.sci-goals small { border-radius: 999px; background: var(--sci-blue-100); color: var(--sci-blue-700); padding: 4px 9px; font-size: 12px; font-weight: 800; }
.sci-activity-feed article { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 18px 20px; border-bottom: 1px solid #edf1f7; }
.sci-activity-feed b { width: 42px; height: 42px; border-radius: 12px; background: var(--sci-blue-50); }
.sci-activity-feed strong, .sci-activity-feed span { display: block; }
.sci-activity-feed strong { color: var(--sci-slate-900); font-size: 15px; }
.sci-activity-feed span, .sci-activity-feed small { color: #64748b; font-size: 15px; line-height: 1.45; }
.sci-badges { display: flex; flex-wrap: wrap; gap: 12px; padding: 20px; }
.sci-badges span { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: linear-gradient(135deg,#fef3c7,#fde68a); color: #92400e; font-weight: 900; box-shadow: 0 12px 22px rgba(245,158,11,.16); }
.sci-quick-actions { display: grid; gap: 10px; border-radius: 20px; padding: 22px; background-color: var(--sci-blue-900); background-image: linear-gradient(135deg,var(--sci-slate-900),var(--sci-blue-900)); color: #fff; box-shadow: 0 20px 50px rgba(15,23,42,.18); }
.sci-quick-actions h3 { margin: 0 0 4px; color: #fff !important; font-size: 18px; font-weight: 900; }
.sci-quick-actions a { display: flex; align-items: center; justify-content: space-between; border-radius: 14px; background: #17307c; color: #fff; padding: 14px; font-size: 15px; text-decoration: none; font-weight: 800; }
.sci-quick-actions a:hover { background: #2241a0; }
.sci-student-side .sci-panel-title h2 { font-size: 21px; }
.sci-parent-panel { display: grid; }
.sci-parent-panel .sci-child-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
  padding: 18px 24px 22px;
}
.sci-parent-panel .sci-child-grid article {
  display: flex;
  min-width: 0;
  min-height: 72px;
  align-items: center;
  gap: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  padding: 14px;
}
.sci-parent-panel .sci-child-grid article > span {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #1e3a8a;
  color: #fff;
  font-weight: 900;
}
.sci-parent-panel .sci-child-grid article > div { display: grid; min-width: 0; gap: 3px; }
.sci-parent-panel .sci-child-grid strong {
  overflow: hidden;
  color: #0f255f;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sci-parent-panel .sci-child-grid small { color: #64748b; font-size: 14px; }
.sci-creator-zone { display: grid; gap: 24px; }
.sci-creator-hero { display: flex; justify-content: space-between; gap: 20px; border-radius: 24px; padding: 28px; background: #fff; border: 1px solid var(--sci-border); box-shadow: 0 20px 44px rgba(15,23,42,.08); }
.sci-creator-hero h2 { margin: 0; color: var(--sci-blue-900); font-size: 28px; font-weight: 900; }
.sci-creator-hero p:not(.sci-eyebrow) { max-width: 760px; color: #64748b; }
.sci-creator-hero > div:last-child { display: flex; flex-wrap: wrap; gap: 10px; align-content: center; }
.sci-creator-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.sci-creator-metrics article { border: 1px solid var(--sci-border); border-radius: 18px; background: #fff; padding: 20px; box-shadow: 0 16px 34px rgba(15,23,42,.06); }
.sci-creator-metrics span, .sci-creator-metrics strong { display: block; }
.sci-creator-metrics span { color: #64748b; font-size: 13px; }
.sci-creator-metrics strong { color: var(--sci-blue-900); font-size: 30px; font-weight: 900; }

.sci-catalog { width: min(100% - 32px,1280px); margin: 0 auto; padding: 42px 0 80px; }
.sci-catalog--dashboard { width: min(100%,1280px); padding-top: 0; }
.sci-catalog-hero { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 28px; align-items: stretch; border-radius: 22px; padding: 30px; background: #fff; border: 1px solid var(--sci-border); box-shadow: 0 20px 44px rgba(15,23,42,.08); }
.sci-catalog-hero h1 { max-width: 780px; margin: 0; color: var(--sci-blue-900); font-size: 38px; line-height: 1.12; font-weight: 900; }
.sci-catalog-hero p:not(.sci-eyebrow) { max-width: 780px; color: #64748b; line-height: 1.7; }
.sci-catalog-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.sci-catalog-chips span { border-radius: 999px; background: var(--sci-blue-50); color: var(--sci-blue-900); padding: 7px 12px; font-size: 13px; font-weight: 800; }
.sci-catalog-preview { overflow: hidden; border-radius: 18px; min-height: 230px; background: var(--sci-blue-900); color: #fff; }
.sci-catalog-preview img { height: 160px; }
.sci-catalog-preview div { padding: 16px; }
.sci-catalog-preview strong, .sci-catalog-preview span { display: block; }
.sci-catalog-preview span { color: #bfdbfe; font-size: 13px; }
.sci-filter-panel { display: grid; grid-template-columns: minmax(240px,1.2fr) repeat(3,minmax(170px,1fr)) auto; gap: 18px; align-items: end; margin-top: 22px; border: 1px solid var(--sci-border); border-radius: 22px; padding: 22px; background: #fff; box-shadow: 0 18px 38px rgba(15,23,42,.06); }
.sci-catalog--dashboard .sci-filter-panel { grid-template-columns: repeat(2,minmax(0,1fr)); }
.sci-catalog--dashboard .sci-filter-submit { width: 100%; }
.sci-field { display: grid; gap: 9px; }
.sci-field label { color: var(--sci-blue-900); font-weight: 900; font-size: 13px; }
.sci-field select { display: none; }
.sci-choice-list { display: flex; flex-wrap: wrap; gap: 8px; }
.sci-choice-list button { min-height: 38px; border: 1px solid var(--sci-border); border-radius: 10px; background: #fff; color: var(--sci-blue-900); padding: 0 12px; font-weight: 900; cursor: pointer; }
.sci-choice-list button.active { background: var(--sci-blue-900); color: #fff; border-color: var(--sci-blue-900); }
.sci-results-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-top: 34px; }
.sci-results-head h2 { margin: 0; color: var(--sci-blue-900); font-size: 32px; font-weight: 900; }
.sci-results-head > span { border-radius: 999px; background: #fff1f2; color: #b91c1c; padding: 10px 16px; font-weight: 900; }
.sci-course-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; margin-top: 22px; }
.sci-course-summary-card { display: flex; flex-direction: column; gap: 18px; border-radius: 18px; padding: 22px; }
.sci-course-summary-card header, .sci-course-summary-card footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.sci-course-summary-card header span { border-radius: 999px; background-color: var(--sci-blue-900); background-image: linear-gradient(90deg,var(--sci-blue-700),var(--sci-blue-900)); color: #fff; padding: 7px 11px; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.sci-course-summary-card small { color: #64748b; font-size: 12px; font-weight: 800; }
.sci-course-summary-card h3 { margin: 0; color: var(--sci-slate-900); font-size: 24px; font-weight: 900; }
.sci-course-summary-card p { color: #64748b; line-height: 1.6; }
.sci-course-summary-card section { display: flex; justify-content: space-between; gap: 16px; border-radius: 16px; background: var(--sci-slate-900); color: #fff; padding: 16px; }
.sci-course-summary-card section small { display: block; color: #cbd5e1; text-transform: uppercase; letter-spacing: .06em; }
.sci-course-summary-card section strong { color: #fff; }
.sci-course-summary-card footer span { color: #64748b; font-size: 13px; font-weight: 800; }
.sci-course-summary-card footer a { color: var(--sci-blue-700); font-weight: 900; text-decoration: none; }

.sci-course-page { background: #fff; }
.sci-course-hero { position: relative; overflow: hidden; background: linear-gradient(135deg,var(--sci-slate-900),var(--sci-blue-900)); color: #fff; padding: 38px 0 70px; }
.sci-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; color: #cbd5e1; font-size: 14px; }
.sci-breadcrumb a { color: #dbeafe; text-decoration: none; }
.sci-course-hero__grid { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 42px; align-items: start; }
.sci-course-badges, .sci-course-meta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.sci-course-badges span, .sci-course-meta-row span { border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; padding: 8px 12px; font-size: 13px; font-weight: 800; }
.sci-course-copy h1 { max-width: 800px; margin: 22px 0 16px; font-size: 54px; line-height: 1.04; font-weight: 900; }
.sci-course-copy p { max-width: 760px; color: #dbeafe; font-size: 18px; line-height: 1.75; }
.sci-course-progress { max-width: 440px; margin-top: 26px; }
.sci-course-progress div { display: flex; align-items: baseline; gap: 10px; }
.sci-course-progress strong { font-size: 30px; }
.sci-course-progress span { color: #bfdbfe; }
.sci-course-progress i { display: block; height: 10px; margin-top: 10px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.2); }
.sci-course-progress em { display: block; height: 100%; background: linear-gradient(90deg,#fff,#fca5a5); }
.sci-course-card { overflow: hidden; border-radius: 22px; background: #fff; color: var(--sci-slate-900); box-shadow: 0 28px 70px rgba(0,0,0,.24); }
.sci-course-card img { height: 210px; }
.sci-course-card__body { display: grid; gap: 16px; padding: 22px; }
.sci-course-card__price strong, .sci-course-card__price span { display: block; }
.sci-course-card__price strong { color: var(--sci-blue-900); font-size: 30px; font-weight: 900; }
.sci-course-card__price span { color: #64748b; }
.sci-course-card ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.sci-course-card li { position: relative; padding-left: 22px; color: #475569; font-size: 14px; }
.sci-course-card li::before { content: "✓"; position: absolute; left: 0; color: var(--sci-blue-900); font-weight: 900; }
.sci-course-main { padding: 64px 0 88px; }
.sci-course-objectives { margin-bottom: 34px; }
.sci-course-objectives h2 { margin: 14px 0 22px; color: var(--sci-blue-900); font-size: 34px; font-weight: 900; }
.sci-objective-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
.sci-objective-grid article { display: flex; gap: 12px; border: 1px solid var(--sci-border); border-radius: 16px; padding: 18px; background: #fff; box-shadow: 0 16px 34px rgba(15,23,42,.06); }
.sci-objective-grid span { display: grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 999px; background: #dcfce7; color: #047857; font-weight: 900; }
.sci-objective-grid p { margin: 0; color: #334155; line-height: 1.55; font-weight: 700; }
.sci-course-content-grid { display: grid; grid-template-columns: minmax(280px,.8fr) minmax(0,1.2fr); gap: 24px; align-items: start; }
.sci-course-about { padding-bottom: 22px; }
.sci-course-about > p { margin: 0; padding: 0 24px; color: #475569; line-height: 1.8; }
.sci-module-list { display: grid; gap: 12px; padding: 18px; }
.sci-module { overflow: hidden; border: 1px solid #edf1f7; border-radius: 16px; background: #fff; }
.sci-module__head { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 14px; width: 100%; border: 0; background: linear-gradient(90deg,#f8fafc,#fff); padding: 16px; text-align: left; cursor: pointer; }
.sci-module__head > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: linear-gradient(135deg,var(--sci-blue-700),var(--sci-red)); color: #fff; font-weight: 900; }
.sci-module__head strong, .sci-module__head small { display: block; }
.sci-module__head strong { color: var(--sci-slate-900); font-size: 17px; }
.sci-module__head small { color: #64748b; }
.sci-module__lessons { display: none; border-top: 1px solid #edf1f7; }
.sci-module.is-open .sci-module__lessons { display: grid; }
.sci-module__lessons a, .sci-module__lessons .is-locked { display: grid; grid-template-columns: 32px minmax(0,1fr); gap: 12px; padding: 14px 16px; color: inherit; text-decoration: none; border-bottom: 1px solid #edf1f7; }
.sci-module__lessons a:hover { background: var(--sci-blue-50); }
.sci-module__lessons span:first-child { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: #ecfdf5; color: #047857; font-weight: 900; }
.sci-module__lessons strong, .sci-module__lessons small { display: block; }
.sci-module__lessons strong { color: var(--sci-slate-900); }
.sci-module__lessons small { color: #64748b; }
.sci-course-cta { margin-top: 52px; border-radius: 28px; background: linear-gradient(135deg,var(--sci-slate-900),var(--sci-blue-900)); color: #fff; padding: 54px 28px; text-align: center; }
.sci-course-cta span { color: #bfdbfe; font-weight: 900; }
.sci-course-cta h2 { margin: 12px 0; font-size: 40px; font-weight: 900; }
.sci-course-cta p { color: #dbeafe; }

.sci-auth { min-height: calc(100vh - 64px); display: flex; align-items: center; background: linear-gradient(180deg,#fff,var(--sci-blue-50)); padding: 48px 0 72px; }
.sci-auth__grid { display: grid; grid-template-columns: minmax(360px,.82fr) minmax(0,1fr); align-items: center; gap: 56px; }
.sci-auth-card { border-radius: 22px; padding: 32px; }
.sci-auth-icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 999px; background-color: var(--sci-blue-900); background-image: linear-gradient(135deg,var(--sci-blue-900),var(--sci-blue-700)); color: #fff; font-weight: 900; }
.sci-auth-card h1 { margin: 0; color: var(--sci-blue-900); text-align: center; font-size: 30px; font-weight: 900; }
.sci-auth-card > p { color: #64748b; text-align: center; }
.sci-auth-form { display: grid; gap: 16px; margin-top: 22px; }
.sci-auth-form p { display: grid; gap: 7px; margin: 0; }
.sci-auth-form label { color: var(--sci-blue-900); font-size: 14px; font-weight: 900; }
.sci-auth-form .helptext, .sci-auth-form ul { color: #64748b; font-size: 12px; }
.sci-auth-separator { display: flex; align-items: center; gap: 12px; margin: 24px 0 16px; color: #64748b; font-size: 12px; }
.sci-auth-separator::before, .sci-auth-separator::after { content: ""; height: 1px; flex: 1; background: #e2e8f0; }
.sci-demo-accounts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.sci-demo-accounts button { border: 1px solid var(--sci-border); border-radius: 999px; background: var(--sci-blue-50); color: var(--sci-blue-900); min-height: 34px; padding: 0 12px; font-weight: 900; cursor: pointer; }
.sci-auth-link { margin-top: 22px; color: #64748b; text-align: center; }
.sci-auth-link a { color: var(--sci-blue-900); font-weight: 900; }
.sci-auth-promo h2 { margin-top: 18px; font-size: 46px; }
.sci-auth-promo figure { position: relative; margin: 34px 0 0; border-radius: 24px; overflow: hidden; box-shadow: 0 24px 60px rgba(15,23,42,.16); }
.sci-auth-promo figure img { height: 320px; }
.sci-auth-promo figcaption { position: absolute; left: 18px; bottom: 18px; border-radius: 16px; background: #fff; padding: 14px 16px; box-shadow: 0 18px 40px rgba(15,23,42,.16); }
.sci-auth-promo figcaption strong, .sci-auth-promo figcaption span { display: block; }
.sci-auth-promo figcaption strong { color: var(--sci-blue-900); font-size: 22px; }
.sci-auth-promo figcaption span { color: #64748b; font-size: 13px; }
.sc-lesson-hero, .lesson-author-hero { background: linear-gradient(135deg,var(--sci-blue-900),var(--sci-blue-700),var(--sci-red)) !important; color: #fff !important; }
.sc-lesson-hero .sc-eyebrow, .lesson-author-hero .eyebrow { color: #fecaca !important; }
.lesson-render h1, .lesson-render h2, .lesson-render h3 { color: var(--sci-blue-900); }

@media (max-width: 1180px) {
  .sci-level-nav { gap: 14px; }
  .sci-hero__grid, .sci-demo-grid, .sci-showcase, .sci-auth__grid, .sci-course-hero__grid, .sci-catalog-hero, .sci-course-content-grid { grid-template-columns: 1fr; }
  .sci-hero-image, .sci-showcase__image { min-height: 340px; }
  .sci-catalog-preview { display: none; }
  .sci-feature-grid, .sci-price-grid, .sci-objective-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .sci-filter-panel { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 920px) {
  .sci-level-nav { display: none; }
  .sci-burger { display: inline-grid; place-items: center; }
  .sci-mobile { display: grid; gap: 4px; }
  .sci-header__actions .sci-login, .sci-header__actions .sci-register, .sci-header__actions .cc-profile { display: none; }
  .sci-hero__copy h1, .sci-course-copy h1 { font-size: 42px; }
  .sci-section-title h2, .sci-demo-grid h2, .sci-showcase h2, .sci-auth-promo h2, .sci-course-cta h2, .sci-success h2 { font-size: 32px; }
  .sci-stats-grid, .sci-step-grid, .sci-testimonial-grid, .sci-faq-list, .sci-student-grid, .sci-creator-metrics, .sci-course-grid { grid-template-columns: 1fr; }
  .sci-dash-hero, .sci-creator-hero { flex-direction: column; }
  .sci-dash-quickstats { flex-wrap: wrap; }
  .sci-footer__inner { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .sci-container { width: min(100% - 24px,1280px); }
  .sci-hero__grid, .sci-section, .sci-course-main { padding-top: 42px; padding-bottom: 52px; }
  .sci-hero__copy h1, .sci-course-copy h1 { font-size: 34px; }
  .sci-hero__copy > p, .sci-section-title p:not(.sci-eyebrow), .sci-demo-grid p, .sci-showcase p, .sci-auth-promo p { font-size: 16px; }
  .sci-hero-image { height: 300px; }
  .sci-float-card { position: static; margin-top: 10px; }
  .sci-feature-grid, .sci-price-grid, .sci-objective-grid, .sci-filter-panel, .sci-catalog--dashboard .sci-filter-panel { grid-template-columns: 1fr; }
  .sci-filter-submit { width: 100%; }
  .sci-course-progress-item { grid-template-columns: 48px minmax(0,1fr); }
  .sci-mini-progress { grid-column: 1 / -1; }
  .sci-success__stats { flex-direction: column; gap: 22px; }
  .sci-footer__inner { grid-template-columns: 1fr; }
  .sci-auth-card, .sci-catalog-hero, .sci-dash-hero { padding: 22px; }
}

/* Contrast hardening after browser audit */
.sci-btn--primary {
  background-color: var(--sci-blue-900);
  background-image: linear-gradient(90deg, var(--sci-blue-900), var(--sci-blue-700), var(--sci-blue-900));
}

.sci-stats-band,
.sci-success,
.sci-dash-hero,
.sci-course-hero,
.sc-lesson-hero,
.lesson-author-hero {
  background-color: var(--sci-blue-900) !important;
}

.sci-app-sidebar .cc-app-nav__label {
  color: #475569 !important;
}

.sci-app-sidebar .cc-app-nav__link span,
.sci-app-sidebar .cc-app-nav__link.is-active span,
.sci-app-sidebar .cc-app-nav__link:hover span {
  color: var(--sci-blue-900) !important;
}

.sci-app-topbar .cc-app-topbar__left span {
  color: #475569 !important;
}

.sci-dash-hero__copy span,
.sci-dash-quickstats span {
  color: #fff !important;
}

.sci-course-badges span,
.sci-course-meta-row span {
  background: rgba(7, 22, 72, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.sc-lesson-hero .sc-eyebrow,
.lesson-author-hero .eyebrow {
  color: #fff !important;
}

.cc-profile__identity strong,
.cc-app-profile__text strong {
  display: block;
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sci-course-copy h1,
.sci-dash-hero h1,
.sc-lesson-hero h1,
.lesson-author-hero h1 {
  color: #fff !important;
}

.sci-course-copy p,
.sci-course-progress span,
.sci-dash-hero__copy p,
.sc-lesson-hero span,
.lesson-author-hero p {
  color: #dbeafe !important;
}

.sci-course-copy .sci-course-meta-row span,
.sci-course-copy .sci-course-badges span {
  color: #fff !important;
}

.sc-back-link {
  background: rgba(7, 22, 72, 0.72) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
}

.sc-profile-trigger {
  min-width: 260px;
}

.cc-profile__identity {
  max-width: 230px !important;
}

.sci-public-main .sci-course-copy h1,
.sci-app-main .sci-dash-hero h1,
.sci-app-main .sc-lesson-hero h1,
.sci-app-main .lesson-author-hero h1 {
  color: #fff !important;
}

.sci-public-main .sci-course-copy p,
.sci-app-main .sci-dash-hero__copy p,
.sci-app-main .sci-dash-hero__copy span,
.sci-app-main .sci-dash-quickstats span,
.sci-app-main .sc-lesson-hero span,
.sci-app-main .lesson-author-hero p {
  color: #dbeafe !important;
}

.sci-float-card__icon {
  background-color: var(--sci-blue-900);
}

.sci-stats-grid,
.sci-stats-grid article {
  color: #fff !important;
}

.sci-course-summary-card header span,
.sci-auth-icon,
.cc-profile__avatar,
.sci-subject-icon {
  background-color: var(--sci-blue-900) !important;
}

.sci-dash-quickstats article {
  background: rgba(7, 22, 72, 0.5) !important;
}

.sci-dash-quickstats strong,
.sci-dash-quickstats span {
  color: #fff !important;
}

@media (max-width: 980px) {
  .cc-app-sidebar:not(.is-open) {
    visibility: hidden;
    pointer-events: none;
  }
}

@media (max-width: 640px) {
  .sci-showcase__mini {
    right: 8px;
    bottom: -18px;
    width: min(170px, 44vw);
  }

  .sci-showcase__mini img {
    height: 116px;
  }

  .sci-compare table {
    min-width: 0;
    table-layout: fixed;
  }

  .sci-compare th,
  .sci-compare td {
    padding: 9px 5px;
    font-size: 11px;
  }
}

/* Home animation layer ported from the original Sciences Claires frontend */
@keyframes sci-fade-in-up {
  from { opacity: 0; transform: translate3d(0, 30px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes sci-fade-in-left {
  from { opacity: 0; transform: translate3d(-30px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes sci-fade-in-right {
  from { opacity: 0; transform: translate3d(30px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes sci-scale-in {
  from { opacity: 0; transform: scale(.94); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes sci-gradient-x {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes sci-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -12px, 0); }
}

@keyframes sci-float-rotate {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(0, -10px, 0) rotate(4deg); }
}

@keyframes sci-bounce-subtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes sci-pulse-ring {
  from { transform: scale(1); opacity: .48; }
  to { transform: scale(1.62); opacity: 0; }
}

@keyframes sci-pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.28); opacity: .68; }
}

@keyframes sci-shimmer {
  from { transform: rotate(45deg) translateX(-120%); }
  to { transform: rotate(45deg) translateX(120%); }
}

.sci-home--animated {
  position: relative;
  background:
    radial-gradient(circle at 18% 16%, rgba(220, 38, 38, .08), transparent 28%),
    radial-gradient(circle at 82% 20%, rgba(29, 78, 216, .08), transparent 30%),
    linear-gradient(180deg, #fff 0%, #fff 64%, var(--sci-blue-50) 100%);
}

.sci-home--animated [data-sci-reveal] {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition:
    opacity var(--sci-duration, 720ms) cubic-bezier(.25, .1, .25, 1) var(--sci-delay, 0ms),
    transform var(--sci-duration, 720ms) cubic-bezier(.25, .1, .25, 1) var(--sci-delay, 0ms);
  will-change: opacity, transform;
}

.sci-home--animated [data-sci-reveal="fade-left"] { transform: translate3d(-24px, 0, 0); }
.sci-home--animated [data-sci-reveal="fade-right"] { transform: translate3d(24px, 0, 0); }
.sci-home--animated [data-sci-reveal="scale"] { transform: scale(.95); }
.sci-home--animated [data-sci-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.sci-home--animated .sci-eyebrow {
  animation: sci-fade-in-up .7s ease both;
}

.sci-home--animated .sci-hero {
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(10px);
}

.sci-home--animated .sci-hero__copy h1 strong,
.sci-home--animated .sci-section-title h2 span,
.sci-home--animated .sci-demo-grid h2 span,
.sci-home--animated .sci-showcase h2 span,
.sci-home--animated .sci-testimonials h2 span {
  color: transparent !important;
  background: linear-gradient(135deg, var(--sci-blue-900) 0%, var(--sci-red) 48%, var(--sci-blue-900) 100%);
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: sci-gradient-x 4s ease infinite;
}

.sci-home--animated .sci-hero__actions .sci-btn--primary,
.sci-home--animated .sci-price-card .sci-btn--primary,
.sci-home--animated .sci-notion-panel .sci-btn--primary,
.sci-home--animated .sci-btn--animated {
  position: relative;
  overflow: hidden;
  background-size: 220% 100%;
  animation: sci-gradient-x 3s ease infinite;
}

.sci-home--animated .sci-btn--primary::after,
.sci-home--animated .sci-register::after {
  content: "";
  position: absolute;
  inset: -80%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: rotate(45deg) translateX(-120%);
}

.sci-home--animated .sci-btn--primary:hover::after,
.sci-home--animated .sci-register:hover::after {
  animation: sci-shimmer .7s ease;
}

.sci-home--animated .sci-btn--primary:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 18px 38px rgba(30, 58, 138, .3);
}

.sci-home--animated .sci-btn--outline:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(30, 58, 138, .12);
}

.sci-home--animated .sci-hero__actions .sci-btn--primary span[aria-hidden] {
  animation: sci-bounce-subtle 2s ease-in-out infinite;
}

.sci-home--animated .sci-hero-image {
  transition: transform .7s ease, box-shadow .7s ease;
}

.sci-home--animated .sci-hero-image:hover {
  transform: translateY(-4px);
  box-shadow: 0 36px 82px rgba(15, 23, 42, .26);
}

.sci-home--animated .sci-hero-image > img,
.sci-home--animated .sci-feature-card img,
.sci-home--animated .sci-showcase__image > img {
  transition: transform .7s ease;
}

.sci-home--animated .sci-hero-image:hover > img,
.sci-home--animated .sci-feature-card:hover img,
.sci-home--animated .sci-showcase__image:hover > img {
  transform: scale(1.055);
}

.sci-home--animated .sci-float-card {
  animation: sci-float 4s ease-in-out infinite;
}

.sci-home--animated .sci-float-card--rating {
  animation-delay: .5s;
}

.sci-home--animated .sci-stats-band {
  position: relative;
  overflow: hidden;
  background-size: 220% 220%;
  animation: sci-gradient-x 3.8s ease infinite;
}

.sci-home--animated .sci-stats-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .08), transparent);
  transform: translateX(-100%);
  animation: sci-shimmer 5s ease-in-out infinite;
}

.sci-home--animated .sci-stats-grid {
  position: relative;
  z-index: 1;
}

.sci-home--animated .sci-stats-grid strong,
.sci-home--animated .sci-success__stats strong {
  display: block;
  transition: transform .3s ease;
}

.sci-home--animated .sci-stats-grid article:hover strong,
.sci-home--animated .sci-success__stats article:hover strong {
  transform: scale(1.1);
}

.sci-home--animated .sci-feature-card,
.sci-home--animated .sci-price-card,
.sci-home--animated .sci-testimonial-grid article,
.sci-home--animated .sci-faq-list article,
.sci-home--animated .sci-notion-card {
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.sci-home--animated .sci-feature-card:hover,
.sci-home--animated .sci-price-card:hover,
.sci-home--animated .sci-testimonial-grid article:hover,
.sci-home--animated .sci-faq-list article:hover,
.sci-home--animated .sci-notion-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--sci-red);
  box-shadow: 0 22px 46px rgba(30, 58, 138, .16);
}

.sci-home--animated .sci-feature-card {
  position: relative;
}

.sci-home--animated .sci-feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  height: 132px;
  pointer-events: none;
  background: linear-gradient(to top, rgba(255, 255, 255, .98), rgba(255, 255, 255, .52), transparent);
}

.sci-home--animated .sci-feature-card > div {
  position: relative;
  z-index: 2;
  margin-top: -24px;
  border-radius: 18px 18px 0 0;
  background: #fff;
}

.sci-home--animated .sci-feature-card h3 i {
  animation: sci-pulse-dot 1.7s ease-in-out infinite;
}

.sci-home--animated .sci-notion-card {
  animation: sci-float-rotate 5.5s ease-in-out infinite;
}

.sci-home--animated .sci-notion-tabs button,
.sci-home--animated .sci-billing-toggle button,
.sci-home--animated .sci-demo-accounts button,
.sci-home--animated .sci-choice-list button {
  transition: background .24s ease, color .24s ease, transform .24s ease, box-shadow .24s ease;
}

.sci-home--animated .sci-notion-tabs button:hover,
.sci-home--animated .sci-billing-toggle button:hover,
.sci-home--animated .sci-demo-accounts button:hover,
.sci-home--animated .sci-choice-list button:hover {
  transform: translateY(-1px);
}

.sci-home--animated .sci-showcase__image {
  transition: transform .4s ease;
}

.sci-home--animated .sci-showcase__image:hover {
  transform: translateY(-4px);
}

.sci-home--animated .sci-step-grid .sci-step-icon::before {
  content: none;
}

.sci-home--animated .sci-step-grid article:hover .sci-step-halo {
  animation: sci-pulse-ring 1.5s ease-out infinite;
}

.sci-home--animated .sci-step-grid article:hover .sci-step-icon strong {
  transform: scale(1.1);
}

.sci-home--animated .sci-compare tr {
  transition: transform .2s ease, box-shadow .2s ease;
}

.sci-home--animated .sci-compare tbody tr:hover {
  transform: translateX(4px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, .08);
}

.sci-home--animated .sci-success {
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(120deg, var(--sci-blue-900), var(--sci-blue-800), var(--sci-blue-900));
  background-size: 220% 220%;
  animation: sci-gradient-x 5s ease infinite;
}

.sci-home--animated .sci-success .sci-container {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .sci-home--animated *,
  .sci-home--animated *::before,
  .sci-home--animated *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  .sci-home--animated [data-sci-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* Product foundations: navigation, campaigns, family, blog and lesson media */
.sci-nav-direct {
  color: #1e3a8a;
  text-decoration: none;
}

[x-cloak] { display: none !important; }

.sci-nav-group--cascade > button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 7px;
  padding: 0 2px;
}

.sci-nav-group--cascade > button:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 5px;
  border-radius: 3px;
}

.sci-nav-chevron,
.sci-cascade-menu svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sci-nav-chevron {
  color: #64748b;
  transition: transform .18s ease, color .18s ease;
}

.sci-nav-group--cascade > button[aria-expanded="true"] {
  color: #dc2626;
}

.sci-nav-group--cascade > button[aria-expanded="true"] .sci-nav-chevron {
  color: #dc2626;
  transform: rotate(180deg);
}

.sci-nav-group--cascade > .sci-cascade-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 90;
  display: block;
  width: 238px;
  overflow: visible;
  border: 1px solid #dbe3f0;
  border-radius: 8px;
  background: #fff;
  padding: 7px;
  box-shadow: 0 18px 42px rgba(15, 37, 95, .14);
  transform: translateX(-50%);
}

.sci-nav-group--cascade > .sci-cascade-menu::before {
  position: absolute;
  inset: -11px 0 auto;
  height: 12px;
  content: "";
}

.sci-cascade-menu__primary {
  display: grid;
  align-content: start;
  gap: 2px;
}

.sci-cascade-menu__item {
  position: relative;
}

.sci-nav-group .sci-cascade-menu__category {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-radius: 6px;
  padding: 8px 11px;
  color: #334155;
  text-decoration: none;
}

.sci-cascade-menu__category > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.sci-cascade-menu__primary strong {
  color: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
}

.sci-cascade-menu__primary small {
  overflow: hidden;
  color: #64748b;
  font-size: 11px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sci-cascade-menu__category > svg {
  flex: 0 0 16px;
  color: #94a3b8;
}

.sci-nav-group .sci-cascade-menu__category:hover,
.sci-nav-group .sci-cascade-menu__category:focus-visible,
.sci-nav-group .sci-cascade-menu__category.is-active {
  outline: none;
  background: #eef4ff;
  color: #1e3a8a;
}

.sci-nav-group .sci-cascade-menu__category.is-active > svg {
  color: #dc2626;
}

.sci-cascade-submenu {
  position: absolute;
  top: 0;
  left: calc(100% + 7px);
  z-index: 1;
  display: grid;
  width: 250px;
  align-content: start;
  gap: 12px;
  border: 1px solid #dbe3f0;
  border-radius: 8px;
  background: #fff;
  padding: 8px 15px 15px;
  box-shadow: 0 18px 42px rgba(15, 37, 95, .14);
}

.sci-cascade-submenu header {
  display: grid;
  gap: 4px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 11px;
}

.sci-cascade-submenu header strong {
  color: #0f255f;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
}

.sci-cascade-submenu header p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.sci-cascade-submenu > div {
  display: grid;
  gap: 2px;
}

.sci-nav-group .sci-cascade-submenu > div > a {
  border-radius: 6px;
  padding: 8px 9px;
  color: #334155;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
}

.sci-nav-group .sci-cascade-submenu > div > a:hover,
.sci-nav-group .sci-cascade-submenu > div > a:focus-visible {
  outline: none;
  background: #f1f5f9;
  color: #1e3a8a;
}

.sci-nav-group .sci-cascade-menu__all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  border-top: 1px solid #e2e8f0;
  border-radius: 0;
  padding: 11px 2px 1px;
  color: #1e3a8a;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
}

.sci-nav-group .sci-cascade-menu__all:hover {
  background: transparent;
  color: #dc2626;
}

.sci-mobile__group {
  margin-top: 8px;
  border-top: 1px solid #e2e8f0;
  padding: 12px 12px 4px;
  color: #dc2626;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sci-mobile-tree {
  border-top: 1px solid #e2e8f0;
}

.sci-mobile-tree summary {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  color: #0f255f;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.sci-mobile-tree summary::-webkit-details-marker { display: none; }
.sci-mobile-tree summary::after { content: "+"; color: #64748b; font-size: 20px; font-weight: 500; }
.sci-mobile-tree[open] > summary::after { content: "−"; }
.sci-mobile-tree > div { display: grid; gap: 3px; padding: 0 8px 8px; }
.sci-mobile-tree > div > details { border-radius: 6px; background: #f8fafc; }
.sci-mobile-tree > div > details > summary { min-height: 42px; color: #334155; font-size: 14px; }
.sci-mobile-tree > div > details > div { display: grid; padding: 0 8px 8px 18px; }
.sci-mobile-tree a { min-height: 40px; padding: 9px 10px !important; }

/* Django feedback floats above the page instead of changing its geometry. */
.sci-toast-stack {
  position: fixed;
  top: 82px;
  right: clamp(12px, 2.5vw, 32px);
  z-index: 150;
  display: grid;
  width: min(430px, calc(100vw - 24px));
  gap: 10px;
  pointer-events: none;
}

.sci-toast {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 30px;
  align-items: start;
  gap: 11px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  border-left: 4px solid #2563eb;
  border-radius: 8px;
  background: #fff;
  padding: 13px 11px 13px 13px;
  color: #334155;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .18);
  pointer-events: auto;
}

.sci-toast__icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: #e8eefc;
  color: #1e3a8a;
  font-size: 15px;
  font-weight: 850;
}

.sci-toast__icon::before { content: "i"; }
.sci-toast__content { display: grid; min-width: 0; gap: 2px; }
.sci-toast__content strong { color: #0f255f; font-size: 13px; font-weight: 850; }
.sci-toast__content p { margin: 0; color: #475569; font-size: 13px; line-height: 1.45; }

.sci-toast__close {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #64748b;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}

.sci-toast__close:hover,
.sci-toast__close:focus-visible { outline: none; background: #f1f5f9; color: #0f255f; }
.sci-toast--success { border-left-color: #16a34a; }
.sci-toast--success .sci-toast__icon { background: #dcfce7; color: #15803d; }
.sci-toast--success .sci-toast__icon::before { content: "✓"; }
.sci-toast--warning { border-left-color: #ea580c; }
.sci-toast--warning .sci-toast__icon { background: #ffedd5; color: #c2410c; }
.sci-toast--warning .sci-toast__icon::before { content: "!"; }
.sci-toast--developer { border-left-color: #2563eb; background: #f8fbff; }
.sci-toast--developer .sci-toast__icon { background: #dbeafe; color: #1d4ed8; }
.sci-toast--developer .sci-toast__icon::before { content: "</>"; font-size: 10px; }
.sci-toast--error { border-left-color: #dc2626; }
.sci-toast--error .sci-toast__icon { background: #fee2e2; color: #b91c1c; }
.sci-toast--error .sci-toast__icon::before { content: "!"; }

@media (max-width: 720px) {
  .sci-toast-stack { top: 76px; right: 12px; left: 12px; width: auto; }
}

.cc-notifications {
  position: relative;
}

.cc-notifications__trigger {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #dbe3f0;
  border-radius: 50%;
  background: #fff;
  color: #1e3a8a;
  font-weight: 900;
}

.cc-notifications__trigger b {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #dc2626;
  color: #fff;
  font-size: 10px;
}

.cc-notifications__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 80;
  width: min(380px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid #dbe3f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(15, 23, 42, .16);
}

.cc-notifications__panel header,
.cc-notifications__panel > a {
  display: grid;
  gap: 3px;
  border-bottom: 1px solid #eef2f7;
  padding: 13px 15px;
  text-decoration: none;
}

.cc-notifications__panel header {
  grid-template-columns: 1fr auto;
  color: #0f255f;
}

.cc-notifications__panel > a strong { color: #0f255f; font-size: 13px; }
.cc-notifications__panel > a span { color: #475569; font-size: 12px; line-height: 1.45; }
.cc-notifications__panel > a small { color: #94a3b8; font-size: 11px; }
.cc-notifications__panel > a.is-parent { border-left: 3px solid #dc2626; }

.cc-notifications__panel form {
  padding: 10px;
}

.cc-notifications__panel form button {
  width: 100%;
  border: 0;
  background: transparent;
  color: #1e3a8a;
  font-size: 12px;
  font-weight: 800;
}

.site-campaign-stack {
  display: grid;
  gap: 8px;
}

.site-campaign-stack--dashboard {
  padding: 12px clamp(16px, 3vw, 36px) 0;
}

.site-campaign {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid #bfd2fa;
  border-left: 4px solid #2563eb;
  border-radius: 8px;
  background: #eff6ff;
  padding: 13px 16px;
  color: #173478;
}

.site-campaign > div { display: grid; gap: 2px; }
.site-campaign strong { font-size: 14px; }
.site-campaign span { color: #475569; font-size: 13px; }
.site-campaign a { color: inherit; font-size: 13px; font-weight: 800; white-space: nowrap; }
.site-campaign.is-promotion { border-color: #fecaca; border-left-color: #dc2626; background: #fff1f2; color: #9f1239; }
.site-campaign.is-warning { border-color: #fed7aa; border-left-color: #ea580c; background: #fff7ed; color: #9a3412; }
.site-campaign.is-success { border-color: #bbf7d0; border-left-color: #16a34a; background: #f0fdf4; color: #166534; }

.sci-admin-subsection {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.sci-admin-subsection + .sci-admin-subsection {
  border-top: 1px solid #e7edf6;
}

.sci-admin-subsection h3 {
  color: #0f255f;
  font-size: 17px;
  font-weight: 850;
}

.sci-admin-repeat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 22px;
}

.sci-admin-subsection .sci-admin-repeat-grid {
  padding: 0;
}

.sci-admin-repeat-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 12px;
  border: 1px solid #dbe3f0;
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.sci-admin-repeat-card .sci-admin-field--full,
.sci-admin-repeat-card > .form-error-box,
.sci-admin-repeat-card > .sci-btn {
  grid-column: 1 / -1;
}

.sci-admin-checks {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

/* Family workspace */
.family-space {
  display: grid;
  gap: 16px;
  width: 100%;
  margin: 0;
}

.family-hero {
  border-left: 5px solid #dc2626;
  border-radius: 8px;
  background: #fff;
  padding: clamp(22px, 2.4vw, 34px);
  box-shadow: 0 12px 32px rgba(15, 37, 95, .07);
}

.family-hero h1 {
  max-width: 760px;
  margin: 7px 0;
  color: #0f255f;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  font-weight: 850;
  letter-spacing: 0;
}

.family-hero p { max-width: 720px; color: #64748b; }

.family-link-panel {
  display: grid;
  grid-template-columns: 1fr minmax(360px, .75fr);
  align-items: center;
  gap: 24px;
  border: 1px solid #dbe3f0;
  border-radius: 8px;
  background: #fff;
  padding: 20px;
}

.family-link-panel > div { display: flex; align-items: center; gap: 14px; }
.family-link-panel__icon { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 50%; background: #e8eefc; color: #1e3a8a; font-size: 24px; }
.family-link-panel strong { color: #0f255f; }
.family-link-panel p { color: #64748b; font-size: 13px; }
.family-link-panel form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }

.family-link-panel form.family-create-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.family-create-panel {
  overflow: hidden;
  border: 1px solid #dbe3f0;
  border-radius: 8px;
  background: #fff;
}

.family-create-panel__header {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #e7edf6;
  padding: 14px 18px;
}

.family-create-panel__header > div { display: grid; gap: 2px; }
.family-create-panel__header strong { color: #0f255f; font-size: 16px; }
.family-create-panel__header p { margin: 0; color: #64748b; font-size: 14px; line-height: 1.45; }

.family-create-panel .family-create-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 12px;
  padding: 16px 18px;
}

.family-form-error {
  grid-column: 1 / -1;
  border-left: 3px solid #dc2626;
  background: #fff1f2;
  padding: 9px 11px;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 700;
}

.family-create-form label {
  display: grid;
  min-width: 0;
  gap: 6px;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.family-create-form label span {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.family-create-form label small {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
}

.family-create-form label .family-field-error {
  display: block;
  min-height: 0;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.family-create-form label .family-field-error:empty { display: none; }

.family-create-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  padding: 0 11px;
  color: #0f255f;
  font-size: 14px;
  outline: none;
}

.family-create-form input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px #dbeafe;
}

.family-create-form input[aria-invalid="true"] {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px #fee2e2;
}

.family-create-form__school { grid-column: span 2; }

.family-create-form__footer {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #e7edf6;
  margin-top: 4px;
  padding-top: 14px;
}

.family-create-form__footer .sci-btn { flex: 0 0 auto; }

.family-data-notice {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.family-existing-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, .8fr);
  align-items: center;
  gap: 18px;
  border-top: 1px solid #e7edf6;
  background: #f8fafc;
  padding: 16px 18px;
}

.family-existing-link > div { display: flex; align-items: center; gap: 12px; }
.family-existing-link > div > div { display: grid; gap: 2px; }
.family-existing-link strong { color: #0f255f; font-size: 15px; }
.family-existing-link p { margin: 0; color: #64748b; font-size: 14px; line-height: 1.45; }

.family-existing-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
}

.family-existing-form label {
  grid-column: 1 / -1;
  color: #334155;
  font-size: 13px;
  font-weight: 750;
}

.family-existing-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  padding: 0 11px;
  color: #0f255f;
  font-size: 14px;
  text-transform: uppercase;
  outline: none;
}

.family-existing-form input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px #dbeafe; }
.family-existing-form .sci-btn {
  min-height: 42px;
  border-radius: 6px;
  background: #1e3a8a;
  color: #fff;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(30, 58, 138, .16);
}
.family-existing-form .sci-btn:hover { background: #172f78; }

.family-consent-list,
.family-pending-list {
  overflow: hidden;
  border: 1px solid #dbe3f0;
  border-radius: 8px;
  background: #fff;
}

.family-consent-list > header,
.family-pending-list > header {
  border-bottom: 1px solid #e7edf6;
  padding: 18px 20px;
}

.family-consent-list > header h2,
.family-pending-list > header h2 {
  margin: 2px 0 4px;
  color: #0f255f;
  font-size: 24px;
  font-weight: 850;
}

.family-consent-list > header p:not(.sci-eyebrow),
.family-pending-list > header p:not(.sci-eyebrow) {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.family-consent-card,
.family-pending-list > article {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
}

.family-consent-card + .family-consent-card,
.family-pending-list > article + article { border-top: 1px solid #e7edf6; }

.family-consent-card > span,
.family-pending-list > article > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: #1e3a8a;
  color: #fff;
  font-size: 18px;
  font-weight: 850;
}

.family-consent-card > div:not(.family-consent-card__actions),
.family-pending-list > article > div { display: grid; min-width: 0; gap: 3px; }
.family-consent-card strong,
.family-pending-list > article strong { color: #0f255f; font-size: 16px; }
.family-consent-card small { color: #64748b; font-size: 14px; }
.family-consent-card p,
.family-pending-list > article p { margin: 0; color: #64748b; font-size: 14px; line-height: 1.45; }

.family-consent-card__actions { display: flex; align-items: center; gap: 8px; }
.family-action-button,
.family-pending-list > article button {
  min-height: 40px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  padding: 0 15px;
  color: #1e3a8a;
  font-size: 14px;
  font-weight: 800;
}
.family-action-button.is-primary { border-color: #1e3a8a; background: #1e3a8a; color: #fff; }
.family-action-button.is-secondary:hover,
.family-pending-list > article button:hover { border-color: #dc2626; color: #dc2626; }
.family-action-button.is-primary:hover { background: #172f78; }

.family-managed-card {
  display: grid;
  gap: 16px;
  border: 1px solid #dbe3f0;
  border-radius: 8px;
  background: #fff;
  padding: 22px;
}

.family-managed-card > div,
.family-managed-card article { display: flex; align-items: center; gap: 14px; }
.family-managed-card p,
.family-managed-card small { color: #64748b; font-size: 13px; }
.family-managed-card article { border-top: 1px solid #e7edf6; padding-top: 16px; }
.family-managed-card article > span { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; background: #1e3a8a; color: #fff; font-weight: 800; }
.family-managed-card article > div { display: grid; }

.family-children { display: grid; gap: 18px; }

.family-child {
  overflow: hidden;
  border: 1px solid #dbe3f0;
  border-radius: 8px;
  background: #fff;
}

.family-child > header {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid #e7edf6;
  padding: 18px 20px;
}

.family-child > header > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: #1e3a8a;
  color: #fff;
  font-size: 18px;
  font-weight: 850;
}

.family-child h2 { margin: 1px 0; color: #0f255f; font-size: 21px; font-weight: 850; }
.family-child header small, .family-child header p { color: #64748b; font-size: 14px; line-height: 1.4; }
.family-child header form button { border: 0; background: transparent; color: #dc2626; font-size: 12px; font-weight: 800; }

.family-child-data {
  margin: 0 20px;
  border-bottom: 1px solid #e7edf6;
  padding: 12px 0;
}

.family-child-data summary {
  cursor: pointer;
  color: #1e3a8a;
  font-size: 14px;
  font-weight: 750;
}

.family-child-data summary:focus-visible {
  border-radius: 4px;
  outline: 3px solid #bfdbfe;
  outline-offset: 3px;
}

.family-child-data[open] summary { margin-bottom: 12px; }

.family-child-data form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 10px;
}

.family-child-data label {
  display: grid;
  min-width: 0;
  gap: 5px;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

.family-child-data input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  padding: 0 11px;
  color: #0f255f;
  font-size: 14px;
  outline: none;
}

.family-child-data input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px #dbeafe;
}

.family-child-data .sci-btn {
  min-height: 42px;
  border: 1px solid #1e3a8a;
  border-radius: 6px;
  background: #1e3a8a;
  padding-inline: 16px;
  color: #fff;
  font-weight: 800;
}

.family-child-password > p {
  margin: 10px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.account-security {
  display: grid;
  gap: 20px;
  width: 100%;
  margin: 0 0 48px;
}

.account-security__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.account-security__panel {
  display: grid;
  align-content: start;
  gap: 18px;
  border: 1px solid #dbe3f0;
  border-radius: 8px;
  background: #fff;
  padding: 20px;
}

.account-security__panel--wide { grid-column: 1 / -1; }
.account-security__panel > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.account-security__panel > header > div { display: flex; align-items: center; gap: 12px; }
.account-security__panel h2 { margin: 0; color: #0f255f; font-size: 18px; font-weight: 850; }
.account-security__panel p { margin: 3px 0 0; color: #64748b; font-size: 13px; }
.account-security__icon { display: grid; flex: 0 0 40px; width: 40px; height: 40px; place-items: center; border-radius: 50%; background: #e8eefc; color: #1e3a8a; font-weight: 850; }
.account-security__status { border-radius: 4px; background: #eef2f7; padding: 5px 8px; color: #64748b; font-size: 11px; font-weight: 800; white-space: nowrap; }
.account-security__status.is-success { background: #dcfce7; color: #166534; }
.account-security__status.is-warning { background: #fff7ed; color: #9a3412; }
.account-security__panel > .sci-btn,
.account-security__panel > form:not(.account-password-form) .sci-btn {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  justify-self: start;
  border: 1px solid #1e3a8a;
  border-radius: 6px;
  background: #fff;
  padding: 0 14px;
  color: #1e3a8a;
  font-weight: 800;
  text-decoration: none;
}

.account-password-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
}

.account-password-form label { display: grid; gap: 6px; color: #334155; font-size: 12px; font-weight: 750; }
.account-password-form input { min-height: 44px; border: 1px solid #cbd5e1; border-radius: 6px; padding: 0 12px; color: #0f255f; outline: none; }
.account-password-form input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px #dbeafe; }
.account-password-form small { color: #dc2626; font-weight: 650; }
.account-password-form .sci-btn { grid-column: 1 / -1; justify-self: start; }

.account-inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.account-inline-form label {
  display: grid;
  gap: 6px;
  color: #334155;
  font-size: 12px;
  font-weight: 750;
}

.account-inline-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0 12px;
  color: #0f255f;
  outline: none;
}

.account-inline-form input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px #dbeafe;
}

.account-inline-form small { color: #b91c1c; font-weight: 700; }
.account-age-panel__note { font-size: 12px !important; line-height: 1.5; }

.account-minor-protection {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid #bfdbfe;
  border-left: 5px solid #1e3a8a;
  border-radius: 8px;
  background: #fff;
  padding: 20px;
}

.account-minor-protection h2 { margin: 0; color: #0f255f; font-size: 20px; }
.account-minor-protection p { margin: 5px 0 0; color: #64748b; font-size: 14px; line-height: 1.55; }

.account-family-code__value {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid #dbe3f0;
  border-radius: 6px;
  background: #f8fafc;
  padding: 8px;
}

.account-family-code__value code {
  overflow: hidden;
  color: #1e3a8a;
  font-size: 18px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-family-code__value button,
.account-family-code__actions button {
  min-height: 36px;
  border: 1px solid #1e3a8a;
  border-radius: 6px;
  background: #fff;
  padding: 0 11px;
  color: #1e3a8a;
  font-size: 13px;
  font-weight: 800;
}

.account-family-code__actions { display: grid; gap: 10px; }
.account-family-code__actions p { margin: 0; font-size: 14px; line-height: 1.45; }
.account-family-code__actions button { min-height: 0; border: 0; padding: 0; text-decoration: underline; }

.account-danger-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid #fecaca;
  border-left: 5px solid #dc2626;
  border-radius: 8px;
  background: #fff;
  padding: 20px;
}

.account-danger-zone__copy { display: flex; align-items: flex-start; gap: 14px; }
.account-danger-zone__copy > div { display: grid; gap: 4px; }
.account-danger-zone__copy .sci-eyebrow { margin: 0; }
.account-danger-zone__copy h2 { margin: 0; color: #0f255f; font-size: 20px; font-weight: 850; }
.account-danger-zone__copy p:not(.sci-eyebrow) { max-width: 760px; margin: 0; color: #64748b; font-size: 13px; line-height: 1.55; }

.account-danger-zone__icon {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: #fee2e2;
  color: #b91c1c;
  font-weight: 900;
}

.account-danger-zone__trigger {
  flex: 0 0 auto;
  min-height: 42px;
  border: 1px solid #dc2626;
  border-radius: 6px;
  background: #fff;
  padding: 0 15px;
  color: #b91c1c;
  font-weight: 800;
}

.account-danger-zone__trigger:hover { background: #fff1f2; }

.account-delete-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 18px;
}

.account-delete-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(8, 21, 74, .55);
}

.account-delete-modal__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(540px, 100%);
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  gap: 18px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fff;
  padding: 22px;
  box-shadow: 0 24px 70px rgba(8, 21, 74, .26);
}

.account-delete-modal__dialog > header { display: grid; grid-template-columns: 40px 1fr 32px; align-items: start; gap: 12px; }
.account-delete-modal__dialog > header > span { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; background: #fee2e2; color: #b91c1c; font-weight: 900; }
.account-delete-modal__dialog h2 { margin: 2px 0 0; color: #0f255f; font-size: 24px; font-weight: 900; }
.account-delete-modal__close { display: grid; width: 32px; height: 32px; place-items: center; border: 0; border-radius: 4px; background: transparent; color: #64748b; font-size: 24px; }
.account-delete-modal__close:hover { background: #f1f5f9; color: #0f255f; }

.account-delete-modal__warning {
  border: 1px solid #fecaca;
  border-radius: 6px;
  background: #fff7f7;
  padding: 14px 16px;
  color: #7f1d1d;
  font-size: 13px;
}

.account-delete-modal__warning ul { margin: 8px 0 0; padding-left: 18px; }
.account-delete-modal__warning p { margin: 10px 0 0; font-weight: 750; }

.account-delete-form { display: grid; gap: 13px; }
.account-delete-form label { display: grid; gap: 6px; color: #334155; font-size: 12px; font-weight: 750; }
.account-delete-form input { min-height: 44px; border: 1px solid #cbd5e1; border-radius: 6px; padding: 0 12px; color: #0f255f; outline: none; }
.account-delete-form input:focus { border-color: #dc2626; box-shadow: 0 0 0 3px #fee2e2; }
.account-delete-form__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 3px; }
.account-delete-form__actions button { min-height: 42px; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; padding: 0 14px; color: #334155; font-weight: 800; }
.account-delete-form__actions .is-danger { border-color: #dc2626; background: #dc2626; color: #fff; }
.account-delete-form__actions .is-danger:disabled { cursor: not-allowed; border-color: #e2e8f0; background: #e2e8f0; color: #94a3b8; }

body.cc-app-body .cc-app-main > * {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.cc-app-body .sci-catalog--dashboard,
body.cc-app-body .blog-editor,
body.cc-app-body .lesson-media-manager {
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
}

.auth-status-page {
  display: grid;
  min-height: calc(100vh - 72px);
  place-items: center;
  background: #f3f7ff;
  padding: 48px 20px;
}

.auth-status-card {
  display: grid;
  justify-items: center;
  width: min(520px, 100%);
  gap: 12px;
  border: 1px solid #dbe3f0;
  border-radius: 8px;
  background: #fff;
  padding: 34px;
  text-align: center;
  box-shadow: 0 16px 36px rgba(15, 37, 95, .09);
}

.auth-status-card__icon { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 50%; background: #1e3a8a; color: #fff; font-size: 20px; font-weight: 850; }
.auth-status-card h1 { margin: 0; color: #0f255f; font-size: 30px; font-weight: 850; }
.auth-status-card p { margin: 0; color: #64748b; line-height: 1.55; }
.auth-status-card__hint { font-size: 13px; }
.auth-status-card > a:not(.auth-status-card__debug) { color: #1e3a8a; font-size: 13px; font-weight: 750; }
.auth-status-card__debug { border: 1px dashed #93c5fd; border-radius: 6px; background: #eff6ff; padding: 10px 12px; color: #1d4ed8; font-size: 12px; font-weight: 750; }

.family-child__progress { display: grid; gap: 8px; padding: 18px 20px 8px; }
.family-child__progress > div { display: flex; justify-content: space-between; color: #334155; font-size: 13px; }
.family-child__progress strong { color: #1e3a8a; }
.family-child__progress > i { height: 8px; overflow: hidden; border-radius: 4px; background: #e8eefc; }
.family-child__progress em { display: block; height: 100%; border-radius: inherit; background: #2563eb; }

.family-child__metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 12px 20px;
  background: #e7edf6;
}

.family-child__metrics > div { display: grid; gap: 3px; background: #f8fafc; padding: 15px; }
.family-child__metrics strong { color: #0f255f; font-size: 22px; }
.family-child__metrics span { color: #64748b; font-size: 14px; }
.family-child__courses { display: grid; gap: 8px; padding: 8px 20px 20px; }
.family-child__courses h3 { color: #0f255f; font-size: 15px; }
.family-child__courses a { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid #eef2f7; padding: 12px 0 4px; color: #1e3a8a; text-decoration: none; }
.family-child__courses a div { display: grid; gap: 2px; }
.family-child__courses a small { color: #64748b; }

.family-empty,
.student-family-code,
.family-linked-parents {
  border: 1px solid #dbe3f0;
  border-radius: 8px;
  background: #fff;
  padding: 24px;
}

.student-family-code { display: grid; justify-items: start; gap: 10px; }
.student-family-code > span { color: #64748b; font-size: 13px; font-weight: 700; }
.student-family-code > strong { color: #1e3a8a; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: clamp(30px, 6vw, 54px); letter-spacing: 0; }
.student-family-code button { border: 0; border-radius: 6px; background: #dc2626; padding: 10px 16px; color: #fff; font-weight: 800; }
.student-family-code p { color: #64748b; font-size: 13px; }
.family-linked-parents { display: grid; gap: 12px; }
.family-linked-parents h2 { color: #0f255f; font-size: 22px; font-weight: 850; }
.family-linked-parents article { display: flex; align-items: center; gap: 12px; border-top: 1px solid #eef2f7; padding-top: 12px; }
.family-linked-parents article > span { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: #e8eefc; color: #1e3a8a; font-weight: 850; }
.family-linked-parents article div { display: grid; }
.family-linked-parents small { color: #64748b; }

/* Free editorial blog */
.blog-index { background: #fff; }
.blog-index__hero { border-bottom: 1px solid #dbe3f0; background: #f3f7ff; padding: clamp(54px, 8vw, 96px) 0; }
.blog-index__hero .sci-container { display: grid; justify-items: center; text-align: center; }
.blog-index__hero .sci-eyebrow { color: #dc2626; }
.blog-index__hero h1 { max-width: 800px; margin: 8px 0 12px; color: #0f255f; font-size: clamp(38px, 6vw, 64px); line-height: 1.04; font-weight: 850; letter-spacing: 0; }
.blog-index__hero p:not(.sci-eyebrow) { max-width: 680px; color: #64748b; font-size: 17px; line-height: 1.6; }
.blog-index__hero form { display: grid; grid-template-columns: minmax(0, 380px) auto; gap: 8px; margin-top: 24px; }
.blog-index__hero input { min-height: 46px; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; padding: 0 14px; }
.blog-index__hero button { border: 0; border-radius: 6px; background: #1e3a8a; padding: 0 18px; color: #fff; font-weight: 800; }
.blog-index__body { padding-block: 36px 86px; }
.blog-categories { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 18px; }
.blog-categories a { border: 1px solid #dbe3f0; border-radius: 999px; padding: 8px 14px; color: #475569; font-size: 13px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.blog-categories a.is-active { border-color: #1e3a8a; background: #1e3a8a; color: #fff; }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.blog-card { overflow: hidden; border: 1px solid #dbe3f0; border-radius: 8px; background: #fff; }
.blog-card.is-featured { grid-column: span 2; }
.blog-card__media { display: grid; aspect-ratio: 16 / 9; place-items: center; overflow: hidden; background: #e8eefc; text-decoration: none; }
.blog-card__media img { width: 100%; height: 100%; object-fit: cover; }
.blog-card__media > span { color: #1e3a8a; font-size: 54px; font-weight: 850; }
.blog-card > div { display: grid; gap: 10px; padding: 20px; }
.blog-card > div > span { color: #dc2626; font-size: 12px; font-weight: 850; text-transform: uppercase; }
.blog-card h2 { color: #0f255f; font-size: 23px; line-height: 1.18; font-weight: 850; }
.blog-card h2 a { color: inherit; text-decoration: none; }
.blog-card p { color: #64748b; line-height: 1.6; }
.blog-card footer { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid #eef2f7; padding-top: 12px; color: #475569; font-size: 12px; }
.blog-empty { grid-column: 1 / -1; border: 1px dashed #cbd5e1; border-radius: 8px; padding: 46px; text-align: center; }

.blog-article { background: #fff; }
.blog-article__header { display: grid; justify-items: center; padding-block: clamp(50px, 8vw, 96px) 40px; text-align: center; }
.blog-article__header nav { display: flex; gap: 8px; margin-bottom: 20px; color: #64748b; font-size: 13px; }
.blog-article__header nav a { color: #1e3a8a; }
.blog-article__category { color: #dc2626; font-size: 12px; font-weight: 850; text-transform: uppercase; }
.blog-article__header h1 { max-width: 920px; margin: 12px 0; color: #0f255f; font-size: clamp(40px, 7vw, 72px); line-height: 1.03; font-weight: 850; letter-spacing: 0; }
.blog-article__header > p { max-width: 720px; color: #64748b; font-size: 19px; line-height: 1.55; }
.blog-article__meta { display: flex; align-items: center; gap: 10px; margin-top: 22px; text-align: left; }
.blog-article__meta > span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: #1e3a8a; color: #fff; font-weight: 850; }
.blog-article__meta div { display: grid; }
.blog-article__meta small { color: #64748b; }
.blog-article__cover { overflow: hidden; aspect-ratio: 16 / 7; border-radius: 8px; }
.blog-article__cover img { width: 100%; height: 100%; object-fit: cover; }
.blog-article__layout { display: grid; grid-template-columns: 110px minmax(0, 760px); justify-content: center; gap: 38px; padding-block: 54px 90px; }
.blog-article__layout > aside { position: sticky; top: 90px; align-self: start; display: grid; gap: 8px; }
.blog-article__layout > aside span { color: #64748b; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.blog-article__layout > aside a { color: #1e3a8a; font-size: 13px; font-weight: 750; }
.blog-article__content { color: #26334d; font-size: 18px; line-height: 1.8; }
.blog-article__content h1, .blog-article__content h2, .blog-article__content h3 { margin: 1.5em 0 .5em; color: #0f255f; line-height: 1.18; font-weight: 850; letter-spacing: 0; }
.blog-article__content h1 { font-size: 38px; }
.blog-article__content h2 { font-size: 30px; }
.blog-article__content blockquote { border-left: 4px solid #dc2626; background: #fff1f2; padding: 16px 20px; color: #7f1d1d; }
.blog-article__content pre { overflow-x: auto; border-radius: 8px; background: #0f255f; padding: 18px; color: #fff; }
.blog-article__content img { max-width: 100%; border-radius: 8px; }
.blog-related { background: #f3f7ff; padding-block: 54px; }
.blog-related h2 { margin-bottom: 18px; color: #0f255f; font-size: 28px; font-weight: 850; }
.blog-related .sci-container > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.blog-related a { display: grid; gap: 8px; border: 1px solid #dbe3f0; border-radius: 8px; background: #fff; padding: 18px; color: #0f255f; text-decoration: none; }
.blog-related a span { color: #dc2626; font-size: 11px; font-weight: 850; }
.blog-related a small { color: #64748b; }

.blog-studio { display: grid; gap: 20px; }
.blog-studio__list { display: grid; gap: 10px; }
.blog-studio__list > article { display: grid; grid-template-columns: 84px 1fr auto; align-items: center; gap: 16px; border: 1px solid #dbe3f0; border-radius: 8px; background: #fff; padding: 12px; }
.blog-studio__thumb { display: grid; width: 84px; aspect-ratio: 4 / 3; place-items: center; overflow: hidden; border-radius: 6px; background: #e8eefc; color: #1e3a8a; font-size: 24px; font-weight: 850; }
.blog-studio__thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-studio__actions { display: flex; gap: 8px; }

.blog-editor { width: min(1260px, 100%); margin: 0 auto; }
.blog-editor__topbar { position: sticky; top: 0; z-index: 15; display: flex; justify-content: space-between; align-items: center; gap: 16px; border: 1px solid #dbe3f0; border-radius: 8px; background: rgba(255,255,255,.96); padding: 10px 14px; }
.blog-editor__topbar > div { display: flex; align-items: center; gap: 12px; }
.blog-editor__workspace { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; margin-top: 18px; }
.blog-editor__workspace > main, .blog-editor__workspace > aside > section { border: 1px solid #dbe3f0; border-radius: 8px; background: #fff; }
.blog-editor__workspace > main { padding: clamp(18px, 4vw, 42px); }
.blog-editor__title input { width: 100%; border: 0; outline: 0; color: #0f255f; font-size: clamp(34px, 5vw, 56px); line-height: 1.05; font-weight: 850; }
.blog-editor__excerpt textarea { width: 100%; min-height: 90px; margin-top: 14px; border: 0; outline: 0; resize: vertical; color: #64748b; font-size: 18px; line-height: 1.5; }
.blog-editor__composer { margin-top: 18px; border-top: 1px solid #e2e8f0; padding-top: 12px; }
.blog-editor__toolbar { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.blog-editor__toolbar button { min-height: 34px; border: 1px solid #dbe3f0; border-radius: 5px; background: #fff; padding: 0 10px; color: #0f255f; font-weight: 800; }
.blog-editor__composer textarea { width: 100%; min-height: 520px; border: 0; outline: 0; resize: vertical; color: #26334d; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; line-height: 1.65; }
.blog-editor__workspace > aside { display: grid; align-content: start; gap: 12px; }
.blog-editor__workspace > aside > section { display: grid; gap: 10px; padding: 15px; }
.blog-editor__workspace aside h2 { color: #0f255f; font-size: 15px; font-weight: 850; }
.blog-editor__workspace aside label { display: grid; gap: 5px; color: #475569; font-size: 12px; font-weight: 750; }
.blog-editor__workspace aside input, .blog-editor__workspace aside select { width: 100%; border: 1px solid #cbd5e1; border-radius: 5px; padding: 9px; }
.blog-editor__workspace aside img { width: 100%; border-radius: 6px; }

/* Lesson media and progressive help */
.course-media { margin: 20px 0; }
.course-media video, .course-media iframe { display: block; width: 100%; border: 1px solid #dbe3f0; border-radius: 8px; background: #0f255f; }
.course-media video { aspect-ratio: 16 / 9; }
.course-media audio { width: 100%; }
.course-media iframe { min-height: 520px; background: #fff; }
.course-media--pdf a { display: inline-block; margin-top: 8px; color: #1e3a8a; font-weight: 800; }

.lesson-media-library { display: grid; gap: 14px; margin-top: 28px; border-top: 1px solid #e2e8f0; padding-top: 24px; }
.lesson-media-library header span { color: #dc2626; font-size: 11px; font-weight: 850; text-transform: uppercase; }
.lesson-media-library h2 { color: #0f255f; font-size: 22px; font-weight: 850; }
.lesson-media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.lesson-media-item { overflow: hidden; border: 1px solid #dbe3f0; border-radius: 8px; background: #fff; }
.lesson-media-item img, .lesson-media-item video, .lesson-media-item iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; object-fit: cover; }
.lesson-media-item audio { width: calc(100% - 24px); margin: 20px 12px; }
.lesson-media-item > a { display: inline-block; margin: 12px; color: #1e3a8a; font-weight: 800; }
.lesson-media-item footer { display: grid; gap: 3px; border-top: 1px solid #eef2f7; padding: 11px 13px; }
.lesson-media-item footer span { color: #64748b; font-size: 12px; }

.react-learn-quiz-result { margin-top: 12px; border-left: 4px solid #dc2626; background: #fff1f2; padding: 10px 12px; color: #9f1239; font-weight: 800; }
.react-learn-quiz-result.is-correct { border-left-color: #16a34a; background: #f0fdf4; color: #166534; }
.exercise-hint-lock, .exercise-hint-unlock { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 14px 0; border: 1px solid #dbe3f0; border-radius: 8px; background: #f8fafc; padding: 12px; }
.exercise-hint-lock { display: grid; gap: 2px; }
.exercise-hint-lock strong { color: #475569; }
.exercise-hint-lock span, .exercise-hint-unlock span { color: #64748b; font-size: 12px; }
.exercise-hint-unlock > div { display: grid; gap: 2px; }
.exercise-hint-unlock button { border: 0; border-radius: 6px; background: #dc2626; padding: 9px 12px; color: #fff; font-size: 12px; font-weight: 800; white-space: nowrap; }
.exercise-hints { margin: 14px 0; border: 1px solid #bbf7d0; border-radius: 8px; background: #f0fdf4; padding: 12px; }
.exercise-hints summary { color: #166534; font-weight: 850; cursor: pointer; }

.lesson-media-manager { width: min(1260px, 100%); margin-inline: auto; padding: 22px; }
.lesson-media-manager > header h2 { color: #0f255f; font-size: 24px; font-weight: 850; }
.lesson-media-manager > header p:not(.eyebrow) { color: #64748b; }
.lesson-media-upload { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.lesson-media-upload .btn-primary { align-self: end; min-height: 44px; }
.lesson-media-assets { display: grid; gap: 8px; margin-top: 18px; }
.lesson-media-assets > article { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; border-top: 1px solid #e7edf6; padding-top: 10px; }
.lesson-media-assets article > div { display: grid; min-width: 0; }
.lesson-media-assets article strong { overflow: hidden; color: #0f255f; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.lesson-media-assets article small { color: #64748b; }
.lesson-media-type { color: #dc2626; font-size: 11px; font-weight: 850; text-transform: uppercase; }
.lesson-media-assets article > button { border: 1px solid #1e3a8a; border-radius: 5px; background: #fff; padding: 7px 10px; color: #1e3a8a; font-size: 12px; font-weight: 800; }
.lesson-media-assets .media-delete { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid #fecaca; border-radius: 5px; background: #fff; color: #dc2626; font-size: 18px; }

@media (max-width: 1050px) {
  .sci-admin-repeat-grid,
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .family-link-panel { grid-template-columns: 1fr; }
  .family-create-panel .family-create-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .family-existing-link { grid-template-columns: 1fr; }
  .account-security__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-editor__workspace { grid-template-columns: 1fr; }
  .lesson-media-upload { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .site-campaign { align-items: flex-start; flex-direction: column; gap: 8px; }
  .sci-admin-repeat-grid,
  .sci-admin-repeat-card,
  .blog-grid,
  .lesson-media-grid,
  .lesson-media-upload { grid-template-columns: 1fr; }
  .blog-card.is-featured { grid-column: auto; }
  .family-link-panel form,
  .family-link-panel form.family-create-form,
  .family-create-panel .family-create-form { grid-template-columns: 1fr; }
  .family-create-form__school { grid-column: auto; }
  .family-create-form__footer { grid-column: auto; align-items: stretch; flex-direction: column; }
  .family-create-form__footer .sci-btn { width: 100%; }
  .family-existing-form { grid-template-columns: 1fr; }
  .family-existing-form .sci-btn { width: 100%; }
  .family-consent-card,
  .family-pending-list > article { grid-template-columns: 42px minmax(0, 1fr); }
  .family-consent-card > span,
  .family-pending-list > article > span { width: 42px; height: 42px; }
  .family-consent-card__actions,
  .family-pending-list > article form { grid-column: 1 / -1; }
  .family-consent-card__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .family-action-button,
  .family-pending-list > article button { width: 100%; }
  .family-child-data form { grid-template-columns: 1fr; }
  .family-child-data .sci-btn { width: 100%; }
  .account-security { width: 100%; }
  .account-security__grid,
  .account-password-form,
  .account-inline-form { grid-template-columns: 1fr; }
  .account-security__panel--wide,
  .account-password-form .sci-btn { grid-column: auto; }
  .account-password-form .sci-btn { width: 100%; }
  .account-inline-form .sci-btn { width: 100%; }
  .account-family-code__value { grid-template-columns: 1fr; }
  .account-family-code__value button { width: 100%; }
  .account-danger-zone { align-items: stretch; flex-direction: column; gap: 16px; }
  .account-danger-zone__trigger { width: 100%; }
  .account-delete-modal__dialog { padding: 18px; }
  .account-delete-form__actions { flex-direction: column-reverse; }
  .account-delete-form__actions button { width: 100%; }
  .family-child__metrics { grid-template-columns: repeat(2, 1fr); }
  .blog-index__hero form { width: 100%; grid-template-columns: 1fr; }
  .blog-index__hero button { min-height: 44px; }
  .blog-article__layout { grid-template-columns: 1fr; padding-inline: 18px; }
  .blog-article__layout > aside { position: static; display: flex; }
  .blog-related .sci-container > div { grid-template-columns: 1fr; }
  .blog-studio__list > article { grid-template-columns: 64px 1fr; }
  .blog-studio__thumb { width: 64px; }
  .blog-studio__actions { grid-column: 1 / -1; }
  .lesson-media-assets > article { grid-template-columns: 70px minmax(0, 1fr) auto; }
  .lesson-media-assets > article > form { grid-column: 3; }
  .exercise-hint-unlock { align-items: stretch; flex-direction: column; }
  .course-media iframe { min-height: 420px; }
}

/* Keep the course experience inside the Sciences Claires palette. */
.react-learn-course-name > span,
.react-learn-outline__title > span,
.react-learn-tabs button.is-active,
.react-learn-outline nav a.is-active > span {
  background: #1e3a8a;
  box-shadow: 0 8px 20px rgba(30, 58, 138, .2);
}

.react-learn-header-progress > i em,
.react-learn-outline__progress > i em,
.react-learn-outline nav a.is-active div > i em {
  background: #2563eb;
}

.react-learn-outline nav a.is-active {
  border-color: #9db8ee;
  background: #f3f7ff;
  box-shadow: 0 7px 20px rgba(30, 58, 138, .1);
}

.react-learn-outline nav a.is-active > span i {
  background: #dc2626;
}

.react-learn-outline__progress b,
.react-learn-outline nav a.is-active > b,
.react-learn-outline > footer > b,
.react-learn-tab-heading small {
  color: #1e3a8a;
}

.react-learn-outline nav a small b,
.react-learn-chapter-head > span {
  background: #e8eefc;
  color: #1e3a8a;
}

.react-learn-tabs .react-learn-present {
  border-color: #b8c8e8;
  color: #1e3a8a;
}

.react-learn-tabs .react-learn-present:hover {
  border-color: #1e3a8a;
  background: #f3f7ff;
  color: #1e3a8a;
}

.react-learn-complete button,
.react-learn-quiz-list form > button,
.react-learn-exercise-list form > button {
  background: #1e3a8a;
  box-shadow: 0 8px 20px rgba(30, 58, 138, .18);
}

.react-learn-complete button:hover,
.react-learn-quiz-list form > button:hover,
.react-learn-exercise-list form > button:hover {
  background: #162f73;
}

.react-learn-tab-heading > span.is-exercise {
  background: #dc2626;
}

.react-learn-quiz-list article > header span,
.react-learn-exercise-list article > header span {
  color: #1e3a8a;
}

.react-course-hero__orbs i,
.react-course-hero__particles i {
  background: rgba(255, 255, 255, .16);
}

.react-course-badges .is-difficulty {
  border-color: rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.react-course-action-card__icon,
.react-section-icon.is-blue,
.react-section-icon.is-purple {
  background: #1e3a8a;
}

.react-course-action-card__primary,
.react-course-mobile-action a {
  background: #dc2626;
  box-shadow: 0 12px 28px rgba(220, 38, 38, .2);
}

.react-course-final-cta {
  background: #1e3a8a;
}

/* ScienceClaire parity pass */
html,
.sc-body {
  background: #f3f4f6;
}

.sci-container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 32px;
}

.sc-public-main.sci-public-main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-top: 64px;
}

.sc-public-main.sci-public-main:not(.sci-public-main--home) {
  padding-bottom: 0;
}

.sci-auth,
.sc-auth,
.sci-catalog,
.sc-catalog,
.sci-course-detail,
.sc-course-detail {
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
}

.sci-header {
  height: 65px;
  border-bottom-color: #1e3a8a;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(24px);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}

.sci-header__inner {
  height: 64px;
}

.sci-logo {
  gap: 8px;
  color: #1e3a8a;
  font-size: 16px;
  font-weight: 600;
}

.sci-logo__icon {
  width: 24px;
  height: 24px;
  border-radius: 0;
  color: #dc2626;
  background: transparent;
  font-size: 0;
}

.sci-logo__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sci-level-nav {
  gap: 24px;
  color: #1e3a8a;
  font-size: 14px;
  font-weight: 500;
}

.sci-nav-group > div {
  top: 100%;
  min-width: 160px;
  border-radius: 12px;
  padding: 4px;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 15px -3px rgba(15, 23, 42, .1), 0 4px 6px -4px rgba(15, 23, 42, .1);
}

.sci-nav-group a {
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
}

.sci-login,
.sci-register {
  min-height: 38px;
  border-radius: 999px;
  padding-inline: 16px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: none;
}

.sci-login {
  border: 1px solid #1e3a8a;
  color: #1e3a8a;
  background: #fff;
}

.sci-login:hover {
  color: #1e3a8a;
  background: #eff6ff;
}

.sci-register {
  border: 1px solid #1e3a8a;
  color: #fff;
  background: #1e3a8a;
}

.sci-register:hover {
  background: #1e40af;
}

.sci-auth-header__hint {
  color: #4b5563;
  font-size: 14px;
}

.sci-auth-header__hint a {
  color: #1e3a8a;
  font-weight: 600;
  text-decoration: none;
}

.sci-auth-header__hint a:hover {
  color: #dc2626;
}

.sci-footer--auth {
  display: none;
}

.sci-home {
  position: relative;
  background: linear-gradient(180deg, #fff 0%, #fff 58%, #eff6ff 100%);
}

.sci-home--animated .sci-hero,
.sci-hero {
  background: rgba(255, 255, 255, .8);
  backdrop-filter: blur(4px);
}

.sci-hero__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  padding-block: 96px;
}

.sci-hero__copy h1 {
  margin-top: 8px;
  max-width: 580px;
  font-size: 48px;
  line-height: 1.05;
  font-weight: 800;
}

.sci-hero__copy > p {
  margin-top: 16px;
  max-width: 600px;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.55;
}

.sci-hero__actions {
  margin-top: 24px;
}

.sci-hero__note {
  margin-top: 16px;
  color: #6b7280;
  font-size: 14px;
}

.sci-hero-image {
  position: relative;
  height: auto;
  min-height: 0;
  aspect-ratio: 3 / 2;
  border-radius: 16px;
  box-shadow: none;
}

.sci-hero-image > img {
  height: 100%;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, .25);
}

.sci-hero-image__overlay {
  border-radius: 16px;
  background: linear-gradient(to top right, rgba(30, 58, 138, .2), transparent 48%, rgba(220, 38, 38, .2));
}

.sci-float-card {
  min-width: auto;
  border-radius: 12px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, .1), 0 8px 10px -6px rgba(15, 23, 42, .1);
}

.sci-float-card__icon {
  width: 48px;
  height: 48px;
  font-size: 24px;
  background: linear-gradient(135deg, #1e3a8a, #1d4ed8);
}

.sci-float-card--students {
  left: -16px;
  bottom: -16px;
}

.sci-float-card--rating {
  top: -16px;
  right: -16px;
  gap: 8px;
  padding: 12px;
}

.sci-rating-star {
  color: #f59e0b;
  font-size: 20px;
  line-height: 1;
}

.sci-float-card strong {
  color: #1e3a8a;
  font-size: 14px;
  font-weight: 700;
}

.sci-float-card small {
  color: #6b7280;
  font-size: 12px;
}

.sci-stats-band {
  padding-block: 32px;
  background-color: #1e3a8a !important;
  background-image: linear-gradient(90deg, #1e3a8a, #1e40af, #1e3a8a) !important;
}

.sci-stats-grid strong {
  font-size: 36px;
  line-height: 1;
  font-weight: 800;
}

.sci-stats-grid span {
  display: block;
  margin-top: 4px;
  color: #bfdbfe;
}

.sci-section {
  padding-block: 80px;
}

.sci-section--blue,
.sci-testimonials {
  background: rgba(239, 246, 255, .8);
  backdrop-filter: blur(4px);
}

.sci-section-title h2,
.sci-demo-grid h2,
.sci-showcase h2,
.sci-auth-promo h2 {
  color: #1e3a8a;
  font-size: 36px;
  line-height: 1.2;
  font-weight: 800;
}

.sci-feature-grid {
  gap: 32px;
  margin-top: 48px;
}

.sci-feature-card,
.sci-notion-card,
.sci-price-card,
.sci-testimonial-grid article,
.sci-faq-list article,
.sci-auth-card {
  border-color: #e5e7eb;
  background: rgba(255, 255, 255, .8);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}

.sci-feature-card {
  border-radius: 16px;
}

.sci-feature-card img {
  height: 128px;
}

.sci-home--animated .sci-feature-card:hover,
.sci-feature-card:hover {
  transform: translateY(-6px);
  border-color: #dc2626;
  box-shadow: 0 20px 25px -5px rgba(30, 58, 138, .12), 0 8px 10px -6px rgba(30, 58, 138, .12);
}

.sci-feature-card div {
  padding: 20px;
}

.sci-feature-card h3 {
  color: #1e3a8a;
  font-size: 16px;
}

.sci-feature-card h3 i {
  width: 12px;
  height: 12px;
  background: #dc2626;
}

.sci-auth {
  min-height: calc(100vh - 64px);
  align-items: center;
  background: linear-gradient(180deg, #fff 0%, #fff 56%, #eff6ff 100%);
  padding-block: 80px 48px;
}

.sci-auth__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: center;
}

.sci-auth-form-column {
  order: 1;
}

.sci-auth-card {
  max-width: 448px;
  margin-inline: auto;
  border: 1px solid #111827;
  border-radius: 16px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, .1), 0 8px 10px -6px rgba(15, 23, 42, .1);
  transform: none !important;
}

.sci-auth-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #1e3a8a, #1d4ed8);
  box-shadow: 0 10px 15px -3px rgba(30, 58, 138, .25);
}

.sci-auth-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sci-auth-card h1 {
  font-size: 24px;
  font-weight: 700;
}

.sci-auth-card > p {
  margin: 8px auto 0;
  max-width: 360px;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.45;
}

.sci-auth-form {
  gap: 20px;
  margin-top: 20px;
}

.sci-auth-form p:has(input[type="checkbox"]) {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

.sci-auth-form input[type="checkbox"] {
  order: -1;
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin: 0;
  accent-color: #1e3a8a;
}

.sci-auth-age-note {
  border-left: 3px solid #1e3a8a;
  background: #eff6ff;
  padding: 10px 12px;
  color: #475569 !important;
  font-size: 12px !important;
  line-height: 1.5;
}

.sci-auth-field {
  display: grid;
  gap: 6px;
}

.sci-auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sci-auth-label-row a {
  color: #dc2626;
  font-size: 12px;
  text-decoration: none;
}

.sci-auth-form label,
.sci-auth-field label {
  color: #1e3a8a;
  font-size: 14px;
  font-weight: 500;
}

.sci-input-shell {
  position: relative;
}

.sci-input-shell input,
.sci-auth-form input {
  min-height: 38px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 8px 12px;
  color: #111827;
  font-size: 14px;
}

.sci-input-shell--mail input {
  padding-left: 40px;
}

.sci-input-shell--password input {
  padding-right: 42px;
}

.sci-input-shell > span,
.sci-input-shell button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
}

.sci-input-shell > span {
  left: 12px;
}

.sci-input-shell svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sci-input-shell button {
  right: 10px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.sci-input-shell .sci-password-toggle {
  border-radius: 4px;
  color: #475569;
  transition: background-color .16s ease, color .16s ease;
}

.sci-input-shell .sci-password-toggle:hover,
.sci-input-shell .sci-password-toggle[aria-pressed="true"] {
  background: #e8eefc;
  color: #1e3a8a;
}

.sci-input-shell .sci-password-toggle:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.sci-auth-field--checkbox > label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sci-auth-field--checkbox input[type="checkbox"] {
  flex: 0 0 18px;
}

.sci-password-help,
.sci-password-help ul {
  margin: 0;
  color: #5d6b82;
}

.sci-password-help ul {
  display: grid;
  gap: 3px;
  padding-left: 20px;
}

.sci-password-rules {
  position: relative;
  display: inline-flex;
}

.sci-password-rules > button {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  background: #fff;
  color: #1e3a8a;
  font-weight: 800;
  cursor: help;
}

.sci-password-rules > button:hover,
.sci-password-rules > button:focus-visible {
  border-color: #1e3a8a;
  outline: 0;
  background: #eff6ff;
}

.sci-password-rules__tooltip {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  width: min(340px, calc(100vw - 48px));
  visibility: hidden;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  padding: 14px 16px;
  color: #334155;
  opacity: 0;
  box-shadow: 0 16px 36px rgba(15, 37, 95, .18);
  transform: translateY(-4px);
  transition: opacity .14s ease, transform .14s ease, visibility .14s ease;
}

.sci-password-rules__tooltip::before {
  position: absolute;
  top: -6px;
  right: 7px;
  width: 10px;
  height: 10px;
  border-top: 1px solid #cbd5e1;
  border-left: 1px solid #cbd5e1;
  background: #fff;
  content: "";
  transform: rotate(45deg);
}

.sci-password-rules__tooltip strong {
  display: block;
  margin-bottom: 8px;
  color: #0f255f;
}

.sci-password-rules__tooltip ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
}

.sci-password-rules:hover .sci-password-rules__tooltip,
.sci-password-rules:focus-within .sci-password-rules__tooltip {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.sci-auth-card > .form-error-box {
  margin-top: 16px;
}

.sci-account-recovery {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  border: 1px solid #bfdbfe;
  border-left: 3px solid #1d4ed8;
  border-radius: 8px;
  background: #eff6ff;
  padding: 14px 16px;
  color: #334155;
}

.sci-account-recovery strong {
  color: #0f255f;
}

.sci-account-recovery p {
  margin: 0;
}

.sci-account-recovery__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.sci-account-recovery__actions .sci-btn {
  min-height: 40px;
  padding-inline: 12px;
}

.sci-account-recovery__reset {
  width: fit-content;
  color: #1e3a8a;
  font-weight: 700;
}

@media (max-width: 420px) {
  .sci-account-recovery__actions {
    grid-template-columns: 1fr;
  }
}

.sci-auth-form input:focus {
  border-color: #1e3a8a;
  box-shadow: 0 0 0 3px rgba(30, 58, 138, .14);
}

.sci-remember {
  display: flex !important;
  align-items: center;
  gap: 8px;
  color: #4b5563 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
}

.sci-remember input {
  width: 16px !important;
  min-height: 16px !important;
  height: 16px;
  border-radius: 4px;
  padding: 0;
}

.sci-auth-submit {
  width: 100%;
  min-height: 44px;
  border-radius: 6px;
  background: linear-gradient(90deg, #1e3a8a, #1d4ed8);
  box-shadow: 0 10px 15px -3px rgba(30, 58, 138, .24);
}

.sci-auth-separator {
  margin-block: 24px;
}

.sci-auth-separator span {
  white-space: nowrap;
}

.sci-google-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 42px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
}

.sci-google-button svg {
  width: 20px;
  height: 20px;
}

.sci-auth-link {
  margin-top: 24px;
  color: #4b5563;
  font-size: 14px;
}

.sci-auth-link a {
  color: #1e3a8a;
  font-weight: 600;
}

.sci-auth-promo {
  order: 2;
}

.sci-auth-promo .sci-pill {
  min-height: 28px;
  padding-inline: 16px;
  background: #dbeafe;
  color: #1e3a8a;
  font-size: 14px;
  font-weight: 600;
}

.sci-auth-promo h2 {
  max-width: 620px;
  margin-top: 16px;
  font-size: 48px;
  line-height: 1.05;
}

.sci-auth-promo h2 span {
  color: transparent !important;
  background: linear-gradient(135deg, #1e3a8a 0%, #dc2626 48%, #1e3a8a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sci-auth-promo p {
  max-width: 590px;
  margin-top: 16px;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.55;
}

.sci-auth-promo .sci-check-list {
  margin-top: 32px;
  gap: 16px;
}

.sci-auth-promo .sci-check-list li {
  padding-left: 36px;
  color: #374151;
  font-weight: 400;
}

.sci-auth-promo figure {
  width: min(100%, 584px);
  margin-top: 40px;
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, .1), 0 8px 10px -6px rgba(15, 23, 42, .1);
}

.sci-auth-promo figure img {
  height: 300px;
  border-radius: 16px;
}

.sci-progress-caption {
  left: -16px !important;
  bottom: -16px !important;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 12px !important;
  padding: 16px !important;
}

.sci-progress-caption > span:last-child strong,
.sci-progress-caption > span:last-child small {
  display: block;
}

.sci-progress-caption > span:last-child strong {
  color: #1e3a8a;
  font-size: 14px;
}

.sci-progress-caption > span:last-child small {
  color: #6b7280;
  font-size: 12px;
}

.sci-progress-ring {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, #fff 52%, transparent 54%),
    conic-gradient(#dc2626 0 52%, #1e3a8a 52% 75%, #e5e7eb 75% 100%);
}

.sci-progress-ring b {
  color: #1e3a8a;
  font-size: 12px;
  font-weight: 700;
}

.sci-streak-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 10px 15px -3px rgba(15, 23, 42, .12);
}

.sci-streak-badge strong,
.sci-streak-badge small {
  display: block;
}

.sci-streak-badge strong {
  color: #1e3a8a;
  font-size: 14px;
}

.sci-streak-badge small {
  color: #6b7280;
  font-size: 12px;
}

.sci-streak-flame svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 1180px) {
  .sci-auth__grid,
  .sci-hero__grid {
    grid-template-columns: 1fr;
  }

  .sci-hero-image {
    max-width: 620px;
    margin-inline: auto;
  }
}

@media (max-width: 920px) {
  .sci-header__actions .sci-login,
  .sci-header__actions .sci-register,
  .sci-header__actions .cc-profile {
    display: none;
  }

  .sci-auth-header__hint {
    display: block;
    font-size: 13px;
  }
}

@media (max-width: 620px) {
  .sci-container {
    padding-inline: 16px;
  }

  .sci-auth-header__hint {
    display: none;
  }

  .sci-hero__grid {
    padding-block: 48px;
  }

  .sci-hero__copy h1 {
    font-size: 36px;
  }

  .sci-hero-image {
    aspect-ratio: 3 / 2;
  }

  .sci-auth {
    padding-block: 48px;
  }

  .sci-auth-card {
    padding: 24px;
  }

  .sci-auth-promo h2 {
    font-size: 36px;
  }

  .sci-auth-promo figure {
    display: none;
  }
}

/* Override legacy app.css H1 guards */
.sci-public-main .sci-hero__copy h1 {
  margin-top: 8px !important;
  color: #1e3a8a !important;
  font-size: 48px !important;
  line-height: 1.05 !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

.sci-home .sci-eyebrow {
  color: #dc2626 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: .1em !important;
}

.sci-auth-card h2 {
  margin: 0;
  color: #1e3a8a;
  text-align: center;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
}

.sci-auth-promo h1 {
  max-width: 520px;
  margin: 16px 0 0;
  color: #1e3a8a;
  font-size: 48px !important;
  line-height: 1.05 !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

/* ScienceClaire source fidelity layer */
.sci-home {
  position: relative;
  background: linear-gradient(180deg, #fff 0%, #fff 64%, #eff6ff 100%);
}

.sci-home > section {
  position: relative;
  z-index: 1;
}

.sci-floating-shapes {
  pointer-events: none;
  position: fixed;
  inset: 0 0 auto;
  z-index: 0;
  height: 100vh;
  overflow: hidden;
}

.sci-floating-shape {
  position: absolute;
  display: block;
  border-radius: 999px;
  filter: blur(64px);
  transform: translateZ(0);
}

.sci-floating-shape--blue {
  top: 80px;
  left: -80px;
  width: 256px;
  height: 256px;
  background: rgba(96, 165, 250, .10);
}

.sci-floating-shape--red {
  top: 160px;
  right: -80px;
  width: 192px;
  height: 192px;
  background: rgba(248, 113, 113, .10);
}

.sci-home .sci-section {
  padding-block: 80px;
}

.sci-home .sci-section-title {
  max-width: 768px;
}

.sci-home .sci-section-title h2 {
  font-size: 36px;
  line-height: 40px;
  font-weight: 700;
}

.sci-home .sci-section-title p:not(.sci-eyebrow) {
  margin-top: 12px;
  color: #4b5563;
  font-size: 18px;
  line-height: 28px;
}

.sci-home .sci-eyebrow {
  margin-bottom: 8px !important;
  color: #dc2626 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: .1em !important;
}

.sci-home .sci-step-grid h3 {
  margin: 0 0 8px;
  color: #1e3a8a;
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
}

.sci-home .sci-step-grid p {
  max-width: none;
  margin: 0;
  color: #4b5563 !important;
  font-size: 16px;
  line-height: 24px;
}

.sci-home .sci-step-icon b {
  font-weight: 700;
}

.sci-auth-promo h1 span {
  color: transparent !important;
  background: linear-gradient(135deg, #1e3a8a 0%, #dc2626 48%, #1e3a8a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 620px) {
  .sci-public-main .sci-hero__copy h1,
  .sci-auth-promo h1 {
    font-size: 36px !important;
  }
}

main.sci-public-main > section.sci-auth:first-child .sci-auth-promo h1 {
  font-size: 48px !important;
  line-height: 1.05 !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

main.sci-public-main > section.sci-auth:first-child .sci-auth-card h2 {
  font-size: 24px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}

main.sci-public-main > section.sci-auth:first-child .sci-auth-form-column {
  transform: translateY(21px);
}

@media (max-width: 1180px) {
  main.sci-public-main > section.sci-auth:first-child .sci-auth-form-column {
    transform: none;
  }
}

/* Header balance for authenticated public pages */
.sci-header .sci-header__logo {
  font-size: 18px;
}

.sci-header .sci-level-nav {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
}

.sci-header .sci-header__actions {
  gap: 8px;
}

.sci-header .sci-login,
.sci-header .sci-register {
  min-height: 36px;
  padding-inline: 18px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.sci-header .sc-profile-trigger {
  min-width: 0;
  max-width: 104px;
  min-height: 36px;
  height: 36px;
  padding: 3px 12px 3px 3px;
  border-radius: 999px;
  gap: 8px;
}

.sci-header .cc-profile__avatar {
  width: 28px !important;
  height: 28px !important;
  flex: 0 0 28px;
  font-size: 12px;
  box-shadow: none;
}

.sci-header .cc-profile__identity {
  max-width: 52px !important;
}

.sci-header .cc-profile__identity strong {
  max-width: 52px;
  font-size: 15px;
  line-height: 1;
  font-weight: 600;
}

.sci-header .sc-profile-trigger--avatar-only {
  width: 36px;
  min-width: 36px;
  max-width: 36px;
  padding: 3px;
  border-radius: 50%;
}

@media (min-width: 921px) {
  .sci-header .sci-level-nav {
    margin-left: auto;
    margin-right: auto;
  }

  .sci-header__logo {
    flex: 0 0 auto;
  }

  .sci-header__actions {
    flex: 0 0 auto;
  }
}

/* Marketing admin */
.sci-marketing-admin {
  display: grid;
  gap: 24px;
}

.sci-marketing-hero {
  align-items: center;
}

.sci-admin-form {
  display: grid;
  gap: 24px;
}

.sci-admin-section {
  overflow: hidden;
}

.sci-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 22px;
}

.sci-admin-grid--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0;
}

.sci-admin-field {
  display: grid;
  gap: 7px;
  color: #1e3a8a;
  font-size: 13px;
  font-weight: 800;
}

.sci-admin-field--full {
  margin-top: 16px;
}

.sci-admin-field input,
.sci-admin-field select,
.sci-admin-field textarea,
.sci-compare-editor input {
  width: 100%;
  border: 1px solid #d8dee8;
  border-radius: 10px;
  background: #fff;
  padding: 10px 12px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 500;
  outline: none;
}

.sci-admin-field textarea {
  min-height: 156px;
  resize: vertical;
}

.sci-admin-field input:focus,
.sci-admin-field select:focus,
.sci-admin-field textarea:focus,
.sci-compare-editor input:focus {
  border-color: #1e3a8a;
  box-shadow: 0 0 0 3px rgba(30, 58, 138, .12);
}

.sci-admin-field small,
.sci-admin-error {
  color: #dc2626;
  font-size: 12px;
  font-weight: 700;
}

.sci-admin-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.sci-admin-check input {
  width: 16px;
  height: 16px;
  accent-color: #1e3a8a;
}

.sci-admin-check--danger {
  color: #dc2626;
}

.sci-plan-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 22px;
}

.sci-plan-editor {
  border: 1px solid #d8dee8;
  border-radius: 16px;
  background: rgba(255, 255, 255, .92);
  padding: 18px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, .06);
}

.sci-plan-editor > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.sci-plan-editor > header strong {
  color: #1e3a8a;
  font-size: 18px;
  font-weight: 900;
}

.sci-compare-editor {
  display: grid;
  gap: 10px;
  padding: 22px;
}

.sci-compare-editor__head,
.sci-compare-editor__row {
  display: grid;
  grid-template-columns: 1.25fr repeat(3, minmax(90px, .7fr)) 80px minmax(150px, .8fr);
  gap: 10px;
  align-items: center;
}

.sci-compare-editor__head {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.sci-compare-editor__row {
  border: 1px solid #eef2f7;
  border-radius: 14px;
  background: #fff;
  padding: 12px;
}

.sci-compare-editor__flags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sci-admin-sticky-actions {
  position: sticky;
  bottom: 18px;
  z-index: 5;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border: 1px solid #d8dee8;
  border-radius: 16px;
  background: rgba(255, 255, 255, .94);
  padding: 14px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .12);
  backdrop-filter: blur(12px);
}

@media (max-width: 1180px) {
  .sci-plan-editor-grid,
  .sci-admin-grid {
    grid-template-columns: 1fr;
  }

  .sci-compare-editor__head {
    display: none;
  }

  .sci-compare-editor__row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .sci-admin-sticky-actions {
    flex-direction: column;
  }

  .sci-admin-sticky-actions .sci-btn {
    width: 100%;
  }
}

/* Final contrast lock: dark ScienceClaire bands must never inherit navy text. */
.sci-home .sci-success {
  background-color: #1e3a8a !important;
  background-image: none !important;
  color: #fff !important;
}

.sci-home .sci-success h2 {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: none !important;
  font-size: 48px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

.sci-home .sci-success h2 span {
  color: #fca5a5 !important;
  -webkit-text-fill-color: #fca5a5 !important;
  background: none !important;
}

.sci-home .sci-success p {
  color: #bfdbfe !important;
  -webkit-text-fill-color: #bfdbfe !important;
}

.sci-home .sci-success__stats strong {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.sci-home .sci-success__stats span {
  color: #93c5fd !important;
  -webkit-text-fill-color: #93c5fd !important;
}

.sci-home .sci-success .sci-btn--light {
  background: #fff !important;
  color: #1e3a8a !important;
  -webkit-text-fill-color: #1e3a8a !important;
}

.sci-home .sci-section--blue .sci-eyebrow,
.sci-home .sci-testimonials .sci-eyebrow,
.sci-home .sci-pill--red {
  color: #c81e1e !important;
  -webkit-text-fill-color: #c81e1e !important;
}

.sci-btn--primary,
.sci-register,
.sci-float-card__icon,
.sci-step-icon strong {
  background-color: #1e3a8a !important;
}

.sci-home .sci-stats-band,
.sci-home .sci-stats-grid article,
.sci-course-hero,
.sci-course-cta,
.sci-dash-hero,
.sc-lesson-hero,
.lesson-author-hero,
.sci-quick-actions {
  color: #fff !important;
}

.sci-home .sci-stats-grid strong,
.sci-home .sci-stats-grid article strong,
.sci-course-hero h1,
.sci-course-cta h2,
.sci-dash-hero h1,
.sc-lesson-hero h1,
.lesson-author-hero h1,
.sci-quick-actions h3 {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.sci-home .sci-stats-grid span,
.sci-course-hero p,
.sci-course-progress span,
.sci-course-cta p,
.sci-dash-hero p,
.sc-lesson-hero span,
.lesson-author-hero p {
  color: #bfdbfe !important;
  -webkit-text-fill-color: #bfdbfe !important;
}

@media (max-width: 620px) {
  .sci-home .sci-success h2 {
    font-size: 36px !important;
  }
}

/* Exact homepage type scale from the original Sciences Claires frontend. */
.sci-home h1,
.sci-home h2,
.sci-home h3 {
  font-family: Arial, Helvetica, sans-serif !important;
  letter-spacing: 0 !important;
}

.sci-home p:not(.sci-eyebrow),
.sci-home li,
.sci-home a,
.sci-home button,
.sci-home small {
  letter-spacing: 0 !important;
}

.sci-home .sci-hero__copy .sci-eyebrow {
  margin: 0 0 8px !important;
  line-height: 20px !important;
}

.sci-home .sci-hero__copy h1 {
  margin: 8px 0 0 !important;
  font-size: 48px !important;
  line-height: 60px !important;
  font-weight: 800 !important;
}

.sci-home .sci-hero__copy h1 span,
.sci-home .sci-hero__copy h1 strong {
  display: inline;
}

.sci-home .sci-hero__copy > p:not(.sci-eyebrow) {
  margin-top: 16px !important;
  font-size: 18px !important;
  line-height: 28px !important;
}

.sci-home .sci-hero__actions .sci-btn {
  min-height: 44px;
  min-width: 242px;
  border-radius: 6px;
  padding-inline: 24px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.sci-home .sci-stats-grid strong {
  line-height: 40px;
}

.sci-home .sci-stats-grid span,
.sci-home .sci-eyebrow {
  line-height: 20px !important;
}

.sci-home .sci-section-title h2 {
  font-size: 36px !important;
  line-height: 45px !important;
  font-weight: 700 !important;
}

.sci-home .sci-demo-grid h2,
.sci-home .sci-showcase h2 {
  font-size: 36px !important;
  line-height: 40px !important;
  font-weight: 800 !important;
}

.sci-home .sci-demo-grid > div > p,
.sci-home .sci-showcase > div:last-child > p {
  font-size: 18px !important;
  line-height: 28px !important;
}

.sci-home .sci-feature-card > div {
  padding: 24px;
}

.sci-home .sci-feature-card h3 {
  margin: 0 0 16px;
  font-size: 18px !important;
  line-height: 18px !important;
  font-weight: 600 !important;
}

.sci-home .sci-feature-card p {
  font-size: 16px;
  line-height: 24px;
}

.sci-home .sci-notion-card h3 {
  font-size: 20px !important;
  line-height: 20px !important;
  font-weight: 600 !important;
}

.sci-home .sci-step-grid h3 {
  font-size: 20px !important;
  line-height: 28px !important;
  font-weight: 700 !important;
}

.sci-home .sci-step-grid p {
  font-size: 16px !important;
  line-height: 24px !important;
}

.sci-home .sci-price-card h3 {
  font-size: 18px !important;
  line-height: 18px !important;
  font-weight: 600 !important;
}

.sci-home .sci-price-card p,
.sci-home .sci-price-card li {
  font-size: 14px;
  line-height: 20px;
}

.sci-home .sci-testimonial-grid h3 {
  font-size: 16px !important;
  line-height: 24px !important;
  font-weight: 600 !important;
}

.sci-home .sci-testimonial-grid p {
  font-size: 14px;
  line-height: 20px;
}

.sci-home .sci-faq-list h3 {
  font-size: 18px !important;
  line-height: 18px !important;
  font-weight: 600 !important;
}

.sci-home .sci-faq-list p {
  font-size: 16px;
  line-height: 24px;
}

.sci-home .sci-hero__grid {
  grid-template-columns: 1fr;
  padding-block: 64px;
}

.sci-home .sci-stats-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sci-home .sci-faq-list {
  grid-template-columns: 1fr;
  max-width: 768px;
  margin: 32px auto 0;
}

.sci-home .sci-demo-grid,
.sci-home .sci-showcase {
  gap: 48px;
}

.sci-home .sci-price-grid {
  gap: 24px;
}

.sci-home .sci-float-card {
  position: absolute;
  margin-top: 0;
}

@media (min-width: 768px) {
  .sci-home .sci-hero__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sci-home .sci-hero-image {
    max-width: none;
    margin-inline: 0;
  }

  .sci-home .sci-stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .sci-home .sci-step-grid,
  .sci-home .sci-testimonial-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .sci-home .sci-container {
    padding-inline: 24px;
  }
}

@media (min-width: 1024px) {
  .sci-home .sci-hero__grid {
    padding-block: 96px;
  }

  .sci-home .sci-demo-grid,
  .sci-home .sci-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sci-home .sci-feature-grid,
  .sci-home .sci-price-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .sci-home .sci-price-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 639px) {
  .sci-home .sci-hero__copy .sci-eyebrow {
    font-size: 12px !important;
    line-height: 16px !important;
  }

  .sci-home .sci-hero__copy h1 {
    font-size: 36px !important;
    line-height: 45px !important;
  }

  .sci-home .sci-hero__copy > p:not(.sci-eyebrow) {
    font-size: 16px !important;
    line-height: 24px !important;
  }

  .sci-home .sci-hero__note {
    font-size: 12px;
    line-height: 16px;
  }

  .sci-home .sci-section-title h2,
  .sci-home .sci-demo-grid h2,
  .sci-home .sci-showcase h2 {
    font-size: 30px !important;
    line-height: 37.5px !important;
  }

  .sci-home .sci-success h2 {
    font-size: 36px !important;
    line-height: 36px !important;
  }
}

/* Exact component proportions from the original Sciences Claires homepage. */
.sci-home .sci-pill {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 16px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.sci-home .sci-demo-grid > div > p,
.sci-home .sci-showcase > div:last-child > p {
  margin: 16px 0 0;
}

.sci-home .sci-notion-card {
  overflow: hidden;
  border-radius: 16px;
  min-height: 351px;
  padding: 0;
}

.sci-home .sci-notion-card > header {
  padding: 24px 24px 8px;
}

.sci-home .sci-notion-card > header h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.sci-home .sci-notion-title-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: #dc2626;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sci-home .sci-notion-tabs {
  margin: 8px 24px 16px;
  padding: 4px;
  font-size: 14px;
  line-height: 20px;
}

.sci-home .sci-notion-tabs button {
  padding: 6px 12px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.sci-home .sci-notion-panel {
  margin: 0;
  padding: 0 24px 24px;
  font-size: 14px;
  line-height: 20px;
}

.sci-home .sci-notion-label {
  margin: 0 0 12px;
  font-size: 14px !important;
  line-height: 20px !important;
  font-weight: 500;
}

.sci-home .sci-notion-box {
  margin: 0 0 12px;
  border-radius: 8px;
  padding: 12px;
}

.sci-home .sci-notion-box p,
.sci-home .sci-notion-box li,
.sci-home .sci-notion-panel > p {
  font-size: 14px !important;
  line-height: 20px !important;
}

.sci-home .sci-notion-box p {
  margin: 0 0 8px;
}

.sci-home .sci-notion-box ol {
  margin: 8px 0 0 20px;
}

.sci-home .sci-notion-panel > .sci-btn {
  min-height: 36px;
  padding: 8px 16px;
  font-weight: 600;
}

.sci-home .sci-showcase__image {
  min-height: 0;
}

.sci-home .sci-showcase__image > img {
  width: min(500px, 100%);
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
}

.sci-home .sci-showcase__mini {
  right: -32px;
  bottom: -32px;
  width: 192px;
  border-width: 4px;
  border-radius: 12px;
}

.sci-home .sci-showcase__mini img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
}

.sci-home .sci-check-list {
  gap: 16px;
  margin-top: 32px;
}

.sci-home .sci-check-list li {
  min-height: 24px;
  padding-left: 36px;
  color: #374151;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
}

.sci-home .sci-check-list li::before {
  top: 0;
}

.sci-home .sci-pricing {
  padding-top: 96px;
  padding-bottom: 64px;
}

.sci-home .sci-billing-toggle {
  width: 100%;
  max-width: 448px;
  margin: 24px auto 0;
}

.sci-home .sci-billing-toggle button {
  height: 36px;
  padding: 8px 16px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.sci-home .sci-price-card {
  display: block;
  border-radius: 16px;
  padding: 24px;
}

.sci-home .sci-price-card > h3 {
  margin: 0;
}

.sci-home .sci-price-card > p {
  margin: 4px 0 0;
}

.sci-home .sci-price-card > div {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  min-height: 36px;
  margin-top: 8px;
}

.sci-home .sci-price-card > div strong {
  font-size: 30px;
  line-height: 36px;
  font-weight: 800;
}

.sci-home .sci-price-card > div span {
  margin-bottom: 4px;
  font-size: 14px;
  line-height: 20px;
}

.sci-home .sci-price-card ul {
  display: block;
  margin: 16px 0 0;
}

.sci-home .sci-price-card li {
  display: flex;
  min-height: 20px;
  margin-bottom: 8px;
  padding-left: 24px;
}

.sci-home .sci-price-card li:last-child {
  margin-bottom: 0;
}

.sci-home .sci-price-compare-link {
  display: block;
  margin-top: 16px;
  color: #6b7280;
  font-size: 12px;
  line-height: 16px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sci-home .sci-price-card > .sci-btn {
  width: 100%;
  min-height: 36px;
  margin-top: 12px;
  padding: 8px 16px;
  font-weight: 600;
}

.sci-home .sci-popular {
  top: 24px;
  right: 24px;
  padding: 4px 12px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
}

.sci-home .sci-compare {
  margin-top: 56px;
}

.sci-home .sci-compare__table {
  margin-top: 32px;
}

.sci-home .sci-compare table {
  min-width: 800px;
  border-spacing: 0 8px;
}

.sci-home .sci-compare th,
.sci-home .sci-compare td {
  border-bottom: 0;
  padding: 12px;
  font-size: 14px;
  line-height: 20px;
}

.sci-home .sci-compare th:first-child,
.sci-home .sci-compare td:first-child {
  width: 40%;
}

.sci-home .sci-compare th:not(:first-child),
.sci-home .sci-compare td:not(:first-child) {
  width: 20%;
}

.sci-home .sci-pricing-note {
  margin-top: 32px;
  font-size: 12px;
  line-height: 16px;
}

.sci-home .sci-testimonials {
  padding-block: 64px;
}

.sci-home .sci-testimonial-grid article {
  padding: 24px;
}

.sci-home .sci-testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  margin-bottom: 16px;
}

.sci-home .sci-testimonial-grid img {
  width: 48px;
  height: 48px;
}

.sci-home .sci-testimonial-grid h3 {
  margin: 0;
}

.sci-home .sci-testimonial-grid span {
  display: block;
  font-size: 12px;
  line-height: 16px;
}

.sci-home .sci-testimonial-grid p {
  margin: 0;
  color: #374151;
  font-style: italic;
}

.sci-home .sci-testimonial-grid small {
  display: block;
  height: 16px;
  margin-top: 12px;
  font-size: 16px;
  line-height: 16px;
  letter-spacing: 0;
}

.sci-home .sci-success {
  padding-block: 96px;
}

.sci-home .sci-success h2 {
  font-size: 48px !important;
  line-height: 48px !important;
  font-weight: 800 !important;
}

.sci-home .sci-success p {
  max-width: 672px;
  margin-top: 16px;
  font-size: 18px;
  line-height: 28px;
}

.sci-home .sci-success__stats {
  gap: 64px;
  margin: 40px 0 0;
}

.sci-home .sci-success__stats strong {
  font-size: 48px;
  line-height: 48px;
  font-weight: 800;
}

.sci-home .sci-success__stats span {
  margin-top: 4px;
  font-size: 14px;
  line-height: 20px;
}

.sci-home .sci-faq {
  padding-block: 64px;
}

.sci-home .sci-faq-list article {
  padding: 24px;
}

.sci-home .sci-faq-list h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  margin: 0 0 16px;
}

.sci-home .sci-faq-list h3 span {
  display: inline-flex;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
}

.sci-home .sci-faq-list p {
  margin: 0;
  color: #374151;
}

.sci-footer {
  padding-block: 40px;
  font-size: 14px;
  line-height: 20px;
}

.sci-footer__inner {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px;
  min-height: 164px;
  padding-block: 0;
}

.sci-footer p {
  max-width: none;
  margin-top: 12px;
  font-size: 14px;
  line-height: 20px;
}

.sci-footer__inner > div:first-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.sci-footer .sci-logo {
  font-size: 14px;
  line-height: 20px;
}

.sci-footer .sci-logo__icon,
.sci-footer .sci-logo__icon svg {
  width: 16px;
  height: 16px;
}

.sci-footer h3 {
  margin-bottom: 6px;
  font-size: 14px;
  line-height: 20px;
}

.sci-footer a:not(.sci-logo) {
  margin-top: 8px;
  font-size: 14px;
  line-height: 20px;
}

.sci-footer__bottom {
  border-top: 0;
  margin-top: 32px;
  padding: 0;
  font-size: 12px;
  line-height: 16px;
}

.sci-footer__inner > div:not(:first-child) {
  padding-bottom: 4px;
}

@media (min-width: 1024px) {
  .sci-home .sci-notion-card {
    min-height: clamp(351px, calc(653px - 23.55vw), 412px);
  }
}

@media (min-width: 1200px) {
  .sci-home .sci-price-grid {
    grid-auto-rows: 528px;
  }

  .sci-home .sci-price-card {
    height: 528px;
  }
}

@media (max-width: 1023px) {
  .sci-home .sci-showcase__image > img {
    aspect-ratio: 10 / 7;
  }

  .sci-home .sci-showcase__mini {
    right: -32px;
  }
}

@media (max-width: 1199px) {
  .sci-home .sci-price-card {
    padding-bottom: 21px;
  }

  .sci-home .sci-price-card.is-popular {
    padding-bottom: 27px;
  }
}

@media (max-width: 639px) {
  .sci-home .sci-notion-card {
    min-height: 433px;
  }

  .sci-home .sci-section-title .sci-eyebrow {
    font-size: 12px !important;
    line-height: 16px !important;
  }

  .sci-home .sci-section-title p:not(.sci-eyebrow) {
    font-size: 16px !important;
    line-height: 24px !important;
  }

  .sci-home .sci-demo-grid h2,
  .sci-home .sci-showcase h2 {
    line-height: 36px !important;
  }

  .sci-home .sci-stats-grid strong {
    font-size: 30px;
    line-height: 36px;
  }

  .sci-home .sci-success h2 {
    font-size: 36px !important;
    line-height: 36px !important;
  }

  .sci-home .sci-success__stats {
    flex-direction: row;
    gap: 32px;
  }

  .sci-home .sci-success__stats strong {
    font-size: 36px;
    line-height: 40px;
  }

  .sci-home .sci-showcase__mini {
    right: -32px;
    bottom: -32px;
    width: 192px;
  }
}

@media (max-width: 767px) {
  .sci-footer__inner {
    grid-template-columns: 1fr;
  }
}

/* Unified login portal */
.sci-login-demo {
  width: 100%;
  min-height: 38px;
  margin-top: 18px;
  border: 1px dashed #93a9df;
  border-radius: 6px;
  background: #f8faff;
  color: #1e3a8a;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.sci-login-demo:hover,
.sci-login-demo:focus-visible {
  border-style: solid;
  outline: none;
  background: #eef4ff;
}

.sci-login-space-picker {
  margin-top: 22px;
  text-align: left;
}

.sci-login-space-picker__head {
  display: flex;
  min-height: 24px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.sci-login-space-picker__head > span {
  color: #1e3a8a;
  font-size: 13px;
  line-height: 20px;
  font-weight: 700;
}

.sci-login-space-picker__head button {
  border: 0;
  padding: 0;
  background: transparent;
  color: #dc2626;
  font-size: 12px;
  line-height: 20px;
  font-weight: 700;
  cursor: pointer;
}

.sci-login-space-picker__head button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sci-login-space-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.sci-login-space {
  display: grid;
  min-width: 0;
  min-height: 64px;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  padding: 9px 10px;
  background: #fff;
  color: #1e3a8a;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.sci-login-space:hover {
  border-color: #93a9df;
  background: #f8faff;
}

.sci-login-space.is-active {
  border-color: #1e3a8a;
  background: #eff6ff;
  box-shadow: inset 3px 0 0 #dc2626;
}

.sci-login-space__mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: #eef2ff;
  color: #1e3a8a;
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
}

.sci-login-space.is-active .sci-login-space__mark {
  background: #1e3a8a;
  color: #fff;
}

.sci-login-space strong,
.sci-login-space small {
  display: block;
  overflow-wrap: anywhere;
  letter-spacing: 0;
}

.sci-login-space strong {
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
}

.sci-login-space small {
  margin-top: 2px;
  color: #64748b;
  font-size: 11px;
  line-height: 15px;
}

.sci-auth-promo h1 .sci-auth-promo__lead {
  display: inline;
  color: #1e3a8a !important;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: currentColor;
}

.sci-auth--login .sci-auth-form {
  margin-top: 18px;
}

.sci-auth--login .form-error-box {
  margin-top: 16px;
}

@media (max-width: 420px) {
  .sci-login-space {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px;
    padding-inline: 8px;
  }

  .sci-login-space__mark {
    width: 30px;
    height: 30px;
  }

  .sci-login-space strong {
    font-size: 12px;
  }
}

/* Connected learning flow: catalogue, course and lesson stay in one workspace. */
.sci-course-page--dashboard {
  width: 100%;
  background: transparent;
}

.sci-course-page--dashboard .sci-course-hero {
  display: block;
  border: 0;
  border-radius: 22px;
  padding: 1.5rem;
  background: linear-gradient(135deg, #071848 0%, #173fba 64%, #dc263f 100%);
  box-shadow: 0 18px 42px rgba(8, 21, 74, .13);
}

.sci-course-page--dashboard .sci-course-hero__bg {
  display: none;
}

.sci-course-page--dashboard .sci-container {
  width: 100%;
  max-width: none;
}

.sci-course-page--dashboard .sci-breadcrumb {
  margin-bottom: 1.25rem;
}

.sci-course-page--dashboard .sci-course-hero__grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
  gap: 1.5rem;
}

.sci-course-page--dashboard .sci-course-copy h1 {
  margin: 1rem 0 .8rem;
  font-size: 40px;
  letter-spacing: 0;
}

.sci-course-page--dashboard .sci-course-copy p {
  margin: 0 0 1rem;
  font-size: 16px;
}

.sci-course-page--dashboard .sci-course-card {
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 18px;
  box-shadow: 0 18px 38px rgba(2, 6, 23, .22);
}

.sci-course-page--dashboard .sci-course-card img {
  height: 150px;
  object-fit: cover;
}

.sci-course-page--dashboard .sci-course-card__body {
  gap: .8rem;
  padding: 1rem;
}

.sci-course-page--dashboard .sci-course-card__price strong {
  font-size: 24px;
}

.sci-course-page--dashboard .sci-course-card li {
  font-size: 13px;
}

.sci-course-card__leave {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.sci-course-card__leave:hover {
  color: #b91c1c;
}

.sci-course-page--dashboard .sci-course-main {
  padding: 1.5rem 0 2rem;
}

.sci-course-page--dashboard .sci-course-objectives {
  margin-bottom: 1.25rem;
}

.sci-course-page--dashboard .sci-course-objectives h2 {
  margin: .65rem 0 1rem;
  font-size: 28px;
}

.sci-course-page--dashboard .sci-objective-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
}

.sci-course-page--dashboard .sci-objective-grid article {
  border-radius: 12px;
  padding: .9rem;
  box-shadow: none;
}

.sci-course-page--dashboard .sci-course-content-grid {
  grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr);
  gap: 1rem;
}

.sci-course-page--dashboard .sci-course-cta {
  margin-top: 1.25rem;
  border-radius: 18px;
  padding: 2rem 1.25rem;
}

.sci-course-page--dashboard .sci-course-cta h2 {
  font-size: 30px;
}

.sc-lesson-page {
  width: 100%;
}

.sc-lesson-page .sc-lesson-layout {
  grid-template-columns: 300px minmax(0, 1fr);
}

.sc-lesson-page .sc-lesson-main {
  min-width: 0;
}

.sc-lesson-outline {
  max-height: calc(100dvh - 116px);
  overflow: auto;
}

.sc-lesson-outline h2 {
  margin: .25rem 0 1rem;
  color: var(--sci-blue-900);
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: 0;
}

.sc-lesson-outline nav,
.sc-lesson-outline details > div {
  display: grid;
  gap: .45rem;
}

.sc-lesson-outline details {
  border-top: 1px solid var(--sci-border);
  padding-top: .7rem;
}

.sc-lesson-outline summary {
  cursor: pointer;
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}

.sc-lesson-outline details > div {
  margin-top: .55rem;
}

.sc-lesson-outline details a {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: .55rem;
  border-radius: 10px;
  padding: .55rem;
  color: #475569;
  text-decoration: none;
}

.sc-lesson-outline details a > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: #eef2ff;
  color: #173fba;
  font-size: 12px;
  font-weight: 900;
}

.sc-lesson-outline details a strong {
  min-width: 0;
  font-size: 12px;
  line-height: 1.3;
}

.sc-lesson-outline details a:hover,
.sc-lesson-outline details a.is-current {
  background: #eef5ff;
  color: #08154a;
}

.sc-lesson-outline details a.is-current {
  box-shadow: inset 3px 0 0 #dc263f;
}

.sc-lesson-pager {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: .8rem;
}

.sc-lesson-pager > a {
  display: grid;
  gap: .25rem;
  min-width: 0;
  border: 1px solid var(--sci-border);
  border-radius: 12px;
  padding: .9rem 1rem;
  background: #fff;
  color: #08154a;
  text-decoration: none;
}

.sc-lesson-pager > a:last-child {
  text-align: right;
}

.sc-lesson-pager > a:hover {
  border-color: #173fba;
  background: #eef5ff;
}

.sc-lesson-pager span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.sc-lesson-pager strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sc-lesson-pager .sc-lesson-pager__program {
  place-items: center;
  padding-inline: 1.2rem;
  font-weight: 900;
}

.course-latex {
  overflow-y: hidden;
}

/* Full viewport slide presentation. */
html.is-slide-presenting,
body.is-slide-presenting {
  overflow: hidden !important;
}

.sc-rendered-slides.is-lesson-presentation {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid !important;
  width: 100vw;
  height: 100dvh;
  margin: 0;
  padding: 18px 22px;
  background:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px),
    #071848;
  background-size: 32px 32px;
  overflow: hidden;
}

.is-lesson-presentation .slide-deck {
  display: grid;
  grid-template-rows: auto 4px minmax(0, 1fr) auto;
  gap: 12px;
  width: 100%;
  height: 100%;
}

.slide-deck__presentation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #fff;
}

.slide-deck__presentation-header > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 2px 14px;
  min-width: 0;
}

.slide-deck__presentation-header span {
  grid-row: 1 / 3;
  align-self: center;
  color: #f43f5e;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.slide-deck__presentation-header strong,
.slide-deck__presentation-header small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slide-deck__presentation-header strong {
  font-size: 16px;
}

.slide-deck__presentation-header small {
  color: #cbd5e1;
  font-size: 13px;
}

.slide-deck__presentation-header button {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

.slide-deck__presentation-header button:hover,
.slide-deck__presentation-header button:focus-visible {
  background: #dc263f;
  outline: 3px solid rgba(255, 255, 255, .32);
}

.slide-deck__progress {
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
}

.slide-deck__progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #f43f5e;
  transition: width .22s ease;
}

.is-lesson-presentation .slide-deck__stage {
  display: grid;
  min-height: 0;
  place-items: center;
  overflow: hidden;
}

.is-lesson-presentation .slide-card-render {
  width: min(100%, calc((100dvh - 154px) * 16 / 9));
  min-height: 0;
  max-height: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  border: 0 !important;
  border-radius: 18px !important;
  padding: 28px 34px;
  background: #fff !important;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .3) !important;
  overflow: auto;
}

.is-lesson-presentation .slide-card-render__top {
  margin-bottom: 20px;
}

.is-lesson-presentation .slide-card-render__body {
  display: flex;
  min-height: calc(100% - 40px);
  flex-direction: column;
  justify-content: center;
  color: #08154a !important;
  font-size: 20px;
  line-height: 1.55;
}

.is-lesson-presentation .slide-card-render__body h1,
.is-lesson-presentation .slide-card-render__body h2 {
  margin: 0 0 18px;
  color: #08154a !important;
  font-size: 44px !important;
  line-height: 1.08 !important;
  letter-spacing: 0;
}

.is-lesson-presentation .slide-card-render__body p,
.is-lesson-presentation .slide-card-render__body li {
  font-size: 20px;
  line-height: 1.55;
}

.is-lesson-presentation .course-latex {
  overflow: hidden;
}

.is-lesson-presentation .slide-deck__controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
}

.is-lesson-presentation .slide-deck__controls button {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  width: max-content;
  min-height: 44px;
  border-color: rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.is-lesson-presentation .slide-deck__controls button:last-child {
  justify-self: end;
}

.is-lesson-presentation .slide-deck__controls button:not(:disabled):hover {
  border-color: #fff;
  background: #fff;
  color: #08154a;
}

.is-lesson-presentation .slide-deck__controls > span {
  color: #fff;
  font-size: 14px;
}

@media (max-width: 1180px) {
  .sci-course-page--dashboard .sci-course-hero__grid,
  .sci-course-page--dashboard .sci-course-content-grid {
    grid-template-columns: 1fr;
  }

  .sci-course-page--dashboard .sci-course-card {
    display: grid;
    grid-template-columns: minmax(220px, .55fr) minmax(0, 1fr);
  }

  .sci-course-page--dashboard .sci-course-card img {
    width: 100%;
    height: 100%;
    min-height: 190px;
  }

  .sc-lesson-page .sc-lesson-layout {
    grid-template-columns: 1fr;
  }

  .sc-lesson-page .sc-lesson-main {
    order: 1;
  }

  .sc-lesson-page .sc-lesson-sidebar {
    order: 2;
  }

  .sc-lesson-outline {
    position: static;
    max-height: none;
  }
}

@media (max-width: 720px) {
  .sci-course-page--dashboard .sci-course-hero {
    border-radius: 16px;
    padding: 1rem;
  }

  .sci-course-page--dashboard .sci-course-copy h1 {
    font-size: 30px;
  }

  .sci-course-page--dashboard .sci-course-card {
    display: block;
  }

  .sci-course-page--dashboard .sci-objective-grid {
    grid-template-columns: 1fr;
  }

  .sc-lesson-pager {
    grid-template-columns: 1fr;
  }

  .sc-lesson-pager > span {
    display: none;
  }

  .sc-lesson-pager > a:last-child {
    text-align: left;
  }

  .sc-rendered-slides.is-lesson-presentation {
    padding: 10px;
  }

  .slide-deck__presentation-header > div {
    display: block;
  }

  .slide-deck__presentation-header span,
  .slide-deck__presentation-header small {
    display: none;
  }

  .slide-deck__presentation-header strong {
    display: block;
    max-width: calc(100vw - 78px);
    font-size: 14px;
  }

  .is-lesson-presentation .slide-card-render {
    width: 100%;
    height: 100%;
    max-height: none;
    aspect-ratio: auto;
    border-radius: 14px !important;
    padding: 20px;
  }

  .is-lesson-presentation .slide-card-render__body {
    justify-content: flex-start;
    font-size: 17px;
  }

  .is-lesson-presentation .slide-card-render__body h1,
  .is-lesson-presentation .slide-card-render__body h2 {
    font-size: 30px !important;
  }

  .is-lesson-presentation .slide-card-render__body p,
  .is-lesson-presentation .slide-card-render__body li {
    font-size: 17px;
  }

  .is-lesson-presentation .slide-deck__controls {
    grid-template-columns: 1fr auto 1fr;
  }

  .is-lesson-presentation .slide-deck__controls button {
    width: auto;
    min-width: 44px;
    padding: .55rem .7rem;
  }

  .is-lesson-presentation .slide-deck__controls button span:not([aria-hidden="true"]) {
    display: none;
  }
}

/* React SciencesClaires course experience, transposed to Django. */
.sc-course-experience-body .cc-app-main {
  width: 100%;
  margin: 0;
  padding: 0 !important;
  background: #f8fafc;
}

.sc-public-main > .react-course-page {
  margin-top: -64px;
}

.react-course-page,
.react-learn-shell {
  color: #0f172a;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.react-course-hero {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #3b1769 48%, #0f172a 100%);
  color: #fff;
}

.react-course-hero__pattern {
  position: absolute;
  inset: 0;
  opacity: .1;
  background-image:
    linear-gradient(rgba(255,255,255,.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(180deg, #000, transparent 92%);
  pointer-events: none;
}

.react-course-hero__orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.react-course-hero__orbs i {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(1px);
  animation: react-course-orb 9s ease-in-out infinite;
}

.react-course-hero__orbs i:nth-child(1) {
  top: -240px;
  right: -190px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(59,130,246,.34), transparent 68%);
}

.react-course-hero__orbs i:nth-child(2) {
  bottom: -210px;
  left: -170px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(168,85,247,.3), transparent 68%);
  animation-delay: -3s;
}

.react-course-hero__orbs i:nth-child(3) {
  top: 24%;
  left: 34%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(236,72,153,.2), transparent 68%);
  animation-delay: -6s;
}

.react-course-hero__particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.react-course-hero__particles i {
  position: absolute;
  left: var(--particle-x);
  top: var(--particle-y);
  width: var(--particle-size);
  height: var(--particle-size);
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  animation: react-course-particle var(--particle-duration) ease-in-out var(--particle-delay) infinite;
}

.react-course-breadcrumb,
.react-course-hero__grid,
.react-course-content {
  width: min(100% - 48px, 1240px);
  margin-inline: auto;
}

.react-course-breadcrumb {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: .55rem;
  padding-top: 26px;
  color: rgba(255,255,255,.58);
  font-size: 13px;
}

.react-course-breadcrumb a {
  color: inherit;
  text-decoration: none;
  transition: color .18s ease, transform .18s ease;
}

.react-course-breadcrumb a:hover {
  color: #fff;
  transform: translateY(-1px);
}

.react-course-breadcrumb strong {
  color: rgba(255,255,255,.84);
}

.react-course-hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(330px, 2fr);
  align-items: center;
  gap: 48px;
  padding-block: 54px 76px;
}

.react-course-hero__copy {
  display: grid;
  gap: 24px;
  min-width: 0;
}

[data-react-enter] {
  opacity: 0;
  transform: translateY(24px);
  animation: react-course-enter .62s cubic-bezier(.2,.8,.2,1) var(--enter-delay,0s) forwards;
}

.react-course-badges,
.react-course-stats,
.react-course-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.react-course-badges span {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 34px;
  border: 1px solid;
  border-radius: 999px;
  padding: .35rem .8rem;
  font-size: 12px;
  font-weight: 750;
}

.react-course-badges span::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-130%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  animation: react-course-shimmer 3s ease-in-out infinite;
}

.react-course-badges .is-popular { border-color: rgba(245,158,11,.35); background: rgba(245,158,11,.14); color: #fbbf24; }
.react-course-badges .is-level { border-color: rgba(59,130,246,.35); background: rgba(59,130,246,.14); color: #93c5fd; }
.react-course-badges .is-rating { border-color: rgba(16,185,129,.35); background: rgba(16,185,129,.14); color: #6ee7b7; }
.react-course-badges .is-difficulty { border-color: rgba(168,85,247,.35); background: rgba(168,85,247,.14); color: #d8b4fe; }

.react-course-hero h1 {
  max-width: 820px;
  margin: 0;
  color: #fff;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 950;
  line-height: 1.02;
  letter-spacing: 0;
}

.sc-course-experience-body .cc-app-main .react-course-hero h1 {
  color: #fff !important;
}

.react-course-hero__subtitle {
  max-width: 760px;
  margin: 0;
  color: rgba(255,255,255,.76);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.55;
}

.sc-course-experience-body .cc-app-main .react-course-hero__subtitle {
  color: rgba(255,255,255,.76) !important;
}

.react-course-stats > span {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  min-height: 38px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  padding: .4rem .8rem;
  background: rgba(255,255,255,.09);
  backdrop-filter: blur(12px);
}

.react-course-stats b { color: #c4b5fd; }
.react-course-stats .react-stars { color: #fbbf24; letter-spacing: 1px; }
.react-course-stats strong { color: #fff; font-size: 13px; }
.react-course-stats small { color: rgba(255,255,255,.58); font-size: 11px; }

.react-course-author {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 520px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255,255,255,.055);
  backdrop-filter: blur(12px);
}

.react-course-author__avatar {
  display: grid;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #60a5fa, #a855f7, #ec4899);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 32px rgba(168,85,247,.28);
  transition: transform .25s ease;
}

.react-course-author:hover .react-course-author__avatar {
  transform: rotate(5deg) scale(1.07);
}

.react-course-author div { display: grid; gap: 1px; }
.react-course-author small { color: rgba(255,255,255,.55); font-size: 11px; }
.react-course-author strong { color: #fff; font-size: 16px; }
.react-course-author div > span { color: rgba(255,255,255,.58); font-size: 11px; }
.react-course-author i { padding-inline: .3rem; }

.react-course-meta {
  color: rgba(255,255,255,.66);
  font-size: 12px;
  gap: 18px;
}

.react-course-action-card {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 24px;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(20px);
  box-shadow: 0 28px 75px rgba(18,8,50,.4);
  transform-style: preserve-3d;
  transition: transform .3s ease, box-shadow .3s ease;
}

.react-course-action-card:hover {
  transform: translateY(-5px) rotateX(1deg);
  box-shadow: 0 34px 90px rgba(18,8,50,.5);
}

.react-course-action-card__visual {
  position: relative;
  height: 215px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(0deg, rgba(15,23,42,.52), transparent),
    linear-gradient(135deg, #3b82f6, #a855f7 55%, #ec4899);
  background-position: center;
  background-size: cover;
}

.react-course-play {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border: 2px solid rgba(255,255,255,.35);
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  color: #fff;
  text-decoration: none;
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 38px rgba(0,0,0,.25);
  animation: react-course-play 2s ease-in-out infinite;
}

.react-course-play span {
  margin-left: 4px;
  font-size: 28px;
}

.react-course-preview-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  border-radius: 999px;
  padding: .4rem .7rem;
  background: rgba(255,255,255,.2);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.react-course-action-card__visual-progress {
  position: absolute;
  inset: auto 0 0;
  display: block;
  height: 5px;
  background: rgba(0,0,0,.25);
}

.react-course-action-card__visual-progress em,
.react-course-progress-line em,
.react-learn-header-progress em,
.react-learn-outline__progress em,
.react-learn-outline nav a div > i em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #34d399, #14b8a6);
}

.react-course-action-card__body {
  display: grid;
  gap: 17px;
  padding: 22px;
}

.react-course-price {
  display: grid;
  justify-items: center;
  gap: 2px;
  color: #fff;
}

.react-course-price strong {
  font-size: 34px;
  font-weight: 950;
}

.react-course-price span,
.react-course-progress-copy span {
  color: rgba(255,255,255,.62);
  font-size: 12px;
}

.react-course-progress-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.react-course-progress-copy strong {
  color: #34d399;
  font-size: 25px;
}

.react-course-progress-line {
  display: block;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
}

.react-course-primary-action,
.react-course-final-cta a {
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  border-radius: 15px;
  padding-inline: 18px;
  background: linear-gradient(90deg, #3b82f6, #a855f7, #ec4899);
  color: #fff;
  font-size: 15px;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(168,85,247,.28);
  transition: transform .18s ease, box-shadow .18s ease;
}

.react-course-primary-action:hover,
.react-course-final-cta a:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(168,85,247,.4);
}

.react-action-ripple {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  transform: translate(-50%,-50%);
  animation: react-course-ripple .65s ease-out forwards;
  pointer-events: none;
}

.react-course-features {
  display: grid;
  gap: 10px;
  margin: 0;
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 17px 0 0;
  list-style: none;
}

.react-course-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.76);
  font-size: 12px;
}

.react-course-features li span {
  width: 20px;
  color: #c4b5fd;
  text-align: center;
}

.react-course-leave {
  color: rgba(255,255,255,.5);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.react-course-leave:hover { color: #fda4af; }
.react-course-mobile-action { display: none; }

.react-course-content {
  padding-block: 76px;
}

.react-course-content__main {
  display: grid;
  gap: 68px;
  width: min(100%, 900px);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .62s ease, transform .62s cubic-bezier(.2,.8,.2,1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.react-course-learning-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #dbeafe;
  border-radius: 24px;
  padding: 30px;
  background: linear-gradient(135deg, #eff6ff, #faf5ff);
}

.react-course-learning-card::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(147,197,253,.3), rgba(216,180,254,.3));
}

.react-course-learning-card header,
.react-course-info-section header,
.react-course-description header,
.react-course-program > header > div {
  display: flex;
  align-items: center;
  gap: 13px;
}

.react-course-learning-card h2,
.react-course-program h2,
.react-course-info-section h2,
.react-course-description h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #1e293b;
  font-size: 24px;
  font-weight: 850;
}

.react-section-icon {
  display: grid;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  font-size: 18px;
  font-style: normal;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(15,23,42,.16);
  transition: transform .2s ease;
}

section:hover > header .react-section-icon { transform: rotate(7deg); }
.react-section-icon.is-blue { background: linear-gradient(135deg, #3b82f6, #a855f7); }
.react-section-icon.is-purple { background: linear-gradient(135deg, #a855f7, #ec4899); }
.react-section-icon.is-orange { background: linear-gradient(135deg, #f59e0b, #f97316); }
.react-section-icon.is-dark { background: linear-gradient(135deg, #334155, #0f172a); }
.react-section-icon.is-cyan { background: linear-gradient(135deg, #3b82f6, #06b6d4); }

.react-course-objectives {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
  margin-top: 26px;
}

.react-course-objectives article {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 16px;
  padding: 15px;
  background: rgba(255,255,255,.76);
  box-shadow: 0 5px 16px rgba(15,23,42,.04);
  transition: transform .18s ease, background .18s ease;
}

.react-course-objectives article:hover {
  transform: translateY(-2px);
  background: #fff;
}

.react-course-objectives article > span {
  display: grid;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #10b981;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.react-course-objectives p,
.react-course-info-section p {
  margin: 0;
  color: #475569;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.55;
}

.react-course-program > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 25px;
}

.react-course-program > header > p {
  margin: 0;
  border-radius: 999px;
  padding: .48rem .8rem;
  background: #f1f5f9;
  color: #64748b;
  font-size: 12px;
}

.react-course-modules {
  display: grid;
  gap: 13px;
}

.react-course-module {
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(15,23,42,.035);
  transition: box-shadow .2s ease, transform .2s ease;
}

.react-course-module:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(15,23,42,.08);
}

.react-course-module summary {
  display: flex;
  min-height: 72px;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: linear-gradient(90deg, #f8fafc, #fff);
  cursor: pointer;
  list-style: none;
}

.react-course-module summary::-webkit-details-marker { display: none; }

.react-course-module summary > span {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #94a3b8, #64748b);
  color: #fff;
  font-weight: 850;
  transition: background .2s ease;
}

.react-course-module[open] summary > span {
  background: linear-gradient(135deg, #a855f7, #ec4899);
}

.react-course-module summary > div {
  display: grid;
  flex: 1;
  gap: 2px;
  min-width: 0;
}

.react-course-module summary strong { color: #1e293b; font-size: 15px; }
.react-course-module summary small { color: #64748b; font-size: 11px; }
.react-course-module summary > b { color: #94a3b8; font-size: 20px; transition: transform .25s ease; }
.react-course-module[open] summary > b { transform: rotate(180deg); }

.react-course-module__lessons {
  border-top: 1px solid #f1f5f9;
}

.react-course-module__lessons a,
.react-course-module__lessons > div {
  display: grid;
  grid-template-columns: 32px minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  border-bottom: 1px solid #f1f5f9;
  padding: 10px 16px;
  color: #475569;
  text-decoration: none;
  transition: background .18s ease, transform .18s ease;
}

.react-course-module__lessons a:last-child,
.react-course-module__lessons > div:last-child { border-bottom: 0; }

.react-course-module__lessons a:hover {
  transform: translateX(4px);
  background: rgba(250,245,255,.75);
}

.react-course-module__lessons a > span,
.react-course-module__lessons > div > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #059669;
  font-size: 12px;
  font-weight: 900;
}

.react-course-module__lessons > div > span {
  background: #e2e8f0;
  color: #64748b;
}

.react-course-module__lessons strong { overflow: hidden; color: #475569; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.react-course-module__lessons small { border-radius: 999px; padding: .3rem .55rem; background: #f1f5f9; color: #64748b; font-size: 11px; white-space: nowrap; }

.react-course-expand {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 20px auto 0;
  border: 0;
  border-radius: 12px;
  padding: .7rem 1rem;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.react-course-expand span { transition: transform .2s ease; }
.react-course-expand.is-expanded span { transform: rotate(180deg); }

.react-course-info-section,
.react-course-description {
  display: grid;
  gap: 24px;
}

.react-course-info-section > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 13px;
}

.react-course-info-section article {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(135deg, #fffbeb, #fff7ed);
}

.react-course-info-section article > span {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #fff;
  font-size: 12px;
}

.react-course-info-section.is-audience article {
  border-color: #bae6fd;
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.react-course-info-section.is-audience article > span {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.react-course-description > article {
  border: 1px solid #f1f5f9;
  border-radius: 18px;
  padding: 24px;
  background: #fff;
  color: #475569;
  font-size: 16px;
  line-height: 1.75;
  box-shadow: 0 5px 18px rgba(15,23,42,.04);
}

.react-course-description p { margin: 0 0 1rem; }
.react-course-description p:last-child { margin-bottom: 0; }

.react-course-final-cta {
  position: relative;
  overflow: hidden;
  padding: 82px 24px;
  background: linear-gradient(135deg, #0f172a, #3b1769 52%, #0f172a);
  color: #fff;
  text-align: center;
}

.react-course-final-cta > div:last-child {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 18px;
  max-width: 760px;
  margin: auto;
}

.react-course-final-cta > div > span {
  border-radius: 999px;
  padding: .55rem 1rem;
  background: rgba(255,255,255,.1);
  color: #fbbf24;
  font-size: 12px;
  font-weight: 700;
}

.react-course-final-cta h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 5vw, 50px);
  font-weight: 950;
  letter-spacing: 0;
}

.sc-course-experience-body .cc-app-main .react-course-final-cta h2 {
  color: #fff !important;
}

.react-course-final-cta p {
  margin: 0;
  color: rgba(255,255,255,.68);
  font-size: 18px;
  line-height: 1.6;
}

.react-course-final-cta a {
  min-width: 250px;
  min-height: 56px;
  margin-top: 8px;
  font-size: 17px;
}

/* React learning reader. */
.react-learn-shell {
  position: relative;
  display: flex;
  height: calc(100dvh - 76px);
  min-height: 590px;
  flex-direction: column;
  overflow: hidden;
  background: #f8fafc;
}

.react-learn-scroll-progress {
  position: absolute;
  inset: 0 0 auto;
  z-index: 62;
  display: block;
  height: 3px;
  background: #4f46e5;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .12s linear;
}

.react-learn-header {
  position: relative;
  z-index: 50;
  display: flex;
  flex: 0 0 56px;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #e2e8f0;
  padding: 0 20px;
  background: #fff;
}

.react-learn-header__left,
.react-learn-header__right,
.react-learn-course-name,
.react-learn-back {
  display: flex;
  align-items: center;
}

.react-learn-header__left { gap: 11px; min-width: 0; }
.react-learn-header__left > i { width: 1px; height: 20px; background: #e2e8f0; }

.react-learn-back {
  gap: 5px;
  border-radius: 8px;
  padding: 7px 8px;
  color: #64748b;
  text-decoration: none;
}

.react-learn-back:hover { background: #f1f5f9; color: #0f172a; }
.react-learn-back span { font-size: 24px; line-height: .7; }
.react-learn-back b { font-size: 12px; }

.react-learn-course-name {
  gap: 9px;
  min-width: 0;
}

.react-learn-course-name > span {
  display: grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  background: #4f46e5;
  color: #fff;
  font-size: 13px;
}

.react-learn-course-name strong {
  overflow: hidden;
  max-width: 320px;
  color: #0f172a;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.react-learn-header__right { gap: 15px; }

.react-learn-header-progress {
  display: flex;
  align-items: center;
  gap: 10px;
}

.react-learn-header-progress > i {
  display: block;
  width: 118px;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.react-learn-header-progress > i em {
  background: linear-gradient(90deg, #4f46e5, #9333ea);
}

.react-learn-header-progress > span {
  color: #64748b;
  font-size: 12px;
}

.react-learn-header-progress strong { color: #0f172a; }

.react-learn-mobile-menu {
  display: none;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #64748b;
  font-size: 18px;
}

.react-learn-mobile-menu:hover { background: #f1f5f9; }

.react-learn-body {
  position: relative;
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.react-learn-overlay { display: none; }

.react-learn-outline {
  position: relative;
  z-index: 40;
  display: flex;
  width: 320px;
  flex: 0 0 320px;
  min-height: 0;
  flex-direction: column;
  border-right: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #fff, #fff 60%, rgba(248,250,252,.95));
  transition: width .28s ease, flex-basis .28s ease, opacity .2s ease, transform .28s ease;
}

.react-learn-shell:not(.is-outline-open) .react-learn-outline {
  width: 0;
  flex-basis: 0;
  border-right: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateX(-24px);
}

.react-learn-outline > header {
  border-bottom: 1px solid #f1f5f9;
  padding: 18px;
}

.react-learn-outline__title {
  display: flex;
  align-items: center;
  gap: 11px;
}

.react-learn-outline__title > span {
  position: relative;
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1, #9333ea);
  color: #fff;
  box-shadow: 0 10px 24px rgba(99,102,241,.25);
}

.react-learn-outline__title > span i {
  position: absolute;
  right: -4px;
  bottom: -4px;
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #10b981;
  color: #fff;
  font-size: 7px;
  font-style: normal;
}

.react-learn-outline__title div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.react-learn-outline__title strong { color: #0f172a; font-size: 13px; }
.react-learn-outline__title small { color: #64748b; font-size: 10px; }

.react-learn-outline__progress {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}

.react-learn-outline__progress > i {
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #f1f5f9;
}

.react-learn-outline__progress > i em {
  background: linear-gradient(90deg, #6366f1, #9333ea, #4f46e5);
}

.react-learn-outline__progress > div {
  display: flex;
  justify-content: space-between;
  color: #94a3b8;
  font-size: 9px;
}

.react-learn-outline__progress b { color: #4f46e5; }

.react-learn-outline > nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px;
  scrollbar-width: thin;
}

.react-learn-outline nav section + section { margin-top: 14px; }

.react-learn-outline nav h2 {
  margin: 0 0 7px;
  padding: 0 5px;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.react-learn-outline nav a {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0,1fr) 14px;
  align-items: start;
  gap: 10px;
  margin-bottom: 7px;
  border: 1px solid rgba(226,232,240,.7);
  border-radius: 12px;
  padding: 11px;
  background: #fff;
  color: #475569;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.react-learn-outline nav a:hover {
  transform: translateX(3px);
  border-color: #cbd5e1;
  box-shadow: 0 7px 18px rgba(15,23,42,.07);
}

.react-learn-outline nav a.is-active {
  border: 2px solid #c7d2fe;
  background: linear-gradient(90deg, #eef2ff, #faf5ff);
  box-shadow: 0 7px 20px rgba(99,102,241,.12);
}

.react-learn-outline nav a.is-completed {
  border-color: rgba(167,243,208,.75);
  background: linear-gradient(90deg, rgba(236,253,245,.7), rgba(240,253,250,.7));
}

.react-learn-outline nav a > span {
  position: relative;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
}

.react-learn-outline nav a.is-active > span {
  background: linear-gradient(135deg, #6366f1, #9333ea);
  color: #fff;
  box-shadow: 0 8px 18px rgba(99,102,241,.25);
  animation: react-reader-active 2s ease-in-out infinite;
}

.react-learn-outline nav a.is-completed > span {
  background: linear-gradient(135deg, #34d399, #14b8a6);
  color: #fff;
}

.react-learn-outline nav a.is-active > span i {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 10px;
  height: 10px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #6366f1;
}

.react-learn-outline nav a > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.react-learn-outline nav a strong {
  color: inherit;
  font-size: 11px;
  line-height: 1.3;
}

.react-learn-outline nav a small {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #94a3b8;
  font-size: 9px;
}

.react-learn-outline nav a small b {
  border-radius: 999px;
  padding: 2px 5px;
  background: #e0e7ff;
  color: #4f46e5;
  font-size: 8px;
}

.react-learn-outline nav a.is-completed small b {
  background: #d1fae5;
  color: #047857;
}

.react-learn-outline nav a div > i {
  display: block;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: #f1f5f9;
}

.react-learn-outline nav a.is-active div > i em {
  background: linear-gradient(90deg, #818cf8, #a855f7);
}

.react-learn-outline nav a > b {
  color: #cbd5e1;
  font-size: 17px;
  line-height: 32px;
}

.react-learn-outline nav a.is-active > b { color: #6366f1; }

.react-learn-outline > footer {
  display: grid;
  grid-template-columns: 32px minmax(0,1fr) auto;
  align-items: center;
  gap: 9px;
  border-top: 1px solid #f1f5f9;
  padding: 14px 16px;
  background: linear-gradient(90deg, #f8fafc, rgba(238,242,255,.6));
}

.react-learn-outline > footer > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  color: #fff;
  font-size: 13px;
}

.react-learn-outline > footer div { display: grid; gap: 1px; }
.react-learn-outline > footer strong { color: #334155; font-size: 10px; }
.react-learn-outline > footer small { color: #64748b; font-size: 9px; }
.react-learn-outline > footer > b { color: #7c3aed; font-size: 17px; }

.react-learn-outline-handle {
  position: absolute;
  top: 14px;
  left: 310px;
  z-index: 45;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #94a3b8;
  font-size: 21px;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(15,23,42,.07);
  transition: left .28s ease, color .18s ease;
}

.react-learn-shell:not(.is-outline-open) .react-learn-outline-handle { left: 8px; }
.react-learn-outline-handle:hover { color: #475569; }

.react-learn-main {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.react-learn-main__inner {
  width: min(100% - 48px, 768px);
  margin: 0 auto;
  padding-block: 18px 44px;
}

.react-learn-tabs {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -18px -24px 24px;
  padding: 12px 24px;
  background: rgba(248,250,252,.94);
  backdrop-filter: blur(14px);
}

.react-learn-tabs > div {
  display: flex;
  align-items: center;
  gap: 3px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 3px;
  background: #fff;
  box-shadow: 0 3px 9px rgba(15,23,42,.04);
}

.react-learn-tabs button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 7px;
  padding: 7px 12px;
  background: transparent;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.react-learn-tabs button:hover { background: #f8fafc; color: #0f172a; }
.react-learn-tabs button.is-active { background: #4f46e5; color: #fff; box-shadow: 0 4px 10px rgba(79,70,229,.22); }
.react-learn-tabs button b { display: grid; min-width: 17px; height: 17px; place-items: center; border-radius: 999px; background: #e2e8f0; color: #475569; font-size: 8px; }
.react-learn-tabs button.is-active b { background: rgba(255,255,255,.2); color: #fff; }

.react-learn-tabs .react-learn-present {
  border: 1px solid #dbeafe;
  background: #fff;
  color: #4338ca;
}

.react-learn-tabs .react-learn-present:hover { border-color: #a5b4fc; background: #eef2ff; color: #3730a3; }

.react-learn-panel[hidden] { display: none !important; }
.react-learn-panel.is-active { animation: react-reader-panel .24s ease-out; }

.react-learn-chapter-head {
  margin-bottom: 26px;
}

.react-learn-chapter-head > span {
  display: inline-flex;
  border-radius: 6px;
  padding: .35rem .55rem;
  background: #e0e7ff;
  color: #4338ca;
  font-size: 10px;
  font-weight: 750;
}

.react-learn-chapter-head h1,
.react-learn-tab-heading h1 {
  margin: 12px 0 7px;
  color: #0f172a;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: 0;
}

.react-learn-chapter-head p,
.react-learn-tab-heading p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.react-learn-rendered {
  display: grid;
  gap: 16px;
  color: #334155;
  font-size: 15px;
  line-height: 1.75;
}

.react-learn-rendered > h1,
.react-learn-rendered > h2,
.react-learn-rendered > h3 {
  margin: 8px 0 0;
  color: #0f172a;
  letter-spacing: 0;
}

.react-learn-rendered > p { margin: 0; }

.react-learn-rendered .inline-slide {
  margin: 0;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(15,23,42,.045);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.react-learn-rendered .inline-slide:hover {
  transform: translateY(-1px);
  border-color: #cbd5e1;
  box-shadow: 0 10px 28px rgba(15,23,42,.07);
}

.react-learn-rendered .inline-slide h1,
.react-learn-rendered .inline-slide h2 {
  margin: 0 0 13px;
  color: #0f172a;
  font-size: 24px;
  line-height: 1.22;
  letter-spacing: 0;
}

.react-learn-rendered .inline-slide p { margin: 0 0 12px; }
.react-learn-rendered .inline-slide p:last-child { margin-bottom: 0; }
.react-learn-rendered .inline-slide ul,
.react-learn-rendered .inline-slide ol { margin: 12px 0 0; padding-left: 20px; }

.react-learn-rendered .course-callout {
  border-radius: 12px;
  padding: 14px;
}

.react-learn-rendered .course-callout--info { border-color: #bfdbfe; background: #eff6ff; }
.react-learn-rendered .course-callout--warning { border-color: #fde68a; background: #fffbeb; }

.react-learn-rendered .course-latex {
  border-color: #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.react-learn-complete {
  display: flex;
  justify-content: flex-end;
  margin-top: 26px;
}

.react-learn-complete button,
.react-learn-quiz-list form > button,
.react-learn-exercise-list form > button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 11px;
  padding: 10px 18px;
  background: #4f46e5;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(79,70,229,.2);
}

.react-learn-complete button:hover,
.react-learn-quiz-list form > button:hover,
.react-learn-exercise-list form > button:hover { background: #4338ca; transform: translateY(-1px); }

.react-learn-complete button span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
}

.react-learn-pager {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 14px;
  margin-top: 34px;
  border-top: 1px solid #e2e8f0;
  padding-top: 22px;
}

.react-learn-pager > a {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  padding: 10px 11px;
  color: #64748b;
  text-decoration: none;
  transition: background .18s ease, color .18s ease;
}

.react-learn-pager > a:last-child { justify-content: flex-end; text-align: right; }
.react-learn-pager > a:hover { background: #f1f5f9; color: #0f172a; }
.react-learn-pager > a > span { font-size: 24px; line-height: 1; }
.react-learn-pager > a div { display: grid; min-width: 0; gap: 1px; }
.react-learn-pager small { color: #94a3b8; font-size: 9px; text-transform: uppercase; }
.react-learn-pager strong { overflow: hidden; color: inherit; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

.react-learn-tab-heading {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 26px;
  border: 1px solid #e2e8f0;
  border-radius: 17px;
  padding: 20px;
  background: #fff;
}

.react-learn-tab-heading > span {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.react-learn-tab-heading > span.is-quiz { background: linear-gradient(135deg, #f59e0b, #f97316); }
.react-learn-tab-heading > span.is-exercise { background: linear-gradient(135deg, #6366f1, #9333ea); }
.react-learn-tab-heading div { min-width: 0; }
.react-learn-tab-heading small { color: #6366f1; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.react-learn-tab-heading h1 { margin-top: 4px; font-size: 27px; }

.react-learn-quiz-list,
.react-learn-exercise-list {
  display: grid;
  gap: 18px;
}

.react-learn-quiz-list > article,
.react-learn-exercise-list > article {
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 22px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(15,23,42,.05);
}

.react-learn-quiz-list article > header,
.react-learn-exercise-list article > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.react-learn-quiz-list article > header span,
.react-learn-exercise-list article > header span {
  color: #6366f1;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.react-learn-quiz-list article > header small,
.react-learn-exercise-list article > header small {
  color: #94a3b8;
  font-size: 10px;
}

.react-learn-quiz-list h2,
.react-learn-exercise-list h2 {
  margin: 0 0 16px;
  color: #0f172a;
  font-size: 20px;
  letter-spacing: 0;
}

.react-learn-quiz-list form {
  display: grid;
  gap: 9px;
}

.react-learn-quiz-list label {
  display: block;
  cursor: pointer;
}

.react-learn-quiz-list label input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.react-learn-quiz-list label span {
  display: block;
  border: 2px solid #e2e8f0;
  border-radius: 13px;
  padding: 13px 15px;
  color: #475569;
  font-size: 13px;
  font-weight: 650;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.react-learn-quiz-list label:hover span { border-color: #c7d2fe; background: #f8fafc; }
.react-learn-quiz-list label input:checked + span { border-color: #818cf8; background: #eef2ff; color: #3730a3; box-shadow: 0 5px 15px rgba(99,102,241,.1); }
.react-learn-quiz-list form > button { justify-self: end; margin-top: 7px; }

.react-learn-quiz-explanation {
  display: grid;
  gap: 4px;
  margin: 16px 0 0;
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  padding: 13px;
  background: #ecfdf5;
  color: #047857;
  font-size: 12px;
}

.react-learn-exercise-list article > header > div { display: grid; gap: 2px; }
.react-learn-exercise-list article > header a { color: #4f46e5; font-size: 11px; font-weight: 800; text-decoration: none; }
.react-learn-exercise-list > article > p { color: #64748b; font-size: 13px; line-height: 1.65; }
.react-learn-exercise-list details { margin: 14px 0; border-radius: 11px; padding: 10px 12px; background: #fffbeb; color: #92400e; font-size: 12px; }
.react-learn-exercise-list summary { cursor: pointer; font-weight: 800; }
.react-learn-exercise-list form { display: grid; gap: 8px; margin-top: 16px; }
.react-learn-exercise-list form label { color: #334155; font-size: 11px; font-weight: 800; }

.react-learn-exercise-list input,
.react-learn-exercise-list textarea {
  width: 100%;
  border: 2px solid #e2e8f0;
  border-radius: 13px;
  padding: 12px 14px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  outline: none;
}

.react-learn-exercise-list textarea {
  min-height: 190px;
  resize: vertical;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 12px;
}

.react-learn-exercise-list input:focus,
.react-learn-exercise-list textarea:focus { border-color: #818cf8; box-shadow: 0 0 0 4px #e0e7ff; }
.react-learn-exercise-list form > button { justify-self: end; }

.react-learn-attempts {
  display: grid;
  gap: 8px;
  margin-top: 28px;
}

.react-learn-attempts h2 { margin: 0 0 5px; color: #0f172a; font-size: 17px; }
.react-learn-attempts article { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid #e2e8f0; padding: 9px 2px; color: #475569; font-size: 11px; }

@keyframes react-course-enter {
  to { opacity: 1; transform: none; }
}

@keyframes react-course-orb {
  0%,100% { transform: scale(1); opacity: .65; }
  50% { transform: scale(1.18); opacity: 1; }
}

@keyframes react-course-particle {
  0%,100% { transform: translateY(0) scale(1); opacity: .2; }
  50% { transform: translateY(-30px) scale(1.2); opacity: .7; }
}

@keyframes react-course-shimmer {
  0%,40% { transform: translateX(-130%); }
  75%,100% { transform: translateX(130%); }
}

@keyframes react-course-play {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@keyframes react-course-ripple {
  to { width: 520px; height: 520px; opacity: 0; }
}

@keyframes react-reader-active {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.07); }
}

@keyframes react-reader-panel {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1100px) {
  .react-course-hero__grid {
    grid-template-columns: 1fr;
    padding-bottom: 74px;
  }

  .react-course-action-card {
    display: none;
  }

  .react-course-mobile-action {
    position: sticky;
    top: 0;
    z-index: 52;
    display: block;
    border-bottom: 1px solid rgba(226,232,240,.7);
    padding: 11px 16px;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 24px rgba(15,23,42,.06);
  }

  .react-course-mobile-action a {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: linear-gradient(90deg, #3b82f6, #a855f7, #ec4899);
    color: #fff;
    font-size: 14px;
    font-weight: 850;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(168,85,247,.22);
  }

  .react-course-content__main {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .react-learn-mobile-menu { display: grid; }
  .react-learn-outline-handle { display: none; }

  .react-learn-outline {
    position: absolute;
    inset: 0 auto 0 0;
    width: min(320px, 86vw);
    flex-basis: auto;
    box-shadow: 24px 0 60px rgba(15,23,42,.22);
    transform: translateX(-105%);
  }

  .react-learn-shell.is-outline-open .react-learn-outline {
    transform: translateX(0);
    opacity: 1;
  }

  .react-learn-shell:not(.is-outline-open) .react-learn-outline {
    width: min(320px, 86vw);
    border-right: 1px solid #e2e8f0;
    opacity: 1;
    transform: translateX(-105%);
  }

  .react-learn-shell.is-outline-open .react-learn-overlay {
    position: absolute;
    inset: 0;
    z-index: 35;
    display: block;
    background: rgba(15,23,42,.38);
    backdrop-filter: blur(2px);
  }
}

@media (max-width: 720px) {
  .react-course-breadcrumb,
  .react-course-hero__grid,
  .react-course-content {
    width: min(100% - 28px, 1240px);
  }

  .react-course-hero { min-height: 620px; }
  .react-course-breadcrumb { padding-top: 18px; font-size: 11px; }
  .react-course-hero__grid { gap: 30px; padding-block: 38px 66px; }
  .react-course-hero__copy { gap: 20px; }
  .react-course-hero h1 { font-size: clamp(36px, 11vw, 50px); }
  .react-course-hero__subtitle { font-size: 17px; }
  .react-course-stats > span { padding: .35rem .65rem; }
  .react-course-meta { gap: 9px 14px; }
  .react-course-content { padding-block: 48px; }
  .react-course-content__main { gap: 48px; }
  .react-course-learning-card { border-radius: 20px; padding: 20px; }
  .react-course-objectives { grid-template-columns: 1fr; }

  .react-course-program > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .react-course-program > header > p { align-self: stretch; text-align: center; }
  .react-course-info-section > div { grid-template-columns: 1fr; }
  .react-course-module summary { padding-inline: 13px; }

  .react-course-module__lessons a,
  .react-course-module__lessons > div {
    grid-template-columns: 30px minmax(0,1fr);
  }

  .react-course-module__lessons small {
    grid-column: 2;
    justify-self: start;
  }

  .react-course-final-cta { padding: 62px 18px; }
  .react-course-final-cta p { font-size: 16px; }

  .react-learn-shell { height: calc(100dvh - 76px); }
  .react-learn-header { padding: 0 10px; }
  .react-learn-back b,
  .react-learn-header__left > i,
  .react-learn-header-progress { display: none; }
  .react-learn-course-name strong { max-width: 190px; }

  .react-learn-main__inner {
    width: min(100% - 24px, 768px);
    padding-block: 14px 32px;
  }

  .react-learn-tabs {
    align-items: stretch;
    gap: 7px;
    margin: -14px -12px 20px;
    padding: 10px 12px;
    overflow-x: auto;
  }

  .react-learn-tabs > div { flex: 0 0 auto; }
  .react-learn-tabs button { min-height: 38px; padding-inline: 10px; }
  .react-learn-tabs .react-learn-present { flex: 0 0 auto; }
  .react-learn-chapter-head h1 { font-size: 29px; }
  .react-learn-rendered .inline-slide { border-radius: 14px; padding: 18px; }
  .react-learn-rendered .inline-slide h1,
  .react-learn-rendered .inline-slide h2 { font-size: 21px; }
  .react-learn-pager { grid-template-columns: 1fr; }
  .react-learn-pager > span { display: none; }
  .react-learn-pager > a:last-child { justify-content: flex-start; text-align: left; }
  .react-learn-tab-heading { padding: 16px; }
  .react-learn-tab-heading > span { flex-basis: 42px; width: 42px; height: 42px; }
  .react-learn-tab-heading h1 { font-size: 24px; }
  .react-learn-quiz-list > article,
  .react-learn-exercise-list > article { padding: 17px; }
  .react-learn-exercise-list article > header { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  [data-react-enter],
  [data-reveal],
  .react-course-hero__orbs i,
  .react-course-hero__particles i,
  .react-course-play,
  .react-course-badges span::after,
  .react-learn-outline nav a.is-active > span {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Final course palette lock */
.react-learn-course-name > span,
.react-learn-outline__title > span,
.react-learn-tabs button.is-active,
.react-learn-outline nav a.is-active > span {
  background: #1e3a8a !important;
  box-shadow: 0 8px 20px rgba(30, 58, 138, .2) !important;
}

.react-learn-header-progress > i em,
.react-learn-outline__progress > i em,
.react-learn-outline nav a.is-active div > i em {
  background: #2563eb !important;
}

.react-learn-outline nav a.is-active {
  border-color: #9db8ee !important;
  background: #f3f7ff !important;
  box-shadow: 0 7px 20px rgba(30, 58, 138, .1) !important;
}

.react-learn-outline nav a.is-active > span i {
  background: #dc2626 !important;
}

.react-learn-outline__progress b,
.react-learn-outline nav a.is-active > b,
.react-learn-outline > footer > b,
.react-learn-tab-heading small {
  color: #1e3a8a !important;
}

.react-learn-outline nav a small b,
.react-learn-chapter-head > span {
  background: #e8eefc !important;
  color: #1e3a8a !important;
}

.react-learn-tabs .react-learn-present {
  border-color: #b8c8e8 !important;
  color: #1e3a8a !important;
}

.react-learn-complete button,
.react-learn-quiz-list form > button,
.react-learn-exercise-list form > button {
  background: #1e3a8a !important;
  box-shadow: 0 8px 20px rgba(30, 58, 138, .18) !important;
}

.react-learn-tab-heading > span.is-exercise {
  background: #dc2626 !important;
}

.react-learn-quiz-list article > header span,
.react-learn-exercise-list article > header span {
  color: #1e3a8a !important;
}

.react-learn-exercise-list article > header a {
  color: #1e3a8a !important;
}

.react-learn-exercise-list input:focus,
.react-learn-exercise-list textarea:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 4px #e8eefc !important;
}

.react-course-badges .is-difficulty {
  border-color: rgba(255, 255, 255, .35) !important;
  background: rgba(255, 255, 255, .12) !important;
  color: #fff !important;
}

.react-course-action-card__icon,
.react-section-icon.is-blue,
.react-section-icon.is-purple {
  background: #1e3a8a !important;
}

.react-course-action-card__primary,
.react-course-mobile-action a {
  background: #dc2626 !important;
  box-shadow: 0 12px 28px rgba(220, 38, 38, .2) !important;
}

.react-course-final-cta {
  background: #1e3a8a !important;
}

.sci-marketing-admin .sci-marketing-hero {
  border-bottom: 4px solid #dc2626;
  border-radius: 8px;
  background: #1e3a8a !important;
}

.sci-marketing-admin .sci-dash-panel,
.sci-marketing-admin .sci-admin-sticky-actions,
.sci-marketing-admin .sci-plan-editor,
.sci-marketing-admin .sci-compare-editor__row {
  border-radius: 8px;
}

.sci-marketing-admin .sci-dash-quickstats article {
  background: rgba(255, 255, 255, .12);
}

.blog-editor__title input,
.blog-editor__excerpt textarea,
.blog-editor__composer textarea {
  border: 0 !important;
  border-radius: 0 !important;
  padding-inline: 0 !important;
  box-shadow: none !important;
}

.blog-editor__title input:focus,
.blog-editor__excerpt textarea:focus,
.blog-editor__composer textarea:focus {
  border: 0 !important;
  box-shadow: none !important;
}

.blog-editor__title input::placeholder {
  color: #94a3b8;
}

.studio-hero,
.lesson-author-hero,
.sci-dash-hero {
  border-bottom: 4px solid #dc2626;
  border-radius: 8px;
  background: #1e3a8a !important;
}

/* Compact account and family workspaces */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.family-workspace,
.account-settings-page,
.family-child-detail {
  width: 100%;
  max-width: none;
}

.family-page-header,
.account-page-header,
.family-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid #dbe3f0;
  padding: 8px 4px 22px;
}

.family-page-header h1,
.account-page-header h1,
.family-detail-header h1 {
  margin: 5px 0 6px;
  color: #0f255f;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.08;
  font-weight: 850;
}

.family-page-header p:not(.sci-eyebrow),
.account-page-header p:not(.sci-eyebrow),
.family-detail-header p:not(.sci-eyebrow) {
  margin: 0;
  color: #64748b;
  font-size: 15px;
  line-height: 1.55;
}

.family-add-button {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  border-radius: 6px;
}

.family-add-button span { font-size: 22px; line-height: 1; }

.family-roster {
  overflow: hidden;
  border: 1px solid #dbe3f0;
  border-radius: 6px;
  background: #fff;
}

.family-roster__header {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
}

.family-roster__header h2,
.family-course-list h2,
.account-settings-sheet__header h2 {
  margin: 0;
  color: #0f255f;
  font-size: 21px;
  font-weight: 850;
}

.family-roster__header p,
.family-course-list header p,
.account-settings-sheet__header p {
  margin: 3px 0 0;
  color: #64748b;
  font-size: 14px;
}

.family-search input {
  width: min(300px, 34vw);
  min-height: 40px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0 12px;
  color: #0f255f;
  font-size: 14px;
}

.family-roster__columns,
.family-child-row {
  display: grid;
  grid-template-columns: minmax(250px, 1.6fr) minmax(180px, 1fr) minmax(90px, .45fr) minmax(150px, auto);
  align-items: center;
  gap: 20px;
}

.family-roster__columns {
  border-block: 1px solid #e7edf6;
  background: #f8fafc;
  padding: 10px 20px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.family-child-row { min-height: 82px; padding: 14px 20px; }
.family-child-row + .family-child-row { border-top: 1px solid #e7edf6; }

.family-child-row__identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.family-child-row__identity > span,
.family-detail-header__identity > span {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: #1e3a8a;
  color: #fff;
  font-size: 17px;
  font-weight: 850;
}

.family-child-row__identity > div,
.family-child-row__progress > div,
.family-child-row__courses { display: grid; min-width: 0; gap: 3px; }
.family-child-row__identity strong { overflow: hidden; color: #0f255f; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.family-child-row__identity small,
.family-child-row__progress span,
.family-child-row__courses span { color: #64748b; font-size: 13px; }
.family-child-row__progress strong,
.family-child-row__courses strong { color: #0f255f; font-size: 15px; }
.family-child-row__progress > i,
.family-detail-progress > i { display: block; height: 6px; overflow: hidden; border-radius: 3px; background: #e8eefc; }
.family-child-row__progress em,
.family-detail-progress em { display: block; height: 100%; background: #2563eb; }

.family-child-row__actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.family-child-row__actions a,
.family-settings-button,
.family-detail-header__settings {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  padding: 0 13px;
  color: #1e3a8a;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.family-child-row__actions a:hover,
.family-settings-button:hover,
.family-detail-header__settings:hover { border-color: #1e3a8a; background: #f3f7ff; }
.family-settings-button { width: 38px; padding: 0; font-size: 19px; }

.family-empty-state { display: grid; justify-items: start; gap: 5px; padding: 34px 20px; color: #64748b; }
.family-empty-state strong { color: #0f255f; font-size: 17px; }
.family-empty-state p { margin: 0; }
.family-empty-state button { border: 0; background: transparent; padding: 6px 0 0; color: #1e3a8a; font-weight: 800; }

.family-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 18px;
}

.family-modal__backdrop { position: absolute; inset: 0; border: 0; background: rgba(8, 21, 74, .55); }
.family-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  border: 1px solid #dbe3f0;
  border-radius: 8px;
  background: #fff;
  padding: 22px;
  box-shadow: 0 26px 80px rgba(8, 21, 74, .28);
}

.family-modal__dialog--large {
  width: min(1040px, 100%);
  height: min(620px, calc(100dvh - 36px));
}
.family-modal__header { display: grid; grid-template-columns: 1fr 34px; align-items: start; gap: 16px; }
.family-modal__header h2 { margin: 3px 0 0; color: #0f255f; font-size: 27px; font-weight: 850; }
.family-modal__close { display: grid; width: 34px; height: 34px; place-items: center; border: 0; border-radius: 4px; background: #f1f5f9; color: #475569; font-size: 24px; }

.family-add-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr);
  align-items: stretch;
  gap: 24px;
  margin-top: 22px;
}
.family-add-pane { min-width: 0; }
.family-add-pane--existing { border-left: 1px solid #dbe3f0; padding-left: 24px; }
.family-add-pane__header { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 18px; }
.family-add-pane__icon {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #e8eefc;
  color: #1e3a8a;
  font-size: 17px;
  font-weight: 850;
}
.family-add-pane__header h3 { margin: 0; color: #0f255f; font-size: 17px; font-weight: 850; }
.family-add-pane__header p { margin: 3px 0 0; color: #64748b; font-size: 13px; line-height: 1.45; }
.family-modal .family-create-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0; }
.family-modal .family-create-form__school { grid-column: 1 / -1; }
.family-modal .family-create-form__footer { grid-column: 1 / -1; }
.family-existing-modal { display: grid; align-content: start; gap: 18px; }
.family-existing-modal p { margin: 0; color: #64748b; line-height: 1.5; }
.family-existing-modal .family-existing-form { display: grid; grid-template-columns: 1fr; gap: 8px; }
.family-existing-modal .family-existing-form .sci-btn { width: 100%; }
.family-existing-modal__notice { border-top: 1px solid #e7edf6; padding-top: 16px; color: #64748b; font-size: 12px; line-height: 1.5; }

.family-settings-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.family-settings-form label { display: grid; gap: 6px; color: #334155; font-size: 13px; font-weight: 750; }
.family-settings-form label.is-wide { grid-column: 1 / -1; }
.family-settings-form input { min-height: 42px; border: 1px solid #cbd5e1; border-radius: 6px; padding: 0 11px; color: #0f255f; }
.family-settings-form input:focus { border-color: #2563eb; outline: 0; box-shadow: 0 0 0 3px #dbeafe; }
.family-settings-form > button { grid-column: 1 / -1; justify-self: end; }
.family-settings-password { border-top: 1px solid #e7edf6; margin-top: 20px; padding-top: 16px; }
.family-settings-password summary { cursor: pointer; color: #1e3a8a; font-size: 14px; font-weight: 800; }
.family-settings-danger { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid #e7edf6; margin-top: 20px; padding-top: 16px; }
.family-settings-danger p { margin: 0; color: #64748b; font-size: 13px; line-height: 1.45; }
.family-settings-danger button { border: 0; background: transparent; color: #dc2626; font-size: 13px; font-weight: 800; }

.family-child-detail { display: grid; gap: 18px; }
.family-detail-header > div { display: grid; gap: 16px; }
.family-detail-header > div > a { color: #1e3a8a; font-size: 13px; font-weight: 800; text-decoration: none; }
.family-detail-header__identity { display: flex; align-items: center; gap: 14px; }
.family-detail-overview {
  display: grid;
  grid-template-columns: minmax(260px, 1.6fr) repeat(4, minmax(110px, .6fr));
  border-block: 1px solid #dbe3f0;
  background: #fff;
}

.family-detail-overview > div { display: grid; align-content: center; min-height: 96px; gap: 5px; padding: 16px 20px; }
.family-detail-overview > div + div { border-left: 1px solid #e7edf6; }
.family-detail-overview strong { color: #0f255f; font-size: 24px; }
.family-detail-overview span { color: #64748b; font-size: 13px; }
.family-detail-progress { grid-template-columns: 1fr auto; }
.family-detail-progress > i { grid-column: 1 / -1; }
.family-course-list { overflow: hidden; border: 1px solid #dbe3f0; border-radius: 6px; background: #fff; }
.family-course-list > header { padding: 18px 20px; }
.family-course-list__rows article { display: flex; min-height: 68px; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid #e7edf6; padding: 13px 20px; }
.family-course-list__rows article > div { display: grid; gap: 4px; }
.family-course-list__rows strong { color: #0f255f; font-size: 15px; }
.family-course-list__rows span { color: #64748b; font-size: 13px; }
.family-course-list__rows a { color: #1e3a8a; font-size: 13px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.family-pagination { display: flex; align-items: center; justify-content: center; gap: 18px; border-top: 1px solid #e7edf6; padding: 14px 20px; color: #64748b; font-size: 13px; }
.family-pagination a { color: #1e3a8a; font-weight: 800; text-decoration: none; }

.account-settings-page { display: grid; gap: 18px; padding-bottom: 44px; }
.account-settings-sheet { overflow: hidden; border: 1px solid #dbe3f0; border-radius: 6px; background: #fff; }
.account-settings-sheet__header { border-bottom: 1px solid #dbe3f0; padding: 18px 20px; }
.account-setting-row { border-bottom: 1px solid #e7edf6; }
.account-setting-row:last-child { border-bottom: 0; }
.account-setting-row > summary,
.account-setting-row--static,
.account-setting-row--danger {
  display: grid;
  grid-template-columns: 42px minmax(260px, 1fr) auto minmax(90px, auto);
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 13px 20px;
}

.account-setting-row > summary { cursor: pointer; list-style: none; }
.account-setting-row > summary::-webkit-details-marker { display: none; }
.account-setting-row > summary:focus { outline: 0; }
.account-setting-row > summary:focus-visible { box-shadow: inset 0 0 0 3px #2563eb; }
.account-setting-row > summary:hover { background: #f8fafc; }
.account-setting-row[open] > summary { background: #f8fafc; }
.account-setting-row__icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: #e8eefc; color: #1e3a8a; font-size: 13px; font-weight: 850; }
.account-setting-row__title { display: grid; min-width: 0; gap: 3px; }
.account-setting-row__title strong { color: #0f255f; font-size: 16px; }
.account-setting-row__title small { overflow: hidden; color: #64748b; font-size: 13px; line-height: 1.45; text-overflow: ellipsis; }
.account-setting-row__action { color: #1e3a8a; font-size: 13px; font-weight: 800; text-align: right; }
.account-setting-row > summary > code { color: #1e3a8a; font-size: 14px; font-weight: 850; }
.account-setting-row__button,
.account-setting-row__danger-button { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; padding: 0 13px; color: #1e3a8a; font-size: 13px; font-weight: 800; text-decoration: none; }
.account-setting-row__danger-button { border-color: #fecaca; color: #b91c1c; }
.account-setting-row__content { display: grid; gap: 12px; border-top: 1px solid #e7edf6; background: #fbfdff; padding: 18px 20px 20px 76px; }
.account-setting-row__content .account-inline-form { width: min(760px, 100%); }
.account-setting-row__secondary-action { display: flex; width: min(760px, 100%); align-items: center; justify-content: space-between; gap: 14px; color: #64748b; font-size: 13px; }
.account-setting-row__secondary-action p { margin: 0; }
.account-setting-row__secondary-action button,
.account-text-button { border: 0; background: transparent; padding: 0; color: #1e3a8a; font-size: 13px; font-weight: 800; text-decoration: underline; }
.account-family-code__content { grid-template-columns: minmax(240px, 520px) auto; align-items: center; }
.account-family-code__content .account-family-code__value { width: 100%; }
.account-password-form { width: min(900px, 100%); }
.account-personal-form {
  display: grid;
  width: min(980px, 100%);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.account-personal-form label {
  display: grid;
  min-width: 0;
  gap: 7px;
  color: #334155;
  font-weight: 750;
}
.account-personal-form label > span > small {
  color: #64748b;
  font-weight: 500;
}
.account-personal-form label.is-wide,
.account-personal-form__footer {
  grid-column: 1 / -1;
}
.account-personal-form input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  padding: 0 12px;
  color: #0f255f;
}
.account-personal-form input:focus {
  border-color: #2563eb;
  outline: 0;
  box-shadow: 0 0 0 3px #dbeafe;
}
.account-personal-form input:disabled {
  cursor: not-allowed;
  background: #eef2f7;
  color: #64748b;
}
.account-personal-form label > small {
  color: #b91c1c;
}
.account-personal-form__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #e7edf6;
  padding-top: 16px;
}
.account-personal-form__footer p {
  margin: 0;
  color: #64748b;
}
.account-personal-form__footer .sci-btn {
  flex: 0 0 auto;
}
.account-setting-row--protected { background: #f8fbff; }
.account-setting-row--protected .account-setting-row__icon { background: #dcfce7; color: #166534; }

@media (max-width: 1000px) {
  .family-roster__columns { display: none; }
  .family-child-row { grid-template-columns: minmax(220px, 1.3fr) minmax(160px, 1fr) auto; }
  .family-child-row__courses { display: none; }
  .family-detail-overview { grid-template-columns: repeat(4, 1fr); }
  .family-detail-progress { grid-column: 1 / -1; border-bottom: 1px solid #e7edf6; }
  .family-detail-overview > div:nth-child(2) { border-left: 0; }
}

@media (max-width: 720px) {
  .family-page-header,
  .account-page-header,
  .family-detail-header { align-items: flex-start; flex-direction: column; padding-bottom: 18px; }
  .family-add-button,
  .family-detail-header__settings { width: 100%; }
  .family-roster__header { align-items: stretch; flex-direction: column; }
  .family-search input { width: 100%; }
  .family-child-row { grid-template-columns: 1fr auto; gap: 14px; }
  .family-child-row__progress { grid-column: 1 / -1; grid-row: 2; }
  .family-child-row__actions { grid-column: 2; grid-row: 1; }
  .family-child-row__actions a { width: 38px; overflow: hidden; padding: 0; font-size: 0; }
  .family-child-row__actions a::before { content: "Voir"; font-size: 11px; }
  .family-modal { padding: 8px; }
  .family-modal__dialog { max-height: calc(100dvh - 16px); padding: 18px; }
  .family-modal__dialog--large { height: calc(100dvh - 16px); min-height: 0; }
  .family-add-workspace { grid-template-columns: 1fr; gap: 22px; }
  .family-add-pane--existing { border-top: 1px solid #dbe3f0; border-left: 0; padding-top: 20px; padding-left: 0; }
  .family-modal .family-create-form,
  .family-settings-form,
  .family-existing-modal .family-existing-form { grid-template-columns: 1fr; }
  .family-modal .family-create-form__school,
  .family-settings-form label.is-wide,
  .family-settings-form > button,
  .family-modal .family-create-form__footer { grid-column: auto; }
  .family-modal .family-create-form__footer,
  .family-settings-danger { align-items: stretch; flex-direction: column; }
  .family-modal .family-create-form__footer .sci-btn,
  .family-settings-form > button { width: 100%; }
  .family-detail-overview { grid-template-columns: repeat(2, 1fr); }
  .family-detail-overview > div:nth-child(4) { border-left: 0; border-top: 1px solid #e7edf6; }
  .family-detail-overview > div:nth-child(5) { border-top: 1px solid #e7edf6; }
  .family-course-list__rows article { align-items: flex-start; flex-direction: column; gap: 8px; }
  .account-setting-row > summary,
  .account-setting-row--static,
  .account-setting-row--danger { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; padding-inline: 14px; }
  .account-setting-row > summary > .account-security__status,
  .account-setting-row--static > .account-security__status { grid-column: 2; justify-self: start; }
  .account-setting-row__action { grid-column: 3; grid-row: 1; }
  .account-setting-row--static > .account-setting-row__button,
  .account-setting-row--danger > .account-setting-row__danger-button {
    grid-column: 2 / -1;
    grid-row: auto;
    justify-self: start;
  }
  .account-setting-row > summary > code { display: none; }
  .account-setting-row__content { padding: 16px 14px; }
  .account-setting-row__content .account-inline-form,
  .account-password-form,
  .account-family-code__content { grid-template-columns: 1fr; }
  .account-personal-form { grid-template-columns: 1fr; }
  .account-personal-form label.is-wide,
  .account-personal-form__footer { grid-column: auto; }
  .account-personal-form__footer { align-items: stretch; flex-direction: column; }
  .account-personal-form__footer .sci-btn { width: 100%; }
  .account-setting-row__secondary-action { align-items: flex-start; flex-direction: column; }
}
