/* Rota do Turno T1c — a linha do pensamento acima da resposta (06/10/2026).
   Só aparece na trilha nova (`chat_config.jornada = "v3"`); as medidas vêm da
   maquete rodada-2/t1c-linha-do-pensamento.html, sem a coluna dos segundos.
   Tokens: os `--va-*` de visual-a.css (o chat da v3 sempre os tem); com
   fallback para os de style.css. */
.t1c { flex: 0 0 100%; width: 100%; margin: 2px 0 10px; font-family: var(--va-font, var(--font)); }
.bubble-wrap.bot:has(> .t1c) { flex-wrap: wrap; }
.t1c-l {
  display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent;
  color: var(--va-dim, var(--text-dim)); font: inherit; font-size: 15px; padding: 6px 4px; border-radius: 8px; cursor: pointer;
}
.t1c-l:hover { background: var(--va-azul-06, var(--bg-input)); color: var(--va-azul-texto, var(--text)); }
.t1c-l .t1c-ico { width: 16px; height: 16px; transition: transform .15s; }
.t1c.aberto .t1c-l .t1c-ico { transform: rotate(90deg); }
.t1c-c { display: none; margin: 6px 0 0 4px; }
.t1c.aberto .t1c-c { display: block; }

/* N1: uma linha por coisa feita, com o ponto e a linha do tempo */
.t1c-it { position: relative; }
.t1c-b {
  display: grid; grid-template-columns: 8px 1fr; gap: 0 12px; width: 100%; text-align: left;
  border: 0; background: transparent; padding: 0 0 14px 2px; font: inherit; color: #3c4452; cursor: default;
}
button.t1c-b { cursor: pointer; }
button.t1c-b:hover .t1c-txt { color: var(--va-ink, var(--text)); }
.t1c-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--va-azul, var(--accent)); margin-top: 7px; }
.t1c-dot::after { content: ""; position: absolute; left: 3px; top: 12px; width: 2px; height: 1000px; background: var(--va-line, var(--border-light)); }
.t1c-it:last-child .t1c-dot::after { display: none; }
.t1c-it.fim .t1c-dot, .t1c-it:last-child:not(.alerta) .t1c-dot { background: #1f7a4d; }
.t1c-it.alerta .t1c-dot { background: #b35c00; }
.t1c-it { overflow: hidden; }
.t1c-txt { font-size: 15.5px; line-height: 1.5; }
.t1c-txt small { display: block; color: var(--va-dim, var(--text-dim)); font-size: 14px; margin-top: 2px; }
.t1c-it.aberta > .t1c-b .t1c-txt { color: var(--va-ink, var(--text)); }

/* N2: abre ao tocar a linha */
.t1c-n2-box { margin: -6px 0 14px 20px; padding: 10px 14px; background: var(--va-azul-06, var(--bg-input)); border-radius: 12px; }
.t1c-n2-box[hidden], .t1c-n3[hidden], .t1c-acao[hidden] { display: none; }
.t1c-n2-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.t1c-n2 { font-size: 14.5px; line-height: 1.5; color: #3c4452; }
.t1c-n2.alerta .t1c-n2-t, .t1c-n3 dd.alerta { color: #b35c00; font-weight: 600; }
.t1c-n2.tecnico { color: var(--va-dim, var(--text-xdim)); font-size: 13px; }
.t1c-n2-t small, .t1c-n2-b small { display: block; color: var(--va-dim, var(--text-dim)); font-size: 13px; margin-top: 2px; }
.t1c-n2-b {
  display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 0; font: inherit;
  color: var(--va-azul-texto, var(--accent-text)); cursor: pointer; text-decoration: underline; text-decoration-color: var(--va-azul-linha, #d5dcea); text-underline-offset: 3px;
}
.t1c-n2-b:hover { text-decoration-color: currentColor; }
.t1c-n2-b[aria-expanded="true"] { text-decoration: none; color: var(--va-ink, var(--text)); }
.t1c-link { border: 0; background: transparent; padding: 0; font: inherit; font-size: 13.5px; color: var(--va-dim, var(--text-dim)); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.t1c-link:hover { color: var(--va-ink, var(--text)); }
.t1c-n3-toggle { margin-top: 10px; }

/* N3: o detalhe, dentro do N2 */
.t1c-n3 { margin: 8px 0 0; padding: 8px 0 0; border-top: 1px solid var(--va-line, var(--border-light)); font-size: 13.5px; line-height: 1.5; }
.t1c-n3 dt { color: var(--va-dim, var(--text-dim)); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; margin-top: 8px; }
.t1c-n3 dt:first-child { margin-top: 0; }
.t1c-n3 dd { margin: 0; color: #3c4452; }
.t1c-n3 dd + dd { margin-top: 6px; }
.t1c-n3-acao .t1c-n2-b { font-size: 13.5px; }

/* Q2=C: o trecho lido (10 linhas + ver mais) e os 15 capítulos recolhidos */
.t1c-acao { margin: 8px 0 4px; }
.t1c-trecho { background: #fff; border: 1px solid var(--va-line, var(--border-light)); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.t1c-trecho-txt { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13.5px; line-height: 1.5; color: #3c4452; }
.t1c-nota { font-size: 13px; color: var(--va-dim, var(--text-dim)); }
.t1c-caps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.t1c-cap { border: 0; background: transparent; padding: 0; font: inherit; font-size: 13.5px; color: #3c4452; text-align: left; cursor: pointer; }
.t1c-cap:hover { color: var(--va-ink, var(--text)); }

/* Spec 1 (06/10): cartões das fontes citadas pela pesquisa fora da conversa (favicon · título · domínio · anel) */
.t1c-fontes { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin: 0; }
.t1c-fonte {
  display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: center; min-width: 0;
  padding: 8px 10px; background: #fff; border: 1px solid var(--va-line, var(--border-light)); border-radius: 10px;
  color: #3c4452; text-decoration: none;
}
.t1c-fonte:hover { border-color: var(--va-azul, var(--accent)); color: var(--va-ink, var(--text)); }
.t1c-fonte-ico { position: relative; width: 24px; height: 24px; border-radius: 6px; background: var(--va-azul-06, var(--bg-input)); display: grid; place-items: center; overflow: hidden; }
.t1c-fonte-ico img { width: 16px; height: 16px; display: block; }
.t1c-fonte-letra { font-size: 12px; font-weight: 700; color: var(--va-azul-texto, var(--accent-text)); }
.t1c-fonte-letra[hidden] { display: none; }
.t1c-fonte-txt { min-width: 0; display: block; }
.t1c-fonte-tit { display: block; font-size: 13.5px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t1c-fonte-txt small { display: block; color: var(--va-dim, var(--text-dim)); font-size: 12px; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t1c-it[data-n1="pesquisei"] .t1c-dot { background: #1f7a4d; }
.t1c-it[data-n1="pesquisei"].alerta .t1c-dot { background: #b35c00; }
@media (max-width: 700px) { .t1c-fontes { grid-template-columns: 1fr; } }

/* ?debug=1: a rota completa continua a um toque */
.t1c-debug .t1c-txt { color: var(--va-dim, var(--text-dim)); font-size: 14px; }

@media (max-width: 700px) {
  .t1c-txt { font-size: 15px; }
  .t1c-n2-box { margin-left: 12px; padding: 10px 12px; }
}

/* ── Jornada v5 (07/10, feedback do Rafa: "vale rever a diagramação") ─────────
   Hierarquia em três pesos (linha · nota · detalhe), uma coluna de texto
   alinhada ao ponto da linha do tempo, respiro constante (12/8/6), sem caixa
   azul no segundo nível (lista limpa, como o ChatGPT), rótulos do detalhe em
   duas colunas no computador. A v3 segue com o bloco acima, byte a byte. */
.t1c-v5 .t1c-l { font-size: 14px; padding: 4px 2px; gap: 5px; }
.t1c-v5 .t1c-l .t1c-ico { width: 15px; height: 15px; }
.t1c-v5 .t1c-c { margin: 8px 0 0 2px; }
.t1c-v5 .t1c-b { grid-template-columns: 6px 1fr; gap: 0 14px; padding: 0 0 12px 3px; color: var(--va-ink, var(--text)); }
.t1c-v5 .t1c-dot { width: 6px; height: 6px; margin-top: 8px; }
.t1c-v5 .t1c-dot::after { left: 2.5px; top: 10px; width: 1px; }
.t1c-v5 .t1c-txt { font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.t1c-v5 .t1c-txt small { font-size: 13px; line-height: 1.4; margin-top: 3px; }
.t1c-v5 button.t1c-b:hover .t1c-txt { color: var(--va-azul-texto, var(--accent-text)); }
.t1c-v5 .t1c-n2-box { margin: -4px 0 14px 23px; padding: 0 0 0 12px; background: transparent; border-left: 1px solid var(--va-line, var(--border-light)); border-radius: 0; }
.t1c-v5 .t1c-n2-lista { gap: 6px; }
.t1c-v5 .t1c-n2 { font-size: 14px; line-height: 1.5; color: var(--va-ink, var(--text)); }
.t1c-v5 .t1c-n2-t small, .t1c-v5 .t1c-n2-b small { font-size: 12.5px; }
.t1c-v5 .t1c-n2-b { text-decoration: none; }
.t1c-v5 .t1c-n2-b::after { content: " ›"; color: var(--va-dim, var(--text-dim)); }
.t1c-v5 .t1c-n2-b[aria-expanded="true"]::after { content: " ⌄"; }
.t1c-v5 .t1c-link { font-size: 13px; }
.t1c-v5 .t1c-n3-toggle { margin-top: 8px; }
.t1c-v5 .t1c-n3 { margin-top: 8px; padding-top: 8px; font-size: 13.5px; }
.t1c-v5 .t1c-n3 dt { font-size: 11.5px; letter-spacing: .05em; margin-top: 10px; }
.t1c-v5 .t1c-n3 dd { color: var(--va-ink, var(--text)); }
.t1c-v5 .t1c-trecho { border-radius: 8px; padding: 10px 12px; }
.t1c-v5 .t1c-trecho-txt { font-size: 13px; line-height: 1.5; }
.t1c-v5 .t1c-caps { gap: 4px; }
.t1c-v5 .t1c-cap { font-size: 13.5px; line-height: 1.45; }
@media (min-width: 701px) {
  .t1c-v5 .t1c-n3 { display: grid; grid-template-columns: 150px 1fr; column-gap: 14px; row-gap: 6px; align-items: baseline; }
  .t1c-v5 .t1c-n3 dt, .t1c-v5 .t1c-n3 dt:first-child { margin: 0; padding-top: 2px; }
  .t1c-v5 .t1c-n3 dd + dd { margin: 0; grid-column: 2; }
  .t1c-v5 .t1c-n3 dd.t1c-n3-acao, .t1c-v5 .t1c-n3 .t1c-fontes { grid-column: 1 / -1; }
}

/* a pesquisa como no ChatGPT: uma linha por resultado — ícone · título em uma linha · domínio à direita */
.t1c-fontes-lista { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; }
.t1c-fonte-li + .t1c-fonte-li { border-top: 1px solid var(--va-line, var(--border-light)); }
.t1c-fonte-a {
  display: grid; grid-template-columns: 20px minmax(0, 1fr) minmax(96px, 30%); align-items: center; gap: 10px;
  padding: 7px 4px; min-width: 0; color: var(--va-ink, var(--text)); text-decoration: none; border-radius: 8px;
}
.t1c-fonte-a:hover { background: var(--va-azul-06, var(--bg-input)); }
.t1c-fonte-a .t1c-fonte-ico { width: 20px; height: 20px; border-radius: 5px; }
.t1c-fonte-a .t1c-fonte-ico img { width: 14px; height: 14px; }
.t1c-fonte-a .t1c-fonte-letra { font-size: 11px; }
.t1c-fonte-a .t1c-fonte-tit { display: block; font-size: 14px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t1c-fonte-dom { font-size: 12.5px; color: var(--va-dim, var(--text-dim)); white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; text-align: right; }
.t1c-fonte-li.confiavel .t1c-fonte-dom::before { content: "✓ "; color: #1f7a4d; }
@media (max-width: 700px) {
  .t1c-v5 .t1c-txt { font-size: 14.5px; }
  .t1c-v5 .t1c-n2-box { margin-left: 15px; padding-left: 10px; }
  .t1c-fonte-a { grid-template-columns: 20px minmax(0, 1fr); row-gap: 1px; padding: 8px 2px; }
  .t1c-fonte-dom { grid-column: 2; text-align: left; }
}
/* v5: um alerta no segundo nível não grita (texto na cor normal, marca à esquerda; a v3 segue em laranja) */
.t1c-v5 .t1c-n2.alerta .t1c-n2-t { color: var(--va-ink, var(--text)); font-weight: 500; padding-left: 10px; border-left: 2px solid #b35c00; }
.t1c-v5 .t1c-n3 dd.alerta { color: var(--va-ink, var(--text)); font-weight: 500; }

/* ── (D14, 08/10) a linha do painel de apoio, FORA do "Pensou", logo abaixo dele (js/rota-t1c.js, montarLinhaDoPainel).
   Na v6 o Consolidador grava o painel 30–60 s DEPOIS da resposta. Enquanto grava: "Estou atualizando o painel de
   apoio…" na voz da narração, com o ponto que pulsa e o brilho que corre (o mesmo par da espera viva e da linha
   "Newgotiating…"); ao terminar: ícone do painel + "Painel atualizado · <o que mudou>" + seta, que abre o painel.
   Discreta como o "Pensou" (14 px, cor secundária), alinhada ao chevron dele; nada empurra a resposta. */
.t1c-pv { margin: 0; transition: opacity .24s ease; animation: t1c-pv-entra .28s cubic-bezier(.2, .7, .2, 1) both; }
.t1c-pv[hidden] { display: none; }
.t1c-pv.t1c-pv-sai { opacity: 0; }
.t1c-pv-b {
  display: flex; align-items: flex-start; gap: 7px; width: 100%; margin: 0; padding: 4px 8px 4px 2px;
  border: 0; border-radius: 8px; background: transparent; font: inherit; font-size: 14px; line-height: 1.45; text-align: left;
  color: var(--va-dim, var(--text-dim)); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.t1c-pv-b:hover { background: var(--va-azul-06, var(--bg-input)); color: var(--va-azul-texto, var(--text)); }
.t1c-pv-b:focus-visible { outline: 2px solid var(--va-azul, var(--accent, #2b5fd9)); outline-offset: 2px; }
.t1c-pv-ico { flex: none; display: inline-grid; place-items: center; width: 15px; height: 20px; color: currentColor; }
.t1c-pv-ico svg { display: block; width: 15px; height: 15px; }
.t1c-pv-ponto { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--va-azul, var(--accent, #2b5fd9)); animation: t1c-pv-pulsa 1.4s ease-in-out infinite; }
.t1c-painel-frase { min-width: 0; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; }
.t1c-pv-feito { color: var(--va-ink, var(--text)); font-weight: 500; }
.t1c-pv-b:hover .t1c-pv-feito { color: inherit; }
.t1c-painel-ir { flex: none; margin-left: auto; padding-left: 8px; font-size: 16px; line-height: 1.25; color: var(--va-dim, var(--text-dim)); transition: transform .15s ease; }
.t1c-pv-b:hover .t1c-painel-ir { color: currentColor; transform: translateX(2px); }
.t1c-pv.t1c-vivo .t1c-painel-ir { display: none; }
.t1c-pv.t1c-vivo .t1c-painel-frase {
  -webkit-line-clamp: 1;
  background: linear-gradient(90deg, var(--va-dim, var(--text-dim)) 38%, var(--va-ink, var(--text)) 50%, var(--va-dim, var(--text-dim)) 62%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: t1c-pv-brilho 2.4s linear infinite;
}
/* a troca para "Painel atualizado": o texto e o ícone entram de novo, sem pular */
.t1c-pv.t1c-pv-troca:not(.t1c-vivo) .t1c-painel-frase, .t1c-pv.t1c-pv-troca:not(.t1c-vivo) .t1c-pv-ico, .t1c-pv.t1c-pv-troca:not(.t1c-vivo) .t1c-painel-ir { animation: t1c-pv-entra .32s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes t1c-pv-entra { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
@keyframes t1c-pv-pulsa { 0%, 100% { opacity: .3; transform: scale(.82); } 50% { opacity: .95; transform: scale(1); } }
@keyframes t1c-pv-brilho { from { background-position: 210% 0; } to { background-position: -110% 0; } }
@media (pointer: coarse) { .t1c-pv-b { min-height: 44px; align-items: center; } }
@media (prefers-reduced-motion: reduce) {
  .t1c-pv, .t1c-pv * { animation: none !important; transition: none !important; }
  .t1c-pv.t1c-vivo .t1c-painel-frase { background: none; -webkit-text-fill-color: currentColor; }
  .t1c-pv-ponto { opacity: .8; }
}
