.learning-view{padding:34px 38px 56px;max-width:1500px;margin:0 auto;color:#25283a}
.learning-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:22px}
.learning-head h1{margin:4px 0 8px;font-size:30px;letter-spacing:-.04em}.learning-head p{margin:0;color:#858b9b;font-size:13px}
.learning-head-actions{display:flex;gap:8px;align-items:center}.learning-space-note{padding:10px 13px;border:1px solid #e4e0fa;background:#faf9ff;color:#6d64a6;font-size:11px}
.learning-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:18px;align-items:start}.learning-panel{border:1px solid #e7e8ef;background:#fff;border-radius:12px;box-shadow:0 8px 28px rgba(44,39,75,.04)}
.learning-plans{padding:15px}.learning-plans-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.learning-plans-head b{font-size:13px}.learning-plans-head span{font-size:10px;color:#9da1ad}
.learning-plan-list{display:grid;gap:7px}.learning-plan-item{display:block;width:100%;text-align:left;padding:12px;border:1px solid transparent;border-radius:9px;background:#fafbfc;color:#4a5062;cursor:pointer}.learning-plan-item:hover,.learning-plan-item.active{border-color:#d8d2f5;background:#f8f6ff}.learning-plan-item b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.learning-plan-item small{display:block;margin-top:6px;color:#969cab;font-size:10px}.learning-empty{padding:19px 8px;color:#9298a5;font-size:12px;line-height:1.7}
.learning-main{min-width:0}.learning-overview{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-bottom:16px}.learning-metric{padding:14px 15px;border:1px solid #e8e8ef;border-radius:10px;background:#fff}.learning-metric span{display:block;color:#969cab;font-size:10px}.learning-metric strong{display:block;margin-top:8px;color:#373252;font-size:22px;letter-spacing:-.04em}.learning-metric small{display:block;margin-top:4px;color:#a5a9b2;font-size:10px}
.learning-detail{padding:20px}.learning-detail-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:17px}.learning-detail-title h2{margin:0;font-size:20px;letter-spacing:-.03em}.learning-detail-title p{margin:6px 0 0;color:#9298a5;font-size:11px}.learning-detail-actions{display:flex;gap:7px}.learning-tabs{display:flex;gap:4px;border-bottom:1px solid #ececf2;margin:0 -20px 18px;padding:0 20px}.learning-tab{border:0;border-bottom:2px solid transparent;padding:10px 12px;background:transparent;color:#9298a5;font-size:12px;cursor:pointer}.learning-tab.active{border-bottom-color:#6b5bd4;color:#4a3ea2;font-weight:700}
.learning-tab-pane{display:none}.learning-tab-pane.active{display:block}.learning-chart-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(220px,.8fr);gap:14px}.learning-card{border:1px solid #ececf2;border-radius:10px;padding:16px;background:#fdfdff}.learning-card h3{margin:0 0 13px;font-size:13px}.learning-progress{height:9px;border-radius:8px;background:#eeeefa;overflow:hidden}.learning-progress i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#7566d8,#9d8bf0);transition:width .4s ease}.learning-progress-label{display:flex;justify-content:space-between;margin-top:8px;color:#9298a5;font-size:10px}.learning-list{display:grid;gap:8px}.learning-list-row{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid #f0f0f4}.learning-list-row:last-child{border-bottom:0}.learning-list-row b{font-size:11px;color:#404457}.learning-list-row span,.learning-list-row small{display:block;color:#999eab;font-size:10px;line-height:1.5}.learning-tag{display:inline-flex;padding:3px 7px;border-radius:999px;background:#f0eefc;color:#695bc1;font-size:9px;white-space:nowrap}.learning-note-form{display:grid;gap:9px;padding:14px;margin-bottom:15px;border:1px solid #e9e8f3;background:#fbfaff;border-radius:10px}.learning-note-form input,.learning-note-form textarea,.learning-assistant-input{width:100%;border:1px solid #dedfe8;border-radius:7px;padding:9px 10px;background:#fff;outline:none;font:inherit;font-size:12px}.learning-note-form textarea{min-height:110px;resize:vertical}.learning-note-actions{display:flex;justify-content:flex-end;gap:8px}.learning-notes-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.learning-note{padding:13px;border:1px solid #ececf2;border-radius:9px;background:#fff}.learning-note h4{margin:0;font-size:12px}.learning-note p{margin:9px 0 10px;color:#73798b;font-size:11px;line-height:1.7;white-space:pre-wrap}.learning-note footer{display:flex;justify-content:space-between;color:#a1a5b0;font-size:10px}.learning-wrong{display:grid;gap:10px}.learning-wrong-card{padding:13px;border:1px solid #eee8e8;border-left:3px solid #d77971;border-radius:8px;background:#fff}.learning-wrong-card b{font-size:12px;color:#4b4651}.learning-wrong-card p{margin:7px 0;color:#72798a;font-size:11px;line-height:1.6}.learning-wrong-card footer{display:flex;align-items:center;justify-content:space-between;color:#a19aa0;font-size:10px}.learning-assistant{display:grid;grid-template-rows:minmax(180px,1fr) auto;min-height:360px}.learning-chat-log{display:grid;align-content:start;gap:10px;overflow:auto;padding:4px 2px 14px}.learning-message{max-width:82%;padding:10px 12px;border-radius:10px;color:#4e5262;font-size:12px;line-height:1.65;white-space:pre-wrap}.learning-message.user{justify-self:end;background:#f0edff;color:#554c91}.learning-message.assistant{justify-self:start;background:#f5f6f9}.learning-assistant-form{display:flex;gap:8px;border-top:1px solid #ececf2;padding-top:13px}.learning-assistant-input{flex:1}.learning-source{margin-top:12px;color:#8f94a2;font-size:10px}.learning-source a{color:#6354ba}.learning-callout{padding:13px 15px;border-radius:9px;background:#f7f6ff;border:1px solid #e5e1fb;color:#6962a1;font-size:11px;line-height:1.6;margin-bottom:15px}
.learning-error{padding:20px;border:1px solid #f0d3d3;background:#fff8f8;color:#a25e5e;border-radius:10px;font-size:12px}.learning-loading{padding:30px;text-align:center;color:#999eaa;font-size:12px}
@media (max-width:1100px){.learning-overview{grid-template-columns:repeat(3,minmax(0,1fr))}.learning-chart-grid{grid-template-columns:1fr}}
@media (max-width:760px){.learning-view{padding:22px 15px 40px}.learning-head{display:block}.learning-head-actions{margin-top:14px;flex-wrap:wrap}.learning-layout{grid-template-columns:1fr}.learning-plans{order:2}.learning-overview{grid-template-columns:repeat(2,minmax(0,1fr))}.learning-detail{padding:15px}.learning-tabs{margin:0 -15px 15px;padding:0 15px;overflow:auto}.learning-tab{white-space:nowrap;padding:9px 8px}.learning-notes-grid{grid-template-columns:1fr}.learning-detail-head{display:block}.learning-detail-actions{margin-top:11px}.learning-message{max-width:94%}}

/* Learning library and reader refresh: the plan chooser is the landing page;
   plan navigation becomes a compact popover once the learner is inside. */
.learning-view{max-width:1640px;padding:30px 34px 56px;background:#f7f8fb;min-height:calc(100vh - 26px)}
.learning-head{position:relative;z-index:8;align-items:center;margin-bottom:24px}.learning-head-primary{display:flex;align-items:center;gap:14px;min-width:0}.learning-head-primary>div{min-width:0}.learning-head-primary h1{margin:2px 0 7px}.learning-head-primary p{max-width:620px}.learning-back-plans{flex-shrink:0;min-height:40px}.learning-recent-toggle{min-height:40px}.learning-recent-drawer{position:absolute;z-index:12;top:82px;right:34px;width:min(340px,calc(100vw - 38px));padding:14px;background:#fff;border:1px solid #e1e4ec;border-radius:12px;box-shadow:0 18px 50px rgba(42,45,72,.14)}.learning-recent-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 2px 10px;border-bottom:1px solid #eff0f4;color:#3f4353;font-size:12px}.learning-recent-list{display:grid;gap:4px;margin-top:8px}.learning-recent-item{display:flex;align-items:center;gap:10px;width:100%;padding:10px 8px;border:0;border-radius:8px;background:#fff;text-align:left;color:#4d5262;cursor:pointer}.learning-recent-item:hover,.learning-recent-item.active{background:#f5f3ff;color:#4f3fa3}.learning-recent-item b,.learning-recent-item small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.learning-recent-item b{font-size:12px}.learning-recent-item small{margin-top:3px;color:#969bab;font-size:10px}.learning-recent-dot{width:8px;height:8px;border-radius:50%;background:#d5d9e4;flex-shrink:0}.learning-recent-item.active .learning-recent-dot{background:#6c5bd4;box-shadow:0 0 0 4px #ece9ff}
.learning-plan-chooser{max-width:1260px;margin:34px auto 0}.learning-chooser-intro{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin:0 0 24px}.learning-chooser-intro h2{margin:8px 0 10px;color:#2e3242;font-size:30px;letter-spacing:-.04em}.learning-chooser-intro p{max-width:620px;margin:0;color:#858b9b;font-size:13px;line-height:1.8}.learning-chooser-count{display:grid;justify-items:end;flex-shrink:0;color:#8f94a2}.learning-chooser-count strong{color:#5543bd;font-size:34px;letter-spacing:-.06em;line-height:1}.learning-chooser-count span{margin-top:6px;font-size:11px}.learning-plan-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.learning-plan-card{display:grid;grid-template-columns:74px minmax(0,1fr);gap:16px;min-width:0;padding:20px;border:1px solid #e3e5ed;border-radius:14px;background:#fff;box-shadow:0 8px 24px rgba(44,39,75,.035);transition:border-color .18s ease,transform .18s ease}.learning-plan-card:hover{border-color:#cfc6f2;transform:translateY(-2px)}.learning-plan-card-mark{display:grid;place-items:center;width:74px;height:74px;border-radius:16px;background:#f0edff;color:#6350c0;font-size:28px;font-weight:700}.learning-plan-card-body{min-width:0}.learning-plan-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.learning-plan-card h2{margin:0;overflow-wrap:anywhere;color:#353949;font-size:17px;line-height:1.45}.learning-plan-card p{margin:6px 0 0;color:#9398a6;font-size:11px;line-height:1.6;overflow-wrap:anywhere}.learning-plan-status{padding:4px 7px;border-radius:999px;background:#edf8f1;color:#38815d;font-size:9px;white-space:nowrap}.learning-plan-card-stats{display:flex;flex-wrap:wrap;gap:8px 14px;margin-top:16px;color:#9298a5;font-size:10px}.learning-plan-card-stats b{color:#535968;font-size:12px}.learning-plan-card-progress{height:6px;margin:13px 0 15px;border-radius:99px;background:#eff0f5;overflow:hidden}.learning-plan-card-progress i{display:block;height:100%;border-radius:inherit;background:#7566d8;transition:width .4s ease}.learning-plan-card .primary-btn{min-height:38px;padding:8px 13px}.learning-empty-state{display:grid;justify-items:center;text-align:center;padding:74px 22px;border:1px dashed #d9dce6;border-radius:14px;background:#fff}.learning-empty-state h3{margin:18px 0 8px;color:#373b4b;font-size:18px}.learning-empty-state p{margin:0 0 20px;color:#8b91a0;font-size:12px}.learning-empty-orbit{display:grid;place-items:center;width:58px;height:58px;border:1px solid #d4cff1;border-radius:50%;color:#7161cb;font-size:26px;background:#f7f5ff}
.learning-detail{border-radius:14px;box-shadow:0 8px 28px rgba(44,39,75,.035)}.learning-detail-head{align-items:center}.learning-detail-actions{flex-wrap:wrap}.learning-main{min-width:0}
.learning-materials{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.learning-material-card{display:grid;grid-template-columns:minmax(165px,.48fr) minmax(0,1fr);gap:18px;padding:14px;overflow:hidden;border-radius:12px;background:#fff}.learning-material-thumb{position:relative;display:grid;place-items:center;align-self:start;aspect-ratio:16/9;min-width:0;overflow:hidden;border:1px solid #e4e6ed;border-radius:8px;background:#eef0f4}.learning-material-thumb svg{display:block;width:100%;height:100%;object-fit:contain}.learning-thumb-loading,.learning-thumb-error{padding:10px;color:#9298a5;font-size:10px;text-align:center}.learning-thumb-error{color:#a25e5e}.learning-material-card-body{min-width:0;padding:3px 4px 4px 0}.learning-material-card h3{margin:8px 0 7px;font-size:15px}.learning-material-card p{margin:0;line-height:1.6}.learning-material-progress{height:5px;margin-top:14px;border-radius:99px;background:#eff0f5;overflow:hidden}.learning-material-progress i{display:block;height:100%;border-radius:inherit;background:#8a7be1}.learning-material-actions{margin-top:15px}.learning-material-actions .text-btn{margin-left:auto}
.learning-reader{padding:0 2px}.learning-reader-toolbar{min-height:50px;padding:0 0 13px;margin-bottom:14px;border-bottom:1px solid #ececf2}.learning-reader-title{display:grid;min-width:0;flex:1;gap:2px}.learning-reader-title strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#363a4a;font-size:15px}.learning-reader-toolbar-actions{display:flex;gap:7px;flex-wrap:wrap}.learning-reader-body{grid-template-columns:184px minmax(0,1fr);gap:16px}.learning-page-nav{max-height:calc(100vh - 330px);padding:4px 6px 4px 0}.learning-page-nav button{display:grid;grid-template-columns:28px minmax(0,1fr);gap:7px;align-items:start;width:100%;padding:9px 9px;border:1px solid transparent;border-radius:8px;color:#8b90a0}.learning-page-nav button span{color:#b0b4bf;font-size:10px;font-variant-numeric:tabular-nums}.learning-page-nav button b{overflow:hidden;font-size:11px;font-weight:500;line-height:1.5}.learning-page-nav button:hover{background:#fafaff}.learning-page-nav button.active{border-color:#ddd7f6;background:#f1efff;color:#5a49b3}.learning-page-nav button.active span{color:#7161cb}.learning-reader-stage-wrap{min-width:0;padding:12px;border:1px solid #e1e4ec;border-radius:10px;background:#eef0f4}.learning-reader-stage-head{display:flex;justify-content:space-between;gap:10px;padding:0 2px 10px;color:#8d93a0;font-size:10px}.learning-reader-stage{border:1px solid #dce0e8;border-radius:7px;background:#fff;box-shadow:0 14px 35px rgba(37,41,59,.11);aspect-ratio:16/9}.learning-reader-stage>svg{display:block;width:100%;height:100%;background:#fff}.learning-reader-footer{justify-content:space-between;margin-top:14px}.learning-reader-footer>span{flex:1;text-align:center}.learning-footnote{line-height:1.7}
@media (max-width:980px){.learning-materials{grid-template-columns:1fr}.learning-plan-grid{grid-template-columns:1fr}.learning-reader-body{grid-template-columns:150px minmax(0,1fr)}}
@media (max-width:760px){.learning-view{padding:22px 15px 40px}.learning-head-primary{align-items:flex-start}.learning-head-actions{margin-top:13px}.learning-recent-drawer{top:136px;right:15px}.learning-chooser-intro{align-items:flex-start;flex-direction:column;gap:10px}.learning-chooser-count{justify-items:start}.learning-chooser-intro h2{font-size:25px}.learning-plan-card{grid-template-columns:52px minmax(0,1fr);gap:12px;padding:15px}.learning-plan-card-mark{width:52px;height:52px;border-radius:12px;font-size:21px}.learning-plan-card-top{display:block}.learning-plan-status{display:inline-flex;margin-top:9px}.learning-reader-toolbar{align-items:flex-start;flex-wrap:wrap}.learning-reader-title{order:3;flex-basis:100%}.learning-reader-toolbar-actions{margin-left:auto}.learning-reader-body{display:flex;flex-direction:column;gap:10px}.learning-page-nav{display:flex;gap:6px;max-height:none;overflow-x:auto;padding:0 0 5px}.learning-page-nav button{display:flex;align-items:center;gap:7px;flex:0 0 auto;width:126px;padding:8px}.learning-page-nav button b{white-space:nowrap;text-overflow:ellipsis}.learning-reader-stage-wrap{padding:8px}.learning-reader-footer{gap:7px}.learning-reader-footer>span{font-size:10px}.learning-reader-footer button{padding:8px 10px}}
@media (prefers-reduced-motion:reduce){.learning-plan-card,.learning-progress i,.learning-plan-card-progress i{transition:none}}

/* Study workspace: keep reading, practice and evidence in the same plan. */
.learning-view{padding:28px 30px 48px;max-width:1600px}
.learning-head{align-items:center;flex-wrap:wrap}.learning-head h1{font-size:27px}.learning-head-actions{flex-shrink:0;flex-wrap:wrap}.learning-head-actions button,.learning-detail-actions button{white-space:nowrap}
.learning-layout{grid-template-columns:220px minmax(0,1fr)}.learning-plan-item b{white-space:normal;line-height:1.5}.learning-detail-head{flex-wrap:wrap}.learning-detail-title{min-width:0}.learning-detail-title h2{overflow-wrap:anywhere}
.learning-overview{grid-template-columns:repeat(4,minmax(0,1fr))}.learning-metric{min-width:0}.learning-metric small{line-height:1.5}.learning-metric span{font-size:11px}.learning-metric strong{font-size:24px}
.learning-welcome{padding:42px 26px;background:#fff;border:1px solid #e7e8ef;border-radius:12px}.learning-welcome h2{margin:0 0 12px;font-size:22px}.learning-welcome p{color:#858b9b;font-size:13px;line-height:1.8;margin-bottom:22px}
.learning-next{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:20px 22px;margin-bottom:18px;background:#f7f6ff;border:1px solid #e6e1fa;border-radius:10px}.learning-next small{color:#8d83b1;font-size:11px}.learning-next h3{margin:7px 0;font-size:18px;color:#39304e}.learning-next p{margin:0;color:#8a8499;font-size:12px}.learning-next button{flex-shrink:0;white-space:nowrap}
.learning-footnote{color:#969baa;font-size:11px;line-height:1.7;margin:16px 0 0}.learning-materials{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.learning-material-card{border:1px solid #e7e8ef;border-radius:10px;padding:20px;min-width:0}.learning-material-kind{font-size:10px;color:#8d81b7;font-weight:600;letter-spacing:.05em}.learning-material-card h3{font-size:16px;line-height:1.6;margin:8px 0;overflow-wrap:anywhere}.learning-material-card p{font-size:12px;color:#9298a5}.learning-material-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:18px}
.learning-reader{min-width:0}.learning-reader-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:12px}.learning-reader-toolbar strong{flex:1;min-width:100px;font-size:13px;line-height:1.6;overflow-wrap:anywhere}.learning-reader-toolbar button{white-space:nowrap}.learning-reader-body{display:grid;grid-template-columns:150px minmax(0,1fr);gap:12px;align-items:start}.learning-page-nav{display:grid;align-content:start;gap:4px;max-height:500px;overflow:auto;padding-right:4px}.learning-page-nav button{border:0;background:transparent;padding:10px 8px;border-radius:6px;text-align:left;font-size:11px;line-height:1.6;color:#8b90a0;overflow-wrap:anywhere}.learning-page-nav button.active{background:#f0ecff;color:#6250b5}.learning-reader-stage{border:1px solid #e6e8ef;aspect-ratio:16/9;background:#f5f6f9;overflow:hidden;display:grid;place-items:center;border-radius:6px}.learning-reader-stage>svg{display:block;width:100%;height:100%}.learning-reader-stage>.learning-error{max-width:100%;margin:12px}.learning-reader-footer{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:16px}.learning-reader-footer>span{font-size:11px;color:#8d94a1}
.learning-practice-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:20px}.learning-practice-top>div{flex:1;min-width:180px}.learning-practice-top h3{margin:0 0 7px;font-size:17px}.learning-practice-top p{font-size:12px;color:#9499a7;margin:0}.learning-filter{display:flex;gap:6px;margin:0 0 14px}.learning-filter button{border:1px solid #e6e6ef;border-radius:7px;background:#fff;color:#9495a7;font-size:12px;padding:8px 12px}.learning-filter button.active{border-color:#cfc6ed;background:#f7f4ff;color:#6654b1}.learning-session-history{margin-top:24px}.learning-session-history>h3{font-size:14px}.learning-history-row{display:flex;justify-content:space-between;gap:12px;width:100%;border:0;border-bottom:1px solid #eeeef4;background:transparent;text-align:left;padding:14px 4px;font-size:12px;color:#7c8092}.learning-history-row:hover{background:#faf9ff}
.learning-quiz{max-width:820px;margin:0 auto;padding:4px 0 12px}.learning-quiz-head{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#7c729e;margin-bottom:24px}.learning-question-source{display:block;color:#9c9dab;font-size:11px;line-height:1.6}.learning-quiz h3{font-size:20px;line-height:1.7;margin:12px 0 22px;font-weight:600;overflow-wrap:anywhere}.learning-answer-options{display:grid;gap:10px;border:0;padding:0;margin:0}.learning-answer-option{display:flex;align-items:baseline;gap:12px;padding:15px 17px;border:1px solid #e4e5ee;border-radius:9px;cursor:pointer;font-size:14px;color:#5d6274;line-height:1.6}.learning-answer-option:has(input:checked){background:#f8f5ff;border-color:#bdb0e6}.learning-answer-option.correct{background:#eff9f3;border-color:#9dceb1}.learning-answer-option.incorrect{background:#fff4f2;border-color:#dfb5ac}.learning-answer-option input{accent-color:#7962c2}.learning-answer-options[disabled] label{cursor:default}.learning-answer-feedback{margin-top:18px;padding:17px 18px;background:#f7f7fb;border-radius:9px;border:1px solid #e6e4ef;font-size:13px;line-height:1.8}.learning-answer-feedback.correct{background:#f2faf5;border-color:#cfe7d8}.learning-answer-feedback.incorrect{background:#fff9f6;border-color:#f1dfd4}.learning-answer-feedback p{margin:7px 0 0;white-space:pre-wrap}.learning-answer-feedback small{display:block;margin-top:8px;color:#8c929e}.learning-quiz-controls{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap;margin-top:22px}.learning-quiz-controls>button:first-child{margin-right:auto}.learning-quiz-result{display:flex;flex-direction:column;align-items:center;gap:13px;padding:25px 16px 36px;text-align:center}.learning-result-mark{width:50px;height:50px;display:grid;place-items:center;border-radius:50%;background:#eff8f2;color:#63a77e;font-size:26px}.learning-quiz-result h3{font-size:20px;margin:2px}.learning-quiz-result>strong{font-size:42px;color:#5f4c9f}.learning-quiz-result>strong>small{font-size:14px;color:#a29bae;font-weight:400}.learning-quiz-result p{font-size:13px;color:#9599a7;margin:0 0 7px}
.learning-note-form h3{margin:0 0 5px;font-size:14px}.learning-note-anchor{display:flex;gap:8px;flex-wrap:wrap}.learning-note-anchor select{flex:1;min-width:120px;max-width:100%;border:1px solid #dedfe8;border-radius:7px;padding:8px;font-size:12px;background:#fff}.learning-note-anchor input{width:145px}.learning-note-status{margin-right:auto;align-self:center;color:#a096b0;font-size:11px}.learning-note p{overflow-wrap:anywhere}.learning-note .text-btn{text-align:left}.learning-note footer>span:last-child{display:flex;gap:10px}.learning-note-actions{flex-wrap:wrap}
.learning-assistant-context{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px 14px;margin-bottom:15px;background:#f8f7fc;border:1px solid #ece8f6;border-radius:8px}.learning-assistant-context small{font-size:10px;color:#a19aaa}.learning-assistant-context b{font-size:12px;color:#76668c;overflow-wrap:anywhere}.learning-assistant-context button{margin-left:auto}.learning-chat-log{max-height:520px}.learning-message{overflow-wrap:anywhere}.learning-source{display:flex;flex-direction:column;gap:5px;margin-top:12px;border-top:1px solid #e2dfec;padding-top:8px;white-space:normal}.learning-source button{text-align:left;white-space:normal;line-height:1.6}.learning-assistant-form{align-items:center}.learning-assistant-form input{min-width:0}
.learning-dialog{width:min(560px,calc(100vw - 28px));max-height:85vh;overflow:auto;border:1px solid #e4dfef;border-radius:14px;padding:26px;color:#353346;box-shadow:0 24px 90px #1c143738}.learning-dialog::backdrop{background:#211a394d;backdrop-filter:blur(3px)}.learning-dialog h2{font-size:20px;margin:0 0 20px}.learning-dialog p{font-size:12px;line-height:1.8;color:#9390a0}.learning-dialog label{display:grid;gap:8px;font-size:12px;color:#6e687f;margin:15px 0}.learning-dialog input:not([type=checkbox]),.learning-dialog textarea,.learning-dialog select{width:100%;padding:11px;border:1px solid #ddd9e8;border-radius:7px;font:inherit;background:#fff;color:#4d485f}.learning-dialog textarea{min-height:85px;resize:vertical}.learning-dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:20px}.learning-dialog .learning-form-error{color:#ad615b;margin:10px 0}.learning-material-picker{border:1px solid #e6e2ed;border-radius:8px;max-height:240px;overflow:auto;margin:18px 0 0;padding:5px 13px}.learning-material-picker legend{font-size:11px;color:#9a90a7;padding:0 5px}.learning-material-picker label{display:flex;align-items:center;gap:10px}.learning-material-picker input{accent-color:#7962c2}.learning-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.learning-current-material{display:grid;gap:7px;margin:18px 0 2px;padding:15px 16px;border:1px solid #e4def6;border-radius:9px;background:linear-gradient(135deg,#faf9ff,#f5fbf8)}.learning-current-material span{color:#786cb3;font-size:10px;font-weight:700;letter-spacing:.06em}.learning-current-material strong{color:#40365a;font-size:14px;line-height:1.5;overflow-wrap:anywhere}.learning-current-material small{color:#8f8a9d;font-size:11px;line-height:1.6}
.learning-tabs [role=tab]:focus-visible,.learning-answer-option:has(input:focus-visible),.learning-page-nav button:focus-visible{outline:2px solid #8e7acb;outline-offset:3px}
@media(min-width:2000px){.learning-view{padding-top:36px}.learning-layout{grid-template-columns:240px minmax(0,1fr)}}
@media(max-width:1250px){.learning-layout{grid-template-columns:180px minmax(0,1fr)}.learning-overview{grid-template-columns:repeat(2,minmax(0,1fr))}.learning-materials{grid-template-columns:1fr}.learning-reader-body{grid-template-columns:110px minmax(0,1fr)}}
@media(max-width:950px){.learning-layout{grid-template-columns:1fr}.learning-plans{order:0}.learning-plan-list{display:flex;overflow:auto;max-width:100%}.learning-plan-item{min-width:190px;max-width:240px}.learning-plans-head{margin-bottom:7px}.learning-next{flex-wrap:wrap}.learning-view{padding:22px 20px 40px}}
@media(max-width:580px){.learning-view{padding:20px 12px 36px}.learning-head h1{font-size:24px}.learning-detail{padding:14px}.learning-tabs{padding:0 14px;margin:0 -14px 16px}.learning-next{padding:16px}.learning-next h3{font-size:16px}.learning-metric{padding:12px}.learning-metric strong{font-size:22px}.learning-reader-body{display:block}.learning-page-nav{display:flex;max-height:none;overflow:auto;padding:0 0 10px}.learning-page-nav button{white-space:nowrap;flex-shrink:0;max-width:160px;overflow:hidden;text-overflow:ellipsis}.learning-quiz h3{font-size:17px}.learning-answer-option{font-size:13px;padding:12px}.learning-history-row{flex-direction:column;gap:5px}.learning-note-anchor input{width:100%}.learning-dialog{padding:20px}.learning-reader-toolbar strong{flex-basis:100%;order:-1}}

/* Habit loop: turn the overview into a calm daily decision surface. */
.learning-kicker{display:block;color:#786cb3;font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.learning-today{background:linear-gradient(135deg,#f7f5ff 0%,#fbfbff 62%,#f4faf7 100%);border-color:#dfdaf7;box-shadow:0 12px 28px rgba(83,68,145,.06)}
.learning-today h3{margin:8px 0 7px;font-size:20px;color:#342b4b;letter-spacing:-.03em}
.learning-today p{margin:0 0 7px;color:#756d83;line-height:1.7}
.learning-today small{color:#9b95a7;font-size:11px}
.learning-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:14px}
.learning-card-head h3{margin:6px 0 0}
.learning-streak-badge{display:inline-flex;align-items:center;min-height:28px;padding:0 9px;border-radius:999px;background:#eef8f2;color:#4c8b65;font-size:10px;white-space:nowrap}
.learning-habit-card{min-width:0}
.learning-habit-chart{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));align-items:end;gap:8px;height:98px;padding:8px 4px 0;border-bottom:1px solid #eceaf2}
.learning-habit-day{display:grid;grid-template-rows:1fr auto;align-items:end;gap:7px;height:100%;min-width:0;text-align:center}
.learning-habit-bar{display:flex;align-items:end;justify-content:center;height:100%;min-height:18px}
.learning-habit-bar i{display:block;width:100%;max-width:20px;min-height:5px;border-radius:5px 5px 2px 2px;background:linear-gradient(180deg,#8f80df,#6859bf);transition:height .25s ease}
.learning-habit-day small{color:#9a9daa;font-size:9px;white-space:nowrap}
.learning-habit-meta{display:flex;justify-content:space-between;gap:8px;margin-top:12px;color:#969baa;font-size:10px;line-height:1.5;flex-wrap:wrap}
.learning-card-note{margin:0;color:#9599a8;font-size:12px;line-height:1.7}
.learning-loop-card{background:#faf9ff;border-color:#ebe7f6}
.learning-loop-card h3{margin:8px 0 9px;color:#473b64;font-size:16px;line-height:1.5}
.learning-loop-card p{margin:0 0 12px;color:#7f8192;font-size:12px;line-height:1.75}
.learning-secondary-grid{margin-top:14px}
.learning-secondary-grid .learning-card{min-height:170px}
.learning-card .text-btn{padding-left:0;padding-right:0}
@media(max-width:580px){.learning-today h3{font-size:18px}.learning-habit-meta{display:grid;grid-template-columns:1fr 1fr}.learning-habit-meta span:last-child{grid-column:1/-1}.learning-secondary-grid{grid-template-columns:1fr}.learning-habit-chart{gap:5px}}
@media(prefers-reduced-motion:reduce){.learning-habit-bar i{transition:none}}

/* Spaced review and seven-day reflection cards. */
.learning-weekly-card{background:linear-gradient(135deg,#fff 0%,#fbfaff 100%);border-color:#e8e3f4}
.learning-weekly-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:2px 0 14px}
.learning-weekly-grid>div{padding:10px 8px;border:1px solid #eeeaf7;border-radius:8px;background:#fff}
.learning-weekly-grid strong{display:block;color:#514287;font-size:18px;letter-spacing:-.03em}
.learning-weekly-grid small{display:block;margin-top:3px;color:#9b98a8;font-size:9px}
.learning-wrong-card.is-due{border-left-color:#c88b45;background:#fffdf8}
.learning-wrong-card em{font-style:normal;color:#b5762d;font-weight:700}
@media(max-width:580px){.learning-weekly-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
