/* 等式课：克制的数学课气质，纸面优先，少动画。 */
.math-classroom{position:fixed;inset:0;z-index:140;display:none;color:#353936}
.math-classroom.open{display:flex;align-items:center;justify-content:center;padding:24px}
.math-backdrop{position:absolute;inset:0;background:rgba(36,40,37,.38);backdrop-filter:blur(3px)}
.math-panel{position:relative;width:min(1080px,100%);max-height:92dvh;overflow:auto;background:#FBFCF9;border:1px solid #D4DAE0;border-radius:22px;box-shadow:0 24px 90px #20251e40}
.math-header{display:flex;align-items:center;justify-content:space-between;padding:22px 28px 16px;border-bottom:1px solid #DBE1E6;position:sticky;top:0;background:#FBFCF9;z-index:2}
.math-header small{font-size:14px;letter-spacing:.08em;color:#7A807C}
.math-header h2{font-family:var(--zz-serif,var(--serif,serif));font-size:26px;margin:6px 0 0;font-weight:600;letter-spacing:-.01em}
.math-header>button{border:0;background:#EBEDE7;font-size:24px;border-radius:50%;width:42px;height:42px;color:#5F6561;line-height:1}

/* 阶段条 */
.math-phase{padding:14px 28px 12px;border-bottom:1px solid #DCE2E7;background:linear-gradient(#F6F7F3,#FBFCF9)}
.math-phase-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-end;margin-bottom:12px}
.math-phase-head small{display:block;font-size:12px;letter-spacing:.14em;color:#848C87;margin-bottom:4px}
.math-phase-head strong{font-size:17px;font-weight:600;color:#3D433F}
.math-phase-time{text-align:right;font-size:14px;color:#6A726D}
.math-phase-clock{font-variant-numeric:tabular-nums;font-family:var(--mono,ui-monospace,monospace)}
.math-phase-over{display:inline-block;margin-left:8px;padding:2px 8px;border-radius:999px;background:#E4EAF0;color:#785C4A;font-size:13px}
.math-phase-track{list-style:none;margin:0;padding:0;display:flex;gap:2px;overflow-x:auto;scrollbar-width:thin}
.math-phase-item{flex:1 1 0;min-width:64px;text-align:center;padding:4px 2px}
.math-phase-dot{display:block;width:8px;height:8px;border-radius:50%;margin:0 auto 6px;background:#CBD4CE;transition:background .18s ease,transform .18s ease}
.math-phase-label{display:block;font-size:12px;line-height:1.35;color:#919A94;white-space:nowrap}
.math-phase-done .math-phase-dot{background:#7B9885}
.math-phase-done .math-phase-label{color:#637368}
.math-phase-current .math-phase-dot{background:#506457;transform:scale(1.35);box-shadow:0 0 0 3px #556d4722}
.math-phase-current .math-phase-label{color:#3D4C42;font-weight:600}
.math-phase-bar{height:3px;background:#E2E4DE;border-radius:99px;margin-top:10px;overflow:hidden}
.math-phase-bar>i{display:block;height:100%;background:#788C7F;border-radius:99px;transition:width .25s ease}
.math-phase-note{margin:8px 0 0;font-size:14px;color:#785C4A}

.math-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px}
.math-paper{padding:20px 28px 28px;min-width:0;min-height:420px}

.math-chips{list-style:none;display:flex;flex-wrap:wrap;gap:6px;margin:0 0 14px;padding:0}
.math-chip{font-size:13px;line-height:1.4;padding:5px 10px;border-radius:999px;border:1px solid #D7DFDA;background:#F3F4F1;color:#5A625D}
.math-chip-quiet,.math-chip-lock{background:#ECF3EE;border-color:#CADACF;color:#475A4D}
.math-chip-paused{background:#E4EAF0;border-color:#CAD3DA;color:#6B5547}
.math-chip-verify{background:#EEF2F6;border-color:#D5DEE6;color:#4A5B6A}
.math-chip-support{background:#E7EDF3;border-color:#C7D3DE;color:#785C4A}
.math-chip-idle{color:#747C77}

.math-meta{display:flex;justify-content:space-between;gap:10px;color:#7F8782;font-size:13px;margin-bottom:18px}
.math-prompt{font-size:24px;line-height:1.55;font-weight:550;margin:14px 0 18px;white-space:pre-wrap;font-family:var(--zz-serif,var(--serif,serif))}
.math-teaching{background:#EDEFEA;border-left:3px solid #BAC7BE;padding:14px 16px;font-size:15.5px;line-height:1.85;border-radius:0 10px 10px 0;white-space:pre-wrap}
.math-quiet,.math-paused,.math-lock{border:1px solid #D2DFD6;background:#ECF3EE;color:#475B4E;padding:12px 14px;border-radius:10px;font-size:15px;line-height:1.7;margin:0 0 12px}
.math-paused{background:#F0F3EC;border-color:#CED6DD;color:#63544A}
.math-verify-banner{border:1px solid #D5DEE6;background:#F3F6F9;color:#445666;padding:12px 14px;border-radius:10px;font-size:15px;line-height:1.7;margin:0 0 12px}
.math-candidate,.math-help-offer{font-size:14px;color:#77665B}
.math-next{font-size:15px;color:#545F58;background:#F2F3EF;border-radius:8px;padding:8px 12px}
.math-support{background:#E7EDF3;border:1px solid #C7D3DE;border-radius:12px;padding:13px 16px;margin:14px 0}
.math-support small{color:#21405A;font-size:13px}.math-support p{font-size:15.5px;line-height:1.8;margin:8px 0 0}

.math-support-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}
.math-ai-voice{display:inline-flex;align-items:center;font-size:13px;font-weight:600;letter-spacing:.02em;color:#69503F;background:#D4DEE7;border:1px solid #ADBAC6;border-radius:999px;padding:3px 10px}
.math-support-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.math-support-actions button{min-height:36px;padding:6px 12px;border:1px solid #ADBAC6;border-radius:9px;background:#F8FBF4;color:#69503F;font-size:14px}
.math-support-actions button.speaking{background:#69503F;color:#F8FBF4;border-color:#69503F}


.math-steps{list-style:none;padding:0;margin:16px 0}
.math-step{display:flex;align-items:flex-start;gap:12px;padding:12px 0;border-bottom:1px solid #E0E5EA}
.math-step-number{font-size:13px;color:#8D9590;border:1px solid #D3DBD6;border-radius:50%;width:24px;height:24px;display:grid;place-items:center;flex-shrink:0}
.math-step>div:first-of-type{flex:1;min-width:0}
.math-step b{display:block;font-family:ui-monospace,var(--mono,monospace);font-size:18px;font-weight:500;overflow-wrap:anywhere}
.math-step small{display:block;font-size:13px;line-height:1.7;color:#7D8680;margin-top:6px}
.math-step-ops{display:flex;flex-direction:column;gap:4px;align-items:flex-end}
.math-step-ops button{background:none;border:0;font-size:13px;color:#7A8086;padding:4px 8px;min-height:32px}
.math-step-ops button.math-withdraw-armed,.math-panel button.math-withdraw-armed{color:#785C4A;background:#E6EDF3;border-radius:8px;border:1px solid #C5CFD8}
.math-refuted b{color:#274762}.math-verified b{color:#506557}.math-recorded b{color:#555C57}
.math-empty{font-size:15px;line-height:1.9;color:#8D9690;padding:28px 0}
.math-empty-soft{font-size:14px;line-height:1.8;color:#919A94;margin:0}

.math-input-label{display:block;font-size:14px;margin-bottom:8px;color:#707B74}
#math-line{display:block;box-sizing:border-box;width:100%;min-height:92px;padding:14px;border:1px solid #D0D8D3;border-radius:12px;background:#FCFDFB;color:#353936;font-size:18.5px;line-height:1.7;resize:vertical}
#math-line:focus{outline:2px solid #B6C8BC;outline-offset:2px}

.math-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}
.math-panel button{cursor:pointer;min-height:44px;font:inherit;font-size:14px;transition:background .12s,filter .12s}
.math-actions button,.math-choices button,.math-reviews button,.math-primary{padding:9px 13px;border:1px solid #CFD8D2;border-radius:10px;background:#FCFDF9;color:#4E5B52}
.math-panel .math-primary{background:#506457;color:#FFFFFF;border-color:#506457}
.math-panel button:hover:not(:disabled){filter:brightness(.97)}
.math-panel button:focus-visible{outline:2px solid #75927F;outline-offset:3px}
.math-panel button:disabled{opacity:.5;cursor:wait}
.math-note{font-size:14px;color:#727C75;line-height:1.9;margin:14px 0}
.math-secondary{display:flex;flex-wrap:wrap;gap:4px;border-top:1px solid #E0E5EA;padding-top:12px;margin-top:18px}
.math-secondary button{background:none;border:0;padding:7px 10px;color:#7F8782;font-size:13px;min-height:40px}
.math-choices{display:grid;gap:9px}.math-choices button{text-align:left;padding:12px 16px;font-size:15.5px}

.math-rail{border-left:1px solid #DBE1E6;background:#F2F3EF;padding:22px 20px 28px;border-radius:0 0 22px 0}
.math-rail h3{font-size:15px;margin:0 0 14px;font-weight:600;color:#3D433F}
.math-rail>p{font-size:13px;line-height:1.85;color:#869189;margin:0 0 16px}
.math-goals,.math-reviews,.math-points{list-style:none;margin:0 0 20px;padding:0}
.math-goals li{display:flex;gap:10px;font-size:14px;line-height:1.7;margin:14px 0;color:#727D76}
.math-goals small,.math-reviews small{display:block;font-size:12px;color:#909B94;margin-top:4px}
.math-goals .math-evidence{color:#496853}.math-goals .math-evidence small{color:#6B8774}
.math-reviews li{padding:10px 0;border-bottom:1px solid #DAE2DD;font-size:14px}
.math-reviews button{margin-top:8px;min-height:38px}
.math-privacy{border-top:1px solid #D9E1DC;padding-top:16px;font-size:13px;line-height:1.85;color:#869189}

/* 长期记录 */
.math-learner{margin:8px 0 22px;padding-top:4px}
.math-learner-note{font-size:13px !important;color:#808A83 !important;margin:0 0 12px !important;line-height:1.7 !important}
.math-point{padding:12px 0;border-bottom:1px solid #DAE2DD}
.math-point-head{display:flex;gap:8px;align-items:baseline;font-size:14px;color:#474F4A}
.math-point-head b{font-family:var(--mono,ui-monospace,monospace);font-size:13px;color:#637368;font-weight:600}
.math-point-status{margin:6px 0 8px;font-size:14px;color:#545F58;font-weight:500}
.math-point-counts{display:flex;flex-wrap:wrap;gap:6px}
.math-point-counts span{font-size:12px;padding:3px 7px;border-radius:6px;background:#E2EBE5;color:#646C67}
.math-point-counts .math-ev{background:#E3ECE6;color:#496051}
.math-point-counts .math-sup{background:#E4EAF0;color:#6B5547}
.math-point-counts .math-ctr{background:#E4EAEF;color:#79604F}
.math-bkt{margin:14px 0 0;padding:12px 0 0;border-top:1px dashed #DAE2DD}
.math-bkt h4{margin:0 0 6px;font-size:14px;font-weight:600;color:#545F58}
.math-bkt-note{font-size:13px !important;color:#808A83 !important;margin:0 0 10px !important;line-height:1.6 !important}
.math-bkt ul{list-style:none;margin:0;padding:0}
.math-bkt-item{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:baseline;font-size:14px;padding:6px 0;border-bottom:1px solid #EBECE8;color:#545F58}
.math-bkt-item b{font-family:var(--mono,ui-monospace,monospace);font-size:13px;color:#637368}
.math-bkt-item em{font-style:normal;font-size:13px;color:#738B7B;margin-left:auto}

/* 达标口径 */
.math-mastery{margin:4px 0 22px;padding:14px;border:1px solid #D5DADF;border-radius:12px;background:#FBFCF8}
.math-mastery h3{margin:0 0 8px !important}
.math-assumption{font-size:13px !important;color:#785C4A !important;margin:0 0 10px !important;line-height:1.6 !important}
.math-mastery ul{list-style:none;margin:0;padding:0}
.math-mastery li{display:flex;gap:10px;font-size:14px;line-height:1.55;margin:10px 0;color:#545F58}
.math-mastery li span{flex-shrink:0;width:18px;text-align:center;font-weight:600}
.math-mastery-met{color:#425B4A !important}
.math-mastery-met span{color:#425B4A}
.math-mastery-open span{color:#96A099}
.math-mastery small{display:block;font-size:12px;color:#909B94;margin-top:3px}
.math-mastery-sum{font-size:13px !important;color:#6A726D !important;margin:10px 0 0 !important;line-height:1.7 !important}

/* 结束页 */
.math-finish{padding-top:8px}
.math-guardian{margin:16px 0;padding:14px 16px;border:1px solid #D5DADF;border-radius:12px;background:#FBFCF8}
.math-guardian h3{margin:0 0 8px;font-size:15.5px;font-weight:600;color:#545F58}
.math-guardian-note{font-size:13px !important;color:#808A83 !important;margin:0 0 10px !important;line-height:1.6 !important}
.math-guardian p{margin:0 0 8px;font-size:15px;line-height:1.75;color:#3D433F}
.math-guardian-advice{color:#5F4E43 !important;font-size:14px !important}
.math-finish-mark{font-size:13px;letter-spacing:.12em;color:#738B7B;margin:8px 0 18px}
.math-finish h3{font-family:var(--zz-serif,var(--serif,serif));font-size:24px;font-weight:600;margin:0 0 18px}
.math-closeout{margin:0 0 22px}
.math-closeout>div{padding:12px 0;border-bottom:1px solid #DCE2E7}
.math-closeout dt{font-size:13px;letter-spacing:.08em;color:#738B7B;margin-bottom:6px}
.math-closeout dd{margin:0;font-size:15.5px;line-height:1.75;color:#3D433F}
.math-paper>p{line-height:1.9;font-size:15.5px}

@media(max-width:860px){
 .math-classroom.open{padding:10px}
 .math-panel{max-height:96dvh;border-radius:16px}
 .math-layout{grid-template-columns:1fr}
 .math-header,.math-phase{padding-left:18px;padding-right:18px}
 .math-paper{padding:18px;min-height:0}
 .math-rail{border-left:0;border-top:1px solid #DBE1E6;border-radius:0 0 16px 16px;padding:18px}
 .math-goals{display:grid;grid-template-columns:1fr 1fr;gap:6px 14px}
 .math-goals li{margin:4px 0}
 .math-prompt{font-size:21.5px}
 .math-phase-label{font-size:11.5px}
 .math-phase-item{min-width:52px}
 .math-actions button{flex-grow:1}
 .math-mastery{padding:12px}
}
@media(prefers-reduced-motion:reduce){
 .math-phase-dot,.math-phase-bar>i,.math-panel button{transition:none}
}

.math-history{margin:12px 0;padding:12px 14px;border:1px solid var(--math-line, rgba(40,51,60,.18));border-radius:10px;background:var(--math-soft, rgba(40,51,60,.04));}
.math-history h4{margin:0 0 8px;font-size:15px;font-weight:600;}
.math-history ol{margin:0 0 10px;padding-left:1.2em;}
.math-history li{margin:4px 0;}
.math-history small{display:block;opacity:.7;font-size:13px;}
.math-history-inactive{opacity:.55;text-decoration:line-through;}
.math-history-events{border-top:1px dashed var(--math-line, rgba(40,51,60,.18));padding-top:8px;}

.math-reentry{border:1px solid #D7E4EF;background:#F3F7FB;color:#3D586F;padding:12px 14px;border-radius:10px;margin:0 0 12px;font-size:15px;line-height:1.7}
.math-reentry p{margin:0 0 10px}
.math-reentry-actions{display:flex;flex-wrap:wrap;gap:8px}
.math-chip-reentry{background:#E8F1F8;border-color:#C9DBEA;color:#3D586F}
.math-soft-risk{border:1px solid #D1D8DF;background:#F5F7F2;color:#5F4E43;padding:12px 14px;border-radius:10px;margin:0 0 12px;font-size:15px;line-height:1.7}
.math-soft-risk p{margin:0 0 10px}
.math-soft-risk-actions{display:flex;flex-wrap:wrap;gap:8px}
.math-chip-soft{background:#DDE4EA;border-color:#B3C1CD;color:#5F4E43}
.math-soft-stop{border:1px solid #CCD2D8;background:#F6F7F3;color:#5F4F45;padding:12px 14px;border-radius:10px;margin:0 0 12px;font-size:15px;line-height:1.7}
.math-soft-stop p{margin:0 0 10px}
.math-soft-stop-actions{display:flex;flex-wrap:wrap;gap:8px}


.math-eval{margin:18px 0;padding:14px 16px;border:1px solid #D4DCD7;border-radius:12px;background:#F4F8F5}
.math-eval h3{margin:0 0 6px;font-size:17px}
.math-eval-note{font-size:14px;color:#646F68;line-height:1.7;margin:0 0 10px}
.math-eval-metrics{list-style:none;padding:0;margin:0;display:grid;gap:10px}
.math-eval-metrics li{display:grid;gap:2px;padding:8px 10px;border-radius:8px;background:#FCFDFB;border:1px solid #DFE8E2}
.math-eval-metrics b{font-size:15px;color:#404D44}
.math-eval-metrics span{font-size:15px;color:#3B443E}
.math-eval-metrics small{font-size:13px;color:#838D86;line-height:1.6}

/* ---------- 分段讲解 / 错因对比卡 / 复习计划 / 家长摘要 ---------- */
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.zz-tag{display:inline-block;font-size:13px;letter-spacing:.04em;color:#506457;background:#E7EFEA;border-radius:999px;padding:3px 10px}
.zz-fine{font-size:13px;color:#808A83;line-height:1.6;margin:10px 0 0}
.zz-lead{font-size:15.5px;line-height:1.8;color:#3D433F;margin:8px 0 12px}
.zz-card-foot{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.zz-card-foot button,.zz-seg-top button{padding:9px 14px;border:1px solid #CFD8D2;border-radius:10px;background:#FCFDF9;color:#4E5B52}
.zz-card-foot .math-primary{background:#506457;color:#FFFFFF;border-color:#506457}
.zz-enter{animation:zz-in .18s ease-out both}
@keyframes zz-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}

.zz-seg{padding:4px 2px}
.zz-seg-top{display:flex;justify-content:space-between;align-items:center;gap:10px}
.zz-seg-top button{min-height:40px;font-size:14px;background:none;border-color:transparent;color:#7F8782}
.zz-seg-dots{display:flex;gap:6px;list-style:none;padding:0;margin:14px 0 18px;counter-reset:d}
.zz-seg-dots li{flex:1;min-width:0;font-size:13px;color:#97A19A;padding-top:8px;border-top:3px solid #DDE3DF;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.zz-seg-dots li.done{border-color:#98B0A0;color:#647469}
.zz-seg-dots li.now{border-color:#506457;color:#3A453E;font-weight:600}
.zz-seg h3{font-size:21.5px;font-weight:600;color:#303B34;margin:0 0 10px;outline:none}
.zz-explain{font-size:17px;line-height:1.95;color:#373E39;margin:0 0 16px;max-width:62ch}
.zz-alt{border-left:3px solid #B4947F;background:#ECF2F7;padding:10px 14px;border-radius:0 10px 10px 0;margin:0 0 16px}
.zz-guide{border-left:3px solid #7D9CB8;background:#EEF3F8;padding:10px 14px;border-radius:0 10px 10px 0;margin:0 0 16px}
.zz-guide b{font-size:14px;color:#3D5C78}.zz-guide p{margin:4px 0 0;font-size:15.5px;line-height:1.85;color:#2C3C4A}
.zz-alt b{font-size:14px;color:#69503F}.zz-alt p{margin:4px 0 0;font-size:15.5px;line-height:1.85;color:#353B41}
.zz-check{margin-top:6px}
.zz-check label{display:block;font-size:15.5px;color:#3D433F;line-height:1.7;margin-bottom:8px}
.zz-qmark{font-size:13px;color:#69503F;background:#DFE6ED;border-radius:6px;padding:2px 7px;margin-right:8px}
.zz-check-row{display:flex;gap:8px}
.zz-check input{flex:1;min-width:0;min-height:44px;font:inherit;font-size:18px;padding:8px 12px;border:1px solid #CAD4CD;border-radius:10px;background:#FFFFFF;color:#2C322E}
.zz-check input:focus-visible{outline:2px solid #75927F;outline-offset:2px;border-color:#75927F}
.zz-fb{min-height:1.5em;font-size:15px;margin:8px 0 0;color:#5F4E43}
.zz-ok{font-size:15.5px;color:#3B5142;background:#E9F1EC;border-radius:10px;padding:10px 12px;margin:0}
.zz-soft{font-size:15.5px;color:#5F4E43;background:#ECF2F7;border-radius:10px;padding:10px 12px;margin:0}

.zz-contrast{margin:14px 0;padding:14px 16px;border:1px solid #C7D0D7;border-radius:14px;background:#F9FBF6}
.zz-contrast header{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.zz-contrast h4{margin:0;font-size:17px;font-weight:600;color:#353B41}
.zz-pair{display:grid;gap:6px;margin:0 0 12px}
.zz-row{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:10px;font-size:17px}
.zz-row code{font-family:"Cambria Math","STIX Two Math",Georgia,serif;font-size:18px;overflow-wrap:anywhere}
.zz-right{background:#E9F1EC;color:#2E4235}.zz-wrong{background:#F6E4DE;color:#8E3222}
.zz-wrong code{text-decoration:line-through;text-decoration-color:#A93B2A}
.zz-mark{flex:none;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-size:14px;background:#FFFFFF}

.zz-plan{margin:0 0 16px}
.zz-plan h3,.zz-guardian summary{font-size:15px;font-weight:600;color:#545F58;margin:0 0 8px}
.zz-plan-days{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.zz-plan-when{display:flex;align-items:baseline;gap:8px;font-size:14px;color:#506457}
.zz-plan-when time{color:#8E9891;font-size:13px}
.zz-plan-day>ul{list-style:none;margin:6px 0 0;padding:0 0 0 10px;border-left:2px solid #DBE4DE;display:grid;gap:6px}
.zz-plan-item{font-size:14px;color:#454E48}
.zz-plan-item small{display:block;color:#808A83;font-size:13px;line-height:1.5}
.zz-plan-spin{border-left:2px solid #B4947F;margin-left:-12px;padding-left:10px}
.zz-plan-top{display:flex;gap:6px;flex-wrap:wrap}
.zz-plan-qs{margin:4px 0 0;padding-left:16px;color:#636E67;font-size:13px;line-height:1.6}
.zz-guardian{margin:0 0 16px;padding:10px 12px;border:1px solid #D5DADF;border-radius:12px;background:#FBFCF8}
.zz-guardian summary{cursor:pointer;margin:0;min-height:28px;display:flex;align-items:center}
.zz-guardian summary:focus-visible{outline:2px solid #75927F;outline-offset:3px;border-radius:6px}
.zz-guardian p{font-size:14px;line-height:1.75;color:#3D433F;margin:8px 0 0}
.zz-guardian-advice{color:#5F4E43 !important}

@media(max-width:600px){
 .zz-seg h3{font-size:19.5px}.zz-explain{font-size:17px}
 .zz-seg-dots li{font-size:0;padding-top:0}
 .zz-check-row{flex-direction:column}.zz-check-row button{width:100%}
 .zz-card-foot button{flex:1 1 100%}
 .zz-contrast{padding:12px}
}
@media(prefers-reduced-motion:reduce){.zz-enter{animation:none}}
@media(forced-colors:active){.zz-right,.zz-wrong,.zz-seg-dots li.now{border:1px solid CanvasText}}

.zz-checkin{margin:14px 0;padding:12px 16px;border:1px solid #CFD8D2;border-left:3px solid #75927F;border-radius:12px;background:#F3F7F4}
.zz-checkin h4{margin:0;font-size:15.5px;font-weight:500;line-height:1.7;color:#3D433F;display:flex;flex-wrap:wrap;align-items:center;gap:8px}

/* 课首小诊断 */
.zz-warm-offer{border:1px solid var(--zz-line,#D9E3EC);border-left:4px solid #729BBF;border-radius:12px;padding:12px 14px;margin:10px 0;background:#F5FAFF}
.zz-warm-offer p{margin:0 0 8px;line-height:1.6}
.zz-warm-form label{display:block;margin-top:10px}
.zz-warm .zz-card-foot{display:flex;gap:8px;flex-wrap:wrap}

/* 课尾迁移题 */
.zz-trf{border:1px solid var(--zz-line,#D9E3EC);border-radius:12px;padding:14px;margin:14px 0;background:#FBFCF8}
.zz-trf h3{margin:6px 0 8px;font-size:1.05rem;line-height:1.5}
.zz-trf .zz-card-foot,.zz-trf .zz-check-row{display:flex;gap:8px;flex-wrap:wrap}

/* 鼓励语：一句、过程导向、不抢焦点 */
.zz-cheer{margin:8px 0;padding:8px 12px;border-radius:10px;background:#F0F5F2;color:#314337;line-height:1.6}
.zz-cheer-inline{margin:0 0 6px;color:#4C5950;font-size:.95em}

/* 理解检查点 */
.zz-why{margin:10px 0;padding:10px 12px;border:1px dashed #C9D5E0;border-radius:10px}
.zz-why legend small{color:#6B7680;margin-left:4px}
.zz-why-opt{display:block;width:100%;text-align:left;margin:6px 0;padding:8px 10px;border-radius:8px;border:1px solid #D5DCE3;background:#FFFFFF;cursor:pointer}
.zz-why-opt:focus-visible{outline:2px solid #618AAE}
/* 学习路径：先修→进阶 */
.zz-path{margin:12px 0;padding:12px 14px;border:1px solid #DDE3DF;border-radius:12px;background:#FBFBF6}
.zz-path .zz-seg-dots{margin:0 0 8px}
.zz-path .zz-seg-dots li{white-space:normal}
.zz-path .zz-seg-dots li small{display:block;font-size:13px;color:#7E8881}
.zz-path p{margin:0 0 8px;font-size:15.5px}

.zz-recap{border:1px solid #D3DED7;background:#F4F7F5;border-radius:12px;padding:14px 16px;margin:16px 0}
.zz-recap h3{margin:0 0 8px;font-size:18px}.zz-recap p{margin:6px 0;line-height:1.85;font-size:15.5px}
.zz-recap .zz-recap-note{font-size:14px;color:#67716A}

.zz-backfill{margin:12px 0;padding:12px 14px;border-radius:12px;background:#EAF1F7;border-left:3px solid #A27D64}
.zz-backfill b{display:block;font-size:.9rem;color:#654733;margin-bottom:4px}
.zz-backfill p{margin:0 0 8px}
.zz-backfill small{color:#7F6F65}

/* 讲给老师听 */
.zz-teach{margin:12px 0;padding:12px 14px;border:1px solid #626F7A;border-left:4px solid #657F6E;border-radius:10px;background:#F7F8F4}
.zz-teach p{margin:6px 0;line-height:1.6}
.zz-teach textarea{width:100%;box-sizing:border-box;margin:6px 0;padding:8px 10px;border:1px solid #CED4D0;border-radius:8px;font:inherit;resize:vertical;min-height:72px}
.zz-teach textarea:focus-visible{outline:2px solid #657F6E}
.zz-teach .zz-card-foot{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.zz-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* ===== 统一视觉体系（第 9 批打磨）=====
   色彩：主色绿 = 行动/进度；暖黄 = 提醒/对比；蓝 = 引导提问；红褐 = 出错。
   卡片：同一圆角、内边距、标题字号；一屏只突出一张建议卡，其余折叠。 */
.math-classroom{--zz-r:14px;--zz-pad:14px 16px;--zz-line:#D7DCE1;--zz-card:#FBFCF8;--zz-green:#6E8B74;--zz-warn:#C2703F;--zz-err:#A93B2A}
.zz-path,.zz-warm-offer,.zz-checkin,.zz-contrast,.zz-backfill,.zz-teach,.zz-why,.zz-trf-offer{margin:14px 0;padding:var(--zz-pad);border:1px solid var(--zz-line);border-radius:var(--zz-r);background:var(--zz-card)}
.zz-warm-offer,.zz-path{border-left:3px solid var(--zz-green)}
.zz-checkin{border-left:3px solid #7D9CB8}
.zz-contrast{border-left:3px solid var(--zz-warn)}
.zz-path p,.zz-warm-offer p,.zz-checkin h4{font-size:15.5px;line-height:1.75;margin:0}
.zz-path .zz-seg-dots{margin:0 0 10px}
.zz-card-foot button{min-height:40px;font-size:15px}
/* 卡片过多：其余折叠成一行 */
.zz-more{margin:-4px 0 14px;border:1px dashed var(--zz-line);border-radius:var(--zz-r);background:#F8F9F5}
.zz-more>summary{cursor:pointer;list-style:none;padding:10px 14px;font-size:14px;color:#636E67;min-height:40px;display:flex;align-items:center}
.zz-more>summary::-webkit-details-marker{display:none}
.zz-more>summary::before{content:'＋';margin-right:8px;color:var(--zz-green)}
.zz-more[open]>summary::before{content:'－'}
.zz-more>summary:focus-visible{outline:2px solid #75927F;outline-offset:2px}
.zz-more-body{padding:0 12px 4px}
/* 课堂底部：单元入口与课堂控制分组 */
.math-secondary{flex-direction:column;align-items:stretch;gap:10px}
.math-units{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.math-units>small{flex:none;white-space:nowrap;font-size:13px;letter-spacing:.08em;color:#848C87;margin-right:4px}
.math-secondary .math-units button{border:1px solid #D6DFD9;border-radius:999px;background:#F2F6F3;color:#48564D;padding:6px 12px;font-size:14px;min-height:36px}
.math-secondary .math-units button:hover{background:#E7EFEA}
.math-controls{display:flex;flex-wrap:wrap;gap:4px}
/* 加载 / 空 / 错误 */
.math-classroom [aria-busy="true"]>.math-empty-soft{display:flex;align-items:center;gap:10px;color:#7A807C;font-size:15.5px;padding:18px 4px}
.math-classroom [aria-busy="true"]>.math-empty-soft::before{content:'';width:16px;height:16px;border-radius:50%;border:2px solid #CCD7D0;border-top-color:var(--zz-green);animation:zz-spin .8s linear infinite}
@keyframes zz-spin{to{transform:rotate(360deg)}}
.math-empty{color:#8E9891;font-size:14px;font-style:normal}
.zz-error{margin:12px 0;padding:12px 14px;border-radius:var(--zz-r);background:#F6E4DE;border:1px solid #E8C9C0;border-left:3px solid var(--zz-err)}
.zz-error b{font-size:15px;color:var(--zz-err)}.zz-error p{margin:4px 0;font-size:15.5px;color:#5A3A32}.zz-error small{font-size:14px;color:#8A6A62}
/* 信息层次：题目最大、其次操作、再次说明 */
.math-meta{font-size:14px;color:#808A83}
.math-actions .math-primary{min-height:46px;padding:0 20px;font-size:17px}
@media(max-width:860px){
 .math-classroom.open{padding:0;align-items:stretch}
 .math-panel{border-radius:0;max-height:100dvh;height:100dvh;border:0}
 .math-header{padding:14px 16px 10px}
 .math-paper{padding:14px 16px 20px}
 .math-prompt{font-size:20.5px}
 .math-actions{position:sticky;bottom:0;background:linear-gradient(transparent,#FBFCF9 14px);padding:16px 0 8px;z-index:1}
 .math-actions button{flex:1 1 auto}
 .math-units{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
 .math-units button{flex:none}
 .zz-card-foot button{flex:1 1 auto}
}
@media(prefers-reduced-motion:reduce){.math-classroom [aria-busy="true"]>.math-empty-soft::before{animation:none}}
/* 节奏调度卡 */
.zz-pacing{margin:14px 0;padding:var(--zz-pad);border:1px solid var(--zz-line);border-left:3px solid #A68168;border-radius:var(--zz-r);background:var(--zz-card)}
.zz-pacing h4{margin:0;font-size:15.5px;font-weight:500;line-height:1.7;color:#3D433F;display:flex;flex-wrap:wrap;align-items:center;gap:8px}
/* 休息提醒卡 */
.zz-rest{margin:14px 0;padding:var(--zz-pad);border:1px solid var(--zz-line);border-left:3px solid #7F99B0;border-radius:var(--zz-r);background:var(--zz-card)}
.zz-rest h4{margin:0;font-size:15.5px;font-weight:500;line-height:1.7;color:#3D433F;display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.zz-replay{border:1px solid #D9E1E8;background:#FAFBFD;border-radius:12px;padding:12px 16px;margin:16px 0}
.zz-replay summary{cursor:pointer;font-weight:600;font-size:17px}
.zz-replay-sum{margin:10px 0 6px;font-size:15.5px;line-height:1.8}
.zz-replay-list{list-style:none;margin:0;padding:0;border-left:2px solid #C9D8E6}
.zz-replay-row{position:relative;padding:6px 0 10px 14px;display:flex;flex-direction:column;gap:2px;font-size:15.5px;line-height:1.7}
.zz-replay-row::before{content:'';position:absolute;left:-6px;top:12px;width:10px;height:10px;border-radius:50%;background:#628BAE}
.zz-replay-row.is-student::before{background:#B9C3CC}.zz-replay-row.is-student{color:#5F6972}
.zz-replay-t{font-size:14px;color:#6B7680}.zz-replay-why{color:#4B5863}
.zz-replay-eff.is-good{color:#3D5E48}.zz-replay-eff.is-open{color:#12314D}.zz-replay-eff.is-none{color:#6B7680}
.zz-replay-note{font-size:14px;color:#6B7680;margin:8px 0 0}
