/* Respostas em tempo real (12/10, Pedro) — web/js/rt-gestao-aba.js. O card usa as classes gf-* de fup-gestao.css. */
:is(#tela-rt-gestao, #tela-tc-gestao) { display: flex; flex-direction: column; }
:is(#tela-rt-gestao, #tela-tc-gestao)[hidden], #rt-gestao-painel-dia[hidden], #tc-gestao-painel-dia[hidden] { display: none; }
:is(#tela-rt-gestao, #tela-tc-gestao) .gf-hermes-agora { font-size: 12px; color: var(--texto-2); }
:is(#tela-rt-gestao, #tela-tc-gestao) .gf-pilula-rt-novo { border-color: #FB7185; color: #FB7185; font-weight: 600; }
:is(#tela-rt-gestao, #tela-tc-gestao) .gf-pilula-rt-turno { border-color: #C084FC; color: #C084FC; font-weight: 600; }
:is(#tela-rt-gestao, #tela-tc-gestao) .gf-pilula-rt-janela { border-color: #FBBF24; color: #FBBF24; font-weight: 600; }
/* 12/10 (Pedro): diálogo que voltou e furou a fila (rt-gestao-aba.js dialogoQuenteRt) */
:is(#tela-rt-gestao, #tela-tc-gestao) .gf-pilula-rt-dialogo { border-color: #22D3EE; color: #22D3EE; font-weight: 600; }
html[data-tema="claro"] :is(#tela-rt-gestao, #tela-tc-gestao) .gf-pilula-rt-dialogo { border-color: #0E7490; color: #0E7490; }
:is(#tela-rt-gestao, #tela-tc-gestao) [data-gf="sug-status"] { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--texto-2); }
:is(#tela-rt-gestao, #tela-tc-gestao) .gf-motor-ligado { border-color: #34D399; color: #34D399; font-weight: 600; }
:is(#tela-rt-gestao, #tela-tc-gestao) .gf-motor-faixa { margin: 6px 0; }
:is(#tela-rt-gestao, #tela-tc-gestao) .gf-faixa-pede-humano { border-color: #FBBF24; color: #FBBF24; font-weight: 600; }
/* Selo "🤖 Enviada pelo motor" do cartão da sugestão no chat (sugestao-nota.js); este CSS é carregado em todo o app. */
.sugestao-nota-auto { color: #34D399; font-size: 12px; font-weight: 600; }

/* ---------- Modo imersivo (12/10, Pedro: "zen mode", só o motor, cronômetro grande, Apple-like) ----------
   Vale também na Gestão de Follow-ups (#tela-fup-gestao, sem motor: o anel é o progresso da fila, .gf-anel-fila).
   A própria tela vira camada fixa (data-gf-imersivo, fup-gestao-aba.js alternarImersivo); o card é o mesmo DOM,
   rearrumado em grade. Camadas: abaixo do .modal (50) e do .avisos (60, o Desfazer). */
@property --gf-aura { syntax: '<color>'; inherits: true; initial-value: transparent; }
/* .coluna-conversa é container (estilo.css): sem isto o fixed fica preso à coluna do meio */
html[data-gf-no-inbox] .coluna-conversa:not(#_):not([_]) { container-type: normal; }
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao) { --gf-anel-cor: #34D399; --gf-verde: #34D399; }
html[data-tema="claro"] :is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao) { --gf-anel-cor: #059669; --gf-verde: #059669; }
html[data-tema="claro"] :is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] .gf-acoes .botao[data-gf-acao="enviar"].botao-primario { background: #047857; color: #fff; }   /* contraste AA */
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] {
  position: fixed; inset: 0; z-index: 49; overflow-y: auto; overscroll-behavior: contain;
  padding: max(10px, env(safe-area-inset-top)) max(28px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(28px, env(safe-area-inset-left));
  background: var(--fundo); --gf-aura: color-mix(in srgb, var(--texto-3) 55%, transparent);
  transition: --gf-aura .7s ease; animation: gf-zen-abre .32s cubic-bezier(.2, .8, .2, 1);
}
/* aura ambiente: a cor do estado, difusa atrás de tudo */
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo]::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60vmax 60vmax at 28% 46%, color-mix(in srgb, var(--gf-aura) 22%, transparent), transparent 62%),
    radial-gradient(50vmax 40vmax at 85% 100%, color-mix(in srgb, var(--gf-aura) 9%, transparent), transparent 70%);
}
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo]:has(.gf-motor-ligado) { --gf-aura: color-mix(in srgb, var(--gf-verde) 55%, transparent); }
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo]:has(.gf-anel-gerando:not(.gf-anel-antonio)) { --gf-aura: var(--info); }
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo]:has(.gf-anel-conta), :is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo]:has(.gf-anel-feito) { --gf-aura: var(--gf-verde); }
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo]:has(.gf-anel-fila) { --gf-aura: color-mix(in srgb, var(--marca, var(--gf-anel-cor)) 70%, transparent); }
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo]:has(.gf-faixa-pede-humano) { --gf-aura: var(--alerta); }
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo]:has(.gf-faixa-erro) { --gf-aura: var(--erro); }
@keyframes gf-zen-abre { from { opacity: 0; transform: scale(.985); } }

/* topo: vidro fosco, contador · trilha · motor/✕ */
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] .gf-topo {
  position: sticky; top: 0; z-index: 2; margin: 0 calc(-1 * max(28px, env(safe-area-inset-right))) 8px calc(-1 * max(28px, env(safe-area-inset-left)));
  padding: 10px max(28px, env(safe-area-inset-right)) 10px max(28px, env(safe-area-inset-left)); gap: 16px; flex-wrap: nowrap;
  background: color-mix(in srgb, var(--fundo) 72%, transparent); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
}
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] .gf-topo > :is(h2, .gf-dica, .gf-templates-pagos, .gf-hermes-agora) { display: none; }
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] .gf-contador { order: 1; background: transparent; padding: 0; font-weight: 500; color: var(--texto-2); white-space: nowrap; }
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] .gf-motor-topo { order: 3; margin-left: auto; display: flex; gap: 8px; align-items: center; }
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] .gf-motor:not(.gf-motor-ligado) { display: none; }   /* o Ligar grande fica no centro */
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] .gf-motor-topo .botao { border-radius: 999px; }
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] .gf-imersivo { width: 36px; height: 36px; padding: 0; display: grid; place-items: center; font-size: 15px;
  background: color-mix(in srgb, var(--texto) 7%, transparent); border-color: transparent; color: var(--texto-2); }
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] .gf-imersivo:hover { color: var(--texto); background: color-mix(in srgb, var(--texto) 13%, transparent); }

