:root{--surface-primary: var(--cosmic-latte);--surface-primary-rgb: var(--cosmic-latte);--surface-secondary: var(--cornsilk);--surface-tertiary: var(--lemon-chiffon);--surface-inset: var(--vanilla);--border-primary: var(--cornsilk);--border-interactive: #cbc9c3;--text-primary: var(--jet);--text-secondary: var(--walnut-brown);--text-tertiary: var(--drab-dark-brown);--accent-primary: #fad643;--accent-primary-rgb: #fad643;--accent-primary-darker: #e6c239;--accent-secondary: #8b5cf6;--success: #10b981;--success-darker: #059669;--error: #ef4444;--warning: #f59e0b;--cosmic-latte: #FDF7E3;--cornsilk: #FDF5D9;--lemon-chiffon: #FDF1C5;--vanilla: #FCE99D;--old-gold: #E0BF3D;--walnut-brown: #64573C;--drab-dark-brown: #4A4130;--jet: #302A24;--font-sans: var(--font-serif);--font-serif: "Merriweather", Georgia, serif;--font-mono: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, monospace;--space-1x: 4px;--space-2x: 8px;--space-3x: 12px;--space-4x: 16px;--space-5x: 20px;--space-6x: 24px;--space-8x: 32px;--space-10x: 40px;--space-12x: 48px;--space-16x: 64px;--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, .05);--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -1px rgba(0, 0, 0, .06);--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -2px rgba(0, 0, 0, .05);--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 10px 10px -5px rgba(0, 0, 0, .04);--transition-curve: cubic-bezier(.4, 0, .2, 1);--transition-duration: .25s}*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}html{font-size:16px;scroll-behavior:smooth}body{background-color:var(--surface-primary);color:var(--text-secondary);font-family:var(--font-sans);line-height:1.6;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;overflow-x:hidden}body::-webkit-scrollbar{width:8px}body::-webkit-scrollbar-track{background:var(--surface-secondary)}body::-webkit-scrollbar-thumb{background-color:var(--border-primary);border-radius:4px}body::-webkit-scrollbar-thumb:hover{background-color:var(--border-interactive)}@media(max-width:900px){body::-webkit-scrollbar{width:0px;height:0px;background:transparent;display:none}body::-webkit-scrollbar-track{background:transparent;display:none}body::-webkit-scrollbar-thumb{background:transparent;display:none}body{scrollbar-width:none;scrollbar-color:transparent transparent}body{-ms-overflow-style:none}html,body{overflow-x:hidden}.main-content::-webkit-scrollbar{display:none}.course-content-area::-webkit-scrollbar{display:none}*::-webkit-scrollbar{width:0px!important;height:0px!important;background:transparent!important}*{scrollbar-width:none!important;-ms-overflow-style:none!important}.course-content-area p{text-align:justify;hyphens:auto;-webkit-hyphens:auto;word-break:break-word}}h1,h2,h3,h4,h5,h6{font-family:var(--font-serif);color:var(--text-primary);font-weight:600;line-height:1.2;letter-spacing:-.025em}h1{font-size:2.5rem;font-weight:700;margin-bottom:var(--space-6x)}h2{font-size:1.875rem;margin-bottom:var(--space-4x)}h3{font-size:1.25rem;font-weight:600;line-height:1.4;margin-bottom:var(--space-3x)}h4{font-size:1rem;font-weight:600;color:var(--text-secondary);margin-bottom:var(--space-2x);text-transform:uppercase;letter-spacing:.05em}h5{font-size:.9rem;font-weight:600;color:var(--text-secondary);margin-bottom:var(--space-2x);line-height:1.4}h6{font-size:.85rem;font-weight:500;color:var(--text-muted);margin-bottom:var(--space-1x);line-height:1.4}p{margin-bottom:var(--space-4x);max-width:65ch;line-height:1.7;color:var(--text-secondary)}.course-content-area p{max-width:85ch;text-align:justify;text-justify:inter-word;hyphens:auto;-webkit-hyphens:auto;-moz-hyphens:auto;-ms-hyphens:auto;hyphenate-limit-chars:6 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:8%;word-wrap:break-word;overflow-wrap:break-word;orphans:3;widows:3;text-wrap:pretty;-webkit-text-wrap:pretty}ul,ol{margin:0 0 var(--space-3x) 0;padding-left:1.25rem;list-style-position:outside}li{margin:.25em 0}ul ul,ol ol{margin:.25em 0;padding-left:1.25rem}a{color:var(--text-primary);text-decoration:none;transition:color .2s ease}a:hover{color:var(--text-secondary)}code{font-family:var(--font-mono);background-color:var(--surface-inset);padding:2px 6px;border-radius:4px;font-size:.875em;color:var(--text-primary)}pre{background-color:var(--surface-inset);border:1px solid var(--border-primary);border-radius:8px;padding:var(--space-4x);margin-bottom:var(--space-4x);overflow-x:auto;font-size:.875rem;width:100%;max-width:65ch;box-sizing:border-box}.course-content-area pre{max-width:85ch}.course-content-area h1,.course-content-area h2,.course-content-area h3,.course-content-area h4{text-wrap:balance;text-balance:balance}.course-content-area li{text-align:justify;text-justify:inter-word;hyphens:auto;-webkit-hyphens:auto;-moz-hyphens:auto;orphans:2;widows:2;text-wrap:pretty;-webkit-text-wrap:pretty}.course-content-area{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-wrap:pretty;-webkit-text-wrap:pretty}.course-content-area *{orphans:2;widows:2}.placeholder-text{color:var(--text-tertiary);font-style:italic}.loading-spinner{border:4px solid var(--surface-tertiary);border-top:4px solid var(--accent-primary);border-radius:50%;width:50px;height:50px;animation:spin 1s linear infinite;margin:var(--space-10x) auto}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.error-message{background:#fee;border:1px solid #fcc;border-radius:8px;padding:var(--space-4x);margin:var(--space-4x) 0;color:#c33}.error-message h3{margin:0 0 var(--space-2x) 0;color:#c33}.error-message button{background:#c33;color:#faf8f0;border:none;padding:var(--space-2x) var(--space-4x);border-radius:8px;cursor:pointer;margin-top:var(--space-2x)}.error-message button:hover{background:#a22}.card{background:var(--surface-primary);border:1px solid var(--border-primary);border-radius:12px;padding:var(--space-6x);box-shadow:var(--shadow-sm);transition:all .2s ease}.card:hover{box-shadow:var(--shadow-md);border-color:var(--border-interactive)}.course-sidebar .card{padding:10px 8px;background:color-mix(in srgb,var(--surface-primary) 85%,var(--vanilla))}.card ul,.card ol{margin:0 0 var(--space-3x) 0;padding-left:1.25rem;list-style-position:outside}.card li{margin:.25em 0}.card ul ul,.card ol ol{margin-top:.25em;margin-bottom:.25em;padding-left:1.25rem}.card p+ul,.card p+ol{margin-top:.5em}.btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--space-2x);background:var(--surface-primary);border:1px solid var(--border-primary);border-radius:8px;padding:10px 20px;font-family:var(--font-sans);font-size:.875rem;font-weight:500;color:var(--text-primary);cursor:pointer;-webkit-user-select:none;user-select:none;transition:all .15s ease;box-shadow:var(--shadow-sm)}.btn:hover:not(:disabled){background:var(--surface-secondary);border-color:var(--border-interactive);box-shadow:var(--shadow-md);transform:translateY(-1px)}.btn:active{transform:translateY(0)}.btn:disabled{opacity:.5;cursor:not-allowed;transform:none}.btn-primary{background:var(--accent-primary);border-color:var(--accent-primary);color:#000;font-weight:600}.btn-primary:hover:not(:disabled){background:var(--accent-primary-darker);border-color:var(--accent-primary-darker)}.btn-danger{background:var(--error);border-color:var(--error);color:#faf8f0}.btn-sm{padding:6px 10px;font-size:.8rem;border-radius:6px}.btn-xs{padding:4px 8px;font-size:.75rem;border-radius:6px}.btn-outline{background:var(--surface-secondary)}.sidebar-row{position:relative;display:grid;--sidebar-toggle-width: 28px;grid-template-columns:minmax(0,var(--sidebar-toggle-width)) 1fr;align-items:center;gap:6px;width:100%;overflow:visible;min-height:28px;--sidebar-indent-step: 16px;--sidebar-depth: 0}.sidebar-row-body{display:flex;align-items:center;width:100%;min-width:0;padding-left:calc(var(--sidebar-indent-step) * var(--sidebar-depth))}.sidebar-row .progress-item{display:block;width:100%}.sidebar-toggle{display:inline-flex;align-items:center;justify-content:center;width:100%;height:26px;border:none;background:transparent;color:var(--text-secondary);border-radius:6px;cursor:pointer;transition:background .16s ease,color .16s ease}.sidebar-toggle:not([disabled]):hover,.sidebar-toggle:not([disabled]):focus-visible{background:#0000000d;color:var(--text-primary)}.sidebar-toggle:focus-visible{outline:2px solid var(--accent-primary);outline-offset:2px}.sidebar-toggle[disabled]{cursor:default;color:var(--border-primary);opacity:.35}.sidebar-toggle--placeholder,.sidebar-row[data-collapsed=false] .sidebar-toggle{opacity:0;pointer-events:none}.sidebar-row[data-collapsed=false]:hover .sidebar-toggle,.sidebar-row[data-collapsed=false]:focus-within .sidebar-toggle{opacity:1;pointer-events:auto}.sidebar-row[data-collapsed=true] .sidebar-toggle{opacity:.85}.course-sidebar{font-family:var(--font-sans);--chevron-space: 24px}.course-sidebar .progress-item{font-weight:500;font-family:inherit}.sidebar-label{display:inline-flex;align-items:center;gap:8px}.sidebar-row .drag-handle{position:relative;width:24px;height:24px;display:inline-flex;align-items:center;justify-content:center;color:var(--text-secondary);opacity:.25;cursor:grab;transition:opacity .16s ease,color .16s ease}.sidebar-row .drag-handle:hover{opacity:.7;color:var(--text-primary)}.sidebar-row .drag-handle:active{cursor:grabbing}.course-nav-list .has-drag>.sidebar-row .progress-item,.course-nav-list .element-level.has-drag .progress-item{padding-left:0}.page-element-nav-animator{overflow:hidden;max-height:0;opacity:0;transform:translateY(-6px);transition:max-height .24s ease,opacity .18s ease,transform .24s ease}.page-element-nav-animator[data-state=open]{opacity:1;transform:translateY(0);overflow:visible}.page-element-nav-animator[data-state=closing]{opacity:0;transform:translateY(-6px)}.page-element-nav{margin:4px 0 0;padding-left:calc(var(--sidebar-indent-step, 16px) * (var(--sidebar-depth, 0) + 1));list-style:none;display:flex;flex-direction:column;gap:2px}.element-nav-button{display:flex;align-items:center;gap:10px;width:100%;padding:6px 10px;border-radius:10px;border:none;background:#fdf7e300;color:#564a37;font-size:12.5px;text-align:left;transition:background .18s ease,color .18s ease,box-shadow .18s ease,transform .22s ease,opacity .18s ease;cursor:pointer;--nav-shift-x: 0px;--nav-shift-y: 0px;transform:translate(var(--nav-shift-x, 0px)) translateY(var(--nav-shift-y, 0px))}.element-nav-button:hover,.element-nav-button:focus-visible{background:#e0bf3d29;color:#302a24;outline:none;box-shadow:0 4px 10px #40382829;--nav-shift-x: 2px}.element-nav-button.active{background:#e0bf3d38;color:#302a24;font-weight:600;box-shadow:0 8px 16px #40382833}.element-nav-button.is-hidden{opacity:.3;color:#6b6b6b;font-style:italic;filter:saturate(.2)}.element-nav-button.is-hidden .element-nav-icon{background:#94a3b840;color:#475569;box-shadow:none}.element-nav-button.draggable:hover{cursor:grab}.element-nav-button.draggable:active{cursor:grabbing}.page-element-nav-animator .element-nav-button{--nav-shift-y: 6px;opacity:0;transition-delay:calc(var(--nav-item-index, 0) * 18ms)}.page-element-nav-animator[data-state=open] .element-nav-button{--nav-shift-y: 0px;opacity:1}.page-element-nav-animator[data-state=closing] .element-nav-button{--nav-shift-y: -6px;opacity:0}.element-nav-icon{width:30px;height:30px;border-radius:10px;background:#e0bf3d2e;color:currentColor;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;transition:transform .18s ease,box-shadow .18s ease;position:relative}.element-nav-icon-svg{width:16px;height:16px}.element-nav-button:hover .element-nav-icon,.element-nav-button:focus-visible .element-nav-icon{transform:translate(1px);box-shadow:0 4px 12px #4038282e}.element-nav-button.active .element-nav-icon{box-shadow:0 4px 14px #40382838}.element-nav-icon .hk-badge{position:absolute;top:-4px;right:-4px;display:inline-flex;align-items:center;justify-content:center;margin:0;width:16px!important;height:16px!important;font-size:.7rem;line-height:1;pointer-events:none;box-shadow:0 1px 2px #00000014;z-index:1}.element-nav-icon--video{background:#f472b638;color:#be185d}.element-nav-icon--audio{background:#60a5fa38;color:#1d4ed8}.element-nav-icon--code{background:#a5b4fc38;color:#4338ca}.element-nav-icon--quiz{background:#86efac3d;color:#047857}.element-nav-icon--embed{background:#c4b5fd3d;color:#6d28d9}.element-nav-icon--image{background:#fde04738;color:#b45309}.element-nav-icon--doc{background:#fbbf242e;color:#92400e}.element-nav-label{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.element-nav-label--wrap{white-space:normal}.element-nav-title-editor{width:100%}.element-nav-title-text{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.element-nav-title-text--wrap{white-space:normal}.sidebar-anchor-highlight{outline:2px solid rgba(var(--accent-rgb),.6);outline-offset:6px;animation:sidebar-anchor-pulse .9s ease 1}@keyframes sidebar-anchor-pulse{0%{outline-color:rgba(var(--accent-rgb),0);outline-offset:12px}50%{outline-color:rgba(var(--accent-rgb),.75);outline-offset:4px}to{outline-color:rgba(var(--accent-rgb),0);outline-offset:12px}}.course-nav-list .element-level.has-drag{position:relative}.course-nav-list .has-drag:hover{background:rgba(var(--accent-rgb),.05);border-radius:6px}.progress-item.draggable{cursor:grab;-webkit-user-select:none;user-select:none;transition:all .16s ease}.progress-item.draggable:hover{background:rgba(var(--accent-rgb),.08)!important;transform:translateY(-1px);box-shadow:0 2px 8px #0000001a}.progress-item.draggable:active{cursor:grabbing;transform:translateY(0);box-shadow:0 4px 12px #00000026}.progress-item.is-dragging{z-index:1000;box-shadow:0 8px 25px #00000040!important;background:var(--surface-primary)!important;border:2px solid var(--accent-primary)!important}.progress-item.is-dragging *{pointer-events:none}body.smooth-dragging{cursor:grabbing!important;-webkit-user-select:none!important;user-select:none!important}body.smooth-dragging *{cursor:grabbing!important}.progress-item.section-title-button[data-section-id]:hover:after{content:"";position:absolute;inset:0;border:2px dashed transparent;border-radius:inherit;pointer-events:none;transition:border-color .2s ease;display:none}body.smooth-dragging .progress-item.section-title-button[data-section-id]:hover:after{border-color:var(--accent-primary);background:rgba(var(--accent-primary-rgb, 250, 214, 67),.1)}.progress-item.section-title-button[data-section-id]{transition:all .2s ease}.progress-item.section-title-button[data-section-id]:hover:not(.active){background:rgba(var(--accent-primary-rgb, 250, 214, 67),.08)}body.smooth-dragging .progress-item:hover{background:rgba(var(--accent-primary-rgb, 250, 214, 67),.12)!important;border-left:3px solid var(--accent-primary)!important;transform:translate(2px);transition:all .1s ease}body.smooth-dragging .progress-item.section-title-button[data-section-id]:hover{background:rgba(var(--accent-primary-rgb, 250, 214, 67),.18)!important;border-left:4px solid var(--accent-primary)!important;transform:translate(4px)}body.smooth-dragging .progress-item.section-title-button.unit-title-label:hover{background:rgba(var(--success-rgb, 34, 197, 94),.12)!important;border-left:4px solid var(--success-primary, #22c55e)!important}.course-nav-container.is-dragging .course-nav-list>li:not(.insert-between):hover{outline:2px dashed var(--accent-primary);outline-offset:2px}.course-nav-list li.drag-over-target{background:rgba(var(--accent-primary-rgb, 250, 214, 67),.12)}.course-nav-list .module-level,.course-nav-list .section-level,.course-nav-list .element-level{position:relative;display:block;min-width:0}.course-nav-list .module-level{border-left:3px solid color-mix(in srgb,var(--vanilla) 65%,var(--old-gold))}.course-nav-list .section-level{border-left:2px solid color-mix(in srgb,var(--vanilla) 45%,var(--old-gold))}.course-nav-list .element-level{border-left:2px dashed color-mix(in srgb,var(--border-primary) 70%,transparent)}.element-list{list-style:none;margin:0;padding:0}.course-nav-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px;justify-content:flex-start;min-width:0}.course-nav-list .course-nav-list{padding:0;gap:4px}.course-nav-list .sidebar-children{margin-top:4px;display:flex;flex-direction:column;gap:4px}.course-nav-list>li{width:100%;padding:0}.course-nav-list .module-level,.course-nav-list .section-level,.course-nav-list .element-level{padding:4px 6px;border-radius:8px;border:1px solid transparent;transition:background .16s ease,transform .16s ease,box-shadow .16s ease,border-color .16s ease;position:relative;z-index:1}.course-nav-list .module-level:hover,.course-nav-list .section-level:hover,.course-nav-list .element-level:hover{background:transparent;border-color:color-mix(in srgb,var(--border-primary) 60%,transparent)}.course-nav-list .module-level.active,.course-nav-list .section-level.active,.course-nav-list .element-level.active{background:linear-gradient(180deg,var(--surface-secondary),transparent 120%);border-color:var(--border-interactive);box-shadow:0 2px 10px #0000000f,inset 0 0 0 1px #00000005;z-index:2}.course-nav-list .module-level.active{border-left-color:var(--old-gold)}.course-nav-list .section-level.active{border-left-color:color-mix(in srgb,var(--vanilla) 55%,var(--old-gold))}.course-nav-list .element-level.active{border-left-color:var(--border-interactive)}.course-nav-list li.drop-before{box-shadow:inset 0 3px 0 0 var(--accent-primary)}.course-nav-list li.drop-after{box-shadow:inset 0 -3px 0 0 var(--accent-primary)}.mode-student .course-nav-list .element-level.active{box-shadow:0 0 12px 2px #ffffc899}.course-nav-list>li{min-width:0}.course-nav-list>li.insert-between{padding-bottom:0}.progress-item{background:none;border:none;cursor:pointer;color:var(--text-primary);padding:3px 6px;border-radius:6px;text-align:left;display:block;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;position:relative;z-index:1;line-height:1.15;transition:background .16s ease,color .16s ease,box-shadow .16s ease,transform 80ms ease;background-image:none}.progress-item:after{content:"";position:absolute;inset:0;border-radius:inherit;border:2px solid transparent;pointer-events:none}.progress-item.active{background:var(--surface-primary);box-shadow:var(--shadow-sm)}.progress-item.active:after{border-color:var(--border-interactive)}.progress-item:hover:not(.active){background:color-mix(in srgb,var(--vanilla) 22%,transparent)}.progress-item:active{transform:translateY(.5px)}.progress-item:focus-visible{outline:2px solid var(--accent-primary);outline-offset:2px}.course-sidebar .progress-item.active:not(.section-title-button):after{border-color:transparent;border-width:0}.course-sidebar .progress-item input,.course-sidebar .progress-item input:focus{border:0!important;outline:0!important;box-shadow:none!important;background:transparent}.progress-item.progress-item--unit,.progress-item.progress-item--section,.progress-item.progress-item--page{display:flex!important;align-items:center;gap:12px;padding:12px 14px;border-radius:14px;position:relative;transition:transform .18s ease,box-shadow .2s ease,border-color .2s ease,background .22s ease;box-shadow:0 6px 16px #4038281f}.progress-item.progress-item--unit{background:linear-gradient(135deg,#fdf7e3fa,#fdf5d9f2);border:1px solid rgba(224,191,61,.45)}.progress-item.progress-item--section{background:linear-gradient(135deg,#fdf7e3eb,#fdf5d9e0);border:1px solid rgba(224,191,61,.32)}.progress-item.progress-item--page{background:linear-gradient(135deg,#fdf7e3db,#fdf5d9d1);border:1px solid rgba(224,191,61,.24)}.progress-item.progress-item--unit:after,.progress-item.progress-item--section:after,.progress-item.progress-item--page:after{border-width:0}.progress-item.progress-item--unit:hover:not(.active),.progress-item.progress-item--section:hover:not(.active),.progress-item.progress-item--page:hover:not(.active){background-image:inherit;background-color:transparent;box-shadow:0 10px 24px #5242282e}.progress-item.progress-item--unit.active:hover,.progress-item.progress-item--section.active:hover,.progress-item.progress-item--page.active:hover{background-image:inherit;background-color:#e0bf3d38!important;box-shadow:0 12px 26px #52422838}.progress-item.progress-item--unit.draggable:hover,.progress-item.progress-item--section.draggable:hover,.progress-item.progress-item--page.draggable:hover{transform:translateY(-2px)}.progress-item.progress-item--unit.active,.progress-item.progress-item--section.active,.progress-item.progress-item--page.active{background-image:inherit;background-color:#e0bf3d38;box-shadow:0 12px 26px #52422838;border-color:#e0bf3da6}.progress-item__meter{flex:0 0 auto;display:flex;align-items:center;justify-content:center;margin-left:6px}.progress-item__content{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:6px}.progress-item__title-row{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}.progress-item__title-text{flex:1 1 auto;min-width:0;display:block}.progress-item__title-text--wrap,.progress-item__title-text--wrap .inline-title-editor__text,.section-title-text-inner--wrap{white-space:normal!important;word-wrap:break-word;overflow-wrap:break-word;text-overflow:clip;line-height:1.4;max-width:100%}.progress-item.wrap-title{white-space:normal;min-height:fit-content;max-width:100%;overflow:hidden}.progress-item.wrap-title .progress-item__title-row{flex-wrap:wrap;max-width:100%}.progress-item.wrap-title .progress-item__meta,.progress-item.wrap-title .progress-item__meta-line,.progress-item.wrap-title .progress-item__subtitle-text,.progress-item.wrap-title .inline-title-editor__text{white-space:normal!important;word-wrap:break-word;overflow-wrap:break-word;text-overflow:clip;max-width:100%}.progress-item.wrap-title .progress-item__meta{position:relative;min-height:auto}.progress-item.wrap-title .progress-item__meta-line{position:relative}.sidebar-title-pill--structural{width:180px;min-width:180px;padding:8px;display:flex;flex-direction:column;gap:4px}.sidebar-title-pill--structural button{width:100%}.sidebar-title-pill--structural button+button{border-top:1px solid var(--border-primary, rgba(0,0,0,.1));padding-top:8px;margin-top:4px}.progress-item__title-append{display:inline-flex;align-items:center;gap:10px;flex:0 0 auto}.progress-item__confirm-label{font-size:12px;font-weight:600;color:#b91c1c;letter-spacing:.02em;text-transform:uppercase}.progress-item__meta{position:relative;min-height:18px;font-size:12.5px;color:#6b5a3e}.progress-item__meta-line{position:absolute;top:0;left:0;right:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:1;transform:translateY(0);transition:opacity .16s ease,transform .18s ease}.progress-item__meta-line--detail{color:#a3842e;font-weight:600;opacity:0;transform:translateY(8px)}.progress-item__meta-line--subtitle{color:#6b7280}.progress-item__subtitle-text--placeholder{color:#9ca3af;font-style:italic}.progress-item__meta.show-detail .progress-item__meta-line{opacity:0;transform:translateY(-8px)}.progress-item__meta.show-detail .progress-item__meta-line--detail{opacity:1;transform:translateY(0)}.progress-item__title-append .hk-badge{margin-right:0}.hk-badge{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;margin-right:6px;border-radius:50%;font-size:.65rem;font-weight:600;flex-shrink:0;transition:all .2s ease;cursor:default}.hk-badge{box-shadow:0 0 0 1px #0000000d,0 2px 4px #00000014}.course-sidebar .element-level .hk-badge{background:#d1d5db!important;color:#374151!important}.course-sidebar .module-level .hk-badge{width:18px;height:18px;font-size:.7rem}.course-sidebar .section-level .hk-badge{width:16px;height:16px;font-size:.65rem}.course-sidebar .element-level .hk-badge{width:14px;height:14px;font-size:.6rem}.hk-badge[data-count="1"]{background:#22c55e;color:#fff}.hk-badge[data-count="2"],.hk-badge[data-count="3"]{background:#86efac;color:#166534}.hk-badge[data-count="4"],.hk-badge[data-count="5"]{background:#facc15;color:#a16207}.hk-badge[data-count="6"],.hk-badge[data-count="7"]{background:#fb923c;color:#fff}.hk-badge[data-count="8"],.hk-badge[data-count="9"],.hk-badge[data-count="10"],.hk-badge[data-count="11"],.hk-badge[data-count="12"],.hk-badge[data-count="13"],.hk-badge[data-count="14"],.hk-badge[data-count="15"],.hk-badge[data-count="16"],.hk-badge[data-count="17"],.hk-badge[data-count="18"],.hk-badge[data-count="19"],.hk-badge[data-count="20"]{background:#d1d5db;color:#374151}.hk-badge[data-completed=true]{background:#22c55e;color:#fff}.course-sidebar .hk-badge[data-completed=true]{box-shadow:0 0 0 1px #22c55e59,0 0 10px #22c55e40}.hk-badge:not([data-count]):not([data-completed]){background:var(--border-primary);color:var(--text-primary)}.hk-badge svg{width:10px;height:10px}.hk-badge:hover{transform:scale(1.05);box-shadow:0 2px 4px #0000001a}.course-progress-header{position:sticky;top:0;z-index:2;margin:-2px -2px 6px;padding:6px;background:linear-gradient(180deg,color-mix(in srgb,var(--vanilla) 30%,var(--surface-primary)),var(--surface-primary));border:1px solid var(--border-primary);border-radius:10px;box-shadow:var(--shadow-sm);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);display:grid;justify-items:center;row-gap:6px}.course-progress-title-row{display:inline-flex;align-items:center;gap:8px;justify-content:center}.course-progress-header .progress-bar-container{width:100%}.section-title-button{display:flex;align-items:center;gap:6px;width:100%;padding:0 6px;border:none;background:none;cursor:pointer;color:var(--text-primary);text-align:left;border-radius:6px;transition:background var(--transition-duration) var(--transition-curve);min-height:24px}.progress-item.section-title-button{display:flex!important;flex-wrap:nowrap;align-items:center}.progress-item.section-title-button .hk-badge{flex:0 0 auto}.progress-item.section-title-button .section-title-text{flex:1 1 auto;min-width:0}.section-title-button:not(.progress-item--unit):not(.progress-item--section):hover{background:var(--surface-primary)}.section-title-button:not(.progress-item--unit):not(.progress-item--section).active{background:var(--surface-primary);box-shadow:var(--shadow-sm)}.course-sidebar .progress-item.section-title-button:not(.progress-item--unit):not(.progress-item--section).active{background:transparent!important;box-shadow:none!important}.course-sidebar .progress-item.section-title-button:not(.progress-item--unit):not(.progress-item--section).active:after{border-color:transparent!important}.section-title-text{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.25;display:inline-flex;align-items:baseline;padding-bottom:.5px}.section-title-text-inner{display:inline;text-decoration:none;position:relative}.section-title-text.unit-title-label{font-weight:700;flex:0 1 auto}.course-sidebar .progress-item.section-title-button .unit-title-label .section-title-text-inner{padding-bottom:3px;border-bottom:.14em solid currentColor}.section-title-text.section-title-label{font-weight:400;flex:0 1 auto}.course-sidebar .progress-item.section-title-button .section-title-label .section-title-text-inner{padding-bottom:2px;border-bottom:.12em solid currentColor}.progress-item.locked{opacity:.45;cursor:not-allowed}.course-nav-list .element-level.completed>.progress-item{color:var(--text-secondary);text-decoration:line-through}.course-nav-list .element-level.completed>.progress-item:hover{text-decoration:none;color:var(--text-primary)}.course-nav-list .element-level.completed{border-left:3px solid var(--border-primary)}.course-nav-list .element-level.locked>.progress-item{opacity:.45;pointer-events:none;cursor:not-allowed}.course-nav-list .element-level.viewing>.progress-item{position:relative}.course-nav-list .element-level.viewing>.progress-item:after{content:"";position:absolute;left:8px;right:8px;bottom:2px;height:2px;background:var(--text-primary);opacity:.5;transform:scaleX(0);transform-origin:left;animation:sidebar-underline-in 3s ease forwards;animation-delay:1s}@keyframes sidebar-underline-in{0%{transform:scaleX(0);opacity:0}to{transform:scaleX(1);opacity:.5}}.course-nav-list .module-level.locked>.sidebar-row>.progress-item{opacity:.7;pointer-events:none;cursor:not-allowed}.course-nav-list .section-level.locked>.sidebar-row>.progress-item{opacity:.4;pointer-events:none;cursor:not-allowed}.course-nav-list .module-level.completed>.progress-item,.course-nav-list .section-level.completed>.progress-item{color:var(--text-secondary)}.sidebar-progress{display:flex;align-items:center;gap:6px;margin:0 6px}.sidebar-progress-bar{flex:1;height:3px;background:color-mix(in srgb,var(--vanilla) 45%,var(--border-primary));border-radius:4px;overflow:hidden}.sidebar-progress-inner{height:100%;background:linear-gradient(90deg,var(--accent-primary),color-mix(in srgb,var(--accent-primary) 60%,var(--vanilla)));position:relative}.sidebar-progress-inner:after{content:"";position:absolute;top:0;bottom:0;left:-40%;width:40%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.35),transparent);mix-blend-mode:screen;animation:progress-sheen 2.2s linear infinite}@keyframes progress-sheen{0%{transform:translate(0)}to{transform:translate(250%)}}@media(prefers-reduced-motion:reduce){.sidebar-progress-inner:after{display:none;animation:none}}.sidebar-progress .progress-percent{font-size:.8rem;font-weight:600;color:var(--text-secondary)}.mode-sme .course-sidebar .sidebar-progress,.mode-sme .course-sidebar .progress-percent{display:none}.app-header.sme-user .progress-item{background:var(--surface-primary, #fdfbf7);color:var(--text-primary, #222);border:1px solid var(--border-primary, #e0ded8)}.app-header.sme-user .progress-item:hover{background:var(--surface-secondary, #f9f8f3);border-color:var(--accent-primary, #FACC15)}.app-header.sme-user .progress-item.active{background:var(--surface-secondary, #f9f8f3);box-shadow:var(--shadow-sm);border-color:var(--accent-primary, #FACC15)}.app-header.sme-user .hk-badge{background:var(--accent-primary, #FACC15);color:var(--jet, #000);border:1px solid var(--accent-primary, #FACC15)}.app-header.sme-user .hk-badge[data-completed=true]{background:var(--accent-primary, #FACC15);color:var(--jet, #000);border-color:var(--accent-primary, #FACC15)}.app-header.sme-user .hk-badge:hover{transform:scale(1.05);box-shadow:0 2px 4px #0000001a}.insert-between,.insert-between.element-insert,.insert-between.section-insert,.insert-between.module-insert{list-style:none;margin:4px 0;padding:0;height:12px;min-height:12px;position:relative}.course-nav-container.is-dragging .insert-between{height:16px;min-height:16px;margin:6px 0}.insert-between:before{content:"";position:absolute;left:8px;right:8px;top:50%;height:3px;background:transparent;transform:translateY(-50%);pointer-events:none;border-radius:2px}.insert-between:hover:before{background:var(--accent-primary);opacity:.7}.insert-between.drag-over:before{background:var(--accent-primary);opacity:1}.course-nav-container.is-dragging .insert-between:before{background:var(--accent-primary);opacity:.35}.course-nav-container.is-dragging .insert-between:after{content:"Drop here";position:absolute;right:12px;top:50%;transform:translateY(-50%);font-size:11px;color:var(--text-secondary);opacity:.9}.insert-button{position:absolute;left:8px;top:50%;transform:translateY(-50%);opacity:0;visibility:hidden;pointer-events:none}.insert-between:hover .insert-button{opacity:1;visibility:visible;pointer-events:auto}.course-nav-container.is-dragging .insert-button{display:none}.course-nav-list li.drop-before{border-top:3px solid var(--border-interactive)}.course-nav-list li.drop-after{border-bottom:3px solid var(--border-interactive)}.insert-between.drag-over .insert-button{opacity:1;visibility:visible}.course-sidebar .course-nav-container{flex:1 1 auto;display:flex;flex-direction:column;padding:18px 4px 88px;gap:10px;overflow-x:hidden;max-width:100%}.course-sidebar .course-nav-container>.course-nav-list{flex:1 1 auto}.course-sidebar .sidebar-footer{position:sticky;bottom:8px;display:flex;flex-direction:column;gap:8px;padding:0 10px 8px;pointer-events:none;z-index:10}.course-sidebar .sidebar-controls{margin-top:0;position:relative;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:12px;padding:12px 16px;background:linear-gradient(180deg,color-mix(in srgb,var(--surface-primary) 92%,rgba(255,255,255,0)),color-mix(in srgb,var(--surface-secondary) 88%,rgba(255,255,255,0)));-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border:1px solid color-mix(in srgb,var(--border-primary) 70%,rgba(0,0,0,.06));border-radius:14px;box-shadow:0 10px 24px #a0862e2e;opacity:0;visibility:hidden;transition:opacity .18s ease,transform .18s ease;transform:translateY(8px);pointer-events:none;z-index:11}.course-sidebar .sidebar-controls.is-visible{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto}.sidebar-controls .sidebar-add-cluster{display:inline-flex;align-items:center;gap:10px;margin:0;flex-wrap:nowrap;white-space:nowrap;flex:1 1 auto;justify-content:center;min-width:0}.sidebar-delete-btn{background:color-mix(in srgb,var(--surface-primary) 82%,rgba(0,0,0,0));color:var(--text-secondary);border:1px solid color-mix(in srgb,var(--border-primary) 70%,rgba(0,0,0,.06));box-shadow:none;padding:6px 10px;transition:background .16s ease,color .16s ease,border-color .16s ease,box-shadow .16s ease}.sidebar-delete-btn:hover:not(:disabled),.sidebar-delete-btn:focus-visible{background:color-mix(in srgb,var(--error) 18%,var(--surface-secondary));border-color:color-mix(in srgb,var(--error) 32%,rgba(0,0,0,.08));color:#7c1d1d}.sidebar-delete-btn:focus-visible{outline:none;box-shadow:0 0 0 2px #dc262633}.sidebar-delete-btn:disabled{opacity:.4;border-color:var(--border-primary);color:var(--text-secondary)}.sidebar-add-unit-btn{background:color-mix(in srgb,var(--surface-primary) 92%,rgba(255,255,255,0));color:var(--text-primary);border:1px solid color-mix(in srgb,var(--border-primary) 70%,rgba(0,0,0,.06));box-shadow:none;font-size:clamp(.62rem,1.2vw,.78rem);padding:6px clamp(10px,2vw,14px);font-weight:600;letter-spacing:.015em;transition:background .16s ease,color .16s ease,border-color .16s ease,box-shadow .16s ease;white-space:nowrap;min-width:0}.sidebar-add-unit-btn:hover,.sidebar-add-unit-btn:focus-visible{background:linear-gradient(135deg,color-mix(in srgb,var(--accent-primary) 82%,rgba(255,255,255,.16)),var(--accent-primary));color:#3b2f0c;border-color:color-mix(in srgb,var(--accent-primary) 70%,rgba(0,0,0,.08));box-shadow:0 8px 18px #f5c44342}.sidebar-add-unit-btn:focus-visible{outline:none;box-shadow:0 0 0 2px #facc1559,0 4px 12px #0000001f}.sidebar-add-unit-btn:active{transform:translateY(0);box-shadow:var(--shadow-sm)}.sidebar-add-unit-btn:disabled{opacity:.6;color:color-mix(in srgb,var(--text-secondary) 50%,rgba(0,0,0,.2));background:color-mix(in srgb,var(--surface-secondary) 90%,rgba(0,0,0,0));border-color:color-mix(in srgb,var(--border-primary) 70%,rgba(0,0,0,.05));box-shadow:none}.sidebar-title-pill{position:fixed;z-index:1300;background:var(--surface-primary, #fff);border:1px solid var(--border-primary, #e2e8f0);border-radius:18px;padding:10px 12px;display:inline-flex;flex-direction:column;align-items:stretch;gap:8px;width:220px;min-width:220px;box-shadow:0 12px 32px #0f172a26}.sidebar-title-pill button{border:none;border-radius:12px;background:var(--old-gold, #d1b158);color:#1f2937;font-size:12px;font-weight:600;padding:6px 12px;cursor:pointer;transition:opacity .15s ease,transform .15s ease;white-space:nowrap}.sidebar-title-pill button:disabled{opacity:.5;cursor:default}.sidebar-title-pill__actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;width:100%}.sidebar-title-pill__actions button{font-size:11px;background:#d1b15833;color:#4b3b21;padding:5px 10px}.sidebar-saving-toast{display:flex;align-items:center;gap:8px;padding:6px 12px;border-radius:10px;font-size:12px;line-height:1.3;background:rgba(var(--surface-primary-rgb),.92);border:1px solid rgba(0,0,0,.05);box-shadow:var(--shadow-sm);color:var(--text-primary);pointer-events:auto}.sidebar-saving-toast span{display:inline-block}.sidebar-saving-toast--saving{color:var(--text-secondary)}.sidebar-saving-toast--saved{background:#22c55e26;border-color:#22c55e40;color:#166534}.sidebar-saving-toast--error{background:#dc26261f;border-color:#dc26263d;color:#b91c1c}.saving-toast-flyout{position:fixed;top:76px;right:20px;z-index:12050;display:flex;flex-direction:column;gap:8px;pointer-events:none;width:min(320px,calc(100% - 32px));align-items:flex-end}.saving-toast-flyout .sidebar-saving-toast{pointer-events:auto}@media(max-width:900px){.saving-toast-flyout{left:16px;right:16px;top:72px}}.sidebar-saving-spinner{animation:sidebar-saving-rotate 1s linear infinite}@keyframes sidebar-saving-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.sidebar-add-btn{background:color-mix(in srgb,var(--surface-primary) 88%,rgba(255,255,255,0));color:var(--text-secondary);border:1px solid color-mix(in srgb,var(--border-primary) 70%,rgba(0,0,0,.06));box-shadow:none;font-size:clamp(.62rem,1.2vw,.78rem);padding:6px clamp(10px,1.8vw,14px);transition:background .16s ease,color .16s ease,border-color .16s ease,box-shadow .16s ease;white-space:nowrap;min-width:0}.sidebar-controls .sidebar-delete-btn{flex-shrink:0}.sidebar-add-btn:hover,.sidebar-add-btn:focus-visible{background:color-mix(in srgb,var(--accent-primary) 18%,var(--surface-secondary));color:var(--text-primary);border-color:color-mix(in srgb,var(--accent-primary) 26%,rgba(0,0,0,.08));box-shadow:0 6px 16px #ebb74433}.sidebar-add-btn:focus-visible{outline:none;box-shadow:0 0 0 2px #facc1547,0 6px 16px #ebb74433}.sidebar-add-btn:active{transform:translateY(0);box-shadow:var(--shadow-sm)}.sidebar-add-btn:disabled{opacity:.6;color:color-mix(in srgb,var(--text-secondary) 50%,rgba(0,0,0,.2));background:color-mix(in srgb,var(--surface-secondary) 90%,rgba(0,0,0,0));border-color:color-mix(in srgb,var(--border-primary) 70%,rgba(0,0,0,.05));box-shadow:none}.course-sidebar .sidebar-export-wrapper{position:absolute;bottom:16px;right:12px;z-index:15}.sidebar-export-btn{background:var(--surface-primary);color:var(--text-secondary);border:1px solid var(--border-primary);box-shadow:0 2px 8px #00000014;padding:6px 8px;transition:background .16s ease,color .16s ease,border-color .16s ease,box-shadow .16s ease;display:flex;align-items:center;justify-content:center;border-radius:8px}.sidebar-export-btn:hover:not(:disabled),.sidebar-export-btn:focus-visible{background:color-mix(in srgb,var(--accent-primary) 16%,var(--surface-primary));color:var(--text-primary);border-color:color-mix(in srgb,var(--accent-primary) 30%,var(--border-primary));box-shadow:0 4px 12px #ebb7442e}.sidebar-export-btn:focus-visible{outline:none;box-shadow:0 0 0 2px #facc1547}.sidebar-export-btn:disabled{opacity:.5;cursor:not-allowed}.sidebar-export-menu{position:absolute;bottom:calc(100% + 8px);right:0;background:var(--surface-primary, #fff);border:1px solid var(--border-primary, #e2e8f0);border-radius:10px;padding:6px;min-width:155px;box-shadow:0 8px 24px #0f172a2e;z-index:1200}.sidebar-export-menu__title{font-size:.65rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--text-secondary);padding:4px 8px 6px;border-bottom:1px solid var(--border-primary);margin-bottom:4px}.sidebar-export-menu button{display:flex;align-items:center;gap:8px;width:100%;padding:7px 10px;background:transparent;border:none;border-radius:6px;font-size:.78rem;color:var(--text-primary);cursor:pointer;transition:background .12s ease,color .12s ease;text-align:left}.sidebar-export-menu button:hover:not(:disabled){background:color-mix(in srgb,var(--accent-primary) 14%,var(--surface-secondary));color:var(--text-primary)}.sidebar-export-menu button:disabled{opacity:.5;cursor:not-allowed}.sidebar-export-menu button svg{flex-shrink:0;stroke:currentColor}.insert-hints{position:relative}.insert-edge{position:absolute;left:8px;right:auto;padding:2px 6px;font-size:11px;line-height:1;border-radius:6px;background:var(--surface-secondary);border:1px dashed var(--border-primary);color:var(--text-secondary);opacity:0;visibility:hidden;transition:opacity .12s ease;pointer-events:none}.insert-edge svg{width:10px;height:10px}.course-nav-list .module-level:hover .insert-edge,.course-nav-list .section-level:hover .insert-edge,.course-nav-list .element-level:hover .insert-edge{opacity:.9;visibility:visible;pointer-events:auto}.insert-edge.top{top:-6px}.insert-edge.bottom{bottom:-6px}.input,.textarea{background:var(--surface-primary);border:1px solid var(--border-primary);border-radius:8px;padding:12px 16px;font-size:.875rem;color:var(--text-primary);width:100%;box-shadow:var(--shadow-sm)}.input:focus,.textarea:focus{outline:none;border-color:var(--accent-primary);box-shadow:0 0 0 3px #fad6431a}.app-header{position:sticky;top:0;width:100%;z-index:11000;background:rgba(var(--surface-primary-rgb),.95);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border-bottom:1px solid var(--border-primary);box-shadow:var(--shadow-sm)}.header-content{display:grid;grid-template-columns:auto 1fr;align-items:center;width:100%;padding:0 24px;height:64px;position:relative}@media(min-width:1024px){.app-container .app-header .header-content{padding-left:24px}}@media(max-width:900px){.header-content{padding:0 16px}}.mode-toggle{justify-self:start}.main-nav{display:flex;position:relative;z-index:2;align-items:center;gap:1px;background:var(--surface-inset);border:1px solid var(--border-primary);border-radius:8px;padding:2px;justify-self:start}.main-nav .nav-button:first-child{font-size:1rem;padding:10px 20px}.header-actions{justify-self:end}.nav-button{background:none;border:none;color:var(--text-secondary);font-size:.875rem;font-weight:500;padding:8px 16px;cursor:pointer;border-radius:6px;min-width:90px;transition:all .15s ease;display:inline-flex;align-items:center;justify-content:center;line-height:1;height:40px;gap:8px}.nav-button:hover{color:var(--text-primary);background:#0000000a}.nav-button.active{color:var(--text-primary);background:var(--surface-primary);font-weight:600;box-shadow:var(--shadow-sm)}.nav-button.icon{min-width:44px;padding:8px}.nav-button svg{width:18px;height:18px;stroke-width:2}.icon-circle-btn{width:28px;height:28px;min-width:28px;box-sizing:border-box;padding:6px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--surface-primary) 90%,rgba(0,0,0,0));border:1px solid color-mix(in srgb,var(--border-primary) 70%,rgba(0,0,0,.06));color:var(--text-secondary);box-shadow:none;transition:background .16s ease,color .16s ease,border-color .16s ease,box-shadow .16s ease,transform .12s ease}.icon-circle-btn:hover,.icon-circle-btn:focus-visible{background:color-mix(in srgb,var(--accent-primary) 14%,var(--surface-secondary));color:var(--text-primary);border-color:color-mix(in srgb,var(--accent-primary) 22%,rgba(0,0,0,.08));outline:none}.icon-circle-btn:active{transform:translateY(0);box-shadow:var(--shadow-sm)}.icon-circle-btn svg{width:10px;height:10px;transform:scale(.99);transform-origin:center;stroke:currentColor}.icon-circle-btn--danger{color:#7c1d1d;border-color:color-mix(in srgb,var(--error) 32%,rgba(0,0,0,.08));background:color-mix(in srgb,var(--surface-primary) 88%,rgba(220,38,38,.05))}.icon-circle-btn--danger:hover,.icon-circle-btn--danger:focus-visible{background:color-mix(in srgb,var(--error) 14%,var(--surface-secondary));color:#7c1d1d;border-color:color-mix(in srgb,var(--error) 32%,rgba(0,0,0,.08))}.segmented{display:inline-flex;align-items:stretch;overflow:hidden;background:var(--surface-primary);border:1px solid var(--border-primary);border-radius:12px;box-shadow:var(--shadow-sm);transition:box-shadow .12s ease,border-color .12s ease,transform .12s ease}.segmented:hover{border-color:var(--border-interactive);box-shadow:var(--shadow-md);transform:translateY(-1px)}.segmented:active{transform:translateY(0)}.segmented .seg-label{appearance:none;border:0;background:transparent;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;padding:0 14px;font:inherit;color:var(--text-primary);height:36px;line-height:1}.segmented .seg-icon{appearance:none;border:0;background:transparent;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;width:36px;min-width:36px;height:36px;color:var(--text-primary);border-left:1px solid var(--border-primary);transition:background .12s ease,color .12s ease,border-color .12s ease}.modal-overlay{position:fixed;inset:0;background:#0006;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);z-index:1000;display:flex;align-items:center;justify-content:center}.modal-content{background:var(--surface-primary);border-radius:12px;padding:var(--space-6x);width:90%;max-width:1080px;border:1px solid var(--border-primary);box-shadow:var(--shadow-xl)}.modal-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:var(--space-4x)}.modal-body{max-height:60vh;overflow:auto}.modal-footer{display:flex;gap:var(--space-3x);justify-content:flex-end;margin-top:var(--space-4x)}.modal-close{background:none;border:none;font-size:20px;cursor:pointer;color:var(--text-tertiary)}.knowledge-table th{background:var(--surface-secondary);color:var(--text-secondary);font-weight:600;border-bottom:1px solid var(--border-primary)}.knowledge-table td+td,.knowledge-table th+th{border-left:1px solid var(--border-primary)}.knowledge-table tr+tr td{border-top:1px dashed var(--border-primary)}.knowledge-modal{width:min(95vw,1400px);max-width:1400px}.knowledge-modal .modal-body{max-height:78vh}.sme-preview-asset{border:1px dashed var(--border-primary, #d0d7e3);border-radius:8px;padding:12px;background:#fffdf8;margin:8px 0}.sme-preview-asset__header{font-weight:600;margin-bottom:4px;color:var(--text-primary, #2a1b0a)}.sme-preview-asset__meta{font-size:.8rem;color:var(--text-secondary, #6b5b4f);margin-bottom:6px;word-break:break-all}.sme-preview-asset__details{margin-top:6px}.sme-preview-asset__preview-image{max-width:100%;border-radius:6px;margin-top:4px;display:block;border:1px solid rgba(0,0,0,.05)}.sme-preview-asset__action{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:6px;background:var(--accent-primary, #facc15);color:#3b2f0c;font-weight:600;text-decoration:none;font-size:.85rem}.sme-preview-asset__action:hover{opacity:.9}.knowledge-table textarea.textarea{min-height:120px;resize:vertical;overflow:hidden}.knowledge-table .input,.knowledge-table .textarea{background:var(--surface-primary)}.course-bottom-controls{position:fixed;bottom:0;left:0;right:0;background:rgba(var(--surface-primary-rgb),.95);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-top:1px solid var(--border-primary);padding:16px;display:grid;grid-template-rows:auto auto;row-gap:16px;z-index:100;box-shadow:0 -2px 8px #0000000d}.sme-row.top{display:grid;grid-template-columns:1fr max-content max-content;align-items:center;column-gap:18px}.sme-row.bottom{display:grid;grid-auto-flow:column;grid-auto-columns:max-content;align-items:center;column-gap:18px;justify-content:space-between;margin-top:0}.selection-status{display:grid;grid-auto-flow:column;grid-auto-columns:max-content;gap:12px;font-size:.8rem;color:var(--text-secondary);background:var(--surface-secondary);border:1px solid var(--border-primary);border-radius:6px;padding:6px 10px}.selection-item span{font-weight:600;color:var(--text-primary);margin-left:4px;max-width:120px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.course-bottom-controls .badge{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;background:var(--accent-primary);color:#faf8f0;border-radius:999px;font-size:11px;padding:0 6px}.sme-row.top .context-input-section{display:grid;grid-template-columns:max-content max-content 1fr;column-gap:10px;align-items:center}.sme-row.top .context-input{min-height:36px;line-height:22px;padding-top:8px;padding-bottom:8px}.sme-row.top .context-label{display:inline-flex;align-items:center;height:100%}.main-content{flex-grow:1;width:100%;padding:var(--space-6x) 16px var(--space-6x) 16px}.has-course-sidebar .main-content{margin-left:var(--sidebar-width, 320px);width:calc(100% - var(--sidebar-width, 320px))}.tab-content{display:block}.course-layout{display:grid;grid-template-columns:1fr;gap:0;align-items:start}.course-sidebar{position:fixed;top:0;left:0;bottom:0;width:var(--sidebar-width, 320px);padding:72px 6px 8px;background:linear-gradient(180deg,color-mix(in srgb,var(--vanilla) 30%,rgba(var(--surface-primary-rgb),.92)),rgba(var(--surface-primary-rgb),.98)),rgba(var(--surface-primary-rgb),.98);-webkit-backdrop-filter:saturate(120%) blur(12px);backdrop-filter:saturate(120%) blur(12px);border-right:1px solid var(--border-primary);box-shadow:inset -1px 0 0 0 var(--border-primary),6px 0 18px #0000000f;z-index:350;overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable;display:flex;flex-direction:column}.sidebar-resize-handle{position:fixed;top:0;bottom:0;width:8px;cursor:col-resize;background:linear-gradient(90deg,#00000008,#00000014,#00000008);z-index:1000;transition:background .15s ease,width .15s ease}.sidebar-resize-handle:hover{width:10px;background:linear-gradient(90deg,transparent 0%,rgba(var(--accent-primary-rgb, 250, 214, 67),.5) 30%,rgba(var(--accent-primary-rgb, 250, 214, 67),.5) 70%,transparent 100%)}.sidebar-resize-handle:before{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:4px;height:50px;background:#64646433;border-radius:2px;transition:background .15s ease,height .15s ease}.sidebar-resize-handle:hover:before{height:70px;background:#64646480}body.sidebar-resizing .sidebar-resize-handle{width:12px;background:linear-gradient(90deg,transparent 0%,var(--accent-primary, #d4a843) 30%,var(--accent-primary, #d4a843) 70%,transparent 100%)}body.sidebar-resizing .sidebar-resize-handle:before{height:80px;background:var(--accent-primary, #d4a843)}.course-sidebar::-webkit-scrollbar{width:8px;height:8px;background:transparent}.course-sidebar::-webkit-scrollbar-thumb{background:#00000014;border-radius:8px;opacity:0;transition:background .2s ease,opacity .2s ease}.course-sidebar:hover::-webkit-scrollbar-thumb{background:#00000038;opacity:1}.course-sidebar:hover::-webkit-scrollbar{background:transparent}.course-sidebar:after{content:"";position:sticky;top:0;left:0;right:0;height:10px;pointer-events:none;background:linear-gradient(180deg,rgba(0,0,0,.06),transparent);opacity:0;transition:opacity .2s ease}.course-sidebar:hover:after{opacity:1}.course-sidebar{scrollbar-width:thin;scrollbar-color:transparent transparent}.course-sidebar:hover{scrollbar-width:thin;scrollbar-color:rgba(0,0,0,.2) transparent}.course-nav-container,.course-nav-list{min-width:0}.course-content-area{flex-grow:1;min-width:0;overflow:hidden;padding:6px 8px 0 24px}.course-content-area>.page-view>h2{margin-top:8px;margin-bottom:16px}.page-view--solo-focus{min-height:calc(100vh - 160px);display:flex;flex-direction:column;gap:var(--space-5x, 24px)}.page-view--solo-focus .solo-focus-block{flex:1 1 auto;display:flex;flex-direction:column;gap:var(--space-4x, 16px);min-height:0;height:calc(100vh - 150px);max-height:calc(100vh - 150px)}.page-view--solo-focus .solo-focus-block>*{min-height:0}.page-view--solo-focus .solo-focus-element,.page-view--solo-focus .solo-focus-master{flex:1 1 auto;display:flex;flex-direction:column;min-height:0}.page-view--solo-focus .solo-focus-element{overflow:hidden}.page-view--solo-focus .solo-focus-element .element-list{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;overflow:hidden}.page-view--solo-focus .solo-focus-element .element-level{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}.page-view--solo-focus .solo-focus-element .element-level>*{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}.page-view--solo-focus .solo-focus-element .element-view{max-height:none!important;flex:1 1 auto;display:flex;flex-direction:column;min-height:0}.course-selection-info{position:fixed;top:80px;right:20px;z-index:90;max-width:400px}.course-layout{padding-bottom:100px}.course-bottom-controls{position:fixed;bottom:0;left:0;right:0;background:rgba(var(--surface-primary-rgb),.95);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-top:1px solid var(--border-primary);padding:var(--space-3x) 16px;padding-left:16px;display:grid;grid-template-columns:1fr 2fr;gap:var(--space-4x);align-items:center;z-index:100;box-shadow:0 -2px 8px #0000000d}.course-bottom-controls.with-sidebar{padding-left:calc(var(--sidebar-width, 320px) + 16px)}.edit-mode-toggle{display:inline-flex;align-items:center;border:1px solid var(--border-primary);border-radius:8px;overflow:hidden}.edit-mode-toggle .btn{border:none;border-radius:0}.edit-mode-toggle .btn+.btn{border-left:1px solid var(--border-primary)}.course-bottom-controls .selection-status{display:grid;grid-auto-flow:column;grid-auto-columns:max-content;gap:8px 16px;font-size:.8rem;color:var(--text-secondary);background:var(--surface-secondary);border:1px solid var(--border-primary);border-radius:6px;padding:8px 12px;min-width:520px}.course-bottom-controls .selection-item span{font-weight:600;color:var(--text-primary);margin-left:4px;max-width:140px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.course-bottom-controls .action-controls{display:grid;grid-auto-flow:column;grid-template-columns:max-content minmax(340px,1fr) max-content max-content max-content;align-items:center;gap:var(--space-3x);margin-right:60px}.course-bottom-controls .context-input-section{display:grid;grid-template-columns:max-content max-content 1fr;column-gap:10px;align-items:center}.course-bottom-controls .context-label{font-weight:600;color:var(--text-secondary);white-space:nowrap}.course-bottom-controls .context-input{padding:var(--space-2x) var(--space-3x);border:1px solid var(--border-primary);border-radius:6px;background:var(--surface-primary);color:var(--text-primary);font-size:.875rem;width:100%}.course-bottom-controls .context-input-wrap .context-actions{position:absolute;top:4px;right:4px;display:flex;gap:4px}.course-bottom-controls .context-action-btn{padding:4px 6px;height:28px;font-size:.75rem}.course-bottom-controls .action-label{font-weight:600;color:var(--text-secondary);white-space:nowrap}.course-bottom-controls .buttons-grid,.course-bottom-controls .button-group{display:contents}.course-bottom-controls .btn svg{display:block}@media(max-width:1100px)and (min-width:901px){.course-sidebar{width:var(--sidebar-width, 320px);max-width:400px}.has-course-sidebar .main-content{margin-left:var(--sidebar-width, 320px)!important;width:calc(100% - var(--sidebar-width, 320px))!important}.course-bottom-controls.with-sidebar{padding-left:calc(var(--sidebar-width, 320px) + 16px)!important}.course-content-area{padding:6px 32px 0 24px;max-width:calc(100vw - var(--sidebar-width, 320px) - 32px)}}@media(max-width:900px){.has-course-sidebar .main-content{margin-left:0!important}.course-sidebar{transform:translate(-100%);opacity:0;pointer-events:none}.sidebar-resize-handle{display:none}.course-bottom-controls.with-sidebar{padding-left:16px!important}.main-content{padding:var(--space-8x) 16px var(--space-8x) 16px}.course-content-area{padding:6px 16px 0}}@media(min-width:1101px){.course-content-area{padding:6px 56px 0 32px;max-width:calc(100vw - var(--sidebar-width, 320px) - 56px)}}@media(min-width:1101px)and (max-width:1350px){.course-content-area{padding:6px 32px 0 24px;max-width:calc(100vw - var(--sidebar-width, 320px) - 32px)}}:root{--viz-primary: var(--old-gold);--viz-secondary: var(--accent-secondary, #8b5cf6);--viz-success: var(--success, #10b981);--viz-warning: var(--warning, #f59e0b);--viz-danger: var(--error, #ef4444);--viz-muted: #64748b;--viz-surface: #ffffff;--viz-border: var(--border-primary, #FDF5D9);--viz-cat-1: #0348D0;--viz-cat-2: #0BD043;--viz-cat-3: #F37500;--viz-cat-4: #b80000;--viz-cat-5: #FF5454;--viz-cat-6: #14b8a6;--viz-cat-7: #5454FF;--viz-cat-8: #eab308;--viz-cat-9: #45C400;--viz-cat-10: #37DAA7;--viz-heat-1: #fecaca;--viz-heat-2: #fed7aa;--viz-heat-3: #fef3c7;--viz-heat-4: #bfe7cb;--viz-heat-5: #80ce9b;--attachment-code-bg: #fdf5d4;--attachment-code-gutter: #f7e8bd;--attachment-code-border: #d5b677;--attachment-code-ink: #4a3624;--attachment-code-muted: #a28044}.jsonviz-container{gap:8px}.jsonviz-container h3{margin:0}.jsonviz-timeline{position:relative;max-width:800px;margin:0 auto}.jsonviz-timeline .jsonviz-timeline-line{position:absolute;left:16px;top:0;bottom:0;width:2px;background:var(--walnut-brown)}.jsonviz-timeline .jsonviz-timeline-dot{position:absolute;left:-34px;top:6px;width:10px;height:10px;background:var(--old-gold);border-radius:50%;border:2px solid var(--vanilla)}.jsonviz-timeline .jsonviz-timeline-card{background:var(--vanilla);border:1px solid var(--walnut-brown);border-radius:6px;padding:10px}.jsonviz-flow svg{background:var(--vanilla);border:1px solid var(--walnut-brown);border-radius:6px}.jsonviz-matrix table{min-width:480px}.course-content-area .jsonviz-host,.course-content-area .jsonviz-container,.course-content-area .markdown-content .jsonviz-host,.course-content-area .markdown-content .jsonviz-container,.course-content-area .markdown-content canvas,.course-content-area .markdown-content svg:not([width]),.course-content-area .markdown-content img,.course-content-area .markdown-content video,.course-content-area .markdown-content iframe,.element-view .jsonviz-host,.element-view .jsonviz-container,.element-view .markdown-content .jsonviz-host,.element-view .markdown-content .jsonviz-container,.element-view .markdown-content canvas,.element-view .markdown-content svg:not([width]),.element-view .markdown-content img,.element-view .markdown-content video,.element-view .markdown-content iframe{width:100%;max-width:85ch;height:auto;display:block;margin-left:auto;margin-right:auto;box-sizing:border-box}.element-view .markdown-content{max-width:85ch;margin-left:auto;margin-right:auto;line-height:1.6}.element-view .markdown-content p.markdown-empty-line,.element-markdown-content p.markdown-empty-line,.course-content-area .markdown-content p.markdown-empty-line,.scw-bubble .markdown-content p.markdown-empty-line{min-height:1.5em;margin-bottom:1em;display:block;height:1.5em}.element-view .markdown-content p:empty,.element-markdown-content p:empty,.course-content-area .markdown-content p:empty,.scw-bubble .markdown-content p:empty{min-height:1.5em;margin-bottom:1em;display:block}.element-view .markdown-content p:has(br:only-child),.element-markdown-content p:has(br:only-child),.course-content-area .markdown-content p:has(br:only-child),.scw-bubble .markdown-content p:has(br:only-child){min-height:1.5em;margin-bottom:1em}@media(min-width:1351px){.element-view .markdown-content{margin-left:0;margin-right:auto}.course-content-area .markdown-content .jsonviz-host,.course-content-area .markdown-content .jsonviz-container,.course-content-area .markdown-content canvas,.course-content-area .markdown-content svg:not([width]),.course-content-area .markdown-content img,.course-content-area .markdown-content video,.course-content-area .markdown-content iframe,.element-view .markdown-content .jsonviz-host,.element-view .markdown-content .jsonviz-container,.element-view .markdown-content canvas,.element-view .markdown-content svg:not([width]),.element-view .markdown-content img,.element-view .markdown-content video,.element-view .markdown-content iframe{margin-left:0;margin-right:auto}}.element-view .markdown-content table,.element-markdown-content table,.course-content-area .markdown-content table{border-collapse:collapse;width:100%;max-width:100%;margin:16px 0;font-size:.9em;overflow-x:auto;display:block;background:var(--surface-primary, #fff);border:1px solid var(--border-primary, #e2e8f0);border-radius:8px}.element-view .markdown-content thead,.element-markdown-content thead,.course-content-area .markdown-content thead,.element-view .markdown-content tbody,.element-markdown-content tbody,.course-content-area .markdown-content tbody{display:table;width:100%;table-layout:fixed}.element-view .markdown-content tr,.element-markdown-content tr,.course-content-area .markdown-content tr{display:table-row}.element-view .markdown-content th,.element-markdown-content th,.course-content-area .markdown-content th{background:var(--surface-secondary, #f8fafc);font-weight:600;text-align:left;padding:12px 16px;border-bottom:2px solid var(--border-primary, #e2e8f0);color:var(--text-primary, #1e293b);white-space:nowrap}.element-view .markdown-content td,.element-markdown-content td,.course-content-area .markdown-content td{padding:10px 16px;border-bottom:1px solid var(--border-primary, #e2e8f0);color:var(--text-secondary, #475569);vertical-align:top}.element-view .markdown-content tr:last-child td,.element-markdown-content tr:last-child td,.course-content-area .markdown-content tr:last-child td{border-bottom:none}.element-view .markdown-content tbody tr:hover,.element-markdown-content tbody tr:hover,.course-content-area .markdown-content tbody tr:hover{background:var(--surface-hover, rgba(0, 0, 0, .02))}.element-view .markdown-content th[align=center],.element-view .markdown-content td[align=center],.element-markdown-content th[align=center],.element-markdown-content td[align=center],.course-content-area .markdown-content th[align=center],.course-content-area .markdown-content td[align=center]{text-align:center}.element-view .markdown-content th[align=right],.element-view .markdown-content td[align=right],.element-markdown-content th[align=right],.element-markdown-content td[align=right],.course-content-area .markdown-content th[align=right],.course-content-area .markdown-content td[align=right]{text-align:right}.element-view .markdown-content td code,.element-markdown-content td code,.course-content-area .markdown-content td code{background:var(--surface-inset, #f1f5f9);padding:2px 6px;border-radius:4px;font-size:.85em;font-family:var(--font-mono, "Inconsolata", "Menlo", monospace)}.element-view .markdown-content .footnote-ref,.element-markdown-content .footnote-ref,.course-content-area .markdown-content .footnote-ref,.scw-bubble .markdown-content .footnote-ref{font-size:.75em;vertical-align:super;line-height:0;margin-left:1px}.element-view .markdown-content .footnote-ref a,.element-markdown-content .footnote-ref a,.course-content-area .markdown-content .footnote-ref a,.scw-bubble .markdown-content .footnote-ref a{color:var(--accent-primary, #3b82f6);text-decoration:none;padding:0 2px;border-radius:2px;transition:background .15s ease}.element-view .markdown-content .footnote-ref a:hover,.element-markdown-content .footnote-ref a:hover,.course-content-area .markdown-content .footnote-ref a:hover,.scw-bubble .markdown-content .footnote-ref a:hover{background:var(--surface-hover, rgba(59, 130, 246, .1))}.element-view .markdown-content .footnote,.element-markdown-content .footnote,.course-content-area .markdown-content .footnote,.scw-bubble .markdown-content .footnote{font-size:.875em;color:var(--text-secondary, #64748b);padding:8px 12px;margin-top:16px;border-top:1px solid var(--border-primary, #e2e8f0);background:var(--surface-secondary, #f8fafc);border-radius:0 0 6px 6px}.element-view .markdown-content .footnote sup,.element-markdown-content .footnote sup,.course-content-area .markdown-content .footnote sup,.scw-bubble .markdown-content .footnote sup{font-weight:600;color:var(--accent-primary, #3b82f6);margin-right:6px}.element-view .markdown-content .footnote-backref,.element-markdown-content .footnote-backref,.course-content-area .markdown-content .footnote-backref,.scw-bubble .markdown-content .footnote-backref{text-decoration:none;margin-left:8px;opacity:.6;transition:opacity .15s ease}.element-view .markdown-content .footnote-backref:hover,.element-markdown-content .footnote-backref:hover,.course-content-area .markdown-content .footnote-backref:hover,.scw-bubble .markdown-content .footnote-backref:hover{opacity:1}.element-view .markdown-content dl,.element-markdown-content dl,.course-content-area .markdown-content dl,.scw-bubble .markdown-content dl{margin:1em 0;padding:0}.element-view .markdown-content dt,.element-markdown-content dt,.course-content-area .markdown-content dt,.scw-bubble .markdown-content dt{font-weight:600;color:var(--text-primary, #1e293b);margin-top:.75em;margin-bottom:.25em}.element-view .markdown-content dt:first-child,.element-markdown-content dt:first-child,.course-content-area .markdown-content dt:first-child,.scw-bubble .markdown-content dt:first-child{margin-top:0}.element-view .markdown-content dd,.element-markdown-content dd,.course-content-area .markdown-content dd,.scw-bubble .markdown-content dd{margin:0 0 0 1.5em;padding:.25em 0 .25em 1em;border-left:3px solid var(--border-primary, #e2e8f0);color:var(--text-secondary, #475569)}.element-view .markdown-content sub,.element-markdown-content sub,.course-content-area .markdown-content sub,.scw-bubble .markdown-content sub{font-size:.75em;vertical-align:sub}.element-view .markdown-content sup,.element-markdown-content sup,.course-content-area .markdown-content sup,.scw-bubble .markdown-content sup{font-size:.75em;vertical-align:super}.element-view .markdown-content mark,.element-markdown-content mark,.course-content-area .markdown-content mark,.scw-bubble .markdown-content mark{background:linear-gradient(120deg,#ffeb3b66,#ffeb3b99);padding:.1em .3em;border-radius:3px;color:inherit}.element-view .markdown-content kbd,.element-markdown-content kbd,.course-content-area .markdown-content kbd,.scw-bubble .markdown-content kbd{display:inline-block;padding:2px 6px;font-size:.85em;font-family:var(--font-mono, "Inconsolata", "Menlo", monospace);background:var(--surface-secondary, #f8fafc);border:1px solid var(--border-primary, #e2e8f0);border-radius:4px;box-shadow:0 1px 1px #0000000f}.element-view .markdown-content abbr,.element-markdown-content abbr,.course-content-area .markdown-content abbr,.scw-bubble .markdown-content abbr{text-decoration:underline dotted;cursor:help}.element-view .markdown-content ins,.element-markdown-content ins,.course-content-area .markdown-content ins,.scw-bubble .markdown-content ins{background:#22c55e26;text-decoration:none;padding:0 2px;border-radius:2px}.element-view .markdown-content del,.element-view .markdown-content s,.element-markdown-content del,.element-markdown-content s,.course-content-area .markdown-content del,.course-content-area .markdown-content s,.scw-bubble .markdown-content del,.scw-bubble .markdown-content s{color:var(--text-tertiary, #94a3b8);text-decoration:line-through}.element-view .markdown-content small,.element-markdown-content small,.course-content-area .markdown-content small,.scw-bubble .markdown-content small{font-size:.875em;color:var(--text-secondary, #64748b)}.element-view .markdown-content u,.element-markdown-content u,.course-content-area .markdown-content u,.scw-bubble .markdown-content u{text-decoration:underline;text-decoration-color:var(--accent-primary, #3b82f6);text-underline-offset:2px}.element-view .markdown-content hr,.element-markdown-content hr,.course-content-area .markdown-content hr,.scw-bubble .markdown-content hr{border:none;border-top:1px solid var(--drab-dark-brown, #4A4130);width:95%;margin:2rem auto;background:none;height:0;opacity:.35}.attachment-viewer{border:1px solid var(--border-primary, #e2e8f0);border-radius:12px;padding:16px;background:var(--surface-secondary, #f8fafc);display:grid;gap:12px}.attachment-viewer--bare{border:none;background:transparent;padding:0;gap:16px}.attachment-viewer--bare .attachment-viewer__description{margin:0}.attachment-viewer--bare .attachment-pdf-viewer{border:none;background:transparent;padding:0}.attachment-viewer__header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.attachment-viewer__actions{display:inline-flex;align-items:center;gap:8px}.attachment-code-viewer{position:relative;border-radius:16px;border:1px solid var(--attachment-code-border);background:color-mix(in srgb,var(--attachment-code-bg) 92%,#fff);box-shadow:0 18px 40px #4a362433;overflow:hidden;min-height:clamp(360px,70vh,860px)}.attachment-code-viewer__editor{height:clamp(360px,70vh,860px);padding:12px clamp(12px,2vw,28px);box-sizing:border-box}.attachment-code-viewer__monaco{height:100%}.attachment-code-viewer__overlay{position:absolute;z-index:3;pointer-events:none}.attachment-code-viewer__overlay>*{pointer-events:auto}.attachment-code-viewer__overlay--bottom-left{bottom:18px;left:18px}.attachment-code-viewer__overlay--bottom-right{bottom:18px;right:18px}.attachment-code-viewer__filename{display:inline-flex;align-items:center;font-size:13px;font-weight:600;color:var(--attachment-code-ink);background:color-mix(in srgb,var(--attachment-code-bg) 90%,#ffffff);border-radius:999px;padding:6px 16px;border:1px solid color-mix(in srgb,var(--attachment-code-border) 70%,#fff);box-shadow:0 12px 28px #4a362433}.attachment-code-viewer__status{display:flex;align-items:center;justify-content:center;height:100%;border-radius:12px;font-size:13px;color:var(--attachment-code-ink);background:repeating-linear-gradient(90deg,color-mix(in srgb,var(--attachment-code-bg) 88%,#fff),color-mix(in srgb,var(--attachment-code-bg) 88%,#fff) 12px,color-mix(in srgb,var(--attachment-code-bg) 60%,#fff) 12px 13px);border:1px dashed color-mix(in srgb,var(--attachment-code-border) 70%,#fff)}.attachment-code-viewer__status--error{color:var(--danger, #b91c1c);border-color:var(--danger, #b91c1c);background:#fb71851f}.code-preview__fallback{display:flex;align-items:center;justify-content:center;height:100%;font-size:13px;color:var(--attachment-code-muted);border-radius:12px;border:1px dashed color-mix(in srgb,var(--attachment-code-border) 70%,#fff);background:repeating-linear-gradient(90deg,color-mix(in srgb,var(--attachment-code-bg) 90%,#fff),color-mix(in srgb,var(--attachment-code-bg) 90%,#fff) 12px,color-mix(in srgb,var(--attachment-code-bg) 70%,#fff) 12px 13px)}.code-preview__fallback-shell{height:100%}.attachment-code-viewer .monaco-editor,.attachment-code-viewer .monaco-editor-background,.attachment-code-viewer .monaco-editor .margin,.attachment-code-viewer .monaco-editor .view-overlays,.attachment-code-viewer .monaco-scrollable-element{background:transparent!important}.attachment-code-viewer .monaco-editor .margin,.attachment-code-viewer .monaco-editor .line-numbers{background:color-mix(in srgb,var(--attachment-code-bg) 80%,#fff)!important;color:var(--attachment-code-muted)!important}.attachment-code-viewer .monaco-editor,.attachment-code-viewer .view-lines,.attachment-code-viewer .mtk1{color:var(--attachment-code-ink)!important}.attachment-code-viewer .monaco-editor .cursor{border-left-color:var(--attachment-code-ink)!important}.attachment-viewer__title{display:inline-flex;align-items:center;gap:8px;font-weight:600;color:var(--text-primary, #0f172a)}.attachment-viewer__title-icon{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:8px;background:var(--surface-primary, #f1f5f9);color:var(--text-primary, #0f172a)}.attachment-viewer__action{font-size:13px;font-weight:600;color:var(--old-gold)}.attachment-viewer__description{margin:0;font-size:13px;color:var(--text-secondary, #475569)}.attachment-viewer__media,.attachment-viewer__iframe{width:100%;max-height:520px;border:1px solid var(--border-primary, #e2e8f0);border-radius:10px;background:#fff}.attachment-viewer__iframe{min-height:460px;height:clamp(360px,70vh,860px);width:100%;overflow:hidden;box-shadow:0 8px 32px #0f172a1f;border:none;border-radius:12px}.attachment-pdf-viewer{position:relative;display:flex;flex-direction:column;gap:12px;background:var(--surface-primary, #fff);border:1px solid var(--border-primary, #e2e8f0);border-radius:12px;padding:12px;overflow:hidden}.attachment-pdf-viewer__controls{display:inline-flex;align-items:center;gap:8px}.attachment-pdf-viewer__controls--floating{background:color-mix(in srgb,var(--old-gold) 82%,rgba(255,255,255,.15));border-radius:999px;padding:4px 10px;box-shadow:0 10px 24px #73560c3d;color:var(--walnut-brown, #4a3624);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid color-mix(in srgb,var(--old-gold) 60%,rgba(0,0,0,.08))}.attachment-pdf-viewer__btn{border:none;background:color-mix(in srgb,var(--old-gold) 35%,rgba(255,255,255,.2));color:var(--walnut-brown, #4a3624);padding:2px 8px;border-radius:999px;font-size:11px;cursor:pointer;transition:background .2s ease,color .2s ease}.attachment-pdf-viewer__btn:not(:disabled):hover{background:color-mix(in srgb,var(--old-gold) 45%,rgba(255,255,255,.3))}.attachment-pdf-viewer__btn:disabled{opacity:.4;cursor:not-allowed}.attachment-pdf-viewer__icon-btn{border:none;background:color-mix(in srgb,var(--old-gold) 16%,rgba(255,255,255,.4));color:var(--walnut-brown, #4a3624);padding:4px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:background .2s ease,color .2s ease,box-shadow .2s ease}.attachment-pdf-viewer__icon-btn svg{width:14px;height:14px}.attachment-pdf-viewer__icon-btn:disabled{opacity:.5;cursor:not-allowed}.attachment-pdf-viewer__icon-btn:not(:disabled):hover{background:color-mix(in srgb,var(--old-gold) 28%,rgba(255,255,255,.45));box-shadow:0 10px 24px #00000026}.attachment-pdf-viewer__icon-btn--ghost{background:color-mix(in srgb,var(--vanilla, #fce99d) 85%,#fff);border:1px solid color-mix(in srgb,var(--old-gold) 35%,rgba(0,0,0,.08));color:var(--walnut-brown, #4a3624);box-shadow:0 12px 28px #73560c33}.attachment-pdf-viewer__icon-btn--ghost:hover{background:var(--vanilla, #fce99d)}.attachment-pdf-viewer__zoom{font-weight:600;font-size:11px}.attachment-pdf-viewer__overlay--hoverable{opacity:0;transition:opacity .2s ease}.attachment-pdf-viewer:hover .attachment-pdf-viewer__overlay--hoverable,.attachment-pdf-viewer:focus-within .attachment-pdf-viewer__overlay--hoverable{opacity:1}.attachment-pdf-viewer__overlay--hoverable>*{pointer-events:none}.attachment-pdf-viewer:hover .attachment-pdf-viewer__overlay--hoverable>*,.attachment-pdf-viewer:focus-within .attachment-pdf-viewer__overlay--hoverable>*{pointer-events:auto}@media(hover:none)and (pointer:coarse){.attachment-pdf-viewer__overlay--hoverable{opacity:1}.attachment-pdf-viewer__overlay--hoverable>*{pointer-events:auto}}.attachment-pdf-viewer__canvas-wrapper{position:relative;border-radius:12px;background:var(--surface-secondary, transparent);border:1px solid var(--border-primary, #e2e8f0);min-height:320px;height:clamp(360px,70vh,860px);overflow-y:auto;overflow-x:hidden;padding:0 clamp(12px,2vw,32px);box-sizing:border-box}.attachment-pdf-viewer__overlay{position:absolute;z-index:3;pointer-events:none}.attachment-pdf-viewer__overlay>*{pointer-events:auto}.attachment-pdf-viewer__overlay--top-right{top:16px;right:16px}.attachment-pdf-viewer__overlay--bottom-left{bottom:16px;left:16px;max-width:calc(100% - 140px)}.attachment-pdf-viewer__overlay--bottom-right{bottom:16px;right:16px}.attachment-pdf-viewer__filename{display:inline-flex;align-items:center;font-size:13px;font-weight:600;color:var(--walnut-brown, #4a3624);background:color-mix(in srgb,var(--vanilla, #fce99d) 90%,rgba(255,255,255,.2));border-radius:999px;padding:6px 16px;box-shadow:0 12px 28px #73560c40;border:1px solid color-mix(in srgb,var(--old-gold) 35%,rgba(0,0,0,.08))}.attachment-pdf-viewer__canvas-wrapper--iframe{background:#fff;min-height:0}.attachment-pdf-viewer__canvas-stack{display:flex;flex-direction:column;gap:16px;padding:64px 0 112px;align-items:center;justify-content:flex-start;background:var(--surface-secondary, transparent);min-height:100%;width:100%;box-sizing:border-box}.attachment-pdf-viewer__canvas{display:block;width:auto;max-width:100%;height:auto;background:#fff;border:1px solid color-mix(in srgb,var(--old-gold) 20%,var(--border-primary, #e2e8f0));border-radius:12px;box-shadow:0 18px 38px #0000001f;margin-left:auto;margin-right:auto}.attachment-pdf-viewer__placeholder{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:14px;color:var(--text-secondary, #475569);background:#f8fafccc;z-index:1}.attachment-pdf-viewer__placeholder--error{color:var(--danger, #b91c1c)}.attachment-pdf-viewer__iframe{width:100%;height:100%;min-height:100%;border:none;display:block;background:#fff}.attachment-viewer__preview{border:1px dashed var(--border-primary, #e2e8f0);border-radius:10px;padding:16px;text-align:center;color:var(--text-secondary, #475569);font-size:13px;background:#ffffffb3}.attachment-viewer__preview--empty{border-style:solid}.attachment-viewer__footer{display:flex;justify-content:flex-end;font-size:13px;gap:12px}.attachment-viewer__footer-note{font-size:12px;color:var(--text-secondary, #475569)}.attachment-doc-viewer{position:relative;background:var(--surface-primary, #ffffff);border:1px solid var(--border-primary, #e2e8f0);border-radius:8px;overflow:hidden;min-height:600px}.attachment-doc-viewer__container{height:600px;overflow:auto;padding:32px}.attachment-doc-viewer__content{max-width:800px;margin:0 auto;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;line-height:1.6;color:var(--text-primary, #1e293b)}.attachment-doc-viewer__content h1,.attachment-doc-viewer__content h2,.attachment-doc-viewer__content h3{margin-top:24px;margin-bottom:16px;font-weight:600}.attachment-doc-viewer__content p{margin-bottom:16px}.attachment-doc-viewer__content ul,.attachment-doc-viewer__content ol{margin-bottom:16px;padding-left:24px}.attachment-doc-viewer__content table{border-collapse:collapse;width:100%;margin-bottom:16px}.attachment-doc-viewer__content th,.attachment-doc-viewer__content td{border:1px solid var(--border-primary, #e2e8f0);padding:8px 12px}.attachment-doc-viewer__content th{background:var(--surface-secondary, #f8fafc);font-weight:600}.attachment-doc-viewer__status{display:flex;align-items:center;justify-content:center;height:100%;color:var(--text-secondary, #64748b)}.attachment-doc-viewer__status--error{color:var(--danger, #ef4444)}.attachment-doc-viewer__overlay{position:absolute;z-index:10;padding:8px}.attachment-doc-viewer__overlay--top-right{top:0;right:0}.attachment-doc-viewer__overlay--bottom-left{bottom:0;left:0}.attachment-doc-viewer__controls{display:flex;align-items:center;gap:8px;background:#fffffff2;border-radius:6px;padding:4px;box-shadow:0 2px 8px #0000001a}.attachment-doc-viewer__btn{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border:none;background:transparent;cursor:pointer;border-radius:4px;transition:background-color .2s}.attachment-doc-viewer__btn:hover:not(:disabled){background:var(--surface-secondary, #f1f5f9)}.attachment-doc-viewer__btn:disabled{opacity:.5;cursor:not-allowed}.attachment-doc-viewer__zoom{min-width:50px;text-align:center;font-size:14px;font-weight:500}.attachment-doc-viewer__filename{font-size:12px;color:var(--text-secondary, #64748b);background:#ffffffe6;padding:4px 8px;border-radius:4px}.attachment-sheet-viewer{position:relative;background:var(--surface-primary, #ffffff);border:1px solid var(--border-primary, #e2e8f0);border-radius:8px;overflow:hidden;display:flex;flex-direction:column;height:700px}.attachment-sheet-viewer__status{display:flex;align-items:center;justify-content:center;height:100%;color:var(--text-secondary, #64748b)}.attachment-sheet-viewer__status--error{color:var(--danger, #ef4444)}.attachment-sheet-viewer__tabs{display:flex;align-items:center;background:var(--surface-secondary, #f8fafc);border-bottom:1px solid var(--border-primary, #e2e8f0);padding:0 8px;gap:8px;flex-shrink:0;height:40px}.attachment-sheet-viewer__nav-btn{display:flex;align-items:center;justify-content:center;width:24px;height:24px;border:none;background:transparent;cursor:pointer;border-radius:4px;color:var(--text-secondary, #64748b)}.attachment-sheet-viewer__nav-btn:hover:not(:disabled){background:var(--surface-tertiary, #e2e8f0);color:var(--text-primary, #1e293b)}.attachment-sheet-viewer__nav-btn:disabled{opacity:.3;cursor:not-allowed}.attachment-sheet-viewer__tab-list{display:flex;gap:4px;flex:1;overflow-x:auto;scrollbar-width:thin}.attachment-sheet-viewer__tab{padding:6px 16px;border:1px solid transparent;background:transparent;cursor:pointer;border-radius:4px 4px 0 0;font-size:13px;white-space:nowrap;transition:all .2s;color:var(--text-secondary, #64748b)}.attachment-sheet-viewer__tab:hover{background:var(--surface-primary, #ffffff);border-color:var(--border-primary, #e2e8f0);color:var(--text-primary, #1e293b)}.attachment-sheet-viewer__tab--active{background:var(--surface-primary, #ffffff);border-color:var(--border-primary, #e2e8f0);border-bottom-color:var(--surface-primary, #ffffff);font-weight:600;color:var(--text-primary, #1e293b)}.attachment-sheet-viewer__toolbar{display:flex;align-items:center;padding:8px 12px;gap:16px;border-bottom:2px solid var(--border-primary, #e2e8f0);flex-shrink:0;background:var(--surface-primary, #ffffff);height:48px}.attachment-sheet-viewer__search-container{position:relative;flex:1;display:flex;align-items:center;max-width:400px}.attachment-sheet-viewer__search{width:100%;padding:6px 12px;border:1px solid var(--border-primary, #e2e8f0);border-radius:4px;font-size:13px;outline:none;background:var(--surface-secondary, #f8fafc);transition:all .2s}.attachment-sheet-viewer__search:focus{border-color:var(--accent-primary, #3b82f6);background:var(--surface-primary, #ffffff);box-shadow:0 0 0 3px #3b82f61a}.attachment-sheet-viewer__search-results{position:absolute;right:10px;font-size:11px;color:var(--text-tertiary, #94a3b8);background:var(--surface-primary, #ffffff);padding:2px 6px;border-radius:3px}.attachment-sheet-viewer__actions{display:flex;align-items:center;gap:12px}.attachment-sheet-viewer__cell-indicator{padding:4px 8px;background:var(--surface-secondary, #f8fafc);border:1px solid var(--border-primary, #e2e8f0);border-radius:4px;font-size:12px;font-weight:600;color:var(--text-secondary, #64748b);font-family:Monaco,Consolas,monospace}.attachment-sheet-viewer__btn{padding:6px 12px;border:1px solid var(--border-primary, #e2e8f0);background:var(--surface-primary, #ffffff);border-radius:4px;font-size:13px;cursor:pointer;display:flex;align-items:center;gap:6px;transition:all .2s;color:var(--text-secondary, #64748b)}.attachment-sheet-viewer__btn:hover{background:var(--surface-secondary, #f8fafc);border-color:var(--border-secondary, #cbd5e1);color:var(--text-primary, #1e293b)}.attachment-sheet-viewer__grid-wrapper{flex:1;display:grid;grid-template-columns:50px 1fr;grid-template-rows:32px 1fr;overflow:hidden;background:var(--surface-secondary, #f8fafc)}.attachment-sheet-viewer__corner{grid-row:1;grid-column:1;background:var(--surface-tertiary, #e2e8f0);border-right:2px solid var(--border-primary, #cbd5e1);border-bottom:2px solid var(--border-primary, #cbd5e1);position:sticky;top:0;left:0;z-index:3}.attachment-sheet-viewer__header-container{grid-row:1;grid-column:2;overflow-x:hidden;background:var(--surface-tertiary, #e2e8f0);border-bottom:2px solid var(--border-primary, #cbd5e1);position:sticky;top:0;z-index:2}.attachment-sheet-viewer__header-row{display:flex;height:32px}.attachment-sheet-viewer__header-cell{display:flex;align-items:center;justify-content:center;padding:0 8px;border-right:1px solid var(--border-primary, #cbd5e1);font-size:12px;font-weight:600;color:var(--text-secondary, #475569);background:var(--surface-tertiary, #e2e8f0);-webkit-user-select:none;user-select:none;flex-shrink:0}.attachment-sheet-viewer__row-numbers{grid-row:2;grid-column:1;overflow-y:hidden;background:var(--surface-tertiary, #e2e8f0);border-right:2px solid var(--border-primary, #cbd5e1);position:sticky;left:0;z-index:1}.attachment-sheet-viewer__row-number-cell{height:28px;display:flex;align-items:center;justify-content:center;border-bottom:1px solid var(--border-primary, #cbd5e1);font-size:12px;font-weight:600;color:var(--text-secondary, #475569);background:var(--surface-tertiary, #e2e8f0);-webkit-user-select:none;user-select:none}.attachment-sheet-viewer__data-container{grid-row:2;grid-column:2;overflow:auto;background:var(--surface-primary, #ffffff)}.attachment-sheet-viewer__data-grid{display:flex;flex-direction:column;min-width:fit-content}.attachment-sheet-viewer__data-row{display:flex;height:28px;border-bottom:1px solid var(--border-primary, #e2e8f0)}.attachment-sheet-viewer__data-row--header{background:var(--surface-secondary, #f1f5f9);font-weight:600;position:sticky;top:0;z-index:1;border-bottom:2px solid var(--border-primary, #cbd5e1)}.attachment-sheet-viewer__data-cell{display:flex;align-items:center;padding:0 8px;border-right:1px solid var(--border-primary, #e2e8f0);font-size:13px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;color:var(--text-primary, #1e293b);background:var(--surface-primary, #ffffff);cursor:cell;flex-shrink:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;transition:background-color .1s}.attachment-sheet-viewer__data-cell:hover{background:var(--surface-hover, #f8fafc)}.attachment-sheet-viewer__data-cell--selected{background:var(--accent-primary-lighter, #dbeafe)!important;border:1px solid var(--accent-primary, #3b82f6)!important;outline:2px solid var(--accent-primary, #3b82f6);outline-offset:-2px;z-index:1;position:relative}.attachment-sheet-viewer__data-cell--header{background:var(--surface-secondary, #f1f5f9);font-weight:600;color:var(--text-primary, #1e293b)}.attachment-sheet-viewer__data-container::-webkit-scrollbar{width:12px;height:12px}.attachment-sheet-viewer__data-container::-webkit-scrollbar-track{background:var(--surface-secondary, #f8fafc)}.attachment-sheet-viewer__data-container::-webkit-scrollbar-thumb{background:var(--border-secondary, #cbd5e1);border-radius:6px;border:2px solid var(--surface-secondary, #f8fafc)}.attachment-sheet-viewer__data-container::-webkit-scrollbar-thumb:hover{background:var(--border-primary, #94a3b8)}.attachment-sheet-viewer__data-container::-webkit-scrollbar-corner{background:var(--surface-secondary, #f8fafc)}.attachment-sheet-viewer__footer{display:flex;justify-content:space-between;align-items:center;padding:8px 16px;border-top:2px solid var(--border-primary, #e2e8f0);font-size:12px;color:var(--text-secondary, #64748b);background:var(--surface-secondary, #f8fafc);flex-shrink:0;height:36px}.attachment-sheet-viewer__filename{font-weight:600;color:var(--text-primary, #1e293b)}.attachment-sheet-viewer__stats{font-family:Monaco,Consolas,monospace;font-size:11px}.attachment-slides-viewer{position:relative;background:var(--surface-primary, #ffffff);border:1px solid var(--border-primary, #e2e8f0);border-radius:8px;overflow:hidden;display:flex;flex-direction:column;height:600px}.attachment-slides-viewer--fullscreen{position:fixed;inset:0;height:100vh;width:100vw;z-index:9999;border-radius:0;background:#000}.attachment-slides-viewer--fullscreen .attachment-slides-viewer__slide{background:#000}.attachment-slides-viewer--fullscreen .attachment-slides-viewer__content{color:#fff}.attachment-slides-viewer__status{display:flex;align-items:center;justify-content:center;height:100%;color:var(--text-secondary, #64748b)}.attachment-slides-viewer__status--error{color:var(--danger, #ef4444)}.attachment-slides-viewer__slide{flex:1;display:flex;align-items:center;justify-content:center;padding:48px;background:var(--surface-secondary, #f8fafc);overflow:auto}.attachment-slides-viewer__content{max-width:800px;width:100%;text-align:center}.attachment-slides-viewer__title{font-size:32px;font-weight:700;margin-bottom:32px;color:var(--text-primary, #1e293b)}.attachment-slides-viewer__body{font-size:20px;line-height:1.6;color:var(--text-secondary, #475569)}.attachment-slides-viewer__body p{margin-bottom:16px}.attachment-slides-viewer__notes{margin-top:32px;padding:16px;background:var(--surface-tertiary, #f1f5f9);border-radius:8px;font-size:14px;text-align:left}.attachment-slides-viewer__controls{display:flex;align-items:center;justify-content:center;padding:16px;gap:16px;border-top:1px solid var(--border-primary, #e2e8f0);background:var(--surface-primary, #ffffff)}.attachment-slides-viewer--fullscreen .attachment-slides-viewer__controls{background:#000c;border-color:#ffffff1a}.attachment-slides-viewer__nav-btn,.attachment-slides-viewer__action-btn{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border:1px solid var(--border-primary, #e2e8f0);background:var(--surface-primary, #ffffff);cursor:pointer;border-radius:4px;transition:all .2s}.attachment-slides-viewer--fullscreen .attachment-slides-viewer__nav-btn,.attachment-slides-viewer--fullscreen .attachment-slides-viewer__action-btn{background:#ffffff1a;border-color:#fff3;color:#fff}.attachment-slides-viewer__nav-btn:hover:not(:disabled),.attachment-slides-viewer__action-btn:hover{background:var(--surface-secondary, #f8fafc);border-color:var(--border-secondary, #cbd5e1)}.attachment-slides-viewer--fullscreen .attachment-slides-viewer__nav-btn:hover:not(:disabled),.attachment-slides-viewer--fullscreen .attachment-slides-viewer__action-btn:hover{background:#fff3}.attachment-slides-viewer__nav-btn:disabled{opacity:.3;cursor:not-allowed}.attachment-slides-viewer__slide-info{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:120px}.attachment-slides-viewer__progress{width:100%;height:4px;background:var(--border-primary, #e2e8f0);border-radius:2px;overflow:hidden}.attachment-slides-viewer__progress-bar{height:100%;background:var(--accent-primary, #3b82f6);transition:width .3s ease}.attachment-slides-viewer__footer{display:flex;justify-content:space-between;align-items:center;padding:8px 16px;font-size:12px;color:var(--text-secondary, #64748b);background:var(--surface-primary, #ffffff);border-top:1px solid var(--border-primary, #e2e8f0)}.attachment-slides-viewer--fullscreen .attachment-slides-viewer__footer{background:#000c;color:#ffffffb3;border-color:#ffffff1a}.attachment-slides-viewer__filename{font-weight:500}.attachment-slides-viewer__hint{font-style:italic}.generic-attachment-preview{display:flex;flex-direction:column;align-items:center;padding:48px 24px;background:var(--surface-primary, #ffffff);border:1px solid var(--border-primary, #e2e8f0);border-radius:8px;min-height:400px}.generic-attachment-preview__icon{position:relative;width:80px;height:80px;display:flex;align-items:center;justify-content:center;background:var(--surface-secondary, #f8fafc);border-radius:12px;margin-bottom:24px}.generic-attachment-preview__icon svg{width:40px;height:40px;color:var(--text-secondary, #64748b)}.generic-attachment-preview__extension{position:absolute;bottom:-8px;right:-8px;background:var(--accent-primary, #3b82f6);color:#fff;padding:2px 6px;border-radius:4px;font-size:11px;font-weight:600;text-transform:uppercase}.generic-attachment-preview__info{text-align:center;max-width:500px}.generic-attachment-preview__name{font-size:20px;font-weight:600;margin-bottom:16px;color:var(--text-primary, #1e293b)}.generic-attachment-preview__metadata{display:flex;flex-wrap:wrap;gap:16px;justify-content:center;margin-bottom:24px}.generic-attachment-preview__meta-item{font-size:14px;color:var(--text-secondary, #64748b)}.generic-attachment-preview__meta-item strong{font-weight:600;margin-right:4px}.generic-attachment-preview__content{width:100%;margin-bottom:24px;text-align:left}.generic-attachment-preview__content h4{font-size:14px;font-weight:600;margin-bottom:8px;color:var(--text-secondary, #64748b)}.generic-attachment-preview__text{background:var(--surface-secondary, #f8fafc);border:1px solid var(--border-primary, #e2e8f0);border-radius:4px;padding:12px;font-family:Monaco,Consolas,monospace;font-size:12px;line-height:1.5;overflow-x:auto;max-height:200px;overflow-y:auto}.generic-attachment-preview__actions{display:flex;gap:12px;margin-bottom:24px}.generic-attachment-preview__btn{display:flex;align-items:center;gap:8px;padding:10px 20px;border:1px solid var(--border-primary, #e2e8f0);background:var(--surface-primary, #ffffff);border-radius:6px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s}.generic-attachment-preview__btn:hover{background:var(--surface-secondary, #f8fafc);border-color:var(--border-secondary, #cbd5e1)}.generic-attachment-preview__btn--primary{background:var(--accent-primary, #3b82f6);color:#fff;border-color:var(--accent-primary, #3b82f6)}.generic-attachment-preview__btn--primary:hover{background:var(--accent-primary-darker, #2563eb);border-color:var(--accent-primary-darker, #2563eb)}.generic-attachment-preview__help{font-size:14px;color:var(--text-tertiary, #94a3b8);font-style:italic;text-align:center;max-width:400px}.element-view .markdown-content blockquote,.element-markdown-content blockquote,.course-content-area .markdown-content blockquote,.scw-bubble .markdown-content blockquote{position:relative;margin:1rem 0;padding:.875rem 1rem .875rem 1.25rem;background:#00000006;border:none;border-left:3px solid var(--old-gold, #d4b44a);border-radius:0 6px 6px 0;font-style:italic;color:var(--text-secondary, #555)}.element-view .markdown-content blockquote:before,.element-markdown-content blockquote:before,.course-content-area .markdown-content blockquote:before,.scw-bubble .markdown-content blockquote:before,.element-view .markdown-content blockquote:after,.element-markdown-content blockquote:after,.course-content-area .markdown-content blockquote:after,.scw-bubble .markdown-content blockquote:after{display:none}.element-view .markdown-content blockquote p,.element-markdown-content blockquote p,.course-content-area .markdown-content blockquote p,.scw-bubble .markdown-content blockquote p{margin:0;font-style:italic;line-height:1.7}.element-view .markdown-content blockquote p+p,.element-markdown-content blockquote p+p,.course-content-area .markdown-content blockquote p+p,.scw-bubble .markdown-content blockquote p+p{margin-top:.65rem}.element-view .markdown-content blockquote strong,.element-markdown-content blockquote strong,.course-content-area .markdown-content blockquote strong,.scw-bubble .markdown-content blockquote strong{font-weight:600;font-style:italic}.element-view .markdown-content blockquote ul,.element-markdown-content blockquote ul,.course-content-area .markdown-content blockquote ul,.scw-bubble .markdown-content blockquote ul,.element-view .markdown-content blockquote ol,.element-markdown-content blockquote ol,.course-content-area .markdown-content blockquote ol,.scw-bubble .markdown-content blockquote ol{margin:.5rem 0;padding-left:1.25rem;font-style:normal}.element-view .markdown-content blockquote li,.element-markdown-content blockquote li,.course-content-area .markdown-content blockquote li,.scw-bubble .markdown-content blockquote li{margin-bottom:.25rem;font-style:normal}.element-view .markdown-content blockquote blockquote,.element-markdown-content blockquote blockquote,.course-content-area .markdown-content blockquote blockquote,.scw-bubble .markdown-content blockquote blockquote{margin:.75rem 0 .5rem;padding:.75rem 1rem;background:#00000005;border-left-color:var(--walnut-brown, #8b7742);border-radius:0 4px 4px 0}.element-view .markdown-content h1,.element-view .markdown-content h2,.element-view .markdown-content h3,.element-view .markdown-content h4,.element-view .markdown-content h5,.element-view .markdown-content h6,.element-markdown-content h1,.element-markdown-content h2,.element-markdown-content h3,.element-markdown-content h4,.element-markdown-content h5,.element-markdown-content h6,.course-content-area .markdown-content h1,.course-content-area .markdown-content h2,.course-content-area .markdown-content h3,.course-content-area .markdown-content h4,.course-content-area .markdown-content h5,.course-content-area .markdown-content h6,.scw-bubble .markdown-content h1,.scw-bubble .markdown-content h2,.scw-bubble .markdown-content h3,.scw-bubble .markdown-content h4,.scw-bubble .markdown-content h5,.scw-bubble .markdown-content h6{text-transform:none;letter-spacing:-.01em;font-weight:600;color:var(--text-primary, #1e293b);margin-top:1.5em;margin-bottom:.5em;line-height:1.3}.element-view .markdown-content>h1:first-child,.element-view .markdown-content>h2:first-child,.element-view .markdown-content>h3:first-child,.element-view .markdown-content>h4:first-child,.element-view .markdown-content>h5:first-child,.element-view .markdown-content>h6:first-child,.element-markdown-content>h1:first-child,.element-markdown-content>h2:first-child,.element-markdown-content>h3:first-child,.element-markdown-content>h4:first-child,.element-markdown-content>h5:first-child,.element-markdown-content>h6:first-child,.course-content-area .markdown-content>h1:first-child,.course-content-area .markdown-content>h2:first-child,.course-content-area .markdown-content>h3:first-child,.course-content-area .markdown-content>h4:first-child,.course-content-area .markdown-content>h5:first-child,.course-content-area .markdown-content>h6:first-child,.scw-bubble .markdown-content>h1:first-child,.scw-bubble .markdown-content>h2:first-child,.scw-bubble .markdown-content>h3:first-child,.scw-bubble .markdown-content>h4:first-child,.scw-bubble .markdown-content>h5:first-child,.scw-bubble .markdown-content>h6:first-child{margin-top:0}.element-view .markdown-content h3,.element-markdown-content h3,.course-content-area .markdown-content h3,.scw-bubble .markdown-content h3{font-size:1.35rem;font-weight:700;border-bottom:2px solid var(--old-gold, #E0BF3D);padding-bottom:.35em}.element-view .markdown-content h4,.element-markdown-content h4,.course-content-area .markdown-content h4,.scw-bubble .markdown-content h4{font-size:1.15rem;font-weight:600;color:var(--text-primary, #1e293b)}.element-view .markdown-content h5,.element-markdown-content h5,.course-content-area .markdown-content h5,.scw-bubble .markdown-content h5{font-size:1rem;font-weight:600;color:var(--text-secondary, #475569)}.element-view .markdown-content h6,.element-markdown-content h6,.course-content-area .markdown-content h6,.scw-bubble .markdown-content h6{font-size:.9rem;font-weight:600;color:var(--text-secondary, #64748b);text-transform:uppercase;letter-spacing:.05em}.element-view .markdown-content ul,.element-view .markdown-content ol,.element-markdown-content ul,.element-markdown-content ol,.course-content-area .markdown-content ul,.course-content-area .markdown-content ol,.scw-bubble .markdown-content ul,.scw-bubble .markdown-content ol{margin:.75rem 0 1rem;padding-left:1.75rem}.element-view .markdown-content li,.element-markdown-content li,.course-content-area .markdown-content li,.scw-bubble .markdown-content li{margin-bottom:.4em;line-height:1.6;color:var(--text-secondary, #475569)}.element-view .markdown-content li::marker,.element-markdown-content li::marker,.course-content-area .markdown-content li::marker,.scw-bubble .markdown-content li::marker{color:var(--old-gold, #E0BF3D)}.element-view .markdown-content ul ul,.element-view .markdown-content ul ol,.element-view .markdown-content ol ul,.element-view .markdown-content ol ol,.element-markdown-content ul ul,.element-markdown-content ul ol,.element-markdown-content ol ul,.element-markdown-content ol ol,.course-content-area .markdown-content ul ul,.course-content-area .markdown-content ul ol,.course-content-area .markdown-content ol ul,.course-content-area .markdown-content ol ol,.scw-bubble .markdown-content ul ul,.scw-bubble .markdown-content ul ol,.scw-bubble .markdown-content ol ul,.scw-bubble .markdown-content ol ol{margin-top:.35em;margin-bottom:.35em;padding-left:1.5rem}.element-view .markdown-content li input[type=checkbox],.element-markdown-content li input[type=checkbox],.course-content-area .markdown-content li input[type=checkbox],.scw-bubble .markdown-content li input[type=checkbox]{margin-right:.5em;accent-color:var(--old-gold, #E0BF3D)}.element-view .markdown-content .katex,.element-markdown-content .katex,.course-content-area .markdown-content .katex,.scw-bubble .markdown-content .katex{font-size:1.05em;color:var(--text-primary, #1e293b)}.element-view .markdown-content .katex-display,.element-markdown-content .katex-display,.course-content-area .markdown-content .katex-display,.scw-bubble .markdown-content .katex-display{margin:0;padding:.5rem 0;background:transparent;border:none;overflow-x:auto;text-align:center}.element-view .markdown-content .katex-display+p:empty,.element-view .markdown-content .katex-display+.markdown-empty-line,.element-view .markdown-content p:empty+.katex-display,.element-view .markdown-content .markdown-empty-line+.katex-display,.element-markdown-content .katex-display+p:empty,.element-markdown-content .katex-display+.markdown-empty-line,.element-markdown-content p:empty+.katex-display,.element-markdown-content .markdown-empty-line+.katex-display,.course-content-area .markdown-content .katex-display+p:empty,.course-content-area .markdown-content .katex-display+.markdown-empty-line,.course-content-area .markdown-content p:empty+.katex-display,.course-content-area .markdown-content .markdown-empty-line+.katex-display,.scw-bubble .markdown-content .katex-display+p:empty,.scw-bubble .markdown-content .katex-display+.markdown-empty-line,.scw-bubble .markdown-content p:empty+.katex-display,.scw-bubble .markdown-content .markdown-empty-line+.katex-display{display:none}.element-view .markdown-content .katex-display>.katex,.element-markdown-content .katex-display>.katex,.course-content-area .markdown-content .katex-display>.katex,.scw-bubble .markdown-content .katex-display>.katex{font-size:1.2em;color:var(--text-primary, #1e293b)}.element-view .markdown-content .math-error,.element-markdown-content .math-error,.course-content-area .markdown-content .math-error,.scw-bubble .markdown-content .math-error{color:var(--error, #ef4444);font-family:var(--font-mono, "Inconsolata", monospace);font-size:.9em;background:#ef44441a;padding:2px 6px;border-radius:4px}.mode-sme .sme-only{display:block!important}.mode-student .sme-only{display:none!important}*{scrollbar-width:none}*::-webkit-scrollbar{width:0!important;height:0!important}::selection{background-color:var(--accent-primary, #fad643);color:var(--text-primary, #302A24)}::-moz-selection{background-color:var(--accent-primary, #fad643);color:var(--text-primary, #302A24)}.chip{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;background:var(--surface-2, #f3f4f6);border:1px solid var(--border, #e5e7eb);font-size:12px}.link{background:none;border:none;padding:0;color:var(--text-primary);cursor:pointer}.markdown-content img{max-width:100%;height:auto;display:block;border-radius:8px;margin:.5rem auto}.insertion-card{position:relative}.insertion-card .icon-btn{position:absolute;top:4px;width:24px;height:24px;padding:0;display:flex;align-items:center;justify-content:center;border:1px solid var(--border, #e5e7eb);border-radius:4px;background:var(--surface-1, #faf8f0);color:var(--text-muted, #6b7280);font-size:12px;cursor:pointer;transition:background .2s,color .2s}.insertion-card .icon-btn:hover{background:var(--surface-2, #f3f4f6);color:var(--text-primary, #111827)}.insertion-card .collapse-btn{left:4px}.insertion-card .delete-btn{right:4px;display:none}.insertion-card:hover .delete-btn{display:flex}.element-view.is-preview-forced{position:relative}.element-view.is-preview-forced .element-preview-unpreview-btn{position:absolute;top:8px;right:8px;display:none;z-index:2}.element-view.is-preview-forced:hover .element-preview-unpreview-btn{display:inline-flex}.element-scroll-anchor{display:block;width:100%;height:0;margin:0;padding:0;pointer-events:none}.chain-hover{box-shadow:0 0 0 2px #facc1540;border-radius:10px}.chain-selected{box-shadow:0 0 0 2px #facc1580;border-radius:10px}.chain-part-hover{box-shadow:inset 0 0 0 2px #eab308a6;border-radius:10px}.course-structure-dashboard{display:flex;flex-direction:column;gap:16px}.structure-header{display:flex;align-items:center;justify-content:space-between;gap:16px}.structure-actions button{margin-left:8px}.structure-container{display:flex;flex-direction:column;gap:12px}.structure-unit-list{list-style:none;margin:0;padding-left:0}.structure-section-list,.structure-page-list,.structure-element-list{list-style:none;margin:0;padding-left:1rem}.structure-section-list .structure-section-list,.structure-section-list .structure-page-list,.structure-page-list .structure-element-list{padding-left:1rem}.structure-unit-card{background:var(--surface);border-radius:8px;padding:16px;box-shadow:var(--shadow-sm);display:flex;flex-direction:column;gap:12px}.structure-unit-header,.structure-section-header{display:flex;align-items:center;justify-content:space-between;gap:8px}.structure-unit-actions,.structure-section-actions{display:inline-flex;align-items:center;gap:6px}.structure-section-title{display:flex;align-items:center;gap:6px}.structure-unit-title{font-weight:700;text-decoration:underline;text-underline-offset:4px}.structure-section-name{font-weight:600;text-decoration:underline;text-underline-offset:3px}.structure-unit-actions button,.structure-inline-actions button{margin-left:6px}.structure-unit-toolbar{display:flex;gap:8px}.structure-kb-tag{margin-left:6px;font-size:.75rem;color:var(--accent)}.structure-hint{color:var(--muted);font-size:.9rem}.structure-inline-actions{display:inline-flex;gap:6px;margin-left:8px}.structure-inline-actions .danger,.structure-unit-actions .danger{color:var(--danger)}.structure-create-menu{position:relative;display:inline-flex}.structure-create-trigger{width:28px;height:28px;border-radius:999px;border:1px dashed rgba(148,163,184,.45);background:transparent;color:var(--muted);display:inline-flex;align-items:center;justify-content:center;font-size:18px;line-height:1;cursor:pointer;opacity:0;transform:scale(.9);transition:opacity .15s ease,transform .15s ease,background-color .15s ease}.structure-create-trigger:hover,.structure-create-trigger:focus-visible{background:#94a3b81f;outline:none}.structure-create-menu.open .structure-create-trigger,.structure-unit-card:hover .structure-create-trigger,.structure-section-node:hover>.structure-section-header .structure-create-trigger{opacity:1;transform:scale(1)}.structure-create-icon{font-weight:600}.structure-create-dropdown{position:absolute;top:34px;min-width:200px;padding:8px;border-radius:8px;background:var(--surface);border:1px solid rgba(148,163,184,.25);box-shadow:var(--shadow-md);display:flex;flex-direction:column;gap:6px;z-index:20}.structure-create-menu[data-align=left] .structure-create-dropdown{left:0}.structure-create-menu[data-align=right] .structure-create-dropdown{right:0}.structure-create-option{padding:8px;border-radius:6px;border:none;background:transparent;text-align:left;display:flex;flex-direction:column;gap:2px;cursor:pointer;color:inherit;transition:background-color .15s ease}.structure-create-option:hover,.structure-create-option:focus-visible{background:#94a3b826;outline:none}.structure-create-label{font-size:.9rem;font-weight:600}.structure-create-description{font-size:.75rem;color:var(--muted)}.structure-empty-message{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;background:#94a3b81f;padding:12px 14px;border-radius:8px;color:var(--muted-foreground, var(--muted))}.structure-empty-message button{background:var(--surface);border:1px solid rgba(148,163,184,.35);border-radius:6px;padding:6px 12px;cursor:pointer;transition:background-color .15s ease,border-color .15s ease}.structure-empty-message button:hover,.structure-empty-message button:focus-visible{background:#94a3b82e;border-color:#94a3b88c;outline:none}.sme-slots-panel{position:relative;padding:4px 6px}.sme-subtitle{display:flex;align-items:center;justify-content:flex-start;font-weight:600;color:var(--text-secondary, #525252)}.slots-loading{padding:12px;text-align:center;color:var(--text-secondary, #525252);font-size:12px}.slots-list{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:12px;padding:6px 0}.slot-item{position:relative;width:44px;height:44px;border-radius:50%;background:var(--surface-primary, #fdfbf7);border:2px solid var(--border-primary, #e0ded8);cursor:grab;transition:all .15s ease;-webkit-user-select:none;user-select:none;display:flex;align-items:center;justify-content:center;font-weight:700;color:var(--text-primary, #222)}.slot-item:active{cursor:grabbing}.slot-item.slot-dragging{opacity:.55;cursor:grabbing}.slot-item:hover{background:var(--surface-secondary, #f9f8f3);border-color:var(--accent-primary, #FACC15)}.slot-item.slot-active{border-color:var(--accent-primary, #FACC15);background:color-mix(in srgb,var(--accent-primary, #FACC15) 25%,var(--surface-primary, #fdfbf7));color:#111}.slot-item.slot-published{border-color:var(--old-gold, #CFB53B);border-style:dashed}.slot-item.slot-published.slot-active{background:color-mix(in srgb,var(--old-gold, #CFB53B) 20%,var(--surface-primary, #fdfbf7));color:#2f1f00}.slot-item:focus-visible{outline:2px solid var(--accent-primary, #FACC15);outline-offset:2px}.slot-letter{font-size:16px;font-weight:700;letter-spacing:.5px}.slot-info-panel{position:absolute;width:220px;padding:12px;border-radius:6px;border:1px solid transparent;box-shadow:0 4px 12px #0000001a;font-size:12px;line-height:1.4;z-index:10001;pointer-events:none}.slot-info-panel--default{background:var(--surface-primary, #fdfbf7);border-color:var(--border-primary, #e0ded8);color:var(--text-secondary, #525252)}.slot-info-panel--edit{background:var(--drab-dark-brown);border-color:var(--old-gold);color:var(--vanilla);box-shadow:0 6px 16px #00000073}.slot-info-panel.is-loading:after{content:"";display:block;width:100%;height:6px;margin-top:8px;border-radius:999px;background:linear-gradient(90deg,#0000000f,#0000001f,#0000000f);background-size:200% 100%;animation:slot-info-sheen 1.2s linear infinite}.slot-info-heading{display:flex;align-items:center;gap:8px;margin-bottom:8px;color:var(--text-primary, #222);font-weight:600}.slot-info-panel--edit .slot-info-heading{color:var(--vanilla)}.slot-info-letter{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:var(--surface-secondary, #f9f8f3);border:1px solid var(--border-primary, #e0ded8);color:var(--text-primary, #222);font-size:12px;font-weight:700}.slot-info-panel--edit .slot-info-letter{background:color-mix(in srgb,var(--vanilla) 18%,var(--drab-dark-brown));border-color:var(--old-gold);color:var(--vanilla)}.slot-info-title{font-size:13px;font-weight:600;color:var(--text-primary, #222)}.slot-info-panel--edit .slot-info-title{color:var(--vanilla)}.slot-info-pill{display:inline-flex;align-items:center;padding:2px 6px;border-radius:3px;border:1px solid var(--old-gold, #CFB53B);background:var(--old-gold, #CFB53B);color:var(--jet, #111);font-size:10px;font-weight:700;letter-spacing:.4px;text-transform:uppercase}.slot-info-pill.status-active{border-color:var(--accent-primary, #FACC15);background:var(--accent-primary, #FACC15);color:#000}.slot-info-panel--edit .slot-info-pill{border-color:var(--old-gold);background:var(--old-gold);color:var(--jet, #111)}.slot-info-panel--edit .slot-info-pill.status-active{border-color:var(--vanilla);background:var(--vanilla);color:var(--drab-dark-brown)}.slot-info-row{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12px;color:var(--text-secondary, #525252);margin-bottom:6px}.slot-info-panel--edit .slot-info-row{color:var(--vanilla)}.slot-info-row.last{margin-bottom:0}.slot-detail-label{color:var(--text-secondary, #525252);font-weight:600}.slot-detail-value{color:var(--text-primary, #222);font-weight:600}.slot-info-panel--edit .slot-detail-label,.slot-info-panel--edit .slot-detail-value{color:var(--vanilla)}.slot-context-menu{position:fixed;background:var(--surface-primary, #fdfbf7);border:1px solid var(--border-primary, #e0ded8);border-radius:6px;box-shadow:0 4px 12px #0003;z-index:10000;padding:4px;min-width:160px}.context-menu-item{display:block;width:100%;padding:8px 12px;background:none;border:none;color:var(--text-secondary, #525252);font-size:13px;text-align:left;cursor:pointer;border-radius:4px;transition:background .15s ease}.context-menu-item:hover:not(:disabled){background:var(--surface-secondary, #f9f8f3)}.context-menu-item:disabled{opacity:.5;cursor:not-allowed}.context-menu-item.context-menu-danger{color:#b3261e}.context-menu-item.context-menu-danger:hover:not(:disabled){background:#b3261e14;color:#7f1d1d}.app-header.sme-edit .slot-item{background:var(--drab-dark-brown);border-color:color-mix(in srgb,var(--vanilla) 20%,transparent);color:var(--vanilla)}.app-header.sme-edit .slot-item.slot-active{border-color:var(--old-gold);background:color-mix(in srgb,var(--old-gold) 20%,var(--drab-dark-brown))}.app-header.sme-edit .slot-item.slot-published{border-color:var(--old-gold)}@keyframes slot-info-sheen{0%{background-position:0% 0}to{background-position:200% 0}}.sme-dropdown{position:relative}.sme-dropdown-trigger{display:inline-flex;align-items:center;gap:6px;background:none;border:none;color:var(--text-primary);font-family:var(--font-serif);font-weight:700;font-size:16px;cursor:pointer;padding:4px 10px;border-radius:4px;transition:background .15s}.sme-dropdown-trigger:hover{background:var(--surface-secondary, #f9f8f3)}.user-name.admin{color:var(--old-gold);font-weight:700}.user-name.sme{font-weight:700}.role-badge.admin{display:inline-flex;align-items:center;padding:2px 6px;margin-left:4px;background:var(--old-gold);color:var(--jet);border:1px solid var(--old-gold);border-radius:3px;font-size:10px;font-weight:700}.role-badge.sme{display:inline-flex;align-items:center;padding:2px 6px;margin-left:4px;background:var(--accent-primary, #FACC15);color:#000;border:1px solid var(--accent-primary, #FACC15);border-radius:3px;font-size:10px;font-weight:700}.sme-dropdown-menu{position:absolute;top:calc(100% + 4px);right:0;min-width:220px;background:var(--surface-primary, #fdfbf7);border:1px solid var(--border-primary, #e0ded8);border-radius:6px;box-shadow:0 4px 12px #0000001a;z-index:1000;padding:4px}.sme-dropdown-submenu{position:absolute;right:100%;top:0;min-width:280px;max-height:320px;overflow:auto;background:var(--surface-primary, #fdfbf7);border:1px solid var(--border-primary, #e0ded8);border-radius:6px;box-shadow:0 4px 12px #0000001a;padding:6px;pointer-events:auto}.sme-list-item{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 8px;border-radius:6px}.sme-list-item:hover{background:var(--surface-secondary, #f9f8f3)}.sme-name{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sme-actions{display:inline-flex;gap:6px;opacity:.85}.sme-list-item:hover .sme-actions{opacity:1}.sme-chip{font-size:11px;opacity:.7}.sme-selected{outline:2px solid var(--accent-primary, #FACC15);outline-offset:2px}.sme-subtitle{font-size:12px;color:var(--muted, #6b7280);padding:4px 8px}.sme-submenu-busy{position:absolute;top:6px;right:8px;width:14px;height:14px;border:2px solid var(--border-primary, #e0ded8);border-top-color:var(--text-primary, #222);border-radius:50%;animation:smeSpin .8s linear infinite}@keyframes smeSpin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.toggle-item{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;font-size:13px;color:var(--text-secondary, #525252)}.app-header.sme-edit .sme-dropdown-trigger{color:var(--vanilla);background:color-mix(in srgb,var(--vanilla) 5%,transparent);border:1px solid color-mix(in srgb,var(--old-gold) 20%,transparent)}.app-header.sme-edit .sme-dropdown-trigger:hover{background:color-mix(in srgb,var(--old-gold) 15%,transparent);color:var(--vanilla)}.app-header.sme-edit .sme-dropdown-menu{background:var(--drab-dark-brown);border:1px solid var(--old-gold)}.app-header.sme-edit .sme-dropdown-menu .dropdown-item{color:var(--vanilla)}.app-header.sme-edit .sme-dropdown-menu .dropdown-item:hover{background:color-mix(in srgb,var(--vanilla) 12%,transparent)}.app-header.sme-edit .sme-dropdown-menu .dropdown-divider{background:color-mix(in srgb,var(--vanilla) 20%,transparent)}.app-header.sme-edit .sme-dropdown-submenu{background:var(--drab-dark-brown);border:1px solid var(--old-gold);box-shadow:0 8px 24px #00000073;color:var(--vanilla)}.app-header.sme-edit .sme-dropdown-submenu .sme-list-item{color:var(--vanilla)}.app-header.sme-edit .sme-dropdown-submenu .sme-list-item:hover{background:color-mix(in srgb,var(--vanilla) 12%,transparent)}.app-header.sme-edit .sme-dropdown-submenu .sme-name,.app-header.sme-edit .sme-dropdown-submenu .sme-subtitle{color:var(--vanilla)}.app-header.sme-edit .sme-dropdown-submenu .sme-actions{opacity:.9}.app-header.sme-edit .sme-dropdown-submenu .sme-actions .btn-outline{border-color:var(--old-gold);color:var(--vanilla)}.app-header.sme-edit .sme-dropdown-submenu .sme-actions .btn-danger{border-color:color-mix(in srgb,var(--error, #b3261e) 50%,transparent);color:var(--vanilla)}.app-header.sme-edit .sme-submenu-busy{border-color:color-mix(in srgb,var(--vanilla) 20%,transparent);border-top-color:var(--vanilla)}.app-header.sme-edit .user-name.admin{color:var(--old-gold)}.app-header.sme-edit .role-badge.admin{background:var(--old-gold);color:var(--jet);border-color:var(--old-gold)}.app-header{position:fixed!important;top:0!important;left:0;right:0;width:100%;z-index:11000;overflow:visible;background:transparent;backdrop-filter:blur(32px);-webkit-backdrop-filter:blur(32px)}.app-header.sme-edit{background:linear-gradient(180deg,var(--drab-dark-brown) 0%,var(--jet) 100%);color:var(--vanilla);backdrop-filter:none;-webkit-backdrop-filter:none;border-bottom:2px solid var(--old-gold);box-shadow:0 8px 32px #0006}.app-header.sme-edit .header-content{opacity:1;visibility:visible}.app-header.sme-edit .nav-button,.app-header.sme-edit .nav-button.icon,.app-header.sme-edit .segmented .seg-label,.app-header.sme-edit .segmented .seg-icon{color:var(--walnut-brown);background:var(--vanilla);padding:8px 12px;border-radius:6px;transition:all .2s ease;opacity:1;visibility:visible}.app-header.sme-edit .main-nav .nav-button{color:var(--walnut-brown);background:var(--vanilla);font-weight:600;opacity:1;visibility:visible}:root{--course-sidebar-width: 320px}.header-selection-info{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;padding:6px 16px;border-radius:999px;background:color-mix(in srgb,var(--vanilla, #FFF8E1) 80%,transparent);border:1px solid color-mix(in srgb,var(--border-primary, rgba(0,0,0,.25)) 35%,transparent);box-shadow:0 8px 18px #00000014;font-size:.9rem;color:var(--text-primary);line-height:1.2;min-height:36px;max-width:clamp(180px,32vw,420px);white-space:normal;text-align:center}body.has-course-sidebar .header-selection-info{max-width:clamp(240px,calc(100vw - var(--course-sidebar-width, 320px) - 160px),460px)}.header-selection-info .selection-line-value{font-weight:600;color:var(--text-primary);overflow:hidden;text-overflow:ellipsis;max-width:100%}.header-selection-info .selection-line-value.subtle{font-weight:500;font-size:.92em;color:var(--text-secondary)}@media(max-width:1024px){.header-selection-info{font-size:.8rem;padding:5px 12px}}@media(max-width:640px){.header-selection-info{display:none}}.app-header.sme-edit .nav-button.icon{color:var(--walnut-brown);background:var(--vanilla)}.app-header.sme-edit .nav-button svg,.app-header.sme-edit .nav-button.icon svg{stroke:currentColor;fill:none;opacity:1}.app-header.sme-edit .nav-button:hover,.app-header.sme-edit .segmented .seg-label:hover,.app-header.sme-edit .segmented .seg-icon:hover{background:color-mix(in srgb,var(--vanilla) 10%,transparent);color:var(--walnut-brown);border-radius:6px}.app-header.sme-edit .selection-item{color:var(--walnut-brown);background:var(--vanilla);opacity:1;visibility:visible;font-weight:500;border:1px solid color-mix(in srgb,var(--walnut-brown) 15%,transparent);outline:none;box-shadow:var(--shadow-sm);padding:6px 12px;border-radius:12px;display:inline-flex;align-items:center;gap:6px}.app-header.sme-edit .selection-item span{color:var(--walnut-brown);font-weight:600}.app-header.sme-edit .action-group svg{stroke:var(--walnut-brown);opacity:1;visibility:visible}.app-header.sme-edit .btn,.app-header.sme-edit .btn-outline{border-color:var(--old-gold);color:var(--vanilla);background:transparent}.app-header.sme-edit .btn:hover,.app-header.sme-edit .btn-outline:hover{background:var(--old-gold);color:var(--jet)}.app-header.sme-edit .btn-primary{background:var(--old-gold);color:var(--jet);border-color:var(--old-gold)}.app-header.sme-edit .btn-primary:hover{background:var(--old-gold);opacity:.9}.app-header.sme-edit:after{content:"";position:absolute;left:0;right:0;bottom:-12px;height:24px;pointer-events:none;background:radial-gradient(50% 80% at 50% 0%,color-mix(in srgb,var(--old-gold) 40%,transparent),transparent 70%);filter:blur(8px)}.app-header:before{content:"";position:absolute;top:0;left:0;right:0;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);height:100%;background:inherit;z-index:-1}.app-header .header-content{display:grid;grid-template-columns:auto 1fr auto;align-items:center;height:64px;gap:8px;padding-left:6px!important;position:relative}.app-header .course-logo{justify-self:start}.app-header .nav-region{display:inline-flex;align-items:center;gap:12px;min-width:0;flex-wrap:nowrap}.app-header .student-nav-region{display:grid;grid-template-columns:minmax(0,auto) minmax(220px,1fr);align-items:center;column-gap:12px;width:100%;min-width:0}.app-header .student-nav-region .main-nav{grid-column:1;min-width:0}.app-header .student-nav-region .header-selection-info{grid-column:2;justify-self:center;align-self:center}@media(max-width:1100px){.app-header .student-nav-region{grid-template-columns:minmax(0,auto) minmax(0,1fr)}}@media(max-width:860px){.app-header .student-nav-region{grid-template-columns:1fr;row-gap:6px}.app-header .student-nav-region .header-selection-info{justify-self:flex-start;align-items:flex-start;text-align:left}}.app-header .nav-region .main-nav{justify-self:start;min-width:0;display:inline-flex;align-items:center;gap:8px;flex-wrap:nowrap;flex:0 1 auto}.app-header .nav-region .main-nav .nav-button{flex:0 0 auto}.app-header .header-actions{justify-self:end}.app-header .header-actions{white-space:nowrap}.app-header .header-actions .user-chip{border:1px solid var(--border-primary);border-radius:999px;padding:6px 14px;background:color-mix(in srgb,var(--surface-secondary) 90%,transparent);color:var(--text-primary);font-weight:600;cursor:pointer;transition:background .15s,border .15s}.app-header .header-actions .user-chip:hover{background:color-mix(in srgb,var(--surface-secondary) 110%,transparent);border-color:var(--primary);color:var(--primary)}.app-header .selection-status{justify-self:start;margin-left:0}.app-header .selection-status{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.app-header .selection-status .selection-item{max-width:100%}.app-header .selection-status .selection-item span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;display:inline-block}.app-header .selection-status>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;display:inline-block}.app-header .selection-panel{display:inline-flex;align-items:center;gap:10px;min-width:0;flex-wrap:nowrap}.app-header .selection-panel .selection-status{margin-left:0;flex:0 1 auto;min-width:0}.app-header .selection-panel .selection-ai-indicator{flex:0 0 auto}.app-header .header-save-indicator{display:inline-flex;align-items:center;gap:6px;font-size:12px;line-height:1}.app-header .header-save-indicator span{font-size:12px;white-space:nowrap}.app-header .header-save-indicator svg{stroke:currentColor}.app-header.sme-edit .selection-status{display:inline-flex;align-items:center;gap:4px;color:var(--walnut-brown);background:var(--vanilla);font-weight:500;border:1px solid color-mix(in srgb,var(--walnut-brown) 15%,transparent);outline:none;box-shadow:var(--shadow-sm);padding:6px 12px;border-radius:12px}.nav-button{text-decoration:none}.main-nav.nav-condensed .nav-button:not(:first-child){display:none!important}body.icons-open .main-nav.nav-condensed .nav-button:not(:first-child){display:inline-flex!important}.main-nav.nav-expanded .nav-button:not(:first-child){display:inline-flex!important}.action-group{display:inline-flex;align-items:center;gap:12px}.selection-ai-indicator .ai-action-toggle,.action-group .ai-action-toggle{width:32px;height:32px}.action-group .ai-action-indicator,.selection-ai-indicator{--ai-indicator-size: 32px}.app-container .main-content{padding-top:76px!important}@media(max-width:1100px){.app-container .main-content{padding-top:88px!important}}.segmented{display:inline-flex;align-items:stretch;overflow:hidden;background:var(--surface-primary);border:1px solid var(--border-primary);border-radius:12px;box-shadow:var(--shadow-sm)}.segmented:hover{border-color:var(--border-interactive);box-shadow:var(--shadow-md)}.segmented .seg-label{appearance:none;border:0;background:transparent;cursor:pointer;padding:8px 14px;font:inherit;color:var(--text-primary)}.segmented .seg-label:hover{background:var(--surface-secondary)}.segmented .seg-icon{appearance:none;border:0;background:transparent;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;width:36px;min-width:36px;height:36px;color:var(--text-primary);border-left:1px solid var(--border-primary)}.segmented .seg-icon:hover{background:var(--accent-primary);color:#000;border-left-color:var(--accent-primary)}.segmented .seg-icon svg{stroke:currentColor}.course-logo{width:48px;height:48px;cursor:pointer;transition:transform .2s ease}.course-logo:hover{transform:scale(1.05)}@media(min-width:1024px){.app-header .header-content{padding-left:8px!important}}.segmented .seg-label:focus-visible,.segmented .seg-icon:focus-visible{outline:2px solid var(--accent-primary);outline-offset:2px;border-radius:6px}.course-title-tab,.nav-button:not(.icon):first-child,a[href="/course"],a[href="/student/course"],a[href="/sme/course"]{white-space:normal;word-wrap:break-word;overflow-wrap:break-word;hyphens:auto;-webkit-hyphens:auto;max-width:none;min-width:0;flex:1;line-height:1.3;overflow:visible;height:auto}.app-header .main-nav .nav-button:first-child{padding:4px 10px!important;min-width:0!important;height:auto;line-height:1.2}@media(min-width:600px)and (max-width:840px){.app-header .main-nav .nav-button:first-child{padding:2px 8px!important}}.header-title-text{display:inline-block;max-width:100%;white-space:normal;word-break:break-word;overflow-wrap:break-word;-webkit-hyphens:auto;hyphens:auto;line-height:inherit;will-change:font-size}.header-title-text.sme-title{overflow-wrap:normal;word-break:normal;-webkit-hyphens:none;hyphens:none;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}@media(max-width:599px){.app-header .header-content{height:auto;min-height:64px}.app-header .main-nav .nav-button:not(.icon){height:auto;align-items:center}.header-title-text{font-size:inherit!important;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}}.app-header.sme-edit .selection-status.floating{position:fixed;right:0;top:64px;background:var(--vanilla);color:var(--walnut-brown);border:1px solid color-mix(in srgb,var(--walnut-brown) 35%,var(--vanilla));border-top:none;border-right:none;border-radius:12px 0 0 12px;border-top-right-radius:0!important;border-bottom-right-radius:0!important;-webkit-clip-path:inset(15% 0 0 0 round 12px 0 0 12px);clip-path:inset(15% 0 0 0 round 12px 0 0 12px);background-clip:padding-box;padding:4px 12px;box-shadow:none;z-index:10900;width:fit-content;max-width:calc(100vw - 8px);margin:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;direction:ltr}@media(max-width:700px){.app-header.sme-edit .selection-status.floating{top:64px;padding:3px 8px;max-width:60vw}}@media(min-width:1191px){.course-title-tab,.nav-button:not(.icon):first-child,a[href="/course"],a[href="/student/course"],a[href="/sme/course"]{font-size:calc(1rem - 1px)}}@media(min-width:1101px){.app-header.sme-edit .selection-status:not(.floating){min-width:0;max-width:26vw;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}}.app-header:not(.sme-edit) .selection-status{display:none!important;right:-10px!important}@media(max-width:1190px){.course-title-tab,.nav-button:not(.icon):first-child,a[href="/course"],a[href="/student/course"],a[href="/sme/course"]{font-size:.875rem;overflow:visible;text-overflow:unset;white-space:normal;max-height:none}}.app-header .main-nav .course-title-tab,.app-header .main-nav .course-title-tab.active,.app-header .main-nav a[href="/course"],.app-header .main-nav a[href="/course"].active,.app-header .main-nav a[href="/student/course"],.app-header .main-nav a[href="/student/course"].active,.app-header .main-nav a[href="/sme/course"],.app-header .main-nav a[href="/sme/course"].active,.app-header .main-nav .nav-button:not(.icon):first-child{background:transparent!important;box-shadow:none!important}.header-title-wrap{display:inline-flex;align-items:center;gap:3px}.app-header .main-nav .nav-button:not(.icon) .header-title-wrap .hk-badge{width:0;height:22px;font-size:.8rem;opacity:0;transform:scale(.85);transition:opacity .2s ease-out,transform .2s ease-out,width .2s ease-out,margin .2s ease-out,font-size .2s ease-out;overflow:hidden;margin:0;padding:0;white-space:nowrap;color:var(--jet, #000)}.app-header .course-logo:hover~.nav-region .main-nav .nav-button:not(.icon) .header-title-wrap .hk-badge,.app-header .course-logo:hover~.main-nav .nav-button:not(.icon) .header-title-wrap .hk-badge{opacity:1;transform:scale(1);width:22px;margin-right:4px}.app-header .main-nav .nav-button:not(.icon) .header-title-wrap .hk-badge[data-count]:not([data-completed]){font-size:.8rem}.app-header .main-nav .nav-button:not(.icon) .header-title-wrap .hk-badge[data-digits="3"],.app-header .main-nav .nav-button:not(.icon) .header-title-wrap .hk-badge[data-digits="4"],.app-header .main-nav .nav-button:not(.icon) .header-title-wrap .hk-badge[data-digits="5"]{font-size:.6rem}.app-header .main-nav .nav-button:not(.icon) .header-title-wrap .hk-badge svg{width:12px;height:12px}.app-header:not(.sme-edit) .main-nav a[href="/course"].active,.app-header:not(.sme-edit) .main-nav a[href="/student/course"].active,.app-header:not(.sme-edit) .main-nav a[href="/sme/course"].active,.app-header:not(.sme-edit) .main-nav .course-title-tab.active{color:var(--text-secondary)!important}.app-header.sme-edit .main-nav a[href="/course"],.app-header.sme-edit .main-nav a[href="/course"].active,.app-header.sme-edit .main-nav a[href="/student/course"],.app-header.sme-edit .main-nav a[href="/student/course"].active,.app-header.sme-edit .main-nav a[href="/sme/course"],.app-header.sme-edit .main-nav a[href="/sme/course"].active,.app-header.sme-edit .main-nav .course-title-tab,.app-header.sme-edit .main-nav .course-title-tab.active{color:var(--walnut-brown)!important}.app-header .main-nav a[href="/course"]:hover,.app-header .main-nav a[href="/student/course"]:hover,.app-header .main-nav a[href="/sme/course"]:hover,.app-header .main-nav .course-title-tab:hover,.app-header .main-nav .nav-button:not(.icon):first-child:hover{background:transparent!important}.student-dropdown{position:relative}.student-dropdown-trigger{display:inline-flex;align-items:center;gap:6px;background:none;border:none;color:var(--text-primary);font-family:var(--font-serif);font-weight:700;font-size:16px;cursor:pointer;padding:4px 10px;border-radius:4px;transition:background .15s}.student-dropdown-trigger:hover{background:var(--surface-secondary, #f9f8f3)}.user-name{max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dropdown-arrow{transition:transform .2s}.dropdown-arrow.open{transform:rotate(180deg)}.student-dropdown-menu{position:absolute;top:calc(100% + 4px);right:0;min-width:220px;background:var(--surface-primary, #fdfbf7);border:1px solid var(--border-primary, #e0ded8);border-radius:6px;box-shadow:0 4px 12px #0000001a;z-index:1000;padding:4px}.dropdown-item{display:flex;align-items:center;gap:10px;width:100%;padding:8px 12px;background:none;border:none;color:var(--text-secondary, #525252);font-size:13px;text-align:left;cursor:pointer;border-radius:4px;transition:background .15s}.dropdown-item:hover{background:var(--surface-secondary, #f9f8f3)}.dropdown-item svg{flex-shrink:0;opacity:.7}.dropdown-divider{height:1px;background:var(--border-primary, #e0ded8);margin:4px 0}.logout-item{color:var(--error)}.logout-item:hover{background:var(--error-light)}.svt-wrap{position:relative;display:inline-flex;align-items:center;gap:8px}.svt-circle{width:28px;height:28px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:var(--surface-secondary, #f3f4f6);color:var(--text-primary, #111827);border:1px solid var(--border-primary, #e5e7eb);cursor:pointer}.svt-circle svg{width:16px;height:16px}.svt-circle:hover{background:var(--surface-tertiary, #e5e7eb)}.svt-clone{position:absolute;left:0;top:0;width:28px;height:28px;border-radius:50%;background:var(--surface-secondary, #f3f4f6);border:1px solid var(--border-primary, #e5e7eb);animation:svtShoot .42s cubic-bezier(.2,.6,.2,1);pointer-events:none}@keyframes svtShoot{0%{opacity:1;transform:translate(0) scale(1)}70%{opacity:1;transform:translate(-70px,-120px) scale(.95)}to{opacity:0;transform:translate(-70px,-120px) scale(.9)}}.svt-bar{position:relative}.svt-bar-track{position:relative;width:220px;height:8px;background:var(--vanilla);border-radius:999px;box-shadow:inset 0 0 0 1px var(--border-primary, #e5e7eb)}.svt-notch{position:absolute;top:50%;transform:translate(-50%,-50%);width:2px;height:12px;background:color-mix(in srgb,var(--walnut-brown, #3f3f46) 70%,transparent);pointer-events:none}.svt-bar-knob{position:absolute;top:50%;transform:translate(-50%,-50%);width:18px;height:18px;border-radius:50%;background:var(--cosmic-latte);border:2px solid var(--jet);cursor:grab}.svt-bar-knob:active{cursor:grabbing}.svt-bar-labels{position:absolute;top:10px;left:0;right:0;display:flex;justify-content:space-between;font-size:10px;color:var(--text-tertiary, #6b7280)}.app-header.sme-edit .svt-circle{background:var(--vanilla);color:var(--walnut-brown);border:1px solid color-mix(in srgb,var(--walnut-brown) 15%,transparent)}.app-header.sme-edit .svt-circle:hover{background:color-mix(in srgb,var(--vanilla) 90%,transparent);color:var(--walnut-brown)}.app-header.sme-edit .svt-clone{background:var(--vanilla);border:1px solid color-mix(in srgb,var(--walnut-brown) 15%,transparent)}.app-header.sme-edit .svt-bar-labels{color:var(--walnut-brown)}.app-header.sme-edit .svt-circle svg{stroke:currentColor}.auth-overlay{position:fixed;inset:0;background:color-mix(in srgb,var(--surface-secondary) 75%,rgba(0,0,0,.25));-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);display:flex;align-items:center;justify-content:center;z-index:9999;animation:fadeIn .3s ease-out}.auth-container{width:100%;max-width:400px;padding:2rem}.auth-card{background:var(--surface-primary);border:1px solid var(--border-primary);border-radius:12px;box-shadow:var(--shadow-xl);padding:2.5rem;animation:slideUp .4s ease-out}@keyframes slideUp{0%{transform:translateY(30px);opacity:0}to{transform:translateY(0);opacity:1}}.auth-header{text-align:center;margin-bottom:2rem}.auth-brand{display:flex;align-items:center;justify-content:center;gap:2px;font-size:2rem;line-height:1}.auth-brand h1{margin:0;line-height:1}.auth-logo{height:1.5em;width:auto;display:block;transform:translateY(-3px)}.auth-header h1{font-size:2rem;font-weight:700;color:var(--text-primary);margin:0 0 .5rem}.auth-header p{color:var(--text-secondary);margin:0;font-size:1rem}.auth-form{display:flex;flex-direction:column;gap:1.5rem}.form-group{display:flex;flex-direction:column;gap:.5rem}.form-group label{font-weight:600;color:var(--text-primary);font-size:.875rem}.form-group input{padding:.75rem;border:1px solid var(--border-primary);border-radius:8px;font-size:1rem;transition:border-color .2s ease,box-shadow .2s ease;background:var(--surface-secondary);color:var(--text-primary)}.form-group input:focus{outline:none;border-color:var(--accent-primary);box-shadow:0 0 0 3px rgba(var(--accent-primary-rgb),.15);background:var(--surface-primary)}.error-message{background:#fff5f5;border:1px solid #ffd9d9;color:#b42318;padding:.75rem;border-radius:8px;font-size:.875rem;text-align:center}.auth-button{background:var(--text-primary);color:#fff;border:none;padding:.875rem;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease}.auth-button:hover:not(:disabled){transform:translateY(-1px);box-shadow:var(--shadow-lg)}.auth-button:disabled{opacity:.6;cursor:not-allowed}.auth-footer{margin-top:2rem;text-align:center}.auth-footer p{color:var(--text-secondary);margin:0;font-size:.875rem}.toggle-button{background:var(--accent-primary);border:1px solid var(--accent-primary);color:#000;font-weight:700;cursor:pointer;margin-left:.5rem;text-decoration:none;font-size:.875rem;border-radius:6px;padding:2px 8px}.toggle-button:hover{background:transparent;color:var(--text-primary)}@media(max-width:480px){.auth-container{padding:1rem}.auth-card{padding:1.5rem}.auth-header h1{font-size:1.5rem}}.modal-overlay{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;animation:fadeIn .2s ease}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.modal-content{background:#fff;border-radius:16px;box-shadow:var(--shadow-xl);max-width:600px;width:90%;max-height:80vh;display:flex;flex-direction:column;animation:slideUp .3s ease}@keyframes slideUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:24px;border-bottom:1px solid var(--border-primary)}.modal-header h2{font-family:var(--font-serif);font-size:28px;color:var(--text-primary);margin:0}.modal-close{background:none;border:none;font-size:32px;color:var(--text-secondary);cursor:pointer;padding:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:8px;transition:all .2s}.modal-close:hover{background:var(--surface-secondary);color:var(--text-primary)}.modal-body{padding:24px;overflow-y:auto;flex:1}.courses-list{display:flex;flex-direction:column;gap:16px;margin-bottom:24px}.course-item{display:flex;justify-content:space-between;align-items:center;padding:20px;background:var(--surface-secondary);border-radius:12px;transition:all .2s}.course-item:hover{background:var(--surface-tertiary);transform:translate(4px)}.course-info{flex:1;margin-right:16px}.course-info h3{font-family:var(--font-serif);font-size:20px;color:var(--text-primary);margin:0 0 8px}.course-description{color:var(--text-secondary);font-size:14px;margin:0 0 8px;line-height:1.5}.course-enrolled{color:var(--text-tertiary);font-size:12px;margin:0}.no-courses{text-align:center;padding:40px 20px;color:var(--text-secondary);background:var(--surface-secondary);border-radius:12px;margin-bottom:24px}.no-courses p{margin:0;font-size:16px}.add-course-button-container{display:flex;justify-content:center;padding-top:16px;border-top:1px solid var(--border-primary)}.add-course-btn{display:flex;align-items:center;gap:8px}.add-course-form{padding:24px;background:var(--surface-secondary);border-radius:12px;margin-top:16px}.form-group{margin-bottom:16px}.form-group label{display:block;margin-bottom:8px;font-weight:600;color:var(--text-primary);font-size:14px}.form-group input{width:100%;padding:10px 14px;border:1px solid var(--border-primary);border-radius:8px;font-size:14px;font-family:inherit;transition:border-color .2s;background:#fff;color:var(--text-primary)}.form-group input:focus{outline:none;border-color:var(--accent-primary);box-shadow:0 0 0 3px rgba(var(--accent-primary-rgb),.1)}.message{padding:12px 16px;border-radius:8px;margin-bottom:16px;font-size:14px;animation:slideIn .3s ease}.message.success{background:#d4edda;color:#155724;border:1px solid #c3e6cb}.message.error{background:#f8d7da;color:#721c24;border:1px solid #f5c6cb}@keyframes slideIn{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.form-actions{display:flex;gap:12px;justify-content:flex-end}.btn{padding:10px 20px;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;transition:all .2s;border:none}.btn-primary{background:var(--accent-primary);color:#fff}.btn-primary:hover:not(:disabled){background:var(--accent-primary-darker);transform:translateY(-1px);box-shadow:var(--shadow-md)}.btn-secondary{background:var(--surface-secondary);color:var(--text-primary);border:1px solid var(--border-primary)}.btn-secondary:hover:not(:disabled){background:var(--surface-tertiary);transform:translateY(-1px);box-shadow:var(--shadow-md)}.btn:disabled{opacity:.5;cursor:not-allowed}@media(max-width:768px){.modal-content{width:95%;max-height:90vh}.course-item{flex-direction:column;align-items:flex-start;gap:12px}.course-item .btn{width:100%}}.fbx-menu{background:var(--surface-primary, #fff);border:1px solid var(--border-primary, #e5e7eb);border-radius:8px;box-shadow:0 8px 24px #0000002e;min-width:280px;max-width:360px}.fbx-inner{padding:12px;display:grid;gap:10px}.fbx-title{font-weight:700;font-size:14px}.fbx-row{display:grid;gap:6px}.fbx-label{font-size:12px;color:var(--text-secondary, #6b7280)}.fbx-input,.fbx-textarea{width:100%;font:inherit;border:1px solid var(--border-primary, #e5e7eb);border-radius:6px;padding:6px 8px;background:var(--surface-secondary, #fafaf9)}.fbx-textarea{min-height:72px;resize:vertical}.fbx-actions{display:flex;gap:8px;justify-content:end}.fbx-bubble-controls{opacity:0;transition:opacity .12s ease;position:absolute;top:-10px;right:8px;display:inline-flex;gap:6px;background:color-mix(in srgb,var(--surface-primary, #fff) 92%,transparent);border:1px solid var(--border-primary, #e5e7eb);border-radius:16px;padding:2px 4px;box-shadow:var(--shadow-sm, 0 2px 10px rgba(0,0,0,.08))}.scw-bubble:hover .fbx-bubble-controls{opacity:1}.fbx-ctrl-btn{appearance:none;border:0;background:transparent;cursor:pointer;padding:4px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;color:var(--text-secondary, #6b7280)}.fbx-ctrl-btn:hover{background:var(--surface-secondary, #f3f4f6);color:var(--text-primary, #111827)}.fbx-explain{display:inline-flex;align-items:center;gap:4px;margin-left:6px}.fbx-explain input{width:160px;font:inherit;padding:4px 8px;border-radius:12px;border:1px solid var(--border-primary, #e5e7eb);background:var(--surface-secondary, #fafafa)}.fbx-send{appearance:none;border:0;border-radius:12px;padding:4px 8px;cursor:pointer;background:var(--accent-primary, #fde68a);color:#000}.fbx-anchor{position:absolute;inset:0;pointer-events:none}.fbx-tip{position:absolute;top:-22px;right:10px;opacity:0;transition:opacity .12s ease;font-size:11px;color:var(--text-secondary, #6b7280);pointer-events:none;background:color-mix(in srgb,var(--surface-primary, #fff) 88%,transparent);padding:2px 6px;border-radius:8px;border:1px solid var(--border-primary, #e5e7eb)}.scw-bubble:hover .fbx-tip{opacity:1}.fbx-capture{position:absolute;inset:0;background:transparent}.fbx-ctx{background:var(--surface-primary, #fff);border:1px solid var(--border-primary, #e5e7eb);border-radius:10px;box-shadow:0 14px 40px #0003;width:320px;max-width:calc(100vw - 24px)}.fbx-rate-row{display:grid;grid-template-columns:repeat(7,1fr);align-items:center;justify-items:center;gap:2px;padding:2px}.fbx-rate{appearance:none;border:0;background:transparent;padding:6px;cursor:pointer;border-radius:10px;transition:transform .08s ease,background .12s ease}.fbx-rate:hover{background:var(--surface-secondary, #f3f4f6)}.fbx-rate.active{outline:2px solid var(--accent-primary, #fde68a);outline-offset:2px}.fbx-cat{display:grid;gap:6px}.fbx-chips{display:flex;flex-wrap:wrap;gap:6px}.chip{border:1px solid var(--border-primary, #e5e7eb);background:var(--surface-secondary, #fafafa);border-radius:999px;padding:4px 8px;font-size:12px;cursor:pointer}.chip-on{background:var(--accent-primary, #fde68a);color:#000;border-color:var(--accent-primary, #fde68a)}@font-face{font-display:block;font-family:KaTeX_AMS;font-style:normal;font-weight:400;src:url(/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2) format("woff2"),url(/assets/KaTeX_AMS-Regular-DMm9YOAa.woff) format("woff"),url(/assets/KaTeX_AMS-Regular-DRggAlZN.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Caligraphic;font-style:normal;font-weight:700;src:url(/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2) format("woff2"),url(/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff) format("woff"),url(/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Caligraphic;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2) format("woff2"),url(/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff) format("woff"),url(/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Fraktur;font-style:normal;font-weight:700;src:url(/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2) format("woff2"),url(/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff) format("woff"),url(/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Fraktur;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2) format("woff2"),url(/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff) format("woff"),url(/assets/KaTeX_Fraktur-Regular-CB_wures.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:normal;font-weight:700;src:url(/assets/KaTeX_Main-Bold-Cx986IdX.woff2) format("woff2"),url(/assets/KaTeX_Main-Bold-Jm3AIy58.woff) format("woff"),url(/assets/KaTeX_Main-Bold-waoOVXN0.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:italic;font-weight:700;src:url(/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2) format("woff2"),url(/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff) format("woff"),url(/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:italic;font-weight:400;src:url(/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2) format("woff2"),url(/assets/KaTeX_Main-Italic-BMLOBm91.woff) format("woff"),url(/assets/KaTeX_Main-Italic-3WenGoN9.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Main-Regular-B22Nviop.woff2) format("woff2"),url(/assets/KaTeX_Main-Regular-Dr94JaBh.woff) format("woff"),url(/assets/KaTeX_Main-Regular-ypZvNtVU.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Math;font-style:italic;font-weight:700;src:url(/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2) format("woff2"),url(/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff) format("woff"),url(/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Math;font-style:italic;font-weight:400;src:url(/assets/KaTeX_Math-Italic-t53AETM-.woff2) format("woff2"),url(/assets/KaTeX_Math-Italic-DA0__PXp.woff) format("woff"),url(/assets/KaTeX_Math-Italic-flOr_0UB.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_SansSerif;font-style:normal;font-weight:700;src:url(/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2) format("woff2"),url(/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff) format("woff"),url(/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_SansSerif;font-style:italic;font-weight:400;src:url(/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2) format("woff2"),url(/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff) format("woff"),url(/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_SansSerif;font-style:normal;font-weight:400;src:url(/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2) format("woff2"),url(/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff) format("woff"),url(/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Script;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Script-Regular-D3wIWfF6.woff2) format("woff2"),url(/assets/KaTeX_Script-Regular-D5yQViql.woff) format("woff"),url(/assets/KaTeX_Script-Regular-C5JkGWo-.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size1;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2) format("woff2"),url(/assets/KaTeX_Size1-Regular-C195tn64.woff) format("woff"),url(/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size2;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2) format("woff2"),url(/assets/KaTeX_Size2-Regular-oD1tc_U0.woff) format("woff"),url(/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size3;font-style:normal;font-weight:400;src:url(data:font/woff2;base64,d09GMgABAAAAAA4oAA4AAAAAHbQAAA3TAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAAgRQIDgmcDBEICo1oijYBNgIkA14LMgAEIAWJAAeBHAyBHBvbGiMRdnO0IkRRkiYDgr9KsJ1NUAf2kILNxgUmgqIgq1P89vcbIcmsQbRps3vCcXdYOKSWEPEKgZgQkprQQsxIXUgq0DqpGKmIvrgkeVGtEQD9DzAO29fM9jYhxZEsL2FeURH2JN4MIcTdO049NCVdxQ/w9NrSYFEBKTDKpLKfNkCGDc1RwjZLQcm3vqJ2UW9Xfa3tgAHz6ivp6vgC2yD4/6352ndnN0X0TL7seypkjZlMsjmZnf0Mm5Q+JykRWQBKCVCVPbARPXWyQtb5VgLB6Biq7/Uixcj2WGqdI8tGSgkuRG+t910GKP2D7AQH0DB9FMDW/obJZ8giFI3Wg8Cvevz0M+5m0rTh7XDBlvo9Y4vm13EXmfttwI4mBo1EG15fxJhUiCLbiiyCf/ZA6MFAhg3pGIZGdGIVjtPn6UcMk9A/UUr9PhoNsCENw1APAq0gpH73e+M+0ueyHbabc3vkbcdtzcf/fiy+NxQEjf9ud/ELBHAXJ0nk4z+MXH2Ev/kWyV4k7SkvpPc9Qr38F6RPWnM9cN6DJ0AdD1BhtgABtmoRoFCvPsBAumNm6soZG2Gk5GyVTo2sJncSyp0jQTYoR6WDvTwaaEcHsxHfvuWhHA3a6bN7twRKtcGok6NsCi7jYRrM2jExsUFMxMQYuJbMhuWNOumEJy9hi29Dmg5zMp/A5+hhPG19j1vBrq8JTLr8ki5VLPmG/PynJHVul440bxg5xuymHUFPBshC+nA9I1FmwbRBTNHAcik3Oae0cxKoI3MOriM42UrPe51nsaGxJ+WfXubAsP84aabUlQSJ1IiE0iPETLUU4CATgfXSCSpuRFRmCGbO+wSpAnzaeaCYW1VNEysRtuXCEL1kUFUbbtMv3Tilt/1c11jt3Q5bbMa84cpWipp8Elw3MZhOHsOlwwVUQM3lAR35JiFQbaYCRnMF2lxAWoOg2gyoIV4PouX8HytNIfLhqpJtXB4vjiViUI8IJ7bkC4ikkQvKksnOTKICwnqWSZ9YS5f0WCxmpgjbIq7EJcM4aI2nmhLNY2JIUgOjXZFWBHb+x5oh6cwb0Tv1ackHdKi0I9OO2wE9aogIOn540CCCziyhN+IaejtgAONKznHlHyutPrHGwCx9S6B8kfS4Mfi4Eyv7OU730bT1SCBjt834cXsf43zVjPUqqJjgrjeGnBxSG4aYAKFuVbeCfkDIjAqMb6yLNIbCuvXhMH2/+k2vkNpkORhR59N1CkzoOENvneIosjYmuTxlhUzaGEJQ/iWqx4dmwpmKjrwTiTGTCVozNAYqk/zXOndWxuWSmJkQpJw3pK5KX6QrLt5LATMqpmPAQhkhK6PUjzHUn7E0gHE0kPE0iKkolgkUx9SZmVAdDgpffdyJKg3k7VmzYGCwVXGz/tXmkOIp+vcWs+EMuhhvN0h9uhfzWJziBQmCREGSIFmQIkgVpAnSBRmC//6hkLZwaVhwxlrJSOdqlFtOYxlau9F2QN5Y98xmIAsiM1HVp2VFX+DHHGg6Ecjh3vmqtidX3qHI2qycTk/iwxSt5UzTmEP92ZBnEWTk4Mx8Mpl78ZDokxg/KWb+Q0QkvdKVmq3TMW+RXEgrsziSAfNXFMhDc60N5N9jQzjfO0kBKpUZl0ZmwJ41j/B9Hz6wmRaJB84niNmQrzp9eSlQCDDzazGDdVi3P36VZQ+Jy4f9UBNp+3zTjqI4abaFAm+GShVaXlsGdF3FYzZcDI6cori4kMxUECl9IjJZpzkvitAoxKue+90pDMvcKRxLl53TmOKCmV/xRolNKSqqUxc6LStOETmFOiLZZptlZepcKiAzteG8PEdpnQpbOMNcMsR4RR2Bs0cKFEvSmIjAFcnarqwUL4lDhHmnVkwu1IwshbiCcgvOheZuYyOteufZZwlcTlLgnZ3o/WcYdzZHW/WGaqaVfmTZ1aWCceJjkbZqsfbkOtcFlUZM/jy+hXHDbaUobWqqXaeWobbLO99yG5N3U4wxco0rQGGcOLASFMXeJoham8M+/x6O2WywK2l4HGbq1CoUyC/IZikQhdq3SiuNrvAEj0AVu9x2x3lp/xWzahaxidezFVtdcb5uEnzyl0ZmYiuKI0exvCd4Xc9CV1KB0db00z92wDPde0kukbvZIWN6jUWFTmPIC/Y4UPCm8UfDTFZpZNon1qLFTkBhxzB+FjQRA2Q/YRJT8pQigslMaUpFyAG8TMlXigiqmAZX4xgijKjRlGpLE0GdplRfCaJo0JQaSxNBk6ZmMzcya0FmrcisDdn0Q3HI2sWSppYigmlM1XT/kLQZSNpMJG0WkjYbSZuDpM1F0uYhFc1HxU4m1QJjDK6iL0S5uSj5rgXc3RejEigtcRBtqYPQsiTskmO5vosV+q4VGIKbOkDg0jtRrq+Em1YloaTFar3EGr1EUC8R0kus1Uus00usL97ABr2BjXoDm/QGNhuWtMVBKOwg/i78lT7hBsAvDmwHc/ao3vmUbBmhjeYySZNWvGkfZAgISDSaDo1SVpzGDsAEkF8B+gEapViUoZgUWXcRIGFZNm6gWbAKk0bp0k1MHG9fLYtV4iS2SmLEQFARzRcnf9PUS0LVn05/J9MiRRBU3v2IrvW974v4N00L7ZMk0wXP1409CHo/an8zTRHD3eSJ6m8D4YMkZNl3M79sqeuAsr/m3f+8/yl7A50aiAEJgeBeMWzu7ui9UfUBCe2TIqZIoOd/3/udRBOQidQZUERzb2/VwZN1H/Sju82ew2H2Wfr6qvfVf3hqwDvAIpkQVFy4B9Pe9e4/XvPeceu7h3dvO56iJPf0+A6cqA2ip18ER+iFgggiuOkvj24bby0N9j2UHIkgqIt+sVgfodC4YghLSMjSZbH0VR/6dMDrYJeKHilKTemt6v6kvzvn3/RrdWtr0GoN/xL+Sex/cPYLUpepx9cz/D46UPU5KXgAQa+NDps1v6J3xP1i2HtaDB0M9aX2deA7SYff//+gUCovMmIK/qfsFcOk+4Y5ZN97XlG6zebqtMbKgeRFi51vnxTQYBUik2rS/Cn6PC8ADR8FGxsRPB82dzfND90gIcshOcYUkfjherBz53odpm6TP8txlwOZ71xmfHHOvq053qFF/MRlS3jP0ELudrf2OeN8DHvp6ZceLe8qKYvWz/7yp0u4dKPfli3CYq0O13Ih71mylJ80tOi10On8wi+F4+LWgDPeJ30msSQt9/vkmHq9/Lvo2b461mP801v3W4xTcs6CbvF9UDdrSt+A8OUbpSh55qAUFXWznBBfdeJ8a4d7ugT5tvxUza3h9m4H7ptTqiG4z0g5dc0X29OcGlhpGFMpQo9ytTS+NViZpNdvU4kWx+LKxNY10kQ1yqGXrhe4/1nvP7E+nd5A92TtaRplbHSqoIdOqtRWti+fkB5/n1+/VvCmz12pG1kpQWsfi1ftlBobm0bpngs16CHkbIwdLnParxtTV3QYRlfJ0KFskH7pdN/YDn+yRuSd7sNH3aO0DYPggk6uWuXrfOc+fa3VTxFVvKaNxHsiHmsXyCLIE5yuOeN3/Jdf8HBL/5M6shjyhxHx9BjB1O0+4NLOnjLLSxwO7ukN4jMbOIcD879KLSi6Pk61Oqm2377n8079PXEEQ7cy7OKEC9nbpet118fxweTafpt69x/Bt8UqGzNQt7aelpc44dn5cqhwf71+qKp/Zf/+a0zcizOUWpl/iBcSXip0pplkatCchoH5c5aUM8I7/dWxAej8WicPL1URFZ9BDJelUwEwTkGqUhgSlydVes95YdXvhh9Gfz/aeFWvgVb4tuLbcv4+wLdutVZv/cUonwBD/6eDlE0aSiKK/uoH3+J1wDE/jMVqY2ysGufN84oIXB0sPzy8ollX/LegY74DgJXJR57sn+VGza0x3DnuIgABFM15LmajjjsNlYj+JEZGbuRYcAMOWxFkPN2w6Wd46xo4gVWQR/X4lyI/R6K/YK0110GzudPRW7Y+UOBGTfNNzHeYT0fiH0taunBpq9HEW8OKSaBGj21L0MqenEmNRWBAWDWAk4CpNoEZJ2tTaPFgbQYj8HxtFilErs3BTRwT8uO1NXQaWfIotchmPkAF5mMBAliEmZiOGVgCG9LgRzpscMAOOwowlT3JhusdazXGSC/hxR3UlmWVwWHpOIKheqONvjyhSiTHIkVUco5bnji8m//zL7PKaT1Vl5I6UE609f+gkr6MZKVyKc7zJRmCahLsdlyA5fdQkRSan9LgnnLEyGSkaKJCJog0wAgvepWBt80+1yKln1bMVtCljfNWDueKLsWwaEbBSfSPTEmVRsUcYYMnEjcjeyCZzBXK9E9BYBXLKjOSpUDR+nEV3TFSUdQaz+ot98QxgXwx0GQ+EEUAKB2qZPkQQ0GqFD8UPFMqyaCHM24BZmSGic9EYMagKizOw9Hz50DMrDLrqqLkTAhplMictiCAx5S3BIUQdeJeLnBy2CNtMfz6cV4u8XKoFZQesbf9YZiIERiHjaNodDW6LgcirX/mPnJIkBGDUpTBhSa0EIr38D5hCIszhCM8URGBqImoWjpvpt1ebu/v3Gl3qJfMnNM+9V+kiRFyROTPHQWOcs1dNW94/ukKMPZBvDi55i5CttdeJz84DLngLqjcdwEZ87bFFR8CIG35OAkDVN6VRDZ7aq67NteYqZ2lpT8oYB2CytoBd6VuAx4WgiAsnuj3WohG+LugzXiQRDeM3XYXlULv4dp5VFYC) format("woff2"),url(/assets/KaTeX_Size3-Regular-CTq5MqoE.woff) format("woff"),url(/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size4;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2) format("woff2"),url(/assets/KaTeX_Size4-Regular-BF-4gkZK.woff) format("woff"),url(/assets/KaTeX_Size4-Regular-DWFBv043.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Typewriter;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2) format("woff2"),url(/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff) format("woff"),url(/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf) format("truetype")}.katex{font: 1.21em KaTeX_Main,Times New Roman,serif;line-height:1.2;text-indent:0;text-rendering:auto}.katex *{-ms-high-contrast-adjust:none!important;border-color:currentColor}.katex .katex-version:after{content:"0.16.25"}.katex .katex-mathml{clip:rect(1px,1px,1px,1px);border:0;height:1px;overflow:hidden;padding:0;position:absolute;width:1px}.katex .katex-html>.newline{display:block}.katex .base{position:relative;white-space:nowrap;width:-webkit-min-content;width:-moz-min-content;width:min-content}.katex .base,.katex .strut{display:inline-block}.katex .textbf{font-weight:700}.katex .textit{font-style:italic}.katex .textrm{font-family:KaTeX_Main}.katex .textsf{font-family:KaTeX_SansSerif}.katex .texttt{font-family:KaTeX_Typewriter}.katex .mathnormal{font-family:KaTeX_Math;font-style:italic}.katex .mathit{font-family:KaTeX_Main;font-style:italic}.katex .mathrm{font-style:normal}.katex .mathbf{font-family:KaTeX_Main;font-weight:700}.katex .boldsymbol{font-family:KaTeX_Math;font-style:italic;font-weight:700}.katex .amsrm,.katex .mathbb,.katex .textbb{font-family:KaTeX_AMS}.katex .mathcal{font-family:KaTeX_Caligraphic}.katex .mathfrak,.katex .textfrak{font-family:KaTeX_Fraktur}.katex .mathboldfrak,.katex .textboldfrak{font-family:KaTeX_Fraktur;font-weight:700}.katex .mathtt{font-family:KaTeX_Typewriter}.katex .mathscr,.katex .textscr{font-family:KaTeX_Script}.katex .mathsf,.katex .textsf{font-family:KaTeX_SansSerif}.katex .mathboldsf,.katex .textboldsf{font-family:KaTeX_SansSerif;font-weight:700}.katex .mathitsf,.katex .mathsfit,.katex .textitsf{font-family:KaTeX_SansSerif;font-style:italic}.katex .mainrm{font-family:KaTeX_Main;font-style:normal}.katex .vlist-t{border-collapse:collapse;display:inline-table;table-layout:fixed}.katex .vlist-r{display:table-row}.katex .vlist{display:table-cell;position:relative;vertical-align:bottom}.katex .vlist>span{display:block;height:0;position:relative}.katex .vlist>span>span{display:inline-block}.katex .vlist>span>.pstrut{overflow:hidden;width:0}.katex .vlist-t2{margin-right:-2px}.katex .vlist-s{display:table-cell;font-size:1px;min-width:2px;vertical-align:bottom;width:2px}.katex .vbox{align-items:baseline;display:inline-flex;flex-direction:column}.katex .hbox{width:100%}.katex .hbox,.katex .thinbox{display:inline-flex;flex-direction:row}.katex .thinbox{max-width:0;width:0}.katex .msupsub{text-align:left}.katex .mfrac>span>span{text-align:center}.katex .mfrac .frac-line{border-bottom-style:solid;display:inline-block;width:100%}.katex .hdashline,.katex .hline,.katex .mfrac .frac-line,.katex .overline .overline-line,.katex .rule,.katex .underline .underline-line{min-height:1px}.katex .mspace{display:inline-block}.katex .clap,.katex .llap,.katex .rlap{position:relative;width:0}.katex .clap>.inner,.katex .llap>.inner,.katex .rlap>.inner{position:absolute}.katex .clap>.fix,.katex .llap>.fix,.katex .rlap>.fix{display:inline-block}.katex .llap>.inner{right:0}.katex .clap>.inner,.katex .rlap>.inner{left:0}.katex .clap>.inner>span{margin-left:-50%;margin-right:50%}.katex .rule{border:0 solid;display:inline-block;position:relative}.katex .hline,.katex .overline .overline-line,.katex .underline .underline-line{border-bottom-style:solid;display:inline-block;width:100%}.katex .hdashline{border-bottom-style:dashed;display:inline-block;width:100%}.katex .sqrt>.root{margin-left:.2777777778em;margin-right:-.5555555556em}.katex .fontsize-ensurer.reset-size1.size1,.katex .sizing.reset-size1.size1{font-size:1em}.katex .fontsize-ensurer.reset-size1.size2,.katex .sizing.reset-size1.size2{font-size:1.2em}.katex .fontsize-ensurer.reset-size1.size3,.katex .sizing.reset-size1.size3{font-size:1.4em}.katex .fontsize-ensurer.reset-size1.size4,.katex .sizing.reset-size1.size4{font-size:1.6em}.katex .fontsize-ensurer.reset-size1.size5,.katex .sizing.reset-size1.size5{font-size:1.8em}.katex .fontsize-ensurer.reset-size1.size6,.katex .sizing.reset-size1.size6{font-size:2em}.katex .fontsize-ensurer.reset-size1.size7,.katex .sizing.reset-size1.size7{font-size:2.4em}.katex .fontsize-ensurer.reset-size1.size8,.katex .sizing.reset-size1.size8{font-size:2.88em}.katex .fontsize-ensurer.reset-size1.size9,.katex .sizing.reset-size1.size9{font-size:3.456em}.katex .fontsize-ensurer.reset-size1.size10,.katex .sizing.reset-size1.size10{font-size:4.148em}.katex .fontsize-ensurer.reset-size1.size11,.katex .sizing.reset-size1.size11{font-size:4.976em}.katex .fontsize-ensurer.reset-size2.size1,.katex .sizing.reset-size2.size1{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size2.size2,.katex .sizing.reset-size2.size2{font-size:1em}.katex .fontsize-ensurer.reset-size2.size3,.katex .sizing.reset-size2.size3{font-size:1.1666666667em}.katex .fontsize-ensurer.reset-size2.size4,.katex .sizing.reset-size2.size4{font-size:1.3333333333em}.katex .fontsize-ensurer.reset-size2.size5,.katex .sizing.reset-size2.size5{font-size:1.5em}.katex .fontsize-ensurer.reset-size2.size6,.katex .sizing.reset-size2.size6{font-size:1.6666666667em}.katex .fontsize-ensurer.reset-size2.size7,.katex .sizing.reset-size2.size7{font-size:2em}.katex .fontsize-ensurer.reset-size2.size8,.katex .sizing.reset-size2.size8{font-size:2.4em}.katex .fontsize-ensurer.reset-size2.size9,.katex .sizing.reset-size2.size9{font-size:2.88em}.katex .fontsize-ensurer.reset-size2.size10,.katex .sizing.reset-size2.size10{font-size:3.4566666667em}.katex .fontsize-ensurer.reset-size2.size11,.katex .sizing.reset-size2.size11{font-size:4.1466666667em}.katex .fontsize-ensurer.reset-size3.size1,.katex .sizing.reset-size3.size1{font-size:.7142857143em}.katex .fontsize-ensurer.reset-size3.size2,.katex .sizing.reset-size3.size2{font-size:.8571428571em}.katex .fontsize-ensurer.reset-size3.size3,.katex .sizing.reset-size3.size3{font-size:1em}.katex .fontsize-ensurer.reset-size3.size4,.katex .sizing.reset-size3.size4{font-size:1.1428571429em}.katex .fontsize-ensurer.reset-size3.size5,.katex .sizing.reset-size3.size5{font-size:1.2857142857em}.katex .fontsize-ensurer.reset-size3.size6,.katex .sizing.reset-size3.size6{font-size:1.4285714286em}.katex .fontsize-ensurer.reset-size3.size7,.katex .sizing.reset-size3.size7{font-size:1.7142857143em}.katex .fontsize-ensurer.reset-size3.size8,.katex .sizing.reset-size3.size8{font-size:2.0571428571em}.katex .fontsize-ensurer.reset-size3.size9,.katex .sizing.reset-size3.size9{font-size:2.4685714286em}.katex .fontsize-ensurer.reset-size3.size10,.katex .sizing.reset-size3.size10{font-size:2.9628571429em}.katex .fontsize-ensurer.reset-size3.size11,.katex .sizing.reset-size3.size11{font-size:3.5542857143em}.katex .fontsize-ensurer.reset-size4.size1,.katex .sizing.reset-size4.size1{font-size:.625em}.katex .fontsize-ensurer.reset-size4.size2,.katex .sizing.reset-size4.size2{font-size:.75em}.katex .fontsize-ensurer.reset-size4.size3,.katex .sizing.reset-size4.size3{font-size:.875em}.katex .fontsize-ensurer.reset-size4.size4,.katex .sizing.reset-size4.size4{font-size:1em}.katex .fontsize-ensurer.reset-size4.size5,.katex .sizing.reset-size4.size5{font-size:1.125em}.katex .fontsize-ensurer.reset-size4.size6,.katex .sizing.reset-size4.size6{font-size:1.25em}.katex .fontsize-ensurer.reset-size4.size7,.katex .sizing.reset-size4.size7{font-size:1.5em}.katex .fontsize-ensurer.reset-size4.size8,.katex .sizing.reset-size4.size8{font-size:1.8em}.katex .fontsize-ensurer.reset-size4.size9,.katex .sizing.reset-size4.size9{font-size:2.16em}.katex .fontsize-ensurer.reset-size4.size10,.katex .sizing.reset-size4.size10{font-size:2.5925em}.katex .fontsize-ensurer.reset-size4.size11,.katex .sizing.reset-size4.size11{font-size:3.11em}.katex .fontsize-ensurer.reset-size5.size1,.katex .sizing.reset-size5.size1{font-size:.5555555556em}.katex .fontsize-ensurer.reset-size5.size2,.katex .sizing.reset-size5.size2{font-size:.6666666667em}.katex .fontsize-ensurer.reset-size5.size3,.katex .sizing.reset-size5.size3{font-size:.7777777778em}.katex .fontsize-ensurer.reset-size5.size4,.katex .sizing.reset-size5.size4{font-size:.8888888889em}.katex .fontsize-ensurer.reset-size5.size5,.katex .sizing.reset-size5.size5{font-size:1em}.katex .fontsize-ensurer.reset-size5.size6,.katex .sizing.reset-size5.size6{font-size:1.1111111111em}.katex .fontsize-ensurer.reset-size5.size7,.katex .sizing.reset-size5.size7{font-size:1.3333333333em}.katex .fontsize-ensurer.reset-size5.size8,.katex .sizing.reset-size5.size8{font-size:1.6em}.katex .fontsize-ensurer.reset-size5.size9,.katex .sizing.reset-size5.size9{font-size:1.92em}.katex .fontsize-ensurer.reset-size5.size10,.katex .sizing.reset-size5.size10{font-size:2.3044444444em}.katex .fontsize-ensurer.reset-size5.size11,.katex .sizing.reset-size5.size11{font-size:2.7644444444em}.katex .fontsize-ensurer.reset-size6.size1,.katex .sizing.reset-size6.size1{font-size:.5em}.katex .fontsize-ensurer.reset-size6.size2,.katex .sizing.reset-size6.size2{font-size:.6em}.katex .fontsize-ensurer.reset-size6.size3,.katex .sizing.reset-size6.size3{font-size:.7em}.katex .fontsize-ensurer.reset-size6.size4,.katex .sizing.reset-size6.size4{font-size:.8em}.katex .fontsize-ensurer.reset-size6.size5,.katex .sizing.reset-size6.size5{font-size:.9em}.katex .fontsize-ensurer.reset-size6.size6,.katex .sizing.reset-size6.size6{font-size:1em}.katex .fontsize-ensurer.reset-size6.size7,.katex .sizing.reset-size6.size7{font-size:1.2em}.katex .fontsize-ensurer.reset-size6.size8,.katex .sizing.reset-size6.size8{font-size:1.44em}.katex .fontsize-ensurer.reset-size6.size9,.katex .sizing.reset-size6.size9{font-size:1.728em}.katex .fontsize-ensurer.reset-size6.size10,.katex .sizing.reset-size6.size10{font-size:2.074em}.katex .fontsize-ensurer.reset-size6.size11,.katex .sizing.reset-size6.size11{font-size:2.488em}.katex .fontsize-ensurer.reset-size7.size1,.katex .sizing.reset-size7.size1{font-size:.4166666667em}.katex .fontsize-ensurer.reset-size7.size2,.katex .sizing.reset-size7.size2{font-size:.5em}.katex .fontsize-ensurer.reset-size7.size3,.katex .sizing.reset-size7.size3{font-size:.5833333333em}.katex .fontsize-ensurer.reset-size7.size4,.katex .sizing.reset-size7.size4{font-size:.6666666667em}.katex .fontsize-ensurer.reset-size7.size5,.katex .sizing.reset-size7.size5{font-size:.75em}.katex .fontsize-ensurer.reset-size7.size6,.katex .sizing.reset-size7.size6{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size7.size7,.katex .sizing.reset-size7.size7{font-size:1em}.katex .fontsize-ensurer.reset-size7.size8,.katex .sizing.reset-size7.size8{font-size:1.2em}.katex .fontsize-ensurer.reset-size7.size9,.katex .sizing.reset-size7.size9{font-size:1.44em}.katex .fontsize-ensurer.reset-size7.size10,.katex .sizing.reset-size7.size10{font-size:1.7283333333em}.katex .fontsize-ensurer.reset-size7.size11,.katex .sizing.reset-size7.size11{font-size:2.0733333333em}.katex .fontsize-ensurer.reset-size8.size1,.katex .sizing.reset-size8.size1{font-size:.3472222222em}.katex .fontsize-ensurer.reset-size8.size2,.katex .sizing.reset-size8.size2{font-size:.4166666667em}.katex .fontsize-ensurer.reset-size8.size3,.katex .sizing.reset-size8.size3{font-size:.4861111111em}.katex .fontsize-ensurer.reset-size8.size4,.katex .sizing.reset-size8.size4{font-size:.5555555556em}.katex .fontsize-ensurer.reset-size8.size5,.katex .sizing.reset-size8.size5{font-size:.625em}.katex .fontsize-ensurer.reset-size8.size6,.katex .sizing.reset-size8.size6{font-size:.6944444444em}.katex .fontsize-ensurer.reset-size8.size7,.katex .sizing.reset-size8.size7{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size8.size8,.katex .sizing.reset-size8.size8{font-size:1em}.katex .fontsize-ensurer.reset-size8.size9,.katex .sizing.reset-size8.size9{font-size:1.2em}.katex .fontsize-ensurer.reset-size8.size10,.katex .sizing.reset-size8.size10{font-size:1.4402777778em}.katex .fontsize-ensurer.reset-size8.size11,.katex .sizing.reset-size8.size11{font-size:1.7277777778em}.katex .fontsize-ensurer.reset-size9.size1,.katex .sizing.reset-size9.size1{font-size:.2893518519em}.katex .fontsize-ensurer.reset-size9.size2,.katex .sizing.reset-size9.size2{font-size:.3472222222em}.katex .fontsize-ensurer.reset-size9.size3,.katex .sizing.reset-size9.size3{font-size:.4050925926em}.katex .fontsize-ensurer.reset-size9.size4,.katex .sizing.reset-size9.size4{font-size:.462962963em}.katex .fontsize-ensurer.reset-size9.size5,.katex .sizing.reset-size9.size5{font-size:.5208333333em}.katex .fontsize-ensurer.reset-size9.size6,.katex .sizing.reset-size9.size6{font-size:.5787037037em}.katex .fontsize-ensurer.reset-size9.size7,.katex .sizing.reset-size9.size7{font-size:.6944444444em}.katex .fontsize-ensurer.reset-size9.size8,.katex .sizing.reset-size9.size8{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size9.size9,.katex .sizing.reset-size9.size9{font-size:1em}.katex .fontsize-ensurer.reset-size9.size10,.katex .sizing.reset-size9.size10{font-size:1.2002314815em}.katex .fontsize-ensurer.reset-size9.size11,.katex .sizing.reset-size9.size11{font-size:1.4398148148em}.katex .fontsize-ensurer.reset-size10.size1,.katex .sizing.reset-size10.size1{font-size:.2410800386em}.katex .fontsize-ensurer.reset-size10.size2,.katex .sizing.reset-size10.size2{font-size:.2892960463em}.katex .fontsize-ensurer.reset-size10.size3,.katex .sizing.reset-size10.size3{font-size:.337512054em}.katex .fontsize-ensurer.reset-size10.size4,.katex .sizing.reset-size10.size4{font-size:.3857280617em}.katex .fontsize-ensurer.reset-size10.size5,.katex .sizing.reset-size10.size5{font-size:.4339440694em}.katex .fontsize-ensurer.reset-size10.size6,.katex .sizing.reset-size10.size6{font-size:.4821600771em}.katex .fontsize-ensurer.reset-size10.size7,.katex .sizing.reset-size10.size7{font-size:.5785920926em}.katex .fontsize-ensurer.reset-size10.size8,.katex .sizing.reset-size10.size8{font-size:.6943105111em}.katex .fontsize-ensurer.reset-size10.size9,.katex .sizing.reset-size10.size9{font-size:.8331726133em}.katex .fontsize-ensurer.reset-size10.size10,.katex .sizing.reset-size10.size10{font-size:1em}.katex .fontsize-ensurer.reset-size10.size11,.katex .sizing.reset-size10.size11{font-size:1.1996142719em}.katex .fontsize-ensurer.reset-size11.size1,.katex .sizing.reset-size11.size1{font-size:.2009646302em}.katex .fontsize-ensurer.reset-size11.size2,.katex .sizing.reset-size11.size2{font-size:.2411575563em}.katex .fontsize-ensurer.reset-size11.size3,.katex .sizing.reset-size11.size3{font-size:.2813504823em}.katex .fontsize-ensurer.reset-size11.size4,.katex .sizing.reset-size11.size4{font-size:.3215434084em}.katex .fontsize-ensurer.reset-size11.size5,.katex .sizing.reset-size11.size5{font-size:.3617363344em}.katex .fontsize-ensurer.reset-size11.size6,.katex .sizing.reset-size11.size6{font-size:.4019292605em}.katex .fontsize-ensurer.reset-size11.size7,.katex .sizing.reset-size11.size7{font-size:.4823151125em}.katex .fontsize-ensurer.reset-size11.size8,.katex .sizing.reset-size11.size8{font-size:.578778135em}.katex .fontsize-ensurer.reset-size11.size9,.katex .sizing.reset-size11.size9{font-size:.6945337621em}.katex .fontsize-ensurer.reset-size11.size10,.katex .sizing.reset-size11.size10{font-size:.8336012862em}.katex .fontsize-ensurer.reset-size11.size11,.katex .sizing.reset-size11.size11{font-size:1em}.katex .delimsizing.size1{font-family:KaTeX_Size1}.katex .delimsizing.size2{font-family:KaTeX_Size2}.katex .delimsizing.size3{font-family:KaTeX_Size3}.katex .delimsizing.size4{font-family:KaTeX_Size4}.katex .delimsizing.mult .delim-size1>span{font-family:KaTeX_Size1}.katex .delimsizing.mult .delim-size4>span{font-family:KaTeX_Size4}.katex .nulldelimiter{display:inline-block;width:.12em}.katex .delimcenter,.katex .op-symbol{position:relative}.katex .op-symbol.small-op{font-family:KaTeX_Size1}.katex .op-symbol.large-op{font-family:KaTeX_Size2}.katex .accent>.vlist-t,.katex .op-limits>.vlist-t{text-align:center}.katex .accent .accent-body{position:relative}.katex .accent .accent-body:not(.accent-full){width:0}.katex .overlay{display:block}.katex .mtable .vertical-separator{display:inline-block;min-width:1px}.katex .mtable .arraycolsep{display:inline-block}.katex .mtable .col-align-c>.vlist-t{text-align:center}.katex .mtable .col-align-l>.vlist-t{text-align:left}.katex .mtable .col-align-r>.vlist-t{text-align:right}.katex .svg-align{text-align:left}.katex svg{fill:currentColor;stroke:currentColor;fill-rule:nonzero;fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;display:block;height:inherit;position:absolute;width:100%}.katex svg path{stroke:none}.katex img{border-style:none;max-height:none;max-width:none;min-height:0;min-width:0}.katex .stretchy{display:block;overflow:hidden;position:relative;width:100%}.katex .stretchy:after,.katex .stretchy:before{content:""}.katex .hide-tail{overflow:hidden;position:relative;width:100%}.katex .halfarrow-left{left:0;overflow:hidden;position:absolute;width:50.2%}.katex .halfarrow-right{overflow:hidden;position:absolute;right:0;width:50.2%}.katex .brace-left{left:0;overflow:hidden;position:absolute;width:25.1%}.katex .brace-center{left:25%;overflow:hidden;position:absolute;width:50%}.katex .brace-right{overflow:hidden;position:absolute;right:0;width:25.1%}.katex .x-arrow-pad{padding:0 .5em}.katex .cd-arrow-pad{padding:0 .55556em 0 .27778em}.katex .mover,.katex .munder,.katex .x-arrow{text-align:center}.katex .boxpad{padding:0 .3em}.katex .fbox,.katex .fcolorbox{border:.04em solid;box-sizing:border-box}.katex .cancel-pad{padding:0 .2em}.katex .cancel-lap{margin-left:-.2em;margin-right:-.2em}.katex .sout{border-bottom-style:solid;border-bottom-width:.08em}.katex .angl{border-right:.049em solid;border-top:.049em solid;box-sizing:border-box;margin-right:.03889em}.katex .anglpad{padding:0 .03889em}.katex .eqn-num:before{content:"(" counter(katexEqnNo) ")";counter-increment:katexEqnNo}.katex .mml-eqn-num:before{content:"(" counter(mmlEqnNo) ")";counter-increment:mmlEqnNo}.katex .mtr-glue{width:50%}.katex .cd-vert-arrow{display:inline-block;position:relative}.katex .cd-label-left{display:inline-block;position:absolute;right:calc(50% + .3em);text-align:left}.katex .cd-label-right{display:inline-block;left:calc(50% + .3em);position:absolute;text-align:right}.katex-display{display:block;margin:1em 0;text-align:center}.katex-display>.katex{display:block;text-align:center;white-space:nowrap}.katex-display>.katex>.katex-html{display:block;position:relative}.katex-display>.katex>.katex-html>.tag{position:absolute;right:0}.katex-display.leqno>.katex>.katex-html>.tag{left:0;right:auto}.katex-display.fleqn>.katex{padding-left:2em;text-align:left}body{counter-reset:katexEqnNo mmlEqnNo}img,video,canvas,svg,iframe{max-width:100%;height:auto}pre,code,kbd,samp{white-space:pre-wrap;word-break:break-word}*{overflow-wrap:anywhere}.app-header .sidebar-tab,.sidebar-tab-portal{display:none!important}@media(max-width:900px){.header-content,.app-header .header-content{padding-left:12px!important;padding-right:12px!important}.main-nav{overflow-x:auto;-webkit-overflow-scrolling:touch;flex-wrap:nowrap;gap:2px}.main-nav::-webkit-scrollbar{display:none}}@media(max-width:1100px){body:not(.sidebar-open) .app-header .sidebar-tab{display:inline-flex!important}body.sidebar-open .app-header .sidebar-tab{display:none!important}body:not(.sidebar-open) .sidebar-tab-portal{display:inline-flex!important}body.sidebar-open .sidebar-tab-portal{display:none!important}.app-header .sidebar-tab,.sidebar-tab-portal{position:fixed!important;left:0!important;bottom:16px!important;z-index:10900;display:inline-flex;align-items:center;gap:6px;padding:6px;width:28px;height:28px;background:var(--vanilla);color:var(--walnut-brown);border:1px solid color-mix(in srgb,var(--walnut-brown) 35%,var(--vanilla));border-radius:0 12px 12px 0;border-left:none;font-weight:600;font-size:12px;line-height:1.1;cursor:pointer;transition:all .2s ease}.app-header .sidebar-tab span,.sidebar-tab-portal span{font-weight:600;font-size:12px;width:0;opacity:0;overflow:hidden;white-space:nowrap;transition:all .2s ease}.app-header .sidebar-tab:hover span,.sidebar-tab-portal:hover span{width:auto;opacity:1;margin-left:2px}.app-header .sidebar-tab:hover,.sidebar-tab-portal:hover{width:auto}.app-header .sidebar-tab svg,.sidebar-tab-portal svg{stroke:currentColor;flex-shrink:0;width:16px;height:16px}.app-header .header-content{grid-template-columns:auto 1fr auto!important;gap:6px!important;min-width:0}.app-header .nav-region{flex-wrap:wrap;align-items:center;row-gap:6px}.app-header .selection-panel{order:2}.app-header .sidebar-tab{order:3}.app-header .main-nav{min-width:0;overflow-x:auto;-webkit-overflow-scrolling:touch;flex-wrap:nowrap;gap:6px}.app-header .main-nav::-webkit-scrollbar{display:none}.app-header .header-actions{min-width:max-content}}@media(max-width:600px){.app-header .header-content{height:auto!important;min-height:64px;display:flex!important;flex-direction:row!important;align-items:center;justify-content:space-between;gap:12px!important;padding:10px 12px!important;padding-top:calc(10px + env(safe-area-inset-top,0px))!important}.app-header .course-logo,.course-logo{width:44px!important;height:44px!important;min-width:44px!important;max-width:44px!important;flex-shrink:0!important;flex-grow:0!important;flex-basis:44px!important}.app-header .main-nav,.main-nav{flex:1 1 auto!important;min-width:0!important;order:0!important}.app-header .nav-region{flex:1 1 auto!important;min-width:0!important;display:flex!important;align-items:center!important;gap:8px!important;order:1!important}.app-header .header-actions{flex-shrink:0!important;flex-grow:0!important;min-width:max-content!important;gap:8px!important;order:2!important}.nav-button{min-width:0;padding:7px 12px;height:auto;min-height:36px;font-size:14px}.nav-button.icon{min-width:36px!important;width:36px!important;height:36px!important;padding:7px!important;flex-shrink:0!important}.nav-button svg{width:20px!important;height:20px!important}.action-group svg{width:20px!important;height:20px!important}.app-header .main-nav .nav-button:first-child{max-width:100%;font-size:1rem;line-height:1.3}.header-title-text{font-size:1rem!important;line-height:1.3}.action-group{gap:8px!important;flex-shrink:0!important;flex-grow:0!important;display:inline-flex!important;align-items:center!important}.user-name{max-width:100px!important;overflow:hidden;text-overflow:ellipsis}.student-dropdown,.sme-dropdown{flex-shrink:0!important;flex-grow:0!important}.student-dropdown-trigger,.sme-dropdown-trigger{padding:7px 10px!important;font-size:14px!important;flex-shrink:0!important;white-space:nowrap!important}.dropdown-arrow{flex-shrink:0!important;flex-grow:0!important;min-width:12px!important}.role-badge{flex-shrink:0!important;flex-grow:0!important}.main-nav{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:8px!important;position:relative!important}.main-nav .nav-button:first-child{flex:1 1 auto!important;min-width:0!important}.main-nav .nav-button.icon{flex-shrink:0!important;flex-grow:0!important}.app-header:not(.sme-user) .main-nav .nav-button:not(:first-child){display:none!important}.app-header:not(.sme-user) .main-nav:hover .nav-button:not(:first-child),.app-header:not(.sme-user) .main-nav:focus-within .nav-button:not(:first-child){display:inline-flex!important}.app-header:not(.sme-user) .main-nav:hover .nav-button:first-child,.app-header:not(.sme-user) .main-nav:focus-within .nav-button:first-child{display:none!important}.main-nav.nav-condensed .nav-button:not(:first-child){display:none!important}.main-nav.nav-condensed:hover .nav-button:not(:first-child),.main-nav.nav-condensed:focus-within .nav-button:not(:first-child){display:inline-flex!important}.main-nav.nav-condensed:hover .nav-button:first-child,.main-nav.nav-condensed:focus-within .nav-button:first-child{display:none!important}.main-nav.nav-expanded .nav-button:not(:first-child){display:inline-flex!important}.student-dropdown-menu,.sme-dropdown-menu,.sme-dropdown-submenu{min-width:0!important;width:min(92vw,320px)!important;max-width:92vw!important}.app-header.sme-edit .selection-status.floating{position:fixed!important;right:0!important;top:64px!important;background:var(--vanilla);color:var(--walnut-brown);border:1px solid color-mix(in srgb,var(--walnut-brown) 35%,var(--vanilla));border-top-right-radius:0!important;border-bottom-right-radius:0!important;border-radius:12px 0 0 12px;-webkit-clip-path:inset(15% 0 0 0 round 12px 0 0 12px);clip-path:inset(15% 0 0 0 round 12px 0 0 12px);padding:4px 12px;z-index:10900}.app-header.sme-user .svt-circle{position:fixed!important;left:0!important;top:64px!important;z-index:10900;display:inline-flex;align-items:center;padding:0 1px;height:32px;border-radius:0 12px 12px 0;-webkit-clip-path:inset(15% 0 0 0 round 0 12px 12px 0);clip-path:inset(15% 0 0 0 round 0 12px 12px 0);background:var(--vanilla);color:var(--walnut-brown);border:1px solid color-mix(in srgb,var(--walnut-brown) 35%,var(--vanilla))}.app-header.sme-user .svt-circle svg{stroke:currentColor}}@media(max-width:1100px){.has-course-sidebar .main-content{margin-left:0!important}.has-course-sidebar .main-content{width:100%!important}.course-sidebar{transform:translate(-100%);opacity:0;pointer-events:none}.course-content-area{padding:0 12px;max-width:100%!important}body:not(.sidebar-open) .sidebar-resize-handle{display:none!important}}@media(min-width:600px)and (max-width:1200px){.course-content-area{max-width:100%!important}.course-content-area .card{max-width:100%}.course-content-area pre,.course-content-area code{max-width:100%;overflow-x:auto}}@media(max-width:900px){.course-bottom-controls{grid-template-columns:1fr;grid-template-rows:auto auto;row-gap:12px;padding:10px 12px;padding-bottom:calc(10px + env(safe-area-inset-bottom,0px))}.course-bottom-controls .selection-status{min-width:0!important;width:100%}.course-bottom-controls .action-controls{grid-auto-flow:row;grid-template-columns:1fr;grid-template-rows:auto;gap:8px;margin-right:0}.course-bottom-controls .context-input-section{grid-template-columns:1fr;row-gap:6px}.course-bottom-controls .context-label{justify-self:start}.course-bottom-controls .buttons-grid,.course-bottom-controls .button-group{display:grid;grid-auto-flow:row}}@media(max-width:600px){.main-content{padding-bottom:calc(120px + env(safe-area-inset-bottom,0px))!important}}@media(max-width:600px){.svt-wrap{flex-shrink:0!important;flex-grow:0!important;min-width:fit-content!important}.svt-bar-track{width:min(56vw,220px)!important}.svt-circle{width:28px!important;height:28px!important;min-width:28px!important;padding:0!important;gap:0!important;flex-shrink:0!important;flex-grow:0!important}.svt-circle svg{width:16px!important;height:16px!important}.app-header.sme-edit .svt-circle:after,.app-header.sme-user:not(.sme-edit) .svt-circle:after{content:none!important}.app-header.sme-edit .svt-circle{outline:2px solid var(--old-gold);background:var(--vanilla);color:var(--walnut-brown)}.app-header.sme-user:not(.sme-edit) .svt-circle{outline:2px solid color-mix(in srgb,var(--text-primary) 60%,transparent);background:var(--cosmic-latte);color:var(--text-primary)}}@media(max-width:900px){.modal-content{width:96vw!important;max-width:96vw!important;border-radius:12px}.modal-body{max-height:calc(90vh - 120px)}.students-modal{min-width:0!important;width:96vw!important;max-width:96vw!important}}@media(max-width:900px){table{display:block;width:100%!important;overflow-x:auto;-webkit-overflow-scrolling:touch;border-collapse:collapse}thead,tbody,tr{width:100%}}@media(max-width:900px){h1{font-size:clamp(1.5rem,5.5vw,2rem)}h2{font-size:clamp(1.25rem,4.5vw,1.5rem)}h3{font-size:clamp(1.05rem,4vw,1.25rem)}p,.course-content-area p,.course-content-area pre{max-width:100%!important}}@media(max-width:480px){pre{padding:12px}}@media(max-width:900px){.scw-right{width:min(92vw,400px)}}@media(max-width:600px){.scw-container.scw-float,.scw-container.scw-right,.scw-container.scw-window{inset:auto 0 0!important}.scw-float{left:0!important;right:0!important;bottom:0!important}.scw-container.scw-float .scw-surface,.scw-container.scw-right .scw-surface,.scw-container.scw-window .scw-surface{width:100vw!important;max-width:100vw!important;height:min(70svh,calc(100svh - 64px));border-radius:12px 12px 0 0}.scw-container.scw-float .scw-resize-top,.scw-container.scw-right .scw-resize-top,.scw-container.scw-window .scw-resize-top{display:block!important;height:6px;cursor:ns-resize}.scw-container.scw-float .scw-resize-right,.scw-container.scw-float .scw-resize-left,.scw-container.scw-float .scw-resize-bottom,.scw-container.scw-right .scw-resize-right,.scw-container.scw-right .scw-resize-left,.scw-container.scw-right .scw-resize-bottom,.scw-container.scw-window .scw-resize-right,.scw-container.scw-window .scw-resize-left,.scw-container.scw-window .scw-resize-bottom{display:none!important}.scw-right .scw-header{margin-top:0!important}.scw-actions .scw-actions-horizontal>.scw-btn-wrapper:nth-of-type(3){display:none!important}}@media(max-width:520px){.scm-submenu,.scm-menu,.fbx-menu,.fbx-ctx{min-width:0!important;width:min(92vw,320px)}}@media(max-width:900px){.container{padding-left:max(12px,3vw);padding-right:max(12px,3vw)}}.markdown-content img,.markdown-content video,.markdown-content iframe{max-width:100%;height:auto}@media(max-width:900px){.progress-item{-webkit-line-clamp:unset}.progress-item:not(.section-title-button){display:block}.course-sidebar .section-title-button{display:flex}}.chip,.badge,.hk-badge{min-width:0}@media(max-width:600px){.course-selection-info{left:8px;right:8px;max-width:calc(100vw - 16px)}}@media(max-width:600px){.hero{min-height:100svh}.milestones-container{width:100%!important;height:auto!important}.milestone-panel{width:100%!important;height:auto;min-height:100svh;padding:24px}}@media(max-width:600px){.jsonviz-matrix table{min-width:0!important;width:100%!important}}@media(max-width:600px){.pillars-image-container{position:static!important;height:auto!important}.image-wrapper{width:100%!important}}@media(max-width:1100px){body.sidebar-open .course-sidebar{transform:translate(0)!important;opacity:1!important;pointer-events:auto!important;position:fixed!important;top:0!important;left:0!important;height:100vh!important;z-index:1000!important;background:var(--surface-primary, #fff)!important;box-shadow:2px 0 8px #00000026!important}body.sidebar-open:before{content:"";position:fixed;inset:0;background:#0000004d;z-index:999;pointer-events:auto}}
