:root{--cm-deep:#123d32;--cm-green:#1e5947;--cm-accent:#b9965e;--cm-ink:#172a25;--cm-muted:#62736e;--cm-paper:#faf9f5;--cm-border:#e4e9e5;--cm-white:#fff}#cmchat-root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--cm-ink);font-size:14px;line-height:1.48}#cmchat-root *{box-sizing:border-box}#cmchat-root button,#cmchat-root input,#cmchat-root textarea{font:inherit}#cmchat-root button{cursor:pointer}#cmchat-root .cm-launch{position:fixed;right:24px;bottom:24px;z-index:2147483000;border:0;display:flex;align-items:center;gap:10px;padding:14px 18px;border-radius:999px;background:var(--cm-deep);color:#fff;box-shadow:0 8px 34px #06281c4a;letter-spacing:.01em;font-weight:600}#cmchat-root .cm-launch svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2}#cmchat-root .cm-launch:hover{background:#245b4a}#cmchat-root .cm-panel{position:fixed;z-index:2147483001;right:22px;bottom:84px;width:min(402px,calc(100vw - 24px));height:min(660px,calc(100dvh - 105px));display:flex;flex-direction:column;border:1px solid var(--cm-border);border-radius:20px;background:var(--cm-white);box-shadow:0 22px 70px #10291e3b;overflow:hidden}#cmchat-root .cm-hide{display:none!important}#cmchat-root .cm-head{display:flex;align-items:center;gap:11px;padding:15px;background:var(--cm-deep);color:#fff;flex-shrink:0}#cmchat-root .cm-mark{display:grid;place-items:center;width:36px;height:36px;border:1px solid #ffffff72;border-radius:12px;color:#fff;font-family:Georgia,serif;font-weight:bold;font-size:23px}#cmchat-root .cm-head-text{flex:1;min-width:0}#cmchat-root .cm-brand{font-family:Georgia,"Times New Roman",serif;font-size:17px;letter-spacing:.01em}#cmchat-root .cm-sub{font-size:11px;color:#e5eee9}#cmchat-root .cm-close{background:transparent;color:#fff;border:1px solid #ffffff4f;border-radius:9px;width:30px;height:30px;font-size:22px;line-height:1}#cmchat-root .cm-progress{height:3px;background:#e6e9e2}#cmchat-root .cm-progress-fill{height:100%;background:var(--cm-accent);width:0;transition:width .25s}#cmchat-root .cm-body{flex:1;min-height:0;overflow-y:auto;background:#fcfcfa;padding:16px 14px 24px;overscroll-behavior:contain}#cmchat-root .cm-msg{display:flex;gap:8px;margin:0 0 12px;max-width:94%;animation:cmfade .16s ease}@keyframes cmfade{from{transform:translateY(4px);opacity:0}to{transform:translateY(0);opacity:1}}#cmchat-root .cm-msg.cm-user{margin-left:auto;flex-direction:row-reverse}#cmchat-root .cm-avatar{border-radius:10px;width:24px;height:24px;flex-shrink:0;display:grid;place-items:center;background:#e7eee8;color:var(--cm-deep);font-weight:bold;font-size:12px;font-family:Georgia,serif}#cmchat-root .cm-bubble{border:1px solid #e6eae5;border-radius:14px 14px 14px 4px;padding:11px 12px;background:#fff;white-space:pre-wrap;overflow-wrap:anywhere}#cmchat-root .cm-user .cm-bubble{border:0;background:var(--cm-green);color:#fff;border-radius:14px 14px 4px 14px}#cmchat-root .cm-foot{flex-shrink:0;border-top:1px solid var(--cm-border);background:#fff;padding:12px 14px 10px;max-height:55%;overflow:auto}#cmchat-root .cm-prompt{font-size:12px;color:var(--cm-muted);margin-bottom:8px}#cmchat-root .cm-options{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:8px}#cmchat-root .cm-choice{border:1px solid #cddbd1;border-radius:10px;background:#fff;color:var(--cm-deep);padding:9px 11px;font-weight:600;text-align:left;transition:.15s}#cmchat-root .cm-choice:hover{background:#e8f0e9;border-color:#9ebeab}#cmchat-root .cm-inputrow{display:flex;align-items:flex-end;gap:8px}#cmchat-root input[type=text],#cmchat-root input[type=email],#cmchat-root input[type=tel],#cmchat-root textarea{display:block;min-width:0;flex:1;width:100%;resize:vertical;border:1px solid #ccd7d0;border-radius:11px;padding:11px 12px;outline:0;background:#fff;color:var(--cm-ink)}#cmchat-root textarea{min-height:84px;max-height:145px}#cmchat-root input:focus,#cmchat-root textarea:focus{border-color:#3a7b5d;box-shadow:0 0 0 2px #b6dcc626}#cmchat-root .cm-send{padding:11px 13px;border:0;border-radius:11px;background:var(--cm-deep);color:#fff;font-weight:650}#cmchat-root .cm-send:disabled{opacity:.5;cursor:not-allowed}#cmchat-root .cm-smallactions{display:flex;gap:9px;align-items:center;margin-top:8px}#cmchat-root .cm-minor{background:transparent;border:0;color:var(--cm-green);font-size:12px;text-decoration:underline;padding:2px}#cmchat-root .cm-error{font-size:12px;color:#a93232;padding:7px 0;min-height:17px}#cmchat-root .cm-notice{font-size:10px;color:#67716b;text-align:center;padding-top:5px}#cmchat-root .cm-accept{display:flex;align-items:flex-start;gap:9px;margin:5px 0 11px;font-size:12px;color:#334c41}#cmchat-root .cm-accept input{margin-top:4px;accent-color:var(--cm-green)}#cmchat-root a{color:var(--cm-green);text-decoration:underline}#cmchat-root .cm-debug{font-size:11px;color:#95763b;text-align:center;background:#fff6de;padding:7px 10px;border-radius:6px;margin:8px 14px 0}#cmchat-root .cm-file{font-size:12px;margin:8px 0}#cmchat-root .cm-recap{margin:8px 0;padding:12px;border:1px solid #dfe7dd;border-radius:12px;background:#f4f7f2;font-size:12px;white-space:pre-wrap}#cmchat-root .cm-ref{color:#174d36;font-size:18px;font-weight:700;letter-spacing:.03em}#cmchat-root .cm-mainpage-demo{font-family:Georgia,serif;background:var(--cm-paper);min-height:100vh;display:grid;place-items:center;padding:32px}#cmchat-root .cm-mainpage-demo h1{font-family:Georgia,serif;font-size:clamp(36px,7vw,70px);margin:0;color:var(--cm-deep);font-weight:400}#cmchat-root .cm-mainpage-demo p{max-width:570px;color:#4d6056;font-family:Inter,system-ui,sans-serif}#cmchat-root .cm-mainpage-demo .cm-hero{max-width:980px;width:100%;border-top:3px solid var(--cm-accent);padding:60px 15px}#cmchat-root .cm-mainpage-demo .cm-eyebrow{letter-spacing:.2em;font:600 12px Inter,system-ui,sans-serif;color:#9a7a4c;text-transform:uppercase}#cmchat-root .cm-demo-pill{display:inline-block;font:600 12px Inter,system-ui,sans-serif;border:1px solid #bdcfc2;border-radius:50px;padding:10px 14px;margin-top:25px}#cmchat-root .cm-mainpage-demo aside{font-family:Inter,system-ui,sans-serif;font-size:12px;color:var(--cm-muted);margin-top:64px}#cmchat-root .cm-splash{max-width:540px;margin:0 auto}#cmchat-root .cm-uploadrow{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:8px 0}#cmchat-root .cm-uploadrow input{font-size:11px;max-width:200px}#cmchat-root .cm-help{color:var(--cm-muted);font-size:11px}#cmchat-root .cm-titleline{font-weight:700;color:var(--cm-deep);margin-bottom:4px}@media(max-width:580px){#cmchat-root .cm-panel{right:0;bottom:0;width:100vw;height:100dvh;max-height:none;border-radius:0;border:0}#cmchat-root .cm-launch{bottom:18px;right:16px}#cmchat-root .cm-foot{padding-bottom:calc(9px + env(safe-area-inset-bottom))}#cmchat-root .cm-mainpage-demo .cm-hero{padding-top:10px}}

#cmchat-root .cm-inputrow.cm-stacked{flex-direction:column;align-items:stretch;gap:8px}#cmchat-root .cm-inputrow.cm-stacked>.cm-send{width:100%}#cmchat-root .cm-inputrow.cm-stacked>.cm-recap{width:100%;margin:0}#cmchat-root .cm-inputrow.cm-stacked>.cm-help{width:100%}#cmchat-root .cm-inputrow.cm-stacked>.cm-uploadrow{width:100%;justify-content:flex-start}#cmchat-root .cm-inputrow.cm-stacked>.cm-uploadrow input{flex:1;min-width:130px}

#cmchat-root .cm-site-logo{height:38px;max-width:95px;min-width:34px;object-fit:contain;flex:0 0 auto} .cm-nav-chat-link{cursor:pointer;text-decoration:none;font:inherit;color:inherit;white-space:nowrap} .cm-nav-chat-link:hover{text-decoration:underline} #cmchat-root .cm-avatar{font-family:Arial,sans-serif;font-size:16px}
/* Versão 3 — conversa híbrida, mantendo a identidade visual e apenas o botão flutuante */
#cmchat-root .cm-inputrow:has(.cm-ai-note){flex-wrap:wrap}
#cmchat-root .cm-inputrow .cm-ai-note{flex:0 0 100%;font-size:11px;color:var(--cm-muted);line-height:1.45}
#cmchat-root .cm-ai-field{display:flex;flex-direction:column;gap:4px;width:100%;font-size:12px;font-weight:600;color:var(--cm-deep)}
#cmchat-root .cm-ai-field input,#cmchat-root .cm-ai-field textarea,#cmchat-root .cm-ai-field select{width:100%;min-width:0;border:1px solid #ccd7d0;border-radius:10px;padding:9px 10px;background:#fff;color:var(--cm-ink);font:inherit;font-weight:400}
#cmchat-root .cm-ai-field select:focus{outline:2px solid #b6dcc6;outline-offset:1px}
#cmchat-root .cm-foot:has(.cm-ai-field){max-height:68%}
#cmchat-root .cm-smallactions{flex-wrap:wrap}
#cmchat-root .cm-ai-field textarea{min-height:80px;max-height:170px}
#cmchat-root .cm-inputrow .cm-ai-note + textarea{flex:1 1 55%}
@media(max-width:580px){#cmchat-root .cm-foot:has(.cm-ai-field){max-height:75%}}

#cmchat-root .cm-uploadrow input[type=file]{font:inherit;font-size:11px;max-width:205px;color:var(--cm-muted)}
#cmchat-root .cm-uploadrow input[type=file]::file-selector-button{background:#f1f5f0;border:1px solid #cbd8ce;border-radius:8px;padding:8px;color:var(--cm-deep);cursor:pointer;margin-right:5px}

/* Correção 3.2: o rodapé não deve ocupar o chat inteiro; dados longos são expansíveis */
#cmchat-root .cm-foot:has(.cm-ai-field){max-height:62%}
#cmchat-root .cm-recap-details{width:100%;border:1px solid #dfe7dd;border-radius:10px;background:#f4f7f2;color:var(--cm-deep)}
#cmchat-root .cm-recap-details>summary{padding:11px 13px;cursor:pointer;font-weight:600;font-size:12px}
#cmchat-root .cm-recap-details .cm-recap{border:0;border-top:1px solid #dfe7dd;margin:0;max-height:180px;overflow:auto;background:transparent;white-space:pre-wrap;overflow-wrap:anywhere}
#cmchat-root .cm-foot:has(.cm-recap-details){max-height:46%}
#cmchat-root .cm-ai-field textarea{max-height:120px}

/* SAGA Atendimento v3.3 — comprovante verificável e ações de cópia */
#cmchat-root .cm-protocol-card{width:100%;padding:15px;border:1px solid #b4cbbd;border-radius:15px;background:#f3f7f1;color:var(--cm-deep);display:flex;flex-direction:column;gap:5px;overflow-wrap:anywhere}
#cmchat-root .cm-protocol-eyebrow{font-size:10px;letter-spacing:.11em;font-weight:800;color:#487555}
#cmchat-root .cm-protocol-caption{font-size:12px;font-weight:600;color:#465f51}
#cmchat-root .cm-protocol-card .cm-ref{font-size:clamp(17px,4.5vw,23px);letter-spacing:.035em;line-height:1.3;overflow-wrap:anywhere}
#cmchat-root .cm-protocol-date,#cmchat-root .cm-protocol-status{font-size:12px;color:#466153}
#cmchat-root .cm-protocol-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
#cmchat-root .cm-protocol-actions .cm-choice{flex:1 1 140px;text-align:center}
#cmchat-root .cm-foot:has(.cm-protocol-card){max-height:65%}
@media(max-width:580px){#cmchat-root .cm-protocol-card{padding:12px}#cmchat-root .cm-foot:has(.cm-protocol-card){max-height:68%}}
