.long-text-module{display:flex;flex-direction:column;gap:8px;min-width:0}.long-text-canvas,.long-text-tools{width:100%;min-width:0;box-sizing:border-box}.long-text-canvas .rich-text-editor{height:clamp(210px,28vh,340px);min-height:210px;overflow-y:auto;padding:9px;border:1px solid var(--line);border-radius:6px;background:var(--surface,#fff);outline-offset:2px;white-space:pre-wrap;overflow-wrap:anywhere}.long-text-tools{padding:6px 8px;border:1px solid var(--line);border-radius:6px;background:var(--surface-alt,#f3f4f6)}.long-text-toolbar-row{display:flex;align-items:center;gap:8px;min-width:0;flex-wrap:wrap}.long-text-toolbar-row+.long-text-toolbar-row{margin-top:6px;padding-top:6px;border-top:1px solid var(--line)}.long-text-tools label{display:flex;align-items:center;gap:4px;margin:0;font-size:13px;white-space:nowrap}.long-text-tools select{width:auto;min-width:0;margin:0;padding:3px 5px;font-size:14px;height:30px}.long-text-tools [data-long-font]{max-width:180px}.long-text-tools input[type=color]{width:32px;height:30px;margin:0;padding:3px;cursor:pointer}.long-text-button-group{display:flex;align-items:center;gap:4px}.long-text-button-group+.long-text-button-group{border-left:1px solid var(--line);padding-left:8px}.long-text-tools button{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;padding:4px;border:1px solid transparent;border-radius:3px;background:transparent;color:var(--text,#333);font-size:18px;line-height:1;cursor:pointer}.long-text-tools button:hover{background:var(--surface,#fff);border-color:var(--line)}.long-text-tools button:focus-visible{outline:2px solid var(--primary,#2563eb);outline-offset:1px}.long-text-tools button:disabled{opacity:.5;cursor:wait}.long-text-tools svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.5}.long-text-tools svg circle{fill:currentColor;stroke:none}.long-text-tools svg text{font-size:8px;fill:currentColor;stroke:none}
.long-text-image{display:block;max-width:100%;height:auto;margin:8px 0}.long-text-content figure{margin:8px 0}.long-text-content{white-space:pre-wrap;overflow-wrap:anywhere}.long-text-module [data-long-error]{margin:8px 0 0}.report-workspace .long-text-module{grid-column:1/-1}.report-workspace{grid-template-columns:minmax(0,1fr) minmax(0,2fr)}.report-workspace>section:last-child{grid-column:1/-1}.report-workspace .report-attachments{max-height:160px}.interview-text-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.interview-text-grid>.interview-text-field{margin-bottom:10px}.interview-text-field h3{margin:0 0 8px;font-size:16px}

.long-text-color{display:flex;align-items:center;gap:4px;font-size:13px;flex-wrap:wrap}.long-text-palette{display:flex;gap:3px;align-items:center}.long-text-tools [data-long-swatch]{width:21px;height:21px;padding:0;border:1px solid #aaa;background:var(--swatch);border-radius:3px}.long-text-tools [data-long-swatch]:hover{background:var(--swatch);outline:2px solid var(--primary,#2563eb);outline-offset:1px}
.rich-text-editor ol[data-list-style]{list-style:none;counter-reset:long-item;padding-left:2.8em}.rich-text-editor ol[data-list-style]>li{counter-increment:long-item;position:relative}.rich-text-editor ol[data-list-style]>li:before{content:counter(long-item,trad-chinese-informal) "、";white-space:nowrap}.rich-text-editor ol[data-list-style="chinese-parentheses"]>li:before{content:"(" counter(long-item,trad-chinese-informal) ")"}

.long-text-tools [data-long-hanging],.long-text-tools [data-long-hanging-clear]{width:auto;min-width:44px;padding:3px 8px;font-size:13px;white-space:nowrap}
