.case-body.document-body{container-type:inline-size;padding:0;overflow:hidden;display:flex;flex-direction:column;min-height:0}
.document-workspace{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0}
.document-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 24px;border-bottom:1px solid var(--border,#ddd);flex-shrink:0}
.document-title-group{gap:16px}
.document-title-group>strong{font-size:16px;font-weight:600;line-height:24px}
.document-title-group .btn{border-radius:6px;gap:6px}
.document-title-group .btn.primary:enabled{color:var(--accent);background:var(--accent-soft);border-color:transparent}
.document-title-group .btn.primary:hover:enabled{border-color:var(--accent)}
.document-title-group .icon{width:16px;height:16px}
.document-heading [data-document-action]{display:inline-flex}
.document-heading [data-document-action]:empty{display:none}
.document-board{display:flex;flex:1;min-height:0;min-width:0;background:#f5f5f5;overflow:hidden}
.document-main{display:flex;flex-direction:column;min-width:0;flex:1}
.document-format{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px;padding:8px 10px;flex-shrink:0}
.document-format select{width:auto;min-height:32px;border:0;background:white;font-size:14px;padding:4px 10px;border-radius:6px}
.document-scroll{overflow:auto;flex:1;min-height:0;padding:0 24px 28px;overflow-anchor:none}
.document-paper{max-width:794px;min-height:100%;margin:0 auto;padding:86px 93px;background:#fff;box-shadow:0 1px 6px #0000000d;font-family:SimSun,"Songti SC","Noto Serif CJK SC",serif;font-size:13pt;line-height:2;color:#181818;outline:none;white-space:pre-wrap;overflow-wrap:anywhere}
.document-paper a[data-document-reference]{color:inherit;font-size:.81em;text-decoration:none;text-underline-offset:3px;cursor:pointer}.document-paper a[data-document-reference]:is(:hover,:focus-visible){color:#006162;text-decoration:underline}.document-paper a[data-document-reference]:focus-visible{outline:2px solid #006162;outline-offset:2px}
.document-paper [style*="font-size"] a[data-document-reference]{font-size:inherit}
.document-chapters{width:200px;flex-shrink:0;overflow:auto;border-right:1px solid #ddd;background:#fff;padding:18px 14px}.document-chapters button{display:block;text-align:left;width:100%;white-space:normal;line-height:1.6;margin-bottom:14px}
.document-evidence{width:44%;min-width:320px;display:flex;flex-direction:column;background:#fff;border-left:1px solid #ddd;min-height:0}.document-evidence>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid #ddd}.document-evidence>header strong{font-size:14px;line-height:1.6}.document-evidence .file-preview{flex:1;min-height:0;height:auto}.document-evidence[hidden],.document-chapters[hidden]{display:none}
.has-evidence .document-scroll{padding:0}.has-evidence .document-paper{padding:32px 32px 80px;box-shadow:none}.has-evidence .document-format{background:white}
.document-evidence .preview-download{display:none}
@container (max-width:780px){.document-heading{padding:10px 14px;flex-wrap:wrap}.document-heading>.actions{flex-wrap:wrap}.document-scroll{padding:0 12px 16px}.document-paper{padding:28px 24px}.document-chapters{width:150px}.document-board.has-evidence{flex-direction:column;overflow-y:auto}.has-evidence .document-main{flex:1 0 150px;min-height:150px}.document-evidence{width:100%;min-width:0;height:50%;flex:1 0 170px;min-height:170px;border-left:0;border-top:1px solid #ddd}.has-evidence .document-chapters{display:none}.document-evidence>header{padding:4px 12px}.document-evidence .preview-toolbar{padding:4px 8px}}
.document-format .search-select{width:116px;flex:0 0 116px}.document-format .select-trigger{min-height:32px;height:32px;border-color:#ddd}.document-heading{background:#fff}
@container (max-width:780px){.document-evidence>header strong{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;flex:1;min-width:0}}

.document-format-group{display:flex;align-items:center;gap:2px;padding-right:6px;border-right:1px solid #ddd}
.document-format .icon-only{width:30px;height:32px;min-height:32px;padding:6px;border-radius:4px;font-size:22px;line-height:1}
.document-format .icon-only svg{width:18px;height:18px}
.document-format .ql-stroke{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.document-format .ql-fill{fill:currentColor}.document-format .ql-even{fill-rule:evenodd}.document-format .ql-thin{stroke-width:1}
.document-format [aria-pressed=true]{background:#dceeed;color:#006162}
.document-format .icon-only:disabled{opacity:.35}
.document-paper.ql-container{height:auto;font-family:SimSun,"Songti SC","Noto Serif CJK SC",serif;font-size:13pt;width:100%}
.document-paper .ql-editor{padding:0;overflow:visible;height:auto;min-height:300px;line-height:2;text-align:left;white-space:pre-wrap;outline:none}
.document-paper .ql-editor p{margin:0 0 18px;font:inherit;text-align:justify;text-indent:2em}
.document-paper .ql-editor h1{font-family:inherit;font-size:20pt;line-height:1.65;letter-spacing:.42em;text-indent:.42em;text-align:center;font-weight:600;margin:0 0 30px}
.document-paper .ql-editor h2,.document-paper .ql-editor h3,.document-paper .ql-editor h4,.document-paper .ql-editor h5,.document-paper .ql-editor h6{font-family:inherit;font-size:13pt;line-height:2;font-weight:600;margin:21px 0 11px}
.document-paper .ql-editor .ql-align-left{text-align:left}.document-paper .ql-editor .ql-align-center{text-align:center}.document-paper .ql-editor .ql-align-right{text-align:right}.document-paper .ql-editor p:is(.ql-align-center,.ql-align-right){text-indent:0}.document-paper .ql-editor .ql-align-justify{text-align:justify}
.document-paper .ql-editor ol{margin:0 0 18px;padding-left:0}.document-paper .ql-editor li{margin:0 0 8px}
.document-paper .ql-editor strong{font-weight:700}
@container (max-width:780px){.document-format{justify-content:flex-start;gap:4px}.document-format-group{padding-right:4px}.document-paper .ql-editor h1{font-size:22px}}

@container (max-width:580px){.document-format{flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start;min-height:48px}.document-format-group,.document-format>[data-document-save]{flex-shrink:0}}

.draft-template-detail{overflow:hidden;background:var(--surface-muted)}
.draft-template-title{flex:none;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 24px;background:white;border-bottom:1px solid var(--line)}
.draft-template-title h2{margin:0;overflow-wrap:anywhere;font-size:16px;line-height:24px}
.draft-template-scroll{padding-top:20px}
.draft-template-paper{min-height:100%;width:100%;padding:clamp(20px,5vw,76px)}
.draft-template-paper .ql-editor h1{letter-spacing:normal;text-indent:0}
.draft-template-choice{margin-bottom:16px}
@media(max-width:740px){.draft-template-title{padding-inline:14px}.draft-template-scroll{padding-inline:10px;padding-top:10px}}
.document-template-style .ql-editor :is(p,li){font-family:var(--template-0-font-family,inherit);font-size:var(--template-0-font-size,13pt);font-weight:var(--template-0-font-weight,400);line-height:var(--template-0-line-height,2);margin-top:var(--template-0-margin-top,0);margin-bottom:var(--template-0-margin-bottom,12pt);text-indent:var(--template-0-text-indent,2em);letter-spacing:normal}
.document-template-style .ql-editor :is(p,li):not([class*="ql-align-"]){text-align:var(--template-0-text-align,justify)}
.document-template-style .ql-editor h1{font-family:var(--template-1-font-family,inherit);font-size:var(--template-1-font-size,20pt);font-weight:var(--template-1-font-weight,700);line-height:var(--template-1-line-height,1.65);margin-top:var(--template-1-margin-top,0);margin-bottom:var(--template-1-margin-bottom,22pt);text-indent:var(--template-1-text-indent,0);letter-spacing:normal}
.document-template-style .ql-editor h1:not([class*="ql-align-"]){text-align:var(--template-1-text-align,center)}
.document-template-style .ql-editor h2{font-family:var(--template-2-font-family,inherit);font-size:var(--template-2-font-size,13pt);font-weight:var(--template-2-font-weight,700);line-height:var(--template-2-line-height,2);margin-top:var(--template-2-margin-top,12pt);margin-bottom:var(--template-2-margin-bottom,8pt);text-indent:var(--template-2-text-indent,0);letter-spacing:normal}
.document-template-style .ql-editor h2:not([class*="ql-align-"]){text-align:var(--template-2-text-align,left)}
.document-template-style .ql-editor h3{font-family:var(--template-3-font-family,inherit);font-size:var(--template-3-font-size,13pt);font-weight:var(--template-3-font-weight,700);line-height:var(--template-3-line-height,2);margin-top:var(--template-3-margin-top,12pt);margin-bottom:var(--template-3-margin-bottom,8pt);text-indent:var(--template-3-text-indent,0);letter-spacing:normal}
.document-template-style .ql-editor h3:not([class*="ql-align-"]){text-align:var(--template-3-text-align,left)}
.document-template-style .ql-editor h4{font-family:var(--template-4-font-family,inherit);font-size:var(--template-4-font-size,13pt);font-weight:var(--template-4-font-weight,700);line-height:var(--template-4-line-height,2);margin-top:var(--template-4-margin-top,12pt);margin-bottom:var(--template-4-margin-bottom,8pt);text-indent:var(--template-4-text-indent,0);letter-spacing:normal}
.document-template-style .ql-editor h4:not([class*="ql-align-"]){text-align:var(--template-4-text-align,left)}
.document-template-style .ql-editor h5{font-family:var(--template-5-font-family,inherit);font-size:var(--template-5-font-size,13pt);font-weight:var(--template-5-font-weight,700);line-height:var(--template-5-line-height,2);margin-top:var(--template-5-margin-top,12pt);margin-bottom:var(--template-5-margin-bottom,8pt);text-indent:var(--template-5-text-indent,0);letter-spacing:normal}
.document-template-style .ql-editor h5:not([class*="ql-align-"]){text-align:var(--template-5-text-align,left)}
.document-template-style .ql-editor h6{font-family:var(--template-6-font-family,inherit);font-size:var(--template-6-font-size,13pt);font-weight:var(--template-6-font-weight,700);line-height:var(--template-6-line-height,2);margin-top:var(--template-6-margin-top,12pt);margin-bottom:var(--template-6-margin-bottom,8pt);text-indent:var(--template-6-text-indent,0);letter-spacing:normal}
.document-template-style .ql-editor h6:not([class*="ql-align-"]){text-align:var(--template-6-text-align,left)}
