.task-description-editor{width:100%;max-width:1000px;border:1px solid #d8dee8;border-radius:8px;background:#fff;color:#263445;overflow:hidden;line-height:1.6;position:relative}
.task-description-editor .td-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:4px;padding:8px;background:#f8fafc;border-bottom:1px solid #e2e7ef;position:relative;z-index:1}
.task-description-editor .td-toolbar-group{display:flex;gap:3px;align-items:center;border-right:1px solid #dce2eb;padding-right:6px;margin-right:2px;flex-wrap:wrap}
.task-description-editor .td-button,.task-description-editor .td-select{height:32px;min-width:32px;border:1px solid transparent;border-radius:4px;background:transparent;color:#39485b;font:inherit;font-size:13px;padding:3px 7px;margin:0;cursor:pointer;line-height:1.4}
.task-description-editor .td-select{background:#fff;border-color:#dce2eb;max-width:115px}
.task-description-editor .td-button:hover:enabled{background:#e7f0ff;color:#2563b9}
.task-description-editor .td-button.is-active{background:#dbeafe;color:#174e9f;border-color:#b7d0f8}
.task-description-editor button:disabled,.task-description-editor select:disabled{opacity:.45;cursor:default}
.task-description-editor button:focus-visible,.task-description-editor select:focus-visible,.task-description-editor input:focus-visible{outline:2px solid #409eff;outline-offset:2px}
.task-description-editor .td-expand{margin-left:auto;border-color:#dce2eb;background:#fff;white-space:nowrap}
.task-description-editor .td-surface{max-height:520px;min-height:320px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.task-description-editor .tiptap{min-height:320px;padding:18px 20px;outline:0;font:16px/1.75 system-ui,-apple-system,"Segoe UI",Arial,sans-serif;word-break:normal;overflow-wrap:anywhere;white-space:pre-wrap;color:#263445;text-align:start}
.task-description-editor .tiptap p{margin:0 0 .8em;line-height:inherit}
.task-description-editor .tiptap h1{font-size:1.8em}.task-description-editor .tiptap h2{font-size:1.5em}.task-description-editor .tiptap h3{font-size:1.25em}.task-description-editor .tiptap h4{font-size:1.1em}
.task-description-editor .tiptap h1,.task-description-editor .tiptap h2,.task-description-editor .tiptap h3,.task-description-editor .tiptap h4{line-height:1.4;margin:1em 0 .5em;font-weight:700}
.task-description-editor .tiptap ul,.task-description-editor .tiptap ol{padding-inline-start:1.8em;margin:.6em 0;list-style-position:outside}
.task-description-editor .tiptap ul{list-style-type:disc}.task-description-editor .tiptap ol{list-style-type:decimal}
.task-description-editor .tiptap li{display:list-item}.task-description-editor .tiptap li p{margin:.2em 0}
.task-description-editor .tiptap a{color:#2563eb;text-decoration:underline;cursor:text}
.task-description-editor .tiptap img{max-width:100%;height:auto}.task-description-editor .tiptap table{border-collapse:collapse;width:100%;table-layout:fixed}
.task-description-editor .tiptap td,.task-description-editor .tiptap th{border:1px solid #cbd5e1;padding:8px;vertical-align:top}.task-description-editor .tiptap th{background:#f1f5f9;font-weight:600}
.task-description-editor .tiptap blockquote{border-inline-start:3px solid #cbd5e1;padding-inline-start:1em;color:#536174;margin:1em 0}
.task-description-editor .tiptap pre{white-space:pre-wrap;background:#f1f5f9;padding:12px;border-radius:4px}
.task-description-editor .td-footer{display:flex;justify-content:space-between;gap:12px;padding:7px 12px;border-top:1px solid #e2e7ef;background:#fafbfc;color:#69798b;font-size:12px;line-height:1.6}
.task-description-editor .td-link-panel{display:flex;flex-wrap:wrap;gap:10px;align-items:end;padding:12px;background:#f0f6ff;border-bottom:1px solid #d5e5fc;font-size:13px;line-height:1.5}
.task-description-editor .td-link-panel label{display:flex;flex-direction:column;gap:4px;flex:1;min-width:160px}
.task-description-editor .td-link-panel input{padding:7px;border:1px solid #bccbdd;border-radius:4px;background:#fff;color:#263445;font:inherit;min-width:0;max-width:100%}
.task-description-editor .td-link-panel button,.task-description-editor .td-error button{padding:7px 12px;background:#fff;color:#2563b9;border:1px solid #bacce5;border-radius:4px;cursor:pointer;font:inherit}
.task-description-editor .td-error{color:#a33b25;background:#fff3ed;padding:12px;font-size:13px;line-height:1.6}.task-description-editor .td-error button{margin-left:12px}
.task-description-editor .td-original{max-height:520px;overflow:auto;padding:16px}.task-description-editor:not([aria-busy="false"]) .td-surface:empty{min-height:0}
.task-description-editor.td-fullscreen{position:fixed;inset:16px;width:auto;max-width:none;z-index:3100;display:flex;flex-direction:column;box-shadow:0 12px 60px #23334d33}
.task-description-editor.td-fullscreen .td-surface{flex:1;max-height:none;min-height:0}.task-description-editor.td-fullscreen .tiptap{min-height:100%}
.td-leave-dialog{border:1px solid #dce2eb;border-radius:12px;background:#fff;color:#263445;padding:24px;max-width:420px;width:calc(100% - 48px);box-shadow:0 16px 64px #15233c33;font:14px/1.7 system-ui,sans-serif}
.td-leave-dialog::backdrop{background:#17243b66}.td-leave-dialog h3{font-size:18px;margin:0 0 10px}.td-leave-dialog p{margin:0 0 22px}
.td-leave-dialog .td-leave-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}.td-leave-dialog button{padding:8px 12px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;color:#465469;font:inherit;cursor:pointer}.td-leave-dialog button.td-leave-primary{background:#2563b9;border-color:#2563b9;color:#fff}
@media(max-width:760px){.task-description-editor .td-toolbar{padding:6px;gap:3px}.task-description-editor .td-toolbar-group{padding-right:4px;gap:1px}.task-description-editor .td-button,.task-description-editor .td-select{height:36px;padding:3px 6px}.task-description-editor .tiptap{padding:14px;font-size:16px}.task-description-editor.td-fullscreen{inset:8px}.task-description-editor .td-footer{flex-wrap:wrap}}
