        /* AI海外获客：执行流沿用 AI 任务卡，结果沿用 AI 选品宽屏框架 */
        body.lead-results-mode .app {
            grid-template-columns: minmax(260px, 20%) minmax(0, 80%);
        }

        body.lead-results-mode .message.user .bubble {
            max-width: 78%;
        }

        body.lead-results-mode .lead-results-panel {
            position: relative;
            grid-template-rows: auto minmax(0, 1fr) auto;
            gap: 12px;
            padding: 28px 26px 22px;
        }

        .lead-acquisition-progress .selection-assistant-title::before {
            background: linear-gradient(135deg, #ff3d23, #ff9a41);
        }

        .lead-hs-inline {
            display: grid;
            gap: 9px;
            margin-top: 2px;
        }

        .lead-hs-inline-copy {
            color: #646b77;
            font-size: 12px;
            line-height: 1.6;
        }

        .lead-hs-inline-options {
            display: grid;
            gap: 7px;
        }

        .lead-hs-inline-option {
            display: grid;
            grid-template-columns: 78px minmax(0, 1fr) auto;
            align-items: center;
            gap: 10px;
            min-height: 38px;
            padding: 7px 10px;
            border: 1px solid #e5e8ef;
            border-radius: 8px;
            background: #fff;
            color: #3e444e;
            text-align: left;
            cursor: pointer;
        }

        .lead-hs-inline-option:hover {
            border-color: #ffb9a3;
            background: #fff9f6;
        }

        .lead-hs-inline-option strong {
            color: #e9582c;
            font-size: 12px;
        }

        .lead-hs-inline-option span {
            overflow: hidden;
            font-size: 12px;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .lead-hs-inline-option small {
            color: #949aa5;
            font-size: 10px;
            white-space: nowrap;
        }

        .lead-hs-inline-option.is-selected {
            border-color: #ff8b68;
            background: #fff5f1;
        }

        .lead-hs-inline-option:disabled {
            cursor: default;
        }

        .lead-hs-inline-option:disabled:not(.is-selected) {
            opacity: 0.46;
        }

        .lead-execution-preview {
            display: grid;
            gap: 7px;
            margin: 10px 0 12px;
        }

        .lead-execution-preview-item {
            min-width: 0;
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            gap: 12px;
            align-items: center;
            padding: 8px 10px;
            border: 1px solid #eef0f4;
            border-radius: 9px;
            background: #fbfcff;
        }

        .lead-execution-preview-item strong,
        .lead-execution-preview-item span {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .lead-execution-preview-item strong {
            color: #30343b;
            font-size: 12px;
        }

        .lead-execution-preview-item span {
            color: #8a9099;
            font-size: 11px;
        }

        .lead-results-heading {
            display: flex;
            align-items: center;
            gap: 9px;
        }

        .lead-results-heading h2 {
            margin: 0;
        }

        .lead-results-head-copy {
            margin-top: 14px !important;
            font-weight: 500 !important;
        }

        .lead-transaction-table {
            min-width: 1500px;
        }

        .lead-transaction-table tbody tr {
            cursor: pointer;
        }

        .lead-transaction-table tbody tr:hover td {
            background: #fff9f6;
        }

        .lead-transaction-table td:nth-child(1) {
            width: 58px;
            color: #8b919c;
            text-align: center;
        }

        .lead-transaction-table th:nth-child(1) {
            text-align: center;
        }

        .lead-transaction-table td:nth-child(2),
        .lead-transaction-table td:nth-child(3) {
            min-width: 220px;
            color: #30343b;
            font-weight: 700;
        }

        .lead-transaction-table td:nth-child(4),
        .lead-transaction-table td:nth-child(5) {
            min-width: 116px;
        }

        .lead-transaction-table td:nth-child(6) {
            min-width: 210px;
        }

        .lead-transaction-table td:nth-child(7) {
            max-width: 300px;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .lead-transaction-table td:nth-child(8) {
            min-width: 138px;
        }

        .lead-transaction-table td:nth-child(9) {
            min-width: 190px;
        }

        .lead-transaction-table a {
            color: #3370c4;
            text-decoration: none;
        }

        .lead-result-meta {
            color: #9298a3;
            font-size: 12px;
        }

        .lead-selected-company {
            max-width: 220px;
            overflow: hidden;
            color: #4f5662;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .lead-ai-result-card {
            display: grid;
            gap: 8px;
            padding: 11px 12px;
            border: 1px solid #e6e9ef;
            border-radius: 12px;
            background: linear-gradient(135deg, #fff, #fcfbff);
            white-space: normal;
        }

        .lead-ai-result-head {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
        }

        .lead-ai-result-head h3 {
            margin: 0;
            color: #252a32;
            font-size: 15px;
        }

        .lead-ai-result-head span {
            color: #e9582c;
            font-size: 11px;
            font-weight: 700;
        }

        .lead-ai-result-card > p {
            margin: 0;
            color: #68707c;
            font-size: 12px;
            line-height: 1.5;
        }

        .lead-ai-result-list {
            display: grid;
            gap: 4px;
            margin: 0;
            padding: 0;
            list-style: none;
        }

        .lead-ai-result-list li {
            padding: 7px 9px;
            border-radius: 8px;
            background: #f7f8fa;
            color: #555d68;
            font-size: 12px;
            line-height: 1.45;
        }

        .lead-ai-result-card .lead-email-content {
            margin-top: 0;
        }

        .lead-ai-result-card .lead-poster-preview {
            margin-top: 0;
        }

        .lead-ai-result-card .lead-copy-button {
            margin-top: 0;
        }

        .lead-generated-markdown {
            display: grid;
            gap: 7px;
            padding: 10px 11px;
            border-radius: 9px;
            background: #f7f8fa;
            color: #4b525e;
            font-size: 12px;
            line-height: 1.65;
        }

        .lead-generated-markdown h3,
        .lead-generated-markdown h4,
        .lead-generated-markdown p,
        .lead-generated-markdown ul,
        .lead-generated-markdown blockquote {
            margin: 0;
        }

        .lead-generated-markdown h3 {
            color: #252a32;
            font-size: 14px;
        }

        .lead-generated-markdown h4 {
            color: #343a45;
            font-size: 13px;
        }

        .lead-generated-markdown ul {
            display: grid;
            gap: 4px;
            padding-left: 18px;
        }

        .lead-generated-markdown blockquote {
            padding: 7px 9px;
            border-left: 3px solid #7467ff;
            border-radius: 0 7px 7px 0;
            background: #f2f0ff;
            color: #555d68;
        }

        .lead-generated-markdown table {
            width: 100%;
            border-spacing: 0;
            overflow: hidden;
            border: 1px solid #e4e7ed;
            border-radius: 8px;
            font-size: 11px;
        }

        .lead-generated-markdown th,
        .lead-generated-markdown td {
            padding: 6px 7px;
            border-bottom: 1px solid #eceef2;
            text-align: left;
            vertical-align: top;
        }

        .lead-generated-markdown th {
            background: #f1f2f6;
            color: #343a45;
        }

        .lead-generated-markdown tr:last-child td {
            border-bottom: 0;
        }

        .lead-product-options {
            display: grid;
            gap: 8px;
        }

        .lead-product-option {
            display: grid;
            grid-template-columns: 18px 48px minmax(0, 1fr);
            align-items: center;
            gap: 9px;
            padding: 8px;
            border: 1px solid #e6e9ef;
            border-radius: 9px;
            cursor: pointer;
        }

        .lead-product-option:has(input:checked) {
            border-color: #7467ff;
            background: #f8f7ff;
        }

        .lead-product-option img {
            width: 48px;
            height: 48px;
            border-radius: 8px;
            object-fit: cover;
        }

        .lead-product-option strong,
        .lead-product-option span {
            display: block;
        }

        .lead-product-option strong {
            color: #2f343d;
            font-size: 12px;
        }

        .lead-product-option span {
            margin-top: 3px;
            color: #7a818c;
            font-size: 11px;
            line-height: 1.4;
        }

        .lead-email-config-card {
            gap: 10px;
        }

        .lead-email-composer {
            position: relative;
            display: grid;
            flex: 1 1 auto;
            min-width: 0;
            gap: 8px;
        }

        .lead-email-composer[hidden] {
            display: none;
        }

        .composer-input-row.lead-email-composer-mode {
            min-height: 104px;
            padding-top: 10px;
        }

        .lead-email-composer .lead-email-preset-editor {
            min-height: 80px;
            padding: 2px 0;
            border: 0;
            border-radius: 0;
            background: transparent;
            font-size: 14px;
            line-height: 2.05;
        }

        .lead-email-composer .lead-email-preset-editor:hover,
        .lead-email-composer .lead-email-preset-editor:focus {
            border: 0;
            background: transparent;
            box-shadow: none;
        }

        .lead-email-composer .lead-email-slot-menu {
            top: auto;
            bottom: calc(100% + 6px);
        }

        .lead-email-composer .lead-email-product-picker {
            position: absolute;
            right: 0;
            bottom: calc(100% + 10px);
            left: 0;
            z-index: 28;
            max-height: 250px;
            margin: 0;
            box-shadow: 0 18px 42px rgba(31, 40, 64, 0.16);
        }

        .lead-email-composer .lead-email-custom-product {
            grid-template-columns: 116px minmax(0, 1fr);
            margin: 0;
        }

        .lead-email-composer-hint {
            color: #8d93a0;
            font-size: 10px;
            line-height: 1.4;
        }

        .lead-email-composer-hint strong {
            color: #645bda;
        }

        .lead-email-composer-ready {
            margin: 0;
            color: #59616f;
            font-size: 12px;
            line-height: 1.65;
        }

        .lead-profile-summary-actions {
            display: flex;
            justify-content: flex-end;
            margin-top: 2px;
        }

        .lead-profile-drawer-layer {
            position: fixed;
            inset: 0;
            z-index: 10040;
            visibility: hidden;
            background: rgba(21, 24, 34, 0);
            pointer-events: none;
            transition: visibility 0s linear 220ms, background 180ms ease;
        }

        .lead-profile-drawer-layer.visible {
            visibility: visible;
            background: rgba(21, 24, 34, 0.34);
            pointer-events: auto;
            transition-delay: 0s;
        }

        .lead-profile-drawer {
            position: absolute;
            top: 0;
            right: 0;
            bottom: 0;
            width: min(720px, calc(100vw - 48px));
            display: grid;
            grid-template-rows: auto minmax(0, 1fr);
            border-left: 1px solid #e4e7ef;
            background: #fff;
            box-shadow: -24px 0 72px rgba(25, 31, 46, 0.18);
            transform: translateX(102%);
            transition: transform 220ms ease;
        }

        .lead-profile-drawer-layer.visible .lead-profile-drawer {
            transform: translateX(0);
        }

        .lead-profile-drawer-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 18px;
            padding: 20px 24px 16px;
            border-bottom: 1px solid #eceef3;
        }

        .lead-profile-drawer-header h2 {
            margin: 0;
            color: #262b35;
            font-size: 20px;
            line-height: 1.35;
        }

        .lead-profile-drawer-header p {
            margin: 5px 0 0;
            color: #858c98;
            font-size: 12px;
        }

        .lead-profile-drawer-close {
            min-height: 32px;
            padding: 5px 11px;
            border: 1px solid #dfe2e8;
            border-radius: 8px;
            background: #fff;
            color: #5a616d;
            font: inherit;
            font-size: 12px;
            cursor: pointer;
        }

        .lead-profile-drawer-body {
            overflow: auto;
            padding: 20px 24px 36px;
            background: #f7f8fb;
        }

        .lead-profile-drawer-body .lead-generated-markdown {
            max-width: none;
            padding: 18px 20px;
            border: 1px solid #e5e8ee;
            border-radius: 12px;
            background: #fff;
        }

        .lead-email-agent-guide {
            padding: 9px 10px;
            border: 1px solid #e8eaf3;
            border-radius: 9px;
            background: #f8f9ff;
            color: #5f6673;
            font-size: 12px;
            line-height: 1.55;
        }

        .lead-email-preset-shell {
            position: relative;
            padding: 11px;
            border: 1px solid #dfe3ff;
            border-radius: 11px;
            background: linear-gradient(145deg, #fff, #faf9ff);
        }

        .lead-email-preset-label {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            margin-bottom: 7px;
            color: #858c99;
            font-size: 10px;
        }

        .lead-email-preset-label strong {
            color: #6d63dd;
            font-size: 11px;
        }

        .lead-email-preset-editor {
            min-height: 58px;
            padding: 7px 8px;
            border: 1px solid transparent;
            border-radius: 8px;
            color: #343944;
            font-size: 12px;
            line-height: 2.15;
            outline: none;
            white-space: normal;
        }

        .lead-email-preset-editor:hover {
            border-color: #ebe9ff;
            background: #fff;
        }

        .lead-email-preset-editor:focus {
            border-color: #8b83ff;
            background: #fff;
            box-shadow: 0 0 0 3px rgba(116, 103, 255, 0.09);
        }

        .lead-email-inline-slot {
            position: relative;
            display: inline-flex;
            vertical-align: middle;
            margin: 0 3px;
        }

        .lead-email-slot-button {
            display: inline-flex;
            align-items: center;
            max-width: 210px;
            min-height: 26px;
            padding: 2px 9px;
            overflow: hidden;
            border: 1px solid #8b83ff;
            border-radius: 7px;
            background: #f2f0ff;
            color: #5f56d6;
            font: inherit;
            font-size: 11px;
            font-weight: 700;
            text-overflow: ellipsis;
            white-space: nowrap;
            cursor: pointer;
        }

        .lead-email-slot-button::after {
            content: "";
            width: 5px;
            height: 5px;
            margin-left: 7px;
            border-right: 1.5px solid currentColor;
            border-bottom: 1.5px solid currentColor;
            transform: translateY(-1px) rotate(45deg);
        }

        .lead-email-slot-button:hover,
        .lead-email-slot-button[aria-expanded="true"] {
            border-color: #6f64f1;
            background: #eae7ff;
        }

        .lead-email-slot-menu {
            position: absolute;
            top: calc(100% + 6px);
            left: 0;
            z-index: 25;
            min-width: 148px;
            padding: 5px;
            border: 1px solid #e1e4ec;
            border-radius: 9px;
            background: #fff;
            box-shadow: 0 12px 28px rgba(38, 43, 55, 0.14);
        }

        .lead-email-slot-menu[hidden] {
            display: none;
        }

        .lead-email-slot-option {
            width: 100%;
            min-height: 30px;
            padding: 5px 8px;
            border: 0;
            border-radius: 6px;
            background: transparent;
            color: #4c535f;
            font: inherit;
            font-size: 11px;
            text-align: left;
            cursor: pointer;
        }

        .lead-email-slot-option:hover,
        .lead-email-slot-option.is-selected {
            background: #f2f0ff;
            color: #5f56d6;
        }

        .lead-email-product-picker {
            display: grid;
            gap: 8px;
            margin-top: 8px;
            padding: 8px;
            border: 1px solid #eceef4;
            border-radius: 9px;
            background: #fff;
        }

        .lead-email-product-picker[hidden],
        .lead-email-custom-product[hidden] {
            display: none;
        }

        .lead-email-product-picker .lead-product-options {
            max-height: 186px;
            overflow: auto;
        }

        .lead-email-custom-product {
            display: grid;
            grid-template-columns: 132px minmax(0, 1fr);
            gap: 8px;
            margin-top: 8px;
        }

        .lead-email-upload {
            display: flex;
            min-height: 54px;
            align-items: center;
            justify-content: center;
            padding: 8px;
            border: 1px dashed #9a93ff;
            border-radius: 9px;
            background: #f8f7ff;
            color: #655ddd;
            font-size: 11px;
            text-align: center;
            cursor: pointer;
        }

        .lead-email-custom-description,
        .lead-email-extra-requirement {
            width: 100%;
            min-height: 54px;
            padding: 8px 9px;
            resize: vertical;
            border: 1px solid #e2e5ec;
            border-radius: 9px;
            background: #fff;
            color: #3f4652;
            font: inherit;
            font-size: 11px;
            line-height: 1.5;
            outline: none;
        }

        .lead-email-extra-requirement {
            min-height: 42px;
            resize: none;
        }

        .lead-email-custom-description:focus,
        .lead-email-extra-requirement:focus {
            border-color: #8b83ff;
            box-shadow: 0 0 0 3px rgba(116, 103, 255, 0.08);
        }

        .lead-email-send-preview {
            padding: 8px 9px;
            border-radius: 8px;
            background: #f6f7fb;
            color: #626976;
            font-size: 11px;
            line-height: 1.5;
        }

        .lead-email-send-preview strong {
            color: #3d4350;
        }

        .lead-email-config-actions {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
        }

        .lead-email-config-note {
            color: #969ca6;
            font-size: 10px;
        }

        .lead-email-result-card {
            gap: 10px;
        }

        .lead-email-result-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }

        .lead-email-result-meta span {
            padding: 3px 7px;
            border-radius: 999px;
            background: #f2f3f8;
            color: #6f7682;
            font-size: 10px;
        }

        .lead-email-markdown-card,
        .lead-email-media-card {
            overflow: hidden;
            border: 1px solid #e4e7ef;
            border-radius: 10px;
            background: #fff;
        }

        .lead-email-markdown-head,
        .lead-email-media-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            padding: 8px 10px;
            border-bottom: 1px solid #eceef3;
        }

        .lead-email-markdown-head strong,
        .lead-email-media-head strong {
            color: #343a45;
            font-size: 12px;
        }

        .lead-email-markdown-badge {
            padding: 3px 7px;
            border-radius: 999px;
            background: #eeecff;
            color: #6259d9;
            font-size: 9px;
            font-weight: 700;
        }

        .lead-email-result-actions,
        .lead-email-media-actions {
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .lead-email-text-action {
            min-height: 25px;
            padding: 3px 7px;
            border: 1px solid #e0e3e9;
            border-radius: 6px;
            background: #fff;
            color: #616875;
            font: inherit;
            font-size: 10px;
            cursor: pointer;
        }

        .lead-email-text-action:hover {
            border-color: #8b83ff;
            color: #6158d9;
        }

        .lead-email-markdown-card .lead-generated-markdown {
            border-radius: 0;
            background: #fff;
        }

        .lead-email-markdown-card .lead-generated-markdown[contenteditable="true"] {
            outline: 2px solid rgba(116, 103, 255, 0.3);
            outline-offset: -3px;
            background: #fdfcff;
        }

        .lead-email-image-frame {
            position: relative;
            display: grid;
            min-height: 132px;
            place-items: center;
            overflow: hidden;
            margin: 9px;
            border: 1px dashed #9a93ff;
            border-radius: 9px;
            background: linear-gradient(145deg, #f7f6ff, #fbfaff);
        }

        .lead-email-image-frame img {
            width: 100%;
            max-height: 230px;
            display: block;
            object-fit: cover;
        }

        .lead-email-image-placeholder {
            display: grid;
            gap: 5px;
            padding: 18px;
            color: #7f778f;
            text-align: center;
        }

        .lead-email-image-placeholder strong {
            color: #5d5674;
            font-size: 12px;
        }

        .lead-email-image-placeholder span {
            font-size: 10px;
        }

        .lead-email-preview-modal {
            position: fixed;
            inset: 0;
            z-index: 10050;
            display: grid;
            place-items: center;
            padding: 28px;
            background: rgba(20, 24, 36, 0.72);
            backdrop-filter: blur(5px);
        }

        .lead-email-preview-modal[hidden] {
            display: none;
        }

        .lead-email-preview-dialog {
            position: relative;
            width: min(760px, 92vw);
            max-height: 88vh;
            overflow: auto;
            padding: 16px;
            border: 1px solid rgba(255, 255, 255, 0.22);
            border-radius: 16px;
            background: #fff;
            box-shadow: 0 24px 80px rgba(8, 10, 20, 0.34);
        }

        .lead-email-preview-dialog img {
            display: block;
            width: 100%;
            height: auto;
            border-radius: 10px;
        }

        .lead-email-preview-close {
            position: absolute;
            top: 8px;
            right: 8px;
            display: grid;
            width: 32px;
            height: 32px;
            place-items: center;
            border: 1px solid #e1e4eb;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.94);
            color: #4f5663;
            font: inherit;
            font-size: 18px;
            cursor: pointer;
        }

        .lead-email-image {
            margin: 0;
            overflow: hidden;
            border: 1px solid #e6e9ef;
            border-radius: 10px;
            background: #f7f8fa;
        }

        .lead-email-image img {
            display: block;
            width: 100%;
            max-height: 260px;
            object-fit: cover;
        }

        .lead-email-image figcaption {
            padding: 7px 9px;
            color: #7a818c;
            font-size: 11px;
        }

        @media (max-width: 1180px) {
            body.lead-results-mode .app {
                grid-template-columns: minmax(260px, 24%) minmax(0, 76%);
            }
        }
