/* HTML selection handles and cursor menus never enter the SVG/PDF document. */
.paper{position:relative;touch-action:pan-x pan-y}
.paper:focus{outline:2px solid #f3d8bf;outline-offset:5px}
.paper svg{user-select:none}
.paper .hitbox{pointer-events:none}
.paper [data-edit-path]{cursor:text}
.paper [data-canvas-object],.paper [data-text-box],.paper [data-picture-id]{cursor:move;touch-action:none}
.paper [data-table-cell],.paper [data-table-column],.paper [data-table-row]{cursor:cell}
.paper .inline-table-selected>rect:first-of-type{stroke:#376da2;stroke-width:1.5}
.paper [data-table-cell].inline-selected>rect{fill:#eaf3ff;stroke:#376da2;stroke-width:1.5}
.paper [data-table-column].inline-selected>rect{fill:#6592bd;fill-opacity:.6}
.paper [data-table-row]{opacity:.6}
.paper [data-table]:hover [data-table-row],.paper .inline-table-selected [data-table-row]{opacity:1}
.paper [data-table-row].inline-selected>rect{fill:#dcecff;stroke:#376da2}
.paper .table-resize-column{cursor:col-resize;touch-action:none}
.paper .table-resize-row{cursor:row-resize;touch-action:none}
.paper .table-resize-column:hover,.paper .table-resize-row:hover{fill:#376da2;fill-opacity:.25}
.paper .text-box-hit{stroke:transparent}
.paper .object-outline,.paper .object-grip,.paper .object-resize,.paper .text-box-resize{display:none!important}
.paper [data-edit-path].inline-selected{filter:drop-shadow(0 0 2px #467eb866)}
.paper.text-tool-active,.paper.text-tool-active *{cursor:crosshair!important}
.text-tool-button[aria-pressed=true]{background:#eaf3ff;border-color:#8caecc;color:#254f76}
.word-selection{position:absolute;border:1px solid #54718b;pointer-events:none;z-index:9;box-sizing:border-box}
.word-resize-handle{position:absolute;width:10px;height:10px;min-width:10px;min-height:10px;padding:0;border:1.5px solid #506579;background:#fff;border-radius:50%;pointer-events:auto;touch-action:none;transform:translate(-50%,-50%)}
.word-resize-handle:hover,.word-resize-handle:focus-visible{background:#dcecff;outline:2px solid #bdd8ef}
.handle-nw{left:0;top:0;cursor:nwse-resize}.handle-n{left:50%;top:0;cursor:ns-resize}.handle-ne{left:100%;top:0;cursor:nesw-resize}.handle-e{left:100%;top:50%;cursor:ew-resize}.handle-se{left:100%;top:100%;cursor:nwse-resize}.handle-s{left:50%;top:100%;cursor:ns-resize}.handle-sw{left:0;top:100%;cursor:nesw-resize}.handle-w{left:0;top:50%;cursor:ew-resize}
.word-object-menu{position:absolute;right:-35px;top:-1px;width:28px;height:29px;pointer-events:auto;border:1px solid #c5d1d9;border-radius:5px;background:white;color:#304b61;font-size:22px;line-height:20px;padding:0;box-shadow:0 2px 5px #213c5414}
.word-context-menu{position:fixed;z-index:60;display:flex;flex-direction:column;gap:4px;width:286px;max-width:calc(100vw - 20px);padding:8px;background:#fff;border:1px solid #cbd4da;border-radius:8px;box-shadow:0 7px 26px #1b314533;overflow-y:auto;overscroll-behavior:contain;color:#30404a;font:12px Arial,sans-serif}
.word-context-menu[hidden]{display:none}
.word-context-menu>strong{font-size:11px;color:#72808b;padding:5px 8px 7px;border-bottom:1px solid #e7ebef;margin-bottom:3px}
.word-context-menu button{border:0;background:transparent;border-radius:4px;padding:8px 9px;min-height:33px;text-align:left;font-size:12px;color:#30404a;cursor:pointer}
.word-context-menu button:hover,.word-context-menu button:focus-visible{background:#eaf3ff;outline:0}
.word-context-menu button:disabled{opacity:.35;cursor:default}
.word-context-menu label{font-size:10px;color:#697986;display:flex;align-items:center;gap:7px;padding:2px 4px}
.word-context-menu input,.word-context-menu select{border:1px solid #d4dce2;border-radius:4px;padding:6px;color:#30404a;background:#fff;font:12px Arial,sans-serif;min-height:30px}
.word-context-menu select{width:100%}
.word-context-menu input[type=number]{width:62px}
.word-context-menu input[type=color]{width:32px;min-width:32px;height:30px;padding:2px}
.word-context-menu input[type=checkbox]{width:15px;height:15px;min-height:15px}
.word-context-menu input[type=range]{width:140px;padding:0}
.word-format-row{display:flex;align-items:center;flex-wrap:wrap;gap:4px}
.word-format-row>select{width:100%}.word-format-row>button{flex:1;text-align:center}
.word-crop-controls{background:#f3f7fa;padding:6px 2px;border-radius:5px}
.word-context-menu .inline-hint{font-size:10px;color:#8b969e;padding:4px 8px}
.word-context-menu .toolbar-break{border-top:1px solid #e4eaf0;margin:4px 0}
.word-drop-preview{position:absolute;border:2px dashed #5684b0;background:#8bb4df22;pointer-events:none;z-index:7;box-sizing:border-box}
.snap-guide{position:absolute;z-index:8;pointer-events:none;background:#a25cbd}.snap-guide-x{top:0;bottom:0;width:1px}.snap-guide-y{left:0;right:0;height:1px}
.inline-text-editor{position:fixed;z-index:65;padding:7px;background:#f2f7fc;border:2px solid #7295b4;border-radius:8px;box-shadow:0 9px 32px #263c5433;font:13px Arial,sans-serif}
.inline-text-editor textarea{display:block;box-sizing:border-box;width:100%;min-height:60px;resize:vertical;border:1px solid #cbd8e3;background:white;padding:8px;color:#26333a;font:14px/1.4 Arial,sans-serif;user-select:text}
.inline-editor-actions{display:flex;align-items:center;justify-content:flex-end;gap:5px;margin-top:6px}.inline-editor-actions span{font-size:9px;line-height:1.4;color:#6e8091;margin-right:auto}.inline-editor-actions button{border:1px solid #c1d0df;border-radius:4px;background:white;padding:6px;font-size:10px;color:#3d5770;cursor:pointer}
.insert-bar{display:flex;align-items:center;gap:7px;padding:0 30px 12px;flex-shrink:0;overflow-x:auto;scrollbar-width:thin}.insert-label{font-size:9px;color:#899481;letter-spacing:1px;margin-right:3px}.insert-spacer{flex:1}.insert-help{font-size:10px;color:#929b8b;white-space:nowrap}
@media(max-width:1100px){.insert-help{display:none}.insert-bar{padding-left:20px;padding-right:20px}}
@media(max-width:800px){.insert-bar{padding:3px 12px 10px;gap:5px}.insert-bar .btn{min-height:36px}.insert-label{display:none}.word-resize-handle{width:13px;height:13px}.word-context-menu button{min-height:38px}.inline-text-editor textarea{font-size:16px}}
@media print{[data-inline-ui],.word-drop-preview,.snap-guide,.insert-bar{display:none!important}}
