.notes-toolbar,.notes-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.notes-toolbar{justify-content:space-between;margin-bottom:12px}.notes-toolbar>.muted{font-size:11px}.notes-local{font-size:11px;color:var(--muted);line-height:1.9;margin:0 0 20px}.notes-message:not(:empty){padding:12px 15px;margin-bottom:16px;background:var(--mint);border:1px solid var(--line);border-radius:8px;color:var(--green);font-size:12px;line-height:1.8}.notes-message.error{background:#fdf1eb;border-color:#e8c7b8;color:#975a40}.notes-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:20px;align-items:start}.notes-shelf{padding:16px;min-width:0;position:sticky;top:18px;max-height:calc(100vh - 40px);display:flex;flex-direction:column}.notes-shelf>input,.notes-shelf>select{width:100%;font-size:12px;margin-bottom:10px}.notes-tabs{display:flex;gap:5px;border-bottom:1px solid var(--line);padding-bottom:11px;margin:3px 0 7px}.notes-tabs button{font-size:12px;padding:6px 10px;border-radius:6px;color:var(--muted)}.notes-tabs button.active{background:var(--mint);color:var(--green)}.notes-tabs span{font-size:10px;margin-left:5px}#notes-list{overflow:auto;min-height:130px}.note-card{display:grid;gap:6px;padding:14px 11px;text-align:left;border:1px solid transparent;border-bottom-color:var(--line);width:100%;border-radius:7px;margin:4px 0;min-width:0}.note-card:hover{background:var(--bg)}.note-card.selected{border-color:#afd4c6;background:var(--mint)}.note-card strong{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.note-card>p{font-size:11px;color:var(--muted);max-height:42px;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}.note-card small{font-size:10px;color:var(--muted)}.note-card-chapter{font-size:10px;color:var(--green);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.notes-list-empty{font-size:12px;color:var(--muted);padding:22px 9px;line-height:1.9}.notes-editor{min-width:0;padding:24px 27px;min-height:660px}.notes-empty{text-align:center;padding:100px 15px;color:var(--muted)}.notes-empty>span{display:block;margin-bottom:12px;font-size:44px;color:var(--green)}.notes-empty h2{font-size:22px;color:var(--text);margin-bottom:12px}.notes-empty p{font-size:13px;line-height:2}.note-editor-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:20px}.note-editor-head>span{font-size:10px;color:var(--muted)}.note-editor-head>div{display:flex;gap:6px;flex-wrap:wrap}.notes-editor .note-title{border:0;background:transparent;width:100%;font-size:25px;font-weight:650;padding:8px 0 13px;border-radius:0;margin-bottom:8px;box-shadow:none;color:var(--text)}.note-title:focus{outline-offset:3px}.note-chapter-label{font-size:11px;color:var(--muted);display:flex;gap:12px;align-items:center;margin-bottom:19px}.note-chapter-label select{font-size:11px;max-width:340px;min-width:0;flex:1}.note-body{width:100%;padding:16px 17px;resize:vertical;min-height:300px;max-height:1100px;font:14px/1.9 Consolas,'Microsoft YaHei',monospace;border:1px solid var(--line);border-radius:8px;background:var(--bg);color:var(--text);tab-size:4}.note-body-meta{display:flex;justify-content:space-between;gap:10px;font-size:10px;color:var(--muted);margin:8px 0 25px}.note-attachment-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:13px 0}.note-attachment-heading h2{font-size:16px}.note-attachment-heading small{font-size:11px;color:var(--muted);font-weight:400;margin-left:9px}.note-drop{padding:24px 18px;border:1px dashed #aacabd;border-radius:8px;text-align:center;background:var(--mint);cursor:pointer;margin-bottom:18px}.note-drop strong{display:block;font-size:12px;color:var(--green);margin-bottom:6px}.note-drop>span{font-size:10px;color:var(--muted);line-height:1.8}.note-drop.dragging{outline:2px solid var(--green);background:var(--green-light)}.note-image-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.note-image{min-width:0;margin:0;border:1px solid var(--line);border-radius:8px;overflow:hidden}.note-image-open{display:block;width:100%;background:var(--bg);height:180px;padding:8px;cursor:zoom-in}.note-image img{display:block;width:100%;height:100%;object-fit:contain}.note-image figcaption{padding:12px}.note-image figcaption>span{display:block;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.note-image small{display:block;font-size:9px;color:var(--muted);margin:4px 0 10px}.note-image-caption{width:100%;padding:8px 10px;resize:vertical;font-size:11px;line-height:1.7;border:1px solid var(--line);border-radius:5px;background:var(--bg);color:var(--text)}.note-image figcaption>p{font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}.note-no-images{font-size:12px;color:var(--muted);grid-column:1/-1;padding:15px 0}.note-removed-images{font-size:11px;color:var(--muted);margin-top:20px}.note-removed-images summary{cursor:pointer}.note-removed-images details>div{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid var(--line);padding:8px 0}.note-removed-images details>div>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.notes-trash-notice{font-size:12px;background:var(--bg);border-radius:6px;padding:12px;margin-bottom:15px;color:var(--muted)}.notes-dialog{border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--text);padding:23px;max-width:min(1100px,92vw);max-height:90vh;overflow:auto;margin:auto;min-width:min(400px,85vw)}.notes-dialog::backdrop{background:#122927aa}.notes-dialog>img{display:block;max-width:100%;max-height:66vh;object-fit:contain;margin:18px auto}.notes-dialog>p{font-size:12px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;margin:15px 0}.note-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:20px;font-size:14px}.note-dialog-head strong{overflow-wrap:anywhere}.notes-dialog>h2{font-size:21px}.notes-tabs button:focus-visible,.note-card:focus-visible,.note-drop:focus-visible,.note-image-open:focus-visible{outline:2px solid var(--green);outline-offset:2px}.note-run-links{display:flex;gap:9px;flex-wrap:wrap;margin-top:12px}
[data-theme=dark] .notes-message.error{background:#3a2b28;border-color:#755247;color:#dcae9e}
.note-attachment-heading{flex-wrap:wrap}.note-capture-hint{font-size:11px;line-height:1.9;color:var(--muted);margin:0 0 12px}.screen-capture-page{display:grid;place-items:center;min-height:100vh;padding:24px;background:var(--bg);color:var(--text)}.screen-capture-card{width:100%;max-width:520px;padding:30px}.screen-capture-card h1{font-size:26px;margin:15px 0}.screen-capture-card p{font-size:13px;line-height:1.9;margin:15px 0}.screen-capture-card .muted{font-size:11px}.screen-capture-card button{margin:6px 0}.notes-editor button:disabled,.screen-capture-card button:disabled{opacity:.6;cursor:wait}
@media(max-width:1100px){.notes-layout{grid-template-columns:235px minmax(0,1fr);gap:15px}.notes-shelf{padding:12px}.notes-editor{padding:21px}.note-image-grid{grid-template-columns:1fr}}
@media(max-width:760px){.notes-toolbar{align-items:flex-start}.notes-actions{gap:7px}.notes-actions .btn{font-size:11px;padding:8px 11px}.notes-layout{grid-template-columns:1fr}.notes-shelf{position:static;max-height:none;padding:14px}#notes-list{display:flex;gap:8px;overflow-x:auto;min-height:0;max-height:180px}.note-card{min-width:210px;max-width:240px;flex-shrink:0;border:1px solid var(--line);padding:12px}.notes-list-empty{padding:13px 5px}.notes-editor{padding:19px 16px;min-height:550px}.notes-editor .note-title{font-size:22px}.note-editor-head{margin-bottom:16px}.note-body{font-size:13px;padding:13px;min-height:270px}.note-image-grid{grid-template-columns:1fr}.notes-local{font-size:10px}.note-drop{padding:20px 12px}.note-drop strong{font-size:11px}.note-drop>span{font-size:9px}.notes-empty{padding:65px 9px}.notes-empty h2{font-size:20px}.notes-dialog{padding:17px}.note-chapter-label{align-items:flex-start;flex-direction:column;gap:7px}.note-chapter-label select{width:100%;max-width:none;flex:auto}}
