
    .lgwchat-session{position:absolute;inset:0;display:flex;background:#f5f6f8;z-index:30;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Segoe UI",sans-serif;color:#1c1f27;}
    .lgwchat-main{flex:1;min-width:0;display:flex;flex-direction:column;position:relative;}
    .lgwchat-header{display:flex;align-items:center;gap:12px;padding:13px 20px;border-bottom:1px solid #ececf0;background:#fff;}
    .lgwchat-back{display:inline-flex;align-items:center;gap:5px;border:none;background:transparent;color:#5b6270;font-size:13px;cursor:pointer;padding:6px 8px;border-radius:8px;}
    .lgwchat-back:hover{background:#f0f1f4;color:#1c1f27;}
    .lgwchat-head-info{display:flex;flex-direction:column;gap:1px;min-width:0;}
    .lgwchat-title{font-size:14px;font-weight:600;color:#1c1f27;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
    .lgwchat-sub{font-size:12px;color:#9aa1ad;}
    .lgwchat-status-pill{margin-left:auto;display:inline-flex;align-items:center;gap:6px;font-size:12px;color:#7c5cff;background:#f1edff;border-radius:999px;padding:4px 11px;font-weight:500;}
    .lgwchat-status-pill[data-done="true"]{color:#0f9d6b;background:#e7f7f0;}
    .lgwchat-status-pill .lgwchat-dot{width:6px;height:6px;border-radius:50%;background:currentColor;}
    .lgwchat-status-pill[data-done="false"] .lgwchat-dot{animation:lgwchat-blink 1s infinite;}
    @keyframes lgwchat-blink{0%,100%{opacity:1;}50%{opacity:.25;}}

    .lgwchat-body{flex:1;min-height:0;display:flex;}
    .lgwchat-thread-wrap{flex:1;min-width:0;overflow-y:auto;}
    .lgwchat-thread{max-width:760px;margin:0 auto;padding:24px 28px 140px;}
    .lgwchat-msg{display:flex;gap:12px;margin-bottom:22px;}
    .lgwchat-msg--user{flex-direction:row-reverse;}
    .lgwchat-avatar{width:30px;height:30px;border-radius:9px;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;color:#fff;background:linear-gradient(135deg,#7c5cff,#5b8cff);}
    .lgwchat-msg--user .lgwchat-avatar{background:#e5e7eb;color:#6b7280;}
    .lgwchat-msg__body{min-width:0;max-width:calc(100% - 46px);}
    .lgwchat-name{font-size:12px;color:#9aa1ad;margin-bottom:5px;}
    .lgwchat-msg--user .lgwchat-name{text-align:right;}
    .lgwchat-bubble{font-size:14px;line-height:1.68;color:#1c1f27;background:#fff;border:1px solid #eceef1;border-radius:12px;padding:12px 15px;word-break:break-word;}
    .lgwchat-msg--user .lgwchat-bubble{background:#eef3ff;border-color:#dfe8ff;}
    .lgwchat-userchip{display:inline-flex;align-items:center;gap:6px;margin-bottom:8px;font-size:12px;color:#6d3bff;background:#f3efff;border:1px solid #e4dbff;border-radius:8px;padding:4px 9px;}
    .lgwchat-userchip svg{width:14px;height:14px;}

    /* 思维链 */
    .lgwchat-chain{border:1px solid #eceef1;background:#fbfbfd;border-radius:12px;overflow:hidden;margin-top:2px;}
    .lgwchat-chain__head{display:flex;align-items:center;gap:9px;padding:11px 14px;cursor:pointer;user-select:none;}
    .lgwchat-chain__head:hover{background:#f4f4f7;}
    .lgwchat-chain__spin{width:14px;height:14px;border-radius:50%;border:2px solid #d7d1ff;border-top-color:#7c5cff;animation:lgwchat-spin .8s linear infinite;flex-shrink:0;}
    @keyframes lgwchat-spin{to{transform:rotate(360deg);}}
    .lgwchat-chain__check{width:16px;height:16px;border-radius:50%;background:#0f9d6b;color:#fff;display:none;align-items:center;justify-content:center;font-size:10px;flex-shrink:0;}
    .lgwchat-chain[data-done="true"] .lgwchat-chain__spin{display:none;}
    .lgwchat-chain[data-done="true"] .lgwchat-chain__check{display:flex;}
    .lgwchat-chain__title{font-size:13px;font-weight:500;color:#3a3f4b;}
    .lgwchat-chain__toggle{margin-left:auto;color:#b6bcc6;transition:transform .2s;}
    .lgwchat-chain[data-open="false"] .lgwchat-chain__toggle{transform:rotate(-90deg);}
    .lgwchat-chain__list{padding:2px 14px 12px 15px;border-top:1px solid #f0f0f4;}
    .lgwchat-chain[data-open="false"] .lgwchat-chain__list{display:none;}
    .lgwchat-th{position:relative;padding:9px 0 9px 20px;font-size:13px;color:#4a5060;line-height:1.5;}
    .lgwchat-th::before{content:"";position:absolute;left:4px;top:15px;width:7px;height:7px;border-radius:50%;background:#c9cdd6;}
    .lgwchat-th::after{content:"";position:absolute;left:7px;top:22px;bottom:-9px;width:1px;background:#e9eaee;}
    .lgwchat-th:last-child::after{display:none;}
    .lgwchat-th[data-state="running"]::before{background:#7c5cff;box-shadow:0 0 0 3px #efeaff;}
    .lgwchat-th[data-state="done"]::before{background:#0f9d6b;}
    .lgwchat-th[data-state="wf"]{color:#3a3f4b;}
    .lgwchat-th[data-state="wf"]::before{background:#7c5cff;}
    .lgwchat-th__wf{display:flex;align-items:center;gap:8px;font-weight:600;color:#5b3ff0;}
    .lgwchat-th__wf .lgwchat-mini-spin{width:12px;height:12px;border-radius:50%;border:2px solid #d7d1ff;border-top-color:#7c5cff;animation:lgwchat-spin .8s linear infinite;flex-shrink:0;}
    .lgwchat-th[data-state="done"] .lgwchat-th__wf{color:#0f9d6b;}
    .lgwchat-th[data-state="done"] .lgwchat-mini-spin{display:none;}
    .lgwchat-th__sub{margin-top:4px;font-size:12px;color:#8a909c;padding-left:2px;}
    .lgwchat-th__decision{margin-top:5px;font-size:12px;color:#b26a00;background:#fff6e6;border:1px solid #ffe3ad;border-radius:7px;padding:5px 9px;display:inline-block;}

    /* 底部输入（装饰） */
    .lgwchat-composer{position:absolute;left:0;right:0;bottom:0;padding:14px 28px 18px;background:linear-gradient(180deg,rgba(245,246,248,0),#f5f6f8 32%);}
    .lgwchat-composer__box{max-width:760px;margin:0 auto;display:flex;align-items:flex-end;gap:8px;background:#fff;border:1px solid #e6e7ec;border-radius:14px;padding:10px 12px;box-shadow:0 6px 20px rgba(20,24,38,.06);}
    .lgwchat-composer__box textarea{flex:1;border:none;outline:none;resize:none;font-size:14px;font-family:inherit;color:#1c1f27;background:transparent;max-height:120px;line-height:1.5;}
    .lgwchat-send{width:34px;height:34px;border-radius:10px;border:none;background:#7c5cff;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0;}
    .lgwchat-send:hover{background:#6a48f0;}

    /* 右侧任务面板 */
    .lgwchat-side{width:340px;flex-shrink:0;border-left:1px solid #ececf0;background:#fff;overflow-y:auto;padding:16px 16px 40px;}
    .lgwchat-card{border:1px solid #eceef1;border-radius:14px;padding:14px 15px;margin-bottom:14px;background:#fff;}
    .lgwchat-card__head{display:flex;align-items:center;margin-bottom:12px;}
    .lgwchat-card__title{font-size:14px;font-weight:600;color:#1c1f27;}
    .lgwchat-card__count{margin-left:auto;font-size:12px;color:#9aa1ad;font-variant-numeric:tabular-nums;}
    .lgwchat-card__refresh{margin-left:auto;color:#b6bcc6;background:transparent;border:none;cursor:pointer;display:flex;}
    .lgwchat-card__refresh:hover{color:#7c5cff;}

    /* 任务项 */
    .lgwchat-task{border-radius:10px;}
    .lgwchat-task + .lgwchat-task{margin-top:2px;}
    .lgwchat-task__row{display:flex;align-items:flex-start;gap:10px;padding:9px 8px;border-radius:9px;cursor:default;}
    .lgwchat-task--wf .lgwchat-task__row{cursor:pointer;}
    .lgwchat-task--wf .lgwchat-task__row:hover{background:#f7f7fa;}
    .lgwchat-task__idx{width:20px;height:20px;flex-shrink:0;border-radius:50%;border:1px solid #d7dae1;color:#8a909c;font-size:12px;display:flex;align-items:center;justify-content:center;margin-top:1px;font-variant-numeric:tabular-nums;}
    .lgwchat-task[data-state="running"] .lgwchat-task__idx{border-color:#7c5cff;color:#7c5cff;background:#f3efff;}
    .lgwchat-task[data-state="done"] .lgwchat-task__idx{border-color:#0f9d6b;background:#0f9d6b;color:#fff;}
    .lgwchat-task__main{flex:1;min-width:0;}
    .lgwchat-task__title{font-size:13px;line-height:1.5;color:#31353f;}
    .lgwchat-task[data-state="done"] .lgwchat-task__title{color:#5b6270;}
    .lgwchat-task__tags{display:flex;align-items:center;gap:6px;margin-top:5px;}
    .lgwchat-task__wfbadge{display:inline-flex;align-items:center;gap:4px;font-size:11px;color:#6d3bff;background:#f3efff;border-radius:6px;padding:2px 7px;}
    .lgwchat-task__wfbadge svg{width:12px;height:12px;}
    .lgwchat-task__runtag{font-size:11px;color:#7c5cff;}
    .lgwchat-task[data-state="done"] .lgwchat-task__runtag{color:#0f9d6b;}
    .lgwchat-task__caret{margin-left:auto;color:#c2c7d0;flex-shrink:0;margin-top:2px;transition:transform .2s;}
    .lgwchat-task[data-open="true"] .lgwchat-task__caret{transform:rotate(90deg);}

    /* 工作流展开 */
    .lgwchat-wf{display:none;padding:4px 8px 12px 38px;}
    .lgwchat-task[data-open="true"] .lgwchat-wf{display:block;}
    .lgwchat-wf__hint{font-size:11px;color:#a6abb5;margin:2px 0 10px;line-height:1.5;}
    .lgwchat-node{position:relative;display:flex;gap:10px;padding-bottom:14px;}
    .lgwchat-node:last-child{padding-bottom:0;}
    .lgwchat-node__rail{position:absolute;left:11px;top:24px;bottom:0;width:2px;background:#eceef1;}
    .lgwchat-node:last-child .lgwchat-node__rail{display:none;}
    .lgwchat-node__dot{width:24px;height:24px;border-radius:50%;flex-shrink:0;background:#f0f1f4;border:2px solid #e2e4e9;display:flex;align-items:center;justify-content:center;color:#a6abb5;font-size:11px;z-index:1;}
    .lgwchat-node[data-state="running"] .lgwchat-node__dot{border-color:#7c5cff;color:#7c5cff;background:#f3efff;}
    .lgwchat-node[data-state="running"] .lgwchat-node__dot .lgwchat-nspin{width:11px;height:11px;border-radius:50%;border:2px solid #d7d1ff;border-top-color:#7c5cff;animation:lgwchat-spin .8s linear infinite;}
    .lgwchat-node[data-state="done"] .lgwchat-node__dot{border-color:#0f9d6b;background:#0f9d6b;color:#fff;}
    .lgwchat-node[data-state="skip"]{opacity:.42;}
    .lgwchat-node[data-state="skip"] .lgwchat-node__dot{border-style:dashed;}
    .lgwchat-node__box{flex:1;min-width:0;background:#fff;border:1px solid #eceef1;border-radius:10px;padding:9px 11px;}
    .lgwchat-node[data-state="running"] .lgwchat-node__box{border-color:#dcd4ff;box-shadow:0 0 0 3px #f3efff;}
    .lgwchat-node__top{display:flex;align-items:center;gap:7px;}
    .lgwchat-node__name{font-size:12.5px;font-weight:600;color:#2b2f38;flex:1;min-width:0;}
    .lgwchat-node__badge{font-size:10px;font-weight:700;color:#fff;border-radius:5px;padding:2px 6px;letter-spacing:.3px;flex-shrink:0;}
    .lgwchat-node__desc{font-size:11.5px;color:#8a909c;line-height:1.5;margin-top:4px;}

    /* 分支：竖向堆叠，各分支占满宽度 */
    .lgwchat-branches{display:flex;flex-direction:column;gap:10px;padding:2px 0 14px 12px;position:relative;}
    .lgwchat-branches::before{content:"";position:absolute;left:1px;top:-2px;bottom:14px;width:2px;background:#eceef1;}
    .lgwchat-branch{position:relative;border:1px solid #eceef1;border-radius:10px;padding:9px 10px;background:#fbfbfd;}
    .lgwchat-branch::before{content:"";position:absolute;left:-11px;top:18px;width:11px;height:2px;background:#eceef1;}
    .lgwchat-branch[data-taken="true"]{border-color:#ffe0b0;background:#fffaf1;}
    .lgwchat-branch[data-tone="ok"][data-taken="true"]{border-color:#bfe9d4;background:#f2fbf7;}
    .lgwchat-branch[data-taken="false"]{opacity:.62;border-style:dashed;}
    .lgwchat-branch[data-taken="false"] .lgwchat-branch__flag{background:#eef0f3;color:#8a909c;}
    .lgwchat-branch__head{display:flex;align-items:center;gap:8px;margin-bottom:9px;}
    .lgwchat-branch__flag{flex-shrink:0;font-size:11px;font-weight:600;border-radius:6px;padding:2px 8px;background:#fff2df;color:#b26a00;}
    .lgwchat-branch[data-tone="ok"] .lgwchat-branch__flag{background:#e7f7f0;color:#0f9d6b;}
    .lgwchat-branch__cond{flex:1;min-width:0;font-size:11px;color:#a6abb5;line-height:1.4;}
    .lgwchat-branch__status{flex-shrink:0;font-size:10.5px;font-weight:600;color:#0f9d6b;}
    .lgwchat-branch[data-taken="false"] .lgwchat-branch__status{color:#a6abb5;}
    .lgwchat-branch .lgwchat-node{padding-bottom:12px;}
    .lgwchat-branch .lgwchat-node:last-child{padding-bottom:0;}
    .lgwchat-branch .lgwchat-node__box{background:#fff;}

    /* 成果 / 用户上传 项 */
    .lgwchat-empty{font-size:12.5px;color:#b6bcc6;text-align:center;padding:14px 0;}
    .lgwchat-file{display:flex;align-items:center;gap:10px;padding:9px;border-radius:9px;}
    .lgwchat-file:hover{background:#f7f7fa;}
    .lgwchat-file__ic{width:30px;height:30px;border-radius:7px;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;color:#fff;}
    .lgwchat-file__main{flex:1;min-width:0;}
    .lgwchat-file__name{font-size:12.5px;color:#31353f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
    .lgwchat-file__meta{font-size:11px;color:#a6abb5;margin-top:2px;}
    .lgwchat-file__dl{color:#c2c7d0;background:transparent;border:none;cursor:pointer;display:flex;}
    .lgwchat-file__dl:hover{color:#7c5cff;}
    .lgwchat-fade{animation:lgwchat-fade .35s ease;}
    @keyframes lgwchat-fade{from{opacity:0;transform:translateY(6px);}to{opacity:1;transform:none;}}

    /* 任务项：可点击的工作流标签区（点击弹出详情） */
    .lgwchat-task__tags--click{display:inline-flex;cursor:pointer;padding:3px 6px;margin:2px 0 0 -6px;border-radius:8px;transition:background .15s;}
    .lgwchat-task__tags--click:hover{background:#f3efff;}
    .lgwchat-task__tags--click:hover .lgwchat-task__wfbadge{background:#e9e1ff;}

    /* 工作流详情弹窗 */
    .lgwchat-modal{position:absolute;inset:0;z-index:60;display:flex;align-items:center;justify-content:center;padding:28px;}
    .lgwchat-modal__mask{position:absolute;inset:0;background:rgba(20,24,38,.34);animation:lgwchat-fade .2s ease;}
    .lgwchat-modal__dialog{position:relative;width:540px;max-width:100%;max-height:84%;display:flex;flex-direction:column;background:#fff;border-radius:16px;box-shadow:0 24px 64px rgba(20,24,38,.3);overflow:hidden;animation:lgwchat-pop .22s cubic-bezier(.2,.8,.3,1);}
    @keyframes lgwchat-pop{from{opacity:0;transform:translateY(12px) scale(.98);}to{opacity:1;transform:none;}}
    .lgwchat-modal__head{display:flex;align-items:flex-start;gap:12px;padding:18px 20px 15px;border-bottom:1px solid #f0f0f4;flex-shrink:0;}
    .lgwchat-modal__ic{width:38px;height:38px;border-radius:10px;flex-shrink:0;background:#f3efff;color:#7c5cff;display:flex;align-items:center;justify-content:center;}
    .lgwchat-modal__ic svg{width:20px;height:20px;}
    .lgwchat-modal__htext{flex:1;min-width:0;}
    .lgwchat-modal__title{font-size:15px;font-weight:600;color:#1c1f27;line-height:1.4;}
    .lgwchat-modal__meta{margin-top:6px;font-size:12px;color:#9aa1ad;display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
    .lgwchat-modal__kind{display:inline-flex;align-items:center;gap:4px;color:#6d3bff;background:#f3efff;border-radius:6px;padding:2px 8px;}
    .lgwchat-modal__kind svg{width:12px;height:12px;}
    .lgwchat-modal__close{flex-shrink:0;width:30px;height:30px;border-radius:8px;border:none;background:transparent;color:#9aa1ad;cursor:pointer;display:flex;align-items:center;justify-content:center;}
    .lgwchat-modal__close:hover{background:#f0f1f4;color:#1c1f27;}
    .lgwchat-modal__body{padding:18px 20px 22px;overflow-y:auto;}
    .lgwchat-modal__body .lgwchat-wf{display:block;padding:0;}
    .lgwchat-modal__body .lgwchat-wf__hint{margin:0 0 14px;}
  