.text-overlay-canvas,.text-overlay-entry{position:absolute;pointer-events:none;line-height:1.35}
.text-overlay-canvas{z-index:1}
.text-overlay-entry{inset:0}
.text-overlay-tail{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.text-overlay-bubble{box-sizing:border-box;background:white;color:black;border-color:black;user-select:none;-webkit-user-select:none;overflow:visible}
.text-overlay-bubble .text-overlay-content{overflow:hidden;max-width:100%;max-height:100%;white-space:pre-wrap;word-break:break-word}
.text-overlay-bubble.speech{border-style:solid}
.text-overlay-bubble.thought{border-radius:50%;border-style:solid}
.text-overlay-bubble.caption{border-radius:0;text-align:left}
.text-overlay-bubble.sfx{border:0;background:transparent}
.text-overlay-bubble[data-editable="true"]{pointer-events:auto;touch-action:none;cursor:grab}
.text-overlay-bubble[data-editable="false"]{pointer-events:none}
.text-overlay-canvas.is-dragging .text-overlay-bubble[data-editable="true"]{cursor:grabbing}
.text-overlay-entry.selected .text-overlay-bubble[data-editable="true"]{outline:2px solid #c06847;outline-offset:3px}
.text-overlay-number{position:absolute;left:0;top:-18px;min-width:18px;height:16px;padding:0 4px;border-radius:4px;background:#34412f;color:white;font-size:10px;line-height:16px;text-align:center;box-shadow:0 1px 4px #0003;pointer-events:none}
.text-overlay-bubble[data-editable="false"] .text-overlay-number{display:none}
.text-overlay-tail-handle{position:absolute;transform:translate(-50%,-50%);pointer-events:auto;touch-action:none;cursor:crosshair;width:28px;height:28px;border:2px solid #405337;border-radius:50%;background:#fffdf5;color:#405337;box-shadow:0 1px 7px #0003;display:grid;place-items:center;padding:0;font-size:20px;line-height:1;user-select:none;-webkit-user-select:none}
.text-overlay-tail-handle:active:not(:disabled){transform:translate(-50%,-50%)}
.text-overlay-entry.selected .text-overlay-tail-handle{border-color:#af5133;color:#af5133}
.text-overlay-tail-handle[hidden],.overlay-editor [hidden]{display:none!important}
.text-overlay-bubble:focus-visible,.text-overlay-tail-handle:focus-visible{outline:3px solid #bd5b46;outline-offset:4px}
.text-overlay-editing>img{-webkit-user-drag:none;user-select:none;-webkit-user-select:none}
.overlay-editor .subcard.selected{border-color:#bd795d;box-shadow:inset 3px 0 #bd795d}
.overlay-select-button{font-size:11px}
.text-overlay-help{font-size:11px;line-height:1.8;padding:11px 13px;border:1px solid #d3dacb;border-radius:8px;background:#f0f3e9;margin:12px 0}
.text-overlay-status{font-size:11px;line-height:1.7;color:var(--muted);margin:9px 0}
.text-fit-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}
.text-fit-help{margin-top:7px}
.text-fit-status{font-size:11px;line-height:1.65;color:var(--muted);margin:6px 0;min-height:0}
.text-fit-status:empty{display:none}
.text-fit-status.fail-inline{color:var(--red)}
@media(pointer:coarse){.text-overlay-tail-handle{width:36px;height:36px;font-size:23px}.text-overlay-number{font-size:11px;min-width:20px;height:18px;line-height:18px;top:-21px}}
