.document-editor{display:flex;flex-direction:column;gap:7px;margin-top:8px;min-width:0;text-align:left;color:var(--ink)}
.document-editor>.document-field-actions{display:flex;flex:none;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:8px;min-width:0;margin-block:-4px}
.document-editor>.document-field-actions:not(:has(button:not([hidden]))){display:none}
body .document-editor>.document-field-actions>button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:auto;max-width:100%;min-height:18px;margin:0;padding:0 2px;border:0;border-radius:var(--ui-radius-chip,6px);background:transparent;box-shadow:none;color:var(--muted);opacity:.85;font:inherit;font-size:11.5px;line-height:1.3;white-space:normal;overflow-wrap:anywhere}
body .document-editor>.document-field-actions>button:hover{background:transparent;color:var(--ink);opacity:1}
body .document-editor>.document-field-actions>button:focus-visible{outline:2px solid var(--ui-tab-selected-border);outline-offset:2px}
:is(#detail,#new) .document-editor>.document-field-actions>button{min-height:18px;height:auto}
.document-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:2px;padding:4px;background:#accde509;border:1px solid #adcbe22e;border-radius:9px}
:is(#detail,#new) .document-toolbar button{display:grid;place-items:center;flex:0 0 29px;width:29px;height:29px;min-height:0;padding:4px;border:0;background:transparent;box-shadow:none;border-radius:5px;color:inherit;font-size:13px;line-height:1}
:is(#detail,#new) .document-toolbar button:hover{background:#abcce326;color:#d3edff}
.document-toolbar svg{width:17px;height:17px}
:is(#detail,#new) .document-toolbar button.open-article{display:inline-flex;align-items:center;gap:5px;flex:0 0 auto;width:auto;min-width:76px;padding:4px 8px}
.document-input{min-height:100px;max-height:clamp(160px,28vh,240px);overflow:auto;padding:12px;border:1px solid #9ebdcc66;border-radius:10px;background:#111d2833;font-size:14px;line-height:1.5;outline:none;white-space:pre-wrap;overflow-wrap:anywhere;cursor:text}
.document-input:focus{border-color:#97c3d8;box-shadow:0 0 0 2px #97c3d822}
.document-input{position:relative}
.document-input[data-empty=true]:not(:focus):before{content:attr(data-placeholder);position:absolute;top:12px;left:12px;right:12px;color:var(--muted);pointer-events:none}
.document-editor>small:empty{display:none}
.document-editor .document-link{display:flex;gap:7px}.document-editor .document-link[hidden]{display:none}
.document-copy{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55}
.document-copy figure,.document-input figure{margin:10px 0;max-width:100%}
.document-copy img,.document-copy video,.document-input img,.document-input video{max-width:100%;max-height:260px;object-fit:contain;border-radius:8px;display:block}
.document-copy figcaption,.document-input figcaption{font-size:11px;color:var(--muted);margin-top:4px}
.document-copy .document-text+.document-text{margin-top:7px}
.document-copy ul,.document-copy ol,.document-input ul,.document-input ol{padding-left:24px;margin:5px 0}
.document-input [data-doc-media]{position:relative;padding-right:32px;white-space:normal}
:is(#detail,#new) .remove-document-media{position:absolute;top:0;right:0;display:grid;place-items:center;width:26px;height:26px;min-height:0;padding:4px;color:var(--muted);background:#283441;border:1px solid #b2c5d433;border-radius:7px}
.remove-document-media svg{width:15px;height:15px}
#detail .inline-document-edit{padding-right:16px}
#detail .inline-document-edit>label{display:block;margin:0}
#detail .inline-document-edit>label>[data-edit-label],#detail .inline-document-edit>label>[data-edit-hint]{display:none}
#detail .inline-document-edit>label>.required-mark{display:none}
#detail .inline-document-edit>h3{padding-right:30px}
:is(#detail,#new) .document-editor [hidden],:is(#detail,#new) textarea[hidden]{display:none!important}
#detail .compact-task-controls .ux-extra-settings>summary:before{border:0;width:auto;height:auto;background:none;mask:none;box-shadow:none}
#detail #handover>button.primary{background:#badbcd;color:#173a30;border:1px solid #d0eadf;box-shadow:0 3px 12px #071c1426;font-weight:700}
#detail #handover>button.primary:hover{background:#d0eadf;color:#102d24}
#detail #handover>button.primary:disabled{opacity:.6}
html[data-theme=light] .document-input{background:#f7fafce8;border-color:#8aa6b7;color:#253a47}
html[data-theme=light] .document-toolbar{background:#e8f0f6;border-color:#b1c5d4}
html[data-theme=light] :is(#detail,#new) .document-toolbar button:hover{color:#224860;background:#cee1ed}
html[data-theme=light] #detail #handover>button.primary{background:#c3e1d5;color:#173a30;border-color:#91bba8}
