.IM单任务数据屏{display:flex;flex-direction:column;height:100%;min-height:0;padding:20px;gap:16px;color:var(--feishu-color-text-0);background:var(--feishu-color-bg-0)}
.IM单任务数据屏>header,.IM批次区标题{display:flex;justify-content:space-between;align-items:center;gap:16px}
.IM单任务数据屏 h2{margin:4px 0;font-size:20px;line-height:1.4}.IM单任务数据屏 small{font-size:12px;color:var(--feishu-color-text-1)}
.IM生成总览{display:grid;grid-template-columns:120px 1fr;gap:24px;padding:16px;background:var(--feishu-color-bg-2);border:1px solid var(--feishu-color-border);border-radius:8px}
.IM生成完成率{position:relative;width:106px;height:106px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;background:conic-gradient(var(--feishu-color-primary) var(--progress),var(--feishu-color-fill-2) 0)}
.IM生成完成率:before{content:"";position:absolute;inset:7px;border-radius:50%;background:var(--feishu-color-bg-2)}.IM生成完成率>*{z-index:1}.IM生成完成率 strong{font-size:28px;font-variant-numeric:tabular-nums}
.IM生成统计{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.IM生成统计>div{display:flex;flex-direction:column;gap:3px}.IM生成统计 strong{font-size:25px;font-variant-numeric:tabular-nums}
.IM任务内批次{display:grid;grid-template-rows:repeat(var(--batch-count),minmax(32px,1fr));gap:7px;flex:1;min-height:0}
.IM任务内批次行{display:grid;grid-template-columns:82px 90px minmax(70px,1fr) minmax(70px,1fr) 46px 62px;align-items:center;gap:12px;width:100%;padding:7px 12px;border:1px solid var(--feishu-color-border);border-radius:8px;background:var(--feishu-color-bg-2);color:var(--feishu-color-text-0);font-size:12px;text-align:left}
.IM任务内批次行.selected{border-color:var(--feishu-color-primary);background:var(--feishu-color-primary-light-default);box-shadow:none}
.IM任务内批次行:focus-visible{outline:2px solid var(--feishu-color-primary);outline-offset:2px}
.IM批内光点{display:flex;gap:3px;height:14px}.IM批内光点 i{flex:1;border-radius:2px;background:var(--feishu-color-fill-2)}.IM批内光点 .completed{background:var(--feishu-color-success)}.IM批内光点 .running{background:var(--feishu-color-primary);animation:im-item-pulse 1.7s ease-in-out infinite}.IM批内光点 .failed{background:var(--feishu-color-danger)}.IM批内光点 .blocked{background:var(--feishu-color-warning)}
.IM批完成轨{height:7px;border-radius:4px;background:var(--feishu-color-fill-2);overflow:hidden}.IM批完成轨 i{display:block;height:100%;background:var(--feishu-color-primary)}.completed .IM批完成轨 i{background:var(--feishu-color-success)}
.IM任务内批次.密集{grid-template-columns:repeat(10,minmax(0,1fr));grid-template-rows:none;grid-auto-rows:minmax(44px,1fr)}.IM任务内批次.密集 .IM任务内批次行{grid-template-columns:1fr;gap:3px;padding:6px;font-size:12px}.IM任务内批次.密集 .IM任务内批次行>small,.IM任务内批次.密集 .IM批内光点,.IM任务内批次.密集 .IM任务内批次行>span:last-child{display:none}
.IM生成结果摘要{display:grid;grid-template-columns:1fr 1fr 1.5fr;gap:12px;padding-top:16px;border-top:1px solid var(--feishu-color-border)}.IM生成结果摘要>div{display:flex;flex-direction:column;gap:4px}.IM生成结果摘要 strong{font-size:14px}.IM生成无快照{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center}
@keyframes im-item-pulse{50%{opacity:.5}}
@media(prefers-reduced-motion:reduce){.IM批内光点 .running{animation:none}}
@media(max-width:1180px){.IM任务内批次行{grid-template-columns:70px 70px 1fr 42px 54px;gap:6px}.IM任务内批次行>.IM批内光点{display:none}.IM单任务数据屏{padding:12px;gap:10px}.IM任务内批次.密集{grid-template-columns:repeat(5,minmax(0,1fr));overflow:auto}}
@media(max-width:760px){.IM单任务数据屏{height:auto}.IM任务内批次{flex:none;grid-template-rows:none;grid-auto-rows:minmax(44px,auto)}.IM生成总览{grid-template-columns:90px 1fr;padding:12px;gap:12px}.IM生成完成率{width:84px;height:84px}.IM生成统计 strong{font-size:19px}.IM生成结果摘要{grid-template-columns:1fr}}


/* Task homepage, approved option 2. Existing three-column shell stays intact. */
body[data-current-page="im"][data-workbench="xhs"] #IM页面 {
  --task-home-surface: var(--feishu-color-bg-1);
  --task-home-rail: color-mix(in srgb, var(--feishu-color-primary) 4%, var(--feishu-color-bg-2));
}
@media (min-width: 761px) {
  body[data-current-page="im"][data-workbench="xhs"] #IM页面:not([hidden]) {
    column-gap: 0;
  }
  body[data-current-page="im"][data-workbench="xhs"] #IM窗口导航,
  body[data-current-page="im"][data-workbench="xhs"] #IM页面 > .IM窗口,
  body[data-current-page="im"][data-workbench="xhs"] #IM任务面板 {
    border: 0 !important;
    box-shadow: none !important;
    background: var(--task-home-surface) !important;
    background-image: none !important;
  }
  body[data-current-page="im"][data-workbench="xhs"] #IM窗口导航 {
    border-radius: 12px 0 0 12px !important;
    background: var(--task-home-rail) !important;
  }
  body[data-current-page="im"][data-workbench="xhs"] #IM页面 > .IM窗口 {
    border-radius: 0 !important;
  }
  body[data-current-page="im"][data-workbench="xhs"] #IM任务面板 {
    border-radius: 0 12px 12px 0 !important;
    border-left: 1px solid var(--workbench-border-subtle) !important;
  }
  body[data-current-page="im"][data-workbench="xhs"] #IM聊天窗口列表 {
    padding: 16px 0 16px 10px;
    gap: 8px;
    background: transparent !important;
  }
  body[data-current-page="im"][data-workbench="xhs"] #IM聊天窗口列表 .IM聊天窗口行 {
    transition: none;
    flex-shrink: 0;
    border: 0 !important;
    border-radius: 8px 0 0 8px;
    background: transparent !important;
    box-shadow: none !important;
  }
  body[data-current-page="im"][data-workbench="xhs"] #IM聊天窗口列表 .IM聊天窗口行:not(.已选中):hover {
    background: var(--feishu-color-fill-1) !important;
  }
  body[data-current-page="im"][data-workbench="xhs"] #IM聊天窗口列表 .IM聊天窗口行.已选中 {
    isolation: isolate;
    z-index: 1;
    
  }
  /* Inverse round corners connect the selected row to the middle surface. No left rail. */
  
  
  
  body[data-current-page="im"][data-workbench="xhs"] #IM聊天窗口列表 .IM聊天窗口项 {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--workbench-text-secondary) !important;
  }
  body[data-current-page="im"][data-workbench="xhs"] #IM聊天窗口列表 .已选中 .IM聊天窗口项 strong {
    color: var(--feishu-color-primary) !important;
    font-weight: 700;
  }
  body[data-current-page="im"][data-workbench="xhs"] #IM聊天窗口列表 .IM聊天窗口项:focus-visible {
    outline: 2px solid var(--feishu-color-primary);
    outline-offset: -3px;
  }
}

