/* Shared site palette; learning components stay scoped to preserve other layouts. */
/* Temporary navigation mode: remove the body class to restore learning tabs. */
.mobile-nav .compact-nav-link { display: none; }
body.downloads-only .main-nav [data-route]:not([data-route="downloads"]):not([data-route="about"]),
body.downloads-only .mobile-nav [data-route]:not([data-route="downloads"]):not([data-route="about"]),
body.downloads-only #mobile-more-button { display: none !important; }
body.downloads-only .mobile-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.downloads-only .mobile-nav .compact-nav-link { display: flex; }
:root { --accent: #c45121; --accent-dark: #9c3d17; }
.mobile-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.learn-breadcrumb { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin: 0 0 24px; font-size: 13px; line-height: 1.7; color: #6d7478; }
.learn-breadcrumb a { color: #c45121; }
.learn-breadcrumb [aria-current] { color: #253440; overflow-wrap: anywhere; }
.learn-enrolled-path { display: flex; align-items: center; gap: 24px; padding: 24px; background: white; border: 1px solid #e9e5df; border-radius: 18px; }
.learn-enrolled-cover { width: 180px; aspect-ratio: 16 / 9; border-radius: 12px; }
.learn-enrolled-path > div { flex: 1; }
.learn-enrolled-path h2 { margin: 9px 0; font-size: 25px; }
.learn-enrolled-path p { margin: 0; font-size: 13px; color: #6d7478; }
.learn-path-utilities { display: flex; justify-content: space-between; gap: 20px; margin: 20px 3px 30px; }
.learn-path-utilities .text-link:last-child { color: #6d7478; }
.learn-choice-back { margin-bottom: 18px; }
.learn-login-page { max-width: 480px !important; }
.learn-login-card { padding: 28px; background: white; border: 1px solid #e9e5df; border-radius: 18px; margin: 24px 0; }
.learn-login-card > p { font-size: 14px; color: #6d7478; line-height: 1.8; margin: 0 0 24px; }
@media (max-width: 760px) { .learn-enrolled-path { flex-wrap: wrap; padding: 20px; gap: 16px; } .learn-enrolled-cover { width: 110px; } .learn-enrolled-path h2 { font-size: 21px; } .learn-enrolled-path > .button { width: 100%; justify-content: center; } .learn-login-card { padding: 22px; } }
.topbar .main-nav .nav-link.active { background: linear-gradient(135deg, #d96f35, #e8652f); color: #fff; box-shadow: 0 6px 14px -4px rgba(196, 81, 33, 0.38); }
@media (min-width: 1025px) { .main-nav .nav-link span:not(.nav-count) { display: inline; } }
.learning-page { --brand-orange: #c45121; --brand-blue: #287d9a; --brand-gold: #ad801c; --path-color: var(--brand-orange); --accent: var(--brand-orange); --accent-dark: #9c3d17; max-width: 1140px; margin: 0 auto; padding: 16px 0 60px; color: #253440; }
.learning-page svg, .learn-library-links svg { width: 20px; height: 20px; flex: 0 0 auto; }
.learning-page .button { min-height: 48px; border-radius: 12px; font-size: 14px; gap: 12px; }
.learning-page .button.accent { background: var(--brand-orange); border-color: var(--brand-orange); color: white; box-shadow: 0 3px 0 #9c3d17; }
.learning-page .button.accent:hover { filter: brightness(1.08); transform: translateY(-1px); }
.learning-page .button:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.learning-page .text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--path-color); font-size: 13px; }
.learn-eyebrow { display: block; color: var(--path-color); font-size: 11px; font-weight: 750; letter-spacing: .13em; }
.learn-heading { margin: 12px 0 32px; }
.learn-heading h1 { font-size: clamp(25px, 3vw, 36px); line-height: 1.4; font-weight: 750; margin: 13px 0 10px; letter-spacing: -.035em; }
.learn-heading p { margin: 0; font-size: 14px; line-height: 1.8; color: #6d7478; }
.learn-dashboard { display: grid; grid-template-columns: minmax(0, 1fr) 286px; gap: 32px; align-items: start; }
.learn-primary, .learn-aside { min-width: 0; }
.learn-today-card { padding: 30px; border-radius: 22px; background: #fff; border: 1px solid #e9e5df; box-shadow: 0 8px 32px #a6552408; position: relative; overflow: hidden; }
.learn-today-card::after { content: ""; width: 210px; height: 210px; position: absolute; top: -158px; right: -80px; border: 20px solid #ffd5b6; border-left-color: #d5effb; border-bottom-color: #ffe7a3; border-radius: 50%; transform: rotate(-25deg); box-shadow: 0 0 0 12px #f8edca; pointer-events: none; }
.learn-card-top { position: relative; z-index: 1; }
.learn-cover { display: block; overflow: hidden; background: #f3eee5; flex-shrink: 0; }
.learn-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.learn-today-feature { display: grid; grid-template-columns: minmax(0, 1fr); }
.has-cover .learn-today-feature { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); align-items: center; gap: 26px; margin: 26px 0; }
.has-cover .learn-today-copy { margin: 0; }
.has-cover .learn-today-copy h2 { font-size: clamp(23px, 2.2vw, 29px); }
.learn-hero-cover { width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; }
.learn-today-card.has-cover::after { display: none; }
.learn-node-cover { width: 100px; aspect-ratio: 16 / 9; border-radius: 9px; }
.learn-path-cover { width: calc(100% + 48px); margin: -24px -24px 20px; aspect-ratio: 16 / 9; border-radius: 17px 17px 0 0; }
.learn-path-card.is-selected .learn-path-cover { width: calc(100% + 46px); margin: -23px -23px 20px; border-radius: 16px 16px 0 0; }
.learn-path-card:has(.learn-path-cover) h2 { margin-top: 14px; }
.learn-path-card:has(.learn-path-cover) p { min-height: 0; margin-bottom: 14px; }
.learn-series-cover { width: 62px; aspect-ratio: 16 / 9; border-radius: 6px; }
.learn-series-button > span:not(.learn-cover) { flex: 1; }
.learn-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.learn-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 8px; color: var(--path-color); background: color-mix(in srgb, var(--path-color) 8%, white); font-size: 12px; font-weight: 650; }
.learn-pill svg { width: 16px; height: 16px; }
.learn-today-copy { margin: 33px 0 23px; }
.learn-today-copy h2 { font-size: clamp(23px, 2.6vw, 31px); line-height: 1.45; margin: 11px 0 12px; letter-spacing: -.025em; overflow-wrap: anywhere; }
.learn-today-copy p { margin: 0; max-width: 540px; font-size: 14px; color: #6d7478; line-height: 1.9; }
.learn-session-meta { display: flex; flex-wrap: wrap; gap: 9px 22px; font-size: 11px; color: #6d7478; padding: 0 0 25px; border-bottom: 1px solid #f0ece5; }
.learn-session-meta span { display: inline-flex; align-items: center; gap: 6px; }
.learn-session-meta svg { width: 15px; height: 15px; }
.learn-main-actions { margin-top: 24px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.learn-main-actions .button { min-width: 190px; justify-content: space-between; }
.learn-main-actions > span { font-size: 11px; color: #6d7478; }
.learn-section-heading { display: flex; justify-content: space-between; align-items: center; margin: 32px 0 16px; gap: 12px; }
.learn-section-heading h2 { font-size: 17px; margin: 0; }
.learn-unit { border: 1px solid #e9e5df; background: #fff; border-radius: 18px; overflow: hidden; margin-bottom: 16px; }
.learn-unit > summary { display: flex; align-items: center; gap: 14px; cursor: pointer; padding: 22px; list-style: none; }
.learn-unit > summary::-webkit-details-marker { display: none; }
.learn-unit-number { width: 42px; height: 42px; display: grid; place-items: center; flex-shrink: 0; border-radius: 11px; background: #fff2e6; color: var(--path-color); font-size: 14px; font-weight: 700; }
.learn-unit summary small { display: block; font-size: 10px; color: #6d7478; margin-bottom: 5px; }
.learn-unit summary strong { font-size: 15px; font-weight: 650; }
.learn-unit-count { display: flex; align-items: center; gap: 12px; white-space: nowrap; font-size: 11px; margin-left: auto; color: #6d7478; }
.learn-unit-count svg { width: 14px; height: 14px; }
.learn-unit[open] .learn-unit-count svg { transform: rotate(180deg); }
.learn-unit-body { border-top: 1px solid #f0ece5; padding: 4px 24px 22px; }
.learn-unit-goal { font-size: 12px; color: #6d7478; line-height: 1.8; margin: 14px 0; }
.learn-node-list { padding: 0; margin: 0; list-style: none; }
.learn-node { display: flex; align-items: center; gap: 16px; min-height: 91px; padding: 15px 12px 15px 0; position: relative; }
.learn-node:not(:last-child)::after { content: ""; position: absolute; width: 2px; top: 62px; bottom: -28px; left: 21px; background: #f0ece5; }
.learn-node-dot { border: 2px solid #e7e3dc; width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: #faf9f6; color: #93999b; font-size: 13px; position: relative; z-index: 1; }
.learn-node.is-current .learn-node-dot { background: var(--path-color); border-color: var(--path-color); box-shadow: 0 0 0 5px color-mix(in srgb, var(--path-color) 10%, white); color: white; }
.learn-node.is-completed .learn-node-dot { color: var(--brand-blue); background: #eaf7fd; border-color: #cce9f7; }
.learn-node.is-skipped .learn-node-dot { border-style: dashed; }
.learn-node > div { flex: 1; min-width: 0; }
.learn-node small { color: #6d7478; font-size: 10px; }
.learn-node strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.5; margin: 4px 0; overflow-wrap: anywhere; }
.learn-node > div > span { font-size: 10px; color: #6d7478; }
.learn-node.is-current small { color: var(--path-color); font-weight: 650; }
.learn-node-open { flex-shrink: 0; display: grid; place-items: center; height: 34px; width: 34px; border: 1px solid #e9e5df; border-radius: 10px; background: #fff; cursor: pointer; color: #6d7478; }
.learn-node.is-current .learn-node-open { background: var(--path-color); color: white; border-color: var(--path-color); }
.learn-week { padding: 26px 22px 20px; border-radius: 20px; background: #fff7df; border: 1px solid #f2dfc0; }
.learn-week h2 { font-size: 19px; line-height: 1.5; letter-spacing: -.02em; margin: 15px 0 23px; max-width: none; }
.learn-week-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.learn-week-days > div { display: grid; justify-items: center; gap: 9px; }
.learn-week-days span { font-size: 10px; color: #6d7478; }
.learn-week-days i { border: 1px solid #ead8b9; width: 24px; height: 24px; border-radius: 50%; background: #fffdf7; display: grid; place-items: center; }
.learn-week-days i svg { width: 14px; height: 14px; }
.learn-week-days .is-active i { background: var(--path-color); border-color: var(--path-color); color: white; }
.learn-week-days .is-today i { outline: 2px solid #df9d43; outline-offset: 2px; }
.learn-week > p { font-size: 11px; color: #6d7478; margin: 16px 0 21px; }
.learn-count { display: flex; gap: 12px; align-items: center; border-top: 1px solid #efddbc; padding-top: 18px; }
.learn-count strong { font-size: 27px; font-weight: 600; }
.learn-count span { font-size: 11px; color: #6d7478; }
.learn-review-card { margin-top: 22px; padding: 24px 22px; border: 1px solid #dceef8; background: #f1faff; border-radius: 18px; }
.learn-review-symbol { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #287d9a; background: #d9f2ff; }
.learn-review-card h3 { font-size: 15px; margin: 16px 0 8px; }
.learn-review-card p { font-size: 12px; line-height: 1.9; color: #6d7478; }
.learn-review-card .button { margin-top: 10px; min-height: 40px; width: 100%; font-size: 12px; justify-content: space-between; background: white; }
.learn-explore-link { display: flex; gap: 10px; align-items: center; margin: 24px 10px; font-size: 11px; color: #6d7478; line-height: 1.7; }
.learn-explore-link svg { width: 15px; }
.learn-how { display: flex; gap: 20px; margin-top: 26px; padding: 0 6px; }
.learn-how span { font-size: 11px; line-height: 1.8; color: #6d7478; flex: 1; }
.learn-how b { display: block; font-size: 13px; color: #c45121; margin-bottom: 6px; }
.learn-how b { width: 34px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: #ffe3cd; }
.learn-how span:nth-child(2) b { color: #287d9a; background: #dcf3ff; }
.learn-how span:nth-child(3) b { color: #996015; background: #fff0bf; }
.learn-path-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.learn-path-card { text-align: left; border: 1px solid #e9e5df; border-radius: 18px; padding: 24px; background: #fff; cursor: pointer; transition: border-color .15s, transform .15s; }
.learn-path-card:hover { transform: translateY(-3px); border-color: var(--card-accent); }
.learn-path-card.is-selected { border: 2px solid var(--card-accent); padding: 23px; background: color-mix(in srgb, var(--card-accent) 4%, white); }
.learn-path-card-top { display: flex; justify-content: space-between; color: var(--card-accent); font-size: 13px; font-weight: 650; }
.learn-path-card h2 { font-size: 22px; margin: 25px 0 10px; }
.learn-path-card p { color: #6d7478; font-size: 13px; line-height: 1.8; min-height: 47px; margin-bottom: 22px; }
.learn-path-card small { color: #6d7478; font-size: 10px; line-height: 1.6; }
.learn-path-card-top > span:first-child { padding: 7px 10px; border-radius: 9px; background: color-mix(in srgb, var(--card-accent) 10%, white); }
.learn-path-settings { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin: 34px 0 0; }
.learn-path-settings h2 { margin: 8px 0 0; font-size: 19px; }
.learn-path-settings > .button { margin-left: auto; }
.learn-mode-control { display: flex; padding: 4px; border: 1px solid #e9e5df; border-radius: 11px; background: #f2eee6; }
.learn-mode-control button { border: 0; background: transparent; padding: 9px 15px; border-radius: 8px; font-size: 12px; cursor: pointer; color: #6d7478; }
.learn-mode-control button.is-active { background: #fff; color: var(--path-color); box-shadow: 0 2px 4px #5b42250a; font-weight: 600; }
.learn-mode-hint { font-size: 12px; color: #6d7478; line-height: 1.8; margin: 18px 0 28px; }
.learn-path-layout { display: grid; grid-template-columns: minmax(0, 1fr) 286px; gap: 32px; align-items: start; }
.learn-series-panel { border-radius: 18px; border: 1px solid #e9e5df; background: #fff; padding: 22px; }
.learn-series-panel h2 { font-size: 15px; margin: 0 0 8px; }
.learn-series-panel p { color: #6d7478; font-size: 12px; margin: 0 0 20px; }
.learn-series-button { width: 100%; text-align: left; border: 0; border-top: 1px solid #f0ece5; background: transparent; padding: 15px 0; font-size: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
.learn-series-button svg { width: 15px; height: 15px; }
.learn-series-panel details { margin: 5px 0 20px; font-size: 12px; color: #6d7478; }
.learn-series-panel summary { cursor: pointer; padding: 12px 0; }
.learn-preview { border: 1px dashed #dfc98e; border-radius: 18px; padding: 35px; background: #fffbec; }
.learn-preview h2 { font-size: 24px; line-height: 1.5; }
.learn-preview p { color: #6d7478; font-size: 13px; line-height: 1.9; }
.learn-preview .button { margin: 15px 18px 0 0; }
.learn-library-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 0 26px; }
.learn-library-links a { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 18px; border: 1px solid #e9e5df; border-radius: 16px; background: #fff; transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }
.learn-library-links a:hover { transform: translateY(-3px); border-color: rgba(40, 125, 154, 0.32); box-shadow: 0 16px 32px -20px rgba(0, 28, 42, 0.5); }
.learn-library-links .learn-tool-icon { display: grid; width: 38px; height: 38px; margin-bottom: 4px; place-items: center; border-radius: 12px; background: #eef5f8; color: #287d9a; }
.learn-library-links a:nth-child(2) .learn-tool-icon { background: #fdf3e3; color: #b4761b; }
.learn-library-links a:nth-child(3) .learn-tool-icon { background: #f2effc; color: #6b5bb5; }
.learn-library-links a:nth-child(4) .learn-tool-icon { background: #eaf4ef; color: #2f8d68; }
.learn-library-links strong { font-size: 14.5px; color: #287d9a; }
.learn-library-links .learn-tool-sub { overflow: hidden; font-size: 11.5px; color: #6d7478; text-overflow: ellipsis; white-space: nowrap; }
.learn-library-links .learn-tool-arrow { position: absolute; top: 18px; right: 16px; color: #c6cfd3; transition: color 180ms ease, transform 180ms ease; }
.learn-library-links a:hover .learn-tool-arrow { color: #287d9a; transform: translateX(2px); }
.guided-page { max-width: 820px; }
.learn-guide-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; color: #6d7478; }
.learn-guide-top > a:first-child svg { transform: rotate(180deg); }
.learn-steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 30px 0 35px; }
.learn-steps li { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #6d7478; flex: 1; padding-bottom: 16px; border-bottom: 3px solid #e8e5df; }
.learn-steps li > span { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; border: 1px solid #ded9cf; font-size: 10px; }
.learn-steps li svg { width: 12px; height: 12px; }
.learn-steps li.is-current { color: var(--path-color); border-bottom-color: var(--path-color); }
.learn-steps li.is-current > span, .learn-steps li.is-completed > span { background: var(--path-color); color: white; border-color: var(--path-color); }
.learn-lesson-heading { margin-bottom: 26px; }
.learn-lesson-heading h1 { font-size: clamp(23px, 3vw, 34px); line-height: 1.4; letter-spacing: -.025em; margin: 13px 0; overflow-wrap: anywhere; }
.learn-lesson-heading p { color: #6d7478; font-size: 14px; line-height: 1.8; }
.guided-page .study-player { margin-bottom: 16px; }
.learn-listen-status { font-size: 12px; color: #6d7478; }
.learn-text-toggle, .learn-tools { margin-top: 23px; border: 1px solid #e9e5df; border-radius: 14px; background: #fff; overflow: hidden; }
.learn-text-toggle > summary, .learn-tools > summary { padding: 18px 22px; cursor: pointer; font-size: 13px; color: #6d7478; }
.learn-text-toggle .transcript-card { border: 0; box-shadow: none; }
.learn-keywords { background: #fff; border: 1px solid #e9e5df; border-radius: 18px; margin-bottom: 24px; padding: 0 24px; }
.learn-keywords article { display: flex; align-items: flex-start; gap: 18px; padding: 23px 0; }
.learn-keywords article:not(:last-child) { border-bottom: 1px solid #f0ece5; }
.learn-keyword-index { font-size: 11px; color: #6d7478; padding-top: 6px; }
.learn-keywords article > div { flex: 1; min-width: 0; }
.learn-keywords h2 { font-size: 20px; margin: 0 0 10px; }
.learn-keywords p { font-size: 14px; line-height: 1.8; color: #6d7478; margin: 8px 0; }
.learn-keywords .learn-word-zh { color: #6d7478; font-size: 12px; }
.learn-keywords blockquote { margin: 10px 0 0; padding-left: 14px; border-left: 2px solid #e7d5ad; font-size: 13px; line-height: 1.8; color: #6d7478; }
.learn-keywords summary { font-size: 12px; cursor: pointer; color: #6d7478; }
.learn-content-credit { margin: 0 0 14px; font-size: 11px; color: #6d7478; }
.learn-guide-footer { position: sticky; bottom: 15px; margin-top: 24px; padding: 16px 20px; border: 1px solid #e9e5df; border-radius: 14px; background: #ffffffed; backdrop-filter: blur(15px); display: flex; justify-content: space-between; align-items: center; gap: 16px; z-index: 15; box-shadow: 0 5px 25px #74513910; }
.learn-tools { margin-top: 20px; }
.learn-tools .lesson-resources, .learn-tools .study-sidebar { margin: 10px 20px 20px; position: static; width: auto; box-shadow: none; }
.learn-finish { text-align: center; border-radius: 24px; padding: 40px; background: #fff; border: 1px solid #e9e5df; }
.learn-finish-mark { display: grid; place-items: center; margin: 0 auto 25px; width: 65px; height: 65px; border-radius: 50%; background: #fff2e6; color: #c45121; box-shadow: 0 0 0 9px #fff9ef; }
.learn-finish-mark svg { width: 30px; height: 30px; }
.learn-finish h2, .learn-finish h1 { font-size: 27px; line-height: 1.5; margin: 16px 0; }
.learn-finish p { color: #6d7478; font-size: 13px; line-height: 1.9; }
.learn-finish-numbers { display: flex; justify-content: center; gap: 35px; margin: 30px 0; padding: 22px 0; border-top: 1px solid #f0ece5; border-bottom: 1px solid #f0ece5; }
.learn-finish-numbers span { display: flex; flex-direction: column; gap: 9px; color: #6d7478; font-size: 11px; }
.learn-finish-numbers strong { font-size: 26px; color: #c45121; }
.learn-finish-actions { display: flex; justify-content: center; gap: 14px; margin-top: 26px; }
.learning-page summary:focus-visible, .learning-page button:focus-visible, .learning-page a:focus-visible { outline: 3px solid #479bb8; outline-offset: 4px; }
body { background: radial-gradient(ellipse at 12% 0%, #fff2e6 0, transparent 48%), radial-gradient(ellipse at 100% 75%, #f0f8ff 0, transparent 40%), #fcfbf8; }
body .topbar { background: #ffffffed; }
body .nav-link.active { color: #c45121; }
body .main-nav { background: #f5f2ed; }
body .mobile-nav .nav-link.active { background: #fff2e6; }
body .avatar { background: linear-gradient(135deg, #f4a646, #d8652e); }
body.is-guided .mini-player-chip, body.is-guided .mini-player { display: none !important; }
@media (max-width: 1000px) { .learn-dashboard, .learn-path-layout { grid-template-columns: minmax(0, 1fr) 245px; gap: 22px; } .learn-path-card { padding: 20px; } .learn-path-card.is-selected { padding: 19px; } .learn-week { padding: 22px 17px; } .learn-library-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .mobile-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .learning-page { padding-top: 7px; padding-bottom: 75px; }
  .learn-heading { margin: 8px 0 24px; }
  .learn-heading h1 { font-size: 26px; margin-top: 11px; }
  .learn-heading p { font-size: 13px; }
  .learn-dashboard, .learn-path-layout { grid-template-columns: 1fr; gap: 26px; }
  .learn-today-card { padding: 23px; border-radius: 19px; }
  .learn-today-copy { margin-top: 27px; }
  .learn-today-copy h2 { font-size: 24px; }
  .learn-main-actions .button { width: 100%; }
  .learn-main-actions > span { width: 100%; text-align: center; }
  .learn-main-actions { gap: 14px; }
  .learn-aside { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .learn-week { padding: 20px 16px; }
  .learn-week h2 { font-size: 18px; }
  .learn-week-days { gap: 3px; }
  .learn-week-days i { width: 19px; height: 19px; }
  .learn-review-card { margin: 0; padding: 20px 16px; }
  .learn-explore-link { grid-column: 1 / -1; margin: 0; }
  .learn-path-grid { grid-template-columns: 1fr; gap: 13px; }
  .learn-path-card { padding: 20px 22px; }
  .learn-path-card.is-selected { padding: 19px 21px; }
  .learn-path-card h2 { font-size: 21px; margin: 12px 0 7px; }
  .learn-path-card p { min-height: 0; margin: 0 0 12px; }
  .learn-path-settings { gap: 17px; }
  .learn-path-settings > .button { margin: 0; width: 100%; }
  .learn-mode-control { margin-left: auto; }
  .learn-mode-control button { padding: 9px 12px; }
  .learn-unit > summary { padding: 18px 16px; gap: 11px; }
  .learn-unit summary strong { font-size: 14px; }
  .learn-unit-count { gap: 6px; }
  .learn-unit-body { padding: 4px 16px 15px; }
  .learn-node { gap: 12px; padding-right: 0; }
  .learn-node strong { font-size: 13px; }
  .learn-preview { padding: 25px; }
  .learn-library-links { grid-template-columns: 1fr; gap: 10px; }
  .learn-library-links a { display: grid; grid-template-columns: 38px minmax(0, 1fr) 20px; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 16px; }
  .learn-library-links .learn-tool-icon { grid-row: 1 / span 2; margin: 0; }
  .learn-library-links .learn-tool-arrow { position: static; grid-row: 1 / span 2; }
  .learn-library-links strong { font-size: 13px; }
  .learn-library-links span { font-size: 11px; }
  .learn-guide-top { flex-wrap: wrap; font-size: 11px; }
  .learn-steps { gap: 5px; margin: 25px 0; }
  .learn-steps li { flex-direction: column; align-items: flex-start; font-size: 11px; gap: 7px; }
  .learn-guide-footer { bottom: calc(76px + env(safe-area-inset-bottom)); padding: 12px; gap: 12px; flex-wrap: wrap; }
  .learn-guide-footer .button { flex: 1; font-size: 12px; }
  .learn-guide-footer > .text-link { font-size: 10px; }
  .learn-keywords { padding: 0 18px; }
  .learn-keywords article { gap: 12px; }
  .learn-keywords h2 { font-size: 18px; overflow-wrap: anywhere; }
  .learn-finish { padding: 30px 20px; }
  .learn-finish h2, .learn-finish h1 { font-size: 23px; }
  .learn-finish-numbers { gap: 25px; }
  .learn-finish-actions { flex-direction: column; }
}
@media (max-width: 410px) { .learn-aside { grid-template-columns: 1fr; } .learn-week h2 { max-width: none; } .learn-week-days i { width: 28px; height: 28px; } .learn-guide-footer > .text-link { width: 100%; justify-content: center; } .learn-guide-footer .button { width: 100%; justify-content: center; } .learn-mode-control { margin-left: 0; } }
@media (min-width: 761px) and (max-width: 1000px) {
  .learn-path-cover { width: calc(100% + 40px); margin: -20px -20px 18px; }
  .learn-path-card.is-selected .learn-path-cover { width: calc(100% + 38px); margin: -19px -19px 18px; }
}
@media (max-width: 760px) {
  .has-cover .learn-today-feature { grid-template-columns: 1fr; gap: 20px; margin: 22px 0; }
  .learn-hero-cover { grid-row: 1; }
  .learn-node { gap: 10px; }
  .learn-node-cover { width: 72px; }
  .learn-path-cover { width: calc(100% + 44px); margin: -20px -22px 18px; }
  .learn-path-card.is-selected .learn-path-cover { width: calc(100% + 42px); margin: -19px -21px 18px; }
}
@media (max-width: 1024px) { .learn-guide-footer { bottom: calc(76px + env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion: reduce) { .learning-page *, .learning-page *::before, .learning-page *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* Today: exactly one lesson a day, then it stops. */
.learn-daily-streak { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; margin: 0 0 18px; color: #6d7478; font-size: 13px; }
.learn-daily-streak span { color: #97a0a5; }
.learn-daily-card { display: grid; gap: 18px; max-width: 720px; padding: 26px; border: 1px solid #e9e5df; border-radius: 20px; background: #fff; }
.learn-daily-card.has-cover { grid-template-columns: 240px minmax(0, 1fr); align-items: center; }
.learn-daily-cover:empty { display: none; }
.learn-daily-art { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #f3f1ec; }
.learn-daily-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.learn-daily-body { display: grid; gap: 10px; justify-items: start; min-width: 0; }
.learn-daily-body h2 { margin: 0; font-size: 24px; line-height: 1.35; }
.learn-daily-meta { margin: 0; color: #6d7478; font-size: 13px; }
.learn-daily-note { margin: 2px 0 0; color: #97a0a5; font-size: 12px; }
.learn-daily-actions { margin-top: 6px; }
.learn-daily-card.is-done, .learn-daily-card.is-empty { justify-items: start; }
.learn-daily-mark { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 50%; background: #eef7f3; color: #2f8d88; }
.learn-daily-mark svg { width: 22px; height: 22px; }
.learn-daily-card.is-done h2, .learn-daily-card.is-empty h2 { margin: 0; font-size: 22px; }
.learn-daily-card.is-done p, .learn-daily-card.is-empty p { margin: 0; color: #6d7478; font-size: 14px; line-height: 1.7; }
@media (max-width: 760px) { .learn-daily-card.has-cover { grid-template-columns: minmax(0, 1fr); } .learn-daily-card { padding: 20px; } }

/* Account: learning-path settings (moved out of the top navigation). */
.account-path-card { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin: 18px 0; padding: 20px 22px; border: 1px solid #e9e5df; border-radius: 18px; background: #fff; }
.account-path-copy { display: grid; gap: 4px; min-width: 0; }
.account-path-copy span { color: #97a0a5; font-size: 12px; font-weight: 700; }
.account-path-copy strong { color: #253440; font-size: 17px; }
.account-path-copy small { color: #6d7478; font-size: 12.5px; }
.account-path-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* One lesson a day reads best as a single centred column. */
.learn-daily-page { max-width: 760px; margin: 0 auto; }
.learn-daily-page .learn-daily-card { max-width: none; }

/* Finished lesson: cover, brand-coloured stat pills, and a small celebration
   badge in the card's corner so completion reads at a glance. */
.learn-daily-card.is-done { position: relative; }
.learn-daily-card.is-done.has-cover { align-items: center; }
.learn-done-celebrate { position: absolute; top: 16px; right: 16px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px; background: #fdece4; color: #c45121; font-size: 12.5px; font-weight: 800; box-shadow: 0 6px 16px -10px rgba(196, 81, 33, 0.7); animation: learn-done-pop 420ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.learn-done-celebrate span { font-size: 14px; }
@keyframes learn-done-pop { from { opacity: 0; transform: translateY(-4px) scale(0.92); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .learn-done-celebrate { animation: none; } }
.learn-daily-stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 2px; }
.learn-stat-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.learn-stat-pill svg { width: 15px; height: 15px; }
.learn-stat-pill.is-quiz { background: #eef7f3; color: #1f6f69; }
.learn-stat-pill.is-words { background: #fdf3e3; color: #b4761b; }
.learn-stat-pill.is-streak { background: #fdece4; color: #c45121; }
