/* 二级页面：统一品牌色；以紧凑编排减少滚动，长内容仍自然展开。 */
.secondary-page{--green:#209e65;--green-dark:#187f50;--mint:#eaf5ed;--purple:#209e65;--approved-ink:#263b37}
.secondary-page .approved-header{padding-block:12px 6px}
.secondary-page .approved-main{padding-top:0}
.secondary-page :is(.setup-title,.page-head){margin:7px 0 12px}
.secondary-page .setup-title .overline{display:none}
.secondary-page :is(.setup-title,.page-head) h1{font-size:25px;line-height:1.3;margin:5px 0;font-weight:650;color:#263b37}
.secondary-page :is(.setup-title,.page-head) p{font-size:14px;margin:4px 0;line-height:1.5}
.secondary-page .text-btn{font-size:14px;min-height:40px;color:#287b55}
.secondary-page :is(.settings-grid,.mode-grid){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:11px 0}
.secondary-page .settings-grid label{font-size:13px;line-height:1.5;min-width:0}
.secondary-page :is(select,input[type=search]){font-size:16px;min-height:44px;border:1px solid #cbded2;border-radius:11px;background:#fff;color:#304b3e;padding:8px 10px;max-width:100%}
.secondary-page .mode-tile{min-height:54px;padding:10px 11px;font-size:15px;font-weight:550;border-radius:13px;border:1px solid #dbe6df;box-shadow:0 3px 0 #e5ede8;line-height:1.45}
.secondary-page .mode-tile small{font-size:12px;line-height:1.4;margin-top:3px}
.secondary-page :is(.mode-tile.active,.filter.active,.outfit-option.active){color:#187f50;background:linear-gradient(#f0faf4,#dcefe3);border-color:#a6d0b8;box-shadow:0 2px 0 #b5d6c2}
.secondary-page .mode-hero{background:linear-gradient(130deg,#f3faf5,#e4f2e9);border:1px solid #c7dfd0;border-radius:16px;margin:12px 0;padding:13px 15px;text-align:left;position:relative}
.secondary-page .mode-hero>.icon{width:27px;height:27px;float:right;color:#299561;margin:2px 0 5px 8px}
.secondary-page .mode-hero h2{font-size:18px;line-height:1.4;margin:0 0 5px;color:#315940}
.secondary-page .mode-hero p{font-size:14px;line-height:1.6;margin:4px 0}
.secondary-options,.secondary-explanation{border:1px solid #dce8df;border-radius:11px;padding:0 11px;margin:10px 0;background:#fbfdfb;color:#547261}
.secondary-options>summary,.secondary-explanation>summary{cursor:pointer;font-size:14px;line-height:1.5;min-height:42px;display:list-item;padding:10px 0}
.secondary-explanation{background:transparent;border:0;border-top:1px solid #d5e5da;border-radius:0;margin:7px 0 0;padding:0}
.secondary-page :is(.primary,.secondary){font-size:16px;min-height:46px;padding:10px 13px;border-radius:13px;line-height:1.45;margin-block:9px}
html[data-course-palette=emerald] .secondary-page .primary:not(:disabled){background:linear-gradient(130deg,var(--course-top),var(--course-bottom));border-color:var(--course-line);box-shadow:0 3px 0 var(--course-edge);color:#fff}
.secondary-page .secondary{color:#247d53;background:#f4faf6;border-color:#c2ddcd;box-shadow:0 2px 0 #d8e8de}
.secondary-page .filter{min-height:40px;padding:8px 12px;font-size:14px;border-radius:11px}
.secondary-page :is(.unit-tabs,.filter-row,.knowledge-tabs){gap:7px;flex-wrap:wrap;margin:10px 0}
.secondary-page :is(.card,.passage-panel,.special-preview){padding:14px;border-radius:15px;margin-block:12px}
.secondary-page :is(.card,.special-preview,.review-step){border-color:#d7e6dc}
.secondary-page .special-preview{background:#f0f8f3;margin:0 0 10px;padding:10px}
.secondary-page .special-preview :is(p,li){font-size:14px;line-height:1.5}
.secondary-page .special-preview h2{font-size:17px;margin-bottom:6px}
.secondary-page .special-preview li{padding-block:6px}
.secondary-page :is(.note,.tiny){font-size:13px;line-height:1.6}
.secondary-page .assessment-intro h2{font-size:18px;margin-bottom:7px}
.secondary-page .assessment-outline{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-block:12px}
.secondary-page .assessment-outline>span{padding:10px 5px;font-size:13px;background:#edf6f0;border-color:#d0e4d7;border-radius:11px}
.secondary-page .assessment-outline strong{color:#208b58;font-size:17px}
.secondary-page .review-steps{gap:10px;margin:12px 0}
.secondary-page .review-step{padding:12px;gap:10px;background:#fbfdfb;border-radius:15px}
.secondary-page .review-step h2{font-size:18px;margin:0 0 5px}
.secondary-page .review-step p{font-size:13px;line-height:1.5;margin:4px 0}
.secondary-page .step-marker{background:#e1f0e6;color:#238457;border-color:#c1decc;width:33px;height:33px;font-size:17px;flex-shrink:0}
.secondary-page .review-step.done{background:#edf7f0;border-color:#a9d2b9}
.secondary-page .approved-topic-card{padding:13px;margin-block:10px;border-color:#d9e6de}
.secondary-page .section-title{margin:16px 0 9px}
.secondary-page .section-title h2{font-size:19px}
.secondary-page .level-card{background:linear-gradient(130deg,#f0f8f3,#dceee3);border-color:#c0ddcc;padding:15px;border-radius:17px}
.secondary-page .level-card .dragon{max-width:80px}
.secondary-page .level-card h2{font-size:20px}
.secondary-page .badge-grid{gap:8px}.secondary-page .badge-card{padding:12px 7px}.secondary-page .badge-card p{font-size:12px}
.secondary-page .outfit-box{padding:13px;gap:10px}.secondary-page .outfit-box .avatar{max-width:65px}
.secondary-page .writing-card{display:grid;grid-template-columns:1fr auto;gap:5px 10px}.secondary-page .writing-card h2{font-size:19px;grid-column:1/-1;margin:3px 0}.secondary-page .writing-card p{font-size:13px;line-height:1.5;margin:3px 0;grid-column:1/-1}.secondary-page .writing-card>.primary{grid-column:1/-1}
.secondary-page.large-text :is(.mode-tile,.filter){font-size:17px}.secondary-page.large-text .settings-grid{grid-template-columns:1fr}
html[data-course-palette=emerald] dialog{border-color:#bfdcca;border-radius:20px;box-shadow:0 14px 50px #204e3530}html[data-course-palette=emerald] dialog .primary{background:linear-gradient(#42b878,#209e65);box-shadow:0 3px 0 #187f50}html[data-course-palette=emerald] dialog .secondary{color:#247d53;border-color:#c2ddcd;background:#f0f8f3}
@media(max-width:360px){.secondary-page .mode-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.secondary-page .mode-tile{font-size:14px;padding:9px}.secondary-page .settings-grid{gap:7px}.secondary-page .assessment-outline{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* 单词四种练法：同一页面切换，只保留一个主要行动。 */
.word-landing{color:#263b37}.word-back{display:flex;align-items:center;gap:10px;text-decoration:none;color:inherit;margin:5px 0 12px;min-height:40px}.word-back .icon{width:23px}.word-back h1{font-size:25px;font-weight:650;margin:0}.word-context{background:#edf7f0;border-radius:15px;padding:11px 14px;display:flex;align-items:center;justify-content:space-between;gap:10px}.word-context>span{font-size:14px;font-weight:550;max-width:56%}.word-context label{font-size:0;min-width:100px}.secondary-page .word-context select{font-size:15px;border:0;background:transparent;padding:5px;min-height:40px;color:#365a46}.word-hero{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 40%;padding:12px 17px 11px;background:linear-gradient(120deg,#f1faf5,#e1f4e9);border:1px solid #dcefe3;border-radius:23px;box-shadow:0 5px 13px #27683f09;margin:11px 0 14px;overflow:hidden}.word-hero-copy{z-index:1;min-width:0}.word-eyebrow{display:inline-block;background:#d9efdf;color:#218553;padding:3px 10px;font-size:13px;line-height:1.35;border-radius:20px;font-weight:550}.word-hero h2{font-size:30px;line-height:1.2;color:#185d3d;margin:6px 0 4px;font-weight:750}.word-hero p{font-size:14px;line-height:1.4;margin:0;max-width:220px}.word-dragon{align-self:center;width:100%;height:120px;object-fit:contain;transform:scale(1.12);pointer-events:none}.word-round{font-size:13px;line-height:1.35;margin-top:2px;white-space:nowrap}.word-adjust{border:0;background:none;color:#217c50;text-decoration:underline;font-size:13px;padding:10px 7px;min-height:40px}.secondary-page .word-hero>.primary{grid-column:1/-1;margin:5px 0 0;min-height:49px;font-size:19px;box-shadow:0 4px 0 #187f50;border-radius:15px}.word-section-title{font-size:17px;font-weight:600;margin:0 0 11px;padding-left:10px;border-left:4px solid #42b878}.word-modes{display:grid;grid-template-columns:1fr 1fr;gap:10px}.word-mode{position:relative;display:flex;align-items:center;justify-content:center;gap:10px;border:1px solid #c8ddd0;border-radius:15px;min-height:76px;padding:11px 8px;background:#fff;color:#30473c;font:600 16px inherit;box-shadow:0 2px 0 #e5eee8;cursor:pointer}.word-mode>span:nth-child(2){font-size:16px;font-weight:550;white-space:nowrap}.word-mode.active{background:#e5f5eb;border-color:#47a975;box-shadow:0 2px 0 #b7d9c4}.word-mode-icon{display:flex;align-items:center;justify-content:center;min-width:39px;height:39px;font-size:22px;font-weight:650;color:#23945d;background:linear-gradient(140deg,#f9fffb,#d3efdd);border:1px solid #d5e9dc;border-radius:10px;box-shadow:0 3px 0 #b6d7c3;transform:rotate(-6deg)}.word-mode-icon.spell{font-size:16px;letter-spacing:1px;padding:0 4px;transform:rotate(0)}.word-mode-icon.form{font-size:12px;padding:0 4px;transform:rotate(0)}.word-mode-icon.listen{background:transparent;border:0;box-shadow:none;transform:none}.word-mode-icon .icon{width:34px;height:34px}.word-selected{position:absolute;right:6px;top:5px;border-radius:50%;width:17px;height:17px;background:#2ca36b;color:white;font-size:12px;text-align:center;line-height:17px}.word-utilities{display:flex;margin-top:15px;border:1px solid #d8e5dc;border-radius:14px;padding:4px}.word-utility{background:transparent;border:0;min-height:44px;display:flex;align-items:center;justify-content:center;gap:8px;color:#385c46;flex:1;font-size:15px;cursor:pointer}.word-utility+.word-utility{border-left:1px solid #d8e5dc}.word-utility .icon{width:22px;height:22px;color:#38a16b}.word-landing #word-options:not([open]){height:0;margin:0;padding:0;border:0;overflow:hidden}.word-footnote{text-align:center;color:#85928b;font-size:12px;margin:12px 0 4px}.word-landing .resume-banner{margin-block:10px}.large-text .word-hero h2{font-size:32px}.large-text .word-hero p,.large-text .word-mode>span:nth-child(2){font-size:18px}@media(max-width:375px){.word-mode{gap:7px;min-height:66px}.word-mode>span:nth-child(2){font-size:14px}.word-hero{padding:11px 13px}.word-hero h2{font-size:27px}.word-dragon{height:116px}.word-context>span{font-size:13px}.word-round{font-size:12px}}@media(max-height:760px){.word-hero{margin-block:10px;padding-top:10px}.word-dragon{height:112px}.word-mode{min-height:62px}.word-hero h2{margin-top:6px}.word-utilities{margin-top:10px}}

/* 短语、句型、语法共用紧凑练法卡；语法保持两种真实练法。 */
.course-landing .word-hero h2{font-size:28px;letter-spacing:0;overflow-wrap:anywhere}
.course-landing .course-mode-icon{font-size:12px;letter-spacing:0;transform:none;flex-shrink:0;padding:0 3px;min-width:35px}
.course-landing .word-mode{gap:7px;padding-inline:7px;min-width:0}
.course-landing .word-mode>span:nth-child(2){font-size:15px}
.course-landing .course-resource:not([open]){height:0;margin:0;padding:0;border:0;overflow:hidden}
.course-landing .course-resource h3{font-size:16px;margin:10px 0 4px}
.large-text .course-landing .word-hero h2{font-size:30px}
.large-text .course-landing .word-mode>span:nth-child(2){font-size:18px;white-space:normal}
@media(max-width:375px){.course-landing .word-hero h2{font-size:25px}.course-landing .word-mode>span:nth-child(2){font-size:14px}.course-landing .course-mode-icon{min-width:29px;font-size:11px}.course-landing .word-mode{gap:5px}}

/* 综合与检测沿用跟课练主卡，次要设置按需展开。 */
.finish-landing .word-hero h2{font-size:26px;line-height:1.3}
.finish-sizes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.finish-size{display:flex;flex-direction:column;align-items:center;gap:3px;padding:11px 5px;border:1px solid #c8ddd0;background:#fff;color:#385747;border-radius:15px;box-shadow:0 2px 0 #e5eee8;min-height:84px;cursor:pointer}
.finish-size strong{font-size:25px;line-height:1.2;color:#238353}.finish-size small{font-size:12px;font-weight:400;margin-left:4px}.finish-size>span{font-size:14px}.finish-size.active{background:#e5f5eb;border-color:#47a975;box-shadow:0 2px 0 #b7d9c4}
.finish-round-note{font-size:12px;line-height:1.6;color:#728478;margin:10px 1px}
.finish-steps{display:flex;list-style:none;padding:0;margin:0 0 16px;gap:5px;justify-content:space-between}.finish-steps li{display:flex;align-items:center;gap:6px;font-size:13px;color:#526d5e}.finish-steps b{display:grid;place-items:center;min-width:25px;height:25px;border-radius:50%;background:#e6f3eb;color:#278558;font-size:13px;font-weight:600}
.finish-landing .word-utility{text-decoration:none;font-size:14px}.finish-history{margin-top:19px}.finish-history-row{display:flex;justify-content:space-between;align-items:center;gap:8px;border:1px solid #d6e6dc;padding:12px 14px;border-radius:14px;color:#365b46;text-decoration:none;background:#f8fcf9;margin:8px 0}.finish-history-row strong{display:block;font-size:16px}.finish-history-row small{display:block;font-size:12px;color:#78877e;margin-top:4px}.finish-history-row>.icon{width:19px;flex-shrink:0}.finish-info:not([open]){height:0;margin:0;padding:0;border:0;overflow:hidden}.finish-info li{font-size:13px;line-height:1.7}.finish-outline{display:grid;grid-template-columns:1fr 1fr;gap:7px}.finish-outline>span{display:flex;justify-content:space-between;background:#eef6f1;padding:9px;border-radius:9px;font-size:13px}.finish-outline b{color:#28835a}.large-text .finish-size>span,.large-text .finish-steps li{font-size:16px}.large-text .finish-steps{flex-wrap:wrap;gap:10px}@media(max-width:375px){.finish-landing .word-hero h2{font-size:23px}.finish-steps li{gap:4px;font-size:12px}.finish-steps b{min-width:22px;height:22px}.finish-sizes{gap:7px}}

/* Writing fields and checklists occupy the full editor width on every step. */
.secondary-page .writing-editor .writing-card{display:block}
.secondary-page .writing-editor .writing-card>.unsure{display:flex;align-items:flex-start;gap:10px;margin:0;padding:13px 0;border-bottom:1px solid #e8eee8;font-size:15px;line-height:1.6}
.secondary-page .writing-editor .writing-card>.unsure input{flex:0 0 auto;margin-top:3px}
.secondary-page .writing-editor .writing-card>.essay-input{width:100%;box-sizing:border-box}
