.annotation-editor,.annotation-list,.annotation-return,.annotation-selection-button{--ann-bg:#fff;--ann-soft:#f5f5f5;--ann-text:#171717;--ann-muted:#666;--ann-border:#dedede;--ann-accent:#111;--ann-on-accent:#fff;color:var(--ann-text);font-family:inherit;font-size:14px;line-height:1.5}[data-theme=dark] :is(.annotation-list,.annotation-editor,.annotation-return,.annotation-selection-button),body.dark-mode :is(.annotation-list,.annotation-editor,.annotation-return,.annotation-selection-button){--ann-bg:#242424;--ann-soft:#303030;--ann-text:#f3f3f3;--ann-muted:#bbb;--ann-border:#484848;--ann-accent:#fff;--ann-on-accent:#111}.annotation-list{margin:8px 0;max-width:100%;min-width:0}.annotation-editor button,.annotation-list button,.annotation-return button,.annotation-selection-button{font:inherit;cursor:pointer;touch-action:manipulation}.annotation-editor :is(button,textarea):focus-visible,.annotation-list button:focus-visible,.annotation-return button:focus-visible,.annotation-selection-button:focus-visible{outline:2px solid currentColor;outline-offset:3px}.annotation-list button:disabled{opacity:.45;cursor:default}.annotation-list .annotation-chip{display:inline-flex;align-items:center;gap:6px;border:0;box-shadow:none;border-radius:10px;background:var(--ann-soft);color:var(--ann-text);font-size:13px;line-height:20px;min-height:34px;padding:6px 10px}.annotation-items{margin:8px 0!important;max-height:320px;overflow:auto;overscroll-behavior:contain;border:0;border-radius:12px;background:var(--ann-bg)}.annotation-items,.annotation-items li{list-style:none!important;padding:0!important}.annotation-items li{position:relative;margin:0 0 4px!important;border:0}.annotation-list .annotation-item-link{display:block;width:100%;text-align:left;border:0;border-radius:12px;background:transparent;color:var(--ann-text);padding:10px 12px;font-size:13px;line-height:1.5}.annotation-item-link:hover{background:var(--ann-soft)}.annotation-item-link .annotation-item-heading{padding-right:80px;min-height:32px}.annotation-quote{display:block;margin:6px 0;white-space:pre-wrap;overflow-wrap:anywhere;max-height:150px;overflow:auto;color:var(--ann-text)}.annotation-comment{display:block;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--ann-muted)}.annotation-items li:last-child{border:0}.annotation-item-heading{display:flex;gap:8px;align-items:center;color:var(--ann-muted)}.annotation-number{flex:none;display:inline-flex;align-items:center;justify-content:center;background:var(--ann-accent);color:var(--ann-on-accent);width:25px;height:25px;border-radius:50%;font-size:12px}.annotation-item-actions{position:absolute;right:8px;top:6px;display:flex}.annotation-close,.annotation-item-actions button{border:0;background:transparent;color:var(--ann-text);display:inline-flex;align-items:center;justify-content:center;min-width:40px;min-height:40px;border-radius:10px}.annotation-close:hover,.annotation-item-actions button:hover{background:var(--ann-soft)}.annotation-editor blockquote,.annotation-items blockquote{margin:10px 0!important;padding:8px 12px!important;border:0!important;border-left:3px solid var(--ann-border)!important;background:var(--ann-soft);color:var(--ann-text);font-style:normal!important;white-space:pre-wrap;overflow-wrap:anywhere;max-height:190px;overflow:auto}.annotation-items p{margin:8px 0!important;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px!important}.annotation-selection-button{position:fixed;z-index:11000;display:flex;align-items:center;gap:5px;border:0;border-radius:8px;padding:6px 9px;background:var(--ann-accent);color:var(--ann-on-accent);box-shadow:0 3px 12px #0002;font-size:12px;line-height:18px;min-height:30px;white-space:nowrap}.annotation-selection-button:after{content:"";position:absolute;left:18px;bottom:-4px;width:8px;height:8px;background:var(--ann-accent);transform:rotate(45deg);pointer-events:none}.annotation-selection-button[data-placement=below]:after{top:-4px;bottom:auto}@media(pointer:coarse){.annotation-item-actions button,.annotation-list .annotation-chip{min-height:44px}.annotation-selection-button:before{content:"";position:absolute;inset:-7px 0}}.annotation-editor{box-sizing:border-box;border:1px solid var(--ann-border);border-radius:22px;padding:22px;background:var(--ann-bg);width:min(560px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;box-shadow:0 20px 80px #0004;margin:auto}.annotation-editor::backdrop{background:rgb(0 0 0/.36)}.annotation-editor-heading{display:flex;justify-content:space-between;align-items:center;gap:14px}.annotation-editor-heading h2{font-size:18px!important;line-height:1.4!important;font-weight:600;margin:0!important}.annotation-close{font-size:26px!important}.annotation-editor label{display:block;font-weight:600;margin:16px 0 8px}.annotation-editor textarea{box-sizing:border-box;display:block;width:100%;min-height:100px;max-height:220px;resize:vertical;padding:12px;border:1px solid var(--ann-border);border-radius:14px;background:var(--ann-bg);color:var(--ann-text);font:inherit;font-size:16px}.annotation-editor-hint{font-size:12px;color:var(--ann-muted);margin:6px 0 16px}.annotation-editor-footer{display:flex;justify-content:flex-end;gap:10px}.annotation-editor-footer button{border:1px solid var(--ann-border);border-radius:12px;padding:10px 14px;min-height:44px;background:var(--ann-bg);color:var(--ann-text)}.annotation-editor-footer .annotation-primary{background:var(--ann-accent);color:var(--ann-on-accent);border-color:var(--ann-accent)}.annotation-error{font-size:13px;color:#b3261e;margin:8px 0}[data-theme=dark] .annotation-error,body.dark-mode .annotation-error{color:#ffb4ab}::highlight(neurosets-annotation){background:#0002;color:inherit}[data-theme=dark] ::highlight(neurosets-annotation),body.dark-mode ::highlight(neurosets-annotation){background:#fff3;color:inherit}.annotation-source-marker{position:fixed;z-index:10050;width:28px;height:28px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#111;color:white;border:2px solid white;font:600 12px/1 sans-serif;pointer-events:none}[data-theme=dark] .annotation-source-marker,body.dark-mode .annotation-source-marker{background:#fff;color:#111;border-color:#222}.annotation-return{position:fixed;z-index:10050;left:50%;transform:translateX(-50%);bottom:calc(22px + env(safe-area-inset-bottom));display:flex;align-items:center;gap:12px;max-width:calc(100vw - 32px);width:max-content;padding:10px 14px;border:1px solid var(--ann-border);border-radius:16px;background:var(--ann-bg);box-shadow:0 6px 30px #0003}.annotation-return span{max-width:440px;font-size:13px}.annotation-return button{flex-shrink:0;background:var(--ann-soft);color:var(--ann-text);border:0;border-radius:10px;padding:9px 12px;min-height:42px}@media(max-width:640px){.annotation-editor{width:100%;max-width:none;max-height:85dvh;margin:auto 0 0;border-radius:22px 22px 0 0;padding:18px 16px calc(18px + env(safe-area-inset-bottom))}.annotation-items{max-height:240px}.annotation-return{flex-wrap:wrap;gap:8px}.annotation-return span{flex-basis:100%}.annotation-editor-footer button{flex:1}}