.sam-settings-heading,.sam-section-heading{display:flex;align-items:center;justify-content:space-between;gap:14px}.sam-settings-heading h3,.sam-section-heading h3{margin:0}.sam-badge{display:inline-flex;padding:4px 8px;border-radius:30px;background:#edf1f5;color:#587084;font-size:11px;font-weight:600;white-space:nowrap}.sam-badge.active{background:#e1f3e9;color:#1d7048}.sam-controls{display:grid;gap:13px;margin:22px 0}.sam-channel-options{display:flex;flex-wrap:wrap;gap:14px}.sam-control-label{display:flex;align-items:flex-start;gap:10px}.sam-control-label input{margin:3px 0 0;flex:0 0 auto;width:17px;height:17px}.sam-control-label span{display:block}.sam-control-label small{display:block;color:#71818b;font-weight:400;margin-top:4px;line-height:1.5}.sam-settings-details{margin:18px 0;padding:12px;border:1px solid #e5eaf0;border-radius:10px}.sam-settings-details summary{cursor:pointer;font-weight:600}.sam-settings-details p{font-size:12px;color:#657783;line-height:1.6}.sam-open-lab{margin:18px 0 0;padding-top:18px;border-top:1px solid #e7edf1}.sam-open-lab p{color:#657783;font-size:13px;line-height:1.5}
.sam-lab-dialog{width:min(1190px,96vw);max-width:1190px;max-height:94dvh;padding:24px;overflow:auto}.sam-lab-dialog>.dialog-heading{margin-bottom:18px}.sam-lab-grid{display:grid;grid-template-columns:minmax(290px,.9fr) minmax(330px,1.1fr);gap:22px;min-height:0;max-height:calc(94dvh - 150px)}.sam-knowledge{overflow:auto;padding-right:8px}.sam-test{display:flex;flex-direction:column;min-height:0;border:1px solid #dfe7ed;border-radius:14px;overflow:hidden;background:#f6f8fb}.sam-test-top{padding:16px;background:white;border-bottom:1px solid #e4ebf0}.sam-test-top h3{margin:0 0 5px;font-size:16px}.sam-test-top p{font-size:12px;line-height:1.5;color:#657783;margin:0 0 12px}.sam-test-context{display:grid;grid-template-columns:1fr 1fr;gap:9px}.sam-test-context label{font-size:11px;gap:4px}.sam-test-context input,.sam-test-context select{padding:8px;font-size:12px;min-width:0;width:100%}.sam-test-shortcuts{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}.sam-test-shortcuts button{font-size:10px;padding:5px 7px}.sam-test-messages{padding:16px;display:flex;flex-direction:column;gap:12px;overflow:auto;min-height:120px;flex:1}.sam-bubble{max-width:94%;padding:12px 14px;background:white;border:1px solid #e3e9ee;border-radius:12px 12px 12px 3px;align-self:flex-start;box-shadow:0 2px 5px #102d4b04}.sam-bubble.customer{align-self:flex-end;background:#e6f0fa;border-color:#d5e5f3;border-radius:12px 12px 3px 12px}.sam-bubble>strong{font-size:11px;color:#244862;display:block}.sam-bubble p{font-size:13px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0}.sam-bubble small{display:block;color:#6e8292;font-size:10px;line-height:1.45}.sam-inline-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.sam-inline-actions button{font-size:11px}.sam-test-form{display:flex;gap:8px;padding:12px;background:white;border-top:1px solid #e3e9ee}.sam-test-form textarea{resize:none;flex:1;min-width:0;min-height:44px;font-size:13px}.sam-test-form button{align-self:stretch}.sam-test-status{padding:0 13px 12px;margin:0;color:#6a7d8b;background:white;font-size:10px;line-height:1.5}.sam-group-editor{margin-top:14px;padding:16px;border:1px solid #e1e8ed;border-radius:12px;background:#fbfcfd}.sam-group-editor h4{margin:0 0 12px;font-size:14px}.sam-group-editor form{display:grid;gap:11px}.sam-group-editor label{font-size:12px}.sam-group-editor input,.sam-group-editor textarea,.sam-group-editor select{font-size:13px}.sam-group-help{font-size:11px;color:#728493;line-height:1.6;margin:0}.sam-groups{display:grid;gap:9px;margin-top:12px}.sam-knowledge-card{padding:13px;border:1px solid #e3e9ee;border-radius:10px}.sam-knowledge-card>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:8px}.sam-knowledge-card strong{font-size:12px}.sam-knowledge-card p{font-size:11px;color:#778a99;margin:7px 0}.sam-unmatched{margin-top:20px}.sam-unmatched h4{margin:0 0 10px}.sam-question{display:block;width:100%;border:1px solid #e1e8ef;border-radius:9px;padding:10px;background:white;text-align:left;font-size:12px;line-height:1.4;cursor:pointer;margin-bottom:7px;color:#2b465a}.sam-question small{display:block;color:#7e91a0;font-size:10px;margin-top:5px}.sam-form-status{font-size:12px;color:#a34034;line-height:1.5;min-height:16px;margin:0}.sam-lab-private{font-size:11px;color:#718492;margin-top:5px}
@media(max-width:800px){.sam-lab-dialog{padding:16px;overflow:auto}.sam-lab-grid{grid-template-columns:1fr;max-height:none}.sam-test{min-height:570px;max-height:80dvh;grid-row:1}.sam-knowledge{overflow:visible;padding:0}.sam-test-context{grid-template-columns:1fr 1fr}.sam-settings-heading{align-items:flex-start}.sam-lab-dialog>.dialog-heading h2{font-size:19px}}

#sam-settings-status{color:#657783}


.sam-sales-section{margin-top:24px;padding-top:20px;border-top:1px solid #e7edf1}
.sam-sales-section>.muted{font-size:12px;line-height:1.6;margin:9px 0}
.sam-sales-filter{display:flex;flex-direction:column;gap:6px;font-size:12px;max-width:260px;margin:12px 0}
.sam-sales-filter select{padding:8px}
.sam-sales-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:12px;max-height:510px;overflow:auto;padding:4px}
.sam-sale-card{border:1px solid #dfe7ed;background:#fff;border-radius:11px;padding:14px;display:grid;gap:9px;align-content:start}
.sam-sale-card-header{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}
.sam-sale-card-header strong{font-size:13px}.sam-sale-card small{font-size:10px;color:#71818b}
.sam-sale-card p{font-size:12px;color:#3d5665;line-height:1.5;margin:0}
.sam-sale-card ul{padding-left:18px;max-height:100px;overflow:auto;margin:0;font-size:11px;line-height:1.5}
.sam-sale-card label{font-size:11px;display:grid;gap:5px}
.sam-sale-card input,.sam-sale-card select{min-width:0;width:100%;padding:8px;font-size:12px}
.sam-sale-card button{justify-self:start}

.sam-sales-pages{display:flex;align-items:center;justify-content:center;gap:12px;margin:12px 0}.sam-sales-pages span{font-size:12px;color:#657783}

.sam-test-order{margin:0 13px 10px;padding:11px 12px;border:1px solid #d8e6ef;background:#fff;border-radius:10px;font-size:12px}
.sam-test-order[hidden],.sam-test-receipt button[hidden]{display:none}
.sam-test-order-heading{display:flex;justify-content:space-between;align-items:center;gap:8px}
.sam-test-order-heading strong{font-size:13px}
.sam-test-order-heading span{font-size:10px;color:#657783}
.sam-test-order p{margin:7px 0;line-height:1.5}
.sam-test-order ol{margin:7px 0;padding-left:20px;max-height:105px;overflow:auto;line-height:1.65;font-size:11px}
.sam-test-receipt{padding:0 13px 10px;display:flex;gap:9px;align-items:center;flex-wrap:wrap}
.sam-test-receipt>span{font-size:11px;color:#546e82}

/* Campos numéricos devem prevalecer sobre a regra dos checkboxes (17px). */
.sam-controls .sam-control-label #sam-message-delay{width:160px;min-width:160px;max-width:100%;height:40px;margin:0;padding:8px 12px;box-sizing:border-box;font:inherit;font-variant-numeric:tabular-nums;border:1px solid #cbd5df;border-radius:8px;text-align:center;flex:0 0 160px}
@media(max-width:550px){.sam-controls .sam-control-label:has(#sam-message-delay){flex-wrap:wrap}.sam-controls .sam-control-label #sam-message-delay{width:160px;flex-basis:160px}}

/* Fila de treinamento: pergunta original, resposta aprovada e exemplos de intenção. */
.sam-training-item{border:1px solid var(--border,#d7e3ec);border-radius:12px;padding:13px;margin:10px 0;display:grid;gap:8px}
.sam-training-item p{white-space:pre-wrap;margin:0;overflow-wrap:anywhere}
.sam-training-item label{display:grid;gap:5px;font-size:12px;font-weight:600}
.sam-training-item textarea{width:100%;min-height:64px;resize:vertical}
.sam-training-item small{color:var(--muted,#64748b)}
.sam-training-item button{justify-self:start}

.sam-product-research{margin:16px 0;padding:14px;border:1px solid #dde7ee;border-radius:12px;display:grid;gap:10px}
.sam-product-research>p{margin:0}
.sam-product-research input:not([type=checkbox]){min-width:190px;max-width:100%}
.sam-product-research form{display:grid;gap:10px}
.sam-product-research form[hidden]{display:none}
.sam-product-research label{display:grid;gap:5px;font-size:12px;font-weight:600}
.sam-product-research .check-label{display:flex;align-items:center}
.sam-product-research textarea{width:100%;resize:vertical}
.sam-product-research-results{display:flex;flex-wrap:wrap;gap:6px}

/* Foto da Sam no laboratório, sem interferir nas mensagens do cliente. */
.sam-bubble.assistant{position:relative;margin-left:32px}
.sam-bubble.assistant>.sam-lab-avatar{position:absolute;left:-37px;top:0;width:29px;height:29px;object-fit:cover;border-radius:50%;border:1px solid #b6d9ed;box-shadow:0 1px 4px #123e5820}