/* Always-expanded launch sections, inside the existing middle pane. */
body[data-current-page="im"][data-workbench="xhs"] #IM页面 .IM窗口:has(#IM表单:not([hidden])) {display:flex!important;flex-direction:column;justify-content:flex-start}
body[data-current-page="im"][data-workbench="xhs"] #IM页面 .IM窗口:has(#IM表单:not([hidden])) #IM消息区 {display:none!important}
body[data-current-page="im"][data-workbench="xhs"] #IM页面 #IM表单:not([hidden]) {display:flex!important;flex-direction:column;flex:1;align-items:stretch;justify-content:flex-start;position:static!important;inset:auto!important;width:auto!important;min-height:0!important;max-height:none!important;height:100%;margin:0!important;padding:20px 24px!important;border:0!important;background:transparent!important;gap:12px!important;overflow:auto}
body[data-current-page="im"][data-workbench="xhs"] #IM表单 .IM发起任务标题 {display:block!important;position:static!important;margin:0;padding:0 0 12px;border-bottom:1px solid var(--feishu-color-border)}
body[data-current-page="im"][data-workbench="xhs"] #IM表单 .IM发起任务标题>span {display:none}
body[data-current-page="im"][data-workbench="xhs"] #IM表单 .IM发起任务标题 h2 {font-size:20px;line-height:1.4;margin:0 0 4px}
body[data-current-page="im"][data-workbench="xhs"] #IM表单 .IM发起任务标题 p {font-size:12px;line-height:1.5;margin:0;color:var(--feishu-color-text-2)}
body[data-current-page="im"][data-workbench="xhs"] #IM表单 .IM任务配置板块 {display:flex!important;flex-direction:column;gap:12px;min-width:0;flex:1}
body[data-current-page="im"][data-workbench="xhs"] #IM表单 .IM栏目切换栏 {display:grid!important;grid-template-columns:minmax(100px,1fr) minmax(160px,1fr);align-items:center;width:auto!important;max-width:none!important;min-width:0;gap:12px;padding:10px 0;margin:0;position:relative}
body[data-current-page="im"][data-workbench="xhs"] #IM表单 .IM栏目选择 {width:100%!important;max-width:none!important}
body[data-current-page="im"][data-workbench="xhs"] #IM表单 #IM小红书选项:not([hidden]) {display:grid!important;grid-template-columns:minmax(0,1fr)!important;position:static!important;width:100%!important;min-width:0!important;max-width:none!important;padding:0!important;margin:0!important;gap:12px!important;border:0!important}
body[data-current-page="im"][data-workbench="xhs"] #IM小红书选项 .IM配置分区 {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:12px 16px;min-width:0;padding:14px 0 0;border-top:1px solid var(--feishu-color-border)}
body[data-current-page="im"][data-workbench="xhs"] #IM小红书选项 .IM配置分区>h3 {grid-column:1/-1;display:flex;align-items:center;gap:8px;margin:0;font-size:14px;font-weight:600;color:var(--feishu-color-text-0)}
body[data-current-page="im"][data-workbench="xhs"] #IM小红书选项 .IM配置分区>h3 small {padding:3px 5px;border-radius:4px;color:var(--feishu-color-primary);background:var(--feishu-color-primary-light-default);font-size:11px}
body[data-current-page="im"][data-workbench="xhs"] #IM表单 .IM表单字段 {position:static!important;grid-column:auto!important;grid-row:auto!important;display:flex;flex-direction:column;gap:6px;width:auto!important;max-width:none!important;min-width:0!important;margin:0!important}
body[data-current-page="im"][data-workbench="xhs"] #IM表单 .IM表单字段 :is(input,.IM飞书选择器,.IM飞书选择器按钮,.IM当前模板卡,.feishu-select) {width:100%;min-width:0;max-width:100%;min-height:34px;height:34px;box-sizing:border-box;font-size:13px}
body[data-current-page="im"][data-workbench="xhs"] #IM表单 .IM表单字段 input {border:1px solid var(--feishu-color-border);border-radius:6px;background:var(--task-home-surface);color:var(--feishu-color-text-0);padding:6px 10px}
body[data-current-page="im"][data-workbench="xhs"] #IM小红书选项 .IM分批预览 {grid-column:1/-1;margin:0;padding:10px 12px;background:var(--feishu-color-fill-0);border-radius:6px;color:var(--feishu-color-text-1);font-size:12px;line-height:1.5}
body[data-current-page="im"][data-workbench="xhs"] #IM小红书选项 .IM分批安排 {grid-column:1/-1;display:grid;grid-template-columns:repeat(auto-fit,minmax(42px,1fr));gap:4px}
body[data-current-page="im"][data-workbench="xhs"] .IM分批安排>span {display:flex;gap:4px;justify-content:center;align-items:center;padding:4px;border-radius:4px;border:1px solid var(--feishu-color-border);font-size:11px;color:var(--feishu-color-primary)}
body[data-current-page="im"][data-workbench="xhs"] .IM分批安排 small {font-size:10px;color:var(--feishu-color-text-2)}
body[data-current-page="im"][data-workbench="xhs"] #IM表单 .IM需求字段:has(textarea[hidden]) {display:none!important}
body[data-current-page="im"][data-workbench="xhs"] #IM表单 #IM提交按钮 {position:static!important;align-self:flex-end;margin:0!important;min-height:36px;padding:8px 16px;border-radius:6px;max-width:100%;flex-shrink:0}
@media(min-width:761px) and (max-height:850px){
  body[data-current-page="im"][data-workbench="xhs"] #IM页面 #IM表单:not([hidden]) {padding:12px 18px!important;gap:8px!important}
  body[data-current-page="im"][data-workbench="xhs"] #IM表单 .IM任务配置板块 {gap:8px}
  body[data-current-page="im"][data-workbench="xhs"] #IM小红书选项 .IM配置分区 {padding-top:8px;gap:8px 12px}
}
@media(max-width:760px){body[data-current-page="im"][data-workbench="xhs"] #IM小红书选项 .IM配置分区 {grid-template-columns:1fr}}

/* The batch board occupies the same middle surface, with no fake platform slots. */
body[data-current-page="im"][data-workbench="xhs"] .IM单任务数据屏 {background:var(--task-home-surface);padding:16px 20px;gap:12px;box-sizing:border-box}
body[data-current-page="im"][data-workbench="xhs"] .IM任务内批次行.selected {box-shadow:none}
@media(min-width:761px){
  body[data-current-page="im"][data-workbench="xhs"] #IM聊天窗口列表 .IM聊天窗口项 {display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:start!important;gap:8px!important;min-height:64px!important;padding:12px 26px 12px 10px!important}
  body[data-current-page="im"][data-workbench="xhs"] #IM聊天窗口列表 .IM聊天窗口项>span {display:flex!important;flex-direction:column!important;gap:7px!important;min-width:0!important}
  body[data-current-page="im"][data-workbench="xhs"] #IM聊天窗口列表 .IM聊天窗口项 :is(strong,small,em,.IM窗口进度) {position:static!important;inset:auto!important;transform:none!important;grid-area:auto!important;width:auto!important;margin:0!important}
  body[data-current-page="im"][data-workbench="xhs"] #IM聊天窗口列表 .IM聊天窗口项 strong {display:block!important;font-size:13px!important;line-height:20px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:600!important}
  body[data-current-page="im"][data-workbench="xhs"] #IM聊天窗口列表 .IM聊天窗口项 small {display:none!important}
  body[data-current-page="im"][data-workbench="xhs"] #IM聊天窗口列表 .IM聊天窗口项 em {font-size:10px!important;line-height:18px!important;padding:0 4px!important;white-space:nowrap}
  body[data-current-page="im"][data-workbench="xhs"] #IM聊天窗口列表 .IM窗口进度 {display:flex!important;align-items:center;gap:6px}
  body[data-current-page="im"][data-workbench="xhs"] #IM聊天窗口列表 .IM窗口进度 i {flex:1;min-width:24px}
  body[data-current-page="im"][data-workbench="xhs"] #IM聊天窗口列表 .IM窗口进度 b {font-size:11px!important}
  body[data-current-page="im"][data-workbench="xhs"] .IM消息区:has(.IM单任务数据屏) {padding:0!important;min-height:0;overflow:auto}
  body[data-current-page="im"][data-workbench="xhs"] #IM任务消息:has(.IM单任务数据屏),body[data-current-page="im"][data-workbench="xhs"] .IM任务消息组:has(.IM单任务数据屏) {height:100%;min-height:0}
  body[data-current-page="im"][data-workbench="xhs"] .IM任务消息组:has(.IM单任务数据屏) {display:flex;flex-direction:column}
  body[data-current-page="im"][data-workbench="xhs"] .IM单任务数据屏 {flex:1;min-height:0}
  body[data-current-page="im"][data-workbench="xhs"] .IM任务内批次.密集 {grid-template-columns:repeat(10,minmax(0,1fr));grid-auto-rows:minmax(26px,1fr);gap:4px}
  body[data-current-page="im"][data-workbench="xhs"] .IM任务内批次.密集 .IM任务内批次行 {position:relative;display:grid;grid-template-columns:1fr;gap:2px;padding:3px;text-align:center;min-width:0}
  body[data-current-page="im"][data-workbench="xhs"] .IM任务内批次.密集 .IM任务内批次行>strong {font-size:10px}
  body[data-current-page="im"][data-workbench="xhs"] .IM任务内批次.密集 .IM批完成轨 {height:3px}
  body[data-current-page="im"][data-workbench="xhs"] #IM任务内容 {overflow:auto}
  body[data-current-page="im"][data-workbench="xhs"] .IM整个任务进程 {gap:8px;padding:0}
  body[data-current-page="im"][data-workbench="xhs"] .IM整个任务进程>section {padding:10px 12px;flex:none;min-height:0}
  body[data-current-page="im"][data-workbench="xhs"] .IM四节点进程>li {min-height:32px}
}
body[data-current-page="im"][data-workbench="xhs"] #IM表单 :is(.IM发起任务标题,.IM任务配置板块,.IM栏目切换栏) {align-self:stretch!important;align-items:stretch!important;width:100%!important;max-width:none!important;box-sizing:border-box}
body[data-current-page="im"][data-workbench="xhs"] #IM表单 .IM栏目切换栏 {align-items:center!important}
body[data-current-page="im"][data-workbench="xhs"] #IM表单 .IM表单字段 {display:flex!important;flex-direction:column!important;align-items:stretch!important;align-self:start!important;height:auto!important;min-height:0!important}
body[data-current-page="im"][data-workbench="xhs"] #IM表单 .IM表单字段>:is(span,small) {position:static!important;inset:auto!important;transform:none!important;width:auto!important;max-width:100%!important;white-space:normal!important;font-size:12px!important;line-height:1.4!important}
body[data-current-page="im"][data-workbench="xhs"] #IM表单 .IM表单字段 .IM场景工作流计费 {font-size:11px!important}
body[data-current-page="im"][data-workbench="xhs"] #IM表单 .IM栏目选择>.IM飞书选择器,body[data-current-page="im"][data-workbench="xhs"] #IM表单 .IM栏目选择 .IM飞书选择器按钮 {width:100%!important;max-width:none!important}
body[data-current-page="im"][data-workbench="xhs"] #IM表单 #IM提交按钮 {align-self:flex-end!important;justify-self:end!important}
body[data-current-page="im"][data-workbench="xhs"] #IM页面 #IM聊天窗口列表 .IM聊天窗口项>span {align-items:stretch!important;text-align:left!important}
body[data-current-page="im"][data-workbench="xhs"] #IM页面 #IM聊天窗口列表 .IM聊天窗口项 strong,body[data-current-page="im"][data-workbench="xhs"] #IM页面 #IM聊天窗口列表 .IM窗口进度 {align-self:stretch!important;width:100%!important;max-width:100%!important;min-width:0!important}
body[data-current-page="im"][data-workbench="xhs"] #IM页面 #IM表单 .IM工作流生成条件 {display:block!important;position:relative!important;width:100%!important}
body[data-current-page="im"][data-workbench="xhs"] #IM页面 #IM表单 .IM工作流生成条件>small {display:none!important}
body[data-current-page="im"][data-workbench="xhs"] #IM页面 #IM表单 .IM工作流生成条件>.IM飞书选择器 {width:100%!important;max-width:none!important}
body[data-current-page="im"][data-workbench="xhs"] .IM发起概览 h3 {font-size:14px;margin:0 0 12px}
body[data-current-page="im"][data-workbench="xhs"] .IM发起总量 {display:flex;align-items:baseline;gap:6px;padding:12px 0;color:var(--feishu-color-primary)}
body[data-current-page="im"][data-workbench="xhs"] .IM发起总量 strong {font-size:32px;font-variant-numeric:tabular-nums}
body[data-current-page="im"][data-workbench="xhs"] .IM发起概览 dl {display:grid;gap:12px;margin:0}
body[data-current-page="im"][data-workbench="xhs"] .IM发起概览 dl>div {display:flex;justify-content:space-between;gap:12px}
body[data-current-page="im"][data-workbench="xhs"] .IM发起概览 dt {font-size:12px;white-space:nowrap;color:var(--feishu-color-text-2)}
body[data-current-page="im"][data-workbench="xhs"] .IM发起概览 dd {margin:0;text-align:right;font-size:12px;color:var(--feishu-color-text-0)}
body[data-current-page="im"][data-workbench="xhs"] #IM页面 #IM任务内容 .IM整个任务进程 :is(p,small,dt,dd,header>span) {font-size:12px!important;line-height:1.5!important}
body[data-current-page="im"][data-workbench="xhs"] #IM页面 #IM任务内容 .IM整个任务进程>section {height:auto!important;flex:none!important}
body[data-current-page="im"][data-workbench="xhs"] .IM单任务数据屏>header>div {min-width:0;flex:1}
body[data-current-page="im"][data-workbench="xhs"] .IM单任务数据屏 h2 {white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
body[data-current-page="im"][data-workbench="xhs"] .IM单任务数据屏>header>span {flex-shrink:0}
body[data-current-page="im"][data-workbench="xhs"] .IM生成统计 strong {font-size:20px;line-height:1.4}
