.annotate-toggle{font-size:11px;white-space:nowrap;padding:7px 9px;border:1px solid var(--line);border-radius:6px}
.annotate-toggle[aria-expanded=true]{background:var(--soft);color:var(--green)}
.annotation-toolbar{flex-shrink:0;display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:10px 20px;background:var(--paper);border-bottom:1px solid var(--line);font-size:11px}
.annotation-tools{display:flex;gap:2px;border:1px solid var(--line);border-radius:6px;padding:2px}
.annotation-toolbar button{min-height:30px;padding:5px 8px;border-radius:4px;white-space:nowrap}
.annotation-tools [aria-pressed=true]{background:var(--green);color:var(--paper)}
.annotation-toolbar label{display:flex;align-items:center;gap:5px;color:var(--muted)}
.annotation-toolbar select,.annotation-edit-color select{border:1px solid var(--line);background:var(--paper);color:var(--ink);padding:5px;border-radius:5px;font:inherit}
.annotation-history{display:flex}.annotation-history button{font-size:19px;line-height:1;width:30px}
#annotation-list-open{margin-left:auto}#annotation-count{background:var(--soft);border-radius:4px;padding:2px 5px;margin-left:3px}
#annotation-done{color:var(--green)}#annotation-hint{flex-basis:100%;font-size:10px;color:var(--muted)}
.annotation-layer{position:absolute;inset:0;z-index:2;pointer-events:none;user-select:none}
.annotation-marks{position:absolute;inset:0;width:100%;height:100%;overflow:hidden;pointer-events:none}
.annotation-pin{position:absolute;display:grid;place-items:center;width:24px;height:24px;min-width:24px;padding:0;border:1px solid #ffffffb0;border-radius:6px;background:var(--annotation-color);color:#172c23;box-shadow:0 1px 4px #0002;pointer-events:auto;transform:translate(2px,-2px);font:600 13px/1 sans-serif;opacity:.8}
.annotation-pin:hover,.annotation-pin:focus-visible{opacity:1;box-shadow:0 2px 7px #0003}
.annotation-layer [data-annotation-id]{cursor:pointer}
#pdf-pages[data-annotation-tool=drawing] .annotation-marks,#pdf-pages[data-annotation-tool=comment] .annotation-marks,#pdf-pages[data-annotation-tool=erase] .annotation-marks{pointer-events:auto;touch-action:none;cursor:crosshair}
#pdf-pages[data-annotation-tool=erase] .annotation-marks{cursor:cell}
#pdf-pages:not([data-annotation-tool=select]) .annotation-pin{pointer-events:none;opacity:.4}
#pdf-pages:not([data-annotation-tool=select]) .textLayer{pointer-events:none;user-select:none}
#annotation-editor,#annotations-dialog{width:min(470px,calc(100vw - 32px));border:1px solid var(--line);color:var(--ink)}
#annotation-editor::backdrop,#annotations-dialog::backdrop{background:#14271e55}
#annotation-editor-page{color:var(--muted);margin:0 0 14px}
#annotation-quote{font-size:12px;line-height:1.65;max-height:135px;overflow:auto;white-space:pre-wrap;border-left:3px solid var(--line);padding:8px 12px;margin:0 0 20px;background:var(--soft)}
#annotation-form>label{display:block;font-size:12px;margin:12px 0 7px}
#annotation-comment{display:block;box-sizing:border-box;width:100%;resize:vertical;min-height:105px;border:1px solid var(--line);border-radius:7px;background:var(--paper);color:var(--ink);font:13px/1.7 var(--sans);padding:12px}
#annotation-form .annotation-edit-color{display:flex;align-items:center;gap:10px;margin-top:15px}
.annotation-editor-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:24px}#annotation-delete{margin-right:auto;color:#b44646}
.annotations-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.annotations-heading h2{margin:0!important}
#annotations-list{display:flex;flex-direction:column;gap:10px;max-height:65vh;overflow:auto}
.annotation-list-item{display:block;text-align:left;padding:14px;border:1px solid var(--line);border-left:4px solid var(--annotation-color);border-radius:7px;width:100%;background:var(--paper)}
.annotation-list-item strong{display:block;font-size:11px;color:var(--muted);font-weight:500;margin-bottom:6px}
.annotation-list-item p{font-size:13px!important;line-height:1.6!important;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}
.annotation-list-item small{display:block;font-size:11px;line-height:1.5;color:var(--muted);margin-top:6px}
.selection-menu{flex-wrap:wrap}
@container(max-width:580px){.annotate-toggle span{display:none}.annotate-toggle{font-size:17px;padding:3px 6px}.annotation-toolbar{padding:8px 10px;gap:5px}}
@container(max-width:480px){.reader-toolbar .toolbar-right a{display:none}}
