/* SEL.IA — "Converse com os Dados" (BDGD) didactic + dynamic demo (área Técnica).
   3 perguntas técnicas → resposta + gráfico animado + leitura rápida. Fixed 1200×700, light. */

.dd-scene { position: relative; width: 1200px; height: 700px; background: #f6f7f9; border-radius: 16px; overflow: hidden; font-family: var(--font-sans,"Outfit",system-ui,sans-serif); box-shadow: 0 30px 70px rgba(8,18,35,0.18); display: flex; flex-direction: column; }

/* header */
.dd-head { background: #fff; padding: 18px 26px 16px; border-bottom: 1px solid #eef0f2; flex-shrink: 0; display: flex; align-items: center; gap: 13px; }
.dd-head .ico { width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0; background: linear-gradient(135deg,#d91965,#ef405b); color: #fff; display: flex; align-items: center; justify-content: center; }
.dd-head .t { font-size: 22px; font-weight: 800; color: #102b4e; letter-spacing: -0.02em; }
.dd-head .s { font-size: 12px; color: #9aa0a6; margin-top: 1px; }
.dd-head .spacer { flex: 1; }
.dd-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: #102b4e; background: #f0f1f3; border-radius: 9999px; padding: 7px 13px; }
.dd-base { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 600; color: #1f9a66; background: rgba(31,154,102,0.10); border: 1px solid rgba(31,154,102,0.3); border-radius: 9999px; padding: 7px 13px; }
.dd-base .dot { width: 8px; height: 8px; border-radius: 9999px; background: #1f9a66; }

/* step caption */
.dd-caption { display: flex; align-items: center; gap: 13px; padding: 14px 26px 4px; flex-shrink: 0; }
.dd-stepnum { width: 28px; height: 28px; border-radius: 9999px; background: linear-gradient(135deg,#d91965,#ef405b); color: #fff; font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 4px 12px rgba(217,25,101,0.3); }
.dd-steptext { font-size: 16px; font-weight: 700; color: #102b4e; animation: dd-fade 400ms ease; }
@keyframes dd-fade { from{opacity:0;transform:translateY(4px);} to{opacity:1;transform:none;} }

/* chat body */
.dd-body { flex: 1; min-height: 0; overflow: hidden; padding: 12px 26px 18px; display: flex; flex-direction: column; gap: 14px; }
.dd-user { align-self: flex-end; max-width: 78%; background: #102b4e; color: #fff; padding: 11px 16px; border-radius: 14px 14px 3px 14px; font-size: 15px; line-height: 1.45; }
.dd-ai { display: flex; gap: 11px; max-width: 100%; }
.dd-ai-ico { width: 30px; height: 30px; border-radius: 9999px; background: linear-gradient(135deg,#d91965,#ef405b); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dd-ai-body { flex: 1; min-width: 0; }
.dd-ai-text { font-size: 14px; line-height: 1.55; color: #1a1d22; }
.dd-ai-text b { color: #102b4e; }
.dd-think { display: inline-flex; gap: 4px; padding: 6px 2px; }
.dd-think i { width: 6px; height: 6px; border-radius: 9999px; background: #d91965; display: inline-block; animation: dd-bounce 1000ms ease-in-out infinite; }
.dd-think i:nth-child(2){animation-delay:150ms;} .dd-think i:nth-child(3){animation-delay:300ms;}
@keyframes dd-bounce { 0%,100%{opacity:0.25;transform:translateY(0);} 50%{opacity:1;transform:translateY(-3px);} }

/* chart card */
.dd-chart { background: #fff; border: 1px solid #eef0f2; border-radius: 14px; padding: 16px 18px 12px; margin: 12px 0; box-shadow: 0 8px 22px rgba(8,18,35,0.06); }
.dd-chart-title { font-size: 13px; font-weight: 800; color: #102b4e; margin-bottom: 10px; }
.dd-chart svg { display: block; width: 100%; overflow: visible; }
.dd-bar { transition: height 900ms cubic-bezier(0.22,1,0.36,1), y 900ms cubic-bezier(0.22,1,0.36,1); }
.dd-line { transition: stroke-dashoffset 1100ms ease 300ms; }
.dd-axislbl { font-size: 9px; fill: #9aa0a6; }
.dd-legend { display: flex; gap: 18px; justify-content: center; margin-top: 8px; font-size: 10.5px; color: #5a6068; }
.dd-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dd-legend .sw { width: 12px; height: 12px; border-radius: 3px; }
.dd-legend .swl { width: 16px; height: 3px; border-radius: 9999px; }

/* leitura rápida */
.dd-li { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; line-height: 1.45; color: #1a1d22; opacity: 0; transform: translateY(5px); animation: dd-liin 420ms ease forwards; }
.dd-li b { color: #102b4e; }
.dd-li .dot { width: 5px; height: 5px; border-radius: 9999px; background: var(--stokhos-pink,#d91965); margin-top: 6px; flex-shrink: 0; }
@keyframes dd-liin { to { opacity: 1; transform: none; } }
.dd-readtitle { font-size: 12px; font-weight: 700; color: #5a6068; margin: 4px 0 7px; }
.dd-sql { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; color: #9aa0a6; margin-top: 10px; }

/* input */
.dd-input { padding: 10px 26px 14px; flex-shrink: 0; }
.dd-input-box { display: flex; align-items: center; background: #fff; border: 1px solid #e6e7e8; border-radius: 11px; padding: 11px 10px 11px 16px; font-size: 13px; color: #9aa0a6; }
.dd-input-box .send { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg,#d91965,#ef405b); color: #fff; display: flex; align-items: center; justify-content: center; margin-left: 8px; flex-shrink: 0; }
.dd-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 2px 26px 0; flex-shrink: 0; }
.dd-chip-hint { font-size: 11px; font-weight: 700; color: #9aa0a6; display: inline-flex; align-items: center; gap: 6px; }
.dd-chip { font-size: 12px; font-weight: 600; color: #d91965; background: #fff; border: 1px solid rgba(217,25,101,0.25); border-radius: 9999px; padding: 7px 13px; cursor: pointer; transition: all 180ms ease; }
.dd-chip:hover { border-color: rgba(217,25,101,0.6); }
.dd-chip.on { background: #d91965; color: #fff; box-shadow: 0 5px 14px rgba(217,25,101,0.3); }
.dd-table { width: 100%; border-collapse: collapse; margin: 12px 0 4px; font-size: 12.5px; }
.dd-table th { text-align: left; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #5a6068; background: #f6f7f9; padding: 9px 12px; border-bottom: 1px solid #eef0f2; }
.dd-table td { padding: 9px 12px; border-bottom: 1px solid #eef0f2; color: #102b4e; }
.dd-table td:first-child { color: #5a6068; }
.dd-table td:last-child { font-weight: 700; }