/* Learning paths and textbook chapters share the practice app's existing palette. */
body[data-view="home"] .sidebar{display:none}
body[data-view="home"] .workspace{margin-left:0}
body[data-view="home"] main{max-width:1220px;padding-top:42px}
body[data-view="home"] .topbar{padding-inline:max(24px,calc((100vw - 1140px)/2));gap:18px}
.learning-home{padding-bottom:24px}
.learning-home h1:focus,.learning-home h2:focus{outline:none}
.home-intro{margin:2px 0 31px;max-width:800px}
.home-eyebrow{font-size:11px;font-weight:700;letter-spacing:1.7px;color:#617c6d}
.home-intro h1{font-size:clamp(27px,3.4vw,43px);font-weight:600;line-height:1.35;letter-spacing:-.5px;margin:14px 0}
.home-intro p{color:#6b7c74;font-size:15px;line-height:1.85;margin:0}
.track-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.track-card{border:1px solid #d9e2d9;border-radius:18px;background:#fff;text-align:left;padding:0;overflow:hidden;display:flex;flex-direction:column;transition:box-shadow .18s,border-color .18s,transform .18s;color:var(--ink);min-width:0}
.track-card:hover{border-color:#759986;box-shadow:0 12px 28px #123d3910;transform:translateY(-2px)}
.track-card.is-selected{border-color:#163d39;box-shadow:0 0 0 2px #163d39}
.track-art{height:145px;background-image:linear-gradient(90deg,#163d39a8,#163d3915),url('scene-sheet.png');background-size:cover,300% auto;background-position:center,0% 12%;display:flex;align-items:flex-end;justify-content:space-between;padding:21px;position:relative}
.track-academy .track-art{background-position:center,100% 70%;background-image:linear-gradient(90deg,#4e422ba8,#58402215),url('scene-sheet.png')}
.track-icon{width:47px;height:47px;display:grid;place-items:center;background:#fffef0ea;border-radius:12px;font-size:28px;font-family:Georgia,serif;color:#163d39;box-shadow:0 4px 20px #0001}
.track-choice{border:1px solid #ffffffb0;color:#fff;border-radius:50%;height:31px;width:31px;display:grid;place-items:center;font-size:19px;background:#163d3950}
.track-card.is-selected .track-choice{background:#e9d6a4;color:#163d39;border-color:#e9d6a4}
.track-content{padding:24px 26px 22px;display:flex;flex-direction:column;flex:1}
.track-overline{font-size:10px;letter-spacing:1.8px;color:#7c887e}
.track-content>strong{font-size:25px;line-height:1.3;font-weight:600;margin:9px 0 12px}
.track-description{font-size:14px;color:#66786c;line-height:1.85;margin-bottom:22px;flex:1}
.track-meta{display:flex;gap:9px;justify-content:space-between;align-items:center;border-top:1px solid #e6ebe4;padding-top:18px;font-size:11px;color:#6c7d72;flex-wrap:wrap}
.track-meta>span{font-size:12px;font-weight:600;color:#163d39}
.textbook-note{display:flex;align-items:center;gap:19px;padding:23px 25px;background:#eaf0e8;border:1px solid #dce6d9;border-radius:12px;margin:25px 0 37px}
.textbook-symbol{font-size:28px;font-family:Georgia,serif;color:#647f59;flex-shrink:0}
.textbook-note strong{font-size:14px;font-weight:600}
.textbook-note p{font-size:12px;line-height:1.9;color:#65765d;margin:7px 0 0}
.choose-route-note{font-size:13px;text-align:center;color:#778579;line-height:1.85;padding:7px 12px 20px}
.route-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}
.route-heading h2{font-size:24px;font-weight:600;margin:9px 0 0;line-height:1.5}
.route-heading h2 span{display:block;font-size:12px;font-weight:400;color:#7e8c80;margin-top:4px}
.route-progress-badge{font-size:12px;white-space:nowrap;color:#466548;padding:10px 13px;border:1px solid #d2dfd0;border-radius:8px;background:#fdfefb}
.route-intro{font-size:13px;line-height:1.9;color:#708075;margin:18px 0 24px}
.chapter-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}
.chapter-card{display:flex;flex-direction:column;border:1px solid #dfe6dc;border-radius:13px;background:#fff;padding:23px;min-width:0}
.chapter-card-heading{display:flex;align-items:center;gap:13px}
.chapter-number{height:40px;width:40px;flex-shrink:0;border-radius:10px;display:grid;place-items:center;background:#f0f4ee;color:#5b7755;font-family:Georgia,serif;font-size:19px}
.chapter-range{font-size:10px;color:#889481;line-height:1.6}
.chapter-card h3{font-size:17px;font-weight:600;line-height:1.5;margin:2px 0 0}
.chapter-state{margin-left:auto;font-size:11px;color:#7f8d7a;white-space:nowrap}
.chapter-state.is-mastered{background:#e3edde;color:#37662d;border-radius:50%;display:grid;place-items:center;height:25px;width:25px;flex-shrink:0;font-size:15px}
.chapter-focus{font-size:12px;line-height:1.9;color:#6e7b6b;margin:17px 0;min-height:44px}
.chapter-scenes{display:flex;flex-direction:column;gap:7px;flex:1}
.chapter-scene-link{padding:9px 12px;background:#f6f8f4;border-radius:6px;font-size:12px;text-align:left;display:flex;align-items:center;justify-content:space-between;gap:8px;line-height:1.55;color:#54694e}
.chapter-scene-link:hover{background:#eaf1e5}
.chapter-scene-link span{color:#8c9d83}
.chapter-progress-line{display:flex;gap:12px;align-items:center;margin:19px 0 16px;flex-wrap:wrap}
.chapter-progress-line progress{width:70px;height:4px;appearance:none;border:0;background:#edf1e9;border-radius:5px;overflow:hidden}
.chapter-progress-line progress::-webkit-progress-bar{background:#edf1e9}
.chapter-progress-line progress::-webkit-progress-value{background:#8aa078}
.chapter-progress-line progress::-moz-progress-bar{background:#8aa078}
.chapter-progress-line small{font-size:10px;color:#87907c}
.chapter-actions{display:flex;gap:9px;flex-wrap:wrap}
.chapter-actions .button{font-size:12px;gap:13px;min-height:39px;padding:10px 13px;flex:1;white-space:normal}
.chapter-actions .button:disabled,.chapter-practice-status .button:disabled{cursor:default;opacity:1;background:#f5f7f3;color:#9ba594;border-color:#e7ece2;transform:none}
.route-source-note{font-size:11px;line-height:1.9;color:#86917f;margin:22px 0 0}
.route-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-bottom:22px;flex-wrap:wrap}
.route-toolbar>span{font-size:11px;color:#809078}
.chapter-practice-status{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:24px;margin-top:24px;background:#eaf0e7;border:1px solid #dbe4d4;border-radius:12px}
.chapter-practice-status h3{font-size:17px;font-weight:500;margin:8px 0}
.chapter-practice-status p{font-size:12px;line-height:1.8;color:#708066;margin:0}
.chapter-practice-status>.button{flex-shrink:0;font-size:12px}
.chapter-complete-note{font-size:13px;line-height:1.8;color:#54714b;margin:15px 0}
.chapter-review-cta{width:100%;margin:2px 0 12px}
.inline-translation,.reference-translation{display:block;font-size:13px!important;font-weight:400!important;line-height:1.7;color:#798779;margin:7px 0 0!important;letter-spacing:0}
.history-translation{font-size:12px!important}
#hint{font-size:12px;background:#f3f5ec;color:#728058;padding:11px 14px}
#question-zh{max-width:95%}
body[data-view="practice"] .sidebar .level-nav-button{padding:11px 10px;margin-bottom:5px;gap:10px}
body[data-view="practice"] .sidebar .level-nav-button strong{font-size:13px;line-height:1.5}
body[data-view="practice"] .sidebar .level-nav-button small{font-size:10px;line-height:1.4;margin-top:3px}
body[data-view="practice"] .sidebar{overflow-y:auto;padding-top:25px}
body[data-view="practice"] .sidebar .brand{margin-bottom:29px}
.map-track-label{color:#4f7046;font-size:14px;font-weight:600;margin:20px 0}
@media(max-width:760px){body[data-view="practice"] #level-nav{grid-template-columns:repeat(2,minmax(0,1fr))}body[data-view="practice"] .sidebar .level-nav-button{min-width:0}body[data-view="practice"] .sidebar .level-nav-button>span:last-child{min-width:0;overflow-wrap:anywhere}}
@media(max-width:760px){body[data-view="home"] main{padding:26px 18px 15px}.home-intro{margin-bottom:23px}.home-intro h1{font-size:29px}.home-intro p{font-size:13px}.track-grid{gap:15px}.track-art{height:105px;padding:14px}.track-content{padding:19px 17px}.track-content>strong{font-size:20px}.track-description{font-size:12px}.track-overline{font-size:9px}.track-meta{font-size:10px;gap:10px}.textbook-note{padding:19px;gap:15px;margin-bottom:29px}.chapter-card{padding:19px}.chapter-grid{gap:13px}.chapter-card h3{font-size:15px}.chapter-number{height:34px;width:34px;font-size:17px}.chapter-actions{flex-direction:column}.chapter-focus{min-height:0}.route-heading h2{font-size:21px}.route-progress-badge{font-size:10px;padding:8px}.chapter-practice-status{padding:18px;align-items:flex-start;flex-direction:column}.chapter-practice-status>.button{width:100%}body[data-view="home"] .topbar{padding-inline:18px}.route-toolbar{padding-bottom:17px}.chapter-range{font-size:9px}}
@media(max-width:520px){.track-grid,.chapter-grid{grid-template-columns:1fr}.track-card{display:grid;grid-template-columns:94px minmax(0,1fr)}.track-art{height:100%;padding:14px 10px;flex-direction:column;align-items:center;justify-content:center;gap:18px}.track-icon{width:39px;height:39px;font-size:25px}.track-choice{width:25px;height:25px;font-size:15px}.track-content{padding:19px 16px}.track-content>strong{font-size:20px;margin:6px 0 8px}.track-description{margin-bottom:12px;line-height:1.75}.track-meta{padding-top:12px}.track-meta>span{font-size:11px}.home-intro h1{font-size:27px}.textbook-note{align-items:flex-start;padding:17px;gap:12px}.textbook-symbol{font-size:23px}.textbook-note strong{font-size:13px}.textbook-note p{font-size:11px}.route-heading{align-items:flex-start;gap:12px}.route-heading h2{font-size:19px}.route-heading h2 span{font-size:11px;max-width:195px}.route-progress-badge{font-size:10px;padding:7px;white-space:normal;max-width:91px;line-height:1.6}.chapter-actions{flex-direction:row}.chapter-card h3{font-size:16px}.chapter-card{padding:18px}.chapter-card-heading{gap:10px}.route-toolbar>span{line-height:1.7}.home-eyebrow{font-size:10px;letter-spacing:1px}body[data-view="home"] .topbar{min-height:68px;height:auto;padding-block:12px}.inline-translation,.reference-translation{font-size:12px!important}}
@media(prefers-reduced-motion:reduce){.track-card{transition:none}.track-card:hover{transform:none}}

@media(max-width:520px){.track-art{background-size:cover,auto 200%;background-position:center,13% 0%}.track-academy .track-art{background-position:center,94% 100%}}
