.rd-text-panel{padding:16px;margin-top:14px;border:1px solid #dbe4f2;border-radius:14px;background:#f8faff}.rd-text-panel[hidden]{display:none!important}.rd-text-row{margin:12px 0}.rd-text-row label{display:block;font-weight:600;font-size:13px}.rd-text-row textarea{display:block;box-sizing:border-box;width:100%;min-height:44px;padding:10px;margin-top:5px;resize:none;border:1px solid #cbd5e1;border-radius:8px;font:16px Arial}.rd-text-controls{display:flex;align-items:center;gap:8px;margin-top:6px}.rd-text-controls select{min-width:0;flex:1;padding:8px;border:1px solid #cbd5e1;border-radius:8px}.rd-text-controls input[type=color]{width:44px;height:38px;padding:2px}.rd-text-controls button{padding:8px!important;color:#b42318}
.rd-text-host{position:absolute;inset:0;pointer-events:none;z-index:5}.rd-text-object{position:absolute;transform:translate(-50%,-50%);pointer-events:auto;touch-action:none;user-select:none;cursor:grab}.rd-text-object>span{display:block;white-space:pre;font-weight:500;line-height:1.15}.rd-text-object.selected{outline:1px dashed #2869e8;outline-offset:3px}.rd-text-delete,.rd-text-resize{position:absolute;display:none;padding:0;border:2px solid white;border-radius:50%;background:#2869e8;color:white;cursor:pointer}.rd-text-object.selected .rd-text-delete,.rd-text-object.selected .rd-text-resize{display:block}.rd-text-delete{width:25px;height:25px;right:-13px;top:-25px;font:20px/20px Arial}.rd-text-resize{width:20px;height:20px;right:-12px;bottom:-12px;cursor:nwse-resize}
.rd-text-modal{box-sizing:border-box;width:min(560px,100%);border:0;border-radius:18px 18px 0 0;padding:0;margin:auto 0 0;max-height:50dvh;overflow:auto;color:#1b355d}.rd-text-modal::backdrop{background:#10223a55}.rd-text-modal header{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;background:white;padding:12px 16px;border-bottom:1px solid #dbe4f2}.rd-text-modal h3{margin:0}.rd-text-modal .rd-text-panel{border:0;margin:0;border-radius:0}
.rd-design-actions{display:flex;align-items:center;gap:8px;margin-top:12px}.rd-design-actions>button{display:inline-flex;align-items:center;justify-content:center;width:46px;height:44px;min-height:44px;padding:0;font:700 23px/1 Arial,sans-serif;border:1px solid #d7e3f5}.rd-design-actions>button.rd-add-text-launcher{width:auto;min-width:124px;padding:0 22px;background:#165dff;color:#fff;border-color:#165dff;font-size:17px;box-shadow:0 3px 8px rgba(22,93,255,.2)}.rd-design-actions>button.rd-add-text-launcher:hover:not(:disabled){background:#104bd1;border-color:#104bd1}.rd-design-actions>button.rd-add-text-launcher:focus-visible{outline:3px solid #f5a623;outline-offset:3px}.rd-design-actions>button.rd-add-text-launcher:disabled{opacity:.5;box-shadow:none;cursor:not-allowed}
.rd-text-modal{inset:0;margin:auto;width:min(560px,calc(100% - 28px));max-height:80dvh;border-radius:18px}
.rd-text-modal-close{display:inline-flex;align-items:center;justify-content:center;flex:none;width:36px;height:36px;border:0;border-radius:50%;padding:0;background:#edf2fa;color:#162b50;font:26px/1 Arial,sans-serif;cursor:pointer}
.rd-text-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}.rd-text-footer .rd-text-done{margin-left:auto;background:#1f59c5;color:white}.rd-text-panel>.rd-text-footer .rd-text-done{display:none}.rd-text-modal .rd-text-panel>.rd-text-footer .rd-text-done{display:inline-block}