/* trilha da fila (pontos à iOS); as abas com cfg.imersivo sempre a desenham, só aparece no modo */
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao) .gf-trilha { display: none; }
.gf-motor-conta:empty { display: none; }   /* fora do modo, a caixa vazia não soma o gap do bloco */
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] .gf-trilha { order: 2; flex: 1 1 auto; min-width: 0; display: flex; justify-content: center; align-items: center; gap: 6px; overflow: hidden; }
.gf-ponto { flex: none; width: 6px; height: 6px; border-radius: 999px; background: color-mix(in srgb, var(--texto) 18%, transparent);
  transition: width .35s cubic-bezier(.2, .8, .2, 1), background-color .35s; }
.gf-ponto-feito { background: color-mix(in srgb, var(--texto) 55%, transparent); }
.gf-ponto-auto { background: var(--gf-verde, #34D399); }
.gf-ponto-atual { width: 22px; background: var(--texto); }
.gf-trilha-mais { font-size: 11px; color: var(--texto-3); font-variant-numeric: tabular-nums; }

/* card: sem moldura; grade com o anel à esquerda */
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] .gf-card:not(.gf-fim) {
  flex: 1 0 auto; min-height: 0; max-width: 1080px; padding: 8px 0 24px; background: transparent; border: 0; box-shadow: none;
  display: grid; grid-template-columns: minmax(240px, 380px) minmax(0, 1fr); column-gap: clamp(28px, 5vw, 72px); row-gap: 14px;
  grid-template-areas: "anel cabeca" "anel oque" "anel status" "anel texto" "anel acoes"; align-content: center;
  animation: gf-zen-card .34s cubic-bezier(.2, .8, .2, 1);
}
@keyframes gf-zen-card { from { opacity: 0; transform: translateY(14px); } }
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] :is(.gf-colunas, .gf-bloco-sug) { display: contents; }
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] [data-gf="cabeca"] { grid-area: cabeca; }
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] .gf-bloco-oque { grid-area: oque; }
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] [data-gf="sug-status"] { grid-area: status; }
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] .gf-texto { grid-area: texto; }
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] [data-gf="motor-conta"] { grid-area: anel; }
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] [data-gf="acoes"] { grid-area: acoes; }
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] :is(.gf-bloco-sug > h3, .gf-bloco-oque > h3, .fup-feedback, .gf-gerando, .gf-motor-seg) { display: none; }
/* só no tempo real: na Follow-up as anotações internas e a jogada pesam na decisão (ficam) */
/* 19/10 (Pedro): no tempo real, da jogada só fica a sugestão do Antônio */
:is(#tela-rt-gestao, #tela-tc-gestao)[data-gf-imersivo] :is([data-gf="jogada"] > :not(.gf-antonio), .gf-bloco-oque > h4, .gf-notas) { display: none; }
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] .gf-card:not(.gf-fim) { grid-template-areas: "anel cabeca" "anel oque" "anel status" "anel texto" "anel usaroscar" "anel jogada" "anel acoes"; }
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] [data-gf="acoes-oscar"] { grid-area: usaroscar; }
.gf-sug-acoes { display: flex; flex-wrap: wrap; gap: 10px; }
.gf-sug-acoes:empty { display: none; }
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] [data-gf="jogada"] { grid-area: jogada; }

/* cliente */
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] .gf-nome { font-size: clamp(24px, 2.6vw, 34px); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] .gf-canal { margin-top: 2px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--texto-3); }
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] .gf-meta { margin-top: 4px; }
:is(#tela-rt-gestao, #tela-tc-gestao)[data-gf-imersivo] .gf-meta .gf-pilula:not(.gf-pilula-tempo, .gf-pilula-rt-janela, .gf-pilula-rt-dialogo) { display: none; }   /* na Follow-up as pílulas (janela, nível, escada, D+30) ficam */
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] .gf-pilula-rt-dialogo { padding: 1px 10px; background: color-mix(in srgb, #22D3EE 12%, transparent); animation: gf-zen-card .34s cubic-bezier(.2, .8, .2, 1); }
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] :is(.gf-pilula-tempo, .gf-pilula-rt-janela) { padding: 0; border: 0; background: transparent; font-weight: 500; font-size: 13px; color: var(--texto-2); }
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] .gf-bloco-oque { padding: 0; border: 0; background: transparent; max-height: 32vh; overflow-y: auto;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 28px); mask-image: linear-gradient(to bottom, transparent, #000 28px); }
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] .gf-msgs { justify-content: flex-end; min-height: 100%; padding-top: 24px; gap: 8px; }
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] .gf-msg:not(:nth-last-of-type(-n+3)) { display: none; }
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] .gf-msg { padding: 10px 14px; border-radius: 20px 20px 20px 6px; background: color-mix(in srgb, var(--texto) 8%, var(--fundo)); }
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] .gf-msg-saida { border-radius: 20px 20px 6px 20px; opacity: .5; }
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] .gf-msg-texto { font-size: 15px; line-height: 1.45; }

/* resposta do Hermes */
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] [data-gf="sug-status"] { font-family: inherit; font-size: 12px; letter-spacing: .02em; color: var(--texto-3); }
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] [data-gf="sug-status"] .sub { margin: 0; }
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] .gf-texto { min-height: 128px; padding: 16px 18px; font-size: 17px; line-height: 1.5; border-radius: 18px; resize: none;
  background: color-mix(in srgb, var(--texto) 5%, var(--fundo)); border: 1px solid color-mix(in srgb, var(--texto) 10%, transparent);
  transition: border-color .2s, box-shadow .2s; }
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] .gf-texto:focus { outline: none; border-color: color-mix(in srgb, var(--info) 70%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--info) 18%, transparent); }

/* ações: neutras, só o Enviar em cor */
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] .gf-acoes { padding-top: 0; }
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] .gf-faixa { border-radius: 14px; font-weight: 500; }
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] .gf-botoes { gap: 10px; }
/* 13/10 (Pedro): no modo imersivo, Pular vira a seta › e a seta ‹ volta ao card anterior; fora dele, como antes */
.gf-botoes .gf-seta, .gf-botoes .gf-rot-seta { display: none; }
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] .gf-botoes .gf-seta { display: inline-block; }
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] .gf-botoes [data-gf-acao="pular"] .gf-rot { display: none; }
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] .gf-botoes [data-gf-acao="pular"] .gf-rot-seta { display: inline; }
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] .gf-acoes .botao:is(.gf-seta, [data-gf-acao="pular"]) { padding: 10px 16px; font-size: 20px; line-height: 1; }
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] .gf-acoes .botao[data-gf-acao] { flex: 0 1 auto; padding: 10px 18px; border-radius: 999px; font-weight: 500;
  background: color-mix(in srgb, var(--texto) 7%, transparent); border-color: transparent; color: var(--texto); }
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] .gf-acoes .botao[data-gf-acao]:hover:not(:disabled) { background: color-mix(in srgb, var(--texto) 13%, transparent); border-color: transparent; }
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] .gf-acoes .botao:is([data-gf-acao="enviar"], [data-gf-acao="template"]).botao-primario { flex: 1 1 180px; font-weight: 600; }
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] .gf-acoes .botao[data-gf-acao="enviar"].botao-primario { background: var(--gf-verde); color: #06281b; }
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] .gf-acoes .botao[data-gf-acao="template"].botao-primario { background: var(--marca); color: var(--fundo); }

