
.poc-editor-scope .rich-insert-panel.editor-popover:not([hidden]){display:block;position:fixed;z-index:1100;width:320px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;padding:12px;margin:0;background:#fff;border:1px solid #e0e3eb;border-radius:10px;box-shadow:0 10px 30px #35415c24}
.editor-popover[hidden]{display:none!important}
.editor-popover .popover-field{margin-bottom:8px}
.poc-editor-scope .rich-insert-panel.editor-popover input.form-control{width:100%;margin:0;padding:8px 10px;border:1px solid #dbe3ec;border-radius:7px;font-size:14px;background:#fff}
.poc-editor-scope .rich-insert-panel.editor-popover input.form-control:focus,.poc-editor-scope .rich-insert-panel.editor-popover input.form-control:focus-visible{outline:none;outline-offset:0;border-color:#7fa8ea;box-shadow:0 0 0 3px #2463d422}
.poc-editor-scope .rich-insert-panel.editor-popover .popover-check{display:flex;align-items:center;gap:8px;margin:10px 0;font-size:14px;font-weight:500;color:#3b4f66}
.editor-popover .popover-check input{margin:0;width:16px;height:16px;accent-color:#6544e8}
.editor-popover .popover-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:10px}
.poc-editor-scope .rich-insert-panel.editor-popover .popover-actions button,.poc-editor-scope .rich-insert-panel.editor-popover .popover-tabs button{margin:0}
.poc-editor-scope .rich-insert-panel.editor-popover button{font-size:14px;font-weight:500;border:1px solid #dbe5f1;border-radius:7px;padding:6px 11px;background:#fff!important;color:#3b4f66;box-shadow:none;transform:none}
.poc-editor-scope .rich-insert-panel.editor-popover button:hover{background:#f1f6fc!important;border-color:#b9d1f3;box-shadow:none;transform:none}
.poc-editor-scope .rich-insert-panel.editor-popover [data-editor-insert]{background:#eaf3ff!important;color:#2463d4;border-color:#cfe0f7}
.editor-popover .popover-tabs{display:flex;gap:4px;margin:-4px -4px 12px;padding-bottom:8px;border-bottom:1px solid #edf0f6}
.poc-editor-scope .rich-insert-panel.editor-popover .popover-tabs button{border:0;padding:7px 10px;background:transparent!important}
.poc-editor-scope .rich-insert-panel.editor-popover .popover-tabs button[aria-selected=true]{background:#eaf3ff!important;color:#2463d4}
.poc-editor-scope .rich-insert-panel.editor-popover [data-editor-dropzone]{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;width:100%;min-height:112px;padding:16px;border:1px dashed #c3cfdc;border-radius:8px;background:#f8fbfe!important;color:#3b4f66;white-space:normal}
.poc-editor-scope .rich-insert-panel.editor-popover [data-editor-dropzone]:hover,.poc-editor-scope .rich-insert-panel.editor-popover [data-editor-dropzone].is-dragging{background:#f1f6fc!important;border-color:#6f93d6}
.editor-popover [data-editor-dropzone] svg{width:24px;height:24px}
.editor-popover .popover-help,.editor-popover .popover-error{font-size:14px;line-height:1.6;margin:8px 0 0;color:var(--muted)}
.editor-popover .popover-error{color:#b42318}
.editor-popover [hidden]{display:none!important}
.editor-popover .popover-palette{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:4px;margin-bottom:12px}
.poc-editor-scope .rich-insert-panel.editor-popover [data-editor-color]{width:100%;min-width:0;height:26px;padding:0;margin:0;border:1px solid #d5dde6;border-radius:4px;background:var(--swatch)!important}
.poc-editor-scope .rich-insert-panel.editor-popover [data-editor-color]:hover{outline:2px solid #8fb0e3;outline-offset:1px}
.poc-editor-scope .rich-insert-panel.editor-popover .popover-color-label{font-size:14px;font-weight:500;margin:0 0 5px;color:#5c6e83}
.editor-popover .popover-color-custom{display:flex;align-items:center;gap:8px}
.editor-popover .popover-color-custom input{min-width:0;flex:1}
.editor-popover .popover-alignment{display:grid;gap:4px}
.poc-editor-scope .rich-insert-panel.editor-popover .popover-alignment button{justify-content:flex-start;text-align:left;border:0;margin:0;background:#fff!important}
.poc-editor-scope .rich-insert-panel.editor-popover .popover-alignment button:hover{background:#eaf3ff!important}


.image-size-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 14px;background:#f8fbfe;border:1px solid #d8dee8;border-bottom:0;color:var(--ink);font-size:14px}
.image-size-controls label{display:flex;align-items:center;gap:8px;margin:0;font-size:14px;font-weight:500;color:#5c6e83}
.poc-editor-scope .image-size-controls input[type][inputmode]{width:88px;margin:0;padding:6px 9px;font-size:14px;background:#fff;border:1px solid #dbe5f1;border-radius:7px}
.poc-editor-scope .image-size-controls input[type][inputmode]:focus,.poc-editor-scope .image-size-controls input[type][inputmode]:focus-visible{outline:none;outline-offset:0;border-color:#7fa8ea;box-shadow:0 0 0 3px #2463d422}
.poc-editor-scope .image-size-controls button{font-size:14px;font-weight:600;padding:6px 11px;border:1px solid #dbe5f1;border-radius:7px;background:#fff!important;color:#3b4f66;box-shadow:none}
.poc-editor-scope .image-size-controls button:hover{background:#eef4fc!important;border-color:#b9d1f3;transform:none}
.poc-editor-scope .image-size-controls .image-size-apply{background:#eaf3ff!important;color:#2463d4;border-color:#cfe0f7}
.image-size-message{flex-basis:100%;font-size:14px;color:var(--muted);margin:0}
.image-size-message.error{color:#b42318}
.image-resize-outline{position:fixed;z-index:90;pointer-events:none;border:1px solid #6f93d6;border-radius:8px;box-shadow:0 0 0 3px #2463d40c;box-sizing:border-box}
.image-resize-handle{position:fixed;z-index:91;width:24px;height:24px;min-width:24px!important;border:0!important;background:transparent!important;border-radius:0!important;padding:0!important;cursor:nwse-resize;touch-action:none;transform:none!important;box-shadow:none!important}
.image-resize-handle:after{content:'';position:absolute;inset:7px;background:#fff;border:1px solid #8d75cc;border-radius:3px;box-shadow:0 1px 4px #55407826;transition:background .12s,box-shadow .12s}
.image-resize-handle:hover:after,.image-resize-handle:focus-visible:after{background:#eaf3ff;border-color:#6544b4;box-shadow:0 0 0 3px #2463d425}
.image-resize-handle[data-corner=ne],.image-resize-handle[data-corner=sw]{cursor:nesw-resize}
.image-resize-outline[hidden],.image-resize-handle[hidden]{display:none!important}
[data-upload-status]:empty,[data-editor-status]:empty{display:none}.drive-attachment-box{margin:20px 0 8px;padding:18px;border:1px solid var(--line);border-radius:12px;background:#fff}.drive-attachment-help{margin:0 0 24px;color:var(--muted);font-size:14px;line-height:1.7}.drive-attachment-heading{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.drive-attachment-box .drive-attachment-heading h3{margin:0}.drive-attachment-box h3{font-size:16px;margin:0 0 6px}.drive-attachment-box p{font-size:14px}.drive-attachment-box ul{list-style:none;margin:12px 0 0;padding:0}.drive-attachment-box li{display:flex;align-items:center;gap:12px;padding:8px 0;border-bottom:1px solid var(--line)}.drive-attachment-box li a{min-width:0;flex:1;overflow-wrap:anywhere}.drive-upload-status{font-size:14px;overflow-wrap:anywhere}.drive-attachment-box button{flex-shrink:0}.drive-file-status{font-size:14px;color:var(--muted);white-space:nowrap}.drive-file-actions{display:flex;gap:8px;flex-shrink:0}.drive-attachment-box li[data-upload-state=failed] .drive-file-status{color:#b42318}.drive-upload-retry{margin-top:8px}@media(max-width:600px){.drive-attachment-box li{flex-wrap:wrap;gap:8px}.drive-attachment-box li a{flex:1 1 calc(100% - 90px)}.drive-file-actions{margin-left:auto}}.rich-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:6px 0;padding:10px 12px;background:#fff;border:1px solid #d8dee8;border-bottom:0;border-radius:12px 12px 0 0}
.rich-tool-group{display:inline-flex;align-items:center;flex-wrap:wrap;max-width:100%;gap:2px;margin-right:8px;padding-right:8px;border-right:1px solid #e5e9f0}
.rich-tool-group:last-child{margin-right:0;padding-right:0;border-right:0}
.rich-toolbar button{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:0;min-width:32px;height:32px;padding:5px 6px;border:0;border-radius:5px;background:transparent;color:#344054;font-size:14px;font-weight:600;line-height:1;box-shadow:none;transform:none}
.rich-toolbar button:hover{background:#edf0f7;color:#4338ca;box-shadow:none;transform:none}
.rich-toolbar button:focus-visible{outline:2px solid #2463d4;outline-offset:1px;background:#eef4ff}
.rich-toolbar button svg{display:block;width:18px;height:18px;pointer-events:none}
.rich-toolbar button sup,.rich-toolbar button sub{font-size:14px;line-height:0}
.rich-toolbar button sup{transform:translateY(-4px)}.rich-toolbar button sub{transform:translateY(4px)}
.rich-clear-mark{font-size:14px;align-self:flex-end;color:#788396}
.rich-editor-content{min-height:280px;max-height:780px;overflow:auto;padding:18px 20px;background:#fff;border:1px solid #d8dee8;border-radius:0 0 12px 12px;outline:none;line-height:1.85;color:#2e3955}
.rich-editor-content:focus{border-color:#2463d4;box-shadow:0 0 0 3px #6964f21c}
.rich-editor-content:empty:before{content:attr(data-placeholder);color:#7b8496;pointer-events:none}
.rich-editor-content h1,.rich-editor-content h2,.rich-editor-content h3{line-height:1.35;margin:1.2em 0 .5em;color:#18213b}
.rich-editor-content h1{font-size:30px}.rich-editor-content h2{font-size:24px}.rich-editor-content h3{font-size:20px}
.rich-editor-content>:first-child{margin-top:0}
@media(max-width:520px){.rich-toolbar{padding:8px}.rich-tool-group{margin-right:5px;padding-right:5px}.rich-toolbar button{min-width:30px;width:30px}.rich-editor-content{padding:16px;min-height:240px}.rich-editor-content h1{font-size:26px}}
.rich-editor-content img{max-width:100%;height:auto;border-radius:10px;display:block;margin:12px 0}
.rich-editor-content table{border-collapse:collapse;width:100%;margin:14px 0}.rich-editor-content td,.rich-editor-content th{border:1px solid #dce2ef;padding:8px;text-align:left}
.rich-editor-content blockquote{padding:10px 14px;border-left:4px solid #625df0;background:#f4f8ff;margin:12px 0}
.rich-insert-panel{display:flex;align-items:end;flex-wrap:wrap;gap:10px;padding:10px 14px;background:#f8fbfe;border:1px solid #d8dee8;border-bottom:0;border-radius:0;margin:0}
.rich-insert-panel[hidden]{display:none}
.rich-insert-panel .insert-field{flex:1 1 220px;min-width:0;max-width:100%}
.poc-editor-scope .rich-insert-panel label{font-size:14px;font-weight:500;line-height:1.7;color:#5c6e83;margin:0 0 5px}
.poc-editor-scope .rich-insert-panel .insert-field input.form-control{width:100%;margin:0;padding:6px 9px;font-size:14px;background:#fff;border:1px solid #dbe5f1;border-radius:7px}
.poc-editor-scope .rich-insert-panel .insert-field input.form-control:focus,.poc-editor-scope .rich-insert-panel .insert-field input.form-control:focus-visible{outline:none;outline-offset:0;border-color:#7fa8ea;box-shadow:0 0 0 3px #2463d422}
.poc-editor-scope .rich-insert-panel button{font-size:14px;font-weight:600;padding:6px 11px;border:1px solid #cfe0f7;border-radius:7px;background:#eaf3ff!important;color:#2463d4;box-shadow:none;white-space:nowrap}
.poc-editor-scope .rich-insert-panel button:hover{background:#dde9f8!important;border-color:#b9d1f3;color:#554078;box-shadow:none;transform:none}
@media(max-width:520px){.rich-insert-panel .insert-field{flex-basis:100%}.rich-insert-panel button{margin-left:auto}}

.poc-editor-scope{min-width:0}.poc-editor-scope .rich-toolbar{margin-top:10px}.poc-editor-scope .rich-editor-content{font-size:16px}.poc-thread-html{overflow-wrap:anywhere;line-height:1.85}.poc-thread-html img{max-width:100%;height:auto}.poc-thread-html blockquote{border-left:4px solid #cbd5e1;padding-left:14px}.poc-thread-html pre{white-space:pre-wrap}.poc-thread-html table{max-width:100%;overflow:auto}

.poc-attachments{border:1px solid #d8dee8;border-radius:12px;padding:16px;background:#f8fafc}.poc-attachments li{overflow-wrap:anywhere;margin:8px 0}.poc-attachments input{max-width:100%}

.poc-rich-editor{display:block;min-width:0}.poc-rich-editor .rich-toolbar{margin-bottom:0}.poc-rich-editor .rich-editor-content{margin-top:0}

.poc-editor-scope .rich-editor-content:focus,.poc-editor-scope .rich-editor-content:focus-visible,.poc-editor-scope .rich-insert-panel input:focus{outline:none;border-color:#4f8cdb;box-shadow:0 0 0 3px #bdd8fb66}.poc-editor-scope .rich-toolbar button.is-active{color:#2463d4;background:#edf5ff}


.image-size-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 14px;background:#f3f7ff;border:1px solid #d8dee8;border-bottom:0;color:var(--ink);font-size:14px}
.image-size-controls label{display:flex;align-items:center;gap:8px;margin:0;font-size:14px;font-weight:500;color:#526987}
.poc-editor-scope .image-size-controls input[type][inputmode]{width:88px;margin:0;padding:6px 9px;font-size:14px;background:#fff;border:1px solid #bdd3f8;border-radius:7px}
.poc-editor-scope .image-size-controls input[type][inputmode]:focus,.poc-editor-scope .image-size-controls input[type][inputmode]:focus-visible{outline:none;outline-offset:0;border-color:#4f8cdb;box-shadow:0 0 0 3px #bdd8fb66}
.poc-editor-scope .image-size-controls button{font-size:14px;font-weight:600;padding:6px 11px;border:1px solid #bdd3f8;border-radius:7px;background:#fff!important;color:#315d94;box-shadow:none}
.poc-editor-scope .image-size-controls button:hover{background:#edf5ff!important;border-color:#a9c9f6;transform:none}
.poc-editor-scope .image-size-controls .image-size-apply{background:#eaf3ff!important;color:#2463d4;border-color:#bdd3f8}
.image-size-message{flex-basis:100%;font-size:14px;color:var(--muted);margin:0}
.image-size-message.error{color:#b42318}
.image-resize-outline{position:fixed;z-index:90;pointer-events:none;border:1px solid #2463d4;border-radius:8px;box-shadow:0 0 0 3px #2463d40c;box-sizing:border-box}
.image-resize-handle{position:fixed;z-index:91;width:24px;height:24px;min-width:24px!important;border:0!important;background:transparent!important;border-radius:0!important;padding:0!important;cursor:nwse-resize;touch-action:none;transform:none!important;box-shadow:none!important}
.image-resize-handle:after{content:'';position:absolute;inset:7px;background:#fff;border:1px solid #4f8cdb;border-radius:3px;box-shadow:0 1px 4px #315d9426;transition:background .12s,box-shadow .12s}
.image-resize-handle:hover:after,.image-resize-handle:focus-visible:after{background:#edf5ff;border-color:#2463d4;box-shadow:0 0 0 3px #79a8ff25}
.image-resize-handle[data-corner=ne],.image-resize-handle[data-corner=sw]{cursor:nesw-resize}
.image-resize-outline[hidden],.image-resize-handle[hidden]{display:none!important}

.poc-editor-scope .image-size-controls input[type][inputmode]{min-height:36px;height:36px}.poc-editor-scope .image-size-controls button{min-height:36px}.image-size-controls[hidden]{display:none!important}
