:root {
  color-scheme: light;
  --ink: #142c28;
  --muted: #53665f;
  --paper: #f6f5ee;
  --white: #fdfcf7;
  --lime: #e9f47e;
  --line: #d9ded1;
  font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, select, input { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid #35816a; outline-offset: 4px; }
.shell { width: min(1120px, calc(100% - 56px)); margin-inline: auto; }
.catalog-header { border-bottom: 1px solid var(--line); background: var(--white); }
.header-inner { min-height: 73px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 760; text-decoration: none; white-space: nowrap; }
.wordmark img { display: block; border-radius: 9px; }
.header-actions, .account-actions { display: flex; align-items: center; gap: 12px; }
.language { border: 1px solid var(--line); border-radius: 30px; padding: 0 10px; min-height: 42px; background: var(--white); color: var(--ink); }
.pill { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px; border: 1px solid var(--line); border-radius: 40px; background: var(--white); color: var(--ink); font-size: 15px; font-weight: 720; line-height: 1.2; text-decoration: none; }
.pill.primary { background: var(--lime); border-color: #a8b557; color: #283313; }
.pill.primary:hover:not(:disabled) { background: #f2f9a1; }
.pill:disabled { opacity: .65; cursor: progress; }
.text-button { border: 0; background: transparent; color: var(--ink); padding: 10px 4px; min-height: 42px; font-weight: 690; text-underline-offset: 4px; }
.text-button:hover { text-decoration: underline; }
.account-actions { position: relative; }
.member-trigger { min-height: 46px; display: inline-flex; align-items: center; gap: 3px; padding: 3px 6px; border: 1px solid transparent; border-radius: 26px; color: var(--ink); background: transparent; }
.member-trigger:hover, .member-trigger[aria-expanded="true"] { border-color: var(--line); background: #eef3e8; }
.member-avatar { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; overflow: hidden; flex: none; border-radius: 50%; background: #dcebc9; color: #214638; font-size: 17px; font-weight: 750; }
.member-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.member-chevron { width: 15px; height: 15px; }
.member-trigger[aria-expanded="true"] .member-chevron { transform: rotate(180deg); }
.member-panel { position: absolute; z-index: 5; inset-block-start: calc(100% + 9px); inset-inline-end: 0; display: grid; width: min(250px, calc(100vw - 28px)); padding: 5px; border: 1px solid var(--line); border-radius: 15px; background: var(--white); box-shadow: 0 12px 30px #142c281f; }
.member-panel-info { min-width: 0; display: grid; gap: 3px; padding: 10px 11px 11px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.member-panel-info > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-panel-info span { color: var(--muted); font-size: 13px; }
.member-action { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 44px; padding: 7px 11px; border: 0; border-radius: 8px; background: none; color: var(--ink); font-size: 14px; font-weight: 700; text-align: start; text-decoration: none; }
.member-action svg { width: 19px; height: 19px; }
.member-action:hover, .member-action[aria-current] { background: #eef3e8; }
.member-action:focus-visible { outline-offset: -3px; }
.member-logout { color: #8c372d; }
main { padding-block: 54px 72px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 750; }
h1 { font-size: clamp(42px, 7.3vw, 83px); line-height: .99; letter-spacing: -.065em; }
.home-intro { display: grid; grid-template-columns: 1.55fr 1fr; align-items: end; gap: 30px; margin-bottom: 48px; }
.home-intro p { max-width: 420px; color: var(--muted); font-size: clamp(17px, 2.2vw, 22px); line-height: 1.5; padding-bottom: 1px; }
.series-heading { margin-bottom: 13px; font-size: 23px; letter-spacing: -.025em; }
.series-grid { display: grid; gap: 20px; }
.series-cover, .series-banner { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: stretch; min-height: 385px; border-radius: 24px; background: #193d34; color: #fffcf0; }
.series-cover { text-decoration: none; }
.cover-photo { position: absolute; z-index: -2; right: 0; top: 0; width: 68%; height: 100%; object-fit: cover; object-position: 51% 25%; }
.series-cover::before, .series-banner::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #193d34 20%, #193d34f2 35%, #193d3422 72%); }
.cover-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; width: min(100%, 540px); padding: clamp(28px, 5vw, 57px); }
.cover-title { font-size: clamp(40px, 6vw, 64px); line-height: 1; letter-spacing: -.05em; margin: 12px 0 15px; }
.cover-summary { max-width: 380px; font-size: 18px; line-height: 1.44; color: #eef6e9; }
.cover-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 14px; font-weight: 680; color: #e0ebde; }
.cover-cta { margin-top: 28px; }
.series-cover:hover .cover-cta { background: #f4faab; }
.breadcrumb { display: inline-block; margin-bottom: 16px; font-size: 15px; font-weight: 690; color: #345c50; text-underline-offset: 4px; }
.series-page { padding-top: 26px; }
.series-banner { min-height: 260px; }
.series-banner .cover-copy { padding-block: 34px; }
.lessons { max-width: 900px; margin: 34px auto 0; }
.lessons > h2 { font-size: 28px; letter-spacing: -.03em; margin: 0 0 14px; }
.muted { color: var(--muted); line-height: 1.48; }
.lesson-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); background: var(--white); border-radius: 18px; }
.lesson-list > li + li { border-top: 1px solid var(--line); }
.lesson-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; min-height: 94px; padding: 16px 20px; text-decoration: none; }
.lesson-row:hover, .lesson-row:focus-visible { background: #eef3e8; }
.survey-row { background: #f0f5df; }
.survey-row:hover, .survey-row:focus-visible { background: #e8f1cd; }
.survey-row .lesson-number { background: var(--lime); }
.lesson-number { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: #e7efe4; color: #315c4d; font-size: 16px; font-weight: 730; }
.lesson-details h3 { font-size: clamp(17px, 2.6vw, 23px); line-height: 1.23; }
.lesson-details p { margin-top: 4px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.lesson-lock-note { display: inline-block; margin-top: 4px; color: #315c4d; font-size: 13px; font-weight: 720; }
.lesson-state { display: flex; align-items: center; gap: 12px; white-space: nowrap; color: #315c4d; font-size: 13px; }
.lesson-state [aria-hidden="true"] { font-size: 20px; line-height: 1; }
.lesson-state svg { width: 19px; height: 19px; flex: none; }
.lesson-list > li { overflow: hidden; }
.lesson-list > li:first-child { border-radius: 17px 17px 0 0; }
.lesson-list > li:last-child { border-radius: 0 0 17px 17px; }
.lesson-list > li:only-child { border-radius: 17px; }
.lesson-list .lesson-row:focus-visible { outline-offset: -4px; }
.lesson-learned { background: #edf3e9; }
.lesson-learned .lesson-number { background: #dce8d8; }
.lesson-learned-label { font-weight: 750; }
.lesson-challenge { padding: 0 20px 13px 78px; }
.lesson-challenge-link { display: inline-flex; min-height: 44px; align-items: center; flex-wrap: wrap; gap: 4px 8px; padding: 6px 11px; border: 1px solid #adc0a6; border-radius: 9px; color: #214f41; background: #f4f7ed; font-size: 14px; font-weight: 730; text-decoration: none; }
.lesson-challenge-link:hover, .lesson-challenge-link:focus-visible { background: var(--lime); }
.lesson-challenge-link span { font-size: 12px; font-weight: 590; }
.account-dialog { position: fixed; width: min(450px, calc(100% - 28px)); max-height: calc(100dvh - 28px); padding: 25px; border: 1px solid var(--line); border-radius: 20px; color: var(--ink); background: var(--white); }
.account-dialog::backdrop { background: #101f29a3; }
.account-dialog h2 { margin: 0 44px 9px 0; font-size: 28px; line-height: 1.1; letter-spacing: -.03em; }
.account-dialog .muted { margin-bottom: 18px; }
.close-form { position: absolute; top: 13px; right: 13px; }
.close-button { border: 1px solid var(--line); background: var(--paper); width: 42px; height: 42px; border-radius: 50%; color: var(--ink); font-size: 25px; line-height: 1; }
#account-form { display: grid; gap: 8px; }
#account-form label { font-size: 15px; font-weight: 720; }
#account-form input { width: 100%; min-height: 47px; padding: 8px 12px; border: 1px solid #b8c7bc; border-radius: 9px; color: var(--ink); background: #fff; }
#account-form input + label { margin-top: 5px; }
.password-field { position: relative; }
#account-form .password-field input { padding-inline-end: 52px; }
.password-field input::-ms-reveal { display: none; }
.password-toggle {
  position: absolute;
  inset-block: 1px;
  inset-inline-end: 1px;
  display: grid;
  place-items: center;
  width: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
}
.password-toggle:hover { color: var(--ink); background: #eef3e8; }
.password-toggle:focus-visible { outline-offset: -4px; }
.password-slash { display: none; }
.password-field input[type="text"] + .password-toggle .password-slash { display: initial; }
.field-help, .form-error { font-size: 13px; line-height: 1.4; }
.field-help { color: var(--muted); }
.form-error { color: #9c3526; }
.field-help:empty, .form-error:empty { display: none; }
#account-form .pill { margin-top: 7px; width: 100%; }
#account-switch { margin-top: 7px; }
@media (max-width: 690px) {
  .shell { width: calc(100% - 32px); }
  .header-inner { min-height: 64px; }
  main { padding-block: 32px 46px; }
  .home-intro { grid-template-columns: 1fr; gap: 14px; margin-bottom: 29px; }
  .series-cover, .series-banner { min-height: 410px; border-radius: 18px; align-items: flex-end; }
  .series-banner { min-height: 312px; }
  .cover-photo { width: 100%; height: 68%; object-position: 50% 22%; }
  .series-cover::before, .series-banner::before { background: linear-gradient(0deg, #193d34 33%, #193d34e6 45%, #193d3400 77%); }
  .cover-copy { padding: 22px; }
  .series-banner .cover-copy { padding-block: 22px; }
  .cover-title { margin: 8px 0 10px; }
  .cover-summary { font-size: 16px; }
  .cover-cta { margin-top: 18px; }
  .lessons { margin-top: 26px; }
  .lesson-row { gap: 10px; padding: 14px 12px; }
  .lesson-number { width: 32px; height: 32px; font-size: 14px; }
  .lesson-state { flex-direction: column-reverse; gap: 4px; }
  .lesson-challenge { padding-inline: 54px 12px; }
}
@media (max-width: 470px) {
  .wordmark { font-size: 16px; gap: 7px; }
  .wordmark img { width: 30px; height: 30px; }
  .header-actions, .account-actions { gap: 5px; }
  .header-inner { width: calc(100% - 24px); gap: 7px; }
  .language { width: 51px; font-size: 13px; padding: 1px 3px; }
  .account-actions .text-button { font-size: 13px; padding-inline: 2px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
