:root{--white:#fff;--white-dark:#fcfcfc;--grey:#fbfbfb;--border-grey:#dcdfe6;--border-grey-light:rgba(220,223,230,0.4);--transparent-grey:rgba(0,0,0,0.05);--black:#0f263b;--black-dark:#0d2033;--black-darker:#0d1c2f;--actual-black:#000;--actual-dark-black:#050505;--dark-section-bg:#0f263b;--dark-section-text:#fff;--grid-line:#e5e5e5}html.dark{--white:#2c2c2c;--white-dark:#1a1a1a;--grey:#1c1c1c;--border-grey:#444;--border-grey-light:rgba(68,68,68,0.4);--transparent-grey:hsla(0,0%,100%,0.05);--black:#f5f5f5;--black-dark:#eee;--black-darker:#ddd;--actual-black:#fff;--actual-dark-black:#fafafa;--dark-section-bg:#1a1a1a;--dark-section-text:#e0e0e0;--grid-line:#444}.ai-document-writer-dialog .el-dialog__body{padding:20px 24px}.ai-document-writer-dialog .writer-content{display:flex;flex-direction:column;gap:16px}.ai-document-writer-dialog .context-bar>.el-tooltip{display:inline-flex}.ai-document-writer-dialog .context-bar{display:flex;flex-wrap:wrap;gap:8px}.ai-document-writer-dialog .context-bar .context-item{display:flex;align-items:center;gap:5px;padding:5px 12px;border-radius:6px;font-size:12px;font-weight:500;color:#c0c4cc;background:#f5f7fa;border:1px solid #ebeef5;transition:all .2s}.ai-document-writer-dialog .context-bar .context-item i{font-size:12px}.ai-document-writer-dialog .context-bar .context-item.ok{color:#67c23a;background:#f0f9eb;border-color:#e1f3d8}.ai-document-writer-dialog .sections-panel{border:1px solid #ebeef5;border-radius:8px;overflow:hidden}.ai-document-writer-dialog .sections-header{display:flex;align-items:center;justify-content:space-between;padding:10px 16px;background:#f5f7fa;border-bottom:1px solid #ebeef5}.ai-document-writer-dialog .sections-header .sections-title{font-size:13px;font-weight:600;color:#303133}.ai-document-writer-dialog .sections-header .sections-actions{display:flex;gap:4px}.ai-document-writer-dialog .sections-header .sections-actions .el-button--text{padding:2px 8px;font-size:12px;color:#909399}.ai-document-writer-dialog .sections-header .sections-actions .el-button--text:hover{color:#409eff}.ai-document-writer-dialog .sections-list{max-height:320px;overflow-y:auto}.ai-document-writer-dialog .section-row{display:flex;align-items:flex-start;gap:12px;padding:12px 16px;border-bottom:1px solid #f2f3f5;cursor:pointer;transition:background .15s}.ai-document-writer-dialog .section-row:last-child{border-bottom:none}.ai-document-writer-dialog .section-row:hover{background:#fafbfc}.ai-document-writer-dialog .section-row.selected{background:#f0f7ff}.ai-document-writer-dialog .section-row.selected:hover{background:#e8f2ff}.ai-document-writer-dialog .section-row .el-checkbox{margin-top:1px}.ai-document-writer-dialog .section-row .el-checkbox .el-checkbox__inner{width:16px;height:16px;border-radius:4px}.ai-document-writer-dialog .section-info{flex:1;min-width:0}.ai-document-writer-dialog .section-title{font-size:14px;font-weight:500;color:#303133;line-height:1.3}.ai-document-writer-dialog .section-instructions{display:flex;align-items:flex-start;gap:5px;margin-top:4px;font-size:12px;color:#909399;line-height:1.4}.ai-document-writer-dialog .section-instructions i{margin-top:1px;flex-shrink:0;color:#c0c4cc}.ai-document-writer-dialog .section-status{display:flex;align-items:center;gap:4px;margin-top:4px;font-size:11px;line-height:1}.ai-document-writer-dialog .section-status i{font-size:11px}.ai-document-writer-dialog .section-status.written{color:#e6a23c}.ai-document-writer-dialog .section-status.empty-label{color:#67c23a}.ai-document-writer-dialog .no-sections{padding:24px 16px;text-align:center;color:#c0c4cc;font-size:13px}.ai-document-writer-dialog .heading-warning{display:flex;align-items:center;gap:6px;margin:0;padding:8px 16px;font-size:12px;color:#e6a23c;background:#fdf6ec;border-top:1px solid #faecd8}.ai-document-writer-dialog .heading-warning i{flex-shrink:0;font-size:13px}.ai-document-writer-dialog .instructions-section .instructions-label{display:block;font-size:13px;font-weight:500;color:#606266;margin-bottom:6px}.ai-document-writer-dialog .instructions-section .el-textarea{height:auto}.ai-document-writer-dialog .dialog-footer{display:flex;align-items:center;justify-content:flex-end;gap:10px}.ai-document-writer-dialog .dialog-footer .footer-hint{margin-right:auto;font-size:12px;color:#909399}.ai-document-writer-dialog .insert-progress{padding:10px 0 20px}.ai-document-writer-dialog .insert-progress .progress-header{text-align:center;margin-bottom:28px}.ai-document-writer-dialog .insert-progress .progress-header .progress-title{font-size:17px;font-weight:600;color:#303133}.ai-document-writer-dialog .insert-progress .steps-list{display:flex;flex-direction:column;gap:0}.ai-document-writer-dialog .insert-progress .step-row{display:flex;align-items:center;gap:14px;padding:14px 16px;border-radius:8px;transition:background .25s,opacity .25s}.ai-document-writer-dialog .insert-progress .step-row.is-pending{opacity:.35}.ai-document-writer-dialog .insert-progress .step-row.is-active{background:rgba(25,137,250,.06);opacity:1}.ai-document-writer-dialog .insert-progress .step-row.is-done{opacity:1}.ai-document-writer-dialog .insert-progress .step-row.is-error{background:rgba(245,108,108,.08);opacity:1}.ai-document-writer-dialog .insert-progress .step-icon{flex-shrink:0;width:24px;height:24px;display:flex;align-items:center;justify-content:center}.ai-document-writer-dialog .insert-progress .step-icon i{font-size:20px}.ai-document-writer-dialog .insert-progress .step-icon .el-icon-success{color:#67c23a}.ai-document-writer-dialog .insert-progress .step-icon .el-icon-loading{color:#409eff}.ai-document-writer-dialog .insert-progress .step-icon .el-icon-error{color:#f56c6c}.ai-document-writer-dialog .insert-progress .step-icon .step-number{width:24px;height:24px;border-radius:50%;background:#dcdfe6;color:#909399;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600}.ai-document-writer-dialog .insert-progress .step-label{font-size:14px;font-weight:500;color:#303133;flex:1}.ai-document-writer-dialog .insert-progress .step-detail{font-size:12px;color:#909399;flex-shrink:0}.ai-document-writer-dialog .insert-progress .insert-error{display:flex;align-items:center;gap:8px;padding:12px 16px;margin-top:20px;background:rgba(245,108,108,.08);border:1px solid rgba(245,108,108,.2);border-radius:8px;color:#f56c6c;font-size:13px}.ai-document-writer-dialog .insert-progress .insert-error i{font-size:16px;flex-shrink:0}.ai-document-writer-dialog .el-button--primary.is-disabled{color:#606266!important;background-color:var(--grey)!important;border-color:var(--border-grey)!important;cursor:not-allowed;opacity:1}.el-tooltip__popper.ai-doc-context-tooltip{z-index:10000!important;max-width:360px}.el-tooltip__popper.ai-doc-context-tooltip .context-tooltip-inner{text-align:left}.el-tooltip__popper.ai-doc-context-tooltip .context-tooltip-heading{font-weight:600;font-size:13px;margin-bottom:6px;color:#fff}.el-tooltip__popper.ai-doc-context-tooltip .context-tooltip-body{margin:0 0 8px 0;font-size:12px;color:hsla(0,0%,100%,.92);line-height:1.5}.el-tooltip__popper.ai-doc-context-tooltip .context-tooltip-preview{margin:0;padding:8px 10px;background:rgba(0,0,0,.22);border-radius:6px;font-size:11px;color:hsla(0,0%,100%,.9);white-space:pre-wrap;word-break:break-word;max-height:160px;overflow-y:auto;line-height:1.45}.el-tooltip__popper.ai-doc-context-tooltip .context-tooltip-missing{font-size:11px;color:hsla(0,0%,100%,.65);font-style:italic;line-height:1.4}