.annotation-overlay{position:fixed;inset:0;z-index:10001;background:rgba(0,0,0,.9);display:flex;flex-direction:column;overflow:hidden}.annotation-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:12px 16px;background:#fff;border-bottom:1px solid #e5e7eb;z-index:10}@media(max-width:768px){.annotation-toolbar{flex-wrap:wrap;justify-content:center;padding:8px 12px;gap:6px}}.annotation-toolbar.vertical{flex-direction:column;align-items:center;flex-wrap:nowrap;padding:0;border-bottom:none;gap:0;width:36px;overflow:visible}.annotation-toolbar.vertical .annotation-toolbar-section{align-items:center;width:100%}.annotation-toolbar.vertical .annotation-toolbar-section,.annotation-toolbar.vertical .annotation-toolbar-section.annotation-tools{display:flex;flex-direction:column;gap:0;overflow:visible}.annotation-toolbar.vertical .annotation-toolbar-section.annotation-history{display:flex;flex-direction:row;justify-content:center;gap:0}.annotation-toolbar.vertical .annotation-toolbar-section.annotation-zoom{display:none}.annotation-toolbar.vertical .annotation-toolbar-divider{width:28px;height:1px;margin:3px 0}.annotation-toolbar.vertical .annotation-tool-btn{width:32px;height:32px}.annotation-toolbar.vertical .annotation-tool-btn svg{width:18px;height:18px}.annotation-toolbar.vertical .annotation-tool-btn.has-options{width:38px;padding-left:4px;padding-right:10px;justify-content:flex-start}.annotation-toolbar.vertical .annotation-tool-btn.active{background:#3b82f6;color:#fff}.annotation-toolbar.vertical .annotation-actions,.annotation-toolbar.vertical .annotation-color-picker,.annotation-toolbar.vertical .annotation-font-size-dropdown,.annotation-toolbar.vertical .annotation-size-selector,.annotation-toolbar.vertical .annotation-stroke-width,.annotation-toolbar.vertical .annotation-toolbar-spacer{display:none}.annotation-toolbar-section{display:flex;align-items:center;gap:4px}@media(max-width:768px){.annotation-toolbar-section{gap:2px}}.annotation-toolbar-divider{width:1px;height:28px;background:#e5e7eb;margin:0 4px}@media(max-width:768px){.annotation-toolbar-divider{display:none}}.annotation-toolbar-spacer{flex:1}@media(max-width:768px){.annotation-toolbar-spacer{display:none}}.annotation-tool-btn{display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:none;border-radius:8px;background:rgba(0,0,0,0);color:#111827;cursor:pointer;transition:all .15s ease}.annotation-tool-btn:hover:not(:disabled){background:#f9fafb}.annotation-tool-btn:active:not(:disabled){transform:scale(.95)}.annotation-tool-btn.active{background:#3b82f6;color:#fff}.annotation-tool-btn:disabled{opacity:.4;cursor:not-allowed}@media(max-width:768px){.annotation-tool-btn{width:40px;height:40px}}.annotation-clear-btn{color:#ef4444}.annotation-clear-btn:hover:not(:disabled){background:rgba(239,68,68,.1)}.annotation-zoom{display:flex;align-items:center;gap:4px}.annotation-zoom-level{min-width:48px;text-align:center;font-size:13px;font-weight:500;color:#111827}.annotation-color-picker{display:flex;align-items:center;gap:4px}.annotation-color-swatch{width:24px;height:24px;padding:0;border:2px solid rgba(0,0,0,0);border-radius:50%;cursor:pointer;transition:all .15s ease}.annotation-color-swatch:hover{transform:scale(1.1)}.annotation-color-swatch.active{border-color:#3b82f6;transform:scale(1.15);box-shadow:0 0 0 2px #fff,0 0 0 4px #3b82f6}@media(max-width:768px){.annotation-color-swatch{width:28px;height:28px}}.annotation-stroke-width{display:flex;align-items:center;gap:8px}.annotation-stroke-slider{width:80px;height:4px;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:#e5e7eb;border-radius:2px;cursor:pointer}.annotation-stroke-slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:16px;height:16px;background:#3b82f6;border-radius:50%;cursor:grab}.annotation-stroke-slider::-moz-range-thumb{width:16px;height:16px;background:#3b82f6;border:none;border-radius:50%;cursor:grab}@media(max-width:768px){.annotation-stroke-slider{width:60px}}.annotation-stroke-preview{display:flex;align-items:center;justify-content:center;width:24px;height:24px}.annotation-stroke-dot{display:block;background:#111827;border-radius:50%}.annotation-font-size-dropdown{display:flex;align-items:center}.annotation-font-size-select{-moz-appearance:none;appearance:none;-webkit-appearance:none;padding:6px 28px 6px 10px;border:1px solid #e5e7eb;border-radius:6px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center;font-size:13px;font-weight:500;color:#111827;cursor:pointer;transition:all .15s ease;min-width:70px}.annotation-font-size-select:hover{border-color:#3b82f6}.annotation-font-size-select:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 2px rgba(59,130,246,.2)}@media(max-width:768px){.annotation-font-size-select{min-width:65px;padding:8px 28px 8px 10px}}.annotation-size-selector{display:flex;align-items:center;gap:2px;background:#f9fafb;border-radius:6px;padding:2px}.annotation-size-btn{display:flex;align-items:center;justify-content:center;min-width:28px;height:28px;padding:0 6px;border:none;border-radius:4px;background:rgba(0,0,0,0);color:#111827;font-size:12px;font-weight:600;cursor:pointer;transition:all .15s ease}.annotation-size-btn:hover:not(.active){background:rgba(59,130,246,.1)}.annotation-size-btn.active{background:#3b82f6;color:#fff}@media(max-width:768px){.annotation-size-btn{min-width:32px;height:32px;font-size:13px}}.annotation-font-size-selector{display:flex;align-items:center;gap:2px;background:#f9fafb;border-radius:6px;padding:2px}.annotation-font-size-btn{display:flex;align-items:center;justify-content:center;min-width:28px;height:28px;padding:0 6px;border:none;border-radius:4px;background:rgba(0,0,0,0);color:#111827;font-size:12px;font-weight:600;cursor:pointer;transition:all .15s ease}.annotation-font-size-btn:hover:not(.active){background:rgba(59,130,246,.1)}.annotation-font-size-btn.active{background:#3b82f6;color:#fff}@media(max-width:768px){.annotation-font-size-btn{min-width:32px;height:32px;font-size:13px}}.annotation-actions{display:flex;gap:8px}@media(max-width:768px){.annotation-actions{width:100%;margin-top:4px}}.annotation-action-btn{display:flex;align-items:center;justify-content:center;gap:6px;padding:8px 16px;border:none;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;transition:all .15s ease}@media(max-width:768px){.annotation-action-btn{flex:1;padding:12px}}.annotation-cancel-btn{background:#f9fafb;color:#111827}.annotation-cancel-btn:hover{background:#eef0f2}.annotation-done-btn{background:#3b82f6;color:#fff}.annotation-done-btn:hover{background:#2563eb}.annotation-canvas-container{flex:1;display:flex;align-items:center;justify-content:center;padding:16px;overflow:auto;position:relative}@media(max-width:768px){.annotation-canvas-container{padding:8px}}.annotation-canvas-wrapper{display:flex;align-items:center;justify-content:center;transform-origin:center center;transition:transform .15s ease}.annotation-canvas{border-radius:4px;box-shadow:0 4px 20px rgba(0,0,0,.3);touch-action:none;-moz-user-select:none;user-select:none;-webkit-user-select:none}.annotation-canvas-container .canvas-container{position:relative!important}.annotation-canvas-container .upper-canvas{touch-action:none!important;-webkit-user-select:none!important;-moz-user-select:none!important;user-select:none!important;cursor:var(--tool-cursor,crosshair)!important}.annotation-canvas-container.hovering-object .upper-canvas{cursor:move!important}.annotation-error,.annotation-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:#fff;font-size:14px}.annotation-error{color:#ef4444}.annotation-error button{padding:8px 16px;background:#fff;border:none;border-radius:8px;cursor:pointer}.annotation-spinner-icon{animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.annotation-saving-indicator{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:8px;padding:12px 20px;background:#fff;border-radius:24px;box-shadow:0 4px 20px rgba(0,0,0,.2);font-size:14px;font-weight:500;color:#111827}.annotation-save-dialog-backdrop{position:fixed;inset:0;z-index:10002;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.5);padding:16px}.annotation-save-dialog{width:100%;max-width:400px;background:#fff;border-radius:16px;overflow:hidden}.annotation-save-dialog-header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #e5e7eb}.annotation-save-dialog-header h3{margin:0;font-size:18px;font-weight:600;color:#111827}.annotation-save-dialog-close{display:flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:none;border-radius:8px;background:rgba(0,0,0,0);color:#6b7280;cursor:pointer}.annotation-save-dialog-close:hover{background:#f9fafb}.annotation-save-dialog-close:disabled{opacity:.4;cursor:not-allowed}.annotation-save-dialog-description{padding:16px 20px;margin:0;font-size:14px;color:#6b7280}.annotation-save-dialog-options{display:flex;flex-direction:column;gap:8px;padding:0 20px 20px}.annotation-save-option{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:16px;border:2px solid #e5e7eb;border-radius:12px;background:#fff;cursor:pointer;transition:all .15s ease;text-align:left}.annotation-save-option:hover:not(:disabled){border-color:#3b82f6;background:rgba(59,130,246,.05)}.annotation-save-option:disabled{opacity:.5;cursor:not-allowed}.annotation-save-option svg{color:#3b82f6}.annotation-save-option-label{font-size:16px;font-weight:600;color:#111827}.annotation-save-option-description{font-size:13px;color:#6b7280}.annotation-save-dialog-loading{display:flex;align-items:center;justify-content:center;gap:8px;padding:16px;border-top:1px solid #e5e7eb;font-size:14px;color:#6b7280}.annotation-spinner{width:20px;height:20px;border:2px solid #e5e7eb;border-top-color:#3b82f6;border-radius:50%;animation:spin .8s linear infinite}.annotation-badge{position:absolute;top:8px;right:8px;padding:4px 8px;background:#8b5cf6;color:#fff;font-size:11px;font-weight:500;border-radius:6px;pointer-events:none}.annotatable-image-wrapper{max-width:100%;margin:1rem 0}.annotatable-image-container,.annotatable-image-wrapper{position:relative;display:inline-block}.annotatable-image-container img{max-width:100%;height:auto;display:block;border-radius:4px}.annotatable-image-container.selected img{outline:2px solid #3b82f6;outline-offset:2px}@media(max-width:768px){.annotation-toolbar{position:sticky;top:0}.annotation-tools{order:1;width:100%;justify-content:center;flex-wrap:wrap}.annotation-color-picker{order:2;justify-content:center}.annotation-stroke-width{order:3}.annotation-history{order:4}.annotation-actions{order:5}}.toolbar-flyout-container,.toolbar-flyout-trigger{position:relative;display:flex;align-items:center}.toolbar-flyout-trigger{justify-content:center;gap:2px;width:36px;height:36px;padding:0;border:none;border-radius:6px;background:rgba(0,0,0,0);cursor:pointer;transition:all .15s ease}.toolbar-flyout-trigger:hover{background:#f9fafb}.toolbar-flyout-indicator{position:absolute;bottom:2px;right:2px;color:#6b7280;opacity:.6}.toolbar-flyout-popover{position:absolute;z-index:100;background:#fff;border:1px solid #e5e7eb;border-radius:8px;box-shadow:0 4px 16px rgba(0,0,0,.15);padding:8px;min-width:-moz-max-content;min-width:max-content}.toolbar-flyout-popover.toolbar-flyout-right{left:calc(100% + 8px);top:50%;transform:translateY(-50%)}.toolbar-flyout-popover.toolbar-flyout-bottom{top:calc(100% + 8px);left:50%;transform:translateX(-50%)}.color-flyout-swatch{display:block;width:24px;height:24px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px #e5e7eb}.color-flyout-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.color-flyout-option{width:28px;height:28px;padding:0;border:2px solid rgba(0,0,0,0);border-radius:50%;cursor:pointer;transition:all .15s ease}.color-flyout-option:hover{transform:scale(1.1)}.color-flyout-option.active{border-color:#3b82f6;box-shadow:0 0 0 2px #fff,0 0 0 4px #3b82f6}.stroke-flyout-preview{display:flex;align-items:center;justify-content:center;width:24px;height:24px}.stroke-flyout-dot{display:block;background:#111827;border-radius:50%}.stroke-flyout-content{display:flex;align-items:center;gap:8px;padding:4px}.stroke-flyout-slider{width:100px;height:4px;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:#e5e7eb;border-radius:2px;cursor:pointer}.stroke-flyout-slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:16px;height:16px;background:#3b82f6;border-radius:50%;cursor:grab}.stroke-flyout-slider::-moz-range-thumb{width:16px;height:16px;background:#3b82f6;border:none;border-radius:50%;cursor:grab}.stroke-flyout-value{font-size:12px;font-weight:500;color:#6b7280;min-width:32px;text-align:right}.size-flyout-current{display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600;color:#111827;min-width:24px}.size-flyout-options{display:flex;gap:4px}.size-flyout-option{display:flex;align-items:center;justify-content:center;min-width:32px;height:32px;padding:0 8px;border:1px solid #e5e7eb;border-radius:6px;background:#fff;font-size:12px;font-weight:600;color:#111827;cursor:pointer;transition:all .15s ease}.size-flyout-option:hover{border-color:#3b82f6;background:rgba(59,130,246,.05)}.size-flyout-option.active{background:#3b82f6;border-color:#3b82f6;color:#fff}.tool-button-flyout-container{position:relative;display:flex;align-items:center;justify-content:center}.annotation-tool-btn.has-options{position:relative}.annotation-tool-btn.has-options .tool-options-indicator{position:absolute;bottom:50%;right:-1px;transform:translateY(50%);color:currentColor;opacity:.6}.annotation-tool-btn.has-options.active .tool-options-indicator{opacity:.9}.tool-flyout-popover{position:absolute;left:calc(100% + 8px);top:50%;transform:translateY(-50%);z-index:100;background:#fff;border:1px solid #e5e7eb;border-radius:8px;box-shadow:0 4px 16px rgba(0,0,0,.15);padding:8px;min-width:-moz-max-content;min-width:max-content}.tool-flyout-size-options{display:flex;gap:4px}.tool-flyout-size-btn{display:flex;align-items:center;justify-content:center;min-width:32px;height:32px;padding:0 8px;border:1px solid #e5e7eb;border-radius:6px;background:#fff;font-size:12px;font-weight:600;color:#111827;cursor:pointer;transition:all .15s ease}.tool-flyout-size-btn:hover{border-color:#3b82f6;background:rgba(59,130,246,.05)}.tool-flyout-size-btn.active{background:#3b82f6;border-color:#3b82f6;color:#fff}.tool-flyout-font-size{display:flex;flex-direction:column;gap:8px}.tool-flyout-incrementer{display:flex;align-items:center;gap:4px;padding-bottom:8px;border-bottom:1px solid #e5e7eb}.tool-flyout-inc-btn{display:flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:1px solid #e5e7eb;border-radius:6px;background:#fff;color:#111827;cursor:pointer;transition:all .15s ease}.tool-flyout-inc-btn:hover:not(:disabled){border-color:#3b82f6;background:rgba(59,130,246,.05);color:#3b82f6}.tool-flyout-inc-btn:disabled{opacity:.4;cursor:not-allowed}.tool-flyout-inc-value{min-width:32px;text-align:center;font-size:14px;font-weight:600;color:#111827}.tool-flyout-stroke-content{display:flex;align-items:center;gap:8px;padding:4px}.tool-flyout-stroke-slider{width:100px;height:4px;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:#e5e7eb;border-radius:2px;cursor:pointer}.tool-flyout-stroke-slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:16px;height:16px;background:#3b82f6;border-radius:50%;cursor:grab}.tool-flyout-stroke-slider::-moz-range-thumb{width:16px;height:16px;background:#3b82f6;border:none;border-radius:50%;cursor:grab}.tool-flyout-stroke-value{font-size:12px;font-weight:500;color:#6b7280;min-width:32px;text-align:right}.annotation-session-toolbar{position:fixed;left:var(--thumbnail-sidebar-width,200px);top:205px;bottom:100px;z-index:10000;display:flex;flex-direction:column;gap:4px;padding:8px;background:#fff;border:1px solid #e5e7eb;border-left:none;border-radius:0 12px 12px 0;box-shadow:2px 0 12px rgba(0,0,0,.08);overflow:visible}.annotation-session-toolbar .session-toolbar-inner{border:none!important;background:rgba(0,0,0,0)!important;padding:0!important;width:36px}.annotation-session-toolbar .session-toolbar-inner .annotation-tool-btn.active{background:#3b82f6!important;color:#fff!important}.annotation-session-toolbar .tool-flyout-popover,.annotation-session-toolbar .toolbar-flyout-popover{z-index:10001!important}.annotation-session-toolbar .tool-button-flyout-container,.annotation-session-toolbar .toolbar-flyout-container{overflow:visible}.annotation-session-toolbar-actions{display:flex;flex-direction:column;gap:4px;padding-top:8px;border-top:1px solid #e5e7eb;margin-top:4px}.session-action-btn{display:flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;border:none;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;transition:all .15s ease}.session-action-btn svg{width:18px;height:18px}.session-action-btn:disabled{opacity:.6;cursor:not-allowed}.session-action-btn.save-btn{background:#3b82f6;color:#fff}.session-action-btn.save-btn:hover:not(:disabled){background:#2563eb}.session-action-btn.fullscreen-btn{background:#f9fafb;color:#111827;border:1px solid #e5e7eb}.session-action-btn.fullscreen-btn:hover:not(:disabled){background:#f0f9ff;color:#3b82f6;border-color:#bae6fd}.session-action-btn.cancel-btn{background:#fff;color:#6b7280;border:1px solid #e5e7eb}.session-action-btn.cancel-btn:hover:not(:disabled){background:#fef2f2;color:#ef4444;border-color:#fecaca}@media(max-width:768px){.annotation-session-toolbar{left:0;right:0;top:auto;bottom:0;transform:none;flex-direction:row;flex-wrap:wrap;justify-content:center;border-radius:12px 12px 0 0;border-left:1px solid #e5e7eb;border-bottom:none;max-height:none;max-width:100%;overflow-x:auto;overflow-y:visible;padding:8px 12px}.annotation-session-toolbar .session-toolbar-inner{flex-direction:row!important;flex-wrap:wrap;justify-content:center;width:auto}.annotation-session-toolbar-actions{flex-direction:row;padding-top:0;padding-left:8px;border-top:none;border-left:1px solid #e5e7eb;margin-top:0;margin-left:8px}.session-action-btn{width:40px;height:40px}}.annotation-transition-dialog-backdrop{position:fixed;inset:0;z-index:10002;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.5);padding:16px}.annotation-transition-dialog{width:100%;max-width:420px;background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 20px 60px rgba(0,0,0,.3)}.annotation-transition-dialog-header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #e5e7eb}.annotation-transition-dialog-header h3{margin:0;font-size:18px;font-weight:600;color:#111827}.annotation-transition-dialog-close{display:flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:none;border-radius:8px;background:rgba(0,0,0,0);color:#6b7280;cursor:pointer}.annotation-transition-dialog-close:hover{background:#f9fafb}.annotation-transition-dialog-body{padding:16px 20px}.annotation-transition-dialog-body p{margin:0;font-size:14px;line-height:1.5;color:#6b7280}.annotation-transition-dialog-options{display:flex;flex-direction:column;gap:8px;padding:0 20px 20px}.annotation-transition-option{display:flex;align-items:center;gap:12px;padding:14px 16px;border:2px solid #e5e7eb;border-radius:12px;background:#fff;cursor:pointer;transition:all .15s ease;text-align:left}.annotation-transition-option:hover{border-color:#3b82f6;background:rgba(59,130,246,.02)}.annotation-transition-option svg{flex-shrink:0;color:#3b82f6}.annotation-transition-option.continue svg{color:#3b82f6}.annotation-transition-option.continue:hover{border-color:#3b82f6;background:rgba(59,130,246,.05)}.annotation-transition-option.save-replace svg{color:#22c55e}.annotation-transition-option.save-replace:hover{border-color:#22c55e;background:rgba(34,197,94,.05)}.annotation-transition-option.save-new svg{color:#3b82f6}.annotation-transition-option.save-new:hover{border-color:#3b82f6;background:rgba(59,130,246,.05)}.annotation-transition-option.discard svg{color:#ef4444}.annotation-transition-option.discard:hover{border-color:#ef4444;background:rgba(239,68,68,.05)}.annotation-transition-option-text{display:flex;flex-direction:column;gap:2px}.annotation-transition-option-label{font-size:15px;font-weight:600;color:#111827}.annotation-transition-option-desc{font-size:13px;color:#6b7280}