:root {
  --student-primary: #eb3d63;
  --student-ink: #24243a;
  --student-muted: #6d6b7b;
  --student-surface: #fff;
  --student-bg: #f7f7fc;
  --student-panel: #fff;
  --student-border: rgba(125,55,72,.13);
  --student-soft: #fff0f3;
  --student-primary-soft: #fff0f3;
  --student-hero: linear-gradient(135deg,#fff 0%,#fff3f6 100%);
}

[data-bs-theme="dark"] {
  --student-ink: #fff3f5;
  --student-muted: #bea9ae;
  --student-surface: #241b1e;
  --student-panel: #2c2024;
  --student-bg: #171113;
  --student-border: rgba(235,61,99,.2);
  --student-soft: #3a2028;
  --student-primary-soft: #3a2028;
  --student-hero: radial-gradient(circle at 85% 20%,rgba(235,61,99,.24),transparent 32%),linear-gradient(135deg,#1b1416,#2d1b21);
  color-scheme: dark;
}

body.student-portal { --bs-primary:#eb3d63; --bs-primary-rgb:235,61,99; margin: 0; background: var(--student-bg); color: var(--student-ink); font-family: "Public Sans", sans-serif; }
.student-portal .btn-primary { --bs-btn-bg:#eb3d63; --bs-btn-border-color:#eb3d63; --bs-btn-hover-bg:#d93459; --bs-btn-hover-border-color:#d93459; --bs-btn-active-bg:#c92f51; --bs-btn-active-border-color:#c92f51; }
.student-portal .btn-outline-primary { --bs-btn-color:#eb3d63; --bs-btn-border-color:#eb3d63; --bs-btn-hover-bg:#eb3d63; --bs-btn-hover-border-color:#eb3d63; --bs-btn-active-bg:#d93459; --bs-btn-active-border-color:#d93459; }
.student-portal .nav-pills .nav-link.active { background-color:var(--student-primary); }
.student-portal .bg-label-primary { color:var(--student-primary)!important; background-color:var(--student-primary-soft)!important; }
.student-navbar { background: color-mix(in srgb,var(--student-panel) 92%,transparent); border-bottom: 1px solid var(--student-border); backdrop-filter: blur(14px); }
.student-brand { display:flex; align-items:center; border-radius:.75rem; }
.student-brand-logo { display:block; width:auto; height:3.25rem; }
[data-bs-theme="dark"] .student-brand { padding:.2rem .45rem; background:rgba(255,255,255,.94); }
.student-nav-link { color:var(--student-muted); font-weight:600; }
.student-nav-link:hover { color:var(--student-primary); }
.student-theme-toggle { display:grid; place-items:center; width:2.35rem; height:2.35rem; border:1px solid var(--student-border); border-radius:999px; background:var(--student-panel); color:var(--student-ink); }
.student-theme-toggle:hover { border-color:var(--student-primary); color:var(--student-primary); }
.theme-icon-dark { display:none; }
[data-bs-theme="dark"] .theme-icon-light { display:none; }
[data-bs-theme="dark"] .theme-icon-dark { display:inline-block; }
.student-hero { position:relative; overflow:hidden; background:var(--student-hero); }
.student-code-grid { position:absolute; inset:0; opacity:.28; background-image:linear-gradient(var(--student-border) 1px,transparent 1px),linear-gradient(90deg,var(--student-border) 1px,transparent 1px); background-size:42px 42px; mask-image:linear-gradient(to right,transparent 5%,#000 55%,transparent 100%); }
.student-hero h1 { max-width:720px; margin:.7rem 0 1.2rem; font-size:clamp(2.3rem,6vw,4.7rem); line-height:1.03; letter-spacing:-.045em; font-weight:800; }
.student-hero p,.week-hero p { color:var(--student-muted); font-size:1.12rem; max-width:660px; }
.student-kicker { color:var(--student-primary); font-size:.78rem; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.current-week-card { position:relative; overflow:hidden; padding:2rem; border:1px solid rgba(235,61,99,.3); border-radius:1.5rem; background:color-mix(in srgb,var(--student-panel) 90%,transparent); box-shadow:0 24px 60px rgba(80,24,40,.14); }
.current-week-orbit { position:absolute; width:150px; height:150px; right:-65px; top:-65px; border:25px solid rgba(235,61,99,.1); border-radius:50%; }
.current-week-number { float:right; color:rgba(235,61,99,.12); font-size:5rem; line-height:.8; font-weight:800; }
.current-week-card h2 { margin-top:1.4rem; }
.student-section-heading h2 { margin:.5rem 0; font-size:clamp(1.8rem,4vw,2.7rem); font-weight:800; letter-spacing:-.025em; }
.student-section-heading p { color:var(--student-muted); }
.journey-meter { max-width:560px; color:var(--student-muted); font-size:.86rem; font-weight:700; }
.journey-track { height:7px; margin-top:.65rem; overflow:hidden; border-radius:999px; background:var(--student-soft); }
.journey-track span { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--student-primary),#ff7894); }
.calendar-state-icon { display:grid; place-items:center; width:4rem; height:4rem; margin:1.5rem 0 1rem; border-radius:1.2rem; background:var(--student-soft); color:var(--student-primary); font-size:1.7rem; }
.current-week-date,.week-date-label { color:var(--student-primary)!important; font-weight:700; font-size:.9rem!important; }
.learning-path { position:relative; display:grid; gap:0; }
.learning-section { position:relative; display:grid; grid-template-columns:4rem minmax(0,1fr); gap:1.25rem; padding:0 0 2.4rem; }
.learning-section:not(:last-child)::before { content:""; position:absolute; left:1.48rem; top:3rem; bottom:0; width:2px; background:var(--student-border); }
.learning-node { position:relative; z-index:1; display:grid; place-items:center; width:3rem; height:3rem; border:2px solid var(--student-border); border-radius:50%; background:var(--student-bg); color:var(--student-muted); font-weight:800; }
.learning-content { padding:1.4rem; border:1px solid var(--student-border); border-radius:1.25rem; background:var(--student-surface); box-shadow:0 10px 35px rgba(20,18,45,.06); }
.learning-section.is-current-section .learning-node { border-color:var(--student-primary); background:var(--student-primary); color:#fff; box-shadow:0 0 0 7px rgba(235,61,99,.12); }
.learning-section.is-current-section .learning-content { border-color:rgba(235,61,99,.45); }
.learning-section-head { display:flex; align-items:center; gap:1rem; margin-bottom:1.25rem; }
.learning-section-head h3 { margin:0 0 .2rem; font-size:1.2rem; }
.learning-section-head span { color:var(--student-muted); font-size:.88rem; }
.week-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:.75rem; }
.week-chip { display:flex; flex-direction:column; min-height:105px; padding:1rem; border:1px solid var(--student-border); border-radius:.85rem; color:var(--student-ink); background:color-mix(in srgb,var(--student-panel) 65%,transparent); transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.week-chip:hover { transform:translateY(-2px); border-color:rgba(235,61,99,.5); box-shadow:0 10px 24px rgba(92,34,50,.09); }
.week-chip span,.week-chip small { color:var(--student-muted); font-size:.78rem; }
.week-chip strong { margin-top:.35rem; font-size:.92rem; }
.week-chip.is-current { border-color:var(--student-primary); background:var(--student-soft); }
.week-chip.is-current small { margin-top:auto; color:var(--student-primary); font-weight:700; }
.week-hero { background:var(--student-hero); border-bottom:1px solid var(--student-border); }
.week-hero h1 { margin:.25rem 0; font-size:clamp(2rem,5vw,3.5rem); font-weight:800; }
.week-meta .week-date-label { display:inline-flex; align-items:center; }
.student-current-pill { display:inline-flex; margin-top:.5rem; padding:.4rem .75rem; border-radius:999px; background:var(--student-primary); color:#fff; font-size:.78rem; font-weight:700; }
.student-document { max-width:980px; margin-inline:auto; border:1px solid var(--student-border); border-radius:1.25rem; background:var(--student-surface); box-shadow:0 12px 40px rgba(20,18,45,.09); }
.student-document .card-header { padding:1.25rem 1.5rem; background:var(--student-panel); border-bottom:1px solid var(--student-border); }
.student-document .course-markdown { max-width:820px; margin-inline:auto; font-size:1.02rem; line-height:1.78; }
.student-document .course-markdown pre { border:1px solid var(--student-border); background:#171522; color:#f0edff; }
.student-document .course-markdown :not(pre)>code { background:var(--student-soft); color:var(--student-primary); }
.student-document .course-markdown table { display:block; max-width:100%; overflow-x:auto; }
.resource-card { display:flex; align-items:center; gap:1rem; height:100%; padding:1.1rem; border:1px solid var(--student-border); border-radius:1rem; background:var(--student-surface); color:var(--student-ink); }
.resource-card-official { border-color:rgba(235,61,99,.45); }
.student-week-tabs { scrollbar-width:none; }
.student-week-tabs::-webkit-scrollbar { display:none; }
.student-week-tabs .nav-link { white-space:nowrap; }
.student-video-panel { max-width:980px; margin-inline:auto; }
.video-resource-card { border-color:var(--student-border); background:var(--student-surface); }
.video-thumbnail-wrap { position:relative; overflow:hidden; aspect-ratio:16 / 9; border-radius:var(--bs-card-border-radius) var(--bs-card-border-radius) 0 0; background:#111; }
.video-thumbnail-wrap iframe, .video-thumbnail { width:100%; height:100%; border:0; object-fit:cover; }
.video-play-button { position:absolute; inset:50% auto auto 50%; display:grid; width:4.5rem; height:4.5rem; padding:0; transform:translate(-50%, -50%); place-items:center; border:0; border-radius:50%; color:#fff; background:rgba(235,61,99,.94); font-size:1.8rem; box-shadow:0 10px 30px rgba(0,0,0,.35); transition:transform .18s ease, background-color .18s ease; }
.video-play-button:hover { background:#d93459; transform:translate(-50%, -50%) scale(1.06); }
.video-play-button:focus-visible { outline:3px solid #fff; outline-offset:4px; }
.video-language-badge { display:inline-flex; padding:.25rem .55rem; border-radius:999px; color:var(--student-primary); background:var(--student-primary-soft); font-size:.72rem; font-weight:800; letter-spacing:.08em; }
.resource-card:hover { border-color:var(--student-primary); box-shadow:0 10px 24px rgba(92,34,50,.09); }
.resource-card small,.resource-card strong { display:block; }
.resource-card small { margin-bottom:.2rem; color:var(--student-muted); }
.resource-icon { display:grid; place-items:center; min-width:2.75rem; height:2.75rem; border-radius:.8rem; background:var(--student-soft); color:var(--student-primary); }
.student-footer { margin-top:4rem; border-top:1px solid var(--student-border); background:var(--student-panel); color:var(--student-muted); }
[data-bs-theme="dark"] .card,[data-bs-theme="dark"] .breadcrumb { --bs-card-bg:var(--student-surface); --bs-body-color:var(--student-ink); }
[data-bs-theme="dark"] .text-body-secondary { color:var(--student-muted)!important; }

@media (max-width: 575.98px) {
  .student-brand-logo { height:2.7rem; }
  .student-nav-link { font-size:.85rem; }
  .student-hero .container { padding-top:3.5rem!important; padding-bottom:3.5rem!important; }
  .current-week-card { padding:1.4rem; }
  .week-grid { grid-template-columns:1fr; }
  .learning-section { grid-template-columns:2.7rem minmax(0,1fr); gap:.7rem; }
  .learning-node { width:2.4rem; height:2.4rem; font-size:.75rem; }
  .learning-section:not(:last-child)::before { left:1.18rem; top:2.4rem; }
  .learning-content { padding:1rem; }
  .student-document .card-body { padding:1.25rem!important; }
}
