.annotation-workspace{padding-bottom:24px}.annotation-heading{display:flex;align-items:center;gap:24px;padding:22px 0}.annotation-heading>a{color:var(--muted);font-size:13px}.annotation-heading h1{font-size:22px;letter-spacing:-.6px}.annotation-heading>span{margin-left:auto;font-size:12px;color:var(--muted)}.annotation-shell{display:grid;grid-template-columns:minmax(0,1fr) 280px;min-height:660px;height:calc(100dvh - 184px);max-height:1040px;border:1px solid var(--border);border-radius:16px;background:var(--panel);overflow:hidden;box-shadow:0 5px 25px #10254006}.annotation-document{min-width:0;min-height:0;display:flex;flex-direction:column}.annotation-file{display:flex;align-items:center;gap:16px;padding:12px 20px;border-bottom:1px solid var(--border);min-height:48px}.annotation-file-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:var(--muted)}.annotation-file button{margin-left:auto;color:var(--blue);font-size:12px;white-space:nowrap}.annotation-toolbar{display:flex;align-items:center;gap:12px;padding:10px 14px;min-height:64px;border-bottom:1px solid var(--border);flex-wrap:wrap}.annotation-tools,.annotation-style,.annotation-history{display:flex;align-items:center;gap:4px}.annotation-toolbar button{border-radius:7px;padding:8px;display:flex;align-items:center;gap:6px;font-size:12px;min-height:36px}.annotation-toolbar button[aria-pressed=true]{color:#0069ed;background:#eaf3ff}.annotation-toolbar button:disabled{opacity:.4;cursor:default}.annotation-style{gap:12px;padding-left:12px;border-left:1px solid var(--border)}.annotation-style label{display:flex;align-items:center;gap:5px;font-size:11px;color:var(--muted)}.annotation-style input[type=color]{width:28px;height:28px;padding:2px;background:var(--panel);border:1px solid var(--border);border-radius:6px;cursor:pointer}.annotation-style select{width:49px;padding:5px 2px;border:1px solid var(--border);border-radius:6px;background:var(--panel);color:inherit}.annotation-history{margin-left:auto}.annotation-viewer{display:flex;flex:1;min-height:0;overflow:hidden;background:#eaf0f6}.annotation-viewer .thumbnails{width:104px;min-width:104px;overflow:auto;background:#f5f8fc;padding:15px 12px;border-right:1px solid var(--border)}.annotation-viewer .thumb{display:block;width:100%;margin:0 0 18px;padding:4px;border:1px solid transparent;border-radius:4px;background:none}.annotation-viewer .thumb canvas{display:block;width:100%;height:auto;box-shadow:0 2px 5px #132d4620}.annotation-viewer .thumb span{display:block;font-size:11px;margin-top:8px;color:var(--muted)}.annotation-viewer .thumb.active{border-color:#4597ff;background:#e7f1ff}.annotation-canvas{position:relative;min-width:0;display:flex;flex-direction:column;flex:1;overflow:hidden}.annotation-canvas .page-scroll{flex:1;width:100%;height:auto;min-height:0;overflow:auto;padding:30px 20px 25px;display:block}.annotation-canvas .folio-real-page{margin:0 auto;color:var(--muted);min-height:0;max-width:none}.annotation-canvas .folio-real-page>canvas{display:block;background:white;box-shadow:0 4px 20px #20395725}.annotation-pagebar{flex-shrink:0;height:43px;display:flex;justify-content:center;align-items:center;gap:13px;background:var(--panel);border-top:1px solid var(--border);font-size:12px;color:var(--muted)}.annotation-pagebar button{font-size:22px;width:28px}.annotation-pagebar b{font-size:11px;font-weight:500}.annotation-pagebar-divider{height:16px;width:1px;background:var(--border);margin:0 4px}.annotation-sidebar{display:flex;flex-direction:column;min-height:0;border-left:1px solid var(--border);padding:24px 20px 20px}.annotation-sidebar-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.annotation-sidebar h2{font-size:18px}.annotation-sidebar-heading>span{background:var(--soft);color:var(--muted);min-width:25px;padding:4px 7px;border-radius:7px;text-align:center;font-size:11px}.annotation-help{font-size:12px;margin:18px 0;line-height:1.6;background:#f0f6ff;border-radius:9px;padding:12px;color:#3d6090}.annotation-list{overflow:auto;flex:1;min-height:70px}.annotation-list-empty{text-align:center;line-height:1.9;font-size:12px;color:#8593a8;padding:24px 5px}.annotation-row{display:flex;border:1px solid transparent;border-bottom-color:var(--border);border-radius:6px;padding:6px 3px;margin-bottom:4px}.annotation-row.is-selected{border-color:#9dc5ff;background:#f3f8ff}.annotation-row>button:first-child{display:flex;align-items:center;gap:10px;flex:1;min-width:0;text-align:left;padding:7px}.annotation-row svg{flex-shrink:0;color:var(--muted)}.annotation-row>button>span{min-width:0}.annotation-row b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;max-width:145px;font-weight:500}.annotation-row small{display:block;font-size:10px;margin-top:5px;color:var(--muted)}.annotation-row>button:last-child{padding:6px;color:#8897ad}.annotation-row>button:last-child svg{width:16px}.annotation-save{padding-top:18px;border-top:1px solid var(--border);margin-top:15px}.annotation-save .wide{width:100%;display:block;text-align:center;padding:15px 8px;font-size:14px}.annotation-save [hidden]{display:none!important}.annotation-save button:disabled{opacity:.45;cursor:default;transform:none}.annotation-save #engine-status{font-size:11px;text-align:center;line-height:1.5;min-height:32px;overflow-wrap:anywhere;margin:12px 0}.annotation-save>button{color:var(--blue);font-size:12px;margin:0 0 8px}.annotation-original{display:block;text-align:center;font-size:11px;color:var(--muted)}.annotation-overlay{position:absolute;inset:0;width:100%;height:100%;touch-action:none;overflow:visible}.annotation-overlay[data-tool=text]{cursor:text}.annotation-overlay[data-tool=highlight],.annotation-overlay[data-tool=ink],.annotation-overlay[data-tool=rectangle]{cursor:crosshair}.annotation-overlay [data-annotation-id]{cursor:move}.annotation-selection{fill:none;stroke:#1685ff;stroke-width:1;stroke-dasharray:4 3;pointer-events:none;vector-effect:non-scaling-stroke}.annotation-handle{fill:#1685ff;stroke:white;stroke-width:1;pointer-events:none}.annotation-inline-text{position:absolute;z-index:2;min-height:30px;border:1px solid #1685ff;padding:4px;background:#ffffffed;outline:3px solid #1685ff20;border-radius:2px}.annotation-empty{text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:430px;padding:25px}.annotation-empty>span{color:var(--blue);display:grid;place-items:center;width:70px;height:70px;border-radius:20px;background:#e1edff;margin-bottom:20px}.annotation-empty>span svg{width:33px;height:33px}.annotation-empty h2{font-size:23px}.annotation-empty p{font-size:13px;max-width:290px;line-height:1.7;margin:14px 0 23px}.dark .annotation-viewer{background:#0d1727}.dark .annotation-viewer .thumbnails{background:#142238}.dark .annotation-help,.dark .annotation-row.is-selected,.dark .annotation-toolbar button[aria-pressed=true]{background:#193353;color:#bdd8ff}.dark .annotation-empty>span{background:#193353}.dark .annotation-inline-text{background:white}
@media(max-width:1150px){.annotation-shell{grid-template-columns:minmax(0,1fr) 245px}.annotation-sidebar{padding:18px 14px}.annotation-toolbar{gap:7px}.annotation-tools button{flex-direction:column;gap:4px;padding:5px 7px;font-size:10px}.annotation-style{padding-left:8px;gap:5px}.annotation-style label{font-size:0}.annotation-history{gap:0}.annotation-history button{padding:5px}.annotation-viewer .thumbnails{width:80px;min-width:80px;padding:12px 8px}}
@media(max-width:760px){.annotation-heading{gap:14px;padding:18px 0}.annotation-heading h1{font-size:19px}.annotation-heading>span{display:none}.annotation-shell{display:flex;flex-direction:column;height:auto;min-height:0;max-height:none}.annotation-document{height:72dvh;min-height:490px}.annotation-toolbar{padding:8px;gap:6px}.annotation-tools{gap:0;flex:1;justify-content:space-between}.annotation-tools button{padding:6px 7px;font-size:10px}.annotation-style{border:0;padding-left:0}.annotation-history{margin-left:auto}.annotation-file{padding:12px}.annotation-viewer .thumbnails{width:55px;min-width:55px;padding:10px 5px}.annotation-canvas .page-scroll{padding:18px 8px}.annotation-sidebar{border-left:0;border-top:1px solid var(--border);padding:18px}.annotation-sidebar-heading h2{font-size:16px}.annotation-help{margin:12px 0}.annotation-list{max-height:170px;min-height:0}.annotation-list-empty{padding:8px}.annotation-row b{max-width:230px}.annotation-save{margin-top:12px;padding-top:14px}.annotation-empty{min-height:330px;padding:12px}.annotation-empty h2{font-size:18px}.annotation-empty p{font-size:12px}.annotation-empty .primary{font-size:12px;padding:12px}.annotation-heading>a{font-size:11px}}
.annotation-overlay .annotation-resize{cursor:nwse-resize}.annotation-handle-hit{fill:transparent;pointer-events:all}.annotation-handle{vector-effect:non-scaling-stroke}
/* Direct manipulation: constant screen-size targets, clear editing and selection states. */
.annotation-workspace [hidden]{display:none!important}
.annotation-size-control{display:flex;align-items:center;border:1px solid var(--border);border-radius:8px;overflow:hidden;background:var(--panel)}
.annotation-style .annotation-size-control button{padding:0;width:28px;min-height:30px;justify-content:center;border-radius:0;font-size:18px}
.annotation-size-control input{width:36px;padding:5px 0;text-align:center;font-size:12px;font-weight:600;color:var(--text);background:transparent;border:0;outline-offset:-2px;appearance:textfield;-moz-appearance:textfield}
.annotation-size-control input::-webkit-inner-spin-button,.annotation-size-control input::-webkit-outer-spin-button{appearance:none;margin:0}
.annotation-toolbar button:hover:not(:disabled),.annotation-properties button:hover{background:var(--soft);color:var(--blue)}
.annotation-toolbar button:focus-visible,.annotation-properties button:focus-visible,.annotation-text-actions button:focus-visible{outline:2px solid #1685ff;outline-offset:2px}
.annotation-properties{border:1px solid var(--border);border-radius:10px;padding:11px;margin-bottom:14px;background:var(--panel)}
.annotation-properties>span{font-size:11px;color:var(--muted);display:block;margin-bottom:10px}
.annotation-properties>div{display:flex;align-items:center;gap:5px}
.annotation-properties button{display:flex;align-items:center;justify-content:center;min-height:34px;font-size:11px;padding:7px;border-radius:6px;background:var(--soft)}
.annotation-properties button:disabled{opacity:.4;cursor:default}
.annotation-properties [data-annotation-edit]{color:var(--blue);font-weight:600}
.annotation-properties [data-annotation-remove]{margin-left:auto}
.annotation-overlay{z-index:3}
.annotation-selection{stroke-dasharray:none;stroke-width:1.25}
.annotation-handle{fill:white;stroke:#1685ff;stroke-width:2}
.annotation-overlay .annotation-resize[data-annotation-resize=ne],.annotation-overlay .annotation-resize[data-annotation-resize=sw]{cursor:nesw-resize}
.annotation-resize:hover .annotation-handle{fill:#d9ebff;stroke-width:3}
.annotation-overlay.is-editing{pointer-events:none}
.annotation-overlay.is-editing [data-annotation-id]{pointer-events:none}
.annotation-overlay.is-editing .annotation-handle-hit{pointer-events:all}
.annotation-overlay[data-gesture=move],.annotation-overlay[data-gesture=move] *{cursor:grabbing}
.annotation-inline-text{box-sizing:border-box;z-index:2;min-height:0;min-width:0;margin:0;border:0;background:#fffffff2;outline:0;border-radius:0;line-height:normal}
.annotation-text-actions{position:absolute;z-index:4;display:flex;gap:3px;padding:3px;border:1px solid #d4e3f6;border-radius:8px;box-shadow:0 3px 12px #122a4620;background:white;color:#1e3855}
.annotation-text-actions button{font:12px Arial;padding:5px 9px;border-radius:5px;min-height:26px}
.annotation-text-actions [data-text-done]{background:#087bfa;color:white;font-weight:600}
@media(pointer:coarse){.annotation-text-actions button{min-height:36px}.annotation-properties button{min-height:40px}}