/* o anel */
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] [data-gf="motor-conta"] { align-self: center; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.gf-anel { position: relative; width: clamp(200px, 26vw, 320px); aspect-ratio: 1; display: grid; place-items: center; }
.gf-anel::before { content: ''; position: absolute; inset: 8%; border-radius: 50%; z-index: -1; pointer-events: none; filter: blur(36px);
  background: radial-gradient(circle, color-mix(in srgb, var(--gf-aura) 70%, transparent), transparent 70%); opacity: .55; transition: opacity .4s; }
.gf-anel > svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.gf-anel circle { fill: none; stroke-width: 5; }
.gf-anel-trilho { stroke: color-mix(in srgb, var(--texto) 9%, transparent); }
.gf-anel-arco { stroke: var(--gf-anel-cor); stroke-linecap: round; stroke-dasharray: 339.3; stroke-dashoffset: 0;
  transition: stroke .4s; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--gf-anel-cor) 55%, transparent)); }
.gf-anel-centro { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.gf-anel-num { font-size: clamp(64px, 8vw, 112px); font-weight: 200; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.gf-anel-num:empty { display: none; }
.gf-anel-rotulo { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--texto-2); }
/* contando: esvazia em 10 s (o delay negativo do JS acerta o ponto num repinte) e a aura cresce perto do zero */
.gf-anel-conta .gf-anel-arco { animation: gf-anel-esvazia var(--gf-anel-s, 10s) linear forwards; }
.gf-anel-conta::before { animation: gf-anel-acende var(--gf-anel-s, 10s) ease-in forwards; }
.gf-anel-conta .gf-anel-num { animation: gf-anel-bate 1s ease-out infinite; }
@keyframes gf-anel-esvazia { to { stroke-dashoffset: 339.3; } }
@keyframes gf-anel-acende { from { opacity: .35; } to { opacity: 1; } }
@keyframes gf-anel-bate { 0% { transform: scale(1.04); } 30%, 100% { transform: scale(1); } }
/* Hermes escrevendo: arco girando em azul */
.gf-anel-gerando .gf-anel-arco { stroke: var(--info); stroke-dasharray: 90 249.3; transform-box: fill-box; transform-origin: center;
  animation: gf-anel-gira 1.4s linear infinite; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--info) 60%, transparent)); }
.gf-anel-gerando .gf-anel-num { color: var(--texto-2); }
@keyframes gf-anel-gira { to { transform: rotate(360deg); } }
/* parado: arco cheio e apagado, fixo (16/11: sinal permanente não anima; regra de fluidez) */
.gf-anel-parado .gf-anel-arco { stroke: color-mix(in srgb, var(--texto) 22%, transparent); filter: none; }
/* feito: cheio, verde, ✓ */
.gf-anel-feito .gf-anel-num { color: var(--gf-anel-cor); animation: gf-anel-pop .45s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes gf-anel-pop { from { transform: scale(.6); opacity: 0; } }
/* fila (Gestão de Follow-ups, sem motor): o arco enche conforme a fila anda (stroke-dashoffset vem do JS) */
.gf-anel-fila .gf-anel-arco { stroke: var(--marca, var(--gf-anel-cor)); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--marca, var(--gf-anel-cor)) 45%, transparent)); }
/* 19/10 (Pedro): dois anéis (Oscar e Antônio), mesmo desenho, menores; o do Antônio em laranja (a cor dele no par) */
.gf-aneis { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.gf-aneis .gf-anel { width: clamp(150px, 15vw, 210px); }
.gf-aneis .gf-anel-num { font-size: clamp(40px, 4.4vw, 64px); }
.gf-anel-dono { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--texto); }
.gf-anel-dono svg.logo-ia { position: static; width: 18px; height: 18px; flex: none; transform: none; display: inline-block; }   /* vence .painel svg { width: 100% } */
.gf-anel-antonio .gf-anel-dono .logo-ia { color: var(--gf-anel-cor); }
:is(.gf-sug-rotulo, .gf-antonio-rotulo) .logo-ia { vertical-align: -2px; margin-right: 2px; }
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] .gf-antonio-rotulo .logo-ia { color: var(--par-antonio, #f59e0b); }
.gf-anel-antonio { --gf-anel-cor: var(--par-antonio, #f59e0b); }
.gf-anel-antonio::before { background: radial-gradient(circle, color-mix(in srgb, var(--gf-anel-cor) 45%, transparent), transparent 70%); opacity: .35; }
.gf-anel-antonio.gf-anel-gerando .gf-anel-arco { stroke: var(--gf-anel-cor); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--gf-anel-cor) 55%, transparent)); }
.gf-anel-pronto .gf-anel-num { color: var(--gf-anel-cor); animation: gf-anel-pop .45s cubic-bezier(.2, 1.4, .4, 1); }
/* a sugestão do Antônio no mesmo formato da do Oscar: rótulo pequeno + caixa arredondada + botão pílula */
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] .gf-antonio { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] .gf-antonio-rotulo { margin: 0; font-size: 12px; letter-spacing: .02em; color: var(--texto-3); }
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] .gf-antonio-texto { box-sizing: border-box; width: 100%; min-height: 128px; margin: 0; padding: 16px 18px; font-size: 17px; line-height: 1.5; border-radius: 18px;
  background: color-mix(in srgb, var(--texto) 5%, var(--fundo)); border: 1px solid color-mix(in srgb, var(--par-antonio, #f59e0b) 28%, transparent); color: var(--texto); }
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] .gf-antonio-vazio { color: var(--texto-3); }
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] textarea.gf-antonio-texto { font-family: inherit; resize: none; transition: border-color .2s, box-shadow .2s; }
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] textarea.gf-antonio-texto:focus { outline: none; border-color: color-mix(in srgb, var(--par-antonio, #f59e0b) 70%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--par-antonio, #f59e0b) 18%, transparent); }
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] textarea.gf-antonio-texto::placeholder { color: var(--texto-3); }
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] .gf-sug-acoes .botao { padding: 10px 18px; border-radius: 999px; font-weight: 500;
  background: color-mix(in srgb, var(--texto) 7%, transparent); border-color: transparent; color: var(--texto); }
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] .gf-sug-acoes .botao.botao-primario { flex: 0 1 180px; font-weight: 600; background: var(--gf-verde); color: #06281b; }
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] .gf-sug-acoes .botao:disabled { opacity: .45; cursor: not-allowed; }
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] .gf-sug-acoes .botao:not(.botao-primario):hover:not(:disabled) { background: color-mix(in srgb, var(--texto) 13%, transparent); }

/* motor no centro: Ligar grande, Parar e as faixas, discretos */
.gf-motor-grande { padding: 12px 30px; border-radius: 999px; font-size: 16px; font-weight: 600; color: var(--gf-anel-cor);
  border: 1px solid color-mix(in srgb, var(--gf-anel-cor) 60%, transparent); background: color-mix(in srgb, var(--gf-anel-cor) 12%, transparent); transition: transform .15s, background .2s; }
