.canvas-capture-panel[hidden]{display:none}
.annotation-toolbar.has-capture-options .annotation-dock-panel > :not(.canvas-capture-panel){display:none!important}
.canvas-capture-panel{position:absolute;inset:14px;display:flex;flex-direction:column;gap:14px;color:#fff;font-size:13px;text-align:left}
.capture-panel-header{display:flex;align-items:center;justify-content:space-between;min-height:36px}.capture-panel-header strong{font-size:16px}
.canvas-capture-panel button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:8px 12px;border:1px solid #ffffff40;border-radius:10px;background:#ffffff12;color:inherit;cursor:pointer;font:inherit}
.canvas-capture-panel svg{width:22px;height:22px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.capture-panel-header button{font-size:12px}.capture-panel-header svg{width:18px;height:18px}
.capture-panel-grid,.capture-mode-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.capture-mode-options{grid-template-columns:repeat(3,minmax(0,1fr))}.capture-panel-grid button,.capture-mode-options button{min-height:88px;flex-direction:column;padding:8px 4px;gap:6px;text-align:center}.canvas-capture-panel small{font-size:10px;opacity:.75}.capture-mode-options button{font-size:12px}
.canvas-capture-panel button[aria-pressed=true]{background:#087f65;border-color:#55d2aa}.canvas-capture-panel button:not(:disabled):hover{border-color:#55d2aa}.canvas-capture-panel button:focus-visible{outline:2px solid #fff;outline-offset:2px}.canvas-capture-panel button:disabled{opacity:.35;cursor:default}
.canvas-capture-panel p{margin:0;padding:10px 8px;border-radius:8px;background:#ffffff0d;font-size:12px;text-align:center;line-height:1.6;color:#d9eee6}
.canvas-capture-outline{position:absolute;inset:0;width:100%;height:100%;z-index:100;pointer-events:none;overflow:visible}.canvas-capture-outline path{fill:#00ad8418;stroke:#087f65;stroke-width:2;vector-effect:non-scaling-stroke;stroke-dasharray:6 4}
.is-capturing-region .image-editor{cursor:crosshair;touch-action:none}.is-capturing-region .image-editor *{cursor:crosshair!important}
.is-capturing-canvas .overlay-selection-controls,.is-capturing-canvas .floating-tools,.is-capturing-canvas .overlay-item :is(.overlay-quick-toolbar,.overlay-rotate,.overlay-resize,.overlay-remove){visibility:hidden!important;pointer-events:none!important}
.is-capturing-canvas .overlay-item.is-selected{outline:none;border-color:transparent}
.capture-ball-icon{display:none}.has-capture-options .annotation-dock-toggle > :not(.capture-ball-icon){display:none}.has-capture-options .annotation-dock-toggle > .capture-ball-icon{display:flex;flex-direction:column;align-items:center;gap:3px}.capture-ball-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.capture-ball-icon span{font-size:10px}
.canvas-capture-panel small{color:#d9eee6;opacity:1}
/* A newly pasted object's controls must not cover the expanded tool menu. */
.annotation-toolbar.is-expanded{z-index:30}
.annotation-toolbar.has-capture-options .annotation-dock-panel{width:320px;height:204px;border-radius:14px}
.annotation-toolbar.has-capture-options.is-expanded .annotation-dock-toggle{top:-102px}
.canvas-capture-panel{inset:12px;gap:8px}.capture-panel-header{min-height:32px}.capture-panel-header strong{font-size:14px}.capture-panel-header button{min-height:32px;padding:4px 8px}
.capture-mode-options,.capture-panel-grid{gap:6px}.capture-mode-options button,.capture-panel-grid button{flex-direction:row;gap:5px;min-height:44px;padding:6px 4px;font-size:12px;border-radius:8px}.canvas-capture-panel svg{width:18px;height:18px}.canvas-capture-panel small{display:none}.canvas-capture-panel p{padding:6px;font-size:11px;line-height:1.5}
.capture-context-action[hidden]{display:none}.capture-context-action{position:fixed;z-index:80;display:flex;align-items:center;justify-content:center;gap:5px;min-width:76px;min-height:38px;padding:6px 10px;border:1px solid #087f65;border-radius:8px;box-shadow:0 3px 12px #163d3426;background:#087f65;color:#fff;font-size:12px;cursor:pointer}.capture-context-action svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.capture-context-action:disabled{opacity:.55;cursor:wait}

.canvas-capture-panel .capture-mode-options {padding:0;margin:0;}.canvas-capture-panel button span {white-space:nowrap;}
