:root{--bg:#f4f6f9;--surface:#fff;--surface-2:#f8f9fb;--line:#e4e8ee;--line-strong:#cfd6df;--text:#1d2530;--muted:#6b7583;--accent:#1f6feb;--accent-weak:#e8f0fe;--danger:#b42318;--warn:#b54708;--ok:#067647;--radius:10px;--shadow:0 1px 2px #1018280d, 0 8px 24px #1018280f;--shadow-lg:0 12px 40px #10182829;--topbar-h:56px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}*{box-sizing:border-box}html,body,#root{min-height:100%}body{color:var(--text);background:var(--bg);-webkit-font-smoothing:antialiased;margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Noto Sans SC,PingFang SC,Microsoft YaHei,sans-serif;font-size:14px;line-height:1.55}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}h1,h2,h3{color:var(--text);line-height:1.3}h1{margin:0 0 6px;font-size:24px}h2{margin:0;font-size:17px}h3{font-size:15px}p{margin:8px 0}code,.mono{font-family:ui-monospace,SFMono-Regular,Consolas,Liberation Mono,monospace;font-size:.92em}.muted{color:var(--muted)}.small{font-size:12px}.narrow{max-width:440px}.wide{width:100%}.push{margin-left:auto}.warn{color:var(--warn)}.bad{color:var(--danger)}.btn{border:1px solid var(--line-strong);background:var(--surface);color:var(--text);font:inherit;cursor:pointer;white-space:nowrap;border-radius:8px;justify-content:center;align-items:center;gap:6px;padding:8px 14px;font-size:13.5px;line-height:1.2;text-decoration:none;transition:background .12s,border-color .12s,color .12s;display:inline-flex}.btn:hover{background:var(--surface-2);text-decoration:none}.btn.primary{background:var(--accent);border-color:var(--accent);color:#fff}.btn.primary:hover{background:#1a5fd0;border-color:#1a5fd0}.btn.ghost{background:0 0;border-color:#0000}.btn.ghost:hover{background:#1018280d}.btn.small{padding:5px 10px;font-size:12.5px}.btn.tiny{border-radius:6px;padding:2px 8px;font-size:12px}.btn.large{padding:11px 20px;font-size:15px}.btn:disabled{opacity:.55;cursor:not-allowed}input,select,textarea{font:inherit;color:inherit;background:var(--surface);border:1px solid var(--line-strong);border-radius:8px;min-width:0;padding:8px 10px}input:focus,select:focus,textarea:focus{border-color:var(--accent);outline:2px solid #1f6feb2e}input[type=file]{background:var(--surface-2);padding:7px 8px}.field{color:var(--muted);flex-direction:column;flex:1;gap:5px;min-width:0;font-size:12.5px;display:flex}.field>span{font-weight:500}.field input,.field select{width:100%}.field.narrow-field{flex:0 220px}.inline-fields{flex-wrap:wrap;gap:12px;display:flex}.form-error,.error-text{color:var(--danger);margin:0;font-size:13px}.app-shell{flex-direction:column;min-height:100dvh;display:flex}.topbar{z-index:50;height:var(--topbar-h);-webkit-backdrop-filter:saturate(180%)blur(10px);backdrop-filter:saturate(180%)blur(10px);border-bottom:1px solid var(--line);background:#ffffffeb;align-items:center;gap:18px;padding:0 22px;display:flex;position:sticky;top:0}.brand{letter-spacing:-.02em;color:var(--text);font-size:18px;font-weight:750;text-decoration:none}.brand span{color:var(--accent)}.brand:hover{text-decoration:none}.main-nav{align-items:center;gap:4px;display:flex}.main-nav a{color:var(--muted);border-radius:7px;padding:6px 10px;font-size:13.5px;text-decoration:none}.main-nav a:hover{background:var(--surface-2);color:var(--text)}.main-nav a.active{color:var(--accent);background:var(--accent-weak);font-weight:600}.nav-toggle{cursor:pointer;background:0 0;border:0;border-radius:6px;padding:4px 8px;font-size:18px;display:none}.account{align-items:center;gap:10px;margin-left:auto;display:flex}.account-name{text-overflow:ellipsis;white-space:nowrap;max-width:160px;font-size:13px;overflow:hidden}.app-main{flex:1;width:100%;max-width:1240px;margin:0 auto;padding:24px 22px 40px}.global-banner{color:#7a4b00;text-align:center;background:#fff7e6;border-bottom:1px solid #f0d9a8;padding:8px 22px;font-size:13px}.page-loading{color:var(--muted);align-items:center;gap:8px;padding:28px 4px;font-size:13.5px;display:flex}.spinner{border:2px solid var(--line-strong);border-top-color:var(--accent);border-radius:50%;flex:none;width:14px;height:14px;animation:.8s linear infinite spin;display:inline-block}@keyframes spin{to{transform:rotate(360deg)}}.empty-state{text-align:center;color:var(--muted);flex-direction:column;align-items:center;gap:10px;padding:40px 20px;display:flex}.panel{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:18px 20px}.panel-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px;display:flex}.panel-head h2{font-size:16px}.crumbs{color:var(--muted);flex-wrap:wrap;align-items:center;gap:6px;font-size:12.5px;display:flex}.crumbs a{color:var(--muted)}.crumbs strong{color:var(--text);font-weight:600}.badge{background:var(--surface-2);border:1px solid var(--line);color:var(--muted);border-radius:999px;padding:2px 8px;font-size:11px}.badge.warn{color:#7a4b00;background:#fff7e6;border-color:#f0d9a8}.home{flex-direction:column;gap:22px;display:flex}.home-hero{background:radial-gradient(900px 320px at 100% 0,#1f6feb21,#0000 65%),linear-gradient(#fbfdff 0%,#f3f7fd 100%);border:1px solid #dce6f6;border-radius:16px;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:20px;padding:28px 30px;display:flex}.home-hero h1{margin-bottom:6px;font-size:27px}.home-hero p{max-width:620px;margin:0}.hero-actions{flex-wrap:wrap;gap:10px;display:flex}.search-row{align-items:center;gap:12px;display:flex}.search-row input{border-radius:10px;flex:1;padding:11px 14px;font-size:14px;box-shadow:0 1px 2px #1018280a}.search-results{flex-direction:column;display:flex}.hit-list{margin:0;padding:0;list-style:none}.hit-list li a{border-bottom:1px solid var(--line);color:var(--text);border-radius:6px;align-items:center;gap:10px;padding:9px 6px;text-decoration:none;display:flex}.hit-list li a:hover{background:var(--surface-2)}.hit-type{background:var(--surface-2);border:1px solid var(--line);color:var(--muted);border-radius:999px;flex:none;padding:2px 8px;font-size:11px}.hit-type.course{color:#0b4a8f;background:#eef6ff;border-color:#cfe3fb}.hit-type.material{color:#087443;background:#eefaf3;border-color:#c5ecd6}.hit-type.note{color:#7a4b00;background:#fff7e6;border-color:#f0d9a8}.hit-title{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.recent-row{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px;display:grid}.recent-card{border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:10px;flex-direction:column;gap:6px;min-width:0;padding:12px 14px;text-decoration:none;display:flex}.recent-card:hover{border-color:var(--line-strong);background:var(--surface-2);text-decoration:none}.recent-card strong{text-overflow:ellipsis;white-space:nowrap;font-size:13.5px;overflow:hidden}.course-section{flex-direction:column;gap:12px;display:flex}.section-head{justify-content:space-between;align-items:baseline;gap:12px;display:flex}.course-grid{grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px;display:grid}.course-card{background:var(--surface);border:1px solid var(--line);min-height:158px;color:var(--text);border-radius:12px;flex-direction:column;gap:8px;padding:20px 18px 16px;text-decoration:none;transition:transform .14s,box-shadow .14s,border-color .14s;display:flex;position:relative;overflow:hidden}.course-card:before{content:"";background:var(--accent);height:4px;position:absolute;inset:0 0 auto}.course-card.accent-1:before{background:#7c3aed}.course-card.accent-2:before{background:#0e9f6e}.course-card.accent-3:before{background:#d97706}.course-card.accent-4:before{background:#db2777}.course-card:hover{box-shadow:var(--shadow);border-color:var(--line-strong);text-decoration:none;transform:translateY(-2px)}.course-code{letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-size:11.5px;font-weight:600}.course-card h3{margin:0;font-size:17px;line-height:1.35}.course-meta{color:var(--muted);flex-direction:column;gap:2px;font-size:12px;display:flex}.course-open{color:var(--accent);margin-top:auto;font-size:12.5px;font-weight:500}.archived-block{flex-direction:column;align-items:flex-start;gap:8px;display:flex}.simple-list{width:100%;margin:0;padding:0;list-style:none}.simple-list li{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:10px;padding:8px 4px;font-size:13px;display:flex}.simple-list li:last-child{border-bottom:0}.modal-backdrop{z-index:100;background:#1018286b;justify-content:center;align-items:flex-start;padding:8vh 18px 4vh;display:flex;position:fixed;inset:0;overflow-y:auto}.modal{background:var(--surface);width:min(560px,100%);box-shadow:var(--shadow-lg);border-radius:14px;flex-direction:column;gap:14px;padding:20px 22px 22px;display:flex}.modal.narrow{width:min(430px,100%)}.modal-head{justify-content:space-between;align-items:center;gap:10px;display:flex}.modal-head h2{font-size:18px}.modal-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}.course-page{flex-direction:column;gap:16px;display:flex}.course-head{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.course-head h1{margin:4px 0 2px}.head-actions{flex-wrap:wrap;gap:8px;display:flex}.settings-inline{flex-direction:column;gap:12px;display:flex}.course-tabs{border-bottom:1px solid var(--line);gap:4px;display:flex}.course-tabs button{font:inherit;color:var(--muted);cursor:pointer;background:0 0;border:0;border-bottom:2px solid #0000;padding:9px 14px;font-size:13.5px}.course-tabs button:hover{color:var(--text)}.course-tabs button.active{color:var(--accent);border-bottom-color:var(--accent);font-weight:600}.filter-row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.filter-row.inline{margin:0}.filter-row input[type=search]{flex:1;min-width:180px;max-width:380px}.list-panel{padding:6px 18px}.material-list,.note-list{margin:0;padding:0;list-style:none}.material-list>li,.note-list>li{border-bottom:1px solid var(--line);align-items:center;gap:10px;padding:10px 0;display:flex}.material-list>li:last-child,.note-list>li:last-child{border-bottom:0}.material-main,.note-main{min-width:0;color:var(--text);flex:1;align-items:center;gap:12px;text-decoration:none;display:flex}.note-main{flex-direction:column;align-items:flex-start;gap:2px}.material-main:hover .material-title,.note-main:hover strong{color:var(--accent)}.material-title{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.row-actions{flex-wrap:wrap;justify-content:flex-end;gap:4px;display:flex}.kind-badge{background:var(--accent-weak);color:var(--accent);border-radius:999px;flex:none;padding:2px 8px;font-size:11px}.kind-badge.kind-static{color:#087443;background:#eefaf3}.kind-badge.kind-interactive{color:#6d28d9;background:#f4efff}.reader-page{background:var(--bg);flex-direction:column;height:100dvh;display:flex;overflow:hidden}.reader-top{background:var(--surface);border-bottom:1px solid var(--line);flex-wrap:wrap;align-items:center;gap:12px;min-height:58px;padding:8px 16px;display:flex}.reader-heading{flex-direction:column;min-width:0;margin-right:auto;display:flex}.reader-heading strong{white-space:nowrap;text-overflow:ellipsis;font-size:14px;overflow:hidden}.reader-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.reader-actions select{max-width:170px;padding:5px 8px;font-size:12.5px}.reader-body{flex:1;min-height:0;display:flex;position:relative}.reader-side{background:var(--surface);border-right:1px solid var(--line);flex-direction:column;flex:0 0 262px;width:262px;min-height:0;display:flex}.side-tabs{border-bottom:1px solid var(--line);flex:none;display:flex}.side-tabs button{font:inherit;color:var(--muted);cursor:pointer;background:0 0;border:0;border-bottom:2px solid #0000;flex:1;padding:10px 8px;font-size:13px}.side-tabs button.active{color:var(--accent);border-bottom-color:var(--accent);font-weight:600}.outline-list{flex:1;min-height:0;margin:0;padding:10px;list-style:none;overflow-y:auto}.outline-list li{margin:0}.outline-list button{text-align:left;width:100%;font:inherit;color:var(--text);cursor:pointer;background:0 0;border:0;border-radius:6px;padding:6px 8px;font-size:12.5px;line-height:1.45;display:block}.outline-list button:hover{background:var(--surface-2)}.outline-list button.active{background:var(--accent-weak);color:var(--accent)}.annotation-list{flex:1;min-height:0;padding:10px;overflow-y:auto}.annotation-row{border-bottom:1px solid var(--line);align-items:flex-start;gap:6px;padding:8px 0;display:flex}.annotation-jump{font:inherit;color:var(--text);text-align:left;cursor:pointer;background:0 0;border:0;flex:1;align-items:flex-start;gap:8px;padding:0;font-size:12.5px;line-height:1.45;display:flex}.annotation-jump:hover{color:var(--accent)}.hl-dot{border:1px solid #0000001f;border-radius:50%;flex:none;width:9px;height:9px;margin-top:4px}.hl-yellow{background:#ffe066}.hl-green{background:#b2f2bb}.hl-blue{background:#a5d8ff}.hl-pink{background:#ffc9de}.hl-orange{background:#ffd8a8}.reader-frame-wrap{background:#e9ecf0;flex-direction:column;flex:1;min-width:0;display:flex;position:relative}.material-frame{background:#fff;border:0;flex:1;width:100%}.frame-overlay{z-index:3;color:var(--muted);background:#f4f6f9db;justify-content:center;align-items:center;gap:8px;font-size:13.5px;display:flex;position:absolute;inset:0}.frame-notice{color:#0b4a8f;background:#eef6ff;border-bottom:1px solid #cfe3fb;flex:none;padding:7px 12px;font-size:12.5px}.frame-notice.warn{color:#9b1c1c;background:#fff1f0;border-color:#f3c2bd}.note-dock{background:var(--surface);border-left:1px solid var(--line);flex-direction:column;flex:none;min-height:0;display:flex;position:relative}.note-resizer{cursor:col-resize;z-index:5;touch-action:none;width:5px;position:absolute;top:0;bottom:0;left:0}.note-resizer:hover{background:#1f6feb1f}body.reader-resizing,body.reader-resizing *{cursor:col-resize!important;-webkit-user-select:none!important;user-select:none!important}body.reader-resizing iframe{pointer-events:none}.reader-foot{background:var(--surface);border-top:1px solid var(--line);flex:none;justify-content:space-between;gap:12px;padding:5px 16px;display:flex}.reader-save-hint{color:var(--muted);font-size:11.5px}.dock-loading{z-index:6;color:var(--muted);background:#ffffffd1;justify-content:center;align-items:center;font-size:13px;display:flex;position:absolute;inset:0}.reader-context{z-index:80;background:var(--surface);border:1px solid var(--line);width:210px;box-shadow:var(--shadow-lg);border-radius:10px;flex-direction:column;gap:6px;padding:8px;display:flex;position:fixed}.ctx-title{color:var(--muted);letter-spacing:.04em;padding:2px 4px;font-size:11.5px}.ctx-colors{gap:6px;padding:2px 4px 6px;display:flex}.ctx-color{color:#3b3b3b;cursor:pointer;border:1px solid #0000001f;border-radius:50%;justify-content:center;align-items:center;width:32px;height:32px;font-size:11px;display:inline-flex}.ctx-color:hover{transform:scale(1.08)}.ctx-item{text-align:left;font:inherit;color:var(--text);cursor:pointer;background:0 0;border:0;border-radius:6px;padding:8px 10px;font-size:13px}.ctx-item:hover{background:var(--surface-2)}.toast{z-index:90;color:#fff;box-shadow:var(--shadow-lg);background:#1d2530f0;border-radius:999px;max-width:80vw;padding:9px 16px;font-size:13px;position:fixed;bottom:28px;left:50%;transform:translate(-50%)}.note-panel{background:var(--surface);flex-direction:column;height:100%;min-height:0;display:flex}.note-panel-head{border-bottom:1px solid var(--line);flex-wrap:wrap;flex:none;align-items:center;gap:8px;padding:9px 14px;display:flex}.note-picker{flex:1;min-width:120px;padding:6px 8px;font-size:12.5px}.note-title-row{flex:none;align-items:center;gap:10px;padding:6px 14px 2px;display:flex}.note-title{background:0 0;border:0;border-radius:0;flex:1;min-width:0;padding:3px 0;font-size:17px;font-weight:650}.note-title:focus{border-bottom:1px solid var(--accent);outline:none}.save-state{color:var(--muted);white-space:nowrap;align-items:center;gap:5px;font-size:11.5px;display:inline-flex}.save-state:before{content:"";background:#c8cdd4;border-radius:50%;flex:none;width:6px;height:6px}.save-state.ok:before{background:var(--ok)}.save-state.wait:before{background:#d97706}.save-state.bad:before{background:var(--danger)}.note-banner{border-radius:8px;flex-wrap:wrap;align-items:center;gap:8px;margin:8px 14px 2px;padding:8px 10px;font-size:12.5px;line-height:1.5;display:flex}.note-banner.info{color:#0b4a8f;background:#eef6ff}.note-banner.warn{color:#7a4b00;background:#fff7e6}.note-banner.bad{color:#9b1c1c;background:#fff1f0}.note-toolbar{border-bottom:1px solid var(--line);background:var(--surface-2);flex-wrap:wrap;flex:none;gap:3px;padding:6px 10px;display:flex}.note-toolbar .tb-group{border-right:1px solid var(--line);align-items:center;gap:2px;padding-right:5px;display:flex}.note-toolbar .tb-group.push{border-right:0;margin-left:auto}.note-toolbar button{color:#3b4450;min-width:28px;height:28px;font:inherit;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:6px;justify-content:center;align-items:center;padding:0 6px;font-size:12.5px;display:inline-flex}.note-toolbar button:hover{background:#e9edf2}.note-toolbar button.on{background:var(--accent-weak);color:var(--accent);border-color:#c9dcfb}.note-toolbar .colors{gap:5px}.note-toolbar .swatch{border:1px solid #00000029;border-radius:50%;width:18px;min-width:18px;height:18px;padding:0}.note-toolbar select{border-radius:6px;height:28px;padding:0 4px;font-size:12px}.note-editor-scroll{flex:1;min-height:0;padding:16px 20px 28px;overflow-y:auto}.note-editor-mount{min-height:100%}.note-sources{border-top:1px dashed var(--line-strong);margin-top:24px;padding-top:12px;font-size:12.5px}.note-sources h4{color:var(--muted);margin:0 0 6px;font-size:12px;font-weight:600}.source-row{border-bottom:1px solid var(--line);justify-content:space-between;align-items:flex-start;gap:8px;padding:7px 0;display:flex}.source-text{color:#475467;flex:1;gap:6px;min-width:0;font-size:12px;line-height:1.5;display:flex}.source-dot{background:var(--ok);border-radius:50%;flex:none;width:7px;height:7px;margin-top:5px}.source-dot.warn{background:#d97706}.source-actions{flex-wrap:wrap;flex:none;justify-content:flex-end;gap:4px;display:flex}.source-stale{color:#b54708;width:100%;font-size:11px}.revision-list{max-height:52vh;margin:0;padding:0;list-style:none;overflow-y:auto}.revision-list li{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:10px;padding:9px 2px;font-size:13px;display:flex}.note-panel.compact .note-editor-scroll{padding:12px 14px 22px}.note-panel.compact .note-title{font-size:16px}.note-panel.compact .note-toolbar{padding:5px 8px}.note-page{height:calc(100dvh - var(--topbar-h) - 64px);flex-direction:column;gap:10px;min-height:520px;display:flex}.note-page-head{flex-wrap:wrap;flex:none;justify-content:space-between;align-items:center;gap:12px;display:flex}.note-page-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.note-page-body{background:var(--surface);border:1px solid var(--line);border-radius:12px;flex:1;min-height:0;overflow:hidden}.note-page-meta{color:var(--muted);white-space:nowrap;font-size:11.5px}.export-menu{position:relative}.export-menu>summary{cursor:pointer;-webkit-user-select:none;user-select:none;list-style:none}.export-menu>summary::-webkit-details-marker{display:none}.export-menu[open]>summary{background:var(--surface-2)}.export-menu-list{z-index:30;background:var(--surface);border:1px solid var(--line);min-width:210px;box-shadow:var(--shadow);border-radius:9px;flex-direction:column;padding:6px;display:flex;position:absolute;top:calc(100% + 6px);right:0}.export-menu-list button{text-align:left;font:inherit;color:var(--text);cursor:pointer;background:0 0;border:0;border-radius:6px;padding:8px 10px;font-size:13px}.export-menu-list button:hover{background:var(--surface-2)}.login-page{background:radial-gradient(1000px 500px at 15% 0%, #1f6feb29, transparent 60%), radial-gradient(800px 500px at 90% 100%, #7c3aed1a, transparent 60%), var(--bg);place-items:center;min-height:100dvh;padding:24px;display:grid}.login-card{background:var(--surface);border:1px solid var(--line);width:min(430px,100%);box-shadow:var(--shadow-lg);border-radius:16px;padding:34px 30px}.login-card .brand{margin-bottom:14px;font-size:22px;display:inline-block}.login-card h1{margin-bottom:4px;font-size:22px}.login-form{flex-direction:column;gap:14px;margin-top:20px;display:flex}.login-form .btn{width:100%;padding:10px 14px;font-size:14.5px}.login-hint{color:var(--muted);margin-top:18px;font-size:12px;line-height:1.6}.page-head{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:16px;display:flex}.page-head p{max-width:720px;margin:0}.imports-page .import-layout{grid-template-columns:minmax(320px,1fr) minmax(380px,1.1fr);align-items:start;gap:18px;display:grid}.import-col{flex-direction:column;gap:18px;min-width:0;display:flex}.import-form{flex-direction:column;gap:12px;display:flex}.import-list{flex-direction:column;gap:3px;max-height:440px;margin:0;padding:0;list-style:none;display:flex;overflow-y:auto}.import-row{width:100%;font:inherit;text-align:left;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:8px;align-items:flex-start;gap:10px;padding:8px;display:flex}.import-row:hover{background:var(--surface-2)}.import-list li.active .import-row{background:var(--accent-weak);border-color:#c9dcfb}.import-title{flex-direction:column;gap:2px;min-width:0;display:flex}.import-title strong{text-overflow:ellipsis;white-space:nowrap;font-size:13px;overflow:hidden}.state-badge{color:#475467;white-space:nowrap;background:#eef0f3;border-radius:999px;flex:none;padding:2px 8px;font-size:11px}.state-badge.state-received{color:#7a4b00;background:#fff7e6}.state-badge.state-ready{color:#087443;background:#e7f6ec}.state-badge.state-blocked{color:#9b1c1c;background:#fff1f0}.state-badge.state-published{color:#1a56b0;background:#e8f0fe}.import-detail{flex-direction:column;display:flex}.report{flex-direction:column;gap:4px;display:flex}.report-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.report-item{background:var(--surface-2);border:1px solid var(--line);border-radius:8px;flex-direction:column;gap:2px;min-width:0;padding:8px 10px;display:flex}.report-item strong{text-overflow:ellipsis;white-space:nowrap;font-size:12.5px;overflow:hidden}.report-block{border-radius:8px;margin-top:10px;padding:9px 12px;font-size:12.5px}.report-block h3{margin:0 0 5px;font-size:12.5px}.report-block ul{max-height:220px;margin:0;padding-left:18px;line-height:1.6;overflow-y:auto}.report-block.bad{color:#7a1f18;background:#fff5f4;border:1px solid #f3c2bd}.report-block.warn{color:#6b3f06;background:#fffaf0;border:1px solid #f0d9a8}.publish-box{border-top:1px solid var(--line);flex-direction:column;align-items:flex-start;gap:10px;margin-top:12px;padding-top:12px;display:flex}.publish-box .inline-fields{width:100%}.publish-done{background:#eefaf3;border:1px solid #c5ecd6;border-radius:8px;flex-wrap:wrap;align-items:center;gap:12px;margin-top:12px;padding:10px 12px;font-size:13px;display:flex}.report-files{margin-top:12px;font-size:12.5px}.report-files summary{cursor:pointer;color:var(--accent)}.report-files ul{max-height:240px;padding-left:18px;line-height:1.7;overflow-y:auto}.tips li{align-items:flex-start;line-height:1.65}.settings-page{flex-direction:column;gap:16px;max-width:900px;margin:0 auto;display:flex}.settings-section{flex-direction:column;gap:10px;display:flex}.settings-list{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;margin:0;display:grid}.settings-list>div{background:var(--surface-2);border:1px solid var(--line);border-radius:8px;padding:10px 12px}.settings-list dt{color:var(--muted);margin-bottom:3px;font-size:11.5px}.settings-list dd{margin:0;font-size:13.5px}.settings-actions{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.storage-total{margin:0;font-size:14px}.storage-bar{background:#eef0f3;border-radius:999px;height:10px;display:flex;overflow:hidden}.storage-seg.seg-a,.storage-dot.seg-a{background:#1f6feb}.storage-seg.seg-b,.storage-dot.seg-b{background:#7c3aed}.storage-seg.seg-c,.storage-dot.seg-c{background:#0e9f6e}.storage-grid{grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:10px;display:grid}.storage-card{border:1px solid var(--line);background:var(--surface);border-radius:8px;flex-direction:column;gap:2px;padding:10px 12px;display:flex}.storage-dot{border-radius:50%;width:9px;height:9px;margin-bottom:4px}.mobile-only{display:none}@media (width<=980px){.imports-page .import-layout{grid-template-columns:1fr}.report-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=820px){.app-main{padding:16px 14px 32px}.topbar{gap:10px;padding:0 14px}.nav-toggle{display:inline-flex}.main-nav{top:var(--topbar-h);background:var(--surface);border-bottom:1px solid var(--line);box-shadow:var(--shadow);flex-direction:column;align-items:stretch;padding:8px 14px;display:none;position:absolute;left:0;right:0}.main-nav.open{display:flex}.account-name{display:none}.mobile-only{display:inline-flex}.home-hero{padding:20px}.course-grid{grid-template-columns:1fr}.reader-top{flex-wrap:wrap;gap:6px;padding:8px 10px}.reader-heading{flex-basis:100%;order:3}.reader-actions{margin-left:auto}.reader-actions .btn.small{padding:4px 8px}.reader-side{z-index:8;width:min(82vw,300px);box-shadow:var(--shadow-lg);position:absolute;top:0;bottom:0;left:0}.toggle-side{order:2}.note-dock{z-index:9;border-left:0;position:absolute;inset:0;width:100%!important}.reader-page.mobile-read .note-dock,.reader-page.mobile-note .reader-frame-wrap,.reader-page.mobile-note .reader-side{display:none}.reader-page.mobile-note .reader-body{display:block}.note-resizer,.reader-foot{display:none}.note-page{height:auto;min-height:0}.note-page-body{height:calc(100dvh - 210px)}.note-toolbar{flex-wrap:nowrap;overflow-x:auto}.note-toolbar .tb-group{flex:none}.report-grid{grid-template-columns:1fr}.modal-backdrop{padding-top:4vh}}@media print{.topbar,.global-banner,.note-page-head,.note-panel-head,.note-toolbar,.note-sources,.note-banner,.note-page-actions,.reader-foot{display:none!important}.app-main{max-width:none;padding:0}.note-page{height:auto}.note-page-body{border:0;border-radius:0;overflow:visible}.note-editor-scroll{padding:0;overflow:visible}}.note-editor-mount{color:var(--text);font-size:15px;line-height:1.75}.note-editor-mount .ProseMirror{word-break:break-word;outline:none;min-height:340px}.note-editor-mount .ProseMirror h1{margin:.8em 0 .35em;font-size:24px;line-height:1.3}.note-editor-mount .ProseMirror h2{margin:.75em 0 .3em;font-size:20px;line-height:1.35}.note-editor-mount .ProseMirror h3{margin:.7em 0 .25em;font-size:17px;line-height:1.4}.note-editor-mount .ProseMirror h4{margin:.6em 0 .2em;font-size:15.5px}.note-editor-mount .ProseMirror ul,.note-editor-mount .ProseMirror ol{margin:.5em 0;padding-left:1.5em}.note-editor-mount .ProseMirror li>p{margin:.2em 0}.note-editor-mount .ProseMirror ul[data-type=taskList]{padding-left:.1em;list-style:none}.note-editor-mount .ProseMirror ul[data-type=taskList] li{align-items:flex-start;gap:8px;display:flex}.note-editor-mount .ProseMirror ul[data-type=taskList] li>label{-webkit-user-select:none;user-select:none;flex:none;margin-top:4px}.note-editor-mount .ProseMirror ul[data-type=taskList] li>div{flex:1;min-width:0}.note-editor-mount .ProseMirror input[type=checkbox]{width:15px;height:15px;accent-color:var(--accent);cursor:pointer}.note-editor-mount .ProseMirror blockquote{border-left:3px solid var(--line-strong);color:#475467;background:var(--surface-2);border-radius:0 6px 6px 0;margin:.8em 0;padding:2px 0 2px 14px}.note-editor-mount .ProseMirror pre{color:#e6edf7;background:#101828;border-radius:8px;margin:.8em 0;padding:12px 14px;font-size:13px;line-height:1.6;overflow-x:auto}.note-editor-mount .ProseMirror pre code{color:inherit;font-size:inherit;background:0 0;padding:0}.note-editor-mount .ProseMirror code{color:#b42318;background:#eef0f3;border-radius:4px;padding:1px 5px;font-size:.9em}.note-editor-mount .ProseMirror a{color:var(--accent);text-underline-offset:2px;text-decoration:underline}.note-editor-mount .ProseMirror mark{color:inherit;background:#ffe066;border-radius:2px;padding:0 1px}.note-editor-mount .ProseMirror img{border-radius:6px;max-width:100%;height:auto;margin:.6em 0;display:block}.note-editor-mount .ProseMirror img.ProseMirror-selectednode{outline:2px solid var(--accent);outline-offset:2px}.note-editor-mount .ProseMirror table{border-collapse:collapse;table-layout:fixed;width:100%;margin:.9em 0;overflow:hidden}.note-editor-mount .ProseMirror th,.note-editor-mount .ProseMirror td{border:1px solid var(--line-strong);vertical-align:top;min-width:40px;padding:6px 9px;position:relative}.note-editor-mount .ProseMirror th{background:var(--surface-2);text-align:left;font-weight:600}.note-editor-mount .ProseMirror .selectedCell:after{content:"";pointer-events:none;background:#1f6feb1f;position:absolute;inset:0}.note-editor-mount .ProseMirror hr{border:0;border-top:1px solid var(--line-strong);margin:1.4em 0}.note-editor-mount .ProseMirror .is-editor-empty:first-child:before,.note-editor-mount .ProseMirror .is-empty:before{content:attr(data-placeholder);float:left;color:#9aa3af;pointer-events:none;height:0}.note-editor-mount .ProseMirror [data-type=inline-math],.note-editor-mount .ProseMirror .inline-math{cursor:pointer;background:#f6f8fb;border-radius:4px;padding:0 2px;display:inline-block}.note-editor-mount .ProseMirror [data-type=inline-math].ProseMirror-selectednode,.note-editor-mount .ProseMirror .inline-math.ProseMirror-selectednode{outline:2px solid var(--accent);outline-offset:1px}.note-editor-mount .ProseMirror .latex-block,.note-editor-mount .ProseMirror [data-type=block-math]{border:1px solid var(--line);text-align:center;background:#f8f9fb;border-radius:8px;margin:.9em 0;padding:10px 12px;display:block;overflow-x:auto}.note-editor-mount .ProseMirror .katex{font-size:1.02em}.note-editor-mount .ProseMirror .katex-display{margin:.5em 0;overflow:auto hidden}.note-editor-mount .ProseMirror figure{text-align:center;margin:1em 0}.note-editor-mount .ProseMirror figure img,.note-editor-mount .ProseMirror figure svg{max-width:100%;height:auto;margin:0 auto}.note-editor-mount .ProseMirror figcaption{color:var(--muted);margin-top:4px;font-size:12px}.note-editor-mount .ProseMirror .source-chip{color:var(--accent);background:var(--accent-weak);vertical-align:1px;cursor:pointer;border-radius:999px;align-items:center;gap:3px;padding:0 7px;font-size:11px;display:inline-flex}.note-editor-mount .ProseMirror ::selection{background:#1f6feb33}.note-panel .note-toolbar{background:#f8f9fb;border-color:#e3e7ef;padding:7px 9px;display:block}.note-ribbon-row{flex-wrap:wrap;align-items:center;gap:2px;min-height:29px;display:flex}.note-ribbon-row+.note-ribbon-row{margin-top:4px}.note-toolbar .note-ribbon-row>button,.note-toolbar summary,.editor-ink{box-sizing:border-box;color:#344054;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:4px;justify-content:center;align-items:center;width:27px;min-width:27px;height:28px;padding:4px;font-size:14px;display:inline-flex}.note-toolbar button:hover,.note-toolbar summary:hover{background:#e8edf5;border-color:#d9e1ee}.note-toolbar button.on{color:#2459b6;background:#e3ecfc;border-color:#0000}.note-toolbar button:disabled{color:#aab3c2;cursor:default;background:0 0;border-color:#0000}.note-toolbar svg{fill:none;stroke:currentColor;stroke-width:1.6px;stroke-linecap:round;stroke-linejoin:round;width:18px;height:18px}.note-toolbar select{color:#344054;background:#fff;border:1px solid #d5dce7;border-radius:4px;height:27px;padding:1px 4px;font-size:12px}.note-toolbar select[aria-label=内容层级]{width:70px}.note-toolbar select[aria-label=字号大小]{width:62px}.ribbon-divider{background:#dce1e9;flex:0 0 1px;height:19px;margin:0 3px}.font-smaller{font-size:12px}.font-larger{font-size:16px}.marker-icon{border-bottom:4px solid #ffe16c;font-size:13px;font-weight:600;line-height:15px}.math-icon{font:21px Georgia,serif}.editor-ink{font:600 16px Georgia,serif;position:relative}.editor-ink>span{border-bottom:3px solid;line-height:18px}.editor-ink input{opacity:0;cursor:pointer;width:100%;height:100%;padding:0;position:absolute;inset:0}.ribbon-popover{position:relative}.ribbon-popover>summary{list-style:none}.ribbon-popover>summary::-webkit-details-marker{display:none}.ribbon-popover>div{z-index:40;background:#fff;border:1px solid #dbe2ed;border-radius:8px;padding:8px;position:absolute;top:calc(100% + 5px);right:0;box-shadow:0 7px 24px #24365620}.palette-icon{background:linear-gradient(135deg,#ffe9a8 0 50%,#c3e3ff 50%);border:1px solid #b7c2d4;border-radius:3px;width:13px;height:13px;display:block}.ribbon-palette{flex-wrap:wrap;gap:6px;width:156px;display:flex}.note-toolbar .ribbon-palette .swatch{border-radius:4px;width:21px;min-width:21px;height:21px}.note-toolbar .ribbon-palette .palette-clear{border-top:1px solid #e6eaf0;border-radius:0;width:100%;margin-top:3px;font-size:12px}.ribbon-more>div{width:146px}.note-toolbar .ribbon-more button{text-align:left;width:100%;height:29px;padding:5px 8px;font-size:12px;display:block}.ribbon-more hr{border:0;border-top:1px solid #e6eaf0;margin:5px 0}.note-toolbar button:focus-visible,.note-toolbar summary:focus-visible,.editor-ink:focus-within{outline-offset:1px;outline:2px solid #5b85cc}.note-title-row{border-bottom:1px solid #e3e7ef;flex-wrap:wrap;gap:4px 10px;padding:9px 16px 7px}.note-title-row .save-state{font-size:10px}.note-panel.compact .note-editor-scroll,.note-editor-scroll{padding:20px 24px 32px}.note-editor-mount .ProseMirror{color:#263244;tab-size:4;white-space:pre-wrap;overflow-wrap:anywhere;padding-bottom:28vh;font:15px/1.85 -apple-system,Segoe UI,Microsoft YaHei,sans-serif}.note-editor-mount .ProseMirror p{margin:0 0 .8em}.note-editor-mount .ProseMirror h1,.note-editor-mount .ProseMirror h2,.note-editor-mount .ProseMirror h3{color:#243b63;border:0;margin:1.1em 0 .55em;padding:0;line-height:1.45}.note-editor-mount .ProseMirror h1{font-size:28px}.note-editor-mount .ProseMirror h2{font-size:22px}.note-editor-mount .ProseMirror h3{font-size:18px}.note-editor-mount .ProseMirror pre{color:#263244;background:#f5f7fb}.note-editor-mount .ProseMirror code{color:inherit}.note-editor-mount .ProseMirror .isg-object-selected{outline-offset:2px;background-color:#dbeafe;outline:3px solid #4f83ce;box-shadow:0 0 0 5px #4f83ce26}.note-editor-mount .ProseMirror .ProseMirror-selectednode{border-radius:3px;outline:2px solid #7aa1df}.note-editor-mount .ProseMirror .tiptap-mathematics-render{max-width:100%;overflow-x:auto}.isg-note-bubble{z-index:9700;background:#fff;border:1px solid #d6deeb;border-radius:9px;align-items:center;gap:2px;width:max-content;max-width:calc(100vw - 16px);padding:4px;font-family:-apple-system,Segoe UI,Microsoft YaHei,sans-serif;display:flex;position:fixed;box-shadow:0 5px 22px #24365626}.isg-note-bubble>span{flex-wrap:wrap;align-items:center;gap:2px;display:flex}.isg-note-bubble [hidden]{display:none!important}.isg-note-bubble button,.isg-note-bubble select{color:#344054;cursor:pointer;background:0 0;border:0;border-radius:4px;min-width:29px;height:29px;padding:3px 6px;font:13px -apple-system,Segoe UI,Microsoft YaHei,sans-serif}.isg-note-bubble select{border:1px solid #e1e6ee;min-width:42px}.isg-note-bubble [data-format=hierarchy]{width:66px}.isg-note-bubble [data-format=size]{width:62px}.isg-note-bubble button:hover{background:#edf3fc}.isg-note-bubble button[aria-pressed=true]{color:#2158a9;background:#e0ebfd}.isg-note-bubble button:focus-visible,.isg-note-bubble select:focus-visible{outline-offset:1px;outline:2px solid #5b85cc}.material-selection-menu{z-index:9700;background:#fff;border:1px solid #d6deeb;border-radius:9px;flex-wrap:wrap;align-items:center;gap:3px;max-width:calc(100vw - 16px);padding:5px;display:flex;position:fixed;box-shadow:0 5px 22px #24365626}.material-selection-menu button{color:#344054;height:29px;font:inherit;cursor:pointer;background:0 0;border:0;border-radius:4px;padding:3px 6px;font-size:12px}.material-selection-menu button:hover{background-color:#edf3fc}.material-selection-menu .quick-swatch{border:1px solid #cbd5e1;border-radius:4px;width:20px;height:20px;padding:0}.material-selection-menu .hl-yellow{background:#fff3a6}.material-selection-menu .hl-green{background:#c8efcc}.material-selection-menu .hl-blue{background:#c7e0ff}.material-selection-menu .hl-pink{background:#ffd1df}.material-selection-menu .hl-orange{background:#ffdeb5}.material-selection-menu button:focus-visible{outline-offset:1px;outline:2px solid #5b85cc}@media print{.material-selection-menu,.isg-note-bubble{display:none!important}.note-editor-mount .ProseMirror{padding-bottom:0}.note-editor-mount .ProseMirror .isg-object-selected{box-shadow:none;background:0 0;outline:none}}