.gf-motor-grande:hover:not(:disabled) { background: color-mix(in srgb, var(--gf-anel-cor) 20%, transparent); }
.gf-motor-grande:active:not(:disabled) { transform: scale(.97); }
.gf-motor-grande:disabled { opacity: .4; cursor: not-allowed; }
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] .gf-motor-tempo { display: flex; flex-direction: column; gap: 5px; align-items: center; color: var(--texto-2); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] .gf-motor-tempo select { min-width: 96px; padding: 7px 28px 7px 11px; border: 1px solid color-mix(in srgb, var(--texto) 18%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--texto) 7%, var(--fundo)); color: var(--texto); font: inherit; letter-spacing: 0; text-transform: none; }
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] .gf-motor-faixa { margin: 0; padding: 0; border: 0; background: transparent; font-size: 13px; font-weight: 500; color: var(--texto-2); max-width: 300px; }
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] .gf-motor-faixa .botao { padding: 8px 26px; border-radius: 999px; background: color-mix(in srgb, var(--texto) 8%, transparent); border-color: transparent; }
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] .gf-faixa-pede-humano { padding: 8px 14px; border: 1px solid var(--alerta); border-radius: 14px; color: var(--alerta); font-weight: 600; }

/* fim da fila e carregando */
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] :is(.gf-fim, .gf-msg-estado) { margin: auto; text-align: center; }
:is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] .gf-fim { flex: 0 0 auto; min-height: 0; align-items: center; background: transparent; border: 0; box-shadow: none; }

@media (max-width: 760px) {
  :is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] { padding-left: 16px; padding-right: 16px; padding-bottom: 96px; }   /* folga para o aviso Desfazer */
  :is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] .gf-topo { margin: 0 -16px 4px; padding: 10px 16px; }
  :is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] .gf-card:not(.gf-fim) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "cabeca" "anel" "oque" "status" "texto" "acoes"; align-content: start; }
  :is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] .gf-card:not(.gf-fim) { grid-template-areas: "cabeca" "anel" "oque" "status" "texto" "usaroscar" "jogada" "acoes"; }
  :is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] [data-gf="cabeca"] { text-align: center; }
  .gf-anel { width: min(52vw, 220px); }
  .gf-aneis { flex-direction: row; justify-content: center; gap: 16px; }
  .gf-aneis .gf-anel { width: min(40vw, 160px); }
  :is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] .gf-bloco-oque { max-height: 22vh; }
  :is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] .gf-acoes .botao[data-gf-acao].botao-primario { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  :is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo], :is(#tela-rt-gestao, #tela-fup-gestao, #tela-tc-gestao)[data-gf-imersivo] .gf-card, .gf-anel, .gf-anel::before, .gf-anel-num, .gf-pilula-rt-dialogo { animation: none !important; }
  .gf-anel-conta .gf-anel-arco { animation-timing-function: steps(10); }
  .gf-anel-gerando .gf-anel-arco { animation: none; }
}

/* ---------- Aviso do Desfazer em tempo real (12/10, Pedro: "mais criativo e tempo real") ----------
   fup-gestao-aba.js enfeitarAvisoEnvio: vale nas abas da fábrica (Follow-up, Oportunidades, Respostas em tempo real).
   Segundos 4→1 por @property inteiro animado (sem timer); anel e barra esvaziam em --gf-envio-ms (MS_DESFAZER). */
@property --gf-envio-n { syntax: '<integer>'; inherits: false; initial-value: 0; }
.aviso.gf-envio-aviso { --gf-envio-cor: var(--ouro); position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px;
  min-width: 300px; padding: 12px 14px 14px 12px; border: 1px solid color-mix(in srgb, var(--texto) 10%, transparent); border-radius: 16px;
  background: color-mix(in srgb, var(--fundo-2) 82%, transparent); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35), 0 0 0 1px color-mix(in srgb, var(--gf-envio-cor) 18%, transparent);
  animation: gf-envio-sobe .38s cubic-bezier(.2, 1.3, .4, 1); }
.gf-envio-aviso > span:first-child { display: flex; align-items: center; gap: 12px; min-width: 0; }
.gf-envio-relogio { position: relative; flex: none; width: 40px; height: 40px; display: grid; place-items: center; }
.gf-envio-relogio svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.gf-envio-relogio circle { fill: none; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 94.25; stroke: var(--gf-envio-cor);
  animation: gf-envio-esvazia var(--gf-envio-ms, 4s) linear forwards, gf-envio-cor var(--gf-envio-ms, 4s) linear forwards; }
.gf-envio-relogio b { --gf-envio-n: 0; counter-reset: gf-envio var(--gf-envio-n); font-size: 17px; font-weight: 300; font-variant-numeric: tabular-nums;
  animation: gf-envio-conta var(--gf-envio-ms, 4s) steps(4, end) forwards, gf-envio-bate 1s ease-out 4; }
