/* ======================================================================
   LESSON SIDEBAR (lesson.html), Khan Academy style: flat list of weeks with
   small-caps "WEEK n", the week title and a row of progress squares; the open
   week lists its lessons with a round icon. The current item has a left bar.
   ====================================================================== */
body.nf .lms-sidebar { width: 300px; background: var(--nf-bg); border-right: 1px solid var(--nf-line); }
.lms-sidebar, .lms-sidebar * { font-family: "Google Sans Flex", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif !important; }
.ka-head { display: flex; align-items: center; gap: 12px; padding: 20px 20px 18px; border-bottom: 1px solid var(--nf-line); }
.ka-course-icon { width: 44px; height: 44px; border-radius: 8px; object-fit: contain; background: var(--nf-bg-2); padding: 4px; flex: none; }
.ka-course { margin: 0; font-size: 1.1rem; font-weight: 700; color: var(--nf-head); line-height: 1.2; }
.ka-course-sub { font-size: 12.5px; color: var(--nf-mute); }
.ka-menu { padding: 8px 0 40px; }
.ka-unit { border-bottom: 1px solid var(--nf-line); }
.ka-unit-head { width: 100%; display: block; text-align: left; background: none; border: 0; cursor: pointer; padding: 14px 20px 14px 24px; position: relative; color: var(--nf-ink); }
.ka-unit-head:hover { background: var(--nf-bg-2); }
.ka-unit.active > .ka-unit-head::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--nf-blue); }
.ka-unit-no { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--nf-mute); margin-bottom: 2px; }
.ka-unit-title { display: block; font-size: 15px; font-weight: 600; color: var(--nf-head); line-height: 1.3; }
.ka-unit.active .ka-unit-title { color: var(--nf-blue); }
.ka-squares { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 8px; }
.ka-sq { width: 12px; height: 12px; border-radius: 2px; border: 1.5px solid var(--nf-line); background: var(--nf-bg); }
.ka-sq.done { background: var(--nf-blue); border-color: var(--nf-blue); }
.ka-sq.cur { border-color: var(--nf-blue); }
.ka-items { display: none; padding: 0 0 10px; }
.ka-unit.open .ka-items { display: block; }
.ka-item { display: flex; align-items: center; gap: 12px; padding: 9px 20px 9px 24px; text-decoration: none; color: var(--nf-ink); position: relative; }
.ka-item:hover { background: var(--nf-bg-2); }
.ka-item.cur { background: var(--nf-blue-soft); }
.ka-item.cur::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--nf-blue); }
.ka-ico { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--nf-line); display: grid; place-items: center; background: var(--nf-bg); color: var(--nf-mute); }
.ka-ico svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ka-item.cur .ka-ico { border-color: var(--nf-blue); color: var(--nf-blue); }
.ka-item.done .ka-ico { background: var(--nf-blue); border-color: var(--nf-blue); color: #fff; }
.ka-item-title { font-size: 14px; line-height: 1.3; color: var(--nf-head); }
.ka-item.cur .ka-item-title { font-weight: 600; }
.ka-ico.k-rest { border-style: dashed; }
/* Relevant Selection walk-through: crossed-out and chosen rows */
.ls-table tr.out td { color: var(--nf-mute); text-decoration: line-through; text-decoration-color: #d92916; }
.ls-table tr.out td:last-child { text-decoration: none; color: #d92916; }
.ls-table tr.pick td { background: color-mix(in srgb, var(--q-ct) 14%, transparent); font-weight: 600; }
.ls-table tr.ok td:last-child { color: var(--q-ct); }
/* no subject colours in the lesson title bar */
.lms-topbar .tc { color: inherit !important; }
/* optional extra examples inside a lesson page */
details.zb-more { margin: 18px 0; border: 1px dashed var(--nf-line); border-radius: 8px; padding: 8px 14px; }
details.zb-more > summary { cursor: pointer; font-weight: 700; color: var(--zb-ex); list-style: none; }
details.zb-more > summary::-webkit-details-marker { display: none; }
details.zb-more > summary::before { content: "+ "; }
details.zb-more[open] > summary::before { content: "− "; }

/* sidebar type in the Violet site style */
.ka-course { font-weight: 600 !important; letter-spacing: -.01em; font-size: 1.15rem; }
.ka-unit-no { color: var(--nf-blue) !important; font-weight: 600; letter-spacing: .1em; }
.ka-unit-title { font-weight: 600; letter-spacing: -.005em; }
.ka-item-title { font-weight: 500; }
.ka-item.cur .ka-item-title { font-weight: 600; color: var(--nf-blue); }
.ka-item { padding-left: 28px; }

/* ======================================================================
   COURSE WELCOME SCREEN (lesson.html without a lesson) — Mindvalley-style
   ====================================================================== */
body.nf .wl { width: 100%; max-width: 1080px; background: transparent !important; font-family: "Google Sans Flex", "Inter", system-ui, sans-serif; color: var(--nf-ink); padding: 8px 0 40px; }
.wl * { font-family: inherit; }
.wl-hero { position: relative; display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: center; padding: 48px 44px; border-radius: 28px; overflow: hidden;
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, #3B82F6 18%, var(--nf-bg)) 0%, var(--nf-bg) 55%), var(--nf-bg);
  border: 1px solid var(--nf-line); box-shadow: 0 20px 60px color-mix(in srgb, #2563EB 12%, transparent); }
.wl-hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, #3B82F6 28%, transparent), transparent 70%); pointer-events: none; }
.wl-kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--nf-blue); background: var(--nf-blue-soft); padding: 6px 12px; border-radius: 999px; }
.wl-greet { margin: 18px 0 6px !important; font-size: 1.1rem; color: var(--nf-mute); font-weight: 500; }
body.nf.paper .wl h1, body.nf .wl h1 { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.08; font-weight: 700; letter-spacing: -.025em; color: var(--nf-head); margin: 0 0 16px; text-align: left; }
.wl-grad { background: linear-gradient(90deg, #2563EB, #60A5FA); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wl-sub { font-size: 1.08rem; line-height: 1.6; color: var(--nf-mute); max-width: 560px; margin: 0 0 26px !important; }
.wl-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.wl-btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; color: #fff !important;
  background: linear-gradient(180deg, #3B82F6 0%, #2563EB 100%); box-shadow: 0 10px 24px color-mix(in srgb, #2563EB 35%, transparent); transition: transform .15s, box-shadow .15s; }
.wl-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 30px color-mix(in srgb, #2563EB 45%, transparent); }
.wl-btn.ghost { background: var(--nf-bg); color: var(--nf-head) !important; border: 1px solid var(--nf-line); box-shadow: none; }
.wl-btn.ghost:hover { border-color: var(--nf-blue); color: var(--nf-blue) !important; }
.wl-card { background: var(--nf-bg); border: 1px solid var(--nf-line); border-radius: 20px; padding: 22px; box-shadow: 0 6px 20px rgba(15, 20, 30, .05); }
.wl-progress { display: flex; align-items: center; gap: 20px; position: relative; z-index: 1; }
.wl-ring { --p: 0; flex: none; width: 118px; height: 118px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(#2563EB calc(var(--p) * 1%), var(--nf-line) 0); }
.wl-ring span { width: 94px; height: 94px; border-radius: 50%; background: var(--nf-bg); display: grid; place-content: center; text-align: center; }
.wl-ring b { font-size: 1.6rem; font-weight: 700; color: var(--nf-head); line-height: 1; }
.wl-ring small { font-size: 12px; color: var(--nf-mute); }
.wl-stat { margin: 0 0 10px !important; color: var(--nf-mute); font-size: 14px; }
.wl-stat b { color: var(--nf-head); font-size: 1.1rem; }
.wl-next-label { margin: 0 !important; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--nf-blue); }
.wl-next { margin: 4px 0 2px !important; font-size: 1.05rem; font-weight: 600; color: var(--nf-head); line-height: 1.3; }
.wl-week { margin: 0 !important; font-size: 13px; color: var(--nf-mute); }
.wl-section { margin-top: 44px; }
body.nf.paper .wl-section h2, body.nf .wl-section h2 { font-size: 1.6rem; font-weight: 700; letter-spacing: -.015em; color: var(--nf-head); margin: 0 0 18px; text-align: left; }
.wl-phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.wl-phase { position: relative; padding: 20px; border-radius: 18px; border: 1px solid var(--nf-line); background: var(--nf-bg); }
.wl-phase.now { border-color: transparent; background: linear-gradient(var(--nf-bg), var(--nf-bg)) padding-box, linear-gradient(135deg, #2563EB, #38BDF8) border-box; border: 2px solid transparent; box-shadow: 0 12px 30px color-mix(in srgb, #2563EB 18%, transparent); }
.wl-phase.past { opacity: .6; }
.wl-phase-no { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-weight: 700; background: var(--nf-blue-soft); color: var(--nf-blue); margin-bottom: 12px; }
.wl-phase.now .wl-phase-no { background: linear-gradient(180deg, #3B82F6, #2563EB); color: #fff; }
.wl-phase-when { display: block; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--nf-mute); text-transform: uppercase; }
.wl-phase.now .wl-phase-when { color: var(--nf-blue); }
body.nf.paper .wl-phase h3, .wl-phase h3 { font-size: 1.1rem; font-weight: 700; margin: 6px 0 6px !important; color: var(--nf-head); }
.wl-phase p, .wl-promises p { font-size: 14px; line-height: 1.5; color: var(--nf-mute); margin: 0 !important; }
.wl-day { display: grid; grid-template-columns: 1fr 1.6fr; gap: 28px; align-items: start; padding: 32px; border-radius: 24px; background: var(--nf-bg-2); }
.wl-day h2 { margin-bottom: 8px; }
.wl-muted { color: var(--nf-mute); margin: 0 !important; }
.wl-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 12px; }
.wl-steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; background: var(--nf-bg); border-radius: 16px; padding: 16px 18px; border: 1px solid var(--nf-line); }
.wl-steps li::before { content: counter(s); grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(180deg, #3B82F6, #2563EB); color: #fff; font-weight: 700; }
.wl-steps b { color: var(--nf-head); font-weight: 600; }
.wl-steps span { font-size: 14px; color: var(--nf-mute); line-height: 1.5; }
.wl-promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.wl-ico { font-size: 26px; }
body.nf.paper .wl-promises h3, .wl-promises h3 { font-size: 1.1rem; font-weight: 700; margin: 10px 0 6px !important; color: var(--nf-head); }
.wl-quote { margin: 48px auto 0; max-width: 760px; text-align: center; font-size: clamp(1.25rem, 2.4vw, 1.7rem); line-height: 1.4; font-weight: 600; letter-spacing: -.01em; color: var(--nf-head); border: 0; padding: 0; }
@media (max-width: 860px) {
  .wl-hero { grid-template-columns: 1fr; padding: 32px 22px; }
  .wl-phases, .wl-promises { grid-template-columns: 1fr 1fr; }
  .wl-day { grid-template-columns: 1fr; padding: 22px; }
}
@media (max-width: 520px) { .wl-phases, .wl-promises { grid-template-columns: 1fr; } }

/* sign-in / sign-up pages (login.html, signup.html): Google button, "or" divider, messages */
.sk-google-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 16px; border: 2px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); font: 700 15px "Google Sans Flex", Lato, system-ui, sans-serif; cursor: pointer; transition: border-color .15s; }
.sk-google-btn:hover { border-color: var(--blue); }
.sk-google-btn:disabled, #login-submit:disabled, #signup-submit:disabled { opacity: .6; cursor: wait; }
.sk-google-btn .g { font: 700 18px Arial, sans-serif; background: conic-gradient(from -45deg, #ea4335 0 25%, #4285f4 0 50%, #34a853 0 75%, #fbbc05 0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sk-or { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--mute); font-size: 13px; }
.sk-or::before, .sk-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sk-auth-msg { color: #d92916; font-size: 14px; margin: 0 0 16px; }
.sk-auth-msg.ok { color: #15803d; }

/* accounts: header account chip, member plan card, locks, paywall */
.sk-account { display: inline-flex; align-items: center; gap: 10px; font-family: var(--nf-font); }
.sk-avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(180deg, #3B82F6, #2563EB); }
.sk-name { display: flex; flex-direction: column; line-height: 1.1; font-weight: 600; font-size: 14px; color: var(--nf-head); }
.sk-name small { font-size: 11px; font-weight: 500; color: var(--nf-blue); }
.sk-logout { font-size: 13px; color: var(--nf-mute); text-decoration: none; }
.sk-logout:hover { color: var(--nf-blue); }
.sk-member-offer { text-align: center; }
.sk-badge { display: inline-block; padding: 5px 12px; border-radius: 999px; background: color-mix(in srgb, var(--q-ct) 15%, transparent); color: var(--q-ct); font-weight: 700; font-size: 13px; margin-bottom: 10px; }
.sk-plan { font-weight: 600; color: var(--nf-head); margin: 6px 0 2px; }
.sk-renew { color: var(--nf-mute); margin: 0 0 16px; font-size: 14px; }
.ka-item.locked .ka-item-title { color: var(--nf-mute); }
.ka-lock { margin-left: auto; font-size: 12px; opacity: .7; }
.wl-free { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 24px; padding: 18px 22px; border-radius: 18px; background: var(--nf-blue-soft); color: var(--nf-head); }
.wl-free b { color: var(--nf-blue); }
.wl-free .wl-btn { flex: none; padding: 11px 20px; font-size: 14px; }
.wl-incl { margin: 10px 0 0; padding-left: 1.2em; color: var(--nf-ink); line-height: 1.9; }
@media (max-width: 700px) { .wl-free { flex-direction: column; align-items: flex-start; } .sk-name small, .sk-logout { display: none; } }
/* welcome page: about, journal download, letter */
.wl-about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
body.nf.paper .wl-about h2, body.nf.paper .wl-journal h2, body.nf.paper .wl-letter h2 { font-size: 1.7rem; line-height: 1.2; font-weight: 700; letter-spacing: -.015em; color: var(--nf-head); margin: 12px 0 14px; text-align: left; }
.wl-about p, .wl-journal p, .wl-letter p { color: var(--nf-ink); line-height: 1.65; margin: 0 0 12px !important; font-size: 1rem; }
.wl-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wl-stats div { background: var(--nf-bg); border: 1px solid var(--nf-line); border-radius: 18px; padding: 18px; }
.wl-stats b { display: block; font-size: 2.2rem; line-height: 1; font-weight: 700; letter-spacing: -.02em; background: linear-gradient(90deg, #3B82F6, #2563EB); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wl-stats span { font-size: 13px; color: var(--nf-mute); }
.wl-journal { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: center; padding: 36px; border-radius: 28px;
  background: linear-gradient(135deg, color-mix(in srgb, #3B82F6 12%, var(--nf-bg)), var(--nf-bg-2)); border: 1px solid var(--nf-line); }
.wl-journal-pics { position: relative; height: 320px; }
.wl-journal-pics img { position: absolute; width: 58%; border-radius: 10px; box-shadow: 0 18px 40px rgba(40, 10, 80, .22); }
.wl-jp1 { left: 4%; top: 0; transform: rotate(-5deg); z-index: 2; }
.wl-jp2 { right: 4%; top: 26px; transform: rotate(6deg); }
.wl-small { font-size: 13px !important; color: var(--nf-mute) !important; margin-top: 14px !important; }
.wl-letter { max-width: 760px; margin-left: auto; margin-right: auto; padding: 36px 40px; border-radius: 24px; background: var(--nf-bg); border: 1px solid var(--nf-line); }
.wl-sign { font-weight: 700; color: var(--nf-blue) !important; margin-top: 18px !important; }
@media (max-width: 860px) { .wl-about, .wl-journal { grid-template-columns: 1fr; } .wl-journal { padding: 24px; } .wl-journal-pics { height: 260px; } .wl-letter { padding: 24px; } }
/* welcome page icons (line icons instead of emoji) */
.wl-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--nf-blue-soft); color: var(--nf-blue); }
.wl-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* sidebar: Welcome entry above Week 1 */
.ka-welcome { display: block; padding: 14px 20px 14px 24px; border-bottom: 1px solid var(--nf-line); text-decoration: none; position: relative; }
.ka-welcome:hover { background: var(--nf-bg-2); }
.ka-welcome.cur { background: var(--nf-blue-soft); }
.ka-welcome.cur::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--nf-blue); }
.ka-welcome.cur .ka-unit-title { color: var(--nf-blue); }
/* dark mode: navy text gradients would vanish on dark backgrounds, use light steel blue */
html.dark-mode .wl-grad, body.dark-mode .wl-grad, html.dark-mode .wl-stats b, body.dark-mode .wl-stats b { background-image: linear-gradient(90deg, #C3D2F0, #7AA9F8); }

/* Welcome / membership page inside the lesson player: plain white page, no dotted desk */
body.nf.paper.lesson-active .lms-main:has(.wl) { background: #ffffff; }
body.nf.paper.lesson-active .lms-main:has(.wl) #slide-container { background-image: none !important; background-color: transparent !important; }
html.dark-mode body.nf.paper.lesson-active .lms-main:has(.wl), body.nf.paper.lesson-active.dark-mode .lms-main:has(.wl) { background: var(--nf-bg, #0f1117); }

/* ======================================================================
   POP-UPS IN WEBSITE STYLE: the exam start screen (mode choice / members only)
   uses the same look as the rest of the site, even on "Paper" pages.
   ====================================================================== */
body.nf .mode-screen {
  --nf-bg: #ffffff; --nf-bg-2: #F5F7FB; --nf-line: #e5e7eb;
  --nf-ink: #0f131a; --nf-mute: #71767f; --nf-head: #0f131a;
  --nf-blue: #2563EB; --nf-blue-d: #1E40AF; --nf-blue-soft: #EAF1FE;
  --nf-font: "Google Sans Flex", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-family: var(--nf-font);
  background: radial-gradient(90% 70% at 50% 0%, #EAF1FE 0%, #f6f7fb 60%), #f6f7fb;
}
html.dark-mode body.nf .mode-screen, body.nf.dark-mode .mode-screen {
  --nf-bg: #161b24; --nf-bg-2: #1e2430; --nf-line: #2a303b;
  --nf-ink: #e8eaee; --nf-mute: #a0a6b1; --nf-head: #ffffff;
  --nf-blue: #7AA9F8; --nf-blue-d: #3B82F6; --nf-blue-soft: #1C2A45;
  background: radial-gradient(90% 70% at 50% 0%, #17233b 0%, #0f1117 60%), #0f1117;
}
body.nf .mode-screen * { font-family: inherit; }
body.nf .mode-card, body.nf.paper .mode-card {
  background: var(--nf-bg); border: 1px solid var(--nf-line); border-radius: 24px;
  padding: 40px 36px 32px; max-width: 480px; box-shadow: 0 24px 60px rgba(15, 19, 26, .12); }
body.nf .mode-card .chip {
  display: inline-block; background: var(--nf-blue-soft); color: var(--nf-blue); border: 0; border-radius: 999px;
  padding: 6px 14px; font: 700 12px/1 var(--nf-font); letter-spacing: .08em; text-transform: uppercase; }
body.nf .mode-card h1 { font: 700 2rem/1.15 var(--nf-font); letter-spacing: -.02em; color: var(--nf-head); margin: 0 0 12px; }
body.nf .mode-card .mode-lead { font: 400 16px/1.55 var(--nf-font); color: var(--nf-mute); margin: 0 0 26px; }
body.nf .mode-card .mode-note { font: 400 14px/1.5 var(--nf-font); color: var(--nf-mute); margin: 10px 0 22px; }
body.nf .mode-card .mode-note strong { color: var(--nf-head); font-weight: 600; }
body.nf .mode-card .btn {
  display: flex; align-items: center; justify-content: center; width: 100%; box-sizing: border-box; margin: 0 0 10px;
  font: 500 16px/1 var(--nf-font); letter-spacing: .2px; border-radius: 999px; padding: 16px 24px; cursor: pointer;
  background: linear-gradient(180deg, #3B82F6 0%, #2563EB 100%); color: #fff; border: 0; box-shadow: none; text-decoration: none; }
body.nf .mode-card .btn:hover { background: linear-gradient(180deg, #1D4ED8 0%, #1E40AF 100%); transform: none; }
body.nf .mode-card .btn.alt { background: transparent; color: var(--nf-head); border: 1px solid var(--nf-line); }
body.nf .mode-card .btn.alt:hover { background: transparent; color: var(--nf-blue); border-color: var(--nf-blue); }

/* Real images on course pages (replace .ph-img placeholders) */
.mv-img { margin: 0; border-radius: 16px; overflow: hidden; background: var(--nf-bg-2); }
.mv-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mv-story .mv-img { margin: 34px 0; }
.mv-role { margin: -6px 0 14px; font-weight: 600; color: var(--nf-blue); }
.mv-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.mv-stats > div { padding: 14px 16px; border: 1px solid var(--nf-line); border-radius: 14px; background: var(--nf-bg); }
.mv-stats b { display: block; font-size: 1.6rem; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; color: var(--nf-blue); }
.mv-stats span { display: block; margin-top: 4px; font-size: .86rem; line-height: 1.35; color: var(--nf-mute); }
@media (max-width: 560px) { .mv-stats { grid-template-columns: 1fr; } }
.mv-roadmap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; align-items: center; margin-top: 36px; }
.mv-roadmap p { margin: 0; font-size: 1.2rem; line-height: 1.55; color: var(--nf-ink); }
.mv-devices { background: transparent; border-radius: 0; }
@media (max-width: 860px) { .mv-roadmap { grid-template-columns: 1fr; gap: 24px; } }

/* Italic math letters (x, P, a …) lean right and stick out of their box, so the next word or symbol
   touched them ("Pwhen"). A little right padding = TeX's italic correction. More specific than the
   padding-right: 0 rule above. */
body.nf.paper mjx-mi.mjx-i mjx-c::before { padding-right: .07em !important; }
/* Full-size fractions inside running text: give their line extra room above and below so a fraction
   never touches the line above or below it. */
body.nf.paper.lesson-active .slide mjx-container[jax="CHTML"]:not([display="true"]):has(mjx-mfrac) {
  display: inline-block; margin: .3em .04em; vertical-align: middle; }

/* Buttons inside lesson slides (e.g. "Open Mock 2 in practice mode"): website pill buttons, not the exam style */
body.nf.paper.lesson-active .slide .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 15px/1 var(--st-text); letter-spacing: .2px; border-radius: 999px; padding: 13px 22px; text-decoration: none; cursor: pointer;
  background: linear-gradient(180deg, #3B82F6 0%, #2563EB 100%); color: #fff; border: 0; box-shadow: none; }
body.nf.paper.lesson-active .slide .btn:hover { background: linear-gradient(180deg, #1D4ED8 0%, #1E40AF 100%); }
body.nf.paper.lesson-active .slide .btn.alt { background: transparent; color: var(--st-head); border: 1px solid var(--st-line); }
body.nf.paper.lesson-active .slide .btn.alt:hover { color: var(--st-brand); border-color: var(--st-brand); }
/* Indie Flower is a thin pen: a hair-line outline makes hand-written notes as easy to read as the text */
body.nf.paper.lesson-active :is(.zb-steps > .r, .zb-side, .zb-sol-label, .ls-sol > strong:first-child, .zb-rem .zb-label, .zb-note .zb-label, details.ls-reveal summary) {
  -webkit-text-stroke: .35px currentColor; letter-spacing: .01em; }

/* ======================================================================
   ERROR LOG GUIDE — lesson.html?page=error-log (same .wl look as Welcome)
   ====================================================================== */
.el-hero { grid-template-columns: 1fr; }
.el-hero h1 { max-width: 760px; }
.el-tree { list-style: none; counter-reset: q; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.el-tree li { counter-increment: q; position: relative; padding: 18px 18px 18px 64px; border: 1px solid var(--nf-line); border-radius: 18px; background: var(--nf-bg); }
.el-tree li::before { content: counter(q); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; color: #fff; background: linear-gradient(180deg, #3B82F6, #2563EB); }
.el-tree b { display: block; color: var(--nf-head); font-size: 1.05rem; margin-bottom: 6px; }
.el-tree span { display: block; color: var(--nf-ink); line-height: 1.5; }
.el-tree strong { color: var(--nf-blue); }
.el-tree em { display: block; margin-top: 8px; font-style: normal; font-size: 14px; color: var(--nf-mute); }
.el-table-wrap { overflow-x: auto; margin-top: 16px; border: 1px solid var(--nf-line); border-radius: 16px; }
.el-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.el-table th { text-align: left; padding: 12px 14px; background: var(--nf-blue-soft); color: var(--nf-blue); font-weight: 600; white-space: nowrap; }
.el-table td { padding: 12px 14px; border-top: 1px solid var(--nf-line); color: var(--nf-ink); vertical-align: top; }
.el-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.el-compare > div { padding: 16px 18px; border-radius: 16px; border: 1px solid var(--nf-line); }
.el-compare b { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.el-compare p { margin: 0 !important; color: var(--nf-ink); }
.el-bad { background: color-mix(in srgb, #e0315a 6%, var(--nf-bg)); } .el-bad b { color: #c0264b; }
.el-good { background: color-mix(in srgb, #1f9d63 7%, var(--nf-bg)); } .el-good b { color: #178350; }
.el-mock { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.el-mock h3 { margin: 0 0 8px; font-size: 1.15rem; }
.el-mock p { margin: 0 !important; color: var(--nf-ink); line-height: 1.6; }
.el-blank { margin-top: 16px; border: 1px solid var(--nf-line); }
.el-blank td { height: 30px; border-left: 1px solid var(--nf-line); }
.ka-tool { border-top: 0; }
@media (max-width: 760px) { .el-tree, .el-compare, .el-mock { grid-template-columns: 1fr; } }

/* Print: only the blank log, landscape, black on white */
@media print {
  body:has(.el) > *:not(.lms-container) { display: none !important; }
  body:has(.el) .lms-sidebar, body:has(.el) .lms-topbar, body:has(.el) #lesson-footer, body:has(.el) #ps-toolbar,
  body:has(.el) header, body:has(.el) canvas { display: none !important; }
  body:has(.el) .el > section:not(.el-print), body:has(.el) .el-noprint { display: none !important; }
  body:has(.el) .lms-main, body:has(.el) #slide-container { background: #fff !important; overflow: visible !important; }
  .el-print h2 { font-size: 16pt; color: #000; }
  .el-blank th { background: #fff !important; color: #000 !important; border: 1px solid #000; font-size: 9pt; }
  .el-blank td { border: 1px solid #000 !important; height: 26pt; }
  @page { size: A4 landscape; margin: 12mm; }
}
.el > .wl-section:not(.wl-day) { padding-top: 0; padding-bottom: 0; }
.el > .wl-section { margin-top: 48px; }
/* Bold math letters (\mathbf: vectors a, b) must stay bold after the font swap above */
body.nf.paper :is(mjx-mi, mjx-mn, mjx-mtext):is(.mjx-b, .mjx-bi) mjx-c { font-weight: 700 !important; }
body.nf.paper :is(mjx-mi, mjx-mn, mjx-mtext).mjx-bi mjx-c { font-style: italic; }
/* Real course images on catalog cards (same box as the .ph-img placeholder) */
.mv-card .mv-card-img { border-radius: 0; aspect-ratio: 16 / 10; }
.mv-card .mv-card-img img { object-position: center bottom; }
/* Course covers on catalog cards: text-free art (assets/catalog/art/<id>.jpg, made in Higgsfield) with the title
   set in HTML on top: always white, one display font per course (.cv-<id>). Sizes are in cqw (card width). */
.mv-card .mv-cover { position: relative; container-type: inline-size; background: #0b1020; }
.mv-card .mv-cover img { object-position: center; }
.mv-cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0, 0, 0, .34), rgba(0, 0, 0, .08) 75%); }
.mv-cover-t { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 0 6cqw; color: #fff; text-shadow: 0 .4cqw 3cqw rgba(0, 0, 0, .45); font-family: var(--cf, "Montserrat"), sans-serif; text-transform: var(--ctt, none); letter-spacing: var(--cl, .02em); }
.mv-cover-t .l1 { font-size: var(--s1, 6cqw); font-weight: var(--w1, 300); line-height: 1.15; }
.mv-cover-t .l2 { font-size: var(--s2, 15cqw); font-weight: var(--w2, 700); line-height: 1.02; }
.mv-cover-t small { font: 500 2.5cqw Montserrat, sans-serif; letter-spacing: .34em; margin-right: -.34em; text-transform: uppercase; opacity: .92; margin-top: 3.2cqw; }
/* Skillpeak logo at the bottom of every cover (white mark + wordmark, as on the Ace the NUET cover); the title sits a little higher to make room */
.mv-cover-t { padding-bottom: 9cqw; }
.mv-cover-logo { position: absolute; left: 0; right: 0; bottom: 5.5cqw; display: flex; align-items: center; justify-content: center; gap: 1.3cqw;
  font: 600 4.2cqw "Google Sans Flex", Inter, system-ui, sans-serif; letter-spacing: -.02em; text-transform: none; }
.mv-card .mv-cover .mv-cover-logo img { width: auto; height: 5cqw; filter: brightness(0) invert(1); }
/* "Ace the …" series: Mindvalley-like type — wide geometric caps (IELTS, SAT) or an italic/roman serif pair (TOEFL), and a larger, widely tracked label under the title */
.cv-enlighten { --cf: "Unbounded"; --w1: 300; --w2: 600; --s1: 4.2cqw; --s2: 12.5cqw; --cl: -.03em; }      /* the course's own wordmark type */
.cv-enlighten .l2 b { font-weight: inherit; color: inherit; }      /* cover text is always white (docs/design.md) */
.cv-enlighten .l1 { margin-bottom: 1.6cqw; letter-spacing: .02em; }
.cv-ace-the-ielts { --ctt: uppercase; --cf: "Sora"; --w1: 300; --w2: 800; --s1: 6.4cqw; --s2: 17cqw; --cl: .06em; }
.cv-ace-the-sat { --ctt: uppercase; --cf: "Lexend Exa"; --w1: 300; --w2: 700; --s1: 5.4cqw; --s2: 19cqw; --cl: .02em; }
.cv-ace-the-toefl { --cf: "Cormorant Garamond"; --w1: 500; --w2: 600; --s1: 9.5cqw; --s2: 18cqw; --cl: .06em; }
.cv-ace-the-toefl .l1 { font-style: italic; text-transform: none; letter-spacing: 0; }
:is(.cv-ace-the-ielts, .cv-ace-the-sat, .cv-ace-the-toefl) small { font-size: 3.1cqw; font-weight: 400; letter-spacing: .5em; margin-right: -.5em; margin-top: 1.6cqw; opacity: 1; }
:is(.cv-ace-the-ielts, .cv-ace-the-sat, .cv-ace-the-toefl) .l2 { line-height: 1.08; }
/* English levels (courses/english/<cefr>-<name>): "English" + the level name, label = level number and CEFR */
:is(.cv-pre-a1-rookie, .cv-a1-warrior, .cv-a2-epic, .cv-b1-pro, .cv-b2-legend, .cv-c1-goat) .l1 { font: 300 5.6cqw Montserrat, sans-serif; letter-spacing: .5em; margin-right: -.5em; text-transform: uppercase; margin-bottom: 1cqw; }
.cv-pre-a1-rookie { --cf: "Fredoka"; --w2: 700; --s2: 20cqw; --cl: .01em; }
.cv-a1-warrior { --ctt: uppercase; --cf: "Bungee"; --w2: 400; --s2: 14.5cqw; --cl: .01em; }
.cv-a2-epic { --ctt: uppercase; --cf: "Audiowide"; --w2: 400; --s2: 21cqw; --cl: .04em; }
.cv-b1-pro { --ctt: uppercase; --cf: "Kanit"; --w2: 800; --s2: 25cqw; --cl: .02em; }
.cv-b1-pro .l2 { font-style: italic; }
.cv-b2-legend { --cf: "Cinzel Decorative"; --w2: 900; --s2: 16cqw; --cl: .03em; }
.cv-c1-goat { --cf: "Rubik Mono One"; --w2: 400; --s2: 21cqw; --cl: .02em; }
.cv-speak-like-a-native { --cf: "Fredoka"; --w1: 500; --w2: 700; --s1: 8cqw; --s2: 21cqw; --cl: 0; }      /* the rounded, chunky type of the course itself (english.css) */
.cv-grammar-bootcamp { --cf: "Saira Stencil One"; --w1: 400; --w2: 400; --s1: 8cqw; --s2: 13cqw; --cl: .04em; }
.cv-pronunciation-lab { --cf: "Space Grotesk"; --w1: 300; --w2: 700; --s1: 8.2cqw; --s2: 20cqw; --cl: .1em; }
.cv-academic-writing { --cf: "Playfair Display"; --w1: 500; --w2: 700; --s1: 8cqw; --s2: 16cqw; --cl: 0; }
.cv-academic-writing .l1 { font-style: italic; }
.cv-business-english { --cf: "Montserrat"; --w1: 200; --w2: 600; --s1: 9.5cqw; --s2: 13cqw; --cl: .12em; }
.cv-medical-english { --cf: "Josefin Sans"; --w1: 300; --w2: 600; --s1: 9cqw; --s2: 15cqw; --cl: .12em; }
.cv-it-tech-english { --cf: "JetBrains Mono"; --w1: 300; --w2: 800; --s1: 8cqw; --s2: 15cqw; --cl: 0; }
.cv-legal-english { --cf: "Cinzel"; --w1: 400; --w2: 700; --s1: 9cqw; --s2: 15cqw; --cl: .08em; }
.cv-english-for-interviews { --cf: "Archivo"; --w1: 300; --w2: 800; --s1: 6.5cqw; --s2: 10.5cqw; --cl: .01em; }
/* Professional English, added 2026-11-17 */
.cv-aviation-english { --ctt: uppercase; --cf: "Exo 2"; --w1: 300; --w2: 800; --s1: 8cqw; --s2: 15cqw; --cl: .06em; }
.cv-aviation-english :is(.l1, .l2) { font-style: italic; }
.cv-finance-accounting-english { --cf: "DM Serif Display"; --w1: 400; --w2: 400; --s1: 7.4cqw; --s2: 16cqw; --cl: 0; }
.cv-oil-gas-english { --ctt: uppercase; --cf: "Chakra Petch"; --w1: 300; --w2: 700; --s1: 8.5cqw; --s2: 15cqw; --cl: .06em; }
.cv-hospitality-tourism-english { --cf: "Marcellus"; --w1: 400; --w2: 400; --s1: 6.6cqw; --s2: 16cqw; --cl: .03em; }
.cv-marketing-english { --cf: "Righteous"; --w1: 400; --w2: 400; --s1: 8.5cqw; --s2: 15cqw; --cl: .02em; }
.cv-engineering-english { --ctt: uppercase; --cf: "Rajdhani"; --w1: 400; --w2: 700; --s1: 8cqw; --s2: 17cqw; --cl: .1em; }
.cv-math-foundations { --cf: "Syne"; --w1: 500; --w2: 800; --s1: 8cqw; --s2: 8.6cqw; --cl: .02em; }
.cv-critical-thinking-essentials { --cf: "Unbounded"; --w1: 300; --w2: 600; --s1: 5.6cqw; --s2: 10cqw; --cl: 0; }
.mv-hero-img { aspect-ratio: 16 / 10; border-radius: 20px; box-shadow: 0 24px 60px rgba(15, 19, 26, .14); }
.mv-hero-img img { object-position: center bottom; }
.mv-phero .mv-split .mv-actions { justify-content: flex-start; }

/* Phones: the header must fit in 375px (logo + theme + account + main button) */
@media (max-width: 560px) {
  body.nf header.bar { gap: 8px; }
  body.nf .nav-right { gap: 8px; }
  body.nf .nav-right .sk-account { gap: 0; }
  body.nf .nav-right .sk-name { display: none; }
  body.nf header.bar .logo { font-size: 22px; }
  body.nf header.bar .logo .logo-mark { width: 28px; height: 28px; }
}
@media (max-width: 360px) {
  body.nf header.bar .logo b { display: none; }   /* very small phones: logo mark only */
}

/* Account menu: opened by the avatar button (needed on phones, where "Log out" is hidden) */
.sk-account { position: relative; }
button.sk-avatar { border: 0; padding: 0; cursor: pointer; font: 700 15px/1 var(--nf-font); }
button.sk-avatar:focus-visible { outline: 3px solid color-mix(in srgb, #2563EB 40%, transparent); outline-offset: 2px; }
.sk-menu { position: absolute; top: calc(100% + 10px); right: 0; z-index: 3000; min-width: 210px; padding: 8px;
  background: var(--nf-bg, #fff); border: 1px solid var(--nf-line); border-radius: 16px; box-shadow: 0 18px 44px rgba(15, 19, 26, .16);
  display: flex; flex-direction: column; font-family: var(--nf-font); }
.sk-menu[hidden] { display: none; }
.sk-menu-who { padding: 8px 12px 10px; border-bottom: 1px solid var(--nf-line); margin-bottom: 6px; }
.sk-menu-who b { display: block; font-size: 15px; color: var(--nf-head); }
.sk-menu-who span { font-size: 12px; color: var(--nf-blue); font-weight: 600; }
.sk-menu a, .sk-menu button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px; border: 0; background: none;
  font: 500 14px/1.2 var(--nf-font); color: var(--nf-head); text-decoration: none; cursor: pointer; }
.sk-menu a:hover, .sk-menu button:hover { background: var(--nf-blue-soft); color: var(--nf-blue); }
.sk-menu .sk-menu-logout { color: #c0264b; }
/* Phones: keep the "Log in" link (an older rule hid it, leaving no way to log in on a phone) */
@media (max-width: 640px) { body.nf .bar.nf-bar .nav-right .nav-btn-text { display: inline; } }

/* ===== Lesson editor (editor.html, editor.js) — developer / admin only ===== */
.ed-draft-banner { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 9999; background: #fde68a; color: #422006; border: 1px solid #f59e0b;
  border-radius: 999px; padding: 8px 18px; font: 600 .9rem var(--nf-font, sans-serif); box-shadow: 0 6px 20px rgba(0,0,0,.15); max-width: calc(100% - 32px); text-align: center; }
body.ed-page { background: var(--nf-bg-2, #f4f5f7); }
.ed-app { font-family: var(--nf-font); color: var(--nf-ink); }
.ed-gate { max-width: 560px; margin: 80px auto; padding: 0 16px; text-align: center; font-size: 1.05rem; color: var(--nf-mute); }
.ed-gate .ed-btn { margin-left: 8px; }
.ed-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr) 340px; gap: 0; height: calc(100vh - 64px); }
.ed-layout[hidden] { display: none; }
.ed-side, .ed-insp { background: var(--nf-surface, #fff); border-right: 1px solid var(--nf-line); padding: 14px; overflow: auto; }
.ed-insp { border-right: 0; border-left: 1px solid var(--nf-line); }
.ed-main { display: flex; flex-direction: column; min-width: 0; overflow: hidden; padding: 0; }
.ed-lbl { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--nf-mute); margin: 0 0 6px; }
.ed-input { width: 100%; box-sizing: border-box; font: 500 .92rem var(--nf-font); color: var(--nf-ink); background: var(--nf-bg, #fff); border: 1px solid var(--nf-line); border-radius: 8px; padding: 7px 9px; margin-bottom: 10px; }
textarea.ed-input { resize: vertical; line-height: 1.45; }
.ed-input:focus { outline: 2px solid var(--nf-blue-soft); border-color: var(--nf-blue); }
.ed-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; }
.ed-lessons { margin-top: 4px; }
.ed-group-h { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--nf-mute); margin: 14px 0 4px; }
.ed-lesson { display: flex; justify-content: space-between; gap: 6px; width: 100%; text-align: left; background: none; border: 0; border-radius: 8px; padding: 6px 8px; font: 500 .86rem var(--nf-font); color: var(--nf-ink); cursor: pointer; }
.ed-lesson:hover { background: var(--nf-bg-2); }
.ed-lesson.on { background: var(--nf-blue-soft); color: var(--nf-blue-d, var(--nf-blue)); font-weight: 700; }
.ed-badge { flex: none; font-size: .68rem; font-weight: 700; color: #92400e; background: #fef3c7; border-radius: 999px; padding: 1px 7px; align-self: center; }
.ed-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; background: var(--nf-surface, #fff); border-bottom: 1px solid var(--nf-line); }
.ed-title b { display: block; font-size: 1.02rem; color: var(--nf-head); }
.ed-status { font-size: .8rem; color: var(--nf-mute); }
.ed-status.dirty { color: #b45309; }
.ed-actions, .ed-row { display: flex; flex-wrap: wrap; gap: 6px; }
.ed-row { margin: 4px 0 12px; }
.ed-row.end { justify-content: flex-end; }
.ed-btn { font: 700 .85rem var(--nf-font); border-radius: 8px; padding: 8px 14px; border: 1px solid var(--nf-blue); background: var(--nf-blue); color: #fff; cursor: pointer; text-decoration: none; display: inline-block; }
.ed-btn.line { background: transparent; color: var(--nf-blue); }
.ed-btn.danger { background: transparent; color: #dc2626; border-color: #fca5a5; }
.ed-btn.sm { padding: 5px 10px; font-size: .8rem; }
.ed-btn:disabled { opacity: .45; cursor: default; }
.ed-strip-wrap { display: flex; align-items: center; gap: 10px; padding: 8px 16px; border-bottom: 1px solid var(--nf-line); background: var(--nf-surface, #fff); }
.ed-strip { display: flex; gap: 6px; list-style: none; margin: 0; padding: 2px 0 4px; overflow-x: auto; flex: 1; min-width: 0; }
.ed-strip li { flex: none; }
.ed-slide-btn { display: grid; grid-template-columns: auto 1fr; column-gap: 6px; width: 150px; text-align: left; background: var(--nf-bg, #fff); border: 1px solid var(--nf-line); border-radius: 10px; padding: 6px 8px; cursor: pointer; font-family: var(--nf-font); color: var(--nf-ink); }
.ed-strip li.on .ed-slide-btn { border-color: var(--nf-blue); box-shadow: 0 0 0 2px var(--nf-blue-soft); }
.ed-slide-btn .n { grid-row: span 2; font-weight: 700; color: var(--nf-blue); font-size: .9rem; }
.ed-slide-btn .t { font-size: .78rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-slide-btn .m { font-size: .7rem; color: var(--nf-mute); }
.ed-strip-foot { display: flex; align-items: center; gap: 6px; flex: none; }
.ed-minutes { font-size: .8rem; color: var(--nf-mute); margin-right: 4px; white-space: nowrap; }
.ed-minutes .ok { color: #16a34a; } .ed-minutes .no { color: #dc2626; }
.ed-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px 16px; border-bottom: 1px solid var(--nf-line); background: var(--nf-surface, #fff); }
.ed-toolbar[hidden] { display: none; }
.ed-tool { font: 600 .78rem var(--nf-font); background: var(--nf-bg-2); color: var(--nf-ink); border: 1px solid var(--nf-line); border-radius: 6px; padding: 4px 8px; cursor: pointer; }
.ed-tool:hover { border-color: var(--nf-blue); color: var(--nf-blue); }
.ed-tool-lbl { font-size: .7rem; font-weight: 700; text-transform: uppercase; color: var(--nf-mute); margin: 0 2px 0 4px; }
.ed-sep { width: 1px; height: 20px; background: var(--nf-line); margin: 0 4px; }
.ed-canvas-wrap { flex: 1; overflow: auto; padding: 22px 18px 60px; }
.ed-empty { max-width: 520px; margin: 60px auto; text-align: center; color: var(--nf-mute); }
.ed-empty[hidden] { display: none; }
body.nf.paper.lesson-active .ed-canvas { max-width: 900px; margin: 0 auto; padding: 0; }
body.nf.paper.lesson-active .ed-canvas .slide { display: block !important; outline: none; }
.ed-canvas .slide[data-homework]::before { content: "Homework"; display: inline-block; font: 700 .7rem var(--nf-font); text-transform: uppercase; color: #92400e; background: #fef3c7; border-radius: 999px; padding: 2px 8px; margin-bottom: 8px; }
/* islands: tasks edited from the right panel */
.ed-canvas [data-ed-w] { cursor: pointer; outline: 2px dashed transparent; outline-offset: 3px; border-radius: 6px; transition: outline-color .15s; }
.ed-canvas [data-ed-w]:hover { outline-color: var(--nf-blue-soft); }
.ed-canvas [data-ed-w].ed-sel { outline: 2px solid var(--nf-blue); }
body.nf.paper.lesson-active .ed-canvas .ls-sol { display: block !important; }
.ed-canvas .ls-q[data-answer] ol.ls-options > li { position: relative; }
.ed-canvas .ls-q[data-answer="A"] ol.ls-options > li:nth-child(1), .ed-canvas .ls-q[data-answer="B"] ol.ls-options > li:nth-child(2),
.ed-canvas .ls-q[data-answer="C"] ol.ls-options > li:nth-child(3), .ed-canvas .ls-q[data-answer="D"] ol.ls-options > li:nth-child(4),
.ed-canvas .ls-q[data-answer="E"] ol.ls-options > li:nth-child(5) { color: #15803d; font-weight: 700; }
.ed-canvas .ls-q[data-answer="A"] ol.ls-options > li:nth-child(1)::after, .ed-canvas .ls-q[data-answer="B"] ol.ls-options > li:nth-child(2)::after,
.ed-canvas .ls-q[data-answer="C"] ol.ls-options > li:nth-child(3)::after, .ed-canvas .ls-q[data-answer="D"] ol.ls-options > li:nth-child(4)::after,
.ed-canvas .ls-q[data-answer="E"] ol.ls-options > li:nth-child(5)::after { content: "  ✓ correct"; font-size: .8em; }
/* inspector */
.ed-insp-h { margin-bottom: 12px; } .ed-insp-h b { display: block; font-size: 1rem; color: var(--nf-head); } .ed-insp-h span { font-size: .8rem; color: var(--nf-mute); }
.ed-field { display: block; } .ed-field small { display: block; margin: -6px 0 10px; font-size: .75rem; color: var(--nf-mute); }
.ed-check { display: flex; align-items: center; gap: 8px; font-size: .9rem; margin-bottom: 12px; }
.ed-note { font-size: .8rem; color: var(--nf-mute); line-height: 1.45; } .ed-note.warn { color: #b45309; }
.ed-opt, .ed-pair { display: grid; align-items: start; gap: 6px; margin-bottom: 6px; }
.ed-opt { grid-template-columns: auto auto 1fr auto; } .ed-opt b { padding-top: 7px; font-size: .85rem; } .ed-opt input[type=radio] { margin-top: 10px; }
.ed-pair { grid-template-columns: 1fr auto 1fr auto; } .ed-pair span { padding-top: 7px; color: var(--nf-mute); }
.ed-opt .ed-input, .ed-pair .ed-input { margin: 0; }
.ed-x { border: 0; background: none; color: #dc2626; font-size: 1.1rem; cursor: pointer; padding: 4px 6px; }
.ed-dialog { margin: auto; border: 1px solid var(--nf-line); border-radius: 14px; padding: 18px 20px; width: min(560px, calc(100% - 32px)); background: var(--nf-surface, #fff); color: var(--nf-ink); font-family: var(--nf-font); }
.ed-dialog::backdrop { background: rgba(0,0,0,.35); }
.ed-dialog h3 { margin: 0 0 6px; }
.ed-hist { list-style: none; padding: 0; margin: 10px 0; max-height: 55vh; overflow: auto; }
.ed-hist li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--nf-line); font-size: .88rem; }
.ed-hist small { color: var(--nf-mute); }
@media (max-width: 1100px) { .ed-layout { grid-template-columns: 220px minmax(0, 1fr); } .ed-insp { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--nf-line); } .ed-layout { height: auto; } .ed-main { overflow: visible; } }
@media (max-width: 760px) { .ed-layout { grid-template-columns: 1fr; } .ed-side { border-right: 0; border-bottom: 1px solid var(--nf-line); max-height: 260px; } }

/* ===== LANGUAGE BUTTON (i18n.js adds it next to .theme-btn) ===== */
html.i18n-wait body { visibility: hidden; }
.lang-switch { position: relative; display: flex; }
.lang-btn { height: 40px; min-width: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--soft); color: var(--navy); font: 600 13px/1 inherit; font-family: inherit; letter-spacing: .04em; cursor: pointer; transition: all .2s; }
.lang-btn:hover { background: var(--line); }
.lang-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 1000; min-width: 150px; padding: 6px; border-radius: 14px; border: 1px solid var(--line); background: var(--nf-bg, #fff); box-shadow: 0 12px 32px rgba(15, 23, 42, .16); display: flex; flex-direction: column; gap: 2px; }
.lang-menu[hidden] { display: none; }
.lang-menu button { padding: 9px 12px; border: 0; border-radius: 9px; background: none; color: inherit; font: 500 14px/1.2 inherit; font-family: inherit; text-align: left; cursor: pointer; }
.lang-menu button:hover { background: var(--soft); }
.lang-menu button.cur { font-weight: 700; color: var(--nf-accent, #2563EB); }
.dark-mode .lang-menu { background: #111827; color: #e5e7eb; }
@media (max-width: 640px) {
  .lang-btn { height: 34px; min-width: 34px; padding: 0 7px; font-size: 12px; }
  body.nf .nav-right .theme-btn { width: 34px; height: 34px; }
  body.nf .nav-right { gap: 6px; }
  body.nf .bar.nf-bar .nav-right .mv-start { padding-left: 12px; padding-right: 12px; }
}

/* ===== GENDER on signup.html (male / female, saved as users/{uid}.gender) ===== */
.sk-gender-pick { border: 0; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; min-width: 0; }
.sk-gender-pick legend { padding: 0; margin-bottom: 8px; font-weight: 700; font-size: 14px; color: var(--navy); }
.sk-gender-pick label { position: relative; display: block; padding: 12px 10px; border-radius: 10px; text-align: center; cursor: pointer; border: 2px solid var(--line); font-weight: 700; font-size: 15px; color: var(--navy); transition: border-color .15s, background .15s; }
.sk-gender-pick label:hover { border-color: var(--nf-accent, #2563EB); }
.sk-gender-pick input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.sk-gender-pick label:has(input:checked) { border-color: var(--nf-accent, #2563EB); background: var(--soft); color: var(--nf-accent, #2563EB); }
.sk-gender-pick label:has(input:focus-visible) { outline: 2px solid var(--nf-accent, #2563EB); outline-offset: 2px; }
