/* v13.25.0: the new look for children: Your next step and the week's sticker chart (js/week-chart.js) */
.wc { display: flex; flex-direction: column; gap: 16px; margin-top: 14px; }
.wc-next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-radius: 22px; background: #2E1065; color: #FFFFFF; }
.wc-next-t { flex: 1 1 360px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wc-next-t span { font-size: 13px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: #FCD34D; }
.wc-next-t b { font-size: 26px; font-weight: 900; line-height: 1.2; }
.wc-next-t small { font-size: 16px; color: #E9E3FF; }
.wc-go { min-height: 56px; display: inline-flex; align-items: center; padding: 0 32px; border-radius: 999px; background: #C2410C; color: #FFFFFF !important; font-size: 20px; font-weight: 900; text-decoration: none; }
.wc-go:hover { background: #9A3412; }
.wc-go:focus-visible { outline: 3px solid #FCD34D; outline-offset: 3px; }
.wc-next.is-paper { background: #FFFBEB; color: #78350F; border: 2px solid #FCD34D; }
.wc-next.is-paper .wc-next-t span { color: #92400E; }
.wc-next.is-paper .wc-next-t small { color: #78350F; }
.wc-next.is-done { background: #ECFDF3; color: #14532D; border: 2px solid #86EFAC; }
.wc-next.is-done .wc-next-t span { color: #166534; }
.wc-next.is-done .wc-next-t small { color: #166534; }

.wc-grid { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.wc-chart { flex: 999 1 560px; min-width: 0; background: #FFFFFF; border: 1px solid #E7E1FA; border-radius: 20px; padding: 16px 18px; }
.wc-chead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.wc-chead h4 { margin: 0; font-size: 19px; font-weight: 900; }
.wc-count { font-size: 15px; font-weight: 800; color: #5B21B6; }
.wc-scroll { overflow-x: auto; }
.wc-table { width: 100%; min-width: 520px; border-collapse: separate; border-spacing: 0 6px; }
.wc-table thead th { font-size: 13px; font-weight: 800; color: #5F5A7A; text-align: center; padding: 0 4px; line-height: 1.25; vertical-align: bottom; }
.wc-table thead th small { display: block; font-weight: 700; color: #9A3412; }
.wc-table thead th.wc-subjh { text-align: left; padding-left: 10px; }
.wc-table tbody th { text-align: left; padding: 8px 10px; border-radius: 12px 0 0 12px; font-size: 15px; white-space: nowrap; max-width: 240px; }
.wc-table tbody th b { display: block; font-weight: 900; }
.wc-table tbody th small { display: block; font-size: 12.5px; font-weight: 700; color: #4B4766; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.wc-table tbody td { text-align: center; padding: 6px 4px; }
.wc-table tbody td:last-child { border-radius: 0 12px 12px 0; }
.wc-row th, .wc-row td { background: #F6F4FD; }
.wc-row.is-maths th, .wc-row.is-maths td { background: #EEF3FF; }
.wc-row.is-maths th b { color: #1E40AF; }
.wc-row.is-english th, .wc-row.is-english td { background: #FFF1EA; }
.wc-row.is-english th b { color: #9A3412; }
.wc-row.is-vr th, .wc-row.is-vr td { background: #F4EEFF; }
.wc-row.is-vr th b { color: #6D28D9; }
.wc-row.is-nvr th, .wc-row.is-nvr td { background: #ECFBF6; }
.wc-row.is-nvr th b { color: #0F766E; }
.wc-row.is-other th b { color: #3F3A5A; }

.wc-st { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 2px; border-radius: 50%;
  border: 3px solid #D6CCF7; background: #FFFFFF; color: #C2410C; font-weight: 900; font-size: 18px; text-decoration: none; vertical-align: middle; box-sizing: border-box; }
a.wc-st:hover { border-color: #7C3AED; }
a.wc-st:focus-visible { outline: 3px solid #7C3AED; outline-offset: 2px; }
.wc-st svg { width: 24px; height: 24px; fill: #FFFFFF; }
.wc-st.is-done { background: #F59E0B; border-color: #D97706; }
.wc-st.is-done.is-class { background: #FBBF24; border-color: #F59E0B; }
.wc-st.is-next { border-color: #C2410C; box-shadow: 0 0 0 5px #FED7AA; animation: wcPulse 1.8s ease-in-out infinite; }
.wc-st.is-part { border-color: #7C3AED; color: #5B21B6; }
.wc-st.is-soon { border-style: dashed; border-color: #D1D5DB; background: #F9FAFB; }
.wc-st.is-paper { width: auto; min-width: 44px; height: 30px; padding: 0 10px; border: 1px solid #FCD34D; border-radius: 999px; background: #FEF3C7; color: #78350F; font-size: 12px; font-weight: 800; }
@keyframes wcPulse { 0%, 100% { box-shadow: 0 0 0 4px #FED7AA; } 50% { box-shadow: 0 0 0 8px #FFEDD5; } }
@media (prefers-reduced-motion: reduce) { .wc-st.is-next { animation: none; } }
.wc-none { margin: 8px 0; color: #5F5A7A; }
.wc-key { margin: 10px 2px 0; font-size: 13px; color: #5F5A7A; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.wc-st.is-key { width: 22px; height: 22px; border-width: 2px; margin: 0; animation: none; box-shadow: none; }
.wc-st.is-key svg { width: 13px; height: 13px; }
.wc-st.is-paper.is-key { width: auto; height: 22px; font-size: 11px; padding: 0 8px; }

.wc-paperbox { margin-top: 12px; padding: 14px; border-radius: 14px; background: #FFFBEB; border: 1px solid #FCD34D; }
.wc-paperbox > p { margin: 0 0 10px; font-size: 15px; color: #78350F; }
.wc-paperbox .wk-sheets { margin: 0; }

.wc-side { flex: 1 1 280px; display: flex; flex-direction: column; gap: 12px; }
.wc-quizzes { background: #2E1065; color: #FFFFFF; border-radius: 20px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.wc-quizzes h4 { margin: 0; font-size: 14px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: #FCD34D; }
.wc-quiz { padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .08); display: flex; flex-direction: column; gap: 2px; }
.wc-quiz b { font-size: 16px; }
.wc-quiz small { font-size: 13px; color: #DDD6FE; }
.wc-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.wc-btn { min-height: 44px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 999px; background: #FFFFFF; color: #2E1065 !important; font-weight: 900; font-size: 15px; text-decoration: none; }
.wc-btn.is-next { box-shadow: 0 0 0 4px #FED7AA; background: #C2410C; color: #FFFFFF !important; }
.wc-btn.is-ghost { background: transparent; border: 2px solid #C4B5FD; color: inherit !important; }
.wc-mocks .wc-btn { background: #5B21B6; color: #FFFFFF !important; }
.wc-mocks .wc-btn.is-ghost { background: transparent; color: #5B21B6 !important; }
.wc-pill { display: inline-block; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .15); font-size: 13px; font-weight: 800; }
.wc-pill.is-done { background: #DCFCE7; color: #14532D; }
.wc-mocks { display: flex; flex-direction: column; gap: 10px; }
.wc-mock { background: #FFFFFF; border: 1px solid #E7E1FA; border-radius: 18px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.wc-mock b { font-size: 15px; }
.wc-mock .wc-pill { background: #F0EAFF; color: #3B0F86; }
.wc-mock .wc-pill.is-done { background: #DCFCE7; color: #14532D; }
.wc-kick { font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: #5F5A7A; }
.wc-extras { display: flex; flex-direction: column; gap: 8px; }
.wc-extra { display: block; padding: 12px 14px; border-radius: 16px; background: #F0EAFF; color: #3B0F86; font-weight: 800; text-decoration: none; }
.wc-extra.is-locked { background: #F3F4F6; color: #4B5563; }
.wc-locked { padding: 18px 20px; border-radius: 18px; border: 2px dashed #C4B5FD; background: #FFFFFF; display: flex; flex-direction: column; gap: 4px; }
.wc-locked span { color: #5F5A7A; }
.ct-body .wc { margin-top: 4px; }
/* the course page's "Only quizzes and mocks" tab (new look) */
.ct-tab.ct-tab-q.is-on { background: #5B21B6; color: #FFFFFF; }
/* the tour, folded after the first visit (new look): a slim bar */
.rs-box.is-closed.is-slim .rs-closed { width: 100%; justify-content: flex-start; }

/* ---------- v13.27.0 ---------- */
/* the map: tall enough for its tags (no scrolling up and down inside it) */
.dm-map { overflow-y: hidden; }
.dm-track { height: 246px; top: 16px; }
/* the dashboard, lifted up (new look) */
body.nl-dash .hello-banner { padding: 10px 16px; gap: 12px; }
body.nl-dash .hello-banner h2 { font-size: 22px; }
body.nl-dash .hello-ava { width: 46px; height: 46px; font-size: 20px; }
body.nl-dash .rs-box.is-closed { margin: 8px 0; }
body.nl-dash .rs-box.is-closed .rs-closed { padding: 2px 12px 2px 4px; }
body.nl-dash .rs-box.is-closed .rs-closed img { width: 28px; height: 28px; }
.dm-card.is-nl { gap: 10px; padding: 14px 16px; }
.dm-card.is-nl .dm-head h3 { margin: 0; }
.dm-catch { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 6px 8px 6px 14px; border-radius: 14px; background: #FFF8EA; border: 1px solid #F3DFA2; color: #5A4300; font-size: 15px; }
.dm-catch b { color: #3A2400; }
.dm-go.is-slim { min-height: 38px; padding: 0 16px; font-size: 14px; }
/* paper: taught in class, and the answer sheets (said only once they are made) */
.wc-paperbox:not(:has(p, .wk-sheet)) { display: none; }
.wc-taught { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 8px !important; }
.wc-taught .wc-st.is-key { flex: none; margin-top: 1px; }
.wk-sheets-say { flex: 1 1 100%; margin: 4px 0 2px; font-size: 15px; color: #78350F; }
.wc-paperbox .wc-taught + .wk-sheets:not(:empty) { border-top: 1px dashed #FCD34D; padding-top: 8px; }
.wc-st.is-paper { white-space: nowrap; }
/* where to see the whole year */
.wc-fullrow { display: flex; flex-wrap: wrap; gap: 10px; }
.wc-full { flex: 1 1 420px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 14px 18px; border-radius: 18px; background: #FFFFFF; border: 2px dashed #C4B5FD; color: #3B0F86; text-decoration: none; }
.wc-full b { font-size: 17px; }
.wc-full span { color: #5F5A7A; font-size: 15px; }
.wc-full i { margin-left: auto; font-style: normal; font-size: 22px; font-weight: 900; }
.wc-full:hover { border-color: #7C3AED; background: #FAF8FF; }
.wc-guide { flex: 0 1 auto; display: inline-flex; align-items: center; padding: 14px 18px; border-radius: 18px; background: linear-gradient(90deg, #F1EEFF, #FBEFFA); border: 1px solid #DCD3FA; color: #3B0F86; font-weight: 800; text-decoration: none; }
/* full course view: the views are buttons (new look) */
.ct.is-nl .ct-tabs { border-bottom: 0; gap: 8px; }
.ct.is-nl .ct-tab { margin: 0; padding: 6px 16px; border: 2px solid #D6CCF7; border-radius: 999px; background: #FFFFFF; color: #3B0F86; min-height: 40px; }
.ct.is-nl .ct-tab:hover { border-color: #7C3AED; }
.ct.is-nl .ct-tab.is-on { background: #5B21B6; border-color: #5B21B6; color: #FFFFFF; }
/* the staff week planner */
.wp { display: flex; flex-direction: column; gap: 10px; }
.wp-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.wp-state { font-size: 14px; color: #5F5A7A; margin-right: 6px; }
.wp-classes { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.wp-class { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-weight: 800; color: #3B0F86; font-size: 14px; }
.wp-class small { font-weight: 600; color: #5F5A7A; }
.wp-mini { display: inline-flex; align-items: center; gap: 4px; min-height: 30px; padding: 0 10px; border-radius: 999px; border: 1px solid #D6CCF7; background: #FFFFFF; color: #3B0F86; font: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer; }
.wp-mini:hover { border-color: #7C3AED; }
.wp-table tbody th .wp-mini { margin-top: 6px; }
.wp-paper { margin: 0; padding: 6px 12px; border-radius: 10px; background: #FEF3C7; color: #78350F; font-size: 14px; }
.wp-table tbody td { text-align: left; vertical-align: top; min-width: 150px; }
.wp-card { display: flex; flex-direction: column; gap: 3px; margin: 2px 0; padding: 7px 9px; border-radius: 10px; background: #FFFFFF; border: 1px solid #E7E1FA; color: #1F1B3A; text-decoration: none; font-size: 13.5px; line-height: 1.3; }
a.wp-card:hover { border-color: #7C3AED; box-shadow: 0 2px 8px rgba(91, 33, 182, .12); }
.wp-card.is-paper { background: #FFFBEB; border-color: #FCD34D; }
.wp-card.is-draft { border-style: dashed; }
.wp-card.is-empty { border-color: #FCA5A5; }
.wp-t { font-weight: 800; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wp-m { display: flex; flex-wrap: wrap; gap: 3px 5px; align-items: center; font-size: 12px; color: #5F5A7A; }
.wp-tag { font-style: normal; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 999px; background: #EDE9FB; color: #3B0F86; }
.wp-tag.is-draft { background: #F3F4F6; color: #374151; border: 1px dashed #9CA3AF; }
.wp-tag.is-empty { background: #FEE2E2; color: #991B1B; }
.wp-tag.is-paper { background: #FEF3C7; color: #78350F; }
.wp-tag.is-learn { background: #F0EAFF; color: #5B21B6; }
.wp-side section { background: #FFFFFF; border: 1px solid #E7E1FA; border-radius: 16px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.wp-side h4 { margin: 0 0 2px; font-size: 13px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; color: #5F5A7A; }
.wp-switch { margin: 0 0 8px; }
/* v13.27.1: the week's topic, once, below the subject */
.wp-table th[scope="row"] .wp-topic { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 2px 0 2px; font-size: 13px; font-weight: 600; line-height: 1.3; color: #3F3D56; max-width: 230px; }
/* v13.28.3: something still on its way */
.wc-next.is-soon { background: #F3F0FF; color: #3B0F86; border: 2px solid #C4B5FD; }
.wc-next.is-soon .wc-next-t span, .wc-next.is-soon .wc-next-t small { color: #4C1D95; }
/* v13.29.3: each card: open it, or publish / unpublish / unlink it */
.wp-card { gap: 4px; }
.wp-card .wp-open { display: flex; flex-direction: column; gap: 3px; color: inherit; text-decoration: none; }
.wp-card a.wp-open:hover .wp-t { text-decoration: underline; }
.wp-acts { display: inline-flex; flex-wrap: nowrap; gap: 3px; }
.wp-act { border: 1px solid #D6CCF7; background: #FFFFFF; color: #4C1D95; font: 800 11px/1.5 Nunito, system-ui, sans-serif; border-radius: 99px; padding: 0 7px; cursor: pointer; white-space: nowrap; }
.wp-act:hover { border-color: #7C3AED; }
.wp-act.is-pub { background: #5B21B6; border-color: #5B21B6; color: #FFFFFF; }
.wp-card:hover { border-color: #7C3AED; box-shadow: 0 2px 8px rgba(91, 33, 182, .12); }
/* v13.29.4: "Your next step" smaller: less height, smaller words and button */
.wc-next { padding: 12px 18px; gap: 12px; border-radius: 18px; }
.wc-next-t { gap: 2px; }
.wc-next-t span { font-size: 11.5px; }
.wc-next-t b { font-size: 20px; }
.wc-next-t small { font-size: 14px; }
.wc-go { min-height: 42px; padding: 0 22px; font-size: 16px; }
/* v13.29.4: the bonus practice under the chart's key, with its number of questions */
.wc-bonuses { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.wc-bonus { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 16px;
  background: linear-gradient(135deg, #FEF3C7, #FDE68A); border: 2px solid #F59E0B; color: #78350F; text-decoration: none; }
a.wc-bonus:hover { border-color: #D97706; box-shadow: 0 4px 14px rgba(217, 119, 6, .25); }
.wc-bonus-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wc-bonus-k { font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: #92400E; }
.wc-bonus-k b { font-size: 15px; letter-spacing: 0; text-transform: none; color: #7C2D12; }
.wc-bonus-n { font-size: 17px; font-weight: 900; color: #451A03; }
.wc-bonus-t small { font-size: 13px; color: #78350F; }
.wc-bonus-go { flex: none; display: inline-flex; align-items: center; min-height: 38px; padding: 0 18px; border-radius: 999px; background: #C2410C; color: #FFFFFF; font-weight: 900; font-size: 15px; }
.wc-bonus-go.is-off { background: #E5E7EB; color: #4B5563; }
.wc-bonus.is-locked { background: #F9FAFB; border-color: #E5E7EB; color: #4B5563; }
.wc-bonus.is-locked .wc-bonus-k, .wc-bonus.is-locked .wc-bonus-n, .wc-bonus.is-locked .wc-bonus-t small { color: #4B5563; }
.wc-bonus.is-done .wc-bonus-go { background: #FFFFFF; color: #9A3412; border: 2px solid #F59E0B; }
@media (max-width: 640px) { .wc-bonus { flex-wrap: wrap; } }

/* v13.39.0: a late joiner's earlier week: the real week, frosted, with the admin's message on top */
.wc-bj { position: relative; border-radius: 22px; overflow: hidden; min-height: 320px; }
.wc-bj-body { filter: blur(1px) saturate(.8); opacity: .72; pointer-events: none; user-select: none; -webkit-user-select: none; }
.wc-bj-veil { position: absolute; inset: 0; z-index: 2; display: flex; justify-content: center; align-items: flex-start; padding: 56px 16px 16px;
  background: linear-gradient(180deg, rgba(247, 245, 255, .35), rgba(247, 245, 255, .7)); }
.wc-bj-card { position: sticky; top: 90px; max-width: 460px; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  padding: 22px 22px 20px; border-radius: 20px; background: #FFFFFF; border: 2px dashed #C4B5FD; box-shadow: 0 18px 40px rgba(46, 16, 101, .18); }
.wc-bj-lock { font-size: 28px; line-height: 1; }
.wc-bj-card b { font-size: 19px; color: #2E1065; }
.wc-bj-card p { margin: 0; color: #5F5A7A; font-size: 15px; line-height: 1.5; white-space: pre-line; }
.wc-bj-go { margin-top: 8px; display: inline-block; padding: 11px 22px; border-radius: 999px; background: linear-gradient(90deg, #4F46B8, #D22CB2);
  color: #FFFFFF !important; font-weight: 800; text-decoration: none; }
.wc-bj-go:hover { filter: brightness(1.08); }
@media (prefers-color-scheme: dark) {
  .wc-bj-veil { background: linear-gradient(180deg, rgba(20, 16, 40, .35), rgba(20, 16, 40, .7)); }
}
