.request-editor{margin:-4px 0 14px;min-width:0}
.request-editor-toolbar{display:flex;flex-wrap:wrap;gap:4px;margin:0;padding:5px;border:1px solid var(--border);border-bottom:0;border-radius:var(--rs) var(--rs) 0 0;background:var(--surface)}
 .request-editor-tool{font-size:13px;min-height:34px;padding:6px 9px;white-space:nowrap}
.request-editor-tool[aria-pressed=true]{color:var(--dark);background:var(--accent-soft);border-color:var(--accent-line)}
.request-editor-tool[aria-label="Жирный"]{font-weight:800}
.request-editor-content{border:1px solid var(--control-border);border-radius:0 0 var(--rs) var(--rs);background:var(--surface);min-width:0}
.request-editor-content:focus-within{outline:none;border-color:var(--accent-text);box-shadow:0 0 0 1px var(--accent-text)}
.request-editor-content .tiptap{min-height:145px;max-height:min(46vh,440px);overflow-y:auto;padding:10px 12px;outline:none;font-size:14px;line-height:1.6;color:var(--text);overflow-wrap:anywhere;white-space:pre-wrap;caret-color:var(--dark)}
.request-editor-content .tiptap:empty:before{content:"Опишите правку и ожидаемый результат";color:var(--muted);pointer-events:none}
.request-editor-content p,.rich-document p{margin:0 0 .65em}
.request-editor-content p:last-child,.rich-document p:last-child{margin-bottom:0}
.request-editor-content ul,.request-editor-content ol,.rich-document ul,.rich-document ol{margin:.4em 0;padding-left:1.7em}
.request-editor-content li p,.rich-document li p{margin:0}
.request-editor-content code,.rich-document code{font-family:var(--mono);font-size:.95em;background:var(--surface2);border-radius:var(--rx);padding:1px 3px;overflow-wrap:anywhere}
.request-editor-content pre,.rich-document pre{white-space:pre-wrap;overflow-wrap:anywhere;background:var(--surface2);padding:8px 10px;border-radius:var(--rx)}
.request-editor-content pre code,.rich-document pre code{padding:0;background:transparent}
.request-editor-content a,.rich-document a{color:var(--accent-text);text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere}
.request-editor-status{margin:5px 0 0;min-height:0}
.request-editor-status:empty{display:none}
.request-editor-retry{margin-top:6px}
.request-editor-link{display:flex;flex-wrap:wrap;align-items:end;gap:6px;padding:8px;border:1px solid var(--border);background:var(--surface2)}
.request-editor-link label{flex:1 1 180px;margin:0;font-size:12px}
.request-editor-link input{margin:4px 0 0}
.request-editor-link button{min-height:36px;padding:7px 9px;font-size:12px}
.request-editor-link p{width:100%;margin:0}
.rich-document{white-space:normal;overflow-wrap:anywhere}
.rich-document p,.rich-document li,.rich-document pre{white-space:pre-wrap}
.request-editor [hidden]{display:none!important}
@media(max-width:760px),(pointer:coarse){.request-editor-tool,.request-editor-link button{min-height:44px;min-width:44px}.request-editor-content .tiptap,.request-editor-link input{font-size:16px}.request-editor-toolbar{gap:3px}.request-editor-content .tiptap{max-height:40vh}}
@media(prefers-reduced-motion:reduce){.request-editor button{transition:none}}
