.annotation-editor-open{overflow:hidden}.annotation-editor{position:fixed;top:0;right:0;bottom:0;left:0;margin:auto;width:min(1500px,calc(100vw - 48px));height:min(960px,calc(100dvh - 48px));max-width:none;max-height:none;padding:0;border:1px solid #45455e;border-radius:12px;background:#1a1a2e;color:#eee;color-scheme:dark;box-shadow:0 24px 80px #0009}.annotation-editor::backdrop{background:#05050dcc}.editor-shell{height:100%;display:flex;flex-direction:column}.editor-header,.editor-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 24px;flex-shrink:0}.editor-header{border-bottom:1px solid #38384e}.editor-header h2{color:#eee;font-size:1.2rem;margin:0 0 4px}.editor-header p,.editor-footer p,.editor-hint,.editor-help{color:#b6b6ca;font-size:.8rem;line-height:1.6}.annotation-editor button{border:1px solid #505067;border-radius:6px;padding:9px 12px;background:#29293e;color:#eee;cursor:pointer;font:inherit;font-size:.85rem;min-height:40px}.annotation-editor button:hover{background:#36364e;border-color:#9292b0}.annotation-editor button:disabled{opacity:.45;cursor:not-allowed}.annotation-editor :focus-visible,#image-preview:focus-visible{outline:2px solid #a6b5ff;outline-offset:3px}.annotation-editor .editor-close{padding:0;width:40px;flex-shrink:0;font-size:1.6rem;line-height:1}.editor-body{display:grid;grid-template-columns:minmax(0,1fr) 288px;flex:1;min-height:0}.editor-workspace{display:flex;flex-direction:column;min-width:0;min-height:0;background:#10101e}.editor-viewbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 16px;padding:12px 16px;color:#b6b6ca;font-size:.8rem}.editor-zoom{display:flex;align-items:center;gap:10px}.editor-zoom input{width:90px}.annotation-editor input[type=range]{accent-color:#a6b5ff;cursor:pointer;min-height:28px}.annotation-editor output,.editor-coord,#editor-image-size{font-variant-numeric:tabular-nums}.editor-zoom output{min-width:3.5em}.editor-viewport{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-color:#62627c #10101e;background:#07070d}.editor-space{display:grid;place-items:center}.editor-image{position:relative;flex-shrink:0}.editor-image canvas{display:block;width:100%;height:100%;cursor:crosshair}.editor-markers{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.editor-point{position:absolute;width:18px;height:18px;border:2px solid currentColor;border-radius:50%;transform:translate(-50%,-50%);box-shadow:0 2px 4px #000b}.editor-point:before,.editor-point:after{content:"";position:absolute;background:currentColor}.editor-point:before{width:2px;height:6px;left:6px;top:-7px}.editor-point:after{width:6px;height:2px;top:6px;left:-7px}.editor-point.macula{color:#ff6b6b}.editor-point.disc{color:#4ecdc4}.editor-point.hole{color:#ffe66d}.editor-point.ampulla{color:#b48cff}.editor-point.ampulla.pending{border-style:dashed;opacity:.85}.editor-point.ampulla.selected{box-shadow:0 0 0 5px #b48cff55,0 2px 4px #000b}.editor-ampullae{margin-top:12px;padding-top:12px;border-top:1px solid #38384e}.editor-ampulla-list{list-style:none;margin:10px 0;padding:0;display:grid;gap:6px;max-height:168px;overflow-y:auto;scrollbar-color:#62627c #1a1a2e}.editor-ampulla-list:empty:before{content:"尚未添加壶腹";display:block;color:#8b8ba3;font-size:.78rem}.editor-ampulla-item{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:4px}.editor-ampulla-item.selected .editor-ampulla-select{border-color:#b48cff;color:#fff;background:#3a2f5c}.annotation-editor .editor-ampulla-item button{min-height:32px;padding:5px 8px;font-size:.75rem}.annotation-editor .editor-ampulla-select{text-align:left;font-variant-numeric:tabular-nums;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.annotation-editor .editor-ampulla-status.review{border-style:dashed;color:#ffd479}.annotation-editor .editor-ampulla-status.confirmed{color:#b48cff}.editor-check{display:flex;align-items:center;gap:8px;margin-top:4px;font-size:.8rem;color:#d7deff}.annotation-editor .editor-check input{width:16px;height:16px;accent-color:#b48cff}.editor-point span{position:absolute;bottom:12px;width:max-content;height:max-content;background:#080811e6;color:#fff;font-size:12px;padding:3px 6px;border-radius:3px}.editor-hint{padding:10px 16px}.editor-sidebar{overflow-y:auto;padding:20px;border-left:1px solid #38384e;scrollbar-color:#62627c #1a1a2e}.editor-sidebar fieldset{min-width:0;border:0;margin:0 0 24px;padding:0}.editor-sidebar legend{font-weight:600;font-size:.95rem;margin-bottom:12px}.editor-marker-modes{display:grid;gap:8px}.marker-dot.ampulla{background:#b48cff}.editor-marker-mode>span:first-child{display:flex;align-items:center;gap:8px}.editor-coord{display:block;text-align:left;padding:5px 0 0 18px;font-size:.75rem;color:#b6b6ca}.annotation-editor [aria-pressed=true]{background:#303c66;border-color:#a6b5ff;color:#fff}.editor-status{color:#d7deff;font-size:.8rem;margin-top:10px}.editor-marker-actions,.editor-channels{display:flex;gap:6px;margin-top:12px}.editor-marker-actions button,.editor-channels button{flex:1;padding:8px 6px;white-space:nowrap}.editor-help{margin-top:8px}.editor-range-label{display:flex;align-items:center;justify-content:space-between;margin:18px 0 6px;font-size:.85rem}.editor-range-label output{color:#d7deff}.editor-sidebar input[type=range],.editor-reset{width:100%}.editor-reset{margin-top:18px}.editor-footer{border-top:1px solid #38384e}.editor-footer>div{display:flex;gap:10px;flex-shrink:0}.annotation-editor .editor-primary{background:#5265bc;border-color:#8294ee;color:#fff;padding-inline:24px}.annotation-editor .editor-primary:hover{background:#6376cb}@media (max-width: 760px){.annotation-editor{width:100vw;height:100dvh;border:0;border-radius:0}.editor-header,.editor-footer{padding:12px 16px}.editor-header p,.editor-footer p{display:none}.editor-body{display:flex;flex-direction:column;overflow-y:auto}.editor-workspace{flex:0 0 auto;min-height:320px;height:52dvh}.editor-sidebar{flex-shrink:0;overflow:visible;border-left:0;border-top:1px solid #38384e;padding:16px}.editor-marker-modes{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.annotation-editor .editor-marker-mode{padding:10px 6px;font-size:.75rem}.editor-marker-mode>span:first-child{gap:5px}.editor-marker-mode .marker-dot{width:7px;height:7px;flex-shrink:0}.editor-coord{padding-left:0;font-size:.65rem}.editor-sidebar fieldset:last-child{margin-bottom:0}.editor-footer{justify-content:flex-end;padding-bottom:max(12px,env(safe-area-inset-bottom))}}.editor-reference-label{display:block;margin:8px 0 4px;font-size:.8rem}.annotation-editor #editor-eye-side,.annotation-editor #editor-orientation{width:100%;padding:7px;color:#eee;background:#222238;border:1px solid #62627c;border-radius:5px}#editor-quadrant-hint.pending,.editor-ampulla-reason{color:#ffd479}.editor-ampulla-reason{grid-column:1 / -1;margin:0 0 6px;font-size:.75rem;line-height:1.5}
