        /* Supplier-center background from the Figma frame */
        body::before,
        body::after {
            display: none;
        }

        body {
            background: #f5f6fa;
        }

        .market-shell {
            position: relative;
            z-index: 0;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            overflow: visible;
            background: #f5f6fa;
            color: #333;
            pointer-events: none;
        }

        .market-top {
            flex: 0 0 64px;
            height: 64px;
            background: #ff3131;
            color: #fff;
        }

        .market-top-inner,
        .market-body,
        .market-footer-inner {
            width: min(1440px, calc(100vw - 96px));
            margin: 0 auto;
        }

        .market-top-inner {
            height: 64px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .market-brand-area {
            display: flex;
            align-items: center;
            align-self: stretch;
            gap: 18px;
        }

        .portal-switcher {
            position: relative;
            z-index: 24;
            align-self: stretch;
            display: grid;
            align-content: center;
            gap: 2px;
            pointer-events: auto;
        }

        .portal-switch-button {
            min-width: 112px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 7px;
            padding: 5px 9px;
            border: 1px solid rgba(255, 255, 255, 0.5);
            border-radius: 5px;
            background: rgba(172, 23, 28, 0.24);
            color: #fff;
            font-size: 13px;
            font-weight: 800;
            line-height: 1.2;
            cursor: pointer;
            transition: background 160ms ease, border-color 160ms ease;
        }

        .portal-switch-button:hover,
        .portal-switch-button[aria-expanded="true"] {
            border-color: #fff;
            background: rgba(133, 16, 20, 0.38);
        }

        .portal-switch-icon {
            width: 14px;
            height: 12px;
            display: grid;
            align-content: space-between;
        }

        .portal-switch-icon span {
            height: 1.5px;
            border-radius: 999px;
            background: currentColor;
        }

        .portal-switch-caret {
            font-size: 10px;
            transform: translateY(-1px);
        }

        .portal-switcher-hint {
            padding-left: 1px;
            color: rgba(255, 255, 255, 0.88);
            font-size: 11px;
            line-height: 1.2;
            white-space: nowrap;
        }

        .portal-switch-menu {
            position: absolute;
            top: calc(100% - 3px);
            left: 0;
            z-index: 30;
            width: 220px;
            padding: 8px;
            border: 1px solid #e4e7ec;
            border-radius: 8px;
            background: #fff;
            box-shadow: 0 14px 30px rgba(30, 38, 54, 0.18);
        }

        .portal-switch-option {
            width: 100%;
            display: grid;
            gap: 3px;
            padding: 10px 12px;
            border-radius: 5px;
            background: transparent;
            color: #303744;
            text-align: left;
            cursor: pointer;
        }

        .portal-switch-option:hover,
        .portal-switch-option[aria-checked="true"] {
            background: #fff1f1;
            color: #e72b2e;
        }

        .portal-switch-option strong {
            font-size: 14px;
        }

        .portal-switch-option span {
            color: #858c98;
            font-size: 12px;
            line-height: 1.35;
        }

        .market-logo {
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 900;
            letter-spacing: -0.4px;
        }

        .market-logo-burst {
            width: 36px;
            height: 36px;
            display: grid;
            place-items: center;
            border-radius: 50%;
            background:
                repeating-conic-gradient(from 0deg, #fff 0deg 7deg, transparent 7deg 13deg),
                #ff3131;
            color: #ff3131;
            font-size: 10px;
            box-shadow: inset 0 0 0 9px #fff;
        }

        .market-logo-title {
            display: grid;
            line-height: 1.05;
        }

        .market-logo-title strong {
            font-size: 19px;
        }

        .market-logo-title span {
            font-size: 12px;
            opacity: 0.92;
        }

        .market-top-links {
            display: flex;
            align-items: center;
            gap: 32px;
            font-size: 13px;
        }

        .market-body {
            position: relative;
            flex: 1 0 auto;
            display: grid;
            grid-template-columns: 168px minmax(760px, 1fr);
            gap: 24px;
            padding-top: 34px;
            padding-bottom: 40px;
        }

        .market-crumb {
            position: absolute;
            left: 0;
            top: 10px;
            display: flex;
            gap: 12px;
            color: #757b86;
            font-size: 13px;
        }

        .market-crumb strong {
            color: #ff3131;
            font-weight: 600;
        }

        .market-nav {
            min-height: 780px;
            padding: 22px 0;
            border-radius: 2px;
            background: #fff;
            box-shadow: 0 10px 28px rgba(32, 41, 59, 0.04);
        }

        .market-nav h3 {
            margin: 0 22px 18px;
            padding-left: 12px;
            border-left: 4px solid #ff3131;
            color: #333;
            font-size: 20px;
            line-height: 1.2;
        }

        .market-nav-group + .market-nav-group {
            margin-top: 24px;
            padding-top: 22px;
            border-top: 1px solid #eef0f4;
        }

        .market-nav ul {
            display: grid;
            gap: 10px;
            margin: 0;
            padding: 0 18px;
            list-style: none;
        }

        .market-nav li {
            display: flex;
            align-items: center;
            gap: 10px;
            min-height: 36px;
            color: #5f6673;
            font-size: 14px;
        }

        .market-nav li::before {
            content: "";
            width: 16px;
            height: 16px;
            border-radius: 4px;
            background: linear-gradient(135deg, #737b88, #c9ced8);
            box-shadow: inset 0 0 0 3px rgba(255,255,255,0.55);
        }

        .market-main {
            min-width: 0;
        }

        .market-hero {
            display: grid;
            grid-template-columns: 1.2fr 0.9fr 0.9fr;
            gap: 16px;
            margin-bottom: 18px;
        }

        .market-banner {
            min-height: 96px;
            position: relative;
            overflow: hidden;
            border-radius: 8px;
            background:
                radial-gradient(circle at 86% 42%, rgba(255, 187, 71, 0.45), transparent 24%),
                linear-gradient(105deg, #ffece5 0%, #fff8ef 58%, #fff 100%);
            box-shadow: 0 8px 18px rgba(44, 55, 82, 0.05);
        }

        .market-banner:first-child {
            background:
                radial-gradient(circle at 82% 45%, rgba(255, 92, 70, 0.28), transparent 28%),
                linear-gradient(105deg, #fff0ed 0%, #fff 55%, #fff8f2 100%);
        }

        .market-banner strong {
            display: block;
            margin: 22px 0 6px 28px;
            color: #ff3131;
            font-size: 28px;
            line-height: 1;
        }

        .market-banner span {
            margin-left: 28px;
            color: #5c6572;
            font-size: 16px;
            font-weight: 700;
        }

        .market-banner::after {
            content: "";
            position: absolute;
            right: 24px;
            top: 18px;
            width: 58px;
            height: 58px;
            border-radius: 18px;
            background:
                radial-gradient(circle, #fff 0 25%, transparent 26%),
                linear-gradient(135deg, #ff3131, #ffb034);
            box-shadow: 0 8px 20px rgba(255, 49, 49, 0.18);
            transform: rotate(-10deg);
        }

        .market-stats {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 16px;
            margin-bottom: 28px;
        }

        .market-stat {
            min-height: 70px;
            display: grid;
            place-items: center;
            border-radius: 8px;
            background: #fff;
            box-shadow: 0 8px 18px rgba(44, 55, 82, 0.04);
            color: #68707d;
            font-size: 13px;
        }

        .market-stat strong {
            display: block;
            margin-top: 6px;
            color: #222;
            font-size: 20px;
        }

        .market-section {
            margin-bottom: 26px;
        }

        .market-section h4 {
            margin: 0 0 14px;
            color: #333;
            font-size: 18px;
        }

        .market-card-row {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 18px;
        }

        .market-card {
            min-height: 92px;
            display: grid;
            grid-template-columns: 44px minmax(0, 1fr) auto;
            align-items: center;
            gap: 14px;
            padding: 20px;
            border-radius: 8px;
            background: #fff;
            box-shadow: 0 8px 20px rgba(44, 55, 82, 0.04);
        }

        .market-card-icon {
            width: 44px;
            height: 44px;
            display: grid;
            place-items: center;
            border-radius: 50%;
            background: linear-gradient(135deg, #fff0f0, #ff3131);
            color: #fff;
            font-weight: 900;
        }

        .market-card strong {
            display: block;
            color: #333;
            font-size: 15px;
        }

        .market-card span {
            display: block;
            margin-top: 6px;
            color: #68707d;
            font-size: 13px;
            line-height: 1.35;
        }

        .market-card em {
            color: #ff3131;
            font-size: 13px;
            font-style: normal;
            font-weight: 700;
        }

        .market-service-strip {
            position: static;
            flex: 0 0 72px;
            height: 72px;
            display: flex;
            justify-content: center;
            gap: min(18vw, 240px);
            align-items: center;
            background: rgba(247, 248, 251, 0.96);
            border-top: 1px solid #eef0f5;
            border-bottom: 1px solid #eef0f5;
            color: #59616f;
            font-size: 14px;
        }

        .market-service-strip span::before {
            content: "";
            display: inline-block;
            width: 34px;
            height: 34px;
            margin-right: 10px;
            vertical-align: middle;
            border-radius: 50%;
            background: linear-gradient(135deg, #ff3131, #ffb1b1);
        }

        .market-footer {
            position: static;
            flex: 0 0 104px;
            height: 104px;
            background: #fff;
            border-top: 1px solid #eef0f5;
        }

        .market-footer-inner {
            height: 100%;
            display: flex;
            align-items: center;
            gap: 70px;
            color: #4d5563;
            font-size: 13px;
        }

        .market-footer-links {
            display: flex;
            gap: 30px;
            margin-bottom: 14px;
            color: #333;
            font-weight: 700;
        }

        .task-card {
            width: 100%;
            display: grid;
            gap: 14px;
            padding: 0;
            border: 0;
            background: transparent;
        }

        .task-intro {
            display: grid;
            grid-template-columns: 57px minmax(0, 1fr);
            gap: 10px;
            min-height: 100px;
            padding: 18px 14px;
            border: 1px solid #a9b0bd;
            border-radius: 8px;
            background: #f4f8ff;
        }

        .task-mascot {
            width: 57px;
            height: 57px;
            display: grid;
            place-items: center;
            border-radius: 16px;
            background:
                radial-gradient(circle at 62% 34%, #ffd24a 0 9px, transparent 10px),
                radial-gradient(circle at 40% 48%, #236cff 0 7px, transparent 8px),
                linear-gradient(135deg, #ff813d, #ff3131);
            color: #fff;
            font-size: 22px;
            font-weight: 900;
            box-shadow: 0 10px 18px rgba(255, 49, 49, 0.16);
        }

        .task-intro strong {
            display: block;
            margin-bottom: 6px;
            color: #333;
            font-size: 16px;
        }

        .task-intro span {
            color: #333;
            font-size: 14px;
            line-height: 1.45;
        }

        .thinking-status {
            display: flex;
            align-items: center;
            gap: 8px;
            min-height: 24px;
            color: #666;
            font-size: 16px;
        }

        .thinking-status::before {
            content: "";
            width: 18px;
            height: 18px;
            border-radius: 6px;
            background:
                linear-gradient(45deg, transparent 38%, #8d5bff 39% 61%, transparent 62%),
                linear-gradient(-45deg, transparent 38%, #ff4fb2 39% 61%, transparent 62%);
            animation: taskPulse 1.15s ease-in-out infinite;
        }

        .thinking-status::after {
            content: "⌄";
            color: #9aa0aa;
            font-size: 14px;
        }

        @keyframes taskPulse {
            0%, 100% { transform: scale(0.86) rotate(0deg); opacity: 0.75; }
            50% { transform: scale(1.08) rotate(18deg); opacity: 1; }
        }

        .task-steps {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
            gap: 4px 20px;
            padding-left: 28px;
        }

        .task-step {
            position: relative;
            min-height: 28px;
            display: flex;
            align-items: center;
            color: #666;
            font-size: 14px;
            line-height: 1.35;
        }

        .task-step::before {
            content: "";
            position: absolute;
            left: -28px;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: #e5e7ec;
            box-shadow: inset 0 0 0 5px #fff;
        }

        .task-step.done::before {
            content: "✓";
            display: grid;
            place-items: center;
            background: #22b66f;
            color: #fff;
            box-shadow: none;
            font-size: 12px;
            font-weight: 900;
        }

        .task-step.active::before {
            border: 2px solid #22b66f;
            border-top-color: transparent;
            background: #fff;
            box-shadow: none;
            animation: taskSpin 0.8s linear infinite;
        }

        @keyframes taskSpin {
            to { transform: rotate(360deg); }
        }

        .task-detail-link {
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            align-items: center;
            gap: 16px;
            color: #fa3e3e;
            font-size: 14px;
        }

        .task-detail-link::before,
        .task-detail-link::after {
            content: "";
            height: 1px;
            background: #eef0f5;
        }

        .task-detail-link button {
            height: 32px;
            padding: 0 18px;
            border: 1px solid #ffdddd;
            border-radius: 999px;
            background: #fff;
            color: #fa3e3e;
            cursor: default;
        }

        .task-result-panel {
            max-height: 372px;
            overflow-y: auto;
            padding-right: 4px;
            color: #333;
            font-size: 14px;
            line-height: 1.55;
        }

        .task-result-panel::-webkit-scrollbar {
            width: 6px;
        }

        .task-result-panel::-webkit-scrollbar-thumb {
            border-radius: 999px;
            background: #d7dae2;
        }

        .task-section-title {
            margin: 0 0 10px;
            font-size: 14px;
            font-weight: 800;
        }

        .task-result-panel p {
            margin: 0 0 8px;
        }

        .reasoning-body.task-log {
            max-height: 68px;
            overflow: auto;
            padding: 10px 12px;
            border-radius: 10px;
            background: rgba(247, 248, 251, 0.78);
            color: #8a8f99;
            font-size: 12px;
        }

        .reasoning-body.task-log:empty {
            display: none;
        }

        .attachment-preview {
            display: none;
            align-items: center;
            gap: 10px;
            margin: 0 16px 12px;
            padding: 10px;
            border: 1px solid #edf0f5;
            border-radius: 12px;
            background: #fafbff;
        }

        .attachment-preview.visible {
            display: flex;
        }

        .composer-flow-tag {
            display: none;
            align-items: center;
            flex: 0 0 auto;
            gap: 5px;
            max-width: 150px;
            margin-top: 1px;
            padding: 3px 8px;
            border: 1px solid #eadcff;
            border-radius: 8px;
            background: #f5ecff;
            color: #7b3fbd;
            font-size: 14px;
            font-weight: 600;
            line-height: 1.5;
        }

        .composer-flow-tag.visible {
            display: inline-flex;
        }

        .composer-flow-tag svg {
            display: none;
        }

        .composer-flow-tag-close {
            color: #7d6b92;
            font-weight: 500;
            line-height: 1;
        }

        .attachment-preview img {
            width: 58px;
            height: 58px;
            border-radius: 12px;
            object-fit: cover;
            background: linear-gradient(135deg, #603813, #b29f94);
        }

        .attachment-preview strong {
            display: block;
            color: #333;
            font-size: 13px;
        }

        .attachment-preview span {
            display: block;
            margin-top: 4px;
            color: #8a8f99;
            font-size: 12px;
        }

        .stock-product-row {
            display: none;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            margin: 0 16px 12px;
            padding: 10px 12px;
            border: 1px dashed #ffd6d6;
            border-radius: 12px;
            background: #fffafa;
            color: #666;
            font-size: 13px;
        }

        .stock-product-row.visible {
            display: flex;
        }

        .stock-product-row button,
        .modal-action {
            height: 30px;
            padding: 0 12px;
            border-radius: 999px;
            background: #fff;
            border: 1px solid #ffdddd;
            color: #fa3e3e;
            cursor: pointer;
        }

        .sent-context-card {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-top: 10px;
            padding: 10px;
            border: 1px solid rgba(35, 108, 255, 0.14);
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.72);
            color: #30333a;
            text-align: left;
        }

        .sent-context-card img {
            width: 58px;
            height: 58px;
            flex: 0 0 auto;
            border-radius: 12px;
            object-fit: cover;
            background: linear-gradient(135deg, #603813, #b29f94);
        }

        .sent-context-icon {
            width: 42px;
            height: 42px;
            flex: 0 0 auto;
            display: grid;
            place-items: center;
            border-radius: 12px;
            background: #fff4f4;
            color: #fa3e3e;
            font-weight: 900;
        }

        .sent-context-card strong {
            display: block;
            color: #202124;
            font-size: 13px;
        }

        .sent-context-card span {
            display: block;
            margin-top: 4px;
            color: #68707d;
            font-size: 12px;
            line-height: 1.4;
        }

        .product-modal {
            position: fixed;
            inset: 0;
            z-index: 4;
            display: none;
            place-items: center;
            background: rgba(25, 31, 44, 0.22);
            backdrop-filter: blur(2px);
        }

        .product-modal.visible {
            display: grid;
        }

        .product-dialog {
            width: min(520px, calc(100vw - 40px));
            padding: 18px;
            border-radius: 18px;
            background: #fff;
            box-shadow: 0 24px 80px rgba(20, 28, 46, 0.24);
        }

        .translation-dialog {
            width: min(680px, calc(100vw - 40px));
        }

        .translation-detail-dialog {
            width: min(900px, calc(100vw - 40px));
            max-height: min(86vh, 860px);
            display: grid;
            grid-template-rows: auto minmax(0, 1fr);
            padding: 0;
            overflow: hidden;
        }

        .translation-detail-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            padding: 16px 18px;
            border-bottom: 1px solid #eceef3;
        }

        .translation-detail-header h3 {
            margin: 0;
        }

        .translation-detail-close {
            width: 34px;
            height: 34px;
            border: 0;
            border-radius: 9px;
            background: #f4f5f8;
            color: #6f7480;
            font-size: 20px;
            line-height: 1;
            cursor: pointer;
        }

        .translation-detail-body {
            min-height: 0;
            padding: 16px;
            overflow-y: auto;
            background: #f7f8fb;
        }

        .translation-detail-body .translation-result-card {
            width: 100%;
            box-shadow: none;
        }

        .translation-dialog-subtitle {
            margin: -3px 0 14px;
            color: #7a808d;
            font-size: 12px;
            line-height: 1.55;
        }

        .translation-product-option.selected {
            border-color: #ff8f6f;
            background: #fff8f5;
            box-shadow: inset 0 0 0 1px #ff8f6f;
        }

        .translation-language-row {
            display: grid;
            grid-template-columns: 110px minmax(0, 1fr);
            align-items: center;
            gap: 12px;
            margin-top: 16px;
            padding-top: 15px;
            border-top: 1px solid #eef0f4;
        }

        .translation-language-row label {
            color: #343740;
            font-size: 13px;
            font-weight: 800;
        }

        .translation-language-row select {
            width: 100%;
            height: 38px;
            padding: 0 11px;
            border: 1px solid #dfe3ea;
            border-radius: 9px;
            background: #fff;
            color: #343740;
            font-size: 13px;
        }

        .translation-modal-actions {
            display: flex;
            justify-content: flex-end;
            gap: 9px;
            margin-top: 18px;
        }

        .translation-modal-actions .primary {
            border-color: #ff5b2c;
            background: #ff5b2c;
            color: #fff;
        }

        .translation-modal-actions .primary:disabled {
            cursor: not-allowed;
            opacity: .42;
        }

        .product-dialog h3 {
            margin: 0 0 12px;
            color: #222;
            font-size: 18px;
        }

        .product-option {
            width: 100%;
            display: grid;
            grid-template-columns: 54px minmax(0, 1fr) auto;
            gap: 12px;
            align-items: center;
            margin-top: 10px;
            padding: 12px;
            border: 1px solid #eef0f5;
            border-radius: 14px;
            background: #fff;
            text-align: left;
            cursor: pointer;
        }

        .product-option:hover {
            border-color: #ffb8b8;
            background: #fffafa;
        }

        .product-thumb {
            width: 54px;
            height: 54px;
            display: grid;
            place-items: center;
            border-radius: 12px;
            background: linear-gradient(135deg, #f4f7ff, #ffe8e8);
            color: #fa3e3e;
            font-weight: 900;
        }

        .product-option strong {
            display: block;
            color: #333;
            font-size: 14px;
        }

        .product-option span {
            display: block;
            margin-top: 4px;
            color: #818792;
            font-size: 12px;
        }

        .product-tag {
            color: #fa3e3e;
            font-size: 12px;
            white-space: nowrap;
        }

        .publish-risk-card {
            width: 100%;
            border: 1px solid #ffe0e0;
            border-radius: 14px;
            background: #fffafa;
            overflow: hidden;
        }

        .publish-risk-summary {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            gap: 12px;
            align-items: center;
            padding: 14px;
        }

        .publish-risk-summary strong {
            display: block;
            color: #c92a2a;
            font-size: 15px;
        }

        .publish-risk-summary span {
            display: block;
            margin-top: 6px;
            color: #666;
            font-size: 13px;
            line-height: 1.5;
        }

        .publish-risk-toggle {
            height: 32px;
            padding: 0 14px;
            border-radius: 999px;
            border: 1px solid #ffcccc;
            background: #fff;
            color: #fa3e3e;
            cursor: pointer;
        }

        .publish-risk-detail {
            display: none;
            padding: 0 14px 14px;
        }

        .publish-risk-card.expanded .publish-risk-detail {
            display: block;
        }

        .selection-results-panel {
            display: none;
        }

        body.selection-results-mode .market-shell,
        body.selection-results-mode .sidebar,
        body.selection-results-mode .activity,
        body.selection-results-mode .topbar {
            display: none;
        }

        body.selection-results-mode .app {
            inset: 0;
            width: 100vw;
            height: 100vh;
            display: grid;
            grid-template-columns: minmax(260px, 20%) minmax(0, 80%);
            grid-template-rows: minmax(0, 1fr);
            border: 0;
            border-radius: 0;
            background: #f5f6f8;
            box-shadow: none;
            transform: none;
        }

        body.selection-results-mode .main {
            grid-column: 1;
            grid-row: 1;
            min-height: 0;
            display: grid;
            grid-template-rows: minmax(0, 1fr) auto;
            border-right: 1px solid #edf0f4;
            background: #f7f8fa;
        }

        body.selection-results-mode .messages {
            padding: 18px 18px 12px;
            background: #f7f8fa;
        }

        body.selection-results-mode .message {
            max-width: 100%;
            margin: 0 0 14px;
            gap: 8px;
        }

        body.selection-results-mode .message.user {
            grid-template-columns: minmax(0, 1fr);
            justify-items: end;
        }

        body.selection-results-mode .message.assistant {
            grid-template-columns: minmax(0, 1fr);
        }

        body.selection-results-mode .avatar,
        body.selection-results-mode .message-header,
        body.selection-results-mode .response-tools {
            display: none;
        }

        body.selection-results-mode .message.user .bubble {
            max-width: 78%;
            padding: 10px 14px;
            border-radius: 10px;
            background: #fff0e8;
            color: #5e4335;
            font-size: 13px;
            line-height: 1.5;
        }

        body.selection-results-mode .message.assistant .bubble {
            display: block;
        }

        body.selection-results-mode .answer-body {
            padding: 0;
            white-space: normal;
        }

        body.selection-results-mode .composer {
            padding: 10px 18px 14px;
            background: #f7f8fa;
        }

        body.selection-results-mode .composer-inner {
            min-height: 92px;
            grid-template-rows: auto minmax(44px, 1fr) auto auto;
            border: 1px solid #ffcab8;
            border-radius: 12px;
            background: #fff;
            box-shadow: 0 10px 26px rgba(255, 97, 45, 0.08);
        }

        body.selection-results-mode textarea {
            min-height: 44px;
            max-height: 92px;
            color: #4b5260;
            font-size: 13px;
            line-height: 1.5;
        }

        body.selection-results-mode .composer-left {
            gap: 6px;
        }

        body.selection-results-mode .btn {
            height: 30px;
            padding: 0 9px;
            border-radius: 8px;
            color: #ff5b2c;
            font-size: 12px;
            font-weight: 500;
        }

        body.selection-results-mode .btn:not(#aiSelectionBtn):not(.primary) {
            display: none;
        }

        body.selection-results-mode #aiSelectionBtn {
            background: #fff4ee;
            border-color: #ffcab8;
        }

        body.selection-results-mode .btn.primary {
            width: 30px;
            min-width: 30px;
            height: 30px;
            background: #ffb8a7;
            box-shadow: none;
        }

        body.selection-results-mode .disclaimer {
            display: none;
        }

        body.selection-results-mode .selection-results-panel {
            grid-column: 2;
            grid-row: 1;
            position: relative;
            min-width: 0;
            min-height: 0;
            display: grid;
            grid-template-rows: auto minmax(0, 1fr) auto;
            gap: 12px;
            padding: 28px 26px 22px;
            overflow: hidden;
            background: #fff;
        }

        .selection-assistant-title {
            display: flex;
            align-items: center;
            gap: 8px;
            margin: 6px 0 16px;
            color: #222;
            font-size: 17px;
            font-weight: 800;
        }

        .selection-assistant-title::before {
            content: "";
            width: 14px;
            height: 14px;
            border-radius: 4px;
            background: linear-gradient(135deg, #ff3d23, #ff9a41);
        }

        .selection-progress {
            display: grid;
            gap: 14px;
            color: #333;
        }

        .selection-progress-copy {
            margin: 0;
            color: #3d424b;
            font-size: 13px;
            line-height: 1.7;
        }

        .selection-step-card {
            display: grid;
            gap: 8px;
            padding: 12px;
            border: 1px solid #eceff4;
            border-radius: 10px;
            background: #fff;
        }

        .selection-step-card.is-active {
            border-color: #ffd0bd;
            background: #fff8f4;
        }

        .opportunity-skill-panel {
            width: min(920px, 100%);
        }

        .opportunity-skill-panel .selection-assistant-title::before {
            background: linear-gradient(135deg, #0b8f5a, #68d391);
        }

        .opportunity-skill-panel .selection-step-card.is-active {
            border-color: rgba(19, 128, 79, 0.22);
            background: #f6fff9;
        }

        .opportunity-skill-panel .selection-step-head span {
            color: #13804f;
        }

        .opportunity-skill-panel .selection-step-output {
            border-left-color: #d7f2e2;
        }

        .opportunity-result-slot {
            display: grid;
            gap: 12px;
        }

        .opportunity-log {
            display: none !important;
        }

        .selection-step-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            color: #222;
            font-size: 13px;
            font-weight: 700;
        }

        .selection-step-head span {
            color: #ff5b2c;
            font-size: 12px;
            font-weight: 600;
        }

        .selection-step-output {
            margin: -8px 0 4px 12px;
            padding: 0 0 0 14px;
            border-left: 2px solid #ffe0d1;
            color: #68707d;
            font-size: 12px;
            line-height: 1.65;
            white-space: pre-wrap;
        }

        .selection-step-output:empty {
            display: none;
        }

        .selection-summary-card {
            padding: 12px;
            border: 1px solid #eceff4;
            border-radius: 12px;
            background: #fff;
        }

        .selection-summary-card strong {
            display: block;
            margin-bottom: 8px;
            color: #222;
            font-size: 14px;
        }

        .selection-summary-card p {
            margin: 0 0 10px;
            color: #4b5260;
            font-size: 12px;
            line-height: 1.65;
        }

        .selection-preview-list {
            display: grid;
            grid-template-columns: 1fr;
            gap: 10px;
            margin: 10px 0 12px;
        }

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

        .selection-preview-item img {
            width: 54px;
            height: 54px;
            border-radius: 9px;
            object-fit: cover;
            border: 1px solid #edf0f4;
        }

        .selection-preview-info {
            min-width: 0;
        }

        .selection-preview-title {
            display: -webkit-box;
            color: #30343b;
            font-size: 12px;
            font-weight: 700;
            line-height: 1.4;
            overflow: hidden;
            text-decoration: none;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 2;
        }

        .selection-preview-price {
            display: block;
            margin-top: 7px;
            color: #ff5b2c;
            font-size: 15px;
            font-weight: 800;
            white-space: nowrap;
        }

        .selection-preview-actions {
            display: flex;
            align-items: center;
            gap: 6px;
            white-space: nowrap;
        }

        .selection-summary-card button,
        .selection-new-chat {
            height: 34px;
            padding: 0 18px;
            border-radius: 7px;
            background: #ff5b2c;
            color: #fff;
            cursor: pointer;
        }

        .selection-summary-card .selection-preview-actions button {
            height: 30px;
            padding: 0 10px;
            border-radius: 999px;
            border: 1px solid #ffcab8;
            background: #fff;
            color: #ff5b2c;
            font-size: 12px;
            font-weight: 700;
        }

        .selection-summary-card .selection-preview-actions .primary-action {
            border-color: #ff5b2c;
            background: #ff5b2c;
            color: #fff;
            box-shadow: 0 8px 18px rgba(255, 91, 44, 0.16);
        }

        .selection-new-chat {
            justify-self: center;
            margin: 8px 0 2px;
            background: #fff;
            border: 1px solid #e6e9ef;
            color: #4b5260;
        }

        .selection-results-head {
            position: relative;
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 24px;
            padding-right: 46px;
        }

        .selection-results-head h2 {
            margin: 0;
            color: #202124;
            font-size: 21px;
            line-height: 1.25;
        }

        .selection-results-head p {
            margin: 18px 0 0;
            color: #333842;
            font-size: 13px;
            font-weight: 700;
        }

        .selection-results-actions {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .selection-results-actions button,
        .selection-close-btn,
        .selection-bulk button,
        .selection-page button {
            height: 34px;
            padding: 0 14px;
            border: 1px solid #e5e8ef;
            border-radius: 6px;
            background: #fff;
            color: #404650;
            font-size: 13px;
            cursor: pointer;
        }

        .selection-close-btn {
            position: absolute;
            top: -2px;
            right: 0;
            width: 34px;
            padding: 0;
            border-radius: 10px;
            color: #8a9099;
            font-size: 22px;
            line-height: 1;
        }

        .selection-close-btn:hover {
            border-color: #ffcab8;
            color: #ff5b2c;
            background: #fff6f1;
        }

        .selection-results-actions .primary-outline,
        .selection-bulk .primary-action,
        .selection-bulk .purchase-action {
            border-color: #ff6a3d;
            color: #ff5b2c;
        }

        .selection-results-actions .selection-back-btn {
            border-color: #dce1ea;
            color: #5f6673;
        }

        .selection-table-wrap {
            min-height: 0;
            overflow: auto;
            border: 1px solid #edf0f4;
            border-radius: 4px;
            background: #fff;
        }

        .selection-table-wrap::-webkit-scrollbar {
            width: 9px;
            height: 9px;
        }

        .selection-table-wrap::-webkit-scrollbar-thumb {
            border-radius: 999px;
            background: #c9ced8;
        }

        .selection-table {
            width: 100%;
            min-width: 1120px;
            border-collapse: collapse;
            color: #333842;
            font-size: 13px;
        }

        .selection-table th {
            position: sticky;
            top: 0;
            z-index: 1;
            height: 48px;
            padding: 0 12px;
            border-bottom: 1px solid #edf0f4;
            background: #f8f9fb;
            color: #30343b;
            text-align: left;
            font-weight: 800;
            white-space: nowrap;
        }

        .selection-table td {
            height: 56px;
            padding: 8px 10px;
            border-bottom: 1px solid #eef0f3;
            vertical-align: middle;
            white-space: nowrap;
        }

        .selection-table tr.selected td {
            background: #f4f4f5;
        }

        .selection-check {
            width: 16px;
            height: 16px;
            accent-color: #ff5b2c;
        }

        .selection-product-cell {
            min-width: 360px;
            display: grid;
            grid-template-columns: 48px minmax(0, 1fr);
            gap: 10px;
            align-items: center;
        }

        .selection-product-img {
            width: 48px;
            height: 32px;
            border-radius: 6px;
            object-fit: cover;
            border: 1px solid #edf0f4;
            background: #f5f6f8;
        }

        .selection-product-title {
            display: block;
            max-width: 260px;
            color: #30343b;
            font-weight: 700;
            line-height: 1.45;
            white-space: normal;
            text-decoration: none;
        }

        .selection-product-id {
            display: block;
            margin-top: 4px;
            color: #b5bac4;
            font-size: 12px;
        }

        .selection-sku-inline {
            min-height: 22px;
            display: flex;
            align-items: center;
            gap: 7px;
            margin-top: 5px;
            opacity: 0;
            transition: opacity 0.16s ease;
        }

        .selection-table tr:hover .selection-sku-inline,
        .selection-table tr.selected .selection-sku-inline {
            opacity: 1;
        }

        .selection-sku-chip {
            display: inline-flex;
            align-items: center;
            height: 20px;
            padding: 0 7px;
            border-radius: 999px;
            background: #f4f5f7;
            color: #8a9099;
            font-size: 11px;
            font-weight: 700;
            white-space: nowrap;
        }

        .selection-sku-chip.pending {
            background: #fff3eb;
            color: #e85b2a;
        }

        .selection-sku-chip.done {
            background: #edf9f2;
            color: #168653;
        }

        .selection-sku-inline button {
            padding: 0;
            border: 0;
            background: transparent;
            color: #ff5b2c;
            font-size: 11px;
            font-weight: 700;
            cursor: pointer;
        }

        .selection-price strong {
            display: block;
            color: #202124;
            font-size: 15px;
        }

        .selection-price span,
        .selection-muted {
            display: block;
            margin-top: 3px;
            color: #8d94a0;
            font-size: 12px;
        }

        .selection-merchant {
            max-width: 190px;
            overflow: hidden;
            color: #30343b;
            text-overflow: ellipsis;
        }

        .selection-merchant::before {
            content: "厂";
            display: inline-grid;
            width: 16px;
            height: 16px;
            place-items: center;
            margin-right: 4px;
            border-radius: 3px;
            background: #ff5b2c;
            color: #fff;
            font-size: 11px;
        }

        .selection-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 16px;
        }

        .selection-bulk,
        .selection-page {
            display: flex;
            align-items: center;
            gap: 12px;
            color: #6f7783;
            font-size: 13px;
        }

        .selection-page strong {
            color: #ff5b2c;
        }

        .selection-sku-progress {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding-left: 10px;
            border-left: 1px solid #e7eaf0;
            color: #7a818d;
            white-space: nowrap;
        }

        .selection-sku-progress strong {
            color: #30343b;
        }

        .selection-bulk button:disabled {
            cursor: not-allowed;
            opacity: 0.42;
        }

        .selection-notice {
            position: absolute;
            top: 74px;
            right: 28px;
            z-index: 20;
            max-width: 360px;
            padding: 10px 14px;
            border: 1px solid #ffd4c4;
            border-radius: 9px;
            background: #fff8f4;
            color: #8d3d22;
            font-size: 12px;
            font-weight: 700;
            box-shadow: 0 12px 28px rgba(72, 39, 28, 0.12);
        }

        .selection-notice.success {
            border-color: #bfe8cf;
            background: #f2fbf6;
            color: #167448;
        }

        .selection-sku-sheet {
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 12;
            max-height: min(74vh, 540px);
            display: grid;
            grid-template-rows: auto auto minmax(0, 1fr) auto;
            gap: 14px;
            padding: 18px 24px 20px;
            border-top: 1px solid #e7eaf0;
            background: #fff;
            box-shadow: 0 -18px 46px rgba(30, 36, 48, 0.18);
        }

        .selection-sku-sheet[hidden] {
            display: none;
        }

        .selection-sku-sheet-head,
        .selection-sku-current,
        .selection-sku-sheet-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
        }

        .selection-sku-sheet-title {
            display: flex;
            align-items: baseline;
            gap: 10px;
        }

        .selection-sku-sheet-title h3 {
            margin: 0;
            color: #202124;
            font-size: 18px;
        }

        .selection-sku-sheet-title span {
            color: #7d8490;
            font-size: 12px;
        }

        .selection-sku-head-actions {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .selection-sku-head-actions button,
        .selection-sku-sheet-footer button {
            height: 34px;
            padding: 0 14px;
            border: 1px solid #e3e6ec;
            border-radius: 7px;
            background: #fff;
            color: #4b5260;
            font-size: 12px;
            font-weight: 700;
            cursor: pointer;
        }

        .selection-sku-head-actions .selection-sku-recommend,
        .selection-sku-sheet-footer .selection-sku-next {
            border-color: #ff5b2c;
            background: #ff5b2c;
            color: #fff;
        }

        .selection-sku-close {
            width: 34px;
            padding: 0 !important;
            font-size: 20px !important;
        }

        .selection-sku-queue {
            display: flex;
            gap: 8px;
            padding-bottom: 2px;
            overflow-x: auto;
        }

        .selection-sku-queue button {
            min-width: 132px;
            display: grid;
            grid-template-columns: 34px minmax(0, 1fr);
            align-items: center;
            gap: 8px;
            padding: 6px 9px;
            border: 1px solid #e7eaf0;
            border-radius: 8px;
            background: #fff;
            color: #555d68;
            text-align: left;
            cursor: pointer;
        }

        .selection-sku-queue button.active {
            border-color: #ff9f7f;
            background: #fff6f1;
        }

        .selection-sku-queue button.done {
            border-color: #bfe8cf;
            background: #f6fcf8;
        }

        .selection-sku-queue img {
            width: 34px;
            height: 34px;
            border-radius: 6px;
            object-fit: cover;
        }

        .selection-sku-queue strong,
        .selection-sku-queue small {
            display: block;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .selection-sku-queue strong {
            font-size: 11px;
        }

        .selection-sku-queue small {
            margin-top: 3px;
            color: #9298a2;
            font-size: 10px;
        }

        .selection-sku-body {
            min-height: 0;
            overflow: auto;
        }

        .selection-sku-current {
            justify-content: flex-start;
            margin-bottom: 12px;
        }

        .selection-sku-current img {
            width: 48px;
            height: 48px;
            border: 1px solid #edf0f4;
            border-radius: 8px;
            object-fit: cover;
        }

        .selection-sku-current strong,
        .selection-sku-current span {
            display: block;
        }

        .selection-sku-current strong {
            max-width: 620px;
            color: #30343b;
            font-size: 13px;
        }

        .selection-sku-current span {
            margin-top: 4px;
            color: #8d94a0;
            font-size: 11px;
        }

        .selection-sku-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 9px;
        }

        .selection-sku-option {
            display: grid;
            grid-template-columns: auto minmax(0, 1fr) auto;
            align-items: center;
            gap: 9px;
            min-height: 68px;
            padding: 9px 10px;
            border: 1px solid #e7eaf0;
            border-radius: 9px;
            background: #fff;
        }

        .selection-sku-option.selected {
            border-color: #ff9976;
            background: #fff8f4;
        }

        .selection-sku-option-toggle {
            width: 18px;
            height: 18px;
            display: grid;
            place-items: center;
            padding: 0;
            border: 1px solid #cfd4dc;
            border-radius: 5px;
            background: #fff;
            color: transparent;
            cursor: pointer;
        }

        .selection-sku-option.selected .selection-sku-option-toggle {
            border-color: #ff5b2c;
            background: #ff5b2c;
            color: #fff;
        }

        .selection-sku-option strong,
        .selection-sku-option small {
            display: block;
        }

        .selection-sku-option strong {
            color: #30343b;
            font-size: 12px;
        }

        .selection-sku-option small {
            margin-top: 4px;
            color: #9298a2;
            font-size: 10px;
        }

        .selection-sku-qty {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .selection-sku-qty button {
            width: 24px;
            height: 24px;
            padding: 0;
            border: 1px solid #dfe3e9;
            border-radius: 6px;
            background: #fff;
            color: #4c535f;
            cursor: pointer;
        }

        .selection-sku-qty span {
            min-width: 16px;
            color: #30343b;
            font-size: 12px;
            font-weight: 800;
            text-align: center;
        }

        .selection-sku-qty.is-empty {
            visibility: hidden;
        }

        .selection-sku-sheet-footer {
            padding-top: 12px;
            border-top: 1px solid #edf0f4;
        }

        .selection-sku-sheet-footer p {
            margin: 0;
            color: #6f7783;
            font-size: 12px;
        }

        .selection-sku-footer-actions {
            display: flex;
            gap: 8px;
        }

        .merchant-todo-skill-panel {
            width: min(920px, 100%);
        }

        .composer-left > .business-action,
        #merchantTodoBtn {
            flex: 0 0 auto;
            white-space: nowrap;
        }

        #stopBtn:disabled {
            display: none;
        }

        .merchant-todo-skill-panel .selection-assistant-title::before {
            background: linear-gradient(135deg, #446dff, #a85cff);
        }

        .merchant-todo-skill-panel .selection-step-card.is-active {
            border-color: rgba(76, 101, 255, 0.28);
            background: #f8f8ff;
        }

        .merchant-todo-skill-panel .selection-step-head span {
            color: #5d5fe8;
        }

        .merchant-todo-skill-panel .selection-step-output {
            border-left-color: #dedfff;
        }

        .merchant-todo-result-card {
            display: grid;
            gap: 18px;
            padding: 20px;
            border: 1px solid #e7e9f1;
            border-radius: 18px;
            background: #fff;
            box-shadow: 0 12px 30px rgba(54, 48, 94, 0.07);
        }

        .merchant-todo-result-head {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 16px;
        }

        .merchant-todo-result-title {
            margin: 0;
            color: #24262d;
            font-size: 19px;
            font-weight: 800;
            line-height: 1.35;
        }

        .merchant-todo-update {
            flex: 0 0 auto;
            padding-top: 3px;
            color: #959aa6;
            font-size: 12px;
        }

        .merchant-todo-summary {
            margin: -4px 0 0;
            color: #3d424d;
            font-size: 14px;
            line-height: 1.7;
        }

        .merchant-todo-filters {
            display: grid;
            grid-template-columns: repeat(5, minmax(0, 1fr));
            gap: 10px;
        }

        .merchant-todo-filter {
            min-width: 0;
            height: 42px;
            padding: 0 10px;
            border: 1px solid transparent;
            border-radius: 12px;
            background: #f6f7fa;
            color: #3b3f48;
            font-size: 13px;
            font-weight: 700;
            white-space: nowrap;
            cursor: pointer;
            transition: border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
        }

        .merchant-todo-filter:hover:not(:disabled) {
            border-color: #d8d9f5;
            background: #faf9ff;
        }

        .merchant-todo-filter.is-active {
            border-color: #7068ff;
            background: linear-gradient(135deg, #f1f4ff, #fff5fb);
            color: #4548c9;
            box-shadow: 0 5px 14px rgba(86, 82, 210, 0.1);
        }

        .merchant-todo-filter:disabled {
            color: #b8bdc8;
            cursor: not-allowed;
            opacity: 0.72;
        }

        .merchant-todo-filter-count {
            margin-left: 4px;
            color: #858b98;
            font-weight: 600;
        }

        .merchant-todo-filter.is-active .merchant-todo-filter-count {
            color: #6567d8;
        }

        .merchant-todo-list {
            display: grid;
            gap: 10px;
        }

        .merchant-todo-item {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto auto;
            align-items: center;
            gap: 16px;
            min-height: 68px;
            padding: 12px 14px;
            border: 1px solid #e8eaf0;
            border-radius: 14px;
            background: #fff;
        }

        .merchant-todo-item[hidden] {
            display: none;
        }

        .merchant-todo-conclusion {
            min-width: 0;
            display: flex;
            align-items: center;
            gap: 12px;
            color: #292c33;
            font-size: 14px;
            font-weight: 800;
        }

        .merchant-todo-priority-dot {
            flex: 0 0 auto;
            width: 9px;
            height: 9px;
            border-radius: 50%;
            background: #ff8b1f;
            box-shadow: 0 0 0 4px rgba(255, 139, 31, 0.1);
        }

        .merchant-todo-priority-dot.is-urgent {
            background: #ff3e4f;
            box-shadow: 0 0 0 4px rgba(255, 62, 79, 0.1);
        }

        .merchant-todo-count {
            min-width: 42px;
            color: #30333b;
            font-size: 14px;
            font-weight: 800;
            text-align: right;
        }

        .merchant-todo-action {
            min-width: 92px;
            height: 34px;
            padding: 0 14px;
            border: 1px solid #7068ff;
            border-radius: 9px;
            background: #fff;
            color: #6258e8;
            font-size: 13px;
            font-weight: 800;
            cursor: pointer;
            transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
        }

        .merchant-todo-action:hover {
            border-color: #5b50ee;
            background: #f7f6ff;
            transform: translateY(-1px);
        }

        .merchant-todo-helper,
        .merchant-todo-action-notice {
            margin: 0;
            color: #858b96;
            font-size: 12px;
            line-height: 1.6;
        }

        .merchant-todo-action-notice {
            display: none;
            padding: 10px 12px;
            border: 1px solid #dce6ff;
            border-radius: 10px;
            background: #f7f9ff;
            color: #526481;
        }

        .merchant-todo-action-notice.is-visible {
            display: block;
        }

        .merchant-todo-empty {
            padding: 20px;
            border: 1px dashed #dfe3ea;
            border-radius: 14px;
            background: #fafbfc;
            color: #737a86;
            font-size: 13px;
            line-height: 1.7;
            text-align: center;
        }

        .operation-todo-section .merchant-todo-result-card {
            gap: 14px;
            padding: 17px 18px;
            border-color: #e5e3f3;
            border-radius: 14px;
            background: linear-gradient(135deg, #ffffff, #fbfaff);
            box-shadow: 0 8px 22px rgba(71, 62, 122, 0.05);
        }

        .operation-todo-section .merchant-todo-result-title {
            font-size: 16px;
        }

        .operation-todo-section .merchant-todo-summary {
            font-size: 13px;
        }

        .operation-todo-section .merchant-todo-filter {
            height: 36px;
            border-radius: 10px;
            font-size: 12px;
        }

        .operation-todo-section .merchant-todo-item {
            min-height: 56px;
            padding: 10px 12px;
            border-radius: 11px;
        }

        .operation-todo-section .merchant-todo-conclusion,
        .operation-todo-section .merchant-todo-count {
            font-size: 13px;
        }

        .operation-todo-section .merchant-todo-action {
            min-width: 82px;
            height: 32px;
            padding: 0 12px;
            font-size: 12px;
        }

        .operation-todo-section .merchant-todo-helper {
            color: #9498a4;
            font-size: 11px;
        }

        @media (max-width: 680px) {
            .merchant-todo-result-card {
                gap: 14px;
                padding: 15px;
                border-radius: 15px;
            }

            .merchant-todo-filters {
                display: flex;
                gap: 8px;
                margin-right: -15px;
                padding-right: 15px;
                overflow-x: auto;
                scrollbar-width: none;
            }

            .merchant-todo-filters::-webkit-scrollbar {
                display: none;
            }

            .merchant-todo-filter {
                flex: 0 0 auto;
                min-width: 76px;
            }

            .merchant-todo-item {
                grid-template-columns: minmax(0, 1fr) auto;
                gap: 10px 12px;
            }

            .merchant-todo-count {
                grid-column: 2;
                grid-row: 1;
            }

            .merchant-todo-action {
                grid-column: 1 / -1;
                width: 100%;
            }
        }

        @media (max-width: 1180px) {
            body.selection-results-mode .app {
                grid-template-columns: minmax(300px, 28%) minmax(0, 72%);
            }

            .selection-sku-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }

        .market-nav li.market-home-entry,
        .market-nav li.market-customer-service-entry {
            pointer-events: auto;
        }

        .market-nav li a {
            color: inherit;
            text-decoration: none;
            pointer-events: auto;
        }

        .market-home-entry a[aria-current="page"] {
            color: #ff3131;
            font-weight: 800;
        }

        .market-customer-service-entry a {
            color: #5748d7;
            font-weight: 800;
        }

        .market-customer-service-view {
            width: 100%;
            height: auto;
            min-height: 0;
            overflow: visible;
            pointer-events: auto;
        }

        .market-customer-service-view iframe {
            width: 100%;
            height: 800px;
            display: block;
            border: 0;
            background: transparent;
        }

        .operator-shell {
            position: relative;
            z-index: 2;
            min-height: calc(100vh - 64px);
            background: #f5f6fa;
            color: #30343b;
            pointer-events: auto;
        }

        .operator-shell[hidden] {
            display: none;
        }

        .customer-service-workspace-shell {
            position: relative;
            z-index: 8;
            width: 100%;
            min-width: 1280px;
            height: 100vh;
            overflow: hidden;
            background: #f7f8fc;
            pointer-events: auto;
        }

        .customer-service-workspace-shell[hidden] {
            display: none;
        }

        .customer-service-workspace-shell iframe {
            width: 100%;
            height: 100%;
            display: block;
            border: 0;
            background: #f7f8fc;
        }

        .operator-layout {
            width: min(1800px, calc(100vw - 32px));
            min-height: calc(100vh - 64px);
            display: grid;
            grid-template-columns: 168px minmax(0, 1fr);
            gap: 16px;
            margin: 0 auto;
            padding: 28px 0 40px;
        }

        .operator-nav {
            min-height: 520px;
            padding: 22px 0;
            border-radius: 2px;
            background: #fff;
            box-shadow: 0 10px 28px rgba(32, 41, 59, 0.04);
        }

        .operator-nav-heading {
            margin: 0 22px 18px;
            padding-left: 12px;
            border-left: 4px solid #ff3131;
            color: #333;
            font-size: 20px;
            line-height: 1.2;
        }

        .operator-nav-caption {
            display: block;
            margin: -8px 22px 18px 38px;
            color: #8a909b;
            font-size: 12px;
            line-height: 1.5;
        }

        .operator-nav-list {
            display: grid;
            gap: 6px;
            margin: 0;
            padding: 0 12px;
            list-style: none;
        }

        .operator-nav-link {
            width: 100%;
            display: flex;
            align-items: center;
            min-height: 42px;
            padding: 9px 12px;
            border-radius: 5px;
            background: transparent;
            color: #59616e;
            font-size: 14px;
            font-weight: 700;
            text-align: left;
            text-decoration: none;
            cursor: pointer;
            transition: background 160ms ease, color 160ms ease;
        }

        .operator-nav-link:hover,
        .operator-nav-link[aria-current="page"] {
            background: #fff0f0;
            color: #ef2e31;
        }

        .operator-main {
            min-width: 0;
        }

        .operator-page-header {
            display: flex;
            align-items: baseline;
            gap: 12px;
            min-height: 48px;
            margin-bottom: 14px;
            padding: 0 2px;
        }

        .operator-page-header h1 {
            margin: 0;
            color: #2f343c;
            font-size: 20px;
            line-height: 1.2;
        }

        .operator-page-header span {
            color: #8a909b;
            font-size: 13px;
        }

        .operator-customer-service-view {
            width: 100%;
            overflow-x: auto;
            overflow-y: visible;
        }

        .operator-customer-service-view iframe {
            width: 100%;
            min-width: 980px;
            min-height: 680px;
            display: block;
            border: 0;
            background: transparent;
        }

        body.operator-mode .market-shell {
            min-height: 64px;
            z-index: 3;
        }

        body.operator-mode .market-body,
        body.operator-mode .market-service-strip,
        body.operator-mode .market-footer,
        body.operator-mode .app,
        body.operator-mode .market-quick-dock {
            display: none;
        }

        body.customer-service-workspace-mode {
            overflow: hidden;
        }

        body.customer-service-workspace-mode .market-shell,
        body.customer-service-workspace-mode .operator-shell,
        body.customer-service-workspace-mode .app,
        body.customer-service-workspace-mode .market-quick-dock {
            display: none;
        }

        .market-quick-dock {
            position: fixed;
            top: 136px;
            right: 0;
            z-index: 6;
            width: clamp(64px, 8vh, 82px);
            height: min(820px, calc(100vh - 82px));
            display: none;
            grid-template-rows: 116px minmax(0, 1fr);
            overflow: visible;
            pointer-events: auto;
            transform: scale(.5);
            transform-origin: top right;
        }

        .chat-restore-button {
            position: relative;
            width: calc(100% + 24px);
            height: 116px;
            margin-left: -24px;
            display: block;
            padding: 0;
            border: 0;
            background: transparent;
            cursor: pointer;
        }

        .chat-restore-button img {
            width: 100%;
            height: 100%;
            display: block;
            object-fit: contain;
            object-position: right bottom;
            user-select: none;
            -webkit-user-drag: none;
        }

        .chat-restore-button:focus-visible {
            outline: 2px solid #ff6b3d;
            outline-offset: -3px;
            border-radius: 10px;
        }

        .market-quick-menu {
            min-height: 0;
            display: grid;
            grid-template-rows: repeat(6, minmax(0, 1fr));
            overflow: hidden;
            border: 1px solid #e5e6ea;
            border-right: 0;
            border-radius: 16px 0 0 16px;
            background: #fff;
            box-shadow: 0 8px 20px rgba(26, 35, 53, 0.04);
        }

        .market-quick-menu-item {
            width: 100%;
            min-height: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 4px;
            padding: 5px 3px;
            color: #202124;
            border: 0;
            background: transparent;
            font-size: clamp(12px, 1.6vh, 15px);
            line-height: 1.28;
            text-align: center;
        }

        button.market-quick-menu-item {
            cursor: pointer;
        }

        button.market-quick-menu-item:hover,
        button.market-quick-menu-item:focus-visible {
            background: #fff1f1;
            color: #e72b2e;
            outline: none;
        }

        .market-quick-menu-item img {
            width: clamp(28px, 3.6vh, 36px);
            height: clamp(28px, 3.6vh, 36px);
            display: block;
            object-fit: contain;
            user-select: none;
            -webkit-user-drag: none;
        }

        .market-quick-menu-item span {
            display: block;
        }

        .market-quick-menu-item span.is-multiline {
            max-width: 2em;
        }

        body.chat-minimized .app { display: none; }
        body.chat-minimized .market-quick-dock { display: grid; }
        body.operator-mode.chat-minimized .market-quick-dock,
        body.customer-service-workspace-mode.chat-minimized .market-quick-dock { display: none; }

        .lead-results-panel {
            display: none;
        }

        body.lead-results-mode .market-shell,
        body.lead-results-mode .sidebar,
        body.lead-results-mode .activity,
        body.lead-results-mode .topbar {
            display: none;
        }

        body.lead-results-mode .app {
            inset: 0;
            width: 100vw;
            height: 100vh;
            display: grid;
            grid-template-columns: minmax(300px, 26%) minmax(0, 74%);
            grid-template-rows: minmax(0, 1fr);
            border: 0;
            border-radius: 0;
            background: #f5f6f8;
            box-shadow: none;
            transform: none;
        }

        body.lead-results-mode .main {
            grid-column: 1;
            grid-row: 1;
            min-height: 0;
            display: grid;
            grid-template-rows: minmax(0, 1fr) auto;
            border-right: 1px solid #edf0f4;
            background: #f7f8fa;
        }

        body.lead-results-mode .messages {
            padding: 18px 18px 12px;
            background: #f7f8fa;
        }

        body.lead-results-mode .message {
            max-width: 100%;
            margin: 0 0 14px;
            gap: 8px;
        }

        body.lead-results-mode .message.user {
            grid-template-columns: minmax(0, 1fr);
            justify-items: end;
        }

        body.lead-results-mode .message.assistant {
            grid-template-columns: minmax(0, 1fr);
        }

        body.lead-results-mode .avatar,
        body.lead-results-mode .message-header,
        body.lead-results-mode .response-tools {
            display: none;
        }

        body.lead-results-mode .message.user .bubble {
            max-width: 82%;
            padding: 10px 14px;
            border-radius: 10px;
            background: #fff0e8;
            color: #5e4335;
            font-size: 13px;
            line-height: 1.5;
        }

        body.lead-results-mode .message.assistant .bubble,
        body.lead-results-mode .message.assistant .answer-body {
            display: block;
            width: 100%;
        }

        body.lead-results-mode .answer-body {
            padding: 0;
            white-space: normal;
        }

        body.lead-results-mode .composer {
            padding: 10px 18px 14px;
            background: #f7f8fa;
        }

        body.lead-results-mode .composer-inner {
            min-height: 92px;
            grid-template-rows: auto minmax(44px, 1fr) auto auto;
            border: 1px solid #ffcab8;
            border-radius: 12px;
            background: #fff;
            box-shadow: 0 10px 26px rgba(255, 97, 45, 0.08);
        }

        body.lead-results-mode textarea {
            min-height: 44px;
            max-height: 92px;
            color: #4b5260;
            font-size: 13px;
            line-height: 1.5;
        }

        body.lead-results-mode .composer-left {
            gap: 6px;
        }

        body.lead-results-mode .composer-left > .btn,
        body.lead-results-mode .composer-left > .business-action-wrap,
        body.lead-results-mode .composer-left > .composer-more-wrap {
            display: none;
        }

        body.lead-results-mode .btn.primary {
            width: 30px;
            min-width: 30px;
            height: 30px;
            background: #ffb8a7;
            box-shadow: none;
        }

        body.lead-results-mode .disclaimer {
            display: none;
        }

        body.lead-results-mode .lead-results-panel {
            grid-column: 2;
            grid-row: 1;
            min-width: 0;
            min-height: 0;
            display: grid;
            grid-template-rows: auto auto minmax(0, 1fr);
            gap: 16px;
            padding: 24px;
            overflow: hidden;
            background: #fff;
        }

        .lead-results-head {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 20px;
        }

        .lead-results-title-row {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 7px;
        }

        .lead-results-title-row h2 {
            margin: 0;
            color: #1f2329;
            font-size: 22px;
            line-height: 1.25;
        }

        .lead-demo-badge,
        .lead-meta-chip,
        .lead-score,
        .lead-company-type {
            display: inline-flex;
            align-items: center;
            width: fit-content;
            border-radius: 999px;
            white-space: nowrap;
        }

        .lead-demo-badge {
            padding: 4px 9px;
            background: #fff3ee;
            color: #d94b1f;
            font-size: 11px;
            font-weight: 700;
        }

        .lead-results-head p {
            margin: 0;
            color: #7b818d;
            font-size: 13px;
            line-height: 1.6;
        }

        .lead-head-actions {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .lead-market-action,
        .lead-close-btn,
        .lead-row-action,
        .lead-summary-action,
        .lead-hs-option,
        .lead-copy-button {
            border: 1px solid #e1e4e8;
            background: #fff;
            color: #343a46;
            cursor: pointer;
            font: inherit;
        }

        .lead-market-action {
            height: 38px;
            padding: 0 16px;
            border-color: #ff5a35;
            border-radius: 8px;
            background: #ff5a35;
            color: #fff;
            font-size: 13px;
            font-weight: 700;
        }

        .lead-close-btn {
            width: 38px;
            height: 38px;
            border-radius: 8px;
            color: #6d7480;
            font-size: 22px;
            line-height: 1;
        }

        .lead-overview {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(230px, 1.4fr);
            gap: 10px;
        }

        .lead-overview-card {
            min-width: 0;
            padding: 14px 15px;
            border: 1px solid #eceef2;
            border-radius: 10px;
            background: #fafbfc;
        }

        .lead-overview-card span {
            display: block;
            color: #8a909c;
            font-size: 12px;
        }

        .lead-overview-card strong {
            display: block;
            margin-top: 6px;
            overflow: hidden;
            color: #20242c;
            font-size: 17px;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .lead-overview-card.search {
            display: grid;
            align-content: center;
        }

        .lead-search-input {
            width: 100%;
            height: 38px;
            padding: 0 12px;
            border: 1px solid #dfe3e8;
            border-radius: 8px;
            outline: none;
            background: #fff;
            color: #333;
            font: inherit;
        }

        .lead-search-input:focus {
            border-color: #ff7a57;
            box-shadow: 0 0 0 3px rgba(255, 90, 53, 0.1);
        }

        .lead-table-wrap {
            min-height: 0;
            overflow: auto;
            border: 1px solid #e8eaee;
            border-radius: 10px;
        }

        .lead-table {
            width: 100%;
            min-width: 880px;
            border-collapse: collapse;
            background: #fff;
            color: #3c424d;
            font-size: 12px;
        }

        .lead-table th,
        .lead-table td {
            padding: 12px 9px;
            border-bottom: 1px solid #eef0f3;
            text-align: left;
            vertical-align: middle;
        }

        .lead-table th {
            position: sticky;
            top: 0;
            z-index: 1;
            background: #f7f8fa;
            color: #6a717d;
            font-weight: 700;
            white-space: nowrap;
        }

        .lead-table td:nth-child(2),
        .lead-table td:nth-child(7) {
            white-space: nowrap;
        }

        .lead-table tbody tr:hover,
        .lead-table tbody tr.is-linked {
            background: #fff9f6;
        }

        .lead-company-cell strong,
        .lead-trade-cell strong,
        .lead-contact-cell strong {
            display: block;
            color: #232831;
            font-size: 13px;
        }

        .lead-company-cell span,
        .lead-trade-cell span,
        .lead-contact-cell span {
            display: block;
            margin-top: 4px;
            color: #858b96;
            line-height: 1.45;
        }

        .lead-company-type {
            margin-top: 7px;
            padding: 3px 7px;
            background: #f0f3f7;
            color: #586171;
            font-size: 10px;
        }

        .lead-score {
            justify-content: center;
            min-width: 42px;
            padding: 5px 8px;
            background: #fff0ea;
            color: #d9481d;
            font-size: 12px;
            font-weight: 800;
        }

        .lead-row-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
            min-width: 154px;
        }

        .lead-row-action {
            height: 28px;
            padding: 0 7px;
            border-radius: 6px;
            color: #d84a22;
            font-size: 11px;
        }

        .lead-row-action:hover,
        .lead-hs-option:hover {
            border-color: #ff8d70;
            background: #fff5f1;
        }

        .lead-link-notice {
            grid-column: 1 / -1;
            min-height: 18px;
            color: #d84a22;
            font-size: 12px;
        }

        .lead-hs-card,
        .lead-chat-card {
            border: 1px solid #eadfd9;
            border-radius: 12px;
            background: #fff;
        }

        .lead-hs-card {
            padding: 14px;
        }

        .lead-hs-card h3,
        .lead-chat-card h3 {
            margin: 0;
            color: #242830;
            font-size: 15px;
        }

        .lead-hs-card > p,
        .lead-chat-card > p {
            margin: 7px 0 0;
            color: #737a86;
            font-size: 12px;
            line-height: 1.55;
        }

        .lead-hs-options {
            display: grid;
            gap: 8px;
            margin-top: 12px;
        }

        .lead-hs-option {
            display: grid;
            grid-template-columns: auto minmax(0, 1fr) auto;
            gap: 10px;
            align-items: center;
            padding: 10px 11px;
            border-radius: 8px;
            text-align: left;
        }

        .lead-hs-option strong {
            color: #d84a22;
            font-size: 13px;
        }

        .lead-hs-option span {
            color: #444b56;
            font-size: 12px;
        }

        .lead-hs-option small {
            color: #9298a2;
            font-size: 10px;
        }

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

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

        .lead-summary-card {
            display: grid;
            gap: 10px;
            margin-top: 14px;
            padding: 14px;
            border: 1px solid #ffd8cc;
            border-radius: 12px;
            background: #fff9f6;
        }

        .lead-summary-card strong {
            color: #2f343d;
            font-size: 14px;
        }

        .lead-summary-card p {
            margin: 0;
            color: #737984;
            font-size: 12px;
            line-height: 1.55;
        }

        .lead-summary-action {
            width: fit-content;
            height: 32px;
            padding: 0 13px;
            border-color: #ff6f49;
            border-radius: 7px;
            background: #ff6f49;
            color: #fff;
            font-size: 12px;
            font-weight: 700;
        }

        .lead-chat-card {
            padding: 14px;
        }

        .lead-chat-kicker {
            display: block;
            margin-bottom: 6px;
            color: #dc4d24;
            font-size: 11px;
            font-weight: 800;
        }

        .lead-chat-list {
            display: grid;
            gap: 8px;
            margin: 12px 0 0;
            padding: 0;
            list-style: none;
        }

        .lead-chat-list li {
            padding: 9px 10px;
            border-radius: 8px;
            background: #f7f8fa;
            color: #555d68;
            font-size: 12px;
            line-height: 1.5;
        }

        .lead-email-content {
            margin: 12px 0 0;
            padding: 11px;
            overflow: auto;
            border-radius: 8px;
            background: #f7f8fa;
            color: #4b525e;
            font-family: inherit;
            font-size: 11px;
            line-height: 1.6;
            white-space: pre-wrap;
        }

        .lead-copy-button {
            height: 30px;
            margin-top: 10px;
            padding: 0 11px;
            border-radius: 6px;
            color: #d84a22;
            font-size: 11px;
        }

        .lead-poster-preview {
            position: relative;
            margin: 12px 0 0;
            overflow: hidden;
            border-radius: 10px;
            background: #1d2a38;
        }

        .lead-poster-preview img {
            width: 100%;
            aspect-ratio: 4 / 3;
            display: block;
            object-fit: cover;
            opacity: 0.72;
        }

        .lead-poster-copy {
            position: absolute;
            inset: auto 0 0;
            padding: 18px;
            background: rgba(15, 27, 40, 0.88);
            color: #fff;
        }

        .lead-poster-copy strong {
            display: block;
            color: #fff;
            font-size: 18px;
        }

        .lead-poster-copy span {
            display: block;
            margin-top: 7px;
            color: #dce8f2;
            font-size: 11px;
            line-height: 1.5;
        }

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

            .lead-overview {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            .lead-overview-card.search {
                grid-column: 1 / -1;
            }
        }
