/* 选品侠 · 排品文案弹窗：隐藏「排品原有关联」蓝框 + 「现场消息」区优化 + 宽屏三栏（找参考 / 现场消息 / 排品稿）。
   全部以 .copy-editor-dialog 为前缀（特异性高于 scoped 样式，不依赖加载先后），只作用于该弹窗。 */
.copy-editor-dialog .copy-source-panel > .copy-existing-source{display:none !important}
.copy-editor-dialog .copy-source-panel{box-sizing:border-box;max-height:76vh;overflow:hidden}
.copy-editor-dialog .copy-source-panel > .copy-search-list{flex:0 0 auto;max-height:max(20vh,120px)}
.copy-editor-dialog .copy-source-panel > .copy-scene{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;gap:6px;border-top:1px solid #dbe5f3;padding-top:10px;overflow:hidden}
.copy-editor-dialog .copy-source-panel > .copy-scene > .copy-panel-heading{flex:none}
.copy-editor-dialog .copy-source-panel > .copy-scene > .copy-scene-list{flex:1 1 auto;min-height:min(150px,18vh);max-height:none;overflow-y:auto;overscroll-behavior:contain;border:1px solid #e3eaf3;border-radius:8px;background:#fff;padding:0 8px}
.copy-editor-dialog .copy-source-panel > .copy-scene > .el-button{flex:none;width:100%;margin:0;height:34px}
.copy-editor-dialog .copy-source-panel .copy-scene-row{display:flex;align-items:flex-start;gap:10px;padding:9px 2px}
.copy-editor-dialog .copy-source-panel .copy-scene-row:last-child{border-bottom:0}
.copy-editor-dialog .copy-source-panel .copy-scene-row > input[type=checkbox]{flex:none;width:16px;height:16px;margin:1px 0 0}
.copy-editor-dialog .copy-source-panel .copy-scene-row > span{flex:1 1 auto;min-width:0}
.copy-editor-dialog .copy-source-panel .copy-scene-row small{display:block;margin:0 0 3px;font-size:12px;line-height:18px;color:#5f7391;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.copy-editor-dialog .copy-source-panel .copy-scene-row .copy-preview{display:block;margin:0;max-height:none;overflow:visible;font-size:13px;line-height:1.6;color:#23324a;white-space:pre-wrap;word-break:break-word;overflow-wrap:anywhere}
.copy-editor-dialog .copy-source-panel .copy-scene-media{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.copy-editor-dialog .copy-source-panel .copy-scene-media img{width:76px;height:76px;object-fit:cover;border-radius:6px;border:1px solid #e3eaf3;background:#f5f6f8}

.copy-editor-dialog .copy-editor-layout.copy-editor-layout{overflow-y:auto}

/* ≥1100px：弹窗加宽，三栏并排 1 : 1 : 1.2，每栏独立滚动、高度撑满；<1100px 保持上面的两栏/单栏布局 */
@media (min-width:1100px){
  .copy-editor-dialog.el-dialog,.copy-editor-dialog .el-dialog{--el-dialog-width:min(96vw,1500px) !important;width:min(96vw,1500px) !important;margin-top:3vh !important;margin-bottom:3vh !important}
  .copy-editor-dialog .copy-editor-layout.copy-editor-layout{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.2fr);gap:14px;height:calc(94vh - 110px);min-height:340px;max-height:none;overflow:hidden}
  .copy-editor-dialog .copy-editor-layout > .copy-source-panel{grid-column:1;height:100%;min-height:0;max-height:none}
  .copy-editor-dialog .copy-editor-layout > .copy-draft-panel{box-sizing:border-box;grid-column:3;height:100%;min-height:0;overflow:hidden}
  .copy-editor-dialog .copy-editor-layout > .copy-source-panel > .copy-search-list{flex:1 1 auto;min-height:0;max-height:none}
  .copy-editor-dialog .copy-editor-layout > .copy-source-panel > .copy-scene{position:absolute;z-index:2;top:0;bottom:0;left:calc((100% - 28px) / 3.2 + 14px);width:calc((100% - 28px) / 3.2);box-sizing:border-box;margin:0;padding:14px;gap:10px;border:1px solid #e8edf4;border-radius:10px;background:#f8faff}
  .copy-editor-dialog .copy-editor-layout > .copy-source-panel > .copy-scene > .copy-scene-list{min-height:0}
  .copy-editor-dialog .copy-editor-layout::before{content:"在左栏点搜索结果的「查看现场」，现场消息会显示在这里";position:absolute;z-index:1;top:0;bottom:0;left:calc((100% - 28px) / 3.2 + 14px);width:calc((100% - 28px) / 3.2);box-sizing:border-box;display:flex;align-items:center;justify-content:center;padding:24px;text-align:center;font-size:12px;line-height:1.7;color:#8a97aa;border:1px dashed #cdd8e8;border-radius:10px;background:#fafbfd}
}

/* 现场消息区顶部工具条：去文案库调整范围 / 刷新现场消息 / 扩大范围 */
.copy-editor-dialog .copy-source-panel .copy-scene-tools{flex:none;display:flex;flex-wrap:wrap;gap:6px}
.copy-editor-dialog .copy-source-panel .copy-scene-tools button{height:28px;padding:0 10px;border:1px solid #c9d8f2;border-radius:6px;background:#fff;color:#2f5fd0;font-size:12px;line-height:1;cursor:pointer;white-space:nowrap}
.copy-editor-dialog .copy-source-panel .copy-scene-tools button:hover:not(:disabled){background:#eef4ff;border-color:#9db8ee}
.copy-editor-dialog .copy-source-panel .copy-scene-tools button:disabled{opacity:.5;cursor:default}
.copy-editor-dialog .copy-source-panel .copy-scene-hint{flex:none;display:block;margin:0;font-size:11px;line-height:1.5;color:#8a97aa}

/* 现场消息：选范围 / Shift 范围勾选 / 全选 / 清空 */
.copy-editor-dialog .copy-source-panel .copy-scene-tools button.is-active{background:#fff4dd;border-color:#f0b64c;color:#a8670a}
.copy-editor-dialog .copy-source-panel .copy-scene-row{border-radius:4px}
.copy-editor-dialog .copy-source-panel .copy-scene-row.is-picked{background:#f2f7ff}
.copy-editor-dialog .copy-source-panel .copy-scene-row.is-range-start{background:#fff3d6;box-shadow:inset 3px 0 0 #f0a020}
.copy-editor-dialog .copy-source-panel .copy-scene-list.is-range-mode .copy-scene-row{cursor:crosshair;-webkit-user-select:none;user-select:none}
.copy-editor-dialog .copy-source-panel .copy-scene-list.is-range-mode .copy-scene-row:hover{background:#fff8e8}

/* ---- 排品稿：角色 / 间隔 / 导出 ---- */
.copy-editor-dialog .copy-draft-row{--role:#f56c6c;position:relative;padding:10px 0 10px 10px;border-left:3px solid var(--role)}
.copy-editor-dialog .copy-draft-row.copy-role-sender{--role:#f56c6c}
.copy-editor-dialog .copy-draft-row.copy-role-a1{--role:#67c23a}
.copy-editor-dialog .copy-draft-row.copy-role-a2{--role:#e6a23c}
.copy-editor-dialog .copy-draft-row.copy-role-a3{--role:#9b59b6}
.copy-editor-dialog .copy-draft-row.copy-role-a4{--role:#1abc9c}
.copy-editor-dialog .copy-draft-row.copy-role-a5{--role:#e74c3c}
.copy-editor-dialog .copy-draft-row.copy-role-a6{--role:#3498db}
.copy-editor-dialog .copy-draft-row.copy-role-a7{--role:#e67e22}
.copy-editor-dialog .copy-draft-row.copy-role-a8{--role:#8e44ad}
.copy-editor-dialog .copy-draft-row.copy-role-a9{--role:#2ecc71}
.copy-editor-dialog .copy-draft-row.copy-role-a10{--role:#d35400}
.copy-editor-dialog .copy-draft-row .copy-role-badge{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 4px;box-sizing:border-box;border-radius:6px;background:var(--role);color:#fff;font-size:12px;font-weight:700;line-height:1}
.copy-editor-dialog .copy-draft-row .copy-number{color:#1e3456}
.copy-editor-dialog .copy-draft-row .copy-send-fields{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin:0 0 8px;font-size:12px;color:#64748b}
.copy-editor-dialog .copy-draft-row .copy-send-fields label{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
.copy-editor-dialog .copy-draft-row .copy-role-select{height:26px;border:1px solid var(--role);border-radius:6px;background:#fff;color:var(--role);font-weight:600;font-size:12px;padding:0 4px;cursor:pointer;outline:none}
.copy-editor-dialog .copy-draft-row .copy-delay-input{width:66px;height:26px;box-sizing:border-box;border:1px solid #dbe3ef;border-radius:6px;padding:0 6px;font-size:12px;color:#334155;outline:none}
.copy-editor-dialog .copy-draft-row .copy-delay-input:disabled{background:#f3f5f8;color:#a3adbd;cursor:not-allowed}
.copy-editor-dialog .copy-draft-row .copy-source-sender{max-width:9em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#8290a4}
.copy-editor-dialog .copy-draft-list .copy-gap{display:flex;align-items:center;justify-content:center;gap:6px;height:26px;color:#8290a4;font-size:12px;border-bottom:1px solid #e8edf4}
.copy-editor-dialog .copy-draft-list .copy-gap .copy-gap-add{width:20px;height:20px;line-height:1;padding:0;border:1px solid #dbe3ef;border-radius:50%;background:#fff;color:#38577f;cursor:pointer;font-size:12px}
.copy-editor-dialog .copy-draft-list .copy-gap .copy-gap-add:hover{background:#eef4ff}
.copy-editor-dialog .copy-save-bar .copy-save-actions{display:flex;align-items:center;gap:8px}
.copy-editor-dialog .copy-save-bar .copy-save-actions .el-button+.el-button{margin-left:0}

/* ---- 排品稿：版本标签 ---- */
.copy-editor-dialog .copy-draft-panel .copy-version-bar{display:flex;flex-direction:column;gap:6px;margin:0}
.copy-editor-dialog .copy-draft-panel .copy-version-tabs{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.copy-editor-dialog .copy-draft-panel .copy-version-tab,.copy-editor-dialog .copy-draft-panel .copy-version-add{height:28px;padding:0 12px;border:1px solid #dbe3ef;border-radius:14px;background:#fff;color:#38577f;font-size:13px;cursor:pointer;max-width:12em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.copy-editor-dialog .copy-draft-panel .copy-version-tab:hover:not(:disabled),.copy-editor-dialog .copy-draft-panel .copy-version-add:hover:not(:disabled){background:#eef4ff}
.copy-editor-dialog .copy-draft-panel .copy-version-tab.is-active{background:#409eff;border-color:#409eff;color:#fff;font-weight:600}
.copy-editor-dialog .copy-draft-panel .copy-version-add{border-style:dashed;color:#409eff}
.copy-editor-dialog .copy-draft-panel .copy-version-bar button:disabled{opacity:.5;cursor:default}
.copy-editor-dialog .copy-draft-panel .copy-version-ops{display:flex;flex-wrap:wrap;gap:6px}
.copy-editor-dialog .copy-draft-panel .copy-version-ops button{height:24px;padding:0 9px;border:1px solid #dbe3ef;border-radius:5px;background:#fff;color:#38577f;font-size:12px;cursor:pointer}
.copy-editor-dialog .copy-draft-panel .copy-version-ops button:hover:not(:disabled){background:#eef4ff}
.copy-editor-dialog .copy-draft-panel .copy-version-ops .copy-delete{color:#c45c5c}
.copy-editor-dialog .copy-draft-panel .copy-panel-heading strong{font-size:14px}
