.learning-mode-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:0 0 24px;padding:16px 18px;border:1px solid #485044;border-radius:14px;background:#18201de8;color:#eef1eb;position:relative;z-index:2}.learning-mode-bar p{margin:0;font:14px/1.6 system-ui,sans-serif;color:#bcc9bd}.learning-mode-switch{display:grid;grid-template-columns:1fr 1fr;position:relative;isolation:isolate;background:#0d1512;border:1px solid #53614e;border-radius:30px;padding:4px;min-width:268px}.learning-mode-switch::before{content:'';position:absolute;z-index:-1;top:4px;bottom:4px;left:4px;width:calc(50% - 4px);border-radius:24px;background:#ddc184;transition:transform .2s}.learning-mode-switch[data-selected=system]::before{transform:translateX(100%)}.learning-mode-switch label{position:relative;display:flex;align-items:center;justify-content:center;min-height:42px;padding:7px 18px;margin:0;cursor:pointer;color:#c9d4ca;font:600 15px/1.5 system-ui,sans-serif;white-space:nowrap}.learning-mode-switch label:has(input:checked){color:#172119}.learning-mode-switch input{position:absolute;width:1px;height:1px;opacity:0;margin:0}.learning-mode-switch label:has(input:focus-visible){outline:2px solid #faf3ce;outline-offset:3px;border-radius:25px}.learning-mode-switch:has(input:disabled){opacity:.65}.learning-mode-status{flex-basis:100%;color:#edcf91!important}.learning-subjects{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 20px;font-size:14px}.learning-subjects select{padding:9px 12px;border:1px solid #53614e;border-radius:8px;background:#18201d;color:#eef1eb;min-height:44px}.subject-readiness{border:1px solid #485044;border-radius:14px;padding:26px;background:#1a2520;line-height:1.8;margin:20px 0}.subject-readiness h2{font-size:26px;margin:0 0 16px}.subject-readiness a{display:inline-block;border:1px solid #ddc184;border-radius:9px;padding:9px 16px;color:#ddc184;margin-top:12px}.subject-readiness small{color:#b7c5b8}.learning-mode-bar [hidden],.subject-readiness[hidden]{display:none!important}body[data-system-ready=false] .hero,body[data-system-ready=false] nav[aria-label="学习导航"],body[data-system-ready=false] #content,body[data-system-ready=false] #exercise,body[data-system-ready=false] main>footer,body[data-system-ready=false] #status{display:none!important}@media(max-width:600px){.learning-mode-bar{padding:14px;gap:10px}.learning-mode-switch{width:100%;min-width:0}.learning-mode-switch label{padding:7px 10px}.subject-readiness{padding:20px}}@media(prefers-reduced-motion:reduce){.learning-mode-switch::before{transition:none}}

/* Keep cloud-save feedback away from the mode controls. */
body:has(.learning-mode-bar) #sync-status-r0 { top:auto!important; bottom:88px; right:16px!important; max-width:calc(100vw - 32px)!important; }
