body:has(.library-course-shell)>footer{display:none}@media (width>=1024px){#course-ref-nav{right:max(1rem,50vw - 35rem)}}.course-sidebar::-webkit-scrollbar{width:6px}.course-sidebar::-webkit-scrollbar-track{background:0 0}.course-sidebar::-webkit-scrollbar-thumb{background-color:#cbd5e1d9;border-radius:3px}.course-sidebar::-webkit-scrollbar-thumb:hover{background-color:#94a3b8f2}.dark .course-sidebar::-webkit-scrollbar-thumb{background-color:rgb(var(--color-line) / .85)}.dark .course-sidebar::-webkit-scrollbar-thumb:hover{background-color:rgb(var(--color-content-muted) / .95)}.library-course-shell .chapter-content{color:rgb(var(--color-content-body));line-height:1.7}.library-course-shell .chapter-content h1,.library-course-shell .chapter-content h2,.library-course-shell .chapter-content h3,.library-course-shell .chapter-content h4{color:rgb(var(--color-content));margin-top:2rem;margin-bottom:1rem;font-weight:600}.library-course-shell .chapter-content p{color:rgb(var(--color-content-body));margin-bottom:1.5rem}.library-course-shell .chapter-content ul{margin-bottom:1.5rem;padding-left:1.5rem;list-style-type:disc}.library-course-shell .chapter-content ol{margin-bottom:1.5rem;padding-left:1.5rem;list-style-type:decimal}.library-course-shell .chapter-content li{color:rgb(var(--color-content-body));margin-bottom:.5rem;display:list-item}.library-course-shell .chapter-content ul ul{list-style-type:circle}.library-course-shell .chapter-content ol ol{list-style-type:lower-alpha}.library-course-shell .chapter-content ol ol ol{list-style-type:lower-roman}.library-course-shell .chapter-content code{background-color:rgb(var(--color-chip));color:rgb(var(--color-content));border-radius:.25rem;padding:.25rem .5rem;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:.875rem}.library-course-shell .chapter-content pre{color:#f8fafc;background-color:#0f172a;border-radius:.5rem;margin:1.5rem 0;padding:1rem;overflow-x:auto}.library-course-shell .chapter-content pre code{color:inherit;background-color:#0000;padding:0}.library-course-shell .chapter-content table{border-collapse:collapse;width:100%;margin:1rem 0}.library-course-shell .chapter-content table th,.library-course-shell .chapter-content table td{border-bottom:1px solid rgb(var(--color-line-soft));text-align:left;padding:.5rem .75rem}.library-course-shell .chapter-content table thead th{border-bottom:2px solid rgb(var(--color-line));color:rgb(var(--color-content));font-weight:600}.library-course-shell .math-display{text-align:center;margin:1.5rem 0}.library-course-shell .math-inline{vertical-align:middle;display:inline-block}.library-course-shell .math-eqref{display:none}.library-course-shell .latex-error{color:#b91c1c;background-color:#fee2e2;border:1px solid #fca5a5;border-radius:.25rem;padding:.5rem}.dark .library-course-shell .latex-error{color:#fca5a5;background-color:#7f1d1d4d;border-color:#f8717180}.interactive-block{background:rgb(var(--color-surface));border:2px solid rgb(var(--color-line));border-radius:.75rem;margin:2rem 0;padding:1.5rem;box-shadow:0 1px 3px #00000014}.interactive-block .block-header{margin-bottom:1rem}.interactive-block .block-content{margin-top:1rem}.quiz-block{background:#f0fdf4;border-color:#10b981}.simulation-block{background:#faf5ff;border-color:#8b5cf6}.code-editor-block{background:#eef2ff;border-color:#6366f1}.diagram-block{background:#ecfeff;border-color:#06b6d4}.dark .quiz-block{background:#064e3b33;border-color:#10b98180}.dark .simulation-block{background:#4c1d9533;border-color:#8b5cf680}.dark .code-editor-block{background:#312e8133;border-color:#6366f180}.dark .diagram-block{background:#164e6333;border-color:#06b6d480}.content-quiz-block{background:#f8faff;border:1.5px solid #bfdbfe;border-radius:12px;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;overflow:hidden}.cq-header{cursor:pointer;-webkit-user-select:none;user-select:none;background:#eff6ff;border-bottom:1px solid #bfdbfe;justify-content:space-between;align-items:center;padding:12px 16px;transition:background .15s;display:flex}.cq-header:hover{background:#dbeafe}.cq-icon-wrap{background:#dbeafe;border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;width:28px;height:28px;display:flex}.cq-title{color:#1e40af;margin:0;font-size:.9375rem;font-weight:700}.cq-count{color:#3b82f6;background:#dbeafe;border-radius:99px;padding:2px 8px;font-size:.75rem;font-weight:600}.cq-badge{border-radius:99px;padding:2px 10px;font-size:.75rem;font-weight:700}.cq-badge.pass{color:#065f46;background:#d1fae5}.cq-badge.fail{color:#991b1b;background:#fee2e2}.cq-badge.hidden{display:none}.cq-chevron{flex-shrink:0}.cq-chevron.open{transform:rotate(180deg)}.cq-prev-attempt{color:#1d4ed8;cursor:pointer;-webkit-user-select:none;user-select:none;background:#eff6ff;border-bottom:1px solid #bfdbfe;align-items:center;gap:8px;padding:8px 16px;font-size:.8125rem;transition:background .15s;display:flex}.cq-prev-attempt:hover{background:#dbeafe}.cq-lazy-wrap.hidden{display:none}@keyframes cq-spin{to{transform:rotate(360deg)}}.cq-loading{color:#64748b;justify-content:center;align-items:center;gap:10px;padding:28px 16px;font-size:.875rem;display:flex}.cq-spinner{border:2px solid #bfdbfe;border-top-color:#3b82f6;border-radius:50%;flex-shrink:0;width:18px;height:18px;animation:.7s linear infinite cq-spin}.cq-load-error{color:#dc2626;text-align:center;padding:16px;font-size:.875rem}.cq-login-gate{text-align:center;flex-direction:column;align-items:center;gap:10px;padding:28px 20px;display:flex}.cq-login-gate-title{color:#1e40af;margin:0;font-size:.9375rem;font-weight:700}.cq-login-gate-text{color:#64748b;max-width:28rem;margin:0;font-size:.8125rem;line-height:1.5}.cq-login-gate-actions{flex-wrap:wrap;justify-content:center;gap:8px;margin-top:6px;display:flex}.cq-login-btn{color:#fff;background:#2563eb;border-radius:8px;justify-content:center;align-items:center;padding:8px 16px;font-size:.8125rem;font-weight:600;text-decoration:none;transition:background .15s;display:inline-flex}.cq-login-btn:hover{background:#1d4ed8}.cq-signup-btn{color:#1d4ed8;background:#fff;border:1px solid #bfdbfe;border-radius:8px;justify-content:center;align-items:center;padding:8px 16px;font-size:.8125rem;font-weight:600;text-decoration:none;transition:background .15s;display:inline-flex}.cq-signup-btn:hover{background:#eff6ff}.cq-questions{flex-direction:column;gap:16px;padding:16px;display:flex}.cq-question{background:#fff;border:1px solid #e2e8f0;border-radius:12px;overflow:hidden;box-shadow:0 1px 3px #0000000a}.cq-q-number{text-transform:uppercase;letter-spacing:.07em;color:#94a3b8;background:#f8fafc;border-bottom:1px solid #f1f5f9;padding:7px 14px;font-size:.7rem;font-weight:700}.cq-q-body{padding:14px 16px}.cq-q-text{color:#1e293b;margin-bottom:12px;font-family:Latin Modern Roman,Computer Modern,Times New Roman,serif;font-size:.9375rem;line-height:1.7}.cq-q-text p{margin:0 0 .5em}.cq-hint{color:var(--color-content-muted,#6b7280);align-items:center;gap:.4rem;margin:0 0 .75rem;font-size:.8125rem;font-weight:500;display:flex}.cq-hint:before{content:"";background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%236b7280' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-size:contain;flex-shrink:0;width:.875rem;height:.875rem;display:inline-block}.cq-options{background:#fff;border:2px solid #e2e8f0;border-radius:.75rem;overflow:hidden}.cq-option{cursor:pointer;-webkit-user-select:none;user-select:none;background:0 0;border:0;border-bottom:1px solid #e2e8f0;border-radius:0;flex-direction:row;align-items:center;min-height:0;padding:.5rem .75rem;transition:background-color .15s;display:flex;position:relative;overflow:hidden}.cq-option:last-child{border-bottom:0}.cq-option:before{content:"";background:0 0;width:4px;transition:background-color .15s;position:absolute;top:0;bottom:0;left:0}.cq-option:hover{background-color:#f8fafc}.cq-option.selected{background:#eff6ff}.cq-option.selected:before{background:#3b82f6}.cq-option.correct{background:#f0fdf4}.cq-option.correct:before{background:#10b981}.cq-option.wrong{background:#fef2f2}.cq-option.wrong:before{background:#ef4444}.cq-radio,.cq-checkbox{display:none}.cq-option-letter{color:#475569;background:#eef2f7;border-radius:.5rem;flex-shrink:0;justify-content:center;align-items:center;width:1.75rem;height:1.75rem;margin-right:.875rem;font-size:.8125rem;font-weight:600;line-height:1;transition:all .2s;display:flex}.cq-option.selected .cq-option-letter{color:#fff;background:#3b82f6}.cq-option.correct .cq-option-letter{color:#fff;background:#10b981}.cq-option.wrong .cq-option-letter{color:#fff;background:#ef4444}.cq-option-text{text-align:left;color:#334155;flex-wrap:wrap;flex:1;align-items:center;min-height:1.5rem;font-family:Latin Modern Roman,Latin Modern Math,Computer Modern,Times New Roman,serif;font-size:.9rem;line-height:1.5;display:flex}.cq-option-text p{margin:0}.cq-fitb-wrap{color:#1e293b;font-family:Latin Modern Roman,Computer Modern,Times New Roman,serif;font-size:.9375rem}.cq-fitb-prose{line-height:1.75}.cq-blank-placeholder-marker{text-align:center;color:#3b82f6;vertical-align:baseline;background-color:#f1f5f9;border-bottom:2px solid #cbd5e1;border-radius:.25rem .25rem 0 0;min-width:4rem;margin:0 .25rem;padding:0 .5rem;font-weight:700;display:inline-block}.cq-fill-blanks-list .fill-blank-item{background-color:#fff;border:1px solid #e2e8f0;border-radius:.5rem;flex-direction:column;transition:border-color .2s;display:flex;position:relative}.cq-fill-blanks-list .fill-blank-item:focus-within{border-color:#94a3b8}.cq-fill-blanks-list .fill-blank-meta{background-color:#f8fafc;border-bottom:1px solid #e2e8f0;border-radius:.5rem .5rem 0 0;flex-direction:row;align-items:center;gap:.375rem;padding:.3rem .625rem;display:flex}.cq-fill-blanks-list .fill-blank-badges{align-items:center;gap:.25rem;display:flex}.cq-fill-blanks-list .fill-blank-label{color:#334155;white-space:nowrap;text-transform:uppercase;letter-spacing:.04em;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:.6875rem;font-weight:700}.cq-fill-blanks-list .fill-blank-badges span{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.cq-mode-badge{color:#64748b;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:.25rem;padding:.125rem .375rem;font-size:9px;font-weight:700}.cq-fill-blanks-list .fill-blank-divider{display:none!important}.cq-fill-blanks-list .fill-blank-math{box-sizing:border-box;--text-font-family:"Latin Modern Roman", "Times New Roman", serif;background:#fff;border:none;border-radius:0;width:100%;min-height:3rem;padding:.5rem .75rem;font-size:1.25rem;display:block}.cq-fill-blanks-list .fill-blank-math::part(placeholder){font-synthesis:none;color:#94a3b8;font-family:Latin Modern Roman,Times New Roman,serif;font-size:.85em;font-style:normal}.cq-fill-blanks-list .fill-blank-math:focus,.cq-fill-blanks-list .fill-blank-math:focus-within{outline:none}.cq-fill-blanks-list .fill-blank-math.correct{box-shadow:none;border-color:#10b981}.cq-fill-blanks-list .fill-blank-math.wrong{box-shadow:none;border-color:#ef4444}.cq-fill-blanks-list .cq-blank{box-sizing:border-box;color:#1e293b;background:0 0;border:0;outline:none;width:100%;min-height:2.25rem;padding:.4rem .625rem;font-family:ui-monospace,monospace;font-size:.875rem;display:block}@media (width>=768px){.cq-fill-blanks-list .cq-blank{flex:1;width:auto;min-width:0}}.cq-fill-blanks-list .cq-blank:focus{outline:none}.cq-fill-blanks-list .cq-blank.correct{color:#059669}.cq-fill-blanks-list .cq-blank.wrong{color:#dc2626}.fill-blank-badges [data-tip]{cursor:help;position:relative}.fill-blank-badges [data-tip]:before{content:attr(data-tip);color:#f1f5f9;white-space:normal;text-align:left;pointer-events:none;opacity:0;z-index:100;background:#1e293b;border-radius:.3rem;width:max-content;max-width:13rem;padding:.3rem .55rem;font-size:.6875rem;font-weight:500;line-height:1.45;transition:opacity .15s;position:absolute;bottom:calc(100% + 5px);left:0;transform:none;box-shadow:0 2px 8px #0000002e}.fill-blank-badges [data-tip]:after{content:"";pointer-events:none;opacity:0;z-index:100;border:4px solid #0000;border-top-color:#1e293b;transition:opacity .15s;position:absolute;bottom:calc(100% + 1px);left:.5rem;transform:none}.fill-blank-badges [data-tip]:hover:before,.fill-blank-badges [data-tip]:hover:after{opacity:1}.cq-essay{color:#334155;resize:vertical;box-sizing:border-box;border:1.5px solid #e2e8f0;border-radius:8px;outline:none;width:100%;padding:10px 12px;font-size:.9rem;transition:border-color .15s}.cq-essay:focus{border-color:#3b82f6}.cq-feedback{color:#64748b;border-top:1px solid #f1f5f9;padding:8px 14px;font-size:.8125rem}.cq-feedback.correct{color:#059669;background:#ecfdf5}.cq-feedback.wrong{color:#dc2626;background:#fef2f2}.cq-feedback.essay{color:#1d4ed8;background:#eff6ff}.cq-feedback.hidden{display:none}.cq-feedback-text{display:block}.cq-solution-toggle{color:inherit;cursor:pointer;opacity:.85;background:0 0;border:1px solid;border-radius:99px;align-items:center;margin-top:6px;padding:3px 10px;font-size:.75rem;font-weight:600;transition:opacity .15s,background .15s;display:inline-flex}.cq-solution-toggle:hover{opacity:1;background:#0000000a}.cq-solution-panel{color:#92400e;background:#fffbeb;border:1px solid #fde68a;border-radius:8px;margin-top:8px;padding:10px 12px;font-size:.85rem;line-height:1.7}.cq-solution-panel.hidden{display:none}.cq-solution-panel p{margin:0 0 .5em}.cq-solution-panel p:last-child{margin-bottom:0}.cq-solution-img{border:1px solid #fde68a;border-radius:8px;max-width:100%;margin-top:8px;display:block}.cq-actions{border-top:1px solid #e2e8f0;justify-content:flex-end;align-items:center;gap:10px;padding:12px 16px;display:flex}.cq-submit-btn{color:#fff;cursor:pointer;background:#3b82f6;border:none;border-radius:8px;padding:9px 22px;font-size:.875rem;font-weight:600;transition:background .15s}.cq-submit-btn:hover{background:#2563eb}.cq-submit-btn:active{background:#1d4ed8}.cq-submit-btn:disabled{cursor:not-allowed;background:#93c5fd}.cq-result{background:#fff;border-top:1px solid #e2e8f0;padding:14px 16px}.cq-result.hidden{display:none}.cq-result-inner{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;display:flex}.cq-result-score{color:#1e293b;font-size:.9375rem;font-weight:700}.cq-retry-btn{color:#3b82f6;cursor:pointer;background:#fff;border:2px solid #3b82f6;border-radius:8px;padding:7px 18px;font-size:.8rem;font-weight:600;transition:background .15s}.cq-retry-btn:hover{background:#eff6ff}.dark .content-quiz-block{background:rgb(var(--color-surface));border-color:#1e40af99}.dark .cq-header{background:#1e3a8a40;border-bottom-color:#1e40af80}.dark .cq-header:hover{background:#1e3a8a66}.dark .cq-icon-wrap{background:#1e3a8a80}.dark .cq-title{color:#93c5fd}.dark .cq-count{color:#93c5fd;background:#1e3a8a80}.dark .cq-badge.pass{color:#6ee7b7;background:#064e3b80}.dark .cq-badge.fail{color:#fca5a5;background:#7f1d1d80}.dark .cq-prev-attempt{color:#93c5fd;background:#1e3a8a2e;border-bottom-color:#1e40af80}.dark .cq-prev-attempt:hover{background:#1e3a8a52}.dark .cq-loading,.dark .cq-login-gate-text{color:rgb(var(--color-content-muted))}.dark .cq-login-gate-title{color:#93c5fd}.dark .cq-signup-btn{background:rgb(var(--color-surface));color:#93c5fd;border-color:#1e40af99}.dark .cq-signup-btn:hover{background:rgb(var(--color-chip))}.dark .cq-question{background:rgb(var(--color-surface));border-color:rgb(var(--color-line))}.dark .cq-q-number{background:rgb(var(--color-canvas) / .5);border-bottom-color:rgb(var(--color-line-soft));color:rgb(var(--color-content-muted))}.dark .cq-q-text,.dark .cq-fitb-wrap{color:rgb(var(--color-content))}.dark .cq-options{background:rgb(var(--color-field));border-color:rgb(var(--color-line))}.dark .cq-option{border-bottom-color:rgb(var(--color-line-soft))}.dark .cq-option:hover{background:rgb(var(--color-chip) / .5)}.dark .cq-option.selected{background:#1e3a8a4d}.dark .cq-option.correct{background:#064e3b4d}.dark .cq-option.wrong{background:#7f1d1d4d}.dark .cq-option-letter{background:rgb(var(--color-chip));color:rgb(var(--color-content-body))}.dark .cq-option-text{color:rgb(var(--color-content-body))}.dark .cq-blank-placeholder-marker{background-color:rgb(var(--color-chip));border-bottom-color:rgb(var(--color-line));color:#93c5fd}.dark .cq-fill-blanks-list .fill-blank-item{background-color:rgb(var(--color-field));border-color:rgb(var(--color-line))}.dark .cq-fill-blanks-list .fill-blank-meta{background-color:rgb(var(--color-surface));border-bottom-color:rgb(var(--color-line-soft))}.dark .cq-fill-blanks-list .fill-blank-label{color:rgb(var(--color-content-body))}.dark .cq-mode-badge{background:rgb(var(--color-chip));border-color:rgb(var(--color-line));color:rgb(var(--color-content-muted))}.dark .cq-fill-blanks-list .fill-blank-math,.dark .cq-fill-blanks-list .cq-blank{background:rgb(var(--color-field));color:rgb(var(--color-content))}.dark .cq-essay{background:rgb(var(--color-field));border-color:rgb(var(--color-line));color:rgb(var(--color-content))}.dark .cq-feedback{border-top-color:rgb(var(--color-line-soft));color:rgb(var(--color-content-muted))}.dark .cq-feedback.correct{color:#6ee7b7;background:#064e3b4d}.dark .cq-feedback.wrong{color:#fca5a5;background:#7f1d1d4d}.dark .cq-feedback.essay{color:#93c5fd;background:#1e3a8a4d}.dark .cq-solution-panel{color:#fde68a;background:#78350f40;border-color:#b4530980}.dark .cq-actions{border-top-color:rgb(var(--color-line-soft))}.dark .cq-result{background:rgb(var(--color-surface));border-top-color:rgb(var(--color-line))}.dark .cq-result-score{color:rgb(var(--color-content))}.dark .cq-retry-btn{background:rgb(var(--color-surface));color:#60a5fa;border-color:#60a5fa}.dark .cq-retry-btn:hover{background:#1e3a8a40}
