.text-format-panel.html-open{display:flex;flex-wrap:wrap;width:min(720px,calc(100vw - 16px));max-height:calc(100vh - 16px);overflow:auto;align-items:flex-end}
.html-format-editor{flex:1 0 100%;display:grid;gap:10px;padding-top:10px;border-top:1px solid #ffffff2b}
.html-format-editor[hidden]{display:none}
.html-editor-head,.html-view-tabs,.html-editor-actions{display:flex;align-items:center;gap:7px}
.html-editor-head{justify-content:space-between}.html-editor-head strong{font-size:14px}
.html-editor-head button{background:#a63f34;color:#fff}
.html-view-tabs button{font-size:12px;padding:0 13px}.html-view-tabs button.active{background:var(--aqua);color:#071019}
.html-visual-editor,.html-format-editor textarea{width:100%;min-height:190px;max-height:330px;overflow:auto;border:1px solid #becbd0;border-radius:9px;background:#fff;color:#172a35;padding:14px;font:400 15px/1.55 Arial,sans-serif;white-space:normal}
.html-visual-editor img,[data-html-enabled="1"] img{max-width:100%;height:auto}
.html-format-editor textarea{resize:vertical;font:13px/1.5 Consolas,"Courier New",monospace;tab-size:2;white-space:pre}
.html-visual-editor:focus,.html-format-editor textarea:focus{outline:3px solid color-mix(in srgb,var(--aqua) 42%,transparent);border-color:var(--aqua)}
.html-format-editor small{color:#bed0d8;font-weight:400;line-height:1.4}
.html-editor-actions{justify-content:flex-end}.html-editor-actions button{width:auto;padding:0 14px;font-size:12px}.html-editor-actions [data-apply-html]{background:var(--aqua);color:#071019;font-weight:800}.html-editor-actions [data-apply-text]{background:#e8eef0;color:#172a35}
@media(max-width:700px){.text-format-panel.html-open{inset:8px!important;width:calc(100vw - 16px);max-width:none;height:auto;max-height:calc(100vh - 16px);align-content:flex-start}.html-visual-editor,.html-format-editor textarea{min-height:230px}.html-editor-actions{flex-wrap:wrap}.html-editor-actions button{flex:1 1 140px}}