.gf-envio-relogio b::after { content: counter(gf-envio); }
.gf-envio-texto { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.gf-envio-texto b { font-size: 13.5px; font-weight: 600; }
.gf-envio-texto b::after { content: '…'; animation: gf-envio-pisca 1.2s steps(1) infinite; }
.gf-envio-texto small { font-size: 12px; color: var(--texto-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.gf-envio-aviso .aviso-botao { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px;
  font-weight: 600; text-decoration: none; color: var(--texto); background: color-mix(in srgb, var(--texto) 9%, transparent); transition: background .15s, transform .15s; }
.gf-envio-aviso .aviso-botao:hover { background: color-mix(in srgb, var(--texto) 16%, transparent); }
.gf-envio-aviso .aviso-botao:active { transform: scale(.96); }
.gf-envio-aviso kbd { font: inherit; font-size: 10.5px; padding: 1px 6px; border-radius: 5px; color: var(--texto-2); border: 1px solid color-mix(in srgb, var(--texto) 18%, transparent); }
.gf-envio-barra { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--gf-envio-cor); transform-origin: left;
  animation: gf-envio-barra var(--gf-envio-ms, 4s) linear forwards, gf-envio-cor-fundo var(--gf-envio-ms, 4s) linear forwards; }
@keyframes gf-envio-sobe { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes gf-envio-esvazia { to { stroke-dashoffset: 94.25; } }
@keyframes gf-envio-conta { from { --gf-envio-n: 4; } to { --gf-envio-n: 0; } }   /* 4 = MS_DESFAZER / 1000 */
@keyframes gf-envio-bate { 0% { transform: scale(1.18); } 35%, 100% { transform: scale(1); } }
@keyframes gf-envio-pisca { 50% { opacity: .2; } }
@keyframes gf-envio-barra { to { transform: scaleX(0); } }
/* do ouro (dá para desfazer) ao verde (vai sair) */
@keyframes gf-envio-cor { 70% { stroke: var(--ouro); } to { stroke: var(--ok); } }
@keyframes gf-envio-cor-fundo { 70% { background: var(--ouro); } to { background: var(--ok); } }
@media (prefers-reduced-motion: reduce) {
  .aviso.gf-envio-aviso, .gf-envio-relogio b, .gf-envio-texto b::after { animation: none; }
  .gf-envio-relogio b { animation: gf-envio-conta var(--gf-envio-ms, 4s) steps(4, end) forwards; }
  .gf-envio-relogio circle, .gf-envio-barra { animation-timing-function: steps(4, end); }
}

/* Autowork (22/10/2026, Pedro): botão no topo, feed "Nesta sessão", espera da fila vazia e pop-up de dúvida (rt-autowork.js) */
:is(#tela-rt-gestao, #tela-tc-gestao) .aw-topo { order: 2; display: flex; gap: 10px; align-items: center; white-space: nowrap; }
:is(#tela-rt-gestao, #tela-tc-gestao) .aw-contador { font-variant-numeric: tabular-nums; }
:is(#tela-rt-gestao, #tela-tc-gestao) .aw-espera { margin: 18px auto; padding: 14px 18px; border-radius: 12px; text-align: center; color: var(--texto-2); background: color-mix(in srgb, var(--fundo) 85%, var(--texto-2) 15%); }
:is(#tela-rt-gestao, #tela-tc-gestao) .aw-feed { margin: 16px auto 24px; max-width: 980px; }
:is(#tela-rt-gestao, #tela-tc-gestao) .aw-feed h4 { margin: 0 0 6px; font-size: 13px; color: var(--texto-2); font-weight: 600; }
:is(#tela-rt-gestao, #tela-tc-gestao) .aw-feed ol { list-style: none; margin: 0; padding: 0; max-height: 220px; overflow-y: auto; }
:is(#tela-rt-gestao, #tela-tc-gestao) .aw-feed li + li { border-top: 1px solid color-mix(in srgb, var(--texto-2) 18%, transparent); }
:is(#tela-rt-gestao, #tela-tc-gestao) .aw-item { display: block; width: 100%; padding: 6px 2px; text-align: left; font-size: 13px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aw-popup .aw-pergunta { font-size: 16px; font-weight: 600; margin: 6px 0 10px; }
.aw-popup .aw-padrao { white-space: pre-wrap; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--fundo) 85%, var(--texto-2) 15%); margin: 6px 0 12px; }

/* Seis conversas visíveis; o detalhe abaixo acompanha a seleção. */
:is(#tela-rt-gestao, #tela-tc-gestao) .rt-spots {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px; width: 100%; max-width: 1440px; margin: 18px auto 26px;
}
:is(#tela-rt-gestao, #tela-tc-gestao) .rt-spot {
  display: flex; flex-direction: column; gap: 10px; min-width: 0;
  padding: 20px; text-align: left; font: inherit; color: var(--texto);
  border: 1px solid color-mix(in srgb, var(--texto) 12%, transparent);
  border-radius: 26px 26px 26px 8px;
  background: color-mix(in srgb, var(--fundo) 90%, var(--texto) 4%);
  box-shadow: 0 8px 26px #0000000b;
  transition: border-color .2s, box-shadow .2s;
}
:is(#tela-rt-gestao, #tela-tc-gestao) button.rt-spot { cursor: pointer; }
:is(#tela-rt-gestao, #tela-tc-gestao) .rt-spot:is(:hover, :focus-visible, .rt-spot-ativo) {
  border-color: var(--gf-verde, #34D399); box-shadow: 0 10px 30px #00000016;
}
:is(#tela-rt-gestao, #tela-tc-gestao) .rt-spot:focus-visible { outline: 2px solid var(--gf-verde, #34D399); outline-offset: 3px; }
:is(#tela-rt-gestao, #tela-tc-gestao) .rt-spot small, :is(#tela-rt-gestao, #tela-tc-gestao) .rt-spot-revisar { font-size: 12px; color: var(--texto-2); }
:is(#tela-rt-gestao, #tela-tc-gestao) .rt-spot strong { overflow-wrap: anywhere; }
:is(#tela-rt-gestao, #tela-tc-gestao) .rt-spot-resposta {
  white-space: pre-wrap; overflow-wrap: anywhere; overflow: auto;
  height: 130px; line-height: 1.5; font-size: 14px;
}
:is(#tela-rt-gestao, #tela-tc-gestao) .rt-spot-revisar { margin-top: auto; }
:is(#tela-rt-gestao, #tela-tc-gestao) .rt-spot-vazio { min-height: 230px; opacity: .5; border-style: dashed; box-shadow: none; }
:is(#tela-rt-gestao, #tela-tc-gestao)[data-gf-imersivo] .gf-card:not(.gf-fim) { flex: none; }
@media (max-width: 1050px) {
  :is(#tela-rt-gestao, #tela-tc-gestao) .rt-spots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 620px) {
  :is(#tela-rt-gestao, #tela-tc-gestao) .rt-spots { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  :is(#tela-rt-gestao, #tela-tc-gestao) .rt-spot { transition: none; }
}

/* Autowork unificado: seis balões, revisão compacta e histórico da sessão. */
:is(#tela-rt-gestao, #tela-tc-gestao)[data-aw-unico] .gf-topo { flex-wrap: wrap; }
:is(#tela-rt-gestao, #tela-tc-gestao)[data-aw-unico] .gf-trilha { display: none; }
:is(#tela-rt-gestao, #tela-tc-gestao)[data-aw-unico] .aw-topo { flex: 1; flex-wrap: wrap; }
:is(#tela-rt-gestao, #tela-tc-gestao)[data-aw-unico] .aw-topo > button { border-radius: 999px; }
:is(#tela-rt-gestao, #tela-tc-gestao)[data-aw-unico] .gf-motor-seg { display: inline; }
:is(#tela-rt-gestao, #tela-tc-gestao)[data-aw-unico] .aw-status {
  margin: 0; padding: 10px 14px; border-radius: 14px;
  color: var(--texto-2); background: color-mix(in srgb, var(--gf-verde) 7%, transparent);
}
:is(#tela-rt-gestao, #tela-tc-gestao)[data-aw-unico] .aw-feed { width: 100%; max-width: 1000px; }
:is(#tela-rt-gestao, #tela-tc-gestao) .aw-feed ol { max-height: 500px; }
:is(#tela-rt-gestao, #tela-tc-gestao) .aw-registro { padding: 12px 0; }
:is(#tela-rt-gestao, #tela-tc-gestao) .aw-registro summary { cursor: pointer; line-height: 1.6; }
:is(#tela-rt-gestao, #tela-tc-gestao) .aw-registro summary b { margin-left: 12px; font-size: 12px; color: var(--gf-verde); }
:is(#tela-rt-gestao, #tela-tc-gestao) .aw-resumo { display: block; color: var(--texto-2); font-size: 13px; overflow-wrap: anywhere; }
:is(#tela-rt-gestao, #tela-tc-gestao) .aw-troca { padding: 16px; margin: 12px 0; border-radius: 18px; background: color-mix(in srgb, var(--texto) 4%, transparent); }
:is(#tela-rt-gestao, #tela-tc-gestao) .aw-troca p { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
:is(#tela-rt-gestao, #tela-tc-gestao) .aw-troca small { color: var(--texto-2); }
:is(#tela-rt-gestao, #tela-tc-gestao) .aw-registro-acoes { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 620px) {
  :is(#tela-rt-gestao, #tela-tc-gestao)[data-aw-unico] .aw-contador { white-space: normal; font-size: 11px; }
}
:is(#tela-rt-gestao, #tela-tc-gestao)[data-aw-unico][data-gf-imersivo] .gf-motor-seg { display: inline; }
:is(#tela-rt-gestao, #tela-tc-gestao)[data-aw-unico][data-gf-imersivo] [data-gf="motor-conta"] { align-items: stretch; text-align: left; gap: 0; }
:is(#tela-rt-gestao, #tela-tc-gestao)[data-aw-unico][data-gf-imersivo] .aw-status { max-width: none; padding: 10px 14px; }
:is(#tela-rt-gestao, #tela-tc-gestao)[data-aw-unico] .aw-pausar { align-self: center; margin-top: 10px; padding: 8px 26px; border-radius: 999px; }

/* Tempo real: mantém a composição imersiva com o anel e seis atalhos de vidro. */
:is(#tela-rt-gestao, #tela-tc-gestao)[data-aw-unico][data-gf-imersivo] .gf-card:not(.gf-fim) {
  flex: 1 0 auto; min-height: min(65dvh, 650px); max-width: 1080px;
}
:is(#tela-rt-gestao, #tela-tc-gestao)[data-aw-unico][data-gf-imersivo] [data-gf="motor-conta"] {
  align-items: center; text-align: center; gap: 16px;
}
:is(#tela-rt-gestao, #tela-tc-gestao)[data-aw-unico] .rt-spots { max-width: 1200px; gap: 12px; margin: 12px auto 28px; }
:is(#tela-rt-gestao, #tela-tc-gestao)[data-aw-unico] .rt-spot {
  padding: 14px 18px; gap: 6px;
  background: color-mix(in srgb, var(--fundo) 68%, transparent);
  backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: 0 12px 32px #00000010, inset 0 1px 0 #ffffff0c;
}
:is(#tela-rt-gestao, #tela-tc-gestao)[data-aw-unico] .rt-spot-resposta { height: 52px; font-size: 13px; }
:is(#tela-rt-gestao, #tela-tc-gestao)[data-aw-unico] .rt-spot-vazio { min-height: 130px; }
:is(#tela-rt-gestao, #tela-tc-gestao)[data-aw-unico] .rt-spot small { font-size: 11px; }
@media (max-width: 620px) {
  :is(#tela-rt-gestao, #tela-tc-gestao)[data-aw-unico] .rt-spots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.rt-spot-menu {
  position: fixed; z-index: 100; min-width: 215px; max-width: calc(100vw - 16px);
  padding: 7px; border-radius: 18px; color: var(--texto);
  background: color-mix(in srgb, var(--fundo) 92%, transparent);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid color-mix(in srgb, var(--texto) 15%, transparent);
  box-shadow: 0 16px 50px #0005;
}
.rt-menu-nome { padding: 8px 10px; font-size: 12px; color: var(--texto-2); overflow-wrap: anywhere; }
.rt-spot-menu button { display: block; width: 100%; padding: 10px; text-align: left; border: 0; border-radius: 10px; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.rt-spot-menu button:is(:hover, :focus-visible) { background: color-mix(in srgb, var(--texto) 10%, transparent); outline: none; }
.rt-spot-menu button:disabled { opacity: .4; cursor: default; }
:is(#tela-rt-gestao, #tela-tc-gestao)[data-aw-unico][data-gf-imersivo] .gf-msg { display: block; }
:is(#tela-rt-gestao, #tela-tc-gestao)[data-gf-imersivo] .gf-msgs { min-height: 0; justify-content: flex-start; padding-top: 0; }
:is(#tela-rt-gestao, #tela-tc-gestao)[data-gf-imersivo] .gf-bloco-oque { max-height: 42vh; overflow-y: auto; overscroll-behavior: contain; mask-image: none; -webkit-mask-image: none; scroll-behavior: auto; }
.gf-audio-transcricao { white-space: pre-wrap; margin-top: 8px; }
.gf-audio-transcricao small, .gf-audio-rotulo { display: block; font-size: 11px; color: var(--texto-2); margin-top: 6px; }
.rt-mais-historico { margin-bottom: 12px; }

.gf-imagem-abrir { display: block; padding: 0; margin: 0 0 8px; max-width: 100%; border: 0; background: transparent; border-radius: 14px; cursor: zoom-in; }
.gf-imagem { display: block; max-width: 100%; width: auto; max-height: 240px; min-height: 60px; border-radius: 14px; object-fit: contain; }
.gf-imagem-abrir:focus-visible { outline: 2px solid var(--gf-verde, #34D399); outline-offset: 3px; }
.gf-imagem-ampliada { display: grid; place-items: center; }
.gf-imagem-ampliada img { max-width: 100%; max-height: 80dvh; object-fit: contain; border-radius: 12px; }

:is(#tela-rt-gestao, #tela-tc-gestao) .rt-spot-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 3px 0; }
:is(#tela-rt-gestao, #tela-tc-gestao) .rt-spot-tag { display: inline-block; max-width: 100%; padding: 3px 8px; border-radius: 999px; font-size: 10px; line-height: 1.4; overflow-wrap: anywhere; border: 1px solid color-mix(in srgb, var(--texto) 14%, transparent); background: color-mix(in srgb, var(--texto) 5%, transparent); }
:is(#tela-rt-gestao, #tela-tc-gestao) .rt-tag-fluxo { background: #6d28d9; border-color: #a78bfa; color: #fff; font-weight: 600; }
:is(#tela-rt-gestao, #tela-tc-gestao) .rt-tag-tipo { background: #0369a1; border-color: #38bdf8; color: #fff; font-weight: 600; }
:is(#tela-rt-gestao, #tela-tc-gestao) .rt-tag-etapa { background: #047857; border-color: #34d399; color: #fff; font-weight: 600; }

/* Tempo Real — paleta Claude: terracota, papel e grafite quente.
   Escopo local: preserva os temas das outras telas e as cores dos alertas. */
html :is(#tela-rt-gestao, #tela-tc-gestao) {
  --fundo: #262421; --fundo-2: #302d29; --fundo-3: #3b3631;
  --input: #302d29; --texto: #f3ede5; --texto-2: #d0c3b6; --texto-3: #b7a89a;
  --borda: #4d443c; --borda-forte: #766252;
  --marca: #e69b7e; --ouro: #e69b7e; --ouro-suave: #f3c6af;
  --info: #e69b7e; --par-antonio: #d97757;
  --rt-claude: #e69b7e; --rt-botao: #a34d33;
  --gf-anel-cor: #d97757; --gf-verde: #e69b7e;
  --bolha-entrada: #35302b; --bolha-saida: #49372e;
  background: var(--fundo); color: var(--texto);
}
html[data-tema="claro"] :is(#tela-rt-gestao, #tela-tc-gestao) {
  --fundo: #f7f4ed; --fundo-2: #fffdf8; --fundo-3: #eee7dd;
  --input: #fffdf8; --texto: #302a25; --texto-2: #64574c; --texto-3: #766557;
  --borda: #dfd3c5; --borda-forte: #ad9380;
  --marca: #a34d33; --ouro: #a34d33; --ouro-suave: #873f2a;
  --info: #a34d33; --rt-claude: #a34d33; --gf-verde: #a34d33;
  --bolha-entrada: #eee7dd; --bolha-saida: #f2dfd1;
}
:is(#tela-rt-gestao, #tela-tc-gestao) .gf-nome {
  font-family: Georgia, 'Times New Roman', serif; font-weight: 500;
}
:is(#tela-rt-gestao, #tela-tc-gestao) .gf-texto {
  background: var(--input); color: var(--texto); border-color: var(--borda);
  border-radius: 16px; line-height: 1.6;
}
:is(#tela-rt-gestao, #tela-tc-gestao)[data-gf-imersivo] .gf-texto {
  background: var(--input); border-color: var(--borda);
  box-shadow: 0 6px 24px #291b1008;
}
:is(#tela-rt-gestao, #tela-tc-gestao) .gf-texto:focus {
  outline: 2px solid var(--rt-claude); outline-offset: 2px;
}
:is(#tela-rt-gestao, #tela-tc-gestao) .gf-antonio { --par-antonio: var(--rt-claude); }
:is(#tela-rt-gestao, #tela-tc-gestao) .gf-anel-antonio { --gf-anel-cor: #d97757; }
:is(#tela-rt-gestao, #tela-tc-gestao)[data-aw-unico] .rt-spot {
  background: var(--fundo-2); border-color: var(--borda); border-radius: 18px;
  box-shadow: 0 8px 24px #291b100a; backdrop-filter: none; -webkit-backdrop-filter: none;
}
:is(#tela-rt-gestao, #tela-tc-gestao)[data-aw-unico] .rt-spot:is(:hover, :focus-visible, .rt-spot-ativo) {
  background: color-mix(in srgb, var(--rt-claude) 10%, var(--fundo-2));
  border-color: var(--rt-claude);
}
html :is(#tela-rt-gestao, #tela-tc-gestao) .gf-acoes .botao[data-gf-acao].botao-primario {
  background: var(--rt-botao); border-color: var(--rt-botao); color: #fff8f2;
}
html :is(#tela-rt-gestao, #tela-tc-gestao) .gf-acoes .botao[data-gf-acao].botao-primario:hover:not(:disabled) {
  background: #873f2a; border-color: #873f2a; color: #fff8f2;
}
:is(#tela-rt-gestao, #tela-tc-gestao) :is(button, a, select):focus-visible {
  outline: 2px solid var(--rt-claude); outline-offset: 3px;
}

/* Controles independentes: o botão de pausa não abre a revisão. */
:is(#tela-rt-gestao, #tela-tc-gestao) .rt-spot-container { position: relative; min-width: 0; }
:is(#tela-rt-gestao, #tela-tc-gestao) .rt-spot-container .rt-spot { width: 100%; height: 100%; padding-bottom: 48px; }
:is(#tela-rt-gestao, #tela-tc-gestao) .rt-spot-pausa { position: absolute; right: 12px; bottom: 10px; border: 1px solid var(--texto-2); border-radius: 16px; padding: 5px 10px; background: var(--fundo); color: var(--texto); cursor: pointer; }
:is(#tela-rt-gestao, #tela-tc-gestao) .rt-spot-pausa[aria-pressed="true"] { color: #e69b7e; border-color: currentColor; }
:is(#tela-rt-gestao, #tela-tc-gestao) .gf-anel-claude .logo-ia { width: 64px; height: 64px; color: #d97757; }

/* 28/10 (Pedro): Autowork do Turno Cliente com vibe amarelada (só #tela-tc-gestao; o Tempo Real segue terracota). */
html #tela-tc-gestao {
  --fundo: #24211a; --fundo-2: #2e2a1f; --fundo-3: #3a3424;
  --input: #2e2a1f; --texto: #f6f0db; --texto-2: #d8cca3; --texto-3: #bdae80;
  --borda: #4d4530; --borda-forte: #7d6b37;
  --marca: #f2c14e; --ouro: #f2c14e; --ouro-suave: #f8dc94;
  --info: #f2c14e; --par-antonio: #e0a82e;
  --rt-claude: #f2c14e; --rt-botao: #8a6400;
  --gf-anel-cor: #e0a82e; --gf-verde: #f2c14e;
  --bolha-entrada: #34301f; --bolha-saida: #4a3f1c;
}
html[data-tema="claro"] #tela-tc-gestao {
  --fundo: #fbf6e2; --fundo-2: #fffcef; --fundo-3: #f2e8c4;
  --input: #fffcef; --texto: #2f2a19; --texto-2: #625837; --texto-3: #73673c;
  --borda: #e4d6a2; --borda-forte: #b0974a;
  --marca: #8a6400; --ouro: #8a6400; --ouro-suave: #6e5000;
  --info: #8a6400; --rt-claude: #8a6400; --gf-verde: #8a6400;
  --bolha-entrada: #f2e8c4; --bolha-saida: #f6e6b0;
}
#tela-tc-gestao[data-gf-imersivo] { --gf-aura: color-mix(in srgb, #f2c14e 60%, transparent); }
#tela-tc-gestao .gf-anel-antonio { --gf-anel-cor: #e0a82e; }
#tela-tc-gestao .gf-anel-claude .logo-ia { color: #e0a82e; }
#tela-tc-gestao .rt-spot-pausa[aria-pressed="true"] { color: #f2c14e; }
html #tela-tc-gestao .gf-acoes .botao[data-gf-acao].botao-primario:hover:not(:disabled) { background: #6e5000; border-color: #6e5000; }

/* ---------- Lista do Autowork (13/11/2026, Pedro): o ⚡ abre a fila inteira em lista vertical ---------- */
/* a lista toma o lugar do card e dos spots (ficam no DOM, só escondidos); atributo gravado pelo JS (sem :has) */
:is(#tela-rt-gestao, #tela-tc-gestao)[data-aw-lista] :is(.gf-card, .rt-spots) { display: none; }
:is(#tela-rt-gestao, #tela-tc-gestao)[data-aw-lista] .gf-motor-topo .gf-motor { display: none; }   /* o ✕ do imersivo fica */
/* 17/11 (Pedro): com a lista do Autowork na tela, os pop-ups de sugestão (pílula "escrevendo" no topo direito e a
   pilha do centro direito) cobriam o "Enviar para todos". Ficam escondidos e voltam ao fechar a lista (oculto-espelho.js). */
html[data-aw-lista] :is(#pilha-direita, .contrato-docs-fundo-topo) { display: none !important; }
:is(#tela-rt-gestao, #tela-tc-gestao) .aw-lista { width: 100%; max-width: 1180px; margin: 12px auto 20px; }
:is(#tela-rt-gestao, #tela-tc-gestao) .aw-lista { display: grid; grid-template-columns: 240px minmax(0, 1fr); column-gap: clamp(20px, 3vw, 40px); align-items: start; }
/* 16/11 (Pedro): canto superior esquerdo = anel + bolinhas da fila (fixo, sem animação permanente); direita = a lista */
:is(#tela-rt-gestao, #tela-tc-gestao) .aw-lista-lado { position: sticky; top: 64px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
:is(#tela-rt-gestao, #tela-tc-gestao) .aw-lista-lado .gf-anel { width: 200px; }
:is(#tela-rt-gestao, #tela-tc-gestao) .aw-lista-lado .gf-anel-num { font-size: 64px; }
:is(#tela-rt-gestao, #tela-tc-gestao) .aw-lista-pontos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; max-width: 220px; }
:is(#tela-rt-gestao, #tela-tc-gestao) .aw-ponto-trava { background: var(--alerta, #F59E0B); }
:is(#tela-rt-gestao, #tela-tc-gestao) .aw-lista-resumo { margin: 0; text-align: center; }
:is(#tela-rt-gestao, #tela-tc-gestao) .aw-lista-corpo { min-width: 0; }
@media (max-width: 760px) {
  :is(#tela-rt-gestao, #tela-tc-gestao) .aw-lista { grid-template-columns: minmax(0, 1fr); row-gap: 12px; }
  :is(#tela-rt-gestao, #tela-tc-gestao) .aw-lista-lado { position: static; flex-direction: row; justify-content: flex-start; }
  :is(#tela-rt-gestao, #tela-tc-gestao) .aw-lista-lado .gf-anel { width: 96px; }
  :is(#tela-rt-gestao, #tela-tc-gestao) .aw-lista-lado .gf-anel-num { font-size: 32px; }
}
:is(#tela-rt-gestao, #tela-tc-gestao) .aw-lista-topo { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
:is(#tela-rt-gestao, #tela-tc-gestao) .aw-lista-topo h3 { margin: 0; font-size: 15px; flex: 1 1 auto; min-width: 0; }
:is(#tela-rt-gestao, #tela-tc-gestao) .aw-lista-topo .botao[data-aw-lote] { border-radius: 999px; font-weight: 600; }
:is(#tela-rt-gestao, #tela-tc-gestao) .aw-lote-progresso { font-size: 12px; color: var(--texto-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
:is(#tela-rt-gestao, #tela-tc-gestao) .aw-lista-itens { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
:is(#tela-rt-gestao, #tela-tc-gestao) .aw-item-linha { position: relative; padding: 12px 44px 12px 14px; border: 1px solid color-mix(in srgb, var(--texto) 12%, transparent);
  border-radius: 12px; background: color-mix(in srgb, var(--texto) 3%, transparent); }
:is(#tela-rt-gestao, #tela-tc-gestao) .aw-item-x { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; padding: 0;
  display: grid; place-items: center; border: 0; border-radius: 999px; cursor: pointer; font-size: 13px;
  background: color-mix(in srgb, var(--texto) 7%, transparent); color: var(--texto-2); }
:is(#tela-rt-gestao, #tela-tc-gestao) .aw-item-x:hover { background: color-mix(in srgb, var(--erro) 18%, transparent); color: var(--texto); }
:is(#tela-rt-gestao, #tela-tc-gestao) .aw-item-x:disabled { opacity: .4; cursor: default; }
:is(#tela-rt-gestao, #tela-tc-gestao) .aw-item-cabeca { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
:is(#tela-rt-gestao, #tela-tc-gestao) .aw-item-cabeca strong { font-size: 14px; }
:is(#tela-rt-gestao, #tela-tc-gestao) .aw-item-estado { font-size: 12px; color: var(--texto-2); }
:is(#tela-rt-gestao, #tela-tc-gestao) .aw-item-cliente { margin: 4px 0 0; font-size: 12px; color: var(--texto-3); }
:is(#tela-rt-gestao, #tela-tc-gestao) .aw-item-rascunho { margin: 8px 0 0; font-size: 14px; line-height: 1.45; white-space: pre-wrap; }
/* 17/11 (Pedro): "Enviar" de uma linha só */
:is(#tela-rt-gestao, #tela-tc-gestao) .aw-item-acoes { display: flex; justify-content: flex-end; margin-top: 10px; }
:is(#tela-rt-gestao, #tela-tc-gestao) .aw-item-enviar { border-radius: 999px; font-weight: 600; font-size: 13px; padding: 4px 16px; }
:is(#tela-rt-gestao, #tela-tc-gestao) .aw-item-trava { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px;
  padding: 8px 10px; border-radius: 8px; font-size: 12.5px; background: color-mix(in srgb, var(--alerta, #F59E0B) 12%, transparent); }
:is(#tela-rt-gestao, #tela-tc-gestao) .aw-item-travada { border-color: color-mix(in srgb, var(--alerta, #F59E0B) 45%, transparent); }
:is(#tela-rt-gestao, #tela-tc-gestao) :is(.aw-item-enviado, .aw-item-agendado) { border-color: color-mix(in srgb, var(--gf-verde) 45%, transparent); opacity: .75; }
:is(#tela-rt-gestao, #tela-tc-gestao) :is(.aw-item-enviado, .aw-item-agendado) .aw-item-estado { color: var(--gf-verde); font-weight: 600; }
:is(#tela-rt-gestao, #tela-tc-gestao) :is(.aw-item-erro, .aw-item-erro-envio) { border-color: color-mix(in srgb, var(--erro) 45%, transparent); }
:is(#tela-rt-gestao, #tela-tc-gestao) :is(.aw-item-erro, .aw-item-erro-envio) .aw-item-estado { color: var(--erro); }
:is(#tela-rt-gestao, #tela-tc-gestao) .aw-item-na-fila .aw-item-estado { color: var(--gf-verde); }
/* geração em curso de verdade (status carregando): anel pequeno girando, ~20 s; quem espera a vez fica sem animação */
:is(#tela-rt-gestao, #tela-tc-gestao) .aw-item-girando .aw-item-estado::before { content: ''; display: inline-block; width: 10px; height: 10px;
  margin-right: 6px; vertical-align: -1px; border-radius: 999px; border: 2px solid color-mix(in srgb, var(--texto) 25%, transparent);
  border-top-color: var(--texto-2); animation: aw-gira 1s linear infinite; }
@keyframes aw-gira { to { transform: rotate(360deg); } }
:is(#tela-rt-gestao, #tela-tc-gestao) .aw-lista-mais { margin: 10px 2px 0; }
