.marketplace-chat-run,.marketplace-chat-form{font-family:var(--ui-font-sans,inherit);color:var(--text-primary,#252b29);font-size:14px;line-height:1.7;min-width:0;max-width:100%;overflow-wrap:anywhere}
/* Message spacing belongs to the shared chat list, as it does for query results. */
.message-ai.marketplace-chat-run{width:100%;box-sizing:border-box;padding:0;margin:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.marketplace-chat-heading{display:flex;align-items:center;gap:10px;margin-bottom:12px;flex-wrap:wrap}
.marketplace-chat-heading h3,.marketplace-chat-heading strong{font-size:16px;font-weight:600;margin:0}
.marketplace-chat-kind{background:var(--primary-light,#f1f4f2);border-radius:6px;padding:2px 8px;font-size:12px;color:var(--primary,#34423b)}
.marketplace-chat-status{color:var(--text-secondary,#68716b);font-size:12px;font-weight:400;line-height:16px;margin:8px 0}
.marketplace-chat-steps{padding:14px 16px;border:1px solid var(--border-light,#e5e7eb);border-radius:10px;margin:8px 0;background:var(--bg-light,#f8fafc);max-height:400px;overflow:auto}
.marketplace-chat-steps summary,.marketplace-chat-table summary,.marketplace-chat-structured summary{cursor:pointer;font-weight:500}
.marketplace-chat-steps ul{padding:0;margin:0;list-style:none;color:var(--text-secondary,#68716b)}
.marketplace-chat-steps li{position:relative;padding:3px 0 3px 18px;margin:0;font-family:var(--ui-font-sans,inherit);font-size:14px;font-weight:400;line-height:1.65}.marketplace-chat-steps li::before{content:"";position:absolute;left:3px;top:10px;width:6px;height:6px;border-radius:50%;background:var(--text-muted,#9ca3af)}
.marketplace-chat-steps li[data-status="succeeded"],.marketplace-chat-steps li[data-status="running"]{font-weight:550;color:var(--text-primary,#252b29)}.marketplace-chat-steps li[data-status="succeeded"]::before,.marketplace-chat-steps li[data-status="running"]::before{background:var(--primary,#34423b)}
.marketplace-chat-steps li[data-status="complete"]{color:var(--success,#16803d)}.marketplace-chat-steps li[data-status="complete"]::before{background:var(--success,#16a34a)}.marketplace-chat-steps li[data-status="failed"],.marketplace-chat-steps li[data-status="rejected"]{color:var(--error,#b8323c)}
.marketplace-chat-steps li[data-status="correction_failed"]{color:var(--error,#b8323c)}.marketplace-chat-steps li[data-status="correction_failed"]::before{background:var(--error,#b8323c)}
.marketplace-chat-result h4{font-weight:600;margin:18px 0 7px;font-size:14px}
.marketplace-chat-result ul{padding-left:22px;list-style:disc}.marketplace-chat-result li{margin:6px 0}
.marketplace-chat-summary{white-space:pre-wrap;margin-top:18px}.marketplace-chat-findings small{display:block;color:var(--text-secondary,#68716b);font-size:12px}
.marketplace-chat-secondary{font:inherit;font-size:13px;line-height:1.5;padding:7px 12px;border:1px solid var(--border-light,#dce1dc);border-radius:7px;background:var(--white,#fff);color:var(--text-primary,#252b29);cursor:pointer}
.marketplace-chat-secondary:hover{border-color:var(--primary,#34423b);color:var(--primary,#34423b)}
.marketplace-chat-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.marketplace-chat-error{color:var(--error,#b8323c);white-space:pre-wrap;font-size:13px}
.marketplace-chat-error:empty{display:none}.marketplace-chat-hint{font-size:12px;color:var(--text-secondary,#68716b)}
.marketplace-chat-form-wrapper{margin:14px 0}.marketplace-chat-form .workflow-agent-form-actions{gap:8px;flex-wrap:wrap}
.marketplace-chat-form [hidden]{display:none!important}
.marketplace-chat-form .workflow-agent-dropzone{padding:18px;text-align:center;border:1px dashed var(--border-light,#bfc9c1);border-radius:9px;background:var(--bg-light,#f7f8f7);font:inherit;color:var(--primary,#34423b);cursor:pointer;width:100%}
.marketplace-chat-form .workflow-agent-dropzone.dragging{border-color:var(--primary,#34423b);background:var(--primary-light,#eef3ef)}
.marketplace-chat-form textarea,.marketplace-chat-form select{font:inherit;width:100%;max-width:100%;border:1px solid var(--border-light,#dce1dc);border-radius:8px;padding:10px;background:var(--white,#fff);color:var(--text-primary,#252b29);box-sizing:border-box}.marketplace-chat-form textarea{resize:vertical}
.marketplace-table-picker{display:grid;gap:9px;min-width:0}.marketplace-table-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px}.marketplace-table-toolbar input{min-width:0}.marketplace-table-options{max-height:280px;overflow:auto;border:1px solid var(--border-light,#dce1dc);border-radius:8px;background:var(--white,#fff)}.marketplace-table-option{display:grid;grid-template-columns:20px minmax(0,1fr);align-items:start;gap:9px;padding:9px 11px;border-bottom:1px solid var(--border-light,#edf0ee);cursor:pointer}.marketplace-table-option:last-child{border-bottom:0}.marketplace-table-option:hover{background:var(--bg-light,#f7f8f7)}.marketplace-table-option input{width:16px!important;height:16px;margin:3px 0 0}.marketplace-table-option span,.marketplace-table-option strong,.marketplace-table-option small{display:block;min-width:0;overflow-wrap:anywhere}.marketplace-table-option strong{font-weight:550}.marketplace-table-option small{margin-top:2px}.marketplace-table-options>p{margin:0;padding:16px;color:var(--text-secondary,#68716b);text-align:center}
.marketplace-chat-form small{color:var(--text-secondary,#68716b);font-size:12px}.marketplace-chat-form button:disabled{opacity:.6;cursor:wait}
.marketplace-chat-file{position:relative;display:block;width:92px;height:72px;flex:0 0 92px;border:1px solid var(--border-light,#dce1dc);border-radius:8px;background:var(--white,#fff)}
.marketplace-chat-file-preview{display:grid!important;width:100%;height:100%;padding:0!important;place-items:center;border:0!important;border-radius:8px!important;background:transparent!important}
.marketplace-chat-file-preview:hover{background:var(--primary-light,#eef3ef)!important}
.marketplace-chat-file-remove{position:absolute;z-index:2;top:-7px;right:-7px;display:grid;place-items:center;width:22px;height:22px;padding:0;border:2px solid #fff;border-radius:50%;background:#111827;color:#fff;cursor:pointer}
.marketplace-chat-file-remove:hover{background:#000;color:#fff}
.marketplace-chat-form .workflow-agent-file-list{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.marketplace-chat-file-preview .workflow-source-file-icon{color:var(--primary,#34423b);font-size:27px;line-height:1}
.marketplace-chat-file-preview .workflow-source-file-type{position:absolute;right:5px;bottom:4px;color:var(--text-secondary,#68716b);font-size:9px;font-weight:700;line-height:12px}
.marketplace-chat-file-preview .workflow-source-thumbnail{display:block;width:100%;height:100%;border-radius:7px;object-fit:cover}
.marketplace-chat-structured{margin:15px 0}.marketplace-chat-artifact{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px;background:var(--bg-light,#f7f8f7);border-radius:8px;margin-top:14px}.marketplace-chat-artifact>span:first-child{flex:1;min-width:100px}
.marketplace-chat-scroll{max-width:100%;overflow:auto}.marketplace-chat-table{margin:14px 0}.marketplace-chat-table table{border-collapse:collapse;font-size:12px;margin-top:8px}.marketplace-chat-table td,.marketplace-chat-table th{padding:7px 10px;border:1px solid var(--border-light,#dce1dc);white-space:nowrap;text-align:left}
.marketplace-chat-preview{display:block;width:100%;height:560px;border:1px solid var(--border-light,#dce1dc);border-radius:8px;margin-top:8px}
@media(max-width:600px){.marketplace-chat-run{padding:0}.marketplace-chat-form .workflow-agent-form-actions>span{flex-basis:100%}.marketplace-chat-preview{height:400px}.marketplace-table-toolbar{grid-template-columns:1fr}.marketplace-table-toolbar button{width:100%}}

.marketplace-report-link{margin:8px 0 12px}.marketplace-report-link.expert-card{padding:0}.marketplace-report-link>.marketplace-chat-secondary{display:flex;align-items:center;gap:8px;width:100%;min-height:52px;text-align:left;font-size:14px;font-weight:400;padding:14px 16px;border:1px solid transparent;border-radius:8px;background:#f8f9fc;color:var(--text-primary,#252b29)}.marketplace-report-link>.marketplace-chat-secondary:hover{background:var(--primary-light,#eef1ee);border-color:var(--border-light,#dce1dc)}.marketplace-chat-narrative{margin:12px 0}.marketplace-chat-narrative summary{cursor:pointer}.marketplace-inline-choice{display:flex;align-items:center;gap:8px;padding:6px}.marketplace-inline-choice input{width:auto}.marketplace-knowledge-options{max-height:220px;overflow:auto}.marketplace-action-dialog{width:min(760px,calc(100% - 24px));max-height:90vh;padding:24px;border:1px solid var(--border-light,#dce1dc);border-radius:12px;background:var(--white,#fff);color:var(--text-primary,#252b29);font:14px/1.7 var(--ui-font-sans,system-ui)}.marketplace-action-dialog::backdrop{background:#0006}.marketplace-action-dialog .marketplace-chat-heading{justify-content:space-between}.marketplace-action-dialog textarea,.marketplace-action-dialog input,.marketplace-action-dialog select{font:inherit;padding:9px;border:1px solid var(--border-light,#dce1dc);border-radius:7px;max-width:100%;color:inherit;background:var(--white,#fff)}.marketplace-action-dialog textarea,.marketplace-action-dialog input[readonly]{width:100%;box-sizing:border-box}.marketplace-action-dialog pre{white-space:pre-wrap;overflow-wrap:anywhere;background:var(--bg-light,#f6f7f8);padding:12px;border-radius:8px}.marketplace-action-dialog button:disabled{opacity:.5;cursor:wait}.marketplace-custom-fields input{font:inherit;padding:9px;width:100%;box-sizing:border-box;border:1px solid var(--border-light,#dce1dc);border-radius:7px;background:var(--white,#fff);color:inherit}

/* Match the expert completion layout while inheriting the active appearance. */
.marketplace-report-link>.marketplace-chat-secondary{line-height:inherit}
.marketplace-chat-icon{display:inline-block;width:1em;height:1em;flex:0 0 1em;vertical-align:-.125em}
.marketplace-chat-indicator{padding:11px 14px;font-size:14px;font-weight:400;line-height:1.5;border:1px solid var(--border-light,#dce1dc);border-color:color-mix(in srgb,var(--primary,#34423b) 14%,var(--border-light,#dce1dc));border-radius:8px;background:var(--primary-light,#f6f8f6);background:color-mix(in srgb,var(--primary-light,#eef1ee) 34%,var(--white,#fff));margin-bottom:8px}
.marketplace-chat-indicator .marketplace-chat-icon{color:var(--primary,#34423b)}
.marketplace-chat-run>.marketplace-chat-actions>.marketplace-chat-secondary{display:inline-flex;align-items:center;gap:6px;padding:4px 12px;min-height:0;border-radius:16px;font-size:12px;line-height:1.7}
.marketplace-chat-agent-source{display:inline-flex;align-items:center;gap:6px;max-width:min(100%,420px);box-sizing:border-box;padding:4px 12px;border:1px solid var(--border-light,#dce1dc);border-radius:16px;background:var(--white,#fff);color:var(--text-secondary,#68716b);font-size:12px;line-height:1.7}.marketplace-chat-agent-source>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.marketplace-chat-agent-source .marketplace-chat-icon{color:inherit}
.marketplace-chat-feedback{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:12px;padding-top:10px;border-top:1px solid var(--border-light,#dce1dc);color:var(--text-secondary,#68716b);font-size:12px}
.marketplace-chat-feedback:empty{display:none}.marketplace-chat-feedback-prompt{max-width:100%;overflow-wrap:anywhere}
.marketplace-chat-feedback>.marketplace-chat-secondary{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;font-size:12px;color:var(--text-secondary,#68716b);border-radius:6px}
.marketplace-chat-feedback-status:empty{display:none}.marketplace-chat-feedback-status{flex-basis:100%}
.marketplace-chat-secondary:disabled{opacity:.65;cursor:default}.marketplace-chat-secondary[aria-pressed="true"]{color:var(--primary,#34423b);border-color:var(--primary,#34423b);background:var(--primary-light,#eef1ee)}
.marketplace-chat-secondary:focus-visible,.marketplace-chat-details>summary:focus-visible{outline:2px solid var(--primary,#34423b);outline-offset:3px}
.marketplace-chat-details{margin-top:12px;color:var(--text-secondary,#68716b);font-size:12px}.marketplace-chat-details>summary{cursor:pointer;padding:6px 0}.marketplace-chat-details[hidden]{display:none}.marketplace-chat-details .marketplace-chat-narrative{font-size:14px;color:var(--text-primary,#252b29)}
@media(max-width:600px){.marketplace-chat-feedback-prompt{flex-basis:100%}.marketplace-chat-steps{padding:12px}.marketplace-chat-indicator{padding:10px 12px}}

/* Completion controls use the same filled icons and measurements as expert mode. */
.marketplace-chat-run>.marketplace-chat-actions>.copy-btn:hover{background:var(--gray-hover,#ecefed)}
.marketplace-chat-action-status{flex-basis:100%;color:var(--text-secondary,#68716b);font-size:12px}.marketplace-chat-action-status:empty{display:none}
.marketplace-feedback-form{flex:1 0 100%;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:8px}.marketplace-feedback-form[hidden]{display:none}
.marketplace-feedback-form textarea{font:inherit;color:inherit;background:var(--white,#fff);box-sizing:border-box;min-width:0;min-height:68px;resize:vertical;border:1px solid var(--input-border,#cbd4cd);border-radius:6px;padding:8px;outline:none}.marketplace-feedback-form textarea:focus{border-color:var(--primary,#34423b)}
.marketplace-feedback-submit{background:var(--primary,#303831);color:#fff;border-color:var(--primary,#303831);padding:8px 12px}.marketplace-feedback-submit:hover{background:var(--primary-dark,#242b25);color:#fff}.marketplace-chat-feedback-status>button{margin-left:8px}
.marketplace-completion-dialog{box-sizing:border-box;position:fixed;inset:0;margin:auto;padding:20px;width:min(390px,calc(100vw - 28px));max-height:calc(100dvh - 28px);overflow:auto;border:1px solid var(--border-light,#dce1dc);border-radius:8px;background:var(--white,#fff);color:var(--text-primary,#1f2937);font:14px/1.5 var(--ui-font-sans,system-ui);box-shadow:0 18px 48px #0f172a33}
.marketplace-completion-dialog::backdrop{background:#0006}.marketplace-completion-dialog h3{margin:0;font-size:16px;font-weight:600;line-height:24px}.marketplace-completion-dialog button{cursor:pointer}.marketplace-completion-dialog button:disabled{opacity:.6;cursor:wait}.marketplace-completion-dialog button:focus-visible{outline:2px solid var(--primary,#34423b);outline-offset:2px}
.marketplace-web-share h3{display:flex;align-items:center;gap:10px;padding-right:32px}.marketplace-share-close{position:absolute;right:12px;top:16px;width:32px;height:32px;border:0;background:transparent;color:var(--text-muted,#929b95)}.marketplace-web-share>p{margin:16px 0;color:var(--text-muted,#929b95);font-size:12px;line-height:1.6}.marketplace-share-url{box-sizing:border-box;width:100%;padding:10px;border:1px solid var(--input-border,#cbd4cd);border-radius:6px;background:var(--white,#fff);color:inherit;font:inherit}.marketplace-share-feedback:empty{display:none}
.marketplace-qr-wrap{box-sizing:border-box;display:grid;place-items:center;width:208px;min-height:208px;margin:0 auto 14px;padding:12px;border:1px solid var(--border-light,#dce1dc);border-radius:8px;background:#fff;color:#68716b;font-size:12px;text-align:center}.marketplace-qr-wrap img{width:184px;height:184px;max-width:100%;object-fit:contain}.marketplace-qr-wrap [hidden]{display:none}
.marketplace-share-card{display:flex;align-items:center;gap:12px;margin-top:16px;padding:14px;border:1px solid var(--border-light,#dce1dc);border-radius:8px;background:var(--white,#fff)}.marketplace-share-card img{width:52px;height:52px;flex:none;object-fit:contain;border-radius:8px;background:#fff}.marketplace-share-card>div{min-width:0}.marketplace-share-card strong{display:block;font-size:14px;line-height:1.5;overflow-wrap:anywhere}.marketplace-share-card p{margin:5px 0 0;color:var(--text-secondary,#68716b);font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.marketplace-share-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin-top:14px}.marketplace-share-actions button,.marketplace-share-actions a{display:inline-flex;min-height:40px;padding:0 14px;align-items:center;justify-content:center;gap:7px;border-radius:6px;font-size:14px;text-decoration:none}.marketplace-share-actions .primary{border-color:var(--primary,#303831);color:#fff;background:var(--primary,#303831)}.marketplace-share-actions .primary:hover{background:var(--primary-dark,#242b25)}
.marketplace-task-schedule{width:min(286px,calc(100vw - 32px));padding:18px}.marketplace-task-schedule h3{font-size:18px;margin-bottom:16px}.marketplace-task-schedule .task-time-picker{display:grid;grid-template-columns:minmax(0,1fr) 14px minmax(0,1fr);align-items:center;gap:6px;width:100%;height:176px;overflow:hidden;padding:8px;border:1px solid #e5e7eb;border-radius:8px;background:#f8fafc;box-sizing:border-box}.marketplace-task-schedule .task-time-group{min-width:0;min-height:0;height:100%;overflow:hidden;display:flex;flex-direction:column;gap:4px}.marketplace-task-schedule .task-time-label{color:#6b7280;font-size:12px;line-height:20px;text-align:center}.marketplace-task-schedule .task-time-column{min-width:0;min-height:0;height:132px;max-height:132px;flex:0 0 132px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;scroll-snap-type:y proximity;border-radius:6px;background:#fff}.marketplace-task-schedule .task-time-column::-webkit-scrollbar{display:none}.marketplace-task-schedule .task-time-option{font:17px/38px var(--ui-font-sans,system-ui);padding:0;width:100%;min-height:38px;display:block;border:0;border-radius:4px;background:transparent;color:#4b5563;text-align:center;scroll-snap-align:center}.marketplace-task-schedule .task-time-option.active{background:#ede9fe;color:#6d28d9;font-weight:650}.marketplace-task-schedule .task-time-separator{color:#6b7280;font-size:22px;line-height:1;text-align:center}.marketplace-time-actions{display:flex;gap:8px;margin-top:16px}.marketplace-time-actions button{flex:1;min-width:0;padding:8px 10px;font-size:16px;border:0;border-radius:6px;background:#e5e7eb;color:#1f2937}.marketplace-time-actions button:last-child{background:#9333ea;color:#fff}
@media(max-width:640px){.marketplace-feedback-form{grid-template-columns:1fr}.marketplace-feedback-form button{width:100%}}
.marketplace-chat-presentation-note{margin:10px 0;padding:12px 14px;border-left:3px solid #7651d6;background:#f6f2ff;color:#37313f}
.marketplace-chat-presentation-note strong,.marketplace-chat-presentation-note small{display:block}
.marketplace-chat-presentation-note small{margin-top:4px;color:#6e6874;line-height:1.5}

/* Main chat mounts the shared business form without a Bot conversation. */
.marketplace-business-form .bot-business-form-dialog.bot-chat-embedded-form[open]{display:block;position:static;inset:auto;transform:none;width:100%;max-width:100%;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;box-sizing:border-box}
.marketplace-business-form .bot-chat-embedded-form header{justify-content:flex-start;gap:10px;flex-wrap:wrap}
.marketplace-business-form .bot-chat-embedded-form h3{margin:0;font-size:16px}
.marketplace-business-form .bot-chat-embedded-form footer{margin-top:20px;flex-wrap:wrap}
.marketplace-business-form .bot-chat-embedded-form footer button{min-height:40px;padding:8px 22px}
.marketplace-business-form .bot-chat-embedded-form input,.marketplace-business-form .bot-chat-embedded-form select,.marketplace-business-form .bot-chat-embedded-form textarea{min-width:0;box-sizing:border-box}
@media(max-width:600px){.marketplace-business-form .bot-business-fields{grid-template-columns:minmax(0,1fr)}.marketplace-business-form .bot-chat-embedded-form footer button{width:100%;justify-content:center}}
