/*
 * Hub da SKWADRA Squad com o visual do Portal (SKWADRA.OS).
 * Aqui fica só o que é do Hub: a estrutura das 4 colunas e as peças próprias (conversa, árvore, kanban, mesa).
 * Cores e medidas vêm de tokens.css; cartões, botões, abas, campos e pílulas vêm de kit.css (cópia do Portal).
 * Regras do visual: fio de 1px no lugar de caixa; nada se mexe no hover, só cor e fio; terracota = fixo e
 * "precisa de você"; verde-petróleo = vivo; vermelho só para erro.
 */

/* ---------- estrutura: topo, 4 colunas em cartões, eventos ---------- */
:root { --topo-h: 70px; --vao: 14px; --borda: 24px; }
html, body { height: 100%; }
body { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; }
.palco {
  display: grid;
  /* larguras ajustáveis (layout.js grava em --c1, --c2 e --c4); as alças ocupam o vão entre os cartões */
  grid-template-columns: var(--c1, 232px) var(--vao) var(--c2, 400px) var(--vao) minmax(320px, 1fr) var(--vao) var(--c4, 290px);
  gap: 0;
  min-height: 0;
  padding: 0 var(--borda) var(--vao);
}
.coluna, .lateral { display: flex; min-width: 0; min-height: 0; flex-direction: column; }
/* cartão do SKWADRA.OS: branco, canto 14px, fio fino e sombra difusa */
.cartao {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 14px;
  box-shadow: var(--shadow-os);
  overflow: hidden;
}
/* cabeça do cartão: quadradinho terracota e o nome em mono, como no feed */
.cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; padding: 12px 12px 6px 18px; flex: none; }
.cab h2, .cab .cab-t {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  font: 400 10.5px var(--font-mono); letter-spacing: 0.22em; text-transform: uppercase; color: var(--color-muted);
}
.cab h2::before, .cab .cab-t::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 1.5px; background: var(--color-fixed); }
.ic { display: block; flex: none; }
.k-icon.mini { width: 30px; height: 30px; }
.contador:empty { display: none; }
[hidden] { display: none !important; }
@keyframes os-blink { 50% { opacity: 0.25; } }

/* ---------- topo (skw-top do Portal) ---------- */
.skw-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px var(--borda); }
.skw-brand { display: flex; flex: 1; align-items: center; gap: 12px; min-width: 0; color: var(--color-ink); }
.skw-brand .logo { width: 18px; height: 19px; flex: none; }
.skw-brand .w { flex: none; font: 400 10.5px var(--font-mono); letter-spacing: 0.5em; padding-left: 0.2em; }
.skw-brand .t {
  display: flex; align-items: baseline; gap: 8px; min-width: 0;
  padding: 3px 0 3px 12px; border-left: 1px solid var(--color-line);
  font: italic 300 19px/1 var(--font-display); color: var(--color-fixed); white-space: nowrap;
}
.skw-brand .t:empty { display: none; }
.skw-brand .t b { font-weight: 300; }
.skw-brand .t > span:not(.agora) { color: var(--color-line-strong); font-style: normal; }
.skw-brand .t .agora { min-width: 0; overflow: hidden; text-overflow: ellipsis; font: 300 12.5px/1.4 var(--font-sans); color: var(--color-faint); }
.skw-dot { width: 5px; height: 5px; flex: none; border-radius: 50%; background: var(--color-faint); }
.skw-dot.on { background: var(--color-accent); box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / 0.1); }
.controles { display: flex; flex: none; align-items: center; gap: 8px; }
.modelo { display: flex; align-items: center; gap: 10px; margin: 0 6px; }
.modelo .k-select { width: auto; min-height: 36px; padding-right: 34px; font-size: 13.5px; background-position: calc(100% - 18px) 15px, calc(100% - 13px) 15px; }
/* botão redondo do topo */
.os-round {
  position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none;
  border-radius: 50%; border: 1px solid var(--color-line); color: var(--color-muted);
  transition: color 0.2s, border-color 0.2s;
}
.os-round:hover, .os-round.ativo { color: var(--color-ink); border-color: var(--color-line-strong); }
.skw-badge {
  position: absolute; top: -3px; right: -3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px;
  display: grid; place-items: center; font: 400 9.5px var(--font-mono); color: #fff; background: var(--color-fixed);
}
.skw-badge.vivo { color: var(--color-on-ink); background: var(--color-accent); }
.botao-pendencias.tem { color: var(--color-fixed); border-color: rgb(var(--fixed-rgb) / 0.45); }
.botao-vera.pensando .av { animation: os-blink 1.6s infinite; }
.botao-vera.novidade { border-color: rgb(var(--fixed-rgb) / 0.55); }
/* a Vera: inicial em itálico terracota, no lugar da foto */
.av {
  display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%;
  font: italic 400 16px/1 var(--font-display); color: var(--color-fixed); background: rgb(var(--fixed-rgb) / 0.1);
}
.av.mini { width: 20px; height: 20px; font-size: 12px; }
.av.grande { width: 42px; height: 42px; font-size: 23px; }
/* sol/lua: sol no claro, lua no escuro */
.skw-theme .moon { display: none; }
:root[data-theme="dark"] .skw-theme .sun { display: none; }
:root[data-theme="dark"] .skw-theme .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .skw-theme .sun { display: none; }
  :root:not([data-theme="light"]) .skw-theme .moon { display: block; }
}
/* aprovações: a caixinha que abre embaixo do sino */
.pendencias-wrap { position: relative; }
.painel-pendencias {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: 360px; max-height: 420px; overflow: auto; padding: 14px;
  background: var(--color-ground); border: 1px solid var(--color-line-strong); border-radius: 12px; box-shadow: var(--shadow-os);
}
.painel-pendencias h3 { margin: 0 0 10px; }
.pendencia {
  display: block; width: 100%; margin-bottom: 6px; padding: 10px 14px; text-align: left;
  background: var(--color-surface); border: 1px solid var(--color-line-soft); border-radius: 10px;
  font-size: var(--text-row); transition: border-color 0.2s;
}
.pendencia:hover { border-color: var(--color-line-strong); }
.pendencia span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--text-meta); color: var(--color-muted); }

/* ---------- projetos ---------- */
.projetos { overflow: auto; padding: 2px 10px 14px; }
.projeto { margin-bottom: 2px; }
.projeto-nome {
  display: flex; width: 100%; align-items: center; gap: 10px; padding: 8px 8px; border-radius: 8px; text-align: left;
  font-size: var(--text-row); color: var(--color-muted); transition: color 0.2s;
}
.projeto-nome:hover, .projeto.ativo > .projeto-linha > .projeto-nome { color: var(--color-ink); }
.projeto.ativo > .projeto-linha > .projeto-nome { font-weight: 400; }
.projeto-nome .ponto { width: 6px; height: 6px; flex: none; border-radius: 1.5px; background: var(--color-line-strong); }
.projeto.ativo .ponto { background: var(--color-fixed); }
.projeto-nome .ponto.ocupado { border-radius: 50%; background: var(--color-accent); box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / 0.1); animation: os-blink 1.6s infinite; }
.projeto-agora {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  padding: 0 8px 8px 24px; font-size: var(--text-meta); line-height: 1.45; color: var(--color-faint);
}
.projeto:not(.ativo) .projeto-agora { display: none; }
.secoes { margin: 0 0 6px 10px; border-left: 1px solid var(--color-line); }
.secao {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 6px;
  margin-left: -1px; padding: 6px 10px 6px 14px; border-left: 1px solid transparent; text-align: left;
  font-size: var(--text-sub); color: var(--color-muted); transition: color 0.2s, background 0.2s;
}
.secao:hover { color: var(--color-ink); }
.secao.ativa { color: var(--color-accent); border-left-color: var(--color-accent); background: rgb(var(--accent-rgb) / 0.07); border-radius: 0 8px 8px 0; }
.secao .cards { display: flex; gap: 4px; }
.secao .cards i {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; display: inline-grid; place-items: center;
  font: normal 400 10px var(--font-mono); font-variant-numeric: tabular-nums;
  color: var(--color-status-production-fg); background: var(--color-status-production-bg);
}
.secao .cards i.rev { color: var(--color-status-changes-fg); background: var(--color-status-changes-bg); }
.secao .cards i.blq { color: var(--color-alert-fg); background: var(--color-alert-bg); }
.nova-secao {
  display: block; width: 100%; padding: 8px 10px 8px 14px; text-align: left;
  font: 400 10px var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-faint); transition: color 0.2s;
}
.nova-secao:hover { color: var(--color-ink); }

/* ---------- conversa ---------- */
.abas-agentes { display: flex; flex: none; flex-wrap: wrap; gap: 6px; padding: 14px 14px 0; }
/* agente = botão do SKWADRA.OS; o escolhido ganha o véu verde-petróleo */
.aba-agente {
  display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 11px;
  font: 400 10.5px var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap;
  color: var(--color-muted); background: var(--color-surface); border: 1px solid var(--color-line); border-radius: 8px;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.aba-agente:hover { color: var(--color-ink); border-color: var(--color-line-strong); }
.aba-agente.ativa { color: var(--color-accent); border-color: rgb(var(--accent-rgb) / 0.45); background: rgb(var(--accent-rgb) / 0.07); }
.aba-agente .estado { width: 5px; height: 5px; flex: none; border-radius: 50%; background: var(--color-line-strong); }
.aba-agente .estado.trabalhando { background: var(--color-accent); box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / 0.1); animation: os-blink 1.6s infinite; }
.aba-squad { padding-left: 6px; }
.nivel { font: 400 9.5px var(--font-mono); letter-spacing: 0.06em; color: var(--color-faint); }
.nivel.n3 { color: var(--color-fixed); }
.rotulo-direto { flex-basis: 100%; margin: 8px 0 0 2px; font: 400 9.5px var(--font-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-faint); }
.missao { flex: none; padding: 10px 16px 12px; font-size: var(--text-meta); line-height: 1.45; color: var(--color-faint); border-bottom: 1px solid var(--color-line-soft); }
.mensagens { display: flex; flex: 1; min-height: 0; flex-direction: column; gap: 10px; overflow: auto; padding: 16px; font-size: var(--text-row); line-height: 1.6; }
.msg { max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; }
/* sua fala: balão no papel, como na conversa de revisão do Portal */
.msg.voce {
  align-self: flex-end; max-width: 88%; padding: 10px 14px;
  border: 1px solid var(--color-line); border-radius: 14px 14px 3px 14px; background: var(--color-ground);
}
.msg.voce .tag { display: block; margin-bottom: 4px; font: 400 10px var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-faint); }
.msg.voce .missao-tag { color: var(--color-fixed); }
.msg.texto code, .conteudo-arquivo code, .mesa-ev .txt code, .boletim-bloco code {
  padding: 1px 5px; border-radius: 4px; font: 400 12.5px var(--font-mono); background: var(--color-chip);
}
.msg.texto pre { margin: 6px 0; padding: 12px 14px; overflow: auto; border: 1px solid var(--color-line-soft); border-radius: 10px; background: var(--color-ground); font: 300 12.5px/1.55 var(--font-mono); }
/* blocos da missão: nota com o fio à esquerda (k-note) */
.bloco {
  margin: 8px 0; padding: 12px 14px; white-space: normal;
  border-left: 1px solid var(--color-fixed); border-radius: 0 10px 10px 0; background: rgb(var(--fixed-rgb) / 0.05);
}
.bloco > b { display: block; margin-bottom: 6px; font: 400 10.5px var(--font-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-fixed); }
.bloco > div, .bloco details > div { white-space: pre-wrap; }
.bloco code { padding: 0; background: none; font: 400 10.5px var(--font-mono); letter-spacing: 0.06em; color: var(--color-fixed); }
.bloco details summary { cursor: pointer; font-size: var(--text-sub); color: var(--color-muted); }
.bloco details[open] summary { margin-bottom: 8px; color: var(--color-faint); }
.b-para, .b-pronto, .b-aprovado, .b-fechar { border-left-color: var(--color-accent); background: rgb(var(--accent-rgb) / 0.05); }
.b-para > b, .b-pronto > b, .b-aprovado > b, .b-fechar > b { color: var(--color-accent); }
.b-reprovado, .b-bloqueado { border-left-color: var(--color-alert-strong); background: var(--color-alert-bg); }
.b-reprovado > b, .b-bloqueado > b { color: var(--color-alert-fg); }
/* passos técnicos: recolhidos, em texto apagado */
.passos > summary { display: inline-flex; align-items: center; gap: 7px; list-style: none; cursor: pointer; padding: 2px 0; font-size: var(--text-meta); color: var(--color-faint); transition: color 0.2s; }
.passos > summary::-webkit-details-marker { display: none; }
.passos > summary:hover { color: var(--color-muted); }
.passos .erros { font-style: italic; }
.passos .lista { display: flex; flex-direction: column; gap: 5px; margin: 6px 0 4px 6px; padding-left: 12px; border-left: 1px solid var(--color-line); }
.ferramenta { display: flex; min-width: 0; align-items: center; gap: 8px; font-size: var(--text-meta); line-height: 1.45; color: var(--color-muted); }
.ferramenta .resumo { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ferramenta.clicavel { cursor: pointer; }
.ferramenta.clicavel:hover { color: var(--color-ink); }
.ferramenta.ok::after { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--color-status-approved-dot); }
.ferramenta.erro { color: var(--color-alert-fg); }
.falha { padding: 8px 12px; white-space: pre-wrap; border-left: 2px solid var(--color-alert-strong); border-radius: 0 8px 8px 0; background: var(--color-alert-bg); font: 300 11.5px/1.5 var(--font-mono); color: var(--color-alert-fg); }
.aviso { padding: 10px 14px; border-left: 1px solid var(--color-fixed); border-radius: 0 10px 10px 0; background: rgb(var(--fixed-rgb) / 0.05); font-size: var(--text-sub); line-height: 1.5; }
.fim { display: flex; align-items: center; align-self: center; gap: 10px; margin: 4px 0; font: 400 10px/1.5 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-faint); }
.fim::before, .fim::after { content: ""; flex: none; width: 18px; height: 1px; background: var(--color-line-strong); }
.commit-msg { font: 400 10.5px/1.5 var(--font-mono); letter-spacing: 0.04em; color: var(--color-faint); }
.commit-msg code { color: var(--color-fixed); }
.digitando { display: flex; align-items: center; gap: 8px; font-size: var(--text-meta); color: var(--color-faint); }
.digitando::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--color-accent); box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / 0.1); animation: os-blink 1.6s infinite; }
.vazio-chat { max-width: 300px; margin: auto; text-align: center; font-size: var(--text-sub); line-height: 1.5; color: var(--color-muted); }
.vazio-chat strong { display: block; margin-bottom: 8px; font: 300 22px/1.15 var(--font-display); letter-spacing: -0.01em; color: var(--color-ink); }
/* precisa de você: cartão e faixa em terracota */
.aprovacao { padding: 16px; white-space: normal; border: 1px solid rgb(var(--fixed-rgb) / 0.45); border-radius: 12px; background: rgb(var(--fixed-rgb) / 0.05); }
.aprovacao h4 { margin: 0 0 10px; font: 300 20px/1.2 var(--font-display); letter-spacing: -0.008em; color: var(--color-ink); }
.aprovacao ul { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.aprovacao li.humano { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border: 1px solid var(--color-line-soft); border-radius: 10px; background: var(--color-surface); }
.aprovacao li.humano b { margin-bottom: 6px; font-weight: 400; }
.aprovacao li.humano > span:not(.rot) { font-size: var(--text-sub); color: var(--color-muted); }
.aprovacao .rot { font: 400 9.5px/1.4 var(--font-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-fixed); }
.aprovacao .origem { margin: -2px 0 12px; font-size: var(--text-meta); line-height: 1.5; color: var(--color-muted); }
.aprovacao .origem code { font: 400 10.5px var(--font-mono); color: var(--color-fixed); }
.aprovacao details { margin-top: 6px; }
.aprovacao summary { cursor: pointer; font-size: 12px; color: var(--color-faint); }
.aprovacao details code { display: block; max-height: 120px; margin-top: 6px; overflow: auto; word-break: break-all; font: 300 11px/1.5 var(--font-mono); color: var(--color-muted); }
.aprovacao .acoes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.aprovacao .k-btn { height: auto; padding-block: 8px; white-space: normal; text-align: left; line-height: 1.4; }
.aprovacao .perm { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px dashed var(--color-line-strong); }
.aprovacao .perm:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.faixa-ok {
  display: flex; flex: none; align-items: center; gap: 10px; margin: 12px 14px 0; padding: 10px 12px 10px 14px;
  border: 1px solid rgb(var(--fixed-rgb) / 0.45); border-radius: 10px; background: rgb(var(--fixed-rgb) / 0.05); font-size: var(--text-sub); line-height: 1.45;
}
.faixa-ok[hidden] { display: none; }
.faixa-ok > span { flex: 1; min-width: 0; }
.faixa-ok b { font-weight: 400; color: var(--color-fixed); }
.caixa { flex: none; padding: 12px 14px 14px; border-top: 1px solid var(--color-line-soft); }
.caixa .k-textarea { min-height: 78px; resize: none; }
.caixa-acoes { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.dica { flex: 1; min-width: 0; font: 400 10px/1.4 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-faint); }

/* ---------- centro: preview, arquivo, mudanças, kanban ---------- */
.abas.k-tabs { flex: none; align-self: flex-start; margin: 14px 14px 0; }
.abas .k-tab { min-height: 34px; padding: 0 13px; }
.k-tab.ativa { background: var(--color-line-soft); color: var(--color-ink); }
.painel { display: flex; flex: 1; min-height: 0; flex-direction: column; }
.painel[hidden] { display: none; }
.barra-url { display: flex; flex: none; align-items: center; gap: 8px; padding: 12px 14px; }
.barra-url .k-input { flex: 1; min-height: 36px; font: 300 12.5px var(--font-mono); }
.moldura { display: flex; flex: 1; min-height: 0; margin: 0 14px 14px; overflow: hidden; border: 1px solid var(--color-line); border-radius: 10px; background: #fff; }
.moldura:has(.vazio) { border: 1px dashed var(--color-line-strong); background: transparent; }
.moldura iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.moldura img, .moldura video { display: block; max-width: 100%; max-height: 100%; margin: auto; }
.vazio { margin: auto; padding: 36px 18px; text-align: center; font-size: var(--text-sub); line-height: 1.6; color: var(--color-muted); }
.cabeca-arquivo { display: flex; flex: none; justify-content: space-between; gap: 10px; padding: 14px 16px 10px; border-bottom: 1px solid var(--color-line-soft); font: 400 10.5px var(--font-mono); letter-spacing: 0.08em; color: var(--color-muted); }
.cabeca-arquivo .vivo-tag { color: var(--color-accent); }
.conteudo-arquivo { flex: 1; min-height: 0; overflow: auto; }
.codigo { margin: 0; padding: 10px 0; counter-reset: l; font: 300 12.5px/1.65 var(--font-mono); }
.codigo span { display: block; padding-right: 16px; white-space: pre; }
.codigo span::before { counter-increment: l; content: counter(l); display: inline-block; width: 50px; padding-right: 14px; text-align: right; color: var(--color-faint); user-select: none; }
.mudancas { flex: 1; min-height: 0; overflow: auto; padding: 14px 16px; }
.mudancas .lista-status { display: flex; flex-direction: column; gap: 3px; margin-bottom: 14px; font: 300 12.5px var(--font-mono); }
.mudancas .lista-status b { display: inline-block; width: 26px; color: var(--color-fixed); }
.mudancas p.dica { margin: 0 0 12px; }
.diff { margin: 0; font: 300 12px/1.6 var(--font-mono); }
.diff span { display: block; padding: 0 8px; white-space: pre; }
.diff .add { color: var(--color-status-approved-fg); background: var(--color-status-approved-bg); }
.diff .del { color: var(--color-alert-fg); background: var(--color-alert-bg); }
.diff .hun { margin-top: 6px; color: var(--color-fixed); }
.diff .arq { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--color-line-soft); font-weight: 400; color: var(--color-ink); }
.diff.mini { max-height: 160px; margin: 0 0 10px; padding: 6px 0; overflow: auto; border-radius: 8px; background: var(--color-ground); white-space: pre-wrap; }
.diff.mini span { white-space: pre-wrap; }
/* kanban: colunas afundadas no papel, cards em caixinha */
.kanban { flex: 1; min-height: 0; overflow: auto; padding: 14px; }
.quadro { display: grid; grid-template-columns: repeat(5, minmax(170px, 1fr)); gap: 10px; min-height: 100%; }
.coluna-k { display: flex; min-height: 200px; flex-direction: column; border: 1px solid var(--color-line-soft); border-radius: 10px; background: var(--color-ground); transition: border-color 0.2s, background 0.2s; }
.coluna-k.alvo { border-color: var(--color-accent); background: rgb(var(--accent-rgb) / 0.06); }
.coluna-k header { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 8px; font: 400 10.5px var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-muted); }
.coluna-k header i { font-style: normal; letter-spacing: 0.06em; color: var(--color-faint); font-variant-numeric: tabular-nums; }
.coluna-k.k2 header { color: var(--color-fixed); }
.coluna-k.k3 header { color: var(--color-alert-fg); }
.coluna-k.k4 header { color: var(--color-status-approved-fg); }
.cards-k { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 0 8px 8px; }
.card-k { position: relative; padding: 10px 12px; cursor: grab; border: 1px solid var(--color-line-soft); border-radius: 10px; background: var(--color-surface); transition: border-color 0.2s; }
.card-k:hover { border-color: var(--color-line-strong); }
.card-k.arrastando { opacity: 0.4; }
.card-k code { font: 400 10.5px var(--font-mono); letter-spacing: 0.08em; color: var(--color-fixed); }
.card-k p { margin: 3px 0 0; font-size: var(--text-sub); line-height: 1.45; overflow-wrap: anywhere; }
.card-k .mandar { display: none; margin-top: 8px; font: 400 10px var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-faint); transition: color 0.2s; }
.card-k:hover .mandar, .card-k:focus-within .mandar { display: inline-flex; align-items: center; gap: 6px; }
.card-k .mandar:hover { color: var(--color-accent); }
.novo-card input { width: calc(100% - 16px); min-height: 36px; margin: 0 8px 8px; padding: 0 10px; border: 1px dashed var(--color-line-strong); border-radius: 8px; background: transparent; font-size: var(--text-sub); outline: none; }
.novo-card input:focus { border-style: solid; box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / 0.1); }

/* ---------- repositório ---------- */
.visao { display: flex; flex: none; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 16px 10px 18px; }
.visao:empty { display: none; }
.ramo { padding: 3px 10px; border-radius: 999px; font: 400 10.5px/1.4 var(--font-mono); letter-spacing: 0.06em; color: var(--color-status-production-fg); background: var(--color-status-production-bg); }
.ramo.agente { color: var(--color-status-changes-fg); background: var(--color-status-changes-bg); }
.visao .dica { flex: 1; font: 300 12.5px var(--font-sans); letter-spacing: 0; text-transform: none; }
.arvore { flex: 1.6; min-height: 0; overflow: auto; padding: 0 10px 10px; font-size: var(--text-sub); }
.no { position: relative; display: flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 7px; cursor: pointer; white-space: nowrap; color: var(--color-muted); transition: color 0.2s; }
.no:hover, .no.pasta { color: var(--color-ink); }
.no .seta { display: grid; place-items: center; width: 12px; flex: none; color: var(--color-faint); }
.no.aberto-agora { color: var(--color-accent); background: rgb(var(--accent-rgb) / 0.07); }
.no.tocado::after { content: ""; position: absolute; right: 8px; width: 5px; height: 5px; border-radius: 1.5px; background: var(--color-fixed); }
.no.vivo { color: var(--color-ink); animation: brilho 1.6s ease-out; }
.no.vivo::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1px; background: var(--color-accent); }
@keyframes brilho { from { background: rgb(var(--accent-rgb) / 0.2); } to { background: transparent; } }
.filhos { margin-left: 13px; padding-left: 5px; border-left: 1px solid var(--color-line-soft); }
.commits { flex: 1; min-height: 0; overflow: auto; padding: 0 16px 12px 18px; }
.commit { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; padding: 9px 0; border-top: 1px solid var(--color-line-soft); font-size: var(--text-sub); line-height: 1.45; }
.commit:first-child { border-top: 0; }
.commit code { padding-top: 2px; font: 400 11px var(--font-mono); color: var(--color-fixed); font-variant-numeric: tabular-nums; }
.commit .q { grid-column: 2; font: 400 10px var(--font-mono); letter-spacing: 0.06em; color: var(--color-faint); }

/* ---------- eventos ao vivo ---------- */
.log { flex: none; margin: 0 var(--borda) var(--vao); }
.log-alca { width: 100%; min-height: 40px; padding: 10px 12px 6px 18px; text-align: left; }
.log-linhas { height: var(--log-h, 92px); overflow: auto; padding: 0 18px 12px; font: 300 11.5px/1.7 var(--font-mono); color: var(--color-muted); }
.log.fechado .log-linhas { display: none; }
.log.fechado .log-alca { padding-bottom: 10px; }
.log-linhas div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-linhas .h { color: var(--color-faint); }
.log-linhas .a { color: var(--color-fixed); }
.log-linhas .t { color: var(--color-accent); }
.log-linhas .e { color: var(--color-alert-fg); }

/* ---------- Vera: o painel lateral do Talk ---------- */
.gaveta {
  position: fixed; top: var(--topo-h); right: 0; bottom: 0; z-index: 46; display: flex; flex-direction: column;
  width: clamp(360px, 36vw, 560px);
  background: var(--color-ground); border-top: 1px solid var(--color-line); border-left: 1px solid var(--color-line-strong);
  border-radius: 14px 0 0 0; box-shadow: -24px 0 48px -36px rgb(var(--shade-rgb) / 0.4);
  transform: translateX(105%); visibility: hidden;
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s 0.32s;
}
.gaveta.aberta { transform: none; visibility: visible; transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1); }
.gaveta-topo { display: flex; flex: none; align-items: center; justify-content: space-between; padding: 18px 18px 6px; }
.quem-vera { display: flex; align-items: center; gap: 12px; }
.quem-vera b { display: block; font: 300 22px/1.12 var(--font-display); letter-spacing: -0.01em; }
.quem-vera span:not(.av) { font-size: var(--text-meta); color: var(--color-faint); }
.gaveta .abas.k-tabs { margin: 10px 18px 0; }
.painel-vera { display: flex; flex: 1; min-height: 0; flex-direction: column; }
.painel-vera[hidden] { display: none; }
.painel-vera.rolavel { overflow: auto; padding: 16px 18px; }
.lista-missoes { display: flex; flex: none; flex-direction: column; gap: 8px; max-height: 40%; overflow: auto; padding: 14px 18px; }
.missao-item { display: block; padding: 12px 14px; text-align: left; border: 1px solid var(--color-line-soft); border-radius: 10px; background: var(--color-surface); transition: border-color 0.2s; }
.missao-item:hover { border-color: var(--color-line-strong); }
.missao-item.aberta { border-color: rgb(var(--accent-rgb) / 0.5); }
.missao-item .linha1 { display: flex; align-items: center; gap: 10px; }
.missao-item .linha1 b { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--text-row); }
.missao-item code { font: 400 10.5px var(--font-mono); letter-spacing: 0.08em; color: var(--color-fixed); }
.missao-item .linha2 { margin: 4px 0 8px; font-size: var(--text-meta); color: var(--color-faint); }
/* pílula de status: véu claro, nunca cheia */
.pill { flex: none; padding: 3px 10px; border-radius: 999px; font: 400 10.5px/1.4 var(--font-mono); letter-spacing: 0.06em; white-space: nowrap; color: var(--color-status-production-fg); background: var(--color-status-production-bg); }
.s-ativa .pill { color: var(--color-status-review-fg); background: var(--color-status-review-bg); }
.s-pausada .pill { color: var(--color-status-changes-fg); background: var(--color-status-changes-bg); }
.s-fechada .pill { color: var(--color-status-approved-fg); background: var(--color-status-approved-bg); }
.barra { height: 3px; overflow: hidden; border-radius: 2px; background: var(--color-line); }
.barra i { display: block; height: 100%; background: var(--color-accent); transition: width 0.6s ease; }
.s-pausada .barra i { background: var(--color-fixed); }
.mesa { display: flex; flex: 1; min-height: 0; flex-direction: column; border-top: 1px solid var(--color-line); }
.mesa[hidden] { display: none; }
.mesa-cabeca { display: flex; flex: none; flex-direction: column; gap: 10px; padding: 16px 18px 12px; }
.mesa-cabeca b { font: 300 20px/1.2 var(--font-display); letter-spacing: -0.008em; }
.mesa-cabeca p { margin: 4px 0 0; font-size: var(--text-meta); line-height: 1.5; color: var(--color-muted); }
.mesa-cabeca .acoes { display: flex; flex-wrap: wrap; gap: 8px; }
.mesa-eventos { display: flex; flex: 1; min-height: 0; flex-direction: column; overflow: auto; padding: 0 18px 18px 22px; }
.mesa-ev { position: relative; padding: 8px 0 8px 16px; border-left: 1px solid var(--color-line); }
.mesa-ev::before { content: ""; position: absolute; left: -4px; top: 14px; width: 7px; height: 7px; border-radius: 50%; background: var(--color-line-strong); }
.mesa-ev.t-para::before { background: var(--color-accent); }
.mesa-ev.t-pronto::before, .mesa-ev.t-aprovado::before, .mesa-ev.t-fechar::before { background: var(--color-status-approved-dot); }
.mesa-ev.t-reprovado::before, .mesa-ev.t-bloqueado::before { background: var(--color-alert-strong); }
.mesa-ev.t-pergunta::before, .mesa-ev.t-aguardando::before, .mesa-ev.t-aviso::before { background: var(--color-fixed); }
.mesa-ev.t-missao::before { border-radius: 1.5px; background: var(--color-fixed); }
.mesa-ev .quem { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px; font-size: var(--text-meta); color: var(--color-muted); }
.mesa-ev .quem b { color: var(--color-ink); }
.mesa-ev .quem code { font: 400 10.5px var(--font-mono); color: var(--color-fixed); }
.mesa-ev .h { margin-left: auto; font: 400 10px var(--font-mono); letter-spacing: 0.06em; color: var(--color-faint); }
.mesa-ev .txt { max-height: 160px; margin-top: 3px; overflow: auto; white-space: pre-wrap; font-size: var(--text-sub); line-height: 1.5; color: var(--color-muted); }
.pergunta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 12px; padding: 14px; border-left: 1px solid var(--color-fixed); border-radius: 0 10px 10px 0; background: rgb(var(--fixed-rgb) / 0.05); }
.pergunta p { margin: 0; font-size: var(--text-row); line-height: 1.55; }
.pergunta textarea { width: 100%; min-height: 64px; padding: 10px 12px; resize: vertical; outline: none; border: 1px solid var(--color-line); border-radius: 8px; background: var(--color-surface); font-size: 15px; line-height: 1.55; transition: border-color 0.2s, box-shadow 0.2s; }
.pergunta textarea:focus { border-color: var(--color-line-strong); box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / 0.1); }
#listaPerguntas > p.dica { margin: 0; }
.boletim-bloco { margin-bottom: 26px; }
.boletim-bloco header { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.boletim-bloco h3 { margin: 0; font-size: 22px; line-height: 1.12; }
.boletim-bloco .dica { flex: 1; font: 300 12.5px var(--font-sans); letter-spacing: 0; text-transform: none; }

/* ---------- janela e avisos ---------- */
dialog.os-dialog {
  width: min(420px, calc(100vw - 32px)); padding: 22px; color: var(--color-ink);
  background: var(--color-ground); border: 1px solid var(--color-line-strong); border-radius: 14px; box-shadow: var(--shadow-os);
}
.os-dialog::backdrop { background: rgb(2 2 4 / 0.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.os-dialog[open] { animation: os-dialog-in 0.3s cubic-bezier(0.2, 0.75, 0.2, 1); }
@keyframes os-dialog-in { from { opacity: 0; translate: 0 6px; } }
.os-dialog h3 { margin: 0 0 16px; font-size: 26px; line-height: 1.15; }
.dialogo-acoes { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.erro { min-height: 1em; margin: 8px 0 0; }
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 70; display: flex; max-width: 420px; align-items: center; gap: 12px;
  padding: 12px 16px; translate: -50% 0; border: 1px solid rgb(240 236 228 / 0.16); border-radius: 12px; background: #17171b; color: #f0ece4;
  font-size: var(--text-row); line-height: 1.4; box-shadow: 0 24px 48px -24px rgb(var(--shade-rgb) / 0.6);
  animation: k-rise 0.35s ease-out both; transition: opacity 0.4s;
}
.toast::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: #a29e96; }
.toast.ok::before { background: #1fc7c1; box-shadow: 0 0 0 3px rgb(31 199 193 / 0.14); }
.toast.erro::before { background: #ff7a6b; box-shadow: 0 0 0 3px rgb(255 122 107 / 0.14); }
.toast.sai { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .gaveta, .gaveta.aberta, .os-dialog[open], .toast, .no.vivo { animation: none; transition: none; }
}

/* ---------- abrir, fechar, recolher, ajustar ---------- */
/* alças entre as colunas: um fio que acende em turquesa ao passar o mouse ou arrastar */
.alca { position: relative; display: flex; align-items: center; justify-content: center; cursor: col-resize; touch-action: none; outline: none; }
.alca::before { content: ""; position: absolute; top: 14px; bottom: 14px; left: 50%; width: 1px; background: transparent; transition: background 0.2s; }
.alca-grip { position: relative; width: 4px; height: 34px; border-radius: 4px; background: var(--color-line-strong); opacity: 0.55; transition: opacity 0.2s, background 0.2s, height 0.2s; }
.alca:hover::before, .alca:focus-visible::before, .alca.ativa::before { background: rgb(var(--accent-rgb) / 0.45); }
.alca:hover .alca-grip, .alca:focus-visible .alca-grip, .alca.ativa .alca-grip { height: 48px; background: var(--color-accent); opacity: 1; }
.alca.trava { cursor: default; pointer-events: none; }
.alca.trava .alca-grip { display: none; }
.alca-h { height: var(--vao); margin: calc(var(--vao) * -1) var(--borda) 0; position: relative; cursor: row-resize; touch-action: none; outline: none; }
.alca-h::before { content: ""; position: absolute; left: 50%; top: 50%; width: 40px; height: 4px; border-radius: 4px; translate: -50% -50%; background: var(--color-line-strong); opacity: 0; transition: opacity 0.2s, background 0.2s, width 0.2s; }
.alca-h:hover::before, .alca-h:focus-visible::before, .alca-h.ativa::before { opacity: 1; width: 56px; background: var(--color-accent); }
body:has(.log.fechado) #alcaLog { pointer-events: none; }
body.arrastando, body.arrastando * { cursor: col-resize !important; user-select: none !important; }
body.arrastando.vertical, body.arrastando.vertical * { cursor: row-resize !important; }
body.arrastando iframe { pointer-events: none; }

/* botões no canto das cabeças */
.cab-acoes { display: inline-flex; align-items: center; gap: 4px; }
.cab-acoes .k-icon.mini { width: 28px; height: 28px; }

/* coluna recolhida: vira um trilho com o ícone de abrir e o nome na vertical */
.trilho { display: none; }
.cartao.recolhida > :not(.trilho) { display: none !important; }
.cartao.recolhida .trilho {
  display: flex; flex: 1; flex-direction: column; align-items: center; gap: 14px; width: 100%; padding: 14px 0;
  color: var(--color-muted); transition: color 0.2s, background 0.2s;
}
.cartao.recolhida .trilho:hover { color: var(--color-ink); background: rgb(var(--accent-rgb) / 0.05); }
.trilho .ic { flex: none; }
.trilho-t { writing-mode: vertical-rl; font: 400 10.5px var(--font-mono); letter-spacing: 0.22em; text-transform: uppercase; }
.repo .trilho-t { transform: rotate(180deg); }

/* eventos ao vivo: seta que gira ao recolher */
.log-alca .seta { display: inline-flex; color: var(--color-faint); transition: transform 0.25s, color 0.2s; }
.log-alca:hover .seta { color: var(--color-ink); }
.log.fechado .log-alca .seta { transform: rotate(180deg); }

/* todo <details> ganha a mesma seta: aponta para a direita fechado e para baixo aberto */
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before {
  content: ""; display: inline-block; flex: none; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px;
  background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.2s;
}
.passos > summary::before { margin-right: 0; }
details[open] > summary::before { transform: rotate(90deg); }

/* projeto: seta mostra se as seções estão abertas */
.projeto-nome .seta { margin-left: auto; display: inline-flex; color: var(--color-faint); transition: transform 0.2s; }
.projeto.ativo > .projeto-linha > .projeto-nome .seta { transform: rotate(90deg); }
.projeto-linha { display: flex; align-items: center; }
.projeto-linha .projeto-nome { flex: 1; min-width: 0; }
.projeto-nome .nome { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-gatilho { flex: none; width: 26px; height: 26px; opacity: 0; transition: opacity 0.2s; }
.projeto-linha:hover .menu-gatilho, .secao-linha:hover .menu-gatilho, .menu-gatilho:focus-visible, .menu-gatilho[aria-expanded="true"] { opacity: 1; }
.secao-linha { display: flex; align-items: center; }
.secao-linha .secao { flex: 1; min-width: 0; }
.projeto.arquivado .projeto-nome, .secao-linha.arquivada .secao { color: var(--color-faint); font-style: italic; }
.grupo-arquivados { margin-top: 10px; border-top: 1px solid var(--color-line-soft); padding-top: 6px; }
.grupo-arquivados > summary { display: flex; align-items: center; padding: 6px 8px; cursor: pointer; font: 400 10px var(--font-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-faint); }
.grupo-arquivados > summary:hover { color: var(--color-muted); }

/* menu pequeno de ações (arquivar, reativar, excluir) */
.menu-acoes {
  position: fixed; z-index: 60; min-width: 190px; padding: 6px; border: 1px solid var(--color-line); border-radius: 10px;
  background: var(--color-surface); box-shadow: var(--shadow-os);
}
.menu-acoes button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 7px; text-align: left; font-size: var(--text-sub); color: var(--color-ink); }
.menu-acoes button:hover { background: rgb(var(--accent-rgb) / 0.07); }
.menu-acoes button.perigo { color: var(--color-alert-fg); }
.menu-acoes button.perigo:hover { background: rgb(var(--alert-rgb, 200 60 60) / 0.08); }

/* buscas rápidas */
.chat-topo { display: flex; flex: none; align-items: flex-start; gap: 6px; padding-right: 10px; }
.chat-topo .abas-agentes { flex: 1; min-width: 0; }
.chat-topo .cab-acoes { padding-top: 14px; }
.busca { display: flex; flex: none; align-items: center; gap: 6px; margin: 8px 12px 0; padding: 0 4px 0 10px; border: 1px solid var(--color-line); border-radius: 9px; color: var(--color-faint); }
.busca:focus-within { border-color: var(--color-accent); }
.busca .k-input { flex: 1; min-width: 0; height: 32px; padding: 0 2px; border: 0; background: transparent; box-shadow: none; }
.busca-n { flex: none; font: 300 11px var(--font-mono); color: var(--color-faint); }
.lateral .busca { margin: 0 10px 8px; }
mark.achado { padding: 0 1px; border-radius: 3px; background: rgb(var(--accent-rgb) / 0.18); color: inherit; }
mark.achado.atual { background: var(--color-fixed); color: #fff; }
.projetos .sem-resultado { padding: 8px; font-size: var(--text-meta); color: var(--color-faint); }
.confirma-texto { margin: 6px 0 18px; max-width: 420px; font-size: var(--text-sub); line-height: 1.55; color: var(--color-muted); }
.k-btn.perigo { background: var(--color-alert-fg); border-color: var(--color-alert-fg); color: #fff; }

/* ---------- caixa de conversa do SKWADRA.OS ---------- */
.caixa.compositor { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px 12px; }
.campo-conversa {
  display: flex; align-items: flex-end; gap: 4px; padding: 6px 6px 6px 16px;
  background: var(--color-surface); border: 1px solid var(--color-line); border-radius: 14px;
  box-shadow: var(--shadow-os); transition: border-color 0.2s, box-shadow 0.2s;
}
.campo-conversa:focus-within { border-color: var(--color-line-strong); box-shadow: var(--shadow-os), 0 0 0 4px rgb(var(--accent-rgb) / 0.08); }
.campo-texto {
  flex: 1; min-width: 0; min-height: 44px; max-height: 220px; padding: 11px 0; border: 0; outline: none; resize: none;
  background: transparent; color: var(--color-ink); font: 300 15px/1.5 var(--font-sans); field-sizing: content;
}
.campo-texto::placeholder { color: var(--color-faint); }
.campo-botoes { display: flex; flex: none; align-items: center; gap: 2px; }
.ib {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  color: var(--color-muted); transition: color 0.2s, background 0.2s;
}
.ib:hover { color: var(--color-ink); background: var(--color-line-soft); }
.ib.enviar { color: var(--color-accent); }
.ib.enviar:hover { background: rgb(var(--accent-rgb) / 0.1); }
.ib.enviar:disabled { color: var(--color-faint); background: transparent; }
.ib.parar { color: var(--color-alert-fg); }
.ib.parar:not([hidden]) + .enviar { display: none; }
.ib.microfone.ouvindo { color: #fff; background: var(--color-fixed); animation: os-blink 1.4s infinite; }
.modo-voz .ib.microfone { color: var(--color-accent); }

/* réguas de modelo e esforço e a chave de voz */
.ajustes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: 18px; align-items: start; padding: 2px 4px 0; }
.regua { min-width: 0; }
.regua-topo { display: flex; align-items: baseline; gap: 10px; }
.regua-topo .k, .voz .k { font: 400 9.5px var(--font-mono); letter-spacing: 0.22em; text-transform: uppercase; color: var(--color-faint); }
.regua-topo .v { font: 300 13.5px var(--font-sans); color: var(--color-ink); }
.regua .skw-range { display: block; width: 100%; margin: 4px 0 2px; }
.marcas { display: flex; justify-content: space-between; gap: 4px; }
.marcas span { cursor: pointer; font: 400 8.5px var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-faint); white-space: nowrap; transition: color 0.2s; }
.marcas span:hover { color: var(--color-muted); }
.marcas span.ativa { color: var(--color-accent); }
.voz { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.chave { position: relative; width: 30px; height: 16px; border: 1px solid var(--color-line-strong); border-radius: 99px; transition: border-color 0.2s, background 0.2s; }
.chave span { position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--color-muted); transition: transform 0.2s, background 0.2s; }
.chave[aria-checked="true"] { border-color: var(--color-accent); background: rgb(var(--accent-rgb) / 0.1); }
.chave[aria-checked="true"] span { transform: translateX(14px); background: var(--color-accent); }
.caixa-rodape { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 4px; }
.escopo-ia { font: 400 9.5px var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-faint); white-space: nowrap; }
.link-ia { font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--color-accent); text-decoration: underline; text-underline-offset: 3px; }

/* régua fina com bolinha (skw-range do Portal) */
.skw-range { -webkit-appearance: none; appearance: none; height: 18px; background: transparent; accent-color: var(--color-accent); cursor: pointer; }
.skw-range::-webkit-slider-runnable-track { height: 1px; background: linear-gradient(90deg, var(--color-accent) var(--fill, 0%), var(--color-line-strong) var(--fill, 0%)); }
.skw-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 11px; height: 11px; margin-top: -5px; border-radius: 50%;
  background: var(--color-ground); border: 1px solid var(--color-accent); box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / 0.1);
}
.skw-range:focus-visible { outline: none; }
.skw-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgb(var(--accent-rgb) / 0.2); }

/* anexos esperando o envio */
.anexos-fila { display: flex; flex-wrap: wrap; gap: 6px; }
.anexo-chip {
  display: flex; align-items: center; gap: 8px; max-width: 240px; padding: 4px;
  border: 1px solid var(--color-line); border-radius: 10px; background: var(--color-surface); font-size: var(--text-meta);
}
.anexo-chip .mini { display: grid; place-items: center; flex: none; width: 30px; height: 30px; overflow: hidden; border-radius: 7px; background: var(--color-line-soft); color: var(--color-muted); }
.anexo-chip .mini img { width: 100%; height: 100%; object-fit: cover; }
.anexo-chip .nome { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--color-ink); }
.anexo-chip .tam { flex: none; font: 400 10px var(--font-mono); color: var(--color-faint); }
.anexo-chip.subindo .tam { color: var(--color-accent); }
.anexo-chip.erro { border-color: var(--color-alert-fg); }
.anexo-chip.erro .tam { color: var(--color-alert-fg); }
.anexo-chip .tirar { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 6px; color: var(--color-faint); }
.anexo-chip .tirar:hover { color: var(--color-ink); background: var(--color-line-soft); }

/* anexos dentro da mensagem */
.anexos-msg { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.anexo-img { display: block; overflow: hidden; max-width: 220px; max-height: 180px; border-radius: 10px; border: 1px solid var(--color-line); }
.anexo-img img { display: block; max-width: 100%; max-height: 180px; object-fit: cover; }
.anexo-arq {
  display: flex; align-items: center; gap: 10px; max-width: 280px; padding: 8px 8px 8px 10px; border: 1px solid var(--color-line);
  border-radius: 10px; background: var(--color-surface); color: var(--color-muted); text-decoration: none; transition: border-color 0.2s;
}
.anexo-arq:hover { border-color: var(--color-line-strong); color: var(--color-ink); }
.anexo-arq span { display: flex; flex: 1; min-width: 0; flex-direction: column; }
.anexo-arq b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 400; font-size: var(--text-sub); color: var(--color-ink); }
.anexo-arq i { font: normal 400 10px var(--font-mono); color: var(--color-faint); }
.anexo-arq .baixar { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 7px; color: var(--color-faint); }
.anexo-arq .baixar:hover { color: var(--color-ink); background: var(--color-line-soft); }

/* arrastar e soltar */
.coluna.chat[data-soltar] { position: relative; }
.soltar-aqui {
  position: absolute; inset: 8px; z-index: 30; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  border: 1.5px dashed var(--color-accent); border-radius: 12px; background: rgb(var(--accent-rgb) / 0.06); backdrop-filter: blur(2px);
  font: 400 11px var(--font-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-accent); pointer-events: none;
}
.soltando > .soltar-aqui { display: flex; }

/* seletor do OS (no lugar do <select> do sistema) */
.os-line.os-line-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 44px; padding: 0 12px;
  border: 1px solid var(--color-line); border-radius: 8px; background: var(--color-surface); color: var(--color-ink);
  font: 300 15px/1.4 var(--font-sans); text-align: left; cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s;
}
.os-line.os-line-btn:hover { border-color: var(--color-line-strong); }
.os-line.os-line-btn:focus-visible { outline: none; border-color: var(--color-line-strong); box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / 0.1); }
.os-line.os-line-btn.aberto { border-bottom-color: var(--color-fixed); box-shadow: 0 1px 0 0 var(--color-fixed); }
.os-line-btn .ic { color: var(--color-faint); transition: transform 0.2s; }
.os-line-btn.aberto .ic { transform: rotate(180deg); }
.os-line-btn .truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.os-pop.os-sel-pop {
  z-index: 80; display: flex; flex-direction: column; gap: 2px; max-height: 320px; overflow: auto; padding: 6px;
  background: var(--color-ground); border: 1px solid var(--color-line-strong); border-radius: 12px; box-shadow: var(--shadow-os);
  animation: os-pop-in 0.2s cubic-bezier(0.2, 0.75, 0.2, 1);
}
@keyframes os-pop-in { from { opacity: 0; transform: translateY(-4px); } }
.os-sel-op { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border: 1px solid transparent; border-radius: 8px; text-align: left; font: 300 14px var(--font-sans); color: var(--color-ink); }
.os-sel-op:hover { background: var(--color-line-soft); }
.os-sel-op:focus-visible { outline: none; border-color: var(--color-accent); }
.os-sel-op.sel { color: var(--color-accent); }
/* no topo: compacto, com o rótulo em mono */
.global-ia { display: flex; align-items: center; gap: 6px; }
.global-ia .k-label { margin-right: 2px; }
.global-ia .os-line-btn { width: auto; min-width: 104px; min-height: 36px; padding: 0 10px; font-size: 13.5px; }

/* ---------- automações: seção com despertador e a barra até a próxima vez ---------- */
.linha-nova { display: flex; align-items: center; gap: 4px; }
.nova-auto { display: inline-flex; align-items: center; gap: 6px; }
.auto-linha .secao.auto { align-items: flex-start; justify-content: flex-start; padding-top: 7px; padding-bottom: 7px; }
.auto-ic { display: grid; place-items: center; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 6px; color: var(--color-fixed); background: rgb(var(--fixed-rgb) / 0.08); }
.auto-linha.ocupada .auto-ic { color: var(--color-accent); background: rgb(var(--accent-rgb) / 0.1); animation: os-blink 1.6s infinite; }
.auto-linha.pausada .auto-ic { color: var(--color-faint); background: var(--color-line-soft); }
.auto-txt { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 3px; margin-left: 8px; }
.auto-nome { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auto-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 9.5px var(--font-mono); letter-spacing: 0.06em; color: var(--color-faint); }
.auto-falta { color: var(--color-muted); }
.auto-barra { position: relative; display: block; height: 2px; overflow: hidden; border-radius: 2px; background: var(--color-line); }
.auto-barra i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--color-fixed); transition: width 0.6s; }
.auto-linha.ocupada .auto-barra i { background: var(--color-accent); }
.auto-pausa { flex: none; width: 26px; height: 26px; opacity: 0; transition: opacity 0.2s; }
.auto-linha:hover .auto-pausa, .auto-linha.pausada .auto-pausa, .auto-pausa:focus-visible { opacity: 1; }

/* janela de nova automação */
.dialogo-auto { width: min(520px, 92vw); }
.dialogo-auto h3 { display: flex; align-items: center; gap: 10px; }
.dialogo-auto h3 .ic { color: var(--color-fixed); }
.campo-auto { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.linha-auto { display: flex; gap: 12px; }
.linha-auto[hidden] { display: none; }
.dias-auto { display: flex; flex-wrap: wrap; gap: 4px; }
.dia-auto { min-width: 38px; height: 34px; padding: 0 8px; border: 1px solid var(--color-line); border-radius: 8px; font: 400 10px var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-muted); }
.dia-auto[aria-pressed="true"] { border-color: var(--color-accent); background: rgb(var(--accent-rgb) / 0.1); color: var(--color-accent); }
.os-sel-pop[popover] { inset: auto; margin: 0; color: inherit; }

/* ---------- rostos dos agentes ---------- */
.av.av-foto { overflow: hidden; padding: 0; background: #111; box-shadow: 0 0 0 1.5px rgb(168 85 247 / 0.7); }
.av.av-foto img { width: 100%; height: 100%; object-fit: cover; }
.ag-av {
  position: relative; display: inline-block; flex: none; width: var(--tam, 40px); height: var(--tam, 40px); border-radius: 50%;
  background: #121216; box-shadow: 0 0 0 1.5px rgb(var(--ag-rgb) / 0.55);
}
.ag-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.ag-fun {
  position: absolute; right: -3px; bottom: -3px; display: grid; place-items: center;
  width: calc(var(--tam, 40px) * 0.44); height: calc(var(--tam, 40px) * 0.44); border-radius: 50%;
  color: var(--ag); background: #0c0c10; box-shadow: 0 0 0 1px rgb(var(--ag-rgb) / 0.55);
}

/* vitrine da squad acima do chat: rosto, função no canto e o nome */
#agentes.abas-agentes { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px 14px; padding: 12px 14px 4px; }
.ag-grupo { display: flex; flex-direction: column; gap: 6px; }
.ag-grupo .rotulo-direto { margin: 0 0 0 4px; flex-basis: auto; }
.ag-lista { display: flex; flex-wrap: wrap; gap: 2px; }
.ag-tile {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 56px; padding: 6px 0 5px;
  border: 1px solid transparent; border-radius: 12px; transition: background 0.2s, border-color 0.2s;
}
.ag-tile .ag-av { transition: box-shadow 0.25s, transform 0.25s; }
.ag-tile .ag-av img { filter: grayscale(0.35) brightness(0.9); transition: filter 0.25s; }
.ag-tile:hover { background: rgb(var(--ag-rgb) / 0.07); }
.ag-tile:hover .ag-av img, .ag-tile.ativa .ag-av img { filter: none; }
.ag-tile .ag-nome { max-width: 54px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 9.5px var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-muted); }
.ag-tile.ativa { border-color: rgb(var(--ag-rgb) / 0.45); background: rgb(var(--ag-rgb) / 0.1); }
.ag-tile.ativa .ag-av { box-shadow: 0 0 0 2px var(--ag), 0 0 14px rgb(var(--ag-rgb) / 0.55); }
.ag-tile.ativa .ag-nome { color: var(--ag); }
.ag-tile.trabalhando::after {
  content: ""; position: absolute; top: 4px; right: 8px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-accent); box-shadow: 0 0 0 2px var(--color-surface-solid, var(--color-ground)); animation: os-blink 1.4s infinite;
}
.ag-tile:focus-visible { outline: none; border-color: var(--ag); }

/* cartão de quem está na conversa */
.missao.ag-card {
  display: flex; align-items: center; gap: 14px; margin: 8px 12px 0; padding: 12px 14px; border: 1px solid rgb(var(--ag-rgb) / 0.3);
  border-radius: 14px; background: linear-gradient(110deg, rgb(var(--ag-rgb) / 0.12), rgb(var(--ag-rgb) / 0.02) 60%);
}
.ag-card .ag-av { box-shadow: 0 0 0 2px var(--ag), 0 0 22px rgb(var(--ag-rgb) / 0.45); }
.ag-card-txt { min-width: 0; }
.ag-card-nome { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font: 300 22px/1.15 var(--font-display); color: var(--color-ink); }
.ag-card-papel { display: inline-flex; align-items: center; gap: 6px; font: 400 10px var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ag); }
.ag-card-txt p { margin: 4px 0 0; font-size: var(--text-meta); line-height: 1.45; color: var(--color-muted); }
.ag-card-nivel { display: inline-block; margin-top: 6px; font: 400 9.5px var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-faint); }

/* o chat ganha a cor do agente enquanto você fala com ele (mais escura no claro, neon no escuro) */
.coluna.chat.com-agente { --color-accent: color-mix(in oklab, var(--ag) 72%, #000); --accent-rgb: var(--ag-rgb); border-color: rgb(var(--ag-rgb) / 0.35); }
:root[data-theme="dark"] .coluna.chat.com-agente { --color-accent: var(--ag); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .coluna.chat.com-agente { --color-accent: var(--ag); } }
.coluna.chat.com-agente::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; z-index: 2; background: linear-gradient(90deg, transparent, var(--ag), transparent); }

/* modelo, esforço e voz em caixinhas afundadas, uma para cada coisa */
.ajustes { gap: 8px; padding: 0; align-items: stretch; }
.ajustes .regua, .ajustes .voz {
  padding: 8px 12px 7px; border: 1px solid var(--color-line-soft); border-radius: 10px; background: color-mix(in srgb, var(--color-ground-2) 50%, transparent);
}
.ajustes .voz { justify-content: center; align-items: center; gap: 10px; min-width: 58px; padding: 8px 10px; }

/* ---------- Sistema: o chat geral, antes dos projetos ---------- */
.sistema-item {
  display: flex; width: 100%; align-items: center; gap: 10px; margin: 2px 0 10px; padding: 9px 10px; text-align: left;
  border: 1px solid var(--color-line-soft); border-radius: 10px; background: color-mix(in srgb, var(--color-ground-2) 50%, transparent);
  transition: border-color 0.2s, background 0.2s;
}
.sistema-item:hover { border-color: var(--color-line-strong); }
.sistema-item.ativo { border-color: rgb(var(--accent-rgb) / 0.45); background: rgb(var(--accent-rgb) / 0.07); }
.sis-ic { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 8px; color: var(--color-fixed); background: rgb(var(--fixed-rgb) / 0.1); }
.sistema-item.ativo .sis-ic { color: var(--color-accent); background: rgb(var(--accent-rgb) / 0.12); }
.sis-txt { display: flex; min-width: 0; flex-direction: column; }
.sis-txt b { font-weight: 400; font-size: var(--text-row); color: var(--color-ink); }
.sis-txt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--text-meta); color: var(--color-faint); }
.rotulo-projetos { margin: 4px 8px 4px; font: 400 9.5px var(--font-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-faint); }

/* renomear no lugar */
input.renomear {
  flex: 1; min-width: 0; height: 26px; margin: -3px 0; padding: 0 6px; border: 1px solid var(--color-accent); border-radius: 6px;
  background: var(--color-surface); color: var(--color-ink); font: inherit; outline: none; box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / 0.12);
}

/* ---------- ajustes compactos: uma linha fina, o campo de conversa é o protagonista ---------- */
.caixa.compositor { gap: 6px; padding-bottom: 10px; }
.ajustes { display: flex; gap: 6px; align-items: stretch; }
.ajustes .regua {
  display: flex; flex: 1; min-width: 0; align-items: center; gap: 10px; padding: 4px 10px; border-radius: 8px;
}
.ajustes .regua[data-regua="esforco"] { flex: 1.15; }
.ajustes .regua-topo { flex: none; gap: 6px; }
.ajustes .regua-topo .k { font-size: 9px; letter-spacing: 0.18em; }
.ajustes .regua-topo .v { min-width: 4.2em; font-size: 12.5px; }
.ajustes .regua .skw-range { flex: 1; min-width: 40px; margin: 0; height: 16px; }
.ajustes .regua .marcas { display: none; }
.ajustes .voz { flex: none; flex-direction: row; align-items: center; gap: 8px; min-width: 0; padding: 4px 10px; border-radius: 8px; }
.caixa-rodape .dica { display: none; }
.caixa-rodape:has(.escopo-ia:empty), #caixaVera .caixa-rodape { display: none; }
.caixa-rodape { justify-content: flex-end; padding: 0 2px; }

/* topo: os seletores globais no mesmo formato dos botões redondos (pílula vazada) */
.global-ia { gap: 4px; }
.global-ia .os-line-btn {
  min-width: 0; min-height: 36px; padding: 0 10px 0 14px; gap: 6px; border-radius: 999px; border-color: var(--color-line);
  background: transparent; font-size: 13px;
}
.global-ia .os-line-btn:hover { background: var(--color-surface); }

/* ---------- coluna do chat em três blocos: quem conversa, a conversa, o campo ---------- */
.coluna.chat { gap: 10px; }
.coluna.chat > .cartao { position: relative; display: flex; min-height: 0; flex-direction: column; }
.bloco-squad { flex: none; padding-bottom: 12px; }
.bloco-squad #agentes.abas-agentes { padding: 2px 14px 0; }
.bloco-squad .missao.ag-card { margin: 10px 12px 0; }
.bloco-conversa { flex: 1; }
.bloco-conversa > .cab { border-bottom: 1px solid var(--color-line-soft); padding-bottom: 8px; }
.bloco-conversa .busca { margin-top: 8px; }
.caixa.compositor.cartao { flex: none; border-top: 1px solid var(--color-line); padding: 12px 12px 10px; }

/* grupos da vitrine separados por um fio */
.ag-grupo + .ag-grupo { padding-left: 14px; border-left: 1px solid var(--color-line); }
#agentes.abas-agentes { gap: 6px 14px; }

/* a cor do agente nos três blocos */
.coluna.chat.com-agente { border-color: transparent; }
.coluna.chat.com-agente::before { content: none; }
.coluna.chat.com-agente > .cartao { border-color: rgb(var(--ag-rgb) / 0.35); }
.coluna.chat.com-agente > .bloco-conversa::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; z-index: 2; background: linear-gradient(90deg, transparent, var(--ag), transparent); }

/* selecionado: só o tom clarinho de fundo, sem contorno */
.ag-tile.ativa { border-color: transparent; }
.missao.ag-card { border-color: transparent; }

/* ---------- lista de projetos em camadas: o projeto aberto é um bloco, seções na régua, ações em pílulas ---------- */
.projeto { border-radius: 10px; transition: background 0.2s; }
.projeto.ativo { margin: 2px 0 6px; padding-bottom: 10px; background: color-mix(in srgb, var(--color-ground-2) 55%, transparent); }
.projeto.ativo > .projeto-linha { padding-top: 2px; }
.projeto-agora { padding: 0 10px 8px 24px; }
.secoes { margin: 2px 8px 0 16px; padding-left: 0; border-left: 1px solid var(--color-line); }
.secao { padding: 6px 8px 6px 12px; }
.linha-nova { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 0 0 12px; }
.nova-secao, .nova-secao.nova-auto {
  display: inline-flex; width: auto; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 8px;
  border: 1px solid var(--color-line); border-radius: 999px; background: var(--color-surface);
  font: 400 9.5px var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-muted);
  transition: color 0.2s, border-color 0.2s;
}
.nova-secao:hover { color: var(--color-ink); border-color: var(--color-line-strong); }
.nova-secao .ic { color: var(--color-faint); }
.nova-auto .ic { color: var(--color-fixed); }

/* campo de conversa em uma linha (cresce sozinho até 220px quando o texto é maior) */
.campo-conversa { align-items: center; padding: 3px 4px 3px 14px; border-radius: 12px; }
.campo-texto { min-height: 0; height: auto; padding: 7px 0; line-height: 1.45; }
.campo-conversa .ib { width: 34px; height: 34px; border-radius: 9px; }

/* régua nunca sai da própria caixinha; com pouco espaço, os rótulos somem e fica o valor */
.ajustes { container-type: inline-size; }
.ajustes .regua { overflow: hidden; }
.ajustes .regua .skw-range { flex: 1 1 0; min-width: 24px; width: 0; }
.ajustes .regua-topo .v { min-width: 0; white-space: nowrap; }
@container (max-width: 470px) {
  .ajustes .regua-topo .k, .ajustes .voz .k { display: none; }
  .ajustes .regua { gap: 8px; padding: 4px 8px; }
}
@container (max-width: 300px) {
  .ajustes .regua-topo .v { font-size: 11.5px; }
}

/* ---------- seta e olhinho do projeto ---------- */
.proj-seta, .proj-olho { flex: none; width: 26px; height: 26px; color: var(--color-faint); }
.proj-seta .ic { transition: transform 0.2s; transform: rotate(-90deg); }
.projeto.aberto .proj-seta .ic { transform: none; }
.proj-olho { opacity: 0; transition: opacity 0.2s, color 0.2s; }
.projeto-linha:hover .proj-olho, .proj-olho:focus-visible, .projeto.oculto .proj-olho { opacity: 1; }
.projeto.oculto .proj-olho { color: var(--color-fixed); }
.projeto-nome .seta { display: none; }

/* conteúdo embaçado (o nome do projeto continua legível) */
.projeto.oculto .projeto-agora, .projeto.oculto .secoes { filter: blur(5px); user-select: none; }
body.projeto-oculto .bloco-conversa .mensagens,
body.projeto-oculto .bloco-squad .ag-card p,
body.projeto-oculto .coluna.viewport .painel,
body.projeto-oculto .repo .visao,
body.projeto-oculto .repo .arvore,
body.projeto-oculto .repo .commits,
body.projeto-oculto #trilha .agora,
body.projeto-oculto .log-linhas { filter: blur(7px); user-select: none; transition: filter 0.25s; }
body.projeto-oculto .coluna.viewport .painel iframe { pointer-events: none; }

/* ---------- campo de conversa só como uma linha: sem caixa, um fio que acende ao digitar ---------- */
.campo-conversa {
  padding: 0 0 0 2px; border: 0; border-bottom: 1px solid var(--color-line-strong); border-radius: 0;
  background: transparent; box-shadow: none;
}
.campo-conversa:focus-within { border-bottom-color: var(--color-accent); box-shadow: 0 1px 0 0 var(--color-accent); }
.campo-texto { padding: 8px 0 7px; }
.caixa.compositor.cartao { gap: 10px; padding: 8px 14px 10px; }

/* ---------- lista de projetos: minimalista e bem separada ---------- */
.projetos .projeto { margin: 0 0 8px; }
.projeto.aberto:not(.ativo) { padding-bottom: 10px; background: color-mix(in srgb, var(--color-ground-2) 30%, transparent); }
.projeto-linha { gap: 2px; padding-right: 4px; }
.projeto-linha .k-icon.mini.proj-olho,
.projeto-linha .k-icon.mini.proj-seta,
.projeto-linha .k-icon.mini.menu-gatilho {
  width: 26px; height: 26px; margin-left: 2px; border-color: transparent; background: transparent; color: var(--color-faint);
}
.projeto-linha .k-icon.mini:hover { color: var(--color-ink); background: rgb(var(--ink-rgb) / 0.06); border-color: transparent; }
.projeto-linha .k-icon.mini:focus-visible { border-color: var(--color-accent); }
.rotulo-projetos { margin: 14px 8px 8px; }
.sistema-item { margin-bottom: 4px; }

/* ---------- movimento: tudo suave, nada seco ---------- */
:root { --ease: cubic-bezier(0.2, 0.75, 0.2, 1); --t: 0.26s; }
/* cores, fios, fundos e sombras sempre mudam devagar */
button, a, .k-icon, .k-btn, .k-tab, .os-round, .ib, .ag-tile, .ag-av, .secao, .projeto, .projeto-nome, .sistema-item,
.nova-secao, .anexo-chip, .anexo-arq, .campo-conversa, .chave, .chave span, .regua, .voz, .cartao, .os-line-btn, .os-sel-op, .menu-acoes button {
  transition-property: color, background-color, border-color, box-shadow, opacity, transform, filter;
  transition-duration: var(--t); transition-timing-function: var(--ease);
}
/* a cor do agente entra e sai devagar */
.coluna.chat > .cartao, .missao.ag-card { transition: border-color 0.4s var(--ease), background 0.4s var(--ease); }
.missao.ag-card { animation: surgir 0.35s var(--ease); }
/* colunas abrem e fecham deslizando (menos enquanto você arrasta a alça) */
.palco { transition: grid-template-columns 0.38s var(--ease); }
body.arrastando .palco { transition: none; }
.cartao.recolhida .trilho { animation: surgir 0.3s var(--ease); }
/* eventos ao vivo: a altura anima em vez de sumir */
.log-linhas { transition: height 0.32s var(--ease), padding 0.32s var(--ease), opacity 0.25s var(--ease); }
.log.fechado .log-linhas { display: block; height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; overflow: hidden; }
body.arrastando .log-linhas { transition: none; }
/* projeto abrindo e fechando */
.projeto.entrando .secoes, .projeto.entrando .projeto-agora { animation: desdobrar 0.3s var(--ease); }
.projeto.fechando .secoes, .projeto.fechando .projeto-agora { animation: dobrar 0.24s var(--ease) forwards; }
.projeto { transition: background-color 0.3s var(--ease), padding 0.3s var(--ease); }
/* mensagens, menus, buscas, anexos e avisos aparecem com um leve deslize */
.mensagens > * { animation: surgir 0.3s var(--ease); }
.menu-acoes { animation: os-pop-in 0.2s var(--ease); transform-origin: top left; }
.busca:not([hidden]) { animation: surgir 0.25s var(--ease); }
.anexo-chip, .anexos-msg > * { animation: surgir 0.25s var(--ease); }
.soltando > .soltar-aqui { animation: surgir 0.2s var(--ease); }
.toast { transition: opacity 0.4s var(--ease), translate 0.4s var(--ease); animation: surgir 0.3s var(--ease); }
.painel:not([hidden]), .painel-vera:not([hidden]) { animation: surgir 0.28s var(--ease); }
.faixa-ok:not([hidden]) { animation: surgir 0.3s var(--ease); }
.proj-seta .ic, .log-alca .seta, details > summary::before, .os-line-btn .ic { transition: transform 0.3s var(--ease); }
.auto-barra i { transition: width 1s var(--ease); }
.ag-tile.ativa .ag-av { transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease); }
.ag-tile:active .ag-av { transform: scale(0.95); }

@keyframes surgir { from { opacity: 0; transform: translateY(4px); } }
@keyframes desdobrar { from { opacity: 0; transform: translateY(-6px); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); } }
@keyframes dobrar { to { opacity: 0; transform: translateY(-6px); clip-path: inset(0 0 100% 0); } }

/* quem pediu menos movimento no Windows não vê animação */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* sem tingir a tela com a cor do agente: só o ícone da função acende quando ele está selecionado */
.coluna.chat.com-agente > .cartao { border-color: var(--color-line); }
.coluna.chat.com-agente > .bloco-conversa::before { content: none; }
.missao.ag-card { background: color-mix(in srgb, var(--color-ground-2) 50%, transparent); }
.ag-card .ag-av, .ag-tile .ag-av, .ag-tile.ativa .ag-av { box-shadow: 0 0 0 1px var(--color-line-strong); }
.ag-card-papel { color: var(--color-muted); }
.ag-card-papel .ic { color: var(--ag); }
.ag-tile.ativa { background: rgb(var(--ink-rgb) / 0.05); }
.ag-tile.ativa .ag-nome { color: var(--color-ink); }
.ag-tile:hover { background: rgb(var(--ink-rgb) / 0.04); }
.ag-fun { color: var(--color-faint); box-shadow: 0 0 0 1px var(--color-line-strong); }
.ag-tile.ativa .ag-fun, .ag-card .ag-fun { color: var(--ag); box-shadow: 0 0 0 1px rgb(var(--ag-rgb) / 0.6); }

/* respiro entre os projetos: cada um é um bloco separado */
.projetos > .projeto, .grupo-arquivados > .projeto { margin: 0 0 12px; }
.projetos > .projeto.aberto, .grupo-arquivados > .projeto.aberto { padding-bottom: 12px; }
.projetos > .projeto:not(.aberto) { margin-bottom: 4px; }

/* alça entre a conversa e o campo: arrastar para cima amplia o campo de texto */
.alca-h.alca-campo { flex: none; height: 10px; margin: -10px 0; z-index: 3; }
.alca-h.alca-campo::before { width: 36px; }
.campo-texto { min-height: var(--campo-h, 0px); }
.campo-conversa:has(.campo-texto[style*="--campo-h"]), .campo-conversa.ampliado { align-items: flex-end; }
.campo-texto { max-height: max(220px, var(--campo-h, 0px)); }

/* quem conversa: recolhido mostra só quem está falando; expandido mostra a vitrine */
.quem-cab { gap: 12px; }
.quem-cab h2 { flex: none; }
.quem-atual { display: inline-flex; flex: 1; min-width: 0; align-items: center; gap: 8px; padding: 2px 6px; border-radius: 8px; text-align: left; }
.quem-atual:hover { background: rgb(var(--ink-rgb) / 0.04); }
.quem-atual b { font-weight: 400; font-size: var(--text-sub); color: var(--color-ink); white-space: nowrap; }
.quem-atual .quem-papel { display: inline-flex; min-width: 0; align-items: center; gap: 5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 400 9.5px var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-faint); }
.quem-atual .quem-papel .ic { flex: none; color: var(--ag); }
.quem-seta { flex: none; width: 26px; height: 26px; border-color: transparent; background: transparent; color: var(--color-faint); }
.quem-seta .ic { transition: transform 0.3s var(--ease); }
.bloco-squad:not(.recolhido) .quem-seta .ic { transform: rotate(180deg); }
.bloco-squad:not(.recolhido) .quem-atual { visibility: hidden; }
.bloco-squad.recolhido { padding-bottom: 4px; }
.bloco-squad.recolhido #agentes, .bloco-squad.recolhido #missao { display: none; }
.bloco-squad.entrando #agentes { animation: desdobrar 0.3s var(--ease); }

/* lista de projetos: linha com altura fixa, recuo único à esquerda, seta encostada à direita */
.projetos .projeto { padding: 0; }
.projetos .projeto-linha { min-height: 38px; align-items: center; gap: 0; padding: 0 4px 0 2px; }
.projetos .projeto-nome { gap: 10px; padding: 8px 8px 8px 10px; }
.projetos .projeto-nome .nome { line-height: 1.3; }
.projetos .projeto.ativo:not(.aberto) { padding-bottom: 0; }
.projetos .projeto.aberto { padding-bottom: 12px; }
.projetos .projeto-agora { padding: 0 12px 8px 30px; }
.projetos .secoes { margin: 2px 12px 0 22px; }
.projetos .linha-nova { padding-left: 12px; }
.projetos .projeto-linha .menu-gatilho, .projetos .projeto-linha .proj-olho { opacity: 0; }
.projetos .projeto-linha:hover .menu-gatilho, .projetos .projeto-linha:hover .proj-olho,
.projetos .menu-gatilho[aria-expanded="true"], .projetos .projeto.oculto .proj-olho, .projetos .projeto-linha :focus-visible { opacity: 1; }
.rotulo-projetos { margin: 16px 0 6px 12px; }

/* alças sempre visíveis e fáceis de pegar */
.alca-h.alca-campo { height: 20px; margin: -15px 0; }
.alca-h.alca-campo::before, .alca-h#alcaLog::before { opacity: 0.6; width: 40px; height: 4px; background: var(--color-line-strong); }
.alca-h.alca-campo:hover::before, .alca-h.alca-campo.ativa::before { opacity: 1; width: 64px; background: var(--color-accent); }
.alca .alca-grip { opacity: 0.75; }

/* selo da função legível: fundo claro do tema, ícone escuro de traço firme; selecionado ganha a cor do agente */
.ag-fun {
  right: -4px; bottom: -4px; width: calc(var(--tam, 40px) * 0.5); height: calc(var(--tam, 40px) * 0.5);
  color: var(--color-ink); background: var(--color-surface-solid, var(--color-ground));
  box-shadow: 0 0 0 1px var(--color-line-strong), 0 1px 3px rgb(0 0 0 / 0.18);
}
.ag-tile.ativa .ag-fun, .ag-card .ag-fun { color: var(--ag); box-shadow: 0 0 0 1.5px var(--ag), 0 1px 3px rgb(0 0 0 / 0.18); }

/* ---------- mensagens: tipografia editorial, quem fala, cartões do protocolo ---------- */
.mensagens { gap: 12px; padding: 18px 20px 20px; }
.msg.texto { white-space: normal; font: 300 14.5px/1.65 var(--font-sans); color: var(--color-ink); }
.msg.texto .md > :first-child { margin-top: 0; }
.msg.texto .md > :last-child { margin-bottom: 0; }
.msg.texto p { margin: 0 0 0.75em; }
.msg.texto strong { font-weight: 500; color: var(--color-ink); }
.msg.texto em { font-style: italic; }
.msg.texto a { color: var(--color-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.msg.texto a:hover { text-decoration-thickness: 2px; }
.msg.texto .md-t { margin: 1.1em 0 0.45em; font: 400 18px/1.25 var(--font-display); letter-spacing: -0.005em; color: var(--color-ink); }
.msg.texto h3.md-t { font-size: 20px; }
.msg.texto h5.md-t, .msg.texto h6.md-t { font: 400 10.5px var(--font-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted); }
.msg.texto ul, .msg.texto ol { margin: 0.2em 0 0.85em; padding-left: 1.35em; }
.msg.texto li { margin: 0.25em 0; padding-left: 0.2em; }
.msg.texto ul > li::marker { color: var(--color-fixed); }
.msg.texto ol > li::marker { font: 400 12px var(--font-mono); color: var(--color-fixed); }
.msg.texto blockquote { margin: 0.4em 0 0.9em; padding: 2px 0 2px 14px; border-left: 2px solid var(--color-line-strong); color: var(--color-muted); font-style: italic; }
.msg.texto hr { height: 1px; margin: 1.1em 0; border: 0; background: var(--color-line); }
.msg.texto pre { margin: 0.4em 0 0.9em; }
.md-tabela { margin: 0.4em 0 0.9em; overflow-x: auto; border: 1px solid var(--color-line); border-radius: 10px; }
.md-tabela table { width: 100%; border-collapse: collapse; font-size: 13px; }
.md-tabela th { padding: 8px 12px; text-align: left; font: 400 9.5px var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-muted); background: color-mix(in srgb, var(--color-ground-2) 60%, transparent); }
.md-tabela td { padding: 8px 12px; border-top: 1px solid var(--color-line-soft); vertical-align: top; }

/* quem fala: rostinho, nome, função e hora no começo de cada resposta */
.fala-cab { display: flex; align-items: center; gap: 8px; margin: 6px 0 -4px; }
.fala-cab b { font-weight: 500; font-size: 13px; color: var(--color-ink); }
.fala-papel { display: inline-flex; align-items: center; gap: 5px; font: 400 9.5px var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-faint); }
.fala-papel .ic { color: var(--color-muted); }
.fala-cab time { margin-left: auto; font: 400 10px var(--font-mono); color: var(--color-faint); }

/* sua fala: balão mais leve */
.msg.voce { padding: 10px 14px; font: 300 14.5px/1.55 var(--font-sans); background: color-mix(in srgb, var(--color-ground-2) 70%, transparent); border-color: var(--color-line-soft); }

/* blocos do protocolo: cartões com ícone, cor e cabeçalho */
.bloco {
  margin: 0.5em 0 0.9em; padding: 12px 14px 12px; border: 1px solid var(--color-line); border-left: 0; border-radius: 12px;
  background: var(--color-surface); box-shadow: 0 1px 0 rgb(0 0 0 / 0.02); position: relative; overflow: hidden;
}
.bloco::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--bloco-cor, var(--color-fixed)); }
.bloco-cab { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.bloco-ic { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 7px; color: var(--bloco-cor, var(--color-fixed)); background: color-mix(in srgb, var(--bloco-cor, var(--color-fixed)) 12%, transparent); }
.bloco-cab > b { margin: 0; font: 400 10px var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--bloco-cor, var(--color-fixed)); }
.bloco-quem { font-size: 13px; font-weight: 500; color: var(--color-ink); }
.bloco-av { display: inline-flex; }
.bloco-card { margin-left: auto; padding: 2px 7px; border-radius: 6px; font: 400 10px var(--font-mono); letter-spacing: 0.08em; color: var(--color-muted); background: var(--color-line-soft); }
.bloco > .md, .bloco details > .md { white-space: normal; font-size: 14px; line-height: 1.6; }
.bloco > .md p:last-child { margin-bottom: 0; }
.b-pergunta { --bloco-cor: var(--color-fixed); background: color-mix(in srgb, var(--color-fixed) 5%, var(--color-surface)); }
.b-bloqueado, .b-reprovado { --bloco-cor: var(--color-alert-fg); background: color-mix(in srgb, var(--color-alert-fg) 4%, var(--color-surface)); }
.b-pronto, .b-aprovado, .b-fechar { --bloco-cor: var(--color-accent); }
.b-para { --bloco-cor: var(--color-muted); }
.b-missao { --bloco-cor: var(--color-fixed); }
.b-pronto, .b-aprovado, .b-fechar, .b-para, .b-missao { background: var(--color-surface); }

/* fim da rodada: pílula discreta no centro */
.fim { margin: 2px 0 6px; }
.fim::before, .fim::after { width: 28px; background: var(--color-line); }
.fim > span { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border: 1px solid var(--color-line-soft); border-radius: 999px; background: var(--color-surface); }
.fim > span .ic { color: var(--color-accent); }
.fim.com-erro > span .ic { color: var(--color-alert-fg); }

/* ---------- perguntas: um cartão por decisão ---------- */
#listaPerguntas { display: flex; flex-direction: column; gap: 14px; padding: 4px 2px 18px; }
.pergunta-card {
  display: flex; flex-direction: column; gap: 12px; padding: 16px 16px 14px; border: 1px solid var(--color-line);
  border-radius: 14px; background: var(--color-surface); box-shadow: var(--shadow-os);
  transition: opacity 0.26s var(--ease), transform 0.26s var(--ease); animation: surgir 0.3s var(--ease);
}
.pergunta-card.saindo { opacity: 0; transform: translateY(-6px) scale(0.99); }
.pergunta-card.velha { background: color-mix(in srgb, var(--color-ground-2) 45%, var(--color-surface)); }
.pc-cab { display: flex; align-items: center; gap: 10px; }
.pc-quem { display: flex; min-width: 0; flex-direction: column; gap: 1px; }
.pc-quem b { font-weight: 500; font-size: 14px; color: var(--color-ink); }
.pc-quem span { display: inline-flex; align-items: center; gap: 5px; font: 400 9.5px var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-faint); }
.pc-meta { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.pc-missao { padding: 2px 7px; border-radius: 6px; font: 400 10px var(--font-mono); letter-spacing: 0.06em; color: var(--color-fixed); background: rgb(var(--fixed-rgb) / 0.1); }
.pc-proj { font: 400 10px var(--font-mono); color: var(--color-muted); }
.pc-meta time { font: 400 10px var(--font-mono); color: var(--color-faint); }
.pc-aviso { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9px; font-size: 12.5px; color: var(--color-muted); background: rgb(var(--accent-rgb) / 0.08); }
.pc-aviso .ic { flex: none; color: var(--color-accent); }
.pc-titulo { display: flex; align-items: center; gap: 6px; font: 400 10px var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-muted); }
.pc-titulo .ic { color: var(--color-fixed); }
.pc-texto { font: 300 15px/1.6 var(--font-sans); color: var(--color-ink); }
.pc-texto p { margin: 0 0 0.6em; }
.pc-texto p:last-child { margin-bottom: 0; }
.pc-texto code { padding: 1px 5px; border-radius: 4px; font: 400 12.5px var(--font-mono); background: var(--color-chip); }
.pc-texto strong { font-weight: 500; }
.pc-depois { font-size: 13.5px; color: var(--color-muted); }

/* opções viram botões: escolha com um clique */
.pc-opcoes { display: flex; flex-direction: column; gap: 6px; }
.pc-op {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--color-line); border-radius: 10px;
  background: var(--color-surface); text-align: left; font: 300 14px/1.5 var(--font-sans); color: var(--color-ink);
}
.pc-op:hover { border-color: var(--color-line-strong); background: color-mix(in srgb, var(--color-ground-2) 40%, var(--color-surface)); }
.pc-op[aria-checked="true"] { border-color: var(--color-accent); background: rgb(var(--accent-rgb) / 0.07); }
.pc-letra {
  display: grid; place-items: center; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%;
  border: 1px solid var(--color-line-strong); font: 400 10.5px var(--font-mono); text-transform: uppercase; color: var(--color-muted);
}
.pc-op[aria-checked="true"] .pc-letra { border-color: var(--color-accent); background: var(--color-accent); color: #fff; }
.pc-op code { padding: 0 4px; border-radius: 4px; font: 400 12px var(--font-mono); background: var(--color-chip); }

/* resposta: uma linha que cresce, sem caixa pesada */
.pc-resposta {
  width: 100%; min-height: 0; padding: 8px 2px; border: 0; border-bottom: 1px solid var(--color-line-strong); border-radius: 0;
  background: transparent; color: var(--color-ink); font: 300 14px/1.5 var(--font-sans); resize: none; outline: none; field-sizing: content; max-height: 160px;
}
.pc-resposta:focus { border-bottom-color: var(--color-accent); box-shadow: 0 1px 0 0 var(--color-accent); }
.pc-resposta::placeholder { color: var(--color-faint); }
.pc-acoes { display: flex; align-items: center; gap: 8px; }
.pc-dica { flex: 1; font: 400 9.5px var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-faint); }
.pergunta-card.velha .pc-resolvido { border-color: var(--color-accent); color: var(--color-accent); }
.pc-enviar:disabled { opacity: 0.4; cursor: default; }
.perguntas-vazio { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 48px 20px; text-align: center; color: var(--color-muted); }
.perguntas-vazio .ic { color: var(--color-accent); }
.perguntas-vazio b { font: 300 20px var(--font-display); color: var(--color-ink); }
.perguntas-vazio span { font-size: 13px; }
.perguntas-rodape { margin: 4px 0 0; text-align: center; font: 400 9.5px var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-faint); }

/* sua aprovação: cartãozinho em português, sem o código técnico */
.msg.voce.aprovado-msg { padding: 10px 14px 10px 12px; border-color: rgb(var(--accent-rgb) / 0.35); background: rgb(var(--accent-rgb) / 0.06); }
.ap-cab { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.ap-cab .ic { color: var(--color-accent); }
.ap-cab b { font-weight: 500; font-size: 13.5px; }
.ap-devez { font: 400 9.5px var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-muted); }
.aprovado-msg ul { margin: 6px 0 0; padding-left: 22px; font-size: 13.5px; line-height: 1.5; color: var(--color-ink); white-space: normal; }
.aprovado-msg li { margin: 2px 0; }

/* botão do navegador do agente (no cabeçalho da conversa) */
.ver-navegador {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; margin-right: 4px; padding: 0 10px; border: 1px solid var(--color-line);
  border-radius: 999px; font: 400 9.5px var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-muted);
  animation: surgir 0.3s var(--ease);
}
.ver-navegador:hover { color: var(--color-ink); border-color: var(--color-line-strong); }
.ver-navegador .ic { color: var(--color-accent); }
.ver-navegador.ativo { border-color: rgb(var(--accent-rgb) / 0.5); background: rgb(var(--accent-rgb) / 0.08); color: var(--color-ink); }

/* ---------- linha do tempo da missão: fixa no alto da conversa ---------- */
.missao-viva { display: flex; flex: none; flex-direction: column; gap: 8px; padding: 10px 12px 0; max-height: 46%; overflow: auto; }
.linha-missao {
  border: 1px solid var(--color-line); border-radius: 12px; background: var(--color-surface);
  box-shadow: 0 1px 0 rgb(0 0 0 / 0.02); animation: surgir 0.3s var(--ease); overflow: hidden;
}
.linha-missao.st-ativa { border-color: rgb(var(--accent-rgb) / 0.35); }
.lm-cab { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; }
.lm-ic { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 8px; color: var(--color-fixed); background: rgb(var(--fixed-rgb) / 0.1); }
.st-ativa .lm-ic { color: var(--color-accent); background: rgb(var(--accent-rgb) / 0.1); }
.lm-tit { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 1px; }
.lm-tit b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; font-size: 13.5px; color: var(--color-ink); }
.lm-tit span { font: 400 9.5px var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-faint); }
.lm-time { display: flex; flex: none; align-items: center; }
.lm-rosto { position: relative; margin-left: -6px; border-radius: 50%; box-shadow: 0 0 0 2px var(--color-surface); transition: transform 0.25s var(--ease); }
.lm-rosto:first-child { margin-left: 0; }
.lm-rosto .ag-av { box-shadow: none; }
.lm-rosto .ag-av img { filter: grayscale(0.6) brightness(0.92); transition: filter 0.3s var(--ease); }
.lm-rosto.vivo { z-index: 1; transform: translateY(-1px); }
.lm-rosto.vivo .ag-av img { filter: none; }
.lm-rosto.vivo::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--color-accent);
  animation: pulsar 1.4s var(--ease) infinite;
}
@keyframes pulsar { 0% { opacity: 0.9; transform: scale(0.96); } 70% { opacity: 0; transform: scale(1.18); } 100% { opacity: 0; } }
.lm-seta { flex: none; width: 26px; height: 26px; border-color: transparent; background: transparent; color: var(--color-faint); }
.lm-seta .ic { transition: transform 0.3s var(--ease); }
.lm-seta[aria-expanded="true"] .ic { transform: rotate(180deg); }
.lm-passos { margin: 0; padding: 2px 12px 10px 24px; list-style: none; border-top: 1px solid var(--color-line-soft); animation: desdobrar 0.3s var(--ease); }
.lm-passos[hidden] { display: none; }
.lm-p { position: relative; display: flex; align-items: flex-start; gap: 8px; padding: 7px 0 3px; }
.lm-p::before { content: ""; position: absolute; left: -12px; top: 0; bottom: 0; width: 1px; background: var(--color-line); }
.lm-p:first-child::before { top: 14px; }
.lm-p:last-child::before { bottom: calc(100% - 16px); }
.lm-av { position: relative; display: inline-flex; flex: none; margin-left: -22px; border-radius: 50%; box-shadow: 0 0 0 3px var(--color-surface); color: var(--color-muted); }
.lm-txt { display: flex; min-width: 0; flex: 1; flex-direction: column; font-size: 12.5px; line-height: 1.4; color: var(--color-muted); }
.lm-txt b { font-weight: 500; color: var(--color-ink); }
.lm-txt i { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: normal; color: var(--color-faint); }
.lm-p time { flex: none; font: 400 9.5px var(--font-mono); color: var(--color-faint); }
.p-pronto .lm-txt b:first-child, .p-fechar .lm-txt b:first-child { color: var(--color-accent); }
.p-bloqueado .lm-txt b:first-child, .p-reprovado .lm-txt b:first-child { color: var(--color-alert-fg); }
.p-pergunta .lm-txt b:first-child, .p-aguardando .lm-txt b:first-child { color: var(--color-fixed); }
.lm-mais { padding: 4px 0; font: 400 9.5px var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-faint); }
.lm-entregas { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--color-line-soft); background: rgb(var(--accent-rgb) / 0.05); }
.lm-rot { display: inline-flex; align-items: center; gap: 5px; margin-right: 4px; font: 400 9.5px var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-accent); }
.lm-entrega {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: 28px; padding: 0 10px; border: 1px solid var(--color-line);
  border-radius: 999px; background: var(--color-surface); font-size: 12.5px; color: var(--color-ink);
}
.lm-entrega:hover { border-color: var(--color-accent); }
.lm-entrega .ic { color: var(--color-accent); }
.lm-entrega span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.lm-txt { display: block; }
.lm-txt i { display: block; margin-top: 1px; }
.missao-viva { max-height: 60%; }

/* ---------- aba Missões: lista para decidir ---------- */
#listaMissoes { display: flex; flex-direction: column; gap: 16px; padding: 4px 2px 18px; }
.mi-grupo { display: flex; flex-direction: column; gap: 8px; }
.mi-gt { margin: 0 2px 2px; font: 400 9.5px var(--font-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-faint); }
.g-pede > .mi-gt { color: var(--color-fixed); }
details.mi-fechadas > summary.mi-gt { display: flex; align-items: center; cursor: pointer; padding: 4px 2px; }
details.mi-fechadas[open] { gap: 8px; }
details.mi-fechadas > .mi-card { margin-top: 8px; }
.mi-card {
  display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; text-align: left; border: 1px solid var(--color-line);
  border-radius: 12px; background: var(--color-surface); box-shadow: var(--shadow-os);
}
.mi-card:hover { border-color: var(--color-line-strong); }
.mi-card.pede { border-color: rgb(var(--fixed-rgb) / 0.45); background: color-mix(in srgb, var(--color-fixed) 4%, var(--color-surface)); }
.mi-card.st-fechada, .mi-card.st-cancelada { box-shadow: none; background: color-mix(in srgb, var(--color-ground-2) 40%, var(--color-surface)); }
.mi-l1 { display: flex; align-items: flex-start; gap: 10px; }
.mi-l1 b { flex: 1; min-width: 0; font-weight: 500; font-size: 14px; line-height: 1.35; color: var(--color-ink); }
.mi-pill { flex: none; padding: 2px 8px; border-radius: 999px; font: 400 9.5px var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-muted); background: var(--color-line-soft); }
.st-ativa .mi-pill, .mi-pill.st-ativa { color: var(--color-accent); background: rgb(var(--accent-rgb) / 0.1); }
.st-pausada .mi-pill, .mi-pill.st-pausada { color: var(--color-fixed); background: rgb(var(--fixed-rgb) / 0.1); }
.mi-l2 { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--color-muted); }
.mi-l2 code { font: 400 10px var(--font-mono); color: var(--color-fixed); }
.mi-l2 > span:not(.mi-rostos) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mi-rostos { display: flex; flex: none; }
.mi-rostos .lm-rosto { margin-left: -5px; }
.mi-rostos .lm-rosto:first-child { margin-left: 0; }
.mi-ult { font-size: 12px; color: var(--color-faint); }
.mi-pede { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--color-fixed); }

/* ---------- missão aberta: tela própria ---------- */
#mesa.mesa { display: flex; flex-direction: column; gap: 14px; padding: 2px 2px 20px; border: 0; background: none; animation: surgir 0.28s var(--ease); }
#mesa[hidden] { display: none; }
.md-topo { display: flex; flex-direction: column; gap: 6px; }
.md-voltar { display: inline-flex; align-self: flex-start; align-items: center; gap: 4px; padding: 4px 8px 4px 4px; border-radius: 8px; font: 400 10px var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-muted); }
.md-voltar:hover { color: var(--color-ink); background: var(--color-line-soft); }
.md-voltar .ic { transform: rotate(180deg); }
.md-tit { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.md-tit code { font: 400 11px var(--font-mono); color: var(--color-fixed); }
.md-tit h3 { flex: 1 1 200px; margin: 0; font: 300 22px/1.2 var(--font-display); color: var(--color-ink); }
.md-sub { font-size: 12px; color: var(--color-faint); }
.md-time { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.md-pessoa { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; font: 400 9px var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-faint); }
.md-pessoa.viva { color: var(--color-accent); }
.md-agora { display: flex; gap: 10px; align-items: baseline; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--color-ground-2) 55%, transparent); }
.md-agora p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--color-ink); }
.md-rot, .md-h { font: 400 9.5px var(--font-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-faint); }
.md-h { margin: 0 0 8px; }
.md-pede { padding: 12px; border: 1px solid rgb(var(--fixed-rgb) / 0.4); border-radius: 12px; background: color-mix(in srgb, var(--color-fixed) 5%, var(--color-surface)); }
.md-pede > .md-h { color: var(--color-fixed); }
.md-item + .md-item { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgb(var(--fixed-rgb) / 0.15); }
.md-item-cab { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--color-ink); }
.md-item-cab .ic { color: var(--color-fixed); }
.md-item-cab b { font-weight: 500; }
.md-item-txt { margin: 6px 0 8px 22px; font-size: 13px; line-height: 1.5; color: var(--color-muted); }
.md-item-txt p { margin: 0 0 0.4em; }
.md-item-acoes { display: flex; gap: 6px; margin-left: 22px; }
.md-entregas .lm-entregas { border: 1px solid rgb(var(--accent-rgb) / 0.3); border-radius: 10px; }
.md-crit { padding: 10px 12px; border: 1px solid var(--color-line-soft); border-radius: 10px; }
.md-crit > summary.md-h { margin: 0; cursor: pointer; }
.md-crit ul { margin: 10px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.5; color: var(--color-ink); }
.md-crit li { margin: 4px 0; }
.md-crit li::marker { color: var(--color-accent); }
.md-passos .lm-passos { border-top: 0; padding-top: 0; }
.md-passo > summary { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; list-style: none; }
.md-passo > summary::before { display: none; }
.md-passo > summary::-webkit-details-marker { display: none; }
.md-passo[open] .lm-txt i { white-space: normal; }
.md-passo-txt { margin: 6px 0 4px; padding: 10px 12px; border-radius: 10px; font-size: 13px; line-height: 1.55; background: color-mix(in srgb, var(--color-ground-2) 50%, transparent); }
.md-passo-txt p { margin: 0 0 0.5em; }
.md-acoes { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 12px; border-top: 1px solid var(--color-line-soft); }

/* ---------- kanban de verdade ---------- */
.coluna-k header { gap: 8px; }
.coluna-k header span { flex: 1; }
.k-mais { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; color: var(--color-faint); opacity: 0; transition: opacity 0.2s var(--ease), background 0.2s; }
.coluna-k:hover .k-mais, .k-mais:focus-visible { opacity: 1; }
.k-mais:hover { color: var(--color-ink); background: var(--color-line-soft); }
.card-k { display: flex; flex-direction: column; gap: 6px; cursor: pointer; box-shadow: 0 1px 2px rgb(0 0 0 / 0.04); }
.card-k:hover { border-color: var(--color-line-strong); }
.card-k:focus-visible { outline: none; border-color: var(--color-accent); }
.card-k.arrastando { opacity: 0.4; }
.card-k.antes { box-shadow: 0 -3px 0 0 var(--color-accent); }
.ck-cab { display: flex; align-items: center; gap: 6px; min-height: 16px; }
.ck-cab code { font: 400 10px var(--font-mono); letter-spacing: 0.08em; color: var(--color-fixed); }
.ck-missao { padding: 1px 6px; border-radius: 5px; font: 400 9.5px var(--font-mono); color: var(--color-accent); background: rgb(var(--accent-rgb) / 0.1); }
.ck-quem { margin-left: auto; display: inline-flex; }
.card-k p { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; margin: 0; font-size: 13px; line-height: 1.45; color: var(--color-ink); }
.card-k .mandar { display: none; }
.ck-nav { position: absolute; top: 6px; right: 6px; display: flex; gap: 2px; opacity: 0; transition: opacity 0.2s var(--ease); }
.card-k:hover .ck-nav, .card-k:focus-within .ck-nav { opacity: 1; }
.card-k:hover .ck-quem { opacity: 0; }
.ck-seta { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--color-line); border-radius: 6px; background: var(--color-surface); color: var(--color-muted); }
.ck-seta:hover { color: var(--color-ink); border-color: var(--color-line-strong); }
.ck-seta.volta .ic { transform: rotate(180deg); }
.ck-acoes { display: flex; gap: 6px; padding-top: 4px; }
.ck-acoes .k-btn { flex: 1; }
.novo-card[hidden] { display: none; }
.novo-card input { width: 100%; height: 34px; padding: 0 10px; border: 1px dashed var(--color-line-strong); border-radius: 8px; background: transparent; font: 300 13px var(--font-sans); color: var(--color-ink); outline: none; }
.novo-card input:focus { border-style: solid; border-color: var(--color-accent); }
.novo-card { padding: 0 8px 10px; }

/* janela do card */
.dialogo-card { width: min(560px, 94vw); }
.dc-form { display: flex; flex-direction: column; gap: 14px; }
.dc-cab { display: flex; align-items: center; gap: 10px; }
.dc-cab code { font: 400 12px var(--font-mono); color: var(--color-fixed); }
.dc-cab .os-sel-btn { width: auto; min-width: 160px; min-height: 34px; font-size: 13px; }
.dc-fechar { margin-left: auto; }
.dc-texto { width: 100%; min-height: 80px; padding: 10px 12px; border: 1px solid var(--color-line); border-radius: 10px; background: var(--color-surface);
  font: 300 15px/1.55 var(--font-sans); color: var(--color-ink); resize: vertical; outline: none; field-sizing: content; max-height: 300px; }
.dc-texto:focus { border-color: var(--color-accent); }
.dc-missao { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid rgb(var(--accent-rgb) / 0.3); border-radius: 10px; background: rgb(var(--accent-rgb) / 0.05); text-align: left; }
.dc-missao .ic { flex: none; color: var(--color-accent); }
.dc-missao span { display: flex; flex: 1; min-width: 0; flex-direction: column; }
.dc-missao b { font-weight: 500; font-size: 13px; color: var(--color-ink); }
.dc-missao i { font-style: normal; font-size: 12px; color: var(--color-muted); }
.dc-mandar { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 10px; background: color-mix(in srgb, var(--color-ground-2) 55%, transparent); }
.dc-mandar .md-h { margin: 0; }
.dc-linha .os-sel-btn { min-height: 38px; font-size: 13.5px; }
.dc-nota { width: 100%; padding: 8px 2px; border: 0; border-bottom: 1px solid var(--color-line-strong); background: transparent; font: 300 14px/1.5 var(--font-sans); color: var(--color-ink); resize: none; outline: none; field-sizing: content; }
.dc-nota:focus { border-bottom-color: var(--color-accent); }
.dc-mandar .dc-enviar { align-self: flex-end; }
.dc-pe { display: flex; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid var(--color-line-soft); }
.dc-pe span { flex: 1; }
.dc-excluir { color: var(--color-alert-fg); }
.dc-excluir .ic { margin-right: 4px; }

/* ---------- viewport: aba Visão ---------- */
.painel[data-painel="visao"] { overflow: auto; }
.visao-projeto { display: flex; flex-direction: column; gap: 22px; max-width: 760px; margin: 0 auto; padding: 22px 22px 32px; }
.vp-cab h2 { margin: 4px 0 6px; font: 300 30px/1.15 var(--font-display); color: var(--color-ink); }
.vp-cab p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--color-muted); }
.vp-bloco { display: flex; flex-direction: column; gap: 8px; }
.vp-vazio { margin: 0; padding: 14px; border: 1px dashed var(--color-line); border-radius: 10px; font-size: 13px; color: var(--color-faint); }
.vp-entregas { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.vp-entrega, .vp-secao {
  display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--color-line); border-radius: 12px;
  background: var(--color-surface); text-align: left; box-shadow: var(--shadow-os);
}
.vp-entrega:hover, .vp-secao:hover { border-color: var(--color-accent); }
.vp-ent-ic, .vp-sec-ic { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 10px; color: var(--color-accent); background: rgb(var(--accent-rgb) / 0.1); }
.vp-secao .vp-sec-ic { width: 30px; height: 30px; border-radius: 8px; color: var(--color-muted); background: var(--color-line-soft); }
.vp-secao.auto .vp-sec-ic { color: var(--color-fixed); background: rgb(var(--fixed-rgb) / 0.1); }
.vp-ent-txt, .vp-sec-txt { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.vp-ent-txt b, .vp-sec-txt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; font-size: 13.5px; color: var(--color-ink); }
.vp-ent-txt i, .vp-sec-txt i { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: normal; font-size: 12px; color: var(--color-faint); }
.vp-secoes { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.vp-config { padding: 16px; border: 1px solid rgb(var(--fixed-rgb) / 0.4); border-radius: 14px; background: color-mix(in srgb, var(--color-fixed) 4%, var(--color-surface)); }
.vp-config.ok { border-color: rgb(var(--accent-rgb) / 0.4); background: color-mix(in srgb, var(--color-accent) 4%, var(--color-surface)); }
.vp-txt { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--color-ink); }
.vp-txt code, .vp-passos code { padding: 1px 5px; border-radius: 4px; font: 400 12px var(--font-mono); background: var(--color-chip); }
.vp-passos { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 0; padding-left: 20px; font-size: 13.5px; line-height: 1.5; }
.vp-passos li::marker { font: 400 12px var(--font-mono); color: var(--color-fixed); }
.vp-passos .k-btn { margin-left: 6px; }
.vp-token { display: flex; gap: 8px; margin-top: 8px; }
.vp-token .k-input { flex: 1; min-height: 38px; font-size: 13.5px; }
.vp-estado { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; font-size: 13px; color: var(--color-muted); }
.vp-config.ok .vp-estado .ic { color: var(--color-accent); }
.vp-config:not(.ok) .vp-estado .ic { color: var(--color-fixed); }
.vp-aviso { padding: 14px 16px; border-radius: 12px; background: color-mix(in srgb, var(--color-ground-2) 60%, transparent); }

/* ---------- camadas da conversa ---------- */
/* turno do agente: o fio liga a fala, os cartões e os passos ao rosto de quem falou */
.mensagens > .do-agente { position: relative; margin-left: 10px; padding-left: 20px; }
.mensagens > .do-agente::before { content: ''; position: absolute; left: 0; top: -12px; bottom: 0; width: 2px; border-radius: 2px; background: var(--color-line); }
.mensagens > .fala-cab + .do-agente::before { top: -4px; }
.fala-cab { margin-top: 10px; }
/* avisos e salvamentos: linha de sistema, pequena e apagada */
.mensagens > .sistema { align-self: stretch; padding: 4px 0 4px 20px; border: 0; background: none; font-size: 12px; line-height: 1.45; color: var(--color-faint); }
.mensagens > .sistema:not(.do-agente) { margin-left: 10px; }
.mensagens > .aviso.sistema { color: var(--color-muted); }
.mensagens > .commit-msg.sistema code { font-size: 10.5px; }
/* pedido de OK: camada de cima, com rótulo */
.aprovacao { position: relative; margin: 6px 0 10px; box-shadow: 0 10px 30px -14px rgb(var(--fixed-rgb) / 0.45); }
.ap-rotulo { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; padding: 3px 9px; border-radius: 999px; font: 400 9.5px var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: #fff; background: var(--color-fixed); }

/* login do Claude: a cor diz se precisa de ação */
.vp-login { padding: 16px; border: 1px solid var(--color-line); border-radius: 14px; background: var(--color-surface); }
.vp-login.ok { border-color: rgb(var(--accent-rgb) / 0.35); background: color-mix(in srgb, var(--color-accent) 4%, var(--color-surface)); }
.vp-login.acao { border-color: rgb(var(--fixed-rgb) / 0.5); background: color-mix(in srgb, var(--color-fixed) 6%, var(--color-surface)); }
.vp-login.vencido { border-color: var(--color-alert-fg); background: color-mix(in srgb, var(--color-alert-fg) 6%, var(--color-surface)); }
.vp-login-cab { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.vp-login-cab b { font-weight: 500; }
.vp-login.ok .vp-login-cab .ic { color: var(--color-accent); }
.vp-login.acao .vp-login-cab .ic, .vp-login.acao .vp-login-cab b { color: var(--color-fixed); }
.vp-login.vencido .vp-login-cab .ic, .vp-login.vencido .vp-login-cab b { color: var(--color-alert-fg); }
.vp-login-acoes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.vp-dica { margin: 2px 0 0; font-size: 12px; color: var(--color-faint); }

/* Vera em destaque no topo da lista: o chat geral */
.sistema-item { gap: 12px; padding: 12px 12px 12px 12px; border-color: rgb(168 85 247 / 0.28); background: linear-gradient(115deg, rgb(168 85 247 / 0.09), rgb(168 85 247 / 0.02) 70%); }
.sistema-item:hover { border-color: rgb(168 85 247 / 0.5); }
.sistema-item.ativo { border-color: rgb(168 85 247 / 0.6); background: linear-gradient(115deg, rgb(168 85 247 / 0.14), rgb(168 85 247 / 0.04) 70%); }
.sistema-item > .ic { flex: none; margin-left: auto; color: var(--color-faint); }
.sis-av { position: relative; flex: none; border-radius: 50%; }
.sis-av .ag-av { box-shadow: 0 0 0 2px rgb(168 85 247 / 0.7), 0 0 16px rgb(168 85 247 / 0.35); }
.sis-av.vivo::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--color-accent); animation: pulsar 1.4s var(--ease) infinite; }
.sis-txt b { font: 400 18px/1.15 var(--font-display); }
.sis-txt span { font-size: 12px; }

/* ---------- margens da gaveta da Vera ---------- */
.painel-vera[data-painel='missoes'] { overflow: auto; padding: 18px 20px 28px; }
.painel-vera.rolavel { padding: 18px 20px 28px; }
#listaMissoes { max-height: none; overflow: visible; padding: 0; gap: 20px; }
#listaPerguntas { padding: 0; }
#mesa.mesa { padding: 0; gap: 16px; }
.mi-card { padding: 14px 16px; gap: 8px; }
.mi-grupo { gap: 10px; }
.md-topo { gap: 8px; padding-bottom: 4px; }
.md-agora { padding: 12px 14px; }
.md-crit { padding: 12px 14px; }
.md-pede { padding: 14px 16px; }
.md-passos .lm-passos.md-lista { padding: 4px 4px 4px 26px; }
.md-passo > summary { padding: 2px 0; }
.md-passo > summary .lm-txt { flex: 1; min-width: 0; }
.md-passo > summary time { flex: none; margin-left: 10px; padding-top: 2px; }
.md-passo-txt { margin: 8px 0 6px; padding: 12px 14px; }
.md-acoes { padding-top: 14px; }
.pergunta-card { padding: 18px 18px 16px; }
/* linha do tempo da conversa: mesma folga */
.lm-cab { padding: 12px 12px 12px 14px; }
.lm-passos { padding: 4px 14px 12px 28px; }
.lm-p .lm-txt { flex: 1; min-width: 0; }
.lm-p time { margin-left: 10px; }
.lm-entregas { padding: 12px 14px; }

.md-passos, .md-lista, .lm-passos { min-width: 0; }
.lm-p > .md-passo { flex: 1; min-width: 0; }
.md-passo > summary { min-width: 0; }
.md-passo > summary .lm-txt i { max-width: 100%; }
#mesa.mesa > * { min-width: 0; }

/* ---------- contexto da conversa: o mesmo rótulo em Quem conversa e em Conversa ---------- */
.ctx-rotulo { display: inline-flex; min-width: 0; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; color: var(--color-ink); background: color-mix(in srgb, var(--color-ground-2) 70%, transparent); white-space: nowrap; overflow: hidden; }
.ctx-rotulo.trocou { animation: ctx-troca 0.5s var(--ease); }
@keyframes ctx-troca { 0% { opacity: 0; transform: translateY(4px); background: rgb(var(--fixed-rgb) / 0.22); } 100% { opacity: 1; transform: none; } }
.ctx-proj { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.ctx-ponto { flex: none; width: 6px; height: 6px; border-radius: 1.5px; background: var(--color-fixed); }
.ctx-seta { color: var(--color-faint); }
.ctx-sec { overflow: hidden; text-overflow: ellipsis; color: var(--color-muted); }
.ctx-geral { display: inline-flex; align-items: center; gap: 6px; color: var(--color-muted); }
.ctx-geral .ic { color: #a855f7; }
.quem-cab .ctx-rotulo { flex: none; max-width: 46%; }
.conversa-cab { justify-content: flex-start; }
.conversa-cab .ctx-rotulo { flex: 0 1 auto; }
.conversa-cab .cab-acoes { margin-left: auto; }
/* recolhido: o rótulo do contexto fica, e ao lado quem está falando */
.bloco-squad.recolhido .quem-atual { flex: 1; }

/* ---------- arquivos citados: player no lugar do caminho ---------- */
.arq-citados { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.arq-item { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border: 1px solid var(--color-line); border-radius: 12px; background: var(--color-surface); }
.arq-item.carregando { opacity: 0.6; }
.arq-item.escolhido { border-color: var(--color-accent); background: rgb(var(--accent-rgb) / 0.06); box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / 0.12); }
.arq-nome { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: var(--color-ink); overflow-wrap: anywhere; }
.arq-nome .ic { flex: none; color: var(--color-accent); }
.arq-item audio { width: 100%; height: 36px; }
.arq-item video { width: 100%; max-height: 320px; border-radius: 8px; background: #000; }
.arq-item img { display: block; max-width: 100%; max-height: 260px; border-radius: 8px; }
.arq-acoes { display: flex; gap: 6px; }
.arq-acoes:empty { display: none; }
.arq-escolher { align-self: flex-start; }
.arq-item.escolhido .arq-escolher { border-color: var(--color-accent); color: var(--color-accent); }
.arq-item.sumiu { flex-direction: row; align-items: center; justify-content: space-between; opacity: 0.7; }
.arq-falta { font-size: 12px; color: var(--color-faint); }
.pc-midia:empty { display: none; }
.msg.texto .arq-citados { max-width: 520px; }
/* resposta da pergunta com microfone */
.pc-linha-resp { display: flex; align-items: flex-end; gap: 6px; }
.pc-linha-resp .pc-resposta { flex: 1; }
.pc-mic { flex: none; width: 36px; height: 36px; }

/* ---------- topo: cérebro (atividade), esponja (Sponge), decisões ---------- */
.botao-cerebro { position: relative; perspective: 160px; }
.cerebro-wire { display: grid; place-items: center; color: var(--color-muted); transform-style: preserve-3d; }
.cerebro-wire .ic { stroke-width: 1.3; }
/* com atividade: o cérebro gira em 3D, em traço turquesa, com um brilho leve */
.botao-cerebro.girando .cerebro-wire { color: var(--color-accent); animation: cerebro-gira 3.2s linear infinite; filter: drop-shadow(0 0 4px rgb(var(--accent-rgb) / 0.55)); }
.botao-cerebro.girando { border-color: rgb(var(--accent-rgb) / 0.45); }
@keyframes cerebro-gira { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }
.botao-cerebro .av { display: none; }

.botao-sponge { position: relative; overflow: visible; color: var(--color-muted); }
.botao-sponge .esponja { transition: color 0.3s var(--ease), transform 0.3s var(--ease); }
.botao-sponge .bolha { opacity: 0; }
.faiscas { position: absolute; inset: -6px; pointer-events: none; }
.faiscas i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #ff8a3d; opacity: 0; box-shadow: 0 0 6px #ff8a3d, 0 0 12px rgb(255 122 40 / 0.7); }
.faiscas i:nth-child(1) { left: 2px; top: 8px; } .faiscas i:nth-child(2) { right: 0; top: 2px; }
.faiscas i:nth-child(3) { right: 4px; bottom: 4px; } .faiscas i:nth-child(4) { left: 8px; bottom: 0; }
/* novidade no Sponge: magia laranja (esponja quente, bolhas subindo, faíscas e um halo pulsando) */
.botao-sponge.novidade { color: #ff7a1a; border-color: rgb(255 122 26 / 0.55); animation: sponge-halo 2.2s var(--ease) infinite; }
.botao-sponge.novidade .esponja { animation: sponge-respira 2.2s var(--ease) infinite; filter: drop-shadow(0 0 5px rgb(255 122 26 / 0.7)); }
.botao-sponge.novidade .bolha { animation: bolha-sobe 2.2s ease-out infinite; }
.botao-sponge.novidade .bolha.b2 { animation-delay: 0.5s; } .botao-sponge.novidade .bolha.b3 { animation-delay: 1s; }
.botao-sponge.novidade .faiscas i { animation: faisca 2.2s ease-in-out infinite; }
.botao-sponge.novidade .faiscas i:nth-child(2) { animation-delay: 0.55s; } .botao-sponge.novidade .faiscas i:nth-child(3) { animation-delay: 1.1s; } .botao-sponge.novidade .faiscas i:nth-child(4) { animation-delay: 1.65s; }
@keyframes sponge-halo { 0%, 100% { box-shadow: 0 0 0 0 rgb(255 122 26 / 0.35); } 50% { box-shadow: 0 0 0 7px rgb(255 122 26 / 0); background: rgb(255 122 26 / 0.08); } }
@keyframes sponge-respira { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12) rotate(-4deg); } }
@keyframes bolha-sobe { 0% { opacity: 0; transform: translateY(3px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-4px); } }
@keyframes faisca { 0%, 100% { opacity: 0; transform: scale(0.4); } 45% { opacity: 1; transform: scale(1.2); } 70% { opacity: 0.4; transform: scale(0.8); } }
.sponge-badge { background: #ff7a1a !important; color: #fff !important; }

.botao-decisoes { color: var(--color-fixed); border-color: rgb(var(--fixed-rgb) / 0.5); }
.botao-decisoes.pulsa { animation: decide-pulsa 2s var(--ease) infinite; }
@keyframes decide-pulsa { 0%, 100% { box-shadow: 0 0 0 0 rgb(var(--fixed-rgb) / 0.35); } 50% { box-shadow: 0 0 0 6px rgb(var(--fixed-rgb) / 0); } }

/* gaveta: Atividade */
.gaveta-tit { display: flex; align-items: center; gap: 12px; }
.gaveta-tit .cerebro-wire.grande { width: 42px; height: 42px; border-radius: 50%; color: var(--color-accent); background: rgb(var(--accent-rgb) / 0.1); }
.gaveta-tit b { display: block; font: 300 22px/1.12 var(--font-display); color: var(--color-ink); }
.gaveta-tit span:not(.cerebro-wire) { font-size: var(--text-meta); color: var(--color-faint); }

/* ---------- decisões: modal de impacto, em carrossel ---------- */
dialog.modal-perguntas { width: min(640px, 94vw); max-height: min(86vh, 900px); padding: 0; overflow: hidden; display: none; flex-direction: column; }
dialog.modal-perguntas[open] { display: flex; animation: decide-entra 0.45s cubic-bezier(0.2, 0.9, 0.25, 1.15); }
dialog.modal-perguntas::backdrop { background: rgb(8 8 12 / 0.55); backdrop-filter: blur(6px); animation: surgir 0.3s var(--ease); }
@keyframes decide-entra { from { opacity: 0; transform: translateY(18px) scale(0.96); } }
.mp-cab { display: flex; align-items: center; gap: 12px; padding: 18px 20px 12px; border-bottom: 1px solid var(--color-line-soft); }
.mp-ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; color: #fff; background: var(--color-fixed); box-shadow: 0 6px 18px -6px rgb(var(--fixed-rgb) / 0.7); }
.mp-tit { display: flex; flex: 1; flex-direction: column; gap: 2px; }
.mp-tit b { font: 300 22px/1.15 var(--font-display); color: var(--color-ink); }
.mp-tit span { font: 400 10px var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-fixed); }
.mp-janela { flex: 1; min-height: 0; overflow: hidden; }
.mp-trilho { display: flex; height: 100%; transition: transform 0.45s cubic-bezier(0.2, 0.75, 0.2, 1); }
.mp-trilho > .pergunta-card { flex: 0 0 100%; max-height: calc(min(86vh, 900px) - 140px); overflow: auto; margin: 0; border: 0; border-radius: 0; box-shadow: none; padding: 20px 22px 22px; animation: none; }
.mp-trilho > .pergunta-card:not(.atual) { opacity: 0.35; }
.mp-trilho > .perguntas-vazio { flex: 0 0 100%; }
.mp-pe { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px 14px; border-top: 1px solid var(--color-line-soft); }
.modal-perguntas.uma .mp-pe { display: none; }
.mp-pontos { display: flex; gap: 6px; }
.mp-pontos button { width: 8px; height: 8px; border-radius: 50%; background: var(--color-line-strong); transition: width 0.3s var(--ease), background 0.3s var(--ease); }
.mp-pontos button.ativo { width: 22px; border-radius: 99px; background: var(--color-fixed); }
.mp-pe .k-icon:disabled { opacity: 0.3; }

/* ---------- modal da Sponge ---------- */
dialog.modal-sponge { width: min(720px, 94vw); max-height: min(86vh, 920px); padding: 0; overflow: hidden; display: none; flex-direction: column; }
dialog.modal-sponge[open] { display: flex; animation: decide-entra 0.45s cubic-bezier(0.2, 0.9, 0.25, 1.15); }
dialog.modal-sponge::backdrop { background: rgb(8 8 12 / 0.5); backdrop-filter: blur(6px); }
.sp-ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #ff9a3d, #ff6a1a); box-shadow: 0 6px 18px -6px rgb(255 106 26 / 0.8); }
.sp-ic .esponja { width: 22px; height: 22px; }
.modal-sponge .mp-tit span { color: #e8640f; }
.sp-lista { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 12px; padding: 18px 20px 24px; }
.sp-pacote { border: 1px solid var(--color-line); border-radius: 14px; background: var(--color-surface); }
.sp-pacote.novo { border-color: rgb(255 122 26 / 0.5); box-shadow: 0 0 0 3px rgb(255 122 26 / 0.08); }
.sp-pacote > summary { display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; }
.sp-tit { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 2px; }
.sp-tit b { font-weight: 500; font-size: 14.5px; color: var(--color-ink); }
.sp-tit i { font-style: normal; font: 400 10px var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-faint); }
.sp-novo { flex: none; padding: 2px 9px; border-radius: 999px; font: 400 9.5px var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: #fff; background: #ff7a1a; }
.sp-corpo { display: flex; flex-direction: column; gap: 14px; padding: 0 16px 16px 36px; }
.sp-frase { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--color-muted); }
.sp-tipo h4 { display: flex; align-items: center; gap: 6px; }
.sp-tipo h4 .ic { color: #e8640f; }
.sp-tipo ul { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.55; color: var(--color-ink); }
.sp-tipo li { margin: 4px 0; }
.sp-tipo li::marker { color: #ff7a1a; }
.sp-sens { padding: 0 6px; border-radius: 5px; font: 400 9.5px var(--font-mono); color: var(--color-muted); background: var(--color-line-soft); }

/* ---------- Orange Magic: agente trabalhando (28/11/2026) ----------
 * Pedido do Filipe: a foto de quem está trabalhando fica 20% maior e ganha um traço fino com gradiente
 * laranja (tom Claude) girando em volta, como um cometa. Vale para rostos das missões, Vera e tiles de agente. */
@property --om-giro { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes orange-magic { to { --om-giro: 360deg; } }
@keyframes orange-magic-brilho { 50% { opacity: 0.5; } }
/* a caixa do rosto é exatamente do tamanho da foto: sem isso o anel fica oval (sobrava a linha do texto) */
.lm-rosto, .sis-av { display: inline-flex; line-height: 0; vertical-align: middle; }
.lm-rosto .ag-av, .sis-av .ag-av { display: block; }
.lm-rosto, .sis-av { transition: transform 0.45s var(--ease); }
.lm-rosto.vivo, .sis-av.vivo { z-index: 2; transform: scale(1.2); }
.ag-tile.trabalhando .ag-av { position: relative; transform: scale(1.2); }
.ag-tile.trabalhando .ag-av img, .lm-rosto.vivo .ag-av img { filter: none; }
.sis-av.vivo .ag-av, .ag-tile.trabalhando .ag-av { box-shadow: none; }
.lm-rosto.vivo::after, .sis-av.vivo::after, .ag-tile.trabalhando .ag-av::after {
  content: ""; position: absolute; inset: -2.5px; aspect-ratio: 1; border: 0; border-radius: 50%;
  opacity: 1; transform: none; pointer-events: none;
  /* trilho bem suave + cauda que acende até a ponta clara */
  background: conic-gradient(from var(--om-giro),
    rgb(217 119 87 / 0.18) 0deg, rgb(217 119 87 / 0.18) 120deg,
    rgb(217 119 87 / 0.7) 250deg, #e8875f 320deg, #ffd9c2 356deg, rgb(217 119 87 / 0.18) 360deg);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 1.75px), #000 calc(100% - 1.25px), #000 calc(100% - 0.25px), transparent 100%);
          mask: radial-gradient(closest-side, transparent calc(100% - 1.75px), #000 calc(100% - 1.25px), #000 calc(100% - 0.25px), transparent 100%);
  filter: drop-shadow(0 0 2px rgb(217 119 87 / 0.55));
  animation: orange-magic 2.2s linear infinite;
}
.sis-av.vivo::after { inset: -3px; }
/* o pontinho piscando do tile sai: o anel já diz que está trabalhando */
.ag-tile.trabalhando::after { display: none; }
@media (prefers-reduced-motion: reduce) {
  .lm-rosto.vivo::after, .sis-av.vivo::after, .ag-tile.trabalhando .ag-av::after { animation: orange-magic-brilho 2.4s ease-in-out infinite; }
}

/* resumo do projeto: a folga de baixo fica FORA do corte; senão a 3ª linha aparece pela metade (28/11) */
.projeto-agora, .projetos .projeto-agora { padding-bottom: 0; margin-bottom: 8px; }

/* regra do Filipe (28/11): ele fala sempre com a Vera. O "Quem conversa" sai da tela;
 * quem está trabalhando aparece na linha do tempo da missão, dentro da conversa. */
.coluna.chat .bloco-squad { display: none !important; }

/* pedido de OK no modal de decisões (28/11) */
.ok-card .ok-aviso { color: var(--color-ink); background: rgb(193 95 60 / 0.09); }
.ok-card .ok-aviso .ic { color: #c15f3c; }
.ok-lista { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.ok-lista li { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--color-line-soft); }
.ok-lista b { font-size: 14.5px; font-weight: 600; color: var(--color-ink); }
.ok-lista span { font-size: 12.5px; color: var(--color-muted); }
.ok-tec { font-size: 12px; color: var(--color-faint); }
.ok-tec code { display: block; margin-top: 6px; white-space: pre-wrap; word-break: break-all; font: 400 11px var(--font-mono); }
/* o carrossel é lado a lado: a regra antiga por id (#listaPerguntas em coluna) empilhava os cartões */
#listaPerguntas.mp-trilho { flex-direction: row; gap: 0; padding: 0; align-items: flex-start; }

/* preview de mídia: player de verdade, centralizado (28/11) */
.moldura:has(.midia) { display: grid; place-items: center; padding: 14px; background: var(--color-line-soft); }
.moldura .midia { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: var(--shadow-os); background: #000; }
.moldura .midia-video { height: 100%; width: auto; object-fit: contain; }
.moldura .midia-img { object-fit: contain; background: transparent; }
.moldura .midia-audio { width: min(520px, 100%); height: 54px; box-shadow: none; background: transparent; }
#abasViewport button[hidden] { display: none; }

/* cartão "travou": resposta ali mesmo (28/11) */
.md-item .md-resp { margin-top: 10px; }
.md-item .md-item-acoes + .md-item-acoes { margin-top: 6px; }
.md-item.saindo { opacity: 0.4; pointer-events: none; transition: opacity 0.3s var(--ease); }

/* abrir no Explorador do Windows (29/11) */
.no { position: relative; }
.no .abrir-windows.na-arvore { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; opacity: 0; transition: opacity 0.2s var(--ease); }
.no:hover .abrir-windows.na-arvore, .no .abrir-windows.na-arvore:focus-visible { opacity: 1; }
.cabeca-arquivo { display: flex; align-items: center; gap: 8px; }
.cabeca-arquivo .abrir-windows { margin-left: auto; flex: none; }
/* Atividade: quem trabalha fora de missão */
.mi-agora { cursor: default; }
.mi-agora .mi-l1 { align-items: center; gap: 10px; }
.mi-agora .lm-rosto { margin-left: 2px; }

/* ---------- "construindo resposta" e chegada suave (29/11) ---------- */
.digitando {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; margin: 6px 0 2px; padding: 8px 14px 8px 10px;
  border-radius: 999px; background: var(--color-line-soft); font-size: 13px; color: var(--color-muted);
  animation: dig-entra 0.5s var(--ease) both;
}
.digitando::before { display: none; }
.digitando b { color: var(--color-ink); font-weight: 600; }
.dig-spin {
  flex: none; width: 14px; height: 14px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 35%, #d97757 75%, #ffd2b8 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  animation: dig-gira 0.9s linear infinite;
}
.dig-oque { display: inline-block; max-width: 46ch; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; vertical-align: bottom; }
.dig-oque.troca { animation: dig-troca 0.45s var(--ease); }
@keyframes dig-gira { to { transform: rotate(360deg); } }
@keyframes dig-entra { from { opacity: 0; transform: translateY(6px) scale(0.98); } }
@keyframes dig-troca { from { opacity: 0; transform: translateY(4px); } }
/* a resposta entra bloco a bloco, sem salto */
.msg.chegando .bloco-chega { animation: chega-bloco 0.7s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms); }
.msg.chegando:not(:has(.bloco-chega)) { animation: chega-bloco 0.7s var(--ease) both; }
@keyframes chega-bloco { from { opacity: 0; transform: translateY(8px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
@media (prefers-reduced-motion: reduce) {
  .dig-spin { animation-duration: 2.4s; }
  .msg.chegando .bloco-chega, .msg.chegando, .digitando { animation: none; }
}

/* ---------- preview: fundo escuro enquanto carrega ou não há nada; texto legível (29/11) ---------- */
.moldura { position: relative; background: var(--color-ground-2); }
.moldura iframe { transition: opacity 0.4s var(--ease); }
.moldura.carregando iframe { opacity: 0; }
.moldura.carregando::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 35%, #d97757 75%, #ffd2b8 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
  animation: dig-gira 0.9s linear infinite;
}
.moldura > .vazio { height: 100%; display: grid; place-content: center; text-align: center; padding: 24px; color: var(--color-muted); }
.moldura > .vazio b { color: var(--color-ink); }
.texto-preview { height: 100%; overflow: auto; padding: 18px 20px; color: var(--color-ink); animation: chega-bloco 0.5s var(--ease) both; }
.texto-preview pre.codigo { margin: 0; font: 400 12.5px/1.6 var(--font-mono); white-space: pre-wrap; word-break: break-word; }
.texto-preview .dica { margin: 0 0 10px; color: var(--color-faint); }

/* ---------- spinner laranja em tudo que está rodando (29/11) ---------- */
.spin-laranja {
  display: inline-block; flex: none; width: 12px; height: 12px; border-radius: 50%; vertical-align: -1px;
  background: conic-gradient(from 0deg, transparent 0 35%, #d97757 75%, #ffd2b8 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  animation: dig-gira 0.9s linear infinite;
}
.spin-laranja.dig-spin { width: 14px; height: 14px; }
.dig-tempo { margin-left: 2px; font: 400 11.5px var(--font-mono); color: var(--color-faint); font-variant-numeric: tabular-nums; }
/* lateral: ao lado do nome da seção; no projeto, no lugar do pontinho */
.secao-nome { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.sec-spin { width: 11px; height: 11px; }
.projeto-nome .ponto.ocupado {
  width: 10px; height: 10px; border-radius: 50%; box-shadow: none; animation: dig-gira 0.9s linear infinite;
  background: conic-gradient(from 0deg, transparent 0 35%, #d97757 75%, #ffd2b8 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
}
/* missão: linha "quem está trabalhando · o quê · há quanto tempo" */
.mi-rodando { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12.5px; color: var(--color-muted); min-width: 0; }
.mi-rodando > span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mi-rodando b { color: var(--color-ink); font-weight: 600; }
.lm-tit .lm-spin { margin-right: 6px; }
/* sem cérebro girando: o botão ganha o spinner laranja no canto */
.botao-cerebro.girando .cerebro-wire { animation: none !important; transform: none !important; filter: none; color: var(--color-ink); }
.botao-cerebro.girando { position: relative; border-color: rgb(217 119 87 / 0.45); }
.botao-cerebro.girando::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0 55%, #d97757 85%, #ffd2b8 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  animation: dig-gira 1.1s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .spin-laranja, .projeto-nome .ponto.ocupado, .botao-cerebro.girando::after { animation-duration: 2.4s; } }

/* ---------- vitrine da squad e Aula da squad (29/11) ---------- */
.projetos { flex: 1 1 auto; min-height: 0; }
.vitrine-squad { flex: none; padding: 12px 12px 14px; border-top: 1px solid var(--color-line); background: rgb(var(--ink-rgb) / 0.015); }
.vitrine-squad .vs-cab { margin: 12px 4px 8px; }
.aula-item {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; text-align: left;
  border: 1px solid rgb(217 119 87 / 0.28); background: linear-gradient(135deg, rgb(217 119 87 / 0.10), rgb(217 119 87 / 0.03));
  color: var(--color-ink); cursor: pointer; transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}
.aula-item:hover { border-color: rgb(217 119 87 / 0.5); transform: translateY(-1px); }
.aula-item.ativo { border-color: #d97757; background: rgb(217 119 87 / 0.14); }
.aula-ic { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: #d97757; background: rgb(217 119 87 / 0.14); }
.aula-txt { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.aula-txt b { font-size: 13.5px; font-weight: 600; }
.aula-txt span { font-size: 11.5px; color: var(--color-muted); }
.aula-item > .ic { color: var(--color-faint); }
.vs-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 10px 4px; }
.vs-ag { display: grid; justify-items: center; gap: 5px; padding: 6px 2px 4px; border: 0; border-radius: 10px; background: transparent; color: var(--color-muted); cursor: pointer; transition: background 0.2s var(--ease), color 0.2s var(--ease); }
.vs-ag:hover { background: var(--color-line-soft); color: var(--color-ink); }
.vs-ag .lm-rosto { margin: 0; }
.vs-ag .ag-av img { filter: grayscale(0.25) brightness(0.95); transition: filter 0.25s var(--ease); }
.vs-ag:hover .ag-av img, .vs-ag.trabalhando .ag-av img { filter: none; }
.vs-nome { font: 500 10px var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; }
.vs-ag.trabalhando .vs-nome { color: #e8875f; }
/* cartão do agente */
.cartao-agente { width: min(420px, 92vw); padding: 22px 22px 18px; border-radius: 18px; }
.cartao-agente .ca-fechar { position: absolute; top: 12px; right: 12px; }
.ca-cab { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.ca-cab h3 { margin: 0; font: 400 24px/1.1 var(--font-serif, 'Newsreader', serif); }
.ca-papel { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font: 500 10.5px var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-muted); }
.ca-missao { margin: 12px 0 16px; font-size: 14px; line-height: 1.55; color: var(--color-muted-2); }
.ca-skills { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.ca-skills li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: 10px; background: var(--color-line-soft); font-size: 13.5px; text-transform: capitalize; }
.ca-skills li.falta { opacity: 0.6; }
.ca-skills li span { font-size: 11px; color: var(--color-faint); text-transform: none; }
.ca-dica { margin: 16px 0 0; font-size: 12px; color: var(--color-faint); }
/* etiqueta e cartão "a squad aprendeu" */
.tag.aula-tag { color: #d97757; background: rgb(217 119 87 / 0.12); }
.ctx-aula { color: #d97757; }
.bloco.b-aprendido { border-color: rgb(217 119 87 / 0.35); background: linear-gradient(135deg, rgb(217 119 87 / 0.08), transparent 70%); }
.b-aprendido .bloco-ic { color: #d97757; }
.ap-quem { display: grid; gap: 8px; margin-top: 10px; }
.ap-linha { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ap-rot { min-width: 108px; font: 500 10px var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-faint); }
.ap-ag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; }
.ap-ag i { font-style: normal; color: var(--color-ink); }
.ap-linha.sabem .ap-ag { margin-left: -4px; opacity: 0.55; }
/* a vitrine rola junto com a lista e encosta no pé quando sobra espaço */
.projetos { display: flex; flex-direction: column; }
.projetos > * { flex: none; }
.projetos > .vitrine-squad { margin: auto -10px -14px; padding-top: 14px; }
.vs-grade { grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 8px 2px; }
/* modo escuro: camadas visíveis — fundo, cartão e bloco interno em três tons (29/11) */
:root[data-theme="dark"] .projeto.ativo, :root[data-theme="dark"] .vitrine-squad { background: var(--color-ground-2); border-radius: 12px; box-shadow: inset 0 0 0 1px var(--color-line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .projeto.ativo, :root:not([data-theme="light"]) .vitrine-squad { background: var(--color-ground-2); border-radius: 12px; box-shadow: inset 0 0 0 1px var(--color-line); } }
/* vitrine: com margem nas laterais; grade 3 colunas, foto grande e pílula com ícone + nome (29/11) */
.projetos > .vitrine-squad { margin: auto 0 4px; padding: 14px 12px 14px; border-top: 0; }
.vs-grade { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 8px; }
.vs-ag { gap: 8px; padding: 8px 2px 6px; }
.vs-pilula {
  display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 3px 9px 3px 7px; border-radius: 999px;
  background: var(--color-line-soft); box-shadow: inset 0 0 0 1px var(--color-line); color: var(--color-muted);
}
.vs-pilula .ic { flex: none; }
.vs-pilula .vs-nome { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.vs-ag:hover .vs-pilula { color: var(--color-ink); }
.vs-ag.trabalhando .vs-pilula { color: #e8875f; box-shadow: inset 0 0 0 1px rgb(217 119 87 / 0.4); background: rgb(217 119 87 / 0.08); }

/* ================= 29/11 · rostos quadrados, caixas neutras, mais respiro ================= */
/* rostos: quadrados com canto levemente arredondado (proporcional ao tamanho) */
.ag-av { --raio: calc(var(--tam, 40px) * 0.24); border-radius: var(--raio) !important; }
.ag-av img { border-radius: var(--raio) !important; }
.ag-fun { border-radius: 30% !important; }
.lm-rosto, .lm-av, .sis-av { border-radius: 26% !important; }
.av.av-foto, .av.av-foto img { border-radius: 24% !important; }
/* Orange Magic acompanha o quadrado: traço em volta, girando */
.lm-rosto.vivo::after, .sis-av.vivo::after, .ag-tile.trabalhando .ag-av::after {
  inset: -3px; aspect-ratio: auto; border-radius: 30%; padding: 1.5px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
}

/* Vera e Aula: sem caixa colorida; o destaque vem do tamanho, da foto/ícone e de uma sombra leve */
.sistema-item, .aula-item {
  border: 1px solid var(--color-line) !important; background: rgb(var(--ink-rgb) / 0.035) !important;
  box-shadow: 0 10px 24px -18px rgb(0 0 0 / 0.55);
}
.sistema-item:hover, .aula-item:hover { border-color: var(--color-line-strong) !important; background: rgb(var(--ink-rgb) / 0.06) !important; }
.sistema-item.ativo, .aula-item.ativo { border-color: var(--color-line-strong) !important; background: rgb(var(--ink-rgb) / 0.075) !important; }
.sis-av .ag-av { box-shadow: none !important; }
.aula-ic { background: rgb(var(--ink-rgb) / 0.06) !important; }

/* projetos: mais respiro */
.projetos > .projeto, .grupo-arquivados > .projeto { margin: 0 0 14px !important; }
.projetos .projeto-linha { min-height: 46px; padding: 4px 8px 2px 6px; }
.projetos .projeto-nome { padding: 10px 10px 10px 12px; }
.projetos .projeto-agora { padding: 0 16px 12px 34px !important; margin-bottom: 0 !important; }
.projetos .projeto.aberto, .projetos .projeto.ativo { padding-bottom: 14px !important; }
.projetos .secoes { margin: 4px 16px 0 26px !important; }
.projetos .linha-nova { margin-top: 10px; }

/* squad: fotos grandes ocupando a coluna, pílula por cima da foto, embaixo */
.vs-grade { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.vs-ag { position: relative; display: block; padding: 0; border-radius: 14px; transition: transform 0.25s var(--ease); }
.vs-ag:hover { background: transparent; transform: translateY(-2px); }
.vs-ag .lm-rosto { display: block; width: 100%; box-shadow: none; }
.vs-ag .ag-av { display: block; width: 100%; height: auto; aspect-ratio: 1; --raio: 14px; box-shadow: inset 0 0 0 1px var(--color-line); }
.vs-pilula {
  position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); max-width: calc(100% - 10px);
  padding: 3px 8px 3px 6px; color: #f0ece4; background: rgb(16 17 20 / 0.72); box-shadow: none;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.vs-ag:hover .vs-pilula { color: #fff; }
.vs-ag.trabalhando .vs-pilula { color: #fff; background: rgb(193 95 60 / 0.88); box-shadow: none; }
/* na grade da squad a foto não cresce (já é grande): só o anel laranja e a pílula laranja mostram quem trabalha */
.vs-ag .lm-rosto.vivo { transform: none; z-index: auto; }
.vs-pilula { z-index: 3; }
/* squad: um respiro só (12px) em tudo — borda da caixa, entre as fotos e embaixo; a grade se adapta à largura da coluna (29/11) */
.projetos > .vitrine-squad { --respiro: 12px; margin: auto 0 0; padding: var(--respiro); }
.vitrine-squad .vs-cab { margin: var(--respiro) 2px calc(var(--respiro) - 4px); }
.vs-grade { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: var(--respiro); }
.projetos { padding: 2px 12px 12px; }

/* ---------- faixa de topo da Aula da squad (29/11) ---------- */
.hero-aula {
  position: relative; display: flex; gap: 16px; align-items: flex-start; margin: 12px 12px 4px; padding: 16px 18px;
  border: 1px solid var(--color-line); border-radius: 14px; overflow: hidden;
  background: radial-gradient(120% 140% at 0% 0%, rgb(217 119 87 / 0.10), transparent 55%), rgb(var(--ink-rgb) / 0.03);
  animation: chega-bloco 0.6s var(--ease) both;
}
.hero-aula::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(#d97757, rgb(217 119 87 / 0.15)); }
.ha-foto { flex: none; }
.ha-txt { min-width: 0; }
.ha-rot { display: inline-flex; align-items: center; gap: 6px; font: 500 10px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: #d97757; }
.hero-aula h3 { margin: 6px 0 6px; font: 400 22px/1.15 var(--font-serif, 'Newsreader', serif); color: var(--color-ink); }
.hero-aula p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--color-muted-2); }
.hero-aula p b { color: var(--color-ink); }
.ha-dicas { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 5px; }
.ha-dicas li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--color-muted); }
.ha-dicas .ic { flex: none; color: var(--color-faint); }
@container (max-width: 420px) { .hero-aula .ha-foto { display: none; } }
/* com a arte do Oráculo: imagem de fundo, texto à direita sobre a parte escura */
.hero-aula.com-arte { min-height: 190px; padding: 22px 24px 20px 38%; background: #18191c var(--arte) left center / cover no-repeat; border-color: rgb(217 119 87 / 0.25); }
.hero-aula.com-arte::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 30%, rgb(24 25 28 / 0.55) 55%, rgb(24 25 28 / 0.85)); pointer-events: none; }
.hero-aula.com-arte > * { position: relative; z-index: 1; }
.hero-aula.com-arte .ha-foto { display: none; }
.hero-aula.com-arte h3 { color: #f4efe6; }
.hero-aula.com-arte p { color: #d6d1c7; }
.hero-aula.com-arte p b { color: #fff; }
.hero-aula.com-arte .ha-dicas li { color: #bdb8ae; }
@container (max-width: 520px) { .hero-aula.com-arte { padding-left: 24px; } .hero-aula.com-arte::after { background: rgb(24 25 28 / 0.78); } }
/* faixa da Aula se adapta à largura da conversa e recolhe numa linha */
.bloco-conversa { container-type: inline-size; container-name: conversa; }
.hero-aula { flex: none; }
.ha-seta { position: absolute; top: 10px; right: 10px; z-index: 2; }
.ha-seta .ic { transition: transform 0.3s var(--ease); }
.hero-aula:not(.curta) .ha-seta .ic { transform: rotate(180deg); }
.hero-aula.curta { min-height: 0; padding-top: 12px; padding-bottom: 12px; padding-right: 48px; background-position: left 30%; }
.hero-aula.curta p, .hero-aula.curta .ha-dicas, .hero-aula.curta .ha-rot { display: none; }
.hero-aula.curta h3 { margin: 0; font-size: 17px; }
.hero-aula.com-arte.curta { padding-left: 30%; }
@container conversa (max-width: 760px) { .hero-aula .ha-dicas { display: none; } .hero-aula.com-arte { min-height: 0; } }
@container conversa (max-width: 560px) {
  .hero-aula.com-arte, .hero-aula.com-arte.curta { padding-left: 20px; background-position: 15% 30%; }
  .hero-aula.com-arte::after { background: linear-gradient(90deg, rgb(24 25 28 / 0.55), rgb(24 25 28 / 0.88)); }
  .hero-aula h3 { font-size: 19px; }
}

/* ---------- cartão da missão na conversa: respiro e leitura (29/11) ---------- */
.linha-missao { margin: 12px 12px 6px; border-radius: 14px; }
.lm-cab { gap: 12px; padding: 14px 14px 14px 16px; }
.lm-tit { gap: 4px; }
.lm-tit b { font-size: 14.5px; }
.lm-resumo { padding: 4px 18px 14px 54px; font-size: 13.5px; line-height: 1.6; color: var(--color-muted-2); }
.lm-resumo .md p { margin: 0 0 6px; }
.lm-resumo .md :last-child { margin-bottom: 0; }
.lm-passos { padding: 10px 16px 14px 46px; }
.lm-p { gap: 12px; padding: 10px 0 8px; }
.lm-p + .lm-p { border-top: 1px dashed var(--color-line-soft); }
.lm-p::before { left: -18px; }
.lm-av { margin-left: -28px; }
.lm-txt { gap: 3px; font-size: 13px; line-height: 1.5; }
.lm-txt i { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--color-muted); }
.lm-p time { padding-top: 2px; }
.lm-vezes { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 999px; font: 500 10px var(--font-mono); color: var(--color-muted); background: var(--color-line-soft); }
.lm-mais { padding: 2px 0 6px; }
.lm-entregas { padding: 12px 16px 14px; gap: 8px; }

/* nada de preto: vídeo, áudio, fotos e selos usam o chumbo do tema (29/11) */
video, .arq-item video, .moldura .midia, .moldura .midia-video { background: var(--color-ground-2) !important; }
.moldura:has(.midia) { background: var(--color-ground-2); }
.ag-av, .av.av-foto { background: var(--color-ground-2) !important; }
.ag-fun { background: var(--color-surface-solid, var(--color-ground-2)) !important; }

/* ---------- faixa da missão em andamento (outra camada, uma linha, sem corte) (29/11) ---------- */
.missao-viva { flex: none; max-height: none !important; overflow: visible !important; padding: 12px 12px 4px; display: grid; gap: 8px; border: 0 !important; background: transparent !important; }
.missao-faixa {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px 10px 14px; text-align: left; cursor: pointer;
  border: 1px solid var(--color-line-strong); border-radius: 12px; color: var(--color-ink);
  background: var(--color-ground-2); box-shadow: 0 8px 22px -14px rgb(0 0 0 / 0.6);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.missao-faixa:hover { transform: translateY(-1px); border-color: rgb(var(--ink-rgb) / 0.4); }
.missao-faixa.pede { border-color: rgb(217 119 87 / 0.55); }
.mf-ic { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: var(--color-fixed); background: rgb(var(--fixed-rgb) / 0.1); }
.mf-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.mf-txt > b { font-size: 13.5px; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mf-agora { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12.5px; color: var(--color-muted); white-space: nowrap; overflow: hidden; }
.mf-agora b { color: var(--color-ink); font-weight: 600; }
.mf-pede { display: inline-flex; align-items: center; gap: 6px; color: #e8875f; font-weight: 500; }
.mf-rostos { flex: none; display: flex; }
.mf-rostos .lm-rosto { margin-left: -6px; box-shadow: 0 0 0 2px var(--color-ground-2); }
.mf-rostos .lm-rosto:first-child { margin-left: 0; }
.mf-ver { flex: none; color: var(--color-faint); }
@container conversa (max-width: 520px) { .mf-rostos { display: none; } }

/* ---------- Visão: seções com rostos de quem participou ---------- */
.vp-secao { align-items: center; }
.vp-sec-rostos { flex: none; display: flex; margin-left: auto; }
.vp-sec-rostos .lm-rosto { margin-left: -5px; box-shadow: 0 0 0 2px var(--color-surface); }
.vp-sec-rostos .lm-rosto:first-child { margin-left: 0; }

/* ---------- visor (entregas em tela grande) ---------- */
.visor { width: min(1200px, 94vw); height: min(860px, 90vh); padding: 0; border-radius: 18px; display: none; overflow: hidden; background: var(--color-ground-2); }
.visor[open] { display: grid; grid-template-rows: auto 1fr auto; }
.vs-topo { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 18px; border-bottom: 1px solid var(--color-line); background: var(--color-surface); }
.vs-ic { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: var(--color-muted); background: var(--color-line-soft); }
.vs-tit { flex: 1; min-width: 0; display: grid; gap: 2px; }
.vs-tit b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14.5px; font-weight: 600; }
.vs-tit span { font: 400 10px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-faint); }
.vs-acoes { flex: none; display: flex; align-items: center; gap: 6px; }
.vs-zoom { min-width: 54px; height: 28px; padding: 0 8px; border: 1px solid var(--color-line); border-radius: 8px; background: transparent; color: var(--color-muted); font: 500 11px var(--font-mono); cursor: pointer; }
.vs-sep { width: 1px; height: 18px; margin: 0 4px; background: var(--color-line); }
.vs-palco { position: relative; min-height: 0; overflow: auto; display: grid; place-items: center; padding: 18px 64px; }
.vs-palco.carregando::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 35%, #d97757 75%, #ffd2b8 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
  animation: dig-gira 0.9s linear infinite;
}
.vs-obra { max-width: 100%; max-height: 100%; border-radius: 12px; transform-origin: center; transition: transform 0.2s var(--ease); }
img.vs-obra { cursor: zoom-in; user-select: none; }
img.vs-obra.arrastando { transition: none; cursor: grabbing; }
video.vs-obra { width: auto; height: 100%; background: var(--color-surface); }
audio.vs-obra { width: min(560px, 100%); }
iframe.vs-obra { width: 100%; height: 100%; border: 0; background: #fff; }
.vs-doc { width: min(820px, 100%); align-self: start; padding: 26px 30px; border-radius: 12px; background: var(--color-surface); color: var(--color-ink); font-size: 14.5px; line-height: 1.65; }
.vs-doc pre.codigo { margin: 0; white-space: pre-wrap; word-break: break-word; font: 400 12.5px/1.6 var(--font-mono); }
.vs-nav { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; margin-top: -20px; border: 1px solid var(--color-line-strong); border-radius: 12px; color: var(--color-ink); background: var(--color-surface); cursor: pointer; box-shadow: var(--shadow-os); }
.vs-nav.ant { left: 12px; } .vs-nav.prox { right: 12px; }
.vs-nav[hidden] { display: none; }
.vs-rodape { display: flex; gap: 6px; padding: 10px 14px; overflow-x: auto; border-top: 1px solid var(--color-line); background: var(--color-surface); }
.vs-rodape:empty { display: none; }
.vs-rodape button { flex: none; max-width: 200px; padding: 6px 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; border: 1px solid var(--color-line); border-radius: 999px; background: transparent; color: var(--color-muted); font-size: 12px; cursor: pointer; }
.vs-rodape button.ativo { color: var(--color-ink); border-color: var(--color-line-strong); background: var(--color-line-soft); }

/* o visor ocupa a tela (o os-dialog padrão é estreito) */
dialog.os-dialog.visor { width: min(1200px, 94vw); max-width: none; height: min(860px, 90vh); padding: 0; }
/* aba Mudanças em português */
.mud-item { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px dashed var(--color-line-soft); font-size: 13px; }
.mud-item .ic { flex: none; color: var(--color-faint); }
.mud-nome { color: var(--color-ink); font-weight: 500; }
.mud-onde { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 400 11px var(--font-mono); color: var(--color-faint); }
.mud-item i { flex: none; font-style: normal; font-size: 11.5px; color: var(--color-muted); }
.mud-tecnico { margin-top: 14px; font-size: 12px; color: var(--color-faint); }
.mud-tecnico summary { cursor: pointer; padding: 6px 0; }
.vs-palco { display: flex; align-items: center; justify-content: center; }
.vs-palco > img.vs-obra, .vs-palco > video.vs-obra { max-height: 100%; max-width: 100%; object-fit: contain; }
.vs-palco > video.vs-obra { height: auto; }
.vs-palco > .vs-doc { align-self: flex-start; }
/* faixa da Aula com uma frase só, centrada na parte escura */
.hero-aula { align-items: center; }
.hero-aula h3 { margin: 0; max-width: 30ch; font-size: 24px; line-height: 1.25; }
.hero-aula.com-arte { min-height: 170px; background-position: left 35%; }
.hero-aula.curta h3 { max-width: none; font-size: 16px; }

/* ================= cartões especiais: Vera e Aula com foto, o dobro da altura (29/11) ================= */
.sistema-item, .aula-item {
  position: relative; display: flex; align-items: stretch; gap: 0; min-height: 112px; padding: 0 !important; overflow: hidden; text-align: left;
  border-radius: 14px; border: 1px solid var(--color-line) !important; background: var(--color-surface) !important;
  box-shadow: 0 14px 30px -20px rgb(0 0 0 / 0.7); transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.sistema-item:hover, .aula-item:hover { transform: translateY(-1px); border-color: var(--color-line-strong) !important; background: var(--color-surface) !important; }
.sistema-item.ativo, .aula-item.ativo { border-color: rgb(var(--ink-rgb) / 0.45) !important; }
.sistema-item > .ic, .aula-item > .ic { position: absolute; right: 12px; top: 50%; margin-top: -7px; color: var(--color-faint); z-index: 1; }
/* Vera: retrato na lateral esquerda, ocupando a altura toda */
.sis-foto { position: relative; flex: none; width: 112px; align-self: stretch; overflow: hidden; }
.sis-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sis-foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, var(--color-surface)); }
.sis-foto.vivo { box-shadow: inset 0 0 0 2px #d97757; }
.sis-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 14px 34px 14px 14px; }
.sis-rot { display: inline-flex; align-items: center; gap: 6px; font: 500 9.5px var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-faint); }
.sistema-item .sis-txt b, .aula-txt b { font: 400 24px/1.1 var(--font-serif, 'Newsreader', serif); color: var(--color-ink); }
.sis-sub { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--color-muted); }
/* Aula: a arte do Oráculo de fundo, texto na parte escura */
.aula-item { background: #18191c url(avatares/hero-aula.jpg) left center / cover no-repeat !important; }
.aula-item::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 22%, rgb(24 25 28 / 0.78) 50%, rgb(24 25 28 / 0.92)); }
.aula-item .aula-txt { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 14px 34px 14px 46%; }
.aula-item .aula-txt b { font-size: 20px; color: #f4efe6; }
.aula-item .sis-rot { color: #bdb8ae; }
.aula-item .sis-sub { color: #d6d1c7; }
.aula-item .aula-ic { display: none; }

/* ================= cartão do agente: foto grande colorida e completo ================= */
dialog.os-dialog.cartao-agente { width: min(640px, 94vw); padding: 0; overflow: hidden; border-radius: 20px; background: var(--color-surface); }
.cartao-agente::before { content: ""; display: block; height: 3px; background: linear-gradient(90deg, var(--ag), transparent 70%); }
.cartao-agente .ca-fechar { position: absolute; top: 14px; right: 14px; z-index: 2; }
.ca-topo { display: flex; gap: 22px; align-items: center; padding: 24px 24px 8px; }
.ca-foto { position: relative; flex: none; width: 196px; height: 196px; border-radius: 22px; overflow: hidden; box-shadow: 0 18px 40px -20px rgb(0 0 0 / 0.8), 0 0 0 1px rgb(var(--ag-rgb) / 0.35); }
.ca-foto img { width: 100%; height: 100%; object-fit: cover; display: block; filter: none !important; }
.ca-foto.vivo { box-shadow: 0 0 0 2px #d97757, 0 18px 40px -20px rgb(0 0 0 / 0.8); }
.ca-id { min-width: 0; display: grid; gap: 8px; align-content: center; }
.ca-id h3 { margin: 0; font: 400 38px/1 var(--font-serif, 'Newsreader', serif); color: var(--color-ink); }
.cartao-agente .ca-papel { justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 4px 10px; border-radius: 999px; font: 500 10px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ag); background: rgb(var(--ag-rgb) / 0.12); }
.ca-estado { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--color-muted-2); }
.ca-livre { width: 8px; height: 8px; border-radius: 50%; background: #6fd3a0; box-shadow: 0 0 0 3px rgb(111 211 160 / 0.15); }
.ca-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ca-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 11.5px; color: var(--color-muted-2); background: var(--color-line-soft); box-shadow: inset 0 0 0 1px var(--color-line); }
.ca-chips .ic { color: var(--color-faint); }
.ca-bloco { padding: 14px 24px 2px; }
.ca-bloco h4 { margin: 0 0 8px; font: 500 10px var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-faint); }
.ca-bloco p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--color-ink); }
.cartao-agente .ca-skills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.cartao-agente .ca-skills span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 10px; font-size: 13px; color: var(--color-ink); text-transform: capitalize; background: var(--color-line-soft); box-shadow: inset 0 0 0 1px var(--color-line); }
.cartao-agente .ca-skills span .ic { color: #6fd3a0; }
.cartao-agente .ca-skills span.falta { color: var(--color-muted); }
.cartao-agente .ca-skills span.falta .ic { color: var(--color-faint); }
.ca-vazio { color: var(--color-muted) !important; font-size: 13.5px !important; }
.ca-junto { display: flex; flex-wrap: wrap; gap: 8px; }
.ca-junto button { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border: 1px solid var(--color-line); border-radius: 12px; background: transparent; color: var(--color-ink); font-size: 12.5px; cursor: pointer; transition: border-color 0.2s var(--ease); }
.ca-junto button:hover { border-color: var(--color-line-strong); }
.cartao-agente .ca-dica { margin: 16px 0 0; padding: 14px 24px 18px; border-top: 1px solid var(--color-line); font-size: 12.5px; color: var(--color-faint); }
@media (max-width: 560px) { .ca-topo { flex-direction: column; align-items: flex-start; } .ca-foto { width: 100%; height: auto; aspect-ratio: 1; } }
/* Aula: a arte não some no hover; o destaque é a foto clarear e aproximar um pouco (29/11) */
.aula-item, .aula-item:hover, .aula-item.ativo { background: #18191c url(avatares/hero-aula.jpg) left center / auto 100% no-repeat !important; transition: background-size 0.5s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease) !important; }
.aula-item:hover { background-size: auto 110% !important; }
.aula-item::before { transition: opacity 0.35s var(--ease); }
.aula-item:hover::before { opacity: 0.82; }
.aula-item:hover > .ic, .sistema-item:hover > .ic { color: var(--color-ink); transform: translateX(2px); }
.aula-item > .ic, .sistema-item > .ic { transition: transform 0.25s var(--ease), color 0.25s var(--ease); }
/* Vera: no hover a foto aproxima levemente */
.sis-foto img { transition: transform 0.5s var(--ease); }
.sistema-item:hover .sis-foto img { transform: scale(1.06); }

/* ================= raios concêntricos (29/11) =================
 * Regra: o canto de dentro é sempre menor que o de fora. Três camadas:
 *   --r1 18px  cartão de coluna (projetos, conversa, campo, viewport, repositório)
 *   --r2 12px  caixa dentro do cartão (projeto aberto, Vera, squad, faixa da missão, blocos da Visão)
 *   --r3  8px  item dentro da caixa (Aula, fotos da squad, seções, entregas, passos)
 * Pílulas continuam totalmente redondas. */
:root { --r1: 18px; --r2: 12px; --r3: 8px; }
.cartao, .coluna.cartao { border-radius: var(--r1) !important; }
/* camada 2 */
.sistema-item, .projetos > .projeto, .grupo-arquivados > .projeto, .projetos > .vitrine-squad, .vitrine-squad,
.missao-faixa, .hero-aula, .linha-missao, .vp-entrega, .vp-secao, .vp-config, .vp-bloco.vp-config,
.mi-card, .md-item, .pergunta-card, .ok-card, .busca, .barra-url .k-input, .moldura { border-radius: var(--r2) !important; }
/* camada 3 */
.aula-item, .vs-ag, .vs-ag .lm-rosto, .vs-ag .ag-av, .vs-ag .ag-av img, .secao, .secao-linha .secao, .ok-lista li, .ca-skills li,
.vp-ent-ic, .vp-sec-ic, .mf-ic, .lm-ic, .pc-op, .arq-item, .mud-item { border-radius: var(--r3) !important; }
.vs-ag .ag-av { --raio: var(--r3); }
/* a foto da Vera segue o canto da caixa dela */
.sis-foto { border-radius: var(--r2) 0 0 var(--r2); }
/* o anel laranja fica por fora da foto: canto = canto da foto + a distância */
.vs-ag .lm-rosto.vivo::after { border-radius: calc(var(--r3) + 3px) !important; }
.ca-foto.vivo, .ca-foto { border-radius: 22px; }
/* Vera com arte de fundo, como a Aula (29/11) */
.sistema-item.com-arte, .sistema-item.com-arte:hover, .sistema-item.com-arte.ativo { background: #18191c url(avatares/hero-vera.jpg) left center / auto 100% no-repeat !important; transition: background-size 0.5s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease) !important; }
.sistema-item.com-arte:hover { background-size: auto 110% !important; }
.sistema-item.com-arte::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 22%, rgb(24 25 28 / 0.78) 50%, rgb(24 25 28 / 0.92)); transition: opacity 0.35s var(--ease); }
.sistema-item.com-arte:hover::before { opacity: 0.82; }
.sistema-item.com-arte .sis-txt { position: relative; z-index: 1; padding: 14px 34px 14px 46%; }
.sistema-item.com-arte .sis-txt b { color: #f4efe6; }
.sistema-item.com-arte .sis-rot { color: #bdb8ae; }
.sistema-item.com-arte .sis-sub { color: #d6d1c7; }
.sistema-item.com-arte.vivo { border-color: rgb(217 119 87 / 0.6) !important; }
/* nome em cima, papel embaixo */
.sis-txt, .aula-item .aula-txt { gap: 6px; }
.sis-txt .sis-rot, .aula-txt .sis-rot { order: 2; }
/* caixa da Vera = mesmo desenho da caixa da Aula/squad: o cartão é camada 3 dentro dela (29/11) */
.projetos > .caixa-vera { --respiro: 12px; margin: 0 0 4px; padding: var(--respiro); }
.caixa-vera .sistema-item { border-radius: var(--r3) !important; margin: 0; }
.sistema-item.com-arte, .sistema-item.com-arte.ativo, .aula-item, .aula-item.ativo { border: 1px solid var(--color-line) !important; }
.sistema-item.com-arte:hover, .aula-item:hover { border-color: var(--color-line-strong) !important; }
.sistema-item.com-arte.ativo, .aula-item.ativo { box-shadow: 0 0 0 1px var(--color-line-strong), 0 14px 30px -20px rgb(0 0 0 / 0.7); }
/* o lado direito escurece igual nos dois cartões */
.sistema-item.com-arte::before, .aula-item::before { background: linear-gradient(90deg, transparent 20%, rgb(24 25 28 / 0.8) 48%, rgb(24 25 28 / 0.96) 70%) !important; }
.sistema-item.com-arte .sis-txt, .aula-item .aula-txt { padding-left: 46% !important; }
/* Vera e Aula com o mesmo traço em qualquer estado (sem anel claro quando selecionada) */
.sistema-item.com-arte, .sistema-item.com-arte.ativo, .aula-item, .aula-item.ativo { border: 1px solid var(--color-line) !important; box-shadow: 0 14px 30px -20px rgb(0 0 0 / 0.7) !important; }
.sistema-item.com-arte:hover, .aula-item:hover { border-color: var(--color-line-strong) !important; }
/* Vera mais perto, na mesma posição do Oráculo; hover não corta mais a foto (só clareia) (29/11) */
.sistema-item.com-arte, .sistema-item.com-arte.ativo, .sistema-item.com-arte:hover { background-size: auto 126% !important; background-position: 6% 6% !important; }
.aula-item, .aula-item.ativo, .aula-item:hover { background-size: auto 100% !important; background-position: left center !important; }
.sistema-item.com-arte, .aula-item { transition: filter 0.35s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease) !important; }
.sistema-item.com-arte:hover, .aula-item:hover { filter: brightness(1.08); }
/* faixa da Aula: só "Oráculo" e "aula da squad", como no cartão da lateral */
.hero-aula .ha-txt { display: flex; flex-direction: column; gap: 8px; }
.hero-aula h3 { max-width: none; font-size: 30px; }
.hero-aula .ha-rot { display: inline-flex !important; color: #bdb8ae; }
.hero-aula.curta .ha-rot { display: none !important; }
/* projeto selecionado mas fechado: sem a folga embaixo (o nome fica centrado na caixa) */
.projetos .projeto.ativo:not(.aberto) { padding-bottom: 0 !important; }
/* faixa da Aula: texto mais à direita, no meio da parte escura (sem botão de recolher) */
.hero-aula.com-arte { padding-left: 56% !important; padding-right: 24px !important; }
.hero-aula .ha-seta { display: none !important; }
@container conversa (max-width: 560px) { .hero-aula.com-arte { padding-left: 44% !important; } }
/* squad recolhível: vira "Chamar Oráculo" (29/11) */
.vitrine-squad { position: relative; }
.vs-topo { position: absolute; top: 4px; right: 4px; z-index: 3; }
.vs-topo .vs-seta { width: 24px; height: 24px; border: 0; background: rgb(24 25 28 / 0.6); color: var(--color-muted); }
.vs-topo .vs-seta:hover { color: var(--color-ink); }
.vitrine-squad.curta { padding: 8px !important; }
.vs-linha-curta { display: flex; align-items: center; gap: 8px; }
.vs-chamar { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; border: 1px solid var(--color-line); border-radius: var(--r3); background: var(--color-surface); color: var(--color-ink); cursor: pointer; text-align: left; transition: border-color 0.25s var(--ease); }
.vs-chamar:hover { border-color: var(--color-line-strong); }
.vs-chamar b { flex: 1; font: 400 17px var(--font-serif, 'Newsreader', serif); }
.vs-chamar .lm-rosto { margin: 0; }
.vs-linha-curta .vs-seta { flex: none; }
.vitrine-squad .vs-cab { display: flex; align-items: center; justify-content: space-between; }
.vs-cab .vs-seta { width: 24px; height: 24px; margin-right: -2px; border: 0; background: transparent; color: var(--color-faint); }
.vs-cab .vs-seta:hover { color: var(--color-ink); }
/* "Chamar Oráculo" recolhido: uma faixa com a arte dele, no mesmo estilo dos cartões grandes (29/11) */
.vitrine-squad.curta { padding: 12px !important; }
.vs-linha-curta { position: relative; gap: 0; height: 60px; overflow: hidden; border: 1px solid var(--color-line); border-radius: var(--r3);
  background: #18191c url(avatares/hero-aula.jpg) left 32% / auto 175% no-repeat; box-shadow: 0 14px 30px -20px rgb(0 0 0 / 0.7); transition: border-color 0.25s var(--ease), filter 0.35s var(--ease); }
.vs-linha-curta::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 18%, rgb(24 25 28 / 0.82) 44%, rgb(24 25 28 / 0.96) 70%); pointer-events: none; }
.vs-linha-curta:hover { border-color: var(--color-line-strong); filter: brightness(1.08); }
.vs-linha-curta .vs-chamar { position: relative; z-index: 1; height: 100%; padding: 0 8px 0 44%; border: 0; border-radius: 0; background: transparent !important; gap: 8px; }
.vs-linha-curta .vs-chamar .lm-rosto { display: none; }
.vs-linha-curta .vs-chamar b { flex: none; font: 400 18px var(--font-serif, 'Newsreader', serif); color: #f4efe6; }
.vs-linha-curta .vs-seta { position: relative; z-index: 1; width: 28px; height: 28px; margin-right: 10px; border: 0; background: transparent; color: #bdb8ae; }
.vs-linha-curta .vs-seta:hover { color: #fff; }
/* caixa da Vera = mesmo padrão e tamanho do "Chamar Oráculo" recolhido (29/11) */
.sistema-item.com-arte.faixa-curta { min-height: 0 !important; height: 60px; }
.sistema-item.com-arte.faixa-curta, .sistema-item.com-arte.faixa-curta:hover, .sistema-item.com-arte.faixa-curta.ativo { background-size: auto 175% !important; background-position: left 30% !important; }
.sistema-item.com-arte.faixa-curta::before { background: linear-gradient(90deg, transparent 18%, rgb(24 25 28 / 0.82) 44%, rgb(24 25 28 / 0.96) 70%) !important; }
.sistema-item.com-arte.faixa-curta .sis-txt { padding: 0 34px 0 44% !important; gap: 2px; }
.sistema-item.com-arte.faixa-curta .sis-txt b { font-size: 18px; }
.sistema-item.com-arte.faixa-curta .sis-rot { font-size: 8.5px; }
/* faixas curtas: o escurecido fica sólido antes do fim da arte (sem emenda clara à direita) (29/11) */
.sistema-item.com-arte.faixa-curta::before, .vs-linha-curta::before { background: linear-gradient(90deg, transparent 16%, rgb(24 25 28 / 0.85) 40%, #18191c 62%) !important; }
.sistema-item.com-arte.faixa-curta, .vs-linha-curta { background-color: #18191c !important; }
/* faixas grandes também */
.sistema-item.com-arte::before, .aula-item::before { background: linear-gradient(90deg, transparent 20%, rgb(24 25 28 / 0.85) 46%, #18191c 66%) !important; }
.sistema-item.com-arte, .aula-item, .hero-aula.com-arte { background-color: #18191c !important; }
.hero-aula.com-arte::after { background: linear-gradient(90deg, transparent 28%, rgb(24 25 28 / 0.7) 48%, #18191c 70%) !important; }

/* ---------- decisões: respiro, sem vazio, contador e amostra de cor (29/11) ---------- */
dialog.modal-perguntas { background: var(--color-surface); }
/* a pergunta é o próprio conteúdo do modal: sem caixa encostando nas laterais */
.mp-trilho > .pergunta-card { background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; padding: 22px 28px 24px !important; max-height: none; overflow: visible; }
.mp-janela { flex: none; transition: height 0.35s var(--ease); }
#listaPerguntas.mp-trilho { height: auto; }
.mp-cab { padding: 20px 24px 16px; }
.mp-pe { padding: 12px 20px 16px; }
.pergunta-card .pc-cab { margin-bottom: 16px; }
.pergunta-card .pc-texto { font-size: 15.5px; line-height: 1.55; margin-bottom: 16px; }
.pergunta-card .pc-opcoes { display: grid; gap: 10px; margin-bottom: 18px; }
.pergunta-card .pc-op { padding: 12px 14px; }
.pergunta-card .pc-linha-resp { margin-bottom: 14px; }
.pergunta-card .pc-acoes { margin-top: 4px; }
/* muitas decisões: barra de progresso + "21 de 32" no lugar dos pontinhos */
.mp-pontos { align-items: center; gap: 12px; }
.mp-progresso { display: block; width: min(260px, 40vw); height: 4px; border-radius: 99px; background: var(--color-line-strong); overflow: hidden; }
.mp-progresso i { display: block; height: 100%; border-radius: 99px; background: var(--color-fixed); transition: width 0.35s var(--ease); }
.mp-num { font: 500 11px var(--font-mono); letter-spacing: 0.08em; color: var(--color-muted); }
/* amostra de cor ao lado do código */
.cor-cod { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.cor-amostra { display: inline-block; width: 16px; height: 16px; border-radius: 50%; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.22), 0 2px 6px -2px rgb(0 0 0 / 0.6); vertical-align: -3px; }
.pc-op .cor-amostra { width: 18px; height: 18px; }
/* faixas curtas: o escurecido começa já sobre a foto (o fundo da arte é mais claro que a caixa) e fecha logo depois dela */
.sistema-item.com-arte.faixa-curta::before, .vs-linha-curta::before {
  background: linear-gradient(90deg, rgb(24 25 28 / 0.18) 0%, rgb(24 25 28 / 0.3) 14%, rgb(24 25 28 / 0.88) 30%, #18191c 42%) !important;
}
/* Vera e Oráculo (cartões e faixas curtas) sem traço em volta (29/11) */
.sistema-item.com-arte, .sistema-item.com-arte.ativo, .sistema-item.com-arte:hover,
.aula-item, .aula-item.ativo, .aula-item:hover, .vs-linha-curta, .vs-linha-curta:hover { border-color: transparent !important; }
/* passos técnicos: tropeço normal em tom calmo; vermelho só para o que foi barrado (29/11) */
.passos .falha { display: grid; gap: 4px; padding: 8px 10px; border-radius: var(--r3); font-size: 12.5px; line-height: 1.45; }
.passos .falha.leve { color: var(--color-muted); background: var(--color-line-soft); border: 0; }
.passos .falha .falha-txt { display: inline-flex; align-items: flex-start; gap: 8px; }
.passos .falha .falha-txt .ic { flex: none; margin-top: 2px; }
.passos .falha.leve .falha-txt .ic { color: var(--color-faint); }
.passos .falha .falha-tec { font-size: 11px; color: var(--color-faint); }
.passos .falha .falha-tec summary { cursor: pointer; }
.passos .falha .falha-tec code { display: block; margin-top: 6px; white-space: pre-wrap; word-break: break-word; font: 400 11px var(--font-mono); }

/* ---------- uso do plano no topo: semana e Fable (29/11) ---------- */
.uso-plano { display: inline-flex; align-items: center; gap: 14px; height: 34px; padding: 0 14px; margin-right: 8px; border: 1px solid var(--color-line); border-radius: 999px; background: transparent; color: var(--color-muted); cursor: default; }
.up-item { display: inline-flex; align-items: center; gap: 7px; }
.up-rot { font: 500 9.5px var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-faint); }
.up-barra { width: 64px; height: 5px; border-radius: 99px; background: var(--color-line-strong); overflow: hidden; }
.up-barra i { display: block; height: 100%; border-radius: 99px; background: #6fd3a0; transition: width 0.5s var(--ease); }
.up-item.alto .up-barra i { background: #e8b04f; }
.up-item.critico .up-barra i { background: #d97757; }
.up-pct { min-width: 30px; font: 500 11px var(--font-mono); color: var(--color-ink); font-variant-numeric: tabular-nums; }
.up-item.critico .up-pct { color: #e8875f; }
.up-item.sem .up-pct { color: var(--color-faint); }
@media (max-width: 1100px) { .up-barra { width: 40px; } .uso-plano { gap: 10px; padding: 0 10px; } }
/* Orange Magic sempre por baixo: números, pílulas e selos ficam por cima do anel (29/11) */
.botao-cerebro.girando::after { z-index: 0; }
.botao-cerebro > *, .botao-cerebro .contador, .botao-cerebro .n, #contMissoes { position: relative; z-index: 2; }
.vs-ag .lm-rosto.vivo::after, .lm-rosto.vivo::after, .sis-av.vivo::after { z-index: 0; }
.vs-ag .lm-rosto, .lm-rosto { isolation: isolate; }
.vs-ag .vs-pilula { z-index: 5; }
.ag-fun, .mf-rostos .lm-rosto + .lm-rosto { position: relative; z-index: 2; }
.botao-cerebro .skw-badge, #contMissoes { position: absolute !important; z-index: 2; }
.botao-cerebro .cerebro-wire { position: relative; z-index: 1; }
.up-renova { font: 500 10.5px var(--font-mono); letter-spacing: 0.04em; color: var(--color-muted); white-space: nowrap; }
.up-item.critico ~ .up-renova { color: var(--color-ink); }

/* ---------- mover seção / card entre projetos (HUB-1) ---------- */
.secao-linha[draggable="true"] { cursor: grab; }
.secao-linha.alvo-mover, .projeto.alvo-mover > .projeto-linha { border-radius: 8px; background: rgb(var(--accent-rgb) / 0.1); box-shadow: inset 0 0 0 1px var(--color-accent); }
body.arrastando-secao .projeto:not(.ativo) > .projeto-linha, body.arrastando-card .secao-linha { transition: background 0.15s; }
.dc-mover .ic { margin-right: 4px; }
.dialogo-mover { width: min(480px, 94vw); }
.dm-form { display: flex; flex-direction: column; gap: 12px; }
.dm-cab { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.dm-cab b { font-weight: 500; }
.dm-fechar { margin-left: auto; }
.dm-de { margin: 0; font-size: 13px; color: var(--color-muted); }
.dm-de b { font-weight: 500; color: var(--color-ink); }
.dm-campo { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--color-muted); }
.dm-campo .os-sel-btn { min-height: 38px; font-size: 13.5px; }
.dm-previa { min-height: 48px; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; line-height: 1.5; color: var(--color-ink);
  background: color-mix(in srgb, var(--color-ground-2) 55%, transparent); }
.dm-previa p { margin: 0; }
.dm-previa ul { margin: 6px 0 0; padding-left: 18px; }
.dm-previa.carregando { color: var(--color-muted); }
.dm-previa.ok { border-left: 3px solid #1fc7c1; }
.dm-previa.bloq { border-left: 3px solid #ff7a6b; background: rgb(255 122 107 / 0.08); }
.dm-pe { display: flex; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid var(--color-line-soft); }
.dm-pe span { flex: 1; }
.toast.com-acao { max-width: min(520px, 92vw); }
.toast-acao { flex: none; padding: 5px 10px; border: 1px solid rgb(240 236 228 / 0.3); border-radius: 8px; background: transparent; color: #f0ece4; font: inherit; font-weight: 500; cursor: pointer; }
.toast-acao:hover { background: rgb(240 236 228 / 0.1); }

/* tema claro: o "trabalhando" precisa aparecer de longe (anel mais grosso, laranja forte e brilho) (29/11) */
:root:not([data-theme="dark"]) .lm-rosto.vivo::after, :root:not([data-theme="dark"]) .sis-av.vivo::after, :root:not([data-theme="dark"]) .ag-tile.trabalhando .ag-av::after {
  padding: 3px !important; inset: -4px !important;
  background: conic-gradient(from var(--om-giro), rgb(193 95 60 / 0.35) 0deg, rgb(193 95 60 / 0.35) 110deg, #e0703f 250deg, #c1440e 320deg, #ff9a5c 356deg, rgb(193 95 60 / 0.35) 360deg) !important;
  filter: drop-shadow(0 0 4px rgb(224 112 63 / 0.7)) !important;
}
:root:not([data-theme="dark"]) .vs-ag.trabalhando .ag-av { box-shadow: 0 0 0 2px rgb(224 112 63 / 0.55), 0 6px 18px -4px rgb(224 112 63 / 0.55) !important; }
:root:not([data-theme="dark"]) .vs-ag.trabalhando .vs-pilula { background: #c1440e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .vs-ag.trabalhando .ag-av { box-shadow: none !important; } }

/* reordenar arrastando: uma linha laranja mostra onde vai cair (29/11) */
.poe-antes { box-shadow: inset 0 3px 0 -1px #d97757 !important; }
.poe-depois { box-shadow: inset 0 -3px 0 -1px #d97757 !important; }
.projetos .projeto-linha[draggable="true"], .secao-linha[draggable="true"] { cursor: grab; }
.projeto.arrastando { opacity: 0.45; }

/* linha da seção: respiro, pílula com palavra e menu dentro da linha (29/11) */
.projetos .secoes .secao-linha { gap: 4px; margin: 2px 0; }
.projetos .secoes .secao { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 8px 10px 8px 14px !important; border-left: 2px solid transparent; border-radius: 0 var(--r3) var(--r3) 0 !important; }
.projetos .secoes .secao.ativa { border-left-color: var(--color-accent); }
.projetos .secoes .secao .secao-nome { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.projetos .secoes .secao .cards { flex: none; gap: 6px; }
.projetos .secoes .secao .cards i { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font: 500 10px var(--font-mono); letter-spacing: 0.04em; font-style: normal; white-space: nowrap; }
.projetos .secoes .secao-linha > .k-icon, .projetos .secoes .secao-linha > button:not(.secao) { flex: none; width: 28px; height: 28px; margin-right: 2px; }

/* ---------- 29/11 · rostos em fila com respiro (nada de foto por cima de foto) ---------- */
.mf-rostos, .mi-rostos, .vp-sec-rostos { gap: 8px; align-items: center; padding: 4px; }
.mf-rostos .lm-rosto, .mi-rostos .lm-rosto, .vp-sec-rostos .lm-rosto,
.mf-rostos .lm-rosto:first-child, .mi-rostos .lm-rosto:first-child, .vp-sec-rostos .lm-rosto:first-child { margin-left: 0; box-shadow: none; }
.mf-rostos .lm-rosto.vivo, .mi-rostos .lm-rosto.vivo, .vp-sec-rostos .lm-rosto.vivo { transform: none; margin: 0 2px; }
.missao-faixa .mf-ver { margin-left: 4px; }

/* ---------- 29/11 · seção vazia: a conversa está no projeto ---------- */
.conversa-no-projeto { display: flex; align-items: center; gap: 12px; margin: 12px; padding: 14px 16px; border-radius: var(--r2, 12px);
  background: var(--color-surface); border: 1px solid var(--color-line-soft); animation: surgir 0.35s var(--ease) both; }
.cnp-ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r3, 8px); color: var(--color-accent); background: rgb(var(--ink-rgb) / 0.05); }
.cnp-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; font-size: 13px; line-height: 1.45; color: var(--color-muted); }
.cnp-txt b { font-weight: 500; color: var(--color-ink); }
.conversa-no-projeto .k-btn { flex: none; }
@container conversa (max-width: 520px) { .conversa-no-projeto { flex-wrap: wrap; } }

/* ---------- 29/11 · responder as perguntas com um clique ---------- */
.resp-rapida { margin-top: 14px; padding: 14px; border-radius: var(--r2, 12px); background: var(--color-surface); border: 1px solid var(--color-line-soft);
  display: flex; flex-direction: column; gap: 12px; animation: surgir 0.35s var(--ease) both; transition: opacity 0.25s, transform 0.25s; }
.resp-rapida.saindo { opacity: 0; transform: translateY(4px); }
.rr-cab { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--color-faint); }
.rr-cab b { font-weight: 500; font-size: 13px; color: var(--color-ink); }
.rr-cab .ic { color: var(--color-accent); }
.rr-q { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: var(--r3, 8px); background: rgb(var(--ink-rgb) / 0.03); border: 1px solid transparent; transition: border-color 0.2s; }
.rr-q.respondida { border-color: rgb(var(--accent-rgb) / 0.35); }
.rr-pergunta { font-size: 13.5px; line-height: 1.5; color: var(--color-ink); }
.rr-ops { display: flex; flex-wrap: wrap; gap: 6px; }
.rr-op { display: inline-flex; align-items: flex-start; gap: 7px; max-width: 100%; padding: 7px 12px; border-radius: 999px; text-align: left;
  font-size: 12.5px; line-height: 1.4; color: var(--color-muted); background: var(--color-surface); border: 1px solid var(--color-line); transition: background 0.15s, border-color 0.15s, color 0.15s; }
.rr-op:hover { border-color: rgb(var(--accent-rgb) / 0.5); color: var(--color-ink); }
.rr-op.escolhida { color: var(--color-ink); border-color: var(--color-accent); background: rgb(var(--accent-rgb) / 0.12); }
.rr-n { flex: none; display: grid; place-items: center; min-width: 18px; height: 18px; border-radius: 999px; font: 500 10px var(--font-mono); color: var(--color-muted); background: rgb(var(--ink-rgb) / 0.07); }
.rr-op.escolhida .rr-n { color: #fff; background: var(--color-accent); }
.rr-extra { width: 100%; padding: 7px 10px; border-radius: var(--r3, 8px); font: inherit; font-size: 12.5px; color: var(--color-ink); background: transparent; border: 1px dashed var(--color-line); }
.rr-extra:focus { outline: none; border-style: solid; border-color: rgb(var(--accent-rgb) / 0.5); }
.rr-pe { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rr-conta { font: 400 10.5px var(--font-mono); letter-spacing: 0.06em; color: var(--color-faint); }

/* ================= 29/11 · caixa única da squad: Vera, Oráculo e o time ================= */
.projetos > .caixa-squad { --respiro: 12px; margin: 0 0 8px !important; padding: var(--respiro) !important; display: flex; flex-direction: column; gap: 10px; }
.caixa-squad .squad-cab { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 2px; }
.caixa-squad .squad-rot { display: inline-flex; align-items: center; gap: 6px; font: 400 9.5px var(--font-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted); }
.caixa-squad .squad-rot .ic { color: var(--color-faint); }
.caixa-squad .squad-time { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px 4px 10px; border-radius: 999px; border: 1px solid var(--color-line);
  font: 400 9.5px var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-muted); background: transparent; }
.caixa-squad .squad-time:hover { color: var(--color-ink); border-color: var(--color-line-strong); }
.caixa-squad .squad-ocup { display: inline-flex; align-items: center; gap: 4px; color: #d97757; }
.caixa-squad .squad-pilha { display: flex; flex-direction: column; gap: 8px; }
.caixa-squad .squad-pilha .sistema-item { margin: 0 !important; border-radius: var(--r3) !important; }
.caixa-squad .vs-grade { margin-top: 2px; }
/* Oráculo: mesma faixa da Vera, com a arte dele */
.sistema-item.com-arte.faixa-oraculo, .sistema-item.com-arte.faixa-oraculo:hover, .sistema-item.com-arte.faixa-oraculo.ativo { background-image: url(avatares/hero-aula.jpg) !important; }

/* ================= 29/11 · "Abrir" na viewport ================= */
.msg.texto { position: relative; }
.msg-ler { float: right; display: inline-flex; align-items: center; gap: 5px; margin: 0 0 6px 12px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--color-line);
  font: 400 9.5px var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-faint); background: var(--color-surface);
  opacity: 0; transition: opacity 0.2s, color 0.15s, border-color 0.15s; }
.msg.texto:hover .msg-ler, .msg-ler.longa, .msg-ler:focus-visible { opacity: 1; }
.msg-ler:hover { color: var(--color-ink); border-color: var(--color-line-strong); }
.bloco-ler { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--color-line);
  font: 400 9.5px var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-faint); background: var(--color-surface); }
.bloco-ler:hover { color: var(--color-ink); border-color: var(--color-line-strong); }
.bloco-cab .bloco-card + .bloco-ler { margin-left: 8px; }
.arq-img { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; }
.arq-acoes .k-btn { display: inline-flex; align-items: center; gap: 6px; }
.texto-preview.leitura { padding: 0; }
.leitura-cab { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px;
  background: var(--color-surface); border-bottom: 1px solid var(--color-line-soft); }
.leitura-cab b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; font-size: 13px; color: var(--color-ink); }
.leitura-cab .k-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; }
.leitura-corpo { padding: 16px 20px 28px; font-size: 14px; line-height: 1.65; user-select: text; }

/* ================= 29/11 · "a squad aprendeu", mais fácil de ler ================= */
.bloco.b-aprendido.ap-novo { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-left-width: 1px; border-radius: var(--r2, 12px);
  border-color: var(--color-line); background: var(--color-surface); }
.ap-novo .ap-topo { display: flex; align-items: center; gap: 10px; }
.ap-novo .ap-ic { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--r3, 8px); color: #d97757; background: rgb(217 119 87 / 0.1); }
.ap-novo .ap-tit { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ap-novo .ap-eyebrow { font: 400 9px var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; color: #d97757; }
.ap-novo .ap-tit b { font-weight: 500; font-size: 14.5px; color: var(--color-ink); }
.ap-novo .ap-desc { font-size: 13.5px; line-height: 1.55; color: var(--color-muted); }
.ap-novo .ap-desc p { margin: 0; }
.ap-novo .ap-rodape { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding-top: 10px; border-top: 1px dashed var(--color-line-soft); }
.ap-novo .ap-rot { display: inline-flex; align-items: center; gap: 4px; font: 400 9px var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-faint); }
.ap-novo .ap-pilula { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 2px; border-radius: 999px; background: rgb(var(--ink-rgb) / 0.05); border: 1px solid var(--color-line-soft); }
.ap-novo .ap-pilula i { font-style: normal; font-size: 12.5px; color: var(--color-ink); }
.ap-novo .ap-ninguem { font-size: 12px; color: var(--color-faint); }
.ap-novo .ap-sabem { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--color-faint); }
.caixa-squad .squad-time { white-space: nowrap; flex: none; }
.bloco-ler, .msg-ler { flex: none; white-space: nowrap; }
@container conversa (max-width: 520px) { .bloco-ler span, .msg-ler span { display: none; } .bloco-ler, .msg-ler { padding: 4px 6px; } }

/* ================= 29/11 · miniaturas pequenas no chat (a grande abre na viewport) ================= */
.arq-item img { max-width: 160px; max-height: 120px; object-fit: cover; }
.arq-item video { max-width: 260px; max-height: 160px; }
.arq-img img { transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.arq-img:hover img { transform: translateY(-1px); box-shadow: 0 6px 18px rgb(0 0 0 / 0.18); }
.md li > ul { margin: 4px 0 2px; }

/* ================= 29/11 · editor de imagem da viewport ================= */
.ei { flex: 1; min-width: 0; display: flex; flex-direction: column; outline: none; background: var(--color-ground-2); }
.ei-barra { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--color-line-soft); background: var(--color-surface); }
.ei-grupo { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border-radius: 10px; border: 1px solid var(--color-line-soft); background: rgb(var(--ink-rgb) / 0.03); }
.ei-grupo[hidden] { display: none; }
.ei-direita { margin-left: auto; }
.ei-corte-acoes { margin-left: 0; flex: 1; border: 0; background: none; gap: 8px; }
.ei-dica { flex: 1; font-size: 12px; color: var(--color-muted); }
.ei-b, .ei-zoom { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px; border-radius: 8px; border: 0; background: transparent;
  font: 400 9.5px var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-muted); cursor: pointer; }
.ei-zoom { min-width: 52px; justify-content: center; font-size: 10.5px; letter-spacing: 0.04em; }
.ei-b:hover, .ei-zoom:hover { color: var(--color-ink); background: rgb(var(--ink-rgb) / 0.06); }
.ei-b.ativo { color: var(--color-ink); background: rgb(var(--ink-rgb) / 0.1); }
.ei-b:disabled { opacity: 0.5; cursor: default; }
.ei-salvar { color: var(--color-ink); border: 1px solid var(--color-line-strong); background: var(--color-surface); }
.ei-palco { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: none;
  background-color: var(--color-ground-2); background-image: radial-gradient(rgb(var(--ink-rgb) / 0.06) 1px, transparent 1px); background-size: 18px 18px; }
.ei-palco.arrastavel { cursor: grab; } .ei-palco.arrastando { cursor: grabbing; }
.ei.cortando .ei-palco { cursor: crosshair; }
.ei-tela { display: block; flex: none; border-radius: 6px; box-shadow: 0 10px 34px rgb(0 0 0 / 0.22); user-select: none; }
.ei-marca { position: absolute; pointer-events: none; border: 1.5px solid #fff; border-radius: 2px; box-shadow: 0 0 0 9999px rgb(0 0 0 / 0.5); }
.ei-marca::after { content: attr(data-tam); position: absolute; left: 0; top: calc(100% + 6px); padding: 2px 6px; border-radius: 6px; font: 400 10px var(--font-mono); color: #fff; background: rgb(0 0 0 / 0.6); white-space: nowrap; }
.ei-carregando { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 2px solid rgb(217 119 87 / 0.25); border-top-color: #d97757; animation: girar 0.9s linear infinite; }
.ei-ajustes { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); align-items: center; gap: 10px 18px; padding: 12px 16px; border-top: 1px solid var(--color-line-soft); background: var(--color-surface); }
.ei-ajustes[hidden] { display: none; }
.ei-aj { display: grid; grid-template-columns: 72px 1fr 34px; align-items: center; gap: 8px; font-size: 12px; color: var(--color-muted); }
.ei-aj input { width: 100%; accent-color: #d97757; }
.ei-aj output { font: 400 10.5px var(--font-mono); text-align: right; color: var(--color-faint); }
.ei-ajustes > .ei-b { justify-self: end; }
@keyframes girar { to { transform: rotate(360deg); } }

/* 29/11 · leitura de livro: o "seguir lendo" automático é só uma linha discreta */
.fim.leitura-segue span { color: #d97757; border-color: rgb(217 119 87 / 0.3); }
.fim.herdada span { color: var(--color-muted); }

/* 29/11 · faixa da missão: a fala do agente ao vivo e há quanto tempo ele está nisso */
.mf-agora > b { flex: none; }
.mf-fala { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: italic; color: var(--color-muted); }
.mf-tempo { flex: none; margin-left: 4px; font: 400 10px var(--font-mono); color: var(--color-faint); }

/* ================= 29/11 · bastidores ao vivo: o agente da missão fala na conversa ================= */
.bastidor-cab b { font-weight: 500; }
.bastidor-missao { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 999px; font: 400 9.5px var(--font-mono); letter-spacing: 0.08em; color: #d97757; background: rgb(217 119 87 / 0.1); }
.msg.texto.bastidor { font-size: 13.5px; color: var(--color-muted); }
.msg.texto.bastidor strong, .msg.texto.bastidor b { color: var(--color-ink); }

/* 29/11 · bastidores: cartões entre agentes discretos (sem vermelho, recolhidos) */
.msg.bastidor .bloco { border-left-width: 1px !important; border-color: var(--color-line) !important; background: transparent !important; padding: 8px 12px !important; }
.msg.bastidor .bloco .bloco-ic { color: var(--color-faint) !important; background: rgb(var(--ink-rgb) / 0.05) !important; }
.msg.bastidor .bloco .bloco-cab b { color: var(--color-faint) !important; }
.msg.bastidor .bloco details > summary { cursor: pointer; font-size: 12.5px; color: var(--color-muted); list-style: none; }
.msg.bastidor .bloco details > summary::-webkit-details-marker { display: none; }
.msg.bastidor .bloco details[open] > summary { margin-bottom: 6px; }

/* 29/11 · revisão: cancelar, e etapas ligadas (mesma missão) agindo juntas */
.ck-acoes { flex-wrap: wrap; }
.ck-acoes .ck-cancelar { flex: 0 0 auto; color: var(--color-muted); }
.ck-acoes .ck-cancelar:hover { color: var(--color-alert-fg, #c2410c); }
.ck-grupo { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: var(--r2, 12px); border: 1px solid var(--color-line); background: var(--color-surface); }
.ckg-tit { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12.5px; color: var(--color-muted); }
.ckg-tit b { flex: none; font: 500 10.5px var(--font-mono); color: #d97757; }
.ckg-tit span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--color-ink); }
.ckg-dica { margin: 0; font-size: 11.5px; color: var(--color-faint); }
.card-k.ck-ligado { margin-left: 12px; border-left: 2px solid rgb(217 119 87 / 0.35); }

/* ================= 29/11 · ícones sem a cor do agente (pedido do Filipe) =================
   Turquesa e o laranja Claude continuam; só o colorido de cada agente (azul, roxo, verde…) vira neutro. */
.ag-card-papel, .ag-tile.ativa .ag-nome { color: var(--color-muted) !important; }
.ag-card-papel .ic, .quem-atual .quem-papel .ic, .ctx-geral .ic, .cartao-agente .ca-skills span .ic, .ca-papel .ic { color: var(--color-muted) !important; }
.ag-fun, .ag-tile.ativa .ag-fun, .ag-card .ag-fun { color: var(--color-muted) !important; box-shadow: 0 0 0 1px var(--color-line-strong) !important; }
.ctx-aula, .tag.aula-tag { color: var(--color-muted) !important; background: rgb(var(--ink-rgb) / 0.06) !important; }

/* 29/11 · leitura na viewport: folha centralizada; texto curto em destaque no meio */
.texto-preview.leitura { flex: 1; display: flex; justify-content: center; align-items: flex-start; padding: 28px 24px 40px !important; overflow: auto; background: var(--color-ground-2); }
.leitura-folha { width: 100%; max-width: 720px; border-radius: var(--r1, 18px); border: 1px solid var(--color-line); background: var(--color-surface); box-shadow: 0 12px 40px rgb(0 0 0 / 0.08); overflow: hidden; }
.leitura-folha .leitura-cab { position: sticky; top: 0; border-radius: 0; }
.leitura-folha .leitura-corpo { padding: 20px 24px 26px; }
.texto-preview.leitura.curta { align-items: center; }
.texto-preview.leitura.curta .leitura-folha { max-width: 560px; }
.texto-preview.leitura.curta .leitura-corpo { font-size: 16px; line-height: 1.7; padding: 26px 28px 30px; }
.texto-preview.leitura.curta .leitura-corpo p { margin: 0 0 10px; }

/* 29/11 · a caixa "Eventos ao vivo" sai da tela (pedido do Filipe) */
#log { display: none !important; }
/* boletim na viewport do Oráculo */
.vp-bol-acoes { margin-top: 10px; }
.vp-boletim { font-size: 13.5px; line-height: 1.6; }
.vp-boletim h3, .vp-boletim .md-t { margin: 18px 0 6px; }
.vp-boletim ul { margin: 0 0 8px; padding-left: 18px; }
#botaoSponge { display: none !important; } /* 29/11 · Sponge fora da barra (pedido do Filipe) */

/* 29/11 · modo escuro: cards com contorno de 15% (pedido do Filipe) */
:root[data-theme="dark"] :is(.vitrine-squad, .projetos > .projeto.ativo, .projetos > .projeto.aberto) { box-shadow: inset 0 0 0 1px rgb(240 236 228 / 0.15) !important; }
:root[data-theme="dark"] :is(.sistema-item.com-arte, .sistema-item.com-arte.ativo, .card-k, .ck-grupo, .missao-faixa, .leitura-folha, .resp-rapida, .bloco, .cartao, .arq-item, .vp-bloco, .vp-recolhido > summary, .vp-recolhido-linha) { border-color: rgb(240 236 228 / 0.15) !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) :is(.vitrine-squad, .projetos > .projeto.ativo, .projetos > .projeto.aberto) { box-shadow: inset 0 0 0 1px rgb(240 236 228 / 0.15) !important; }
  :root:not([data-theme="light"]) :is(.sistema-item.com-arte, .sistema-item.com-arte.ativo, .card-k, .ck-grupo, .missao-faixa, .leitura-folha, .resp-rapida, .bloco, .cartao, .arq-item, .vp-bloco, .vp-recolhido > summary, .vp-recolhido-linha) { border-color: rgb(240 236 228 / 0.15) !important; }
}
/* 29/11 · faixas da Vera e do Oráculo: o contorno fica por fora (a foto não cobre mais a borda) */
:root[data-theme="dark"] :is(.sistema-item.com-arte, .sistema-item.com-arte.ativo, .sistema-item.com-arte:hover) { border-color: transparent !important; box-shadow: 0 0 0 1px rgb(240 236 228 / 0.15), 0 10px 28px rgb(0 0 0 / 0.35) !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :is(.sistema-item.com-arte, .sistema-item.com-arte.ativo, .sistema-item.com-arte:hover) { border-color: transparent !important; box-shadow: 0 0 0 1px rgb(240 236 228 / 0.15), 0 10px 28px rgb(0 0 0 / 0.35) !important; } }
/* 29/11 · caixa da squad com mais respiro: margens maiores e faixas um pouco menores */
.projetos > .caixa-squad { --respiro: 18px; padding: 16px 18px 18px !important; gap: 12px; }
.caixa-squad .squad-pilha { gap: 10px; }
.caixa-squad .squad-pilha .sistema-item.com-arte.faixa-curta { height: 52px !important; }
.caixa-squad .squad-pilha .sistema-item.com-arte.faixa-curta .sis-txt b { font-size: 16px; }
/* 29/11 · fotos dos agentes: um pouco menores, mais respiro entre elas e contorno de 15% por fora no escuro */
.caixa-squad .vs-grade { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 14px; padding: 2px; }
:root[data-theme="dark"] .vs-ag .ag-av { box-shadow: 0 0 0 1px rgb(240 236 228 / 0.15) !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .vs-ag .ag-av { box-shadow: 0 0 0 1px rgb(240 236 228 / 0.15) !important; } }
/* 29/11 · caixa da squad: um respiro só (14px) em tudo: borda, entre faixas, entre fotos e entre blocos */
.projetos > .caixa-squad { --m: 14px; padding: var(--m) !important; gap: var(--m) !important; }
.caixa-squad .squad-pilha { gap: var(--m) !important; }
.caixa-squad .vs-grade { gap: var(--m) !important; margin: 0 !important; padding: 0 !important; }
.caixa-squad .squad-cab { padding: 0 !important; }

/* ================= 29/11 · projetos no mesmo padrão das faixas da Vera e do Oráculo =================
   Cada projeto é um card de 52px com o mesmo raio e contorno; aberto, vira uma caixa com respiro único de 14px. */
.projetos > .projeto { --m: 14px; margin: 0 0 10px !important; padding: 0 !important; border-radius: var(--r2) !important; background: transparent !important; box-shadow: none !important; }
.projetos > .projeto > .projeto-linha { height: 52px; padding: 0 8px 0 4px; border-radius: var(--r3) !important; background: var(--color-surface); box-shadow: 0 0 0 1px var(--color-line); transition: box-shadow 0.2s var(--ease), background 0.2s var(--ease); }
.projetos > .projeto > .projeto-linha:hover { box-shadow: 0 0 0 1px var(--color-line-strong); }
.projetos > .projeto > .projeto-linha .projeto-nome { height: 100%; }
:root[data-theme="dark"] .projetos > .projeto > .projeto-linha { background: #1d1f23; box-shadow: 0 0 0 1px rgb(240 236 228 / 0.15), 0 10px 28px rgb(0 0 0 / 0.3); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .projetos > .projeto > .projeto-linha { background: #1d1f23; box-shadow: 0 0 0 1px rgb(240 236 228 / 0.15), 0 10px 28px rgb(0 0 0 / 0.3); } }
/* aberto: caixa em volta, 14px em tudo */
.projetos > .projeto.aberto { padding: var(--m) !important; display: flex; flex-direction: column; gap: var(--m); background: rgb(var(--ink-rgb) / 0.03) !important; box-shadow: inset 0 0 0 1px var(--color-line) !important; }
:root[data-theme="dark"] .projetos > .projeto.aberto { background: var(--color-ground-2) !important; box-shadow: inset 0 0 0 1px rgb(240 236 228 / 0.15) !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .projetos > .projeto.aberto { background: var(--color-ground-2) !important; box-shadow: inset 0 0 0 1px rgb(240 236 228 / 0.15) !important; } }
.projetos > .projeto.aberto > .secoes { margin: 0 !important; padding: 0 0 0 4px !important; }
.projetos > .projeto { margin: 0 0 14px !important; } /* mesmo respiro da caixa da squad */
/* 29/11 · hero da Vera/Oráculo: a borda que só aparecia na esquerda vale para a caixa toda (contorno por fora, 15% no escuro) */
.hero-aula::before { display: none !important; }
.hero-aula, .hero-aula.com-arte { border-color: transparent !important; box-shadow: 0 0 0 1px var(--color-line-strong), 0 10px 28px rgb(0 0 0 / 0.12) !important; }
:root[data-theme="dark"] :is(.hero-aula, .hero-aula.com-arte) { box-shadow: 0 0 0 1px rgb(240 236 228 / 0.15), 0 10px 28px rgb(0 0 0 / 0.35) !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :is(.hero-aula, .hero-aula.com-arte) { box-shadow: 0 0 0 1px rgb(240 236 228 / 0.15), 0 10px 28px rgb(0 0 0 / 0.35) !important; } }
.caixa-squad .vs-grade { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } /* grade fixa 3x3 (pedido do Filipe, 29/11) */

/* 29/11 · seções no mesmo padrão: cards com o mesmo raio e contorno, respiro de 14px */
.projetos > .projeto.aberto > .secoes { display: flex !important; flex-direction: column; gap: 14px; border-left: 0 !important; padding: 0 !important; }
.projeto.aberto .secoes > .secao-linha { margin: 0 !important; height: 44px; align-items: center; border-radius: var(--r3); background: var(--color-surface); box-shadow: 0 0 0 1px var(--color-line); padding-right: 6px; }
.projeto.aberto .secoes > .secao-linha > .secao { height: 100%; border-radius: var(--r3) !important; border-left: 0 !important; padding: 0 10px 0 14px !important; }
.projeto.aberto .secoes > .secao-linha:has(.secao.ativa) { box-shadow: 0 0 0 1px rgb(var(--accent-rgb) / 0.55); }
.projeto.aberto .secoes > .linha-nova { margin: 0 !important; }
:root[data-theme="dark"] .projeto.aberto .secoes > .secao-linha { background: #1d1f23; box-shadow: 0 0 0 1px rgb(240 236 228 / 0.15); }
:root[data-theme="dark"] .projeto.aberto .secoes > .secao-linha:has(.secao.ativa) { box-shadow: 0 0 0 1px rgb(var(--accent-rgb) / 0.55); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .projeto.aberto .secoes > .secao-linha { background: #1d1f23; box-shadow: 0 0 0 1px rgb(240 236 228 / 0.15); }
  :root:not([data-theme="light"]) .projeto.aberto .secoes > .secao-linha:has(.secao.ativa) { box-shadow: 0 0 0 1px rgb(var(--accent-rgb) / 0.55); }
}

/* 29/11 · faixas da Vera e do Oráculo 30% mais altas (52 → 68px), foto no mesmo enquadramento */
.caixa-squad .squad-pilha .sistema-item.com-arte.faixa-curta { height: 68px !important; }
.caixa-squad .squad-pilha .sistema-item.com-arte.faixa-curta .sis-txt b { font-size: 18px; }
/* 29/11 · hero da Vera/Oráculo: a borda dourada (degradê laranja) em volta do card todo, no lugar do contorno simples */
.hero-aula::before {
  display: block !important; content: "" !important; position: absolute; inset: 0 !important; width: auto !important; z-index: 2; pointer-events: none;
  padding: 2px; border-radius: inherit;
  background: linear-gradient(135deg, #e8a87c, #d97757 35%, rgb(217 119 87 / 0.25) 70%, #d97757) !important;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.hero-aula, .hero-aula.com-arte { box-shadow: 0 10px 28px rgb(0 0 0 / 0.18) !important; }
:root[data-theme="dark"] :is(.hero-aula, .hero-aula.com-arte) { box-shadow: 0 10px 28px rgb(0 0 0 / 0.35) !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :is(.hero-aula, .hero-aula.com-arte) { box-shadow: 0 10px 28px rgb(0 0 0 / 0.35) !important; } }
/* 29/11 · borda dourada por fora da caixa, sempre girando (mesmo giro do "orange magic") */
.hero-aula.com-arte { overflow: visible !important; }
.hero-aula.com-arte::before {
  inset: -4px !important; padding: 2px !important; border-radius: 18px !important; z-index: 0 !important;
  --om-giro: 0deg;
  background: conic-gradient(from var(--om-giro), rgb(217 119 87 / 0.25), #d97757 25%, #ffd9c2 40%, #d97757 55%, rgb(217 119 87 / 0.25) 80%, rgb(217 119 87 / 0.25)) !important;
  animation: orange-magic 5s linear infinite;
  filter: drop-shadow(0 0 4px rgb(217 119 87 / 0.35));
}
@media (prefers-reduced-motion: reduce) { .hero-aula.com-arte::before { animation: none; } }
/* 29/11 · hero: moldura por fora com a borda dourada girando; a caixa corta a foto nos cantos; margem de 14px igual */
.hero-moldura { position: relative; flex: none; margin: 14px; padding: 2px; border-radius: 18px; --om-giro: 0deg;
  background: conic-gradient(from var(--om-giro), rgb(217 119 87 / 0.25), #d97757 25%, #ffd9c2 40%, #d97757 55%, rgb(217 119 87 / 0.25) 80%, rgb(217 119 87 / 0.25));
  animation: orange-magic 5s linear infinite; box-shadow: 0 0 10px rgb(217 119 87 / 0.18), 0 10px 28px rgb(0 0 0 / 0.3); }
.hero-moldura:not(.com-arte) { background: var(--color-line); animation: none; }
.hero-moldura > .hero-aula { margin: 0 !important; border: 0 !important; border-radius: 16px !important; overflow: hidden !important; box-shadow: none !important; }
.hero-moldura > .hero-aula::before { display: none !important; }
@media (prefers-reduced-motion: reduce) { .hero-moldura { animation: none; } }
/* 29/11 · embaixo do banner da Vera/Oráculo a conversa some suave na margem, sem corte seco */
.hero-moldura + #mensagens, .hero-moldura + .mensagens { margin-top: -14px; padding-top: 14px; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22px); mask-image: linear-gradient(to bottom, transparent 0, #000 22px); }
/* 29/11 · "Time · 9" vira o rótulo da grade: linha inteira clicável, logo acima das fotos */
.caixa-squad .vs-time-linha { display: flex; margin-bottom: calc(var(--m, 14px) * -0.4); }
.caixa-squad .vs-time-linha .squad-time { flex: 1; justify-content: space-between; padding: 6px 4px 6px 2px; border: 0 !important; border-radius: 8px; background: transparent; }
.caixa-squad .vs-time-linha .squad-time:hover { background: rgb(var(--ink-rgb) / 0.05); }
.caixa-squad .vs-time-linha .squad-time > span:first-child { letter-spacing: 0.2em; color: var(--color-muted); }
.caixa-squad.curta .vs-time-linha { margin-bottom: 0; }
/* 29/11 · barra de rolagem da lateral fina e dentro da margem: o conteúdo não é mais empurrado (12px dos dois lados) */
.projetos { scrollbar-gutter: stable; padding-right: 6px !important; padding-left: 12px !important; }
.projetos::-webkit-scrollbar { width: 6px; }
.projetos::-webkit-scrollbar-track { background: transparent; }
.projetos::-webkit-scrollbar-thumb { border-radius: 6px; background: rgb(var(--ink-rgb) / 0.14); }
.projetos::-webkit-scrollbar-thumb:hover { background: rgb(var(--ink-rgb) / 0.28); }

/* ================= 29/11 · caixa de conversa moderna: texto em cima, barra de seletores embaixo ================= */
.campo-conversa.moderno { flex-direction: column !important; align-items: stretch !important; gap: 6px; padding: 12px 12px 10px 14px !important; border: 1px solid var(--color-line) !important; border-radius: var(--r2, 14px) !important; background: rgb(var(--ink-rgb) / 0.03) !important; box-shadow: none !important; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.campo-conversa.moderno:focus-within { border-color: rgb(var(--accent-rgb) / 0.55) !important; box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / 0.12) !important; }
.campo-conversa.moderno .campo-texto { padding: 2px 0 6px !important; min-height: 44px; }
.barra-campo { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.barra-sel { display: flex; align-items: center; gap: 6px; min-width: 0; flex-wrap: wrap; }
.ajustes.escondido { display: none !important; }
.sel-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--color-line); background: var(--color-surface);
  font-size: 12.5px; color: var(--color-muted); cursor: pointer; transition: border-color 0.15s, color 0.15s, background 0.15s; }
.sel-chip b { font-weight: 500; color: var(--color-ink); }
.sel-chip:hover, .sel-chip[aria-expanded="true"] { border-color: var(--color-line-strong); color: var(--color-ink); }
.sel-chip > .ic:last-child { opacity: 0.6; }
.sel-chip.sel-voz.on { border-color: rgb(var(--accent-rgb) / 0.6); background: rgb(var(--accent-rgb) / 0.12); color: var(--color-ink); }
.sel-barras { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.sel-barras i { width: 3px; border-radius: 1px; background: rgb(var(--ink-rgb) / 0.18); }
.sel-barras i:nth-child(1) { height: 4px; } .sel-barras i:nth-child(2) { height: 6px; } .sel-barras i:nth-child(3) { height: 8px; } .sel-barras i:nth-child(4) { height: 10px; } .sel-barras i:nth-child(5) { height: 12px; }
.sel-barras i.on { background: var(--color-accent); }
.barra-campo .campo-botoes { gap: 4px; }
.barra-campo .ib.enviar { width: 34px; height: 34px; border-radius: 999px; background: var(--color-ink) !important; color: var(--color-surface) !important; }
.barra-campo .ib.enviar .ic { color: var(--color-surface) !important; }
.barra-campo .ib.enviar:disabled { background: rgb(var(--ink-rgb) / 0.12) !important; }
/* a lista vertical */
.sel-pop { position: fixed; z-index: 3000; min-width: 250px; padding: 6px; border-radius: var(--r2, 14px); border: 1px solid var(--color-line); background: var(--color-surface);
  box-shadow: 0 18px 50px rgb(0 0 0 / 0.28); animation: surgir 0.16s var(--ease) both; }
.sel-pop-tit { padding: 6px 10px 8px; font: 400 9.5px var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-faint); }
.sel-op { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border-radius: 10px; border: 0; background: transparent; text-align: left; color: var(--color-ink); cursor: pointer; }
.sel-op:hover, .sel-op:focus-visible { background: rgb(var(--ink-rgb) / 0.06); outline: none; }
.sel-op.ativo { background: rgb(var(--accent-rgb) / 0.1); }
.sel-op .ic { margin-left: auto; color: var(--color-accent); }
.sel-op-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sel-op-txt b { font-weight: 500; font-size: 13.5px; }
.sel-op-txt span { font-size: 11.5px; color: var(--color-faint); }
.sel-ponto { flex: none; width: 8px; height: 8px; border-radius: 999px; background: rgb(var(--ink-rgb) / 0.2); }
.sel-op.ativo .sel-ponto { background: var(--color-accent); }
:root[data-theme="dark"] .sel-pop, :root[data-theme="dark"] .sel-chip { border-color: rgb(240 236 228 / 0.15); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sel-pop, :root:not([data-theme="light"]) .sel-chip { border-color: rgb(240 236 228 / 0.15); } }
/* ajustes finos: lista sólida, banner opaco por dentro, "ver detalhes" separado */
.sel-pop { background: #fbfaf7 !important; animation: none !important; }
:root[data-theme="dark"] .sel-pop { background: #24272c !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sel-pop { background: #24272c !important; } }
.hero-moldura > .hero-aula { background-color: #18191c !important; }
.vp-recolhido > summary { display: flex !important; }

/* ================= 29/11 · a Atividade mora na viewport do Oráculo (sem gaveta, sem cérebro no topo) ================= */
#botaoVera, #gaveta { display: none !important; }
.vp-atividade { margin: 0 0 22px; }
.vp-atividade .painel-vera.na-viewport { position: static !important; display: block !important; height: auto !important; max-height: none !important; overflow: visible !important; padding: 0 !important; inset: auto !important; }
.vp-cab-boletim { margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--color-line-soft); }
.vp-cab .vp-sub { margin: 4px 0 4px; font: 400 20px/1.2 var(--font-serif, 'Newsreader', serif); color: var(--color-ink); }

/* ================= 29/11 · caixa de conversa: mesma margem entre as duas camadas e raios concêntricos =================
   camada de dentro: raio 16; margem 12; camada de fora: 16 + 12 = 28 */
.caixa.compositor.cartao { padding: 12px !important; gap: 8px !important; border-radius: 28px !important; }
.caixa.compositor .campo-conversa.moderno { border-radius: 16px !important; margin: 0 !important; }
.caixa.compositor .caixa-rodape:not(:has(span:not(:empty))) { display: none !important; }
.caixa.compositor .caixa-rodape { padding: 0 6px !important; }

/* ================= 29/11 · Visão do sistema: status em linhas limpas ================= */
#visaoProjeto .vp-recolhido, #visaoProjeto .vp-recolhido-linha { margin: 0 0 10px !important; }
#visaoProjeto .vp-recolhido > summary, #visaoProjeto .vp-recolhido-linha {
  display: flex !important; align-items: center; gap: 10px; padding: 12px 14px !important; border-radius: var(--r2, 12px);
  border: 1px solid var(--color-line); background: rgb(var(--ink-rgb) / 0.03); font-size: 13px !important; line-height: 1.4; color: var(--color-ink) !important; list-style: none; }
#visaoProjeto .vp-recolhido > summary .ic, #visaoProjeto .vp-recolhido-linha .ic { flex: none; width: 15px; height: 15px; color: var(--color-accent); }
#visaoProjeto .vp-recolhido > summary span { margin-left: auto; flex: none; font: 400 9.5px var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-faint); }
#visaoProjeto .vp-recolhido > summary::-webkit-details-marker { display: none; }
#visaoProjeto .vp-recolhido > summary::marker { content: ""; }
#visaoProjeto .vp-recolhido[open] > summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; margin-bottom: 0; }
#visaoProjeto .vp-recolhido[open] > .vp-bloco { border-top-left-radius: 0 !important; border-top-right-radius: 0 !important; margin-top: -1px; }
:root[data-theme="dark"] #visaoProjeto :is(.vp-recolhido > summary, .vp-recolhido-linha) { border-color: rgb(240 236 228 / 0.15); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) #visaoProjeto :is(.vp-recolhido > summary, .vp-recolhido-linha) { border-color: rgb(240 236 228 / 0.15); } }

/* ================= 29/11 · Vera ou Oráculo ativo na lateral: a borda dourada girando, por fora da faixa ================= */
.caixa-squad .sistema-item.com-arte.ativo { overflow: visible !important; }
.caixa-squad .sistema-item.com-arte.ativo::after {
  content: ""; position: absolute; inset: -4px; z-index: 3; pointer-events: none; border-radius: calc(var(--r3, 10px) + 4px);
  padding: 2px; --om-giro: 0deg;
  background: conic-gradient(from var(--om-giro), rgb(217 119 87 / 0.25), #d97757 25%, #ffd9c2 40%, #d97757 55%, rgb(217 119 87 / 0.25) 80%, rgb(217 119 87 / 0.25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: orange-magic 5s linear infinite; filter: drop-shadow(0 0 4px rgb(217 119 87 / 0.3));
}
@media (prefers-reduced-motion: reduce) { .caixa-squad .sistema-item.com-arte.ativo::after { animation: none; } }

/* ================= 29/11 · modo claro: borda dourada firme (sem trechos brancos), sem vão e sombra leve ================= */
:root[data-theme="light"] .hero-moldura,
:root[data-theme="light"] .caixa-squad .sistema-item.com-arte.ativo::after {
  background: conic-gradient(from var(--om-giro), #e9b597, #d97757 25%, #b85c3c 40%, #d97757 55%, #e9b597 80%, #e9b597) !important;
}
:root[data-theme="light"] .hero-moldura { box-shadow: 0 6px 18px rgb(23 23 27 / 0.10) !important; }
:root[data-theme="light"] .caixa-squad .sistema-item.com-arte.ativo::after { inset: -2px !important; border-radius: calc(var(--r3, 10px) + 2px) !important; filter: none !important; }
:root[data-theme="light"] :is(.sistema-item.com-arte, .projetos > .projeto > .projeto-linha) { box-shadow: 0 0 0 1px rgb(23 23 27 / 0.10), 0 4px 12px rgb(23 23 27 / 0.06) !important; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .hero-moldura,
  :root:not([data-theme="dark"]) .caixa-squad .sistema-item.com-arte.ativo::after {
    background: conic-gradient(from var(--om-giro), #e9b597, #d97757 25%, #b85c3c 40%, #d97757 55%, #e9b597 80%, #e9b597) !important;
  }
  :root:not([data-theme="dark"]) .hero-moldura { box-shadow: 0 6px 18px rgb(23 23 27 / 0.10) !important; }
  :root:not([data-theme="dark"]) .caixa-squad .sistema-item.com-arte.ativo::after { inset: -2px !important; border-radius: calc(var(--r3, 10px) + 2px) !important; filter: none !important; }
  :root:not([data-theme="dark"]) :is(.sistema-item.com-arte, .projetos > .projeto > .projeto-linha) { box-shadow: 0 0 0 1px rgb(23 23 27 / 0.10), 0 4px 12px rgb(23 23 27 / 0.06) !important; }
}

/* ================= 29/11 · modo claro com imagens claras (avatares/*-claro.jpg): arte clara, véu claro, texto escuro ================= */
:root[data-theme="light"] .sistema-item.com-arte, :root[data-theme="light"] .sistema-item.com-arte:hover, :root[data-theme="light"] .sistema-item.com-arte.ativo { background-color: #f3f1ec !important; background-image: url(avatares/hero-vera-claro.jpg), url(avatares/hero-vera.jpg) !important; }
:root[data-theme="light"] .sistema-item.com-arte.faixa-oraculo, :root[data-theme="light"] .sistema-item.com-arte.faixa-oraculo:hover, :root[data-theme="light"] .sistema-item.com-arte.faixa-oraculo.ativo { background-image: url(avatares/hero-aula-claro.jpg), url(avatares/hero-aula.jpg) !important; }
:root[data-theme="light"] .sistema-item.com-arte.faixa-curta::before, :root[data-theme="light"] .sistema-item.com-arte::before { background: linear-gradient(90deg, transparent 18%, rgb(243 241 236 / 0.82) 44%, rgb(243 241 236 / 0.97) 70%) !important; }
:root[data-theme="light"] .sistema-item.com-arte .sis-txt b { color: #17171b !important; }
:root[data-theme="light"] .sistema-item.com-arte .sis-rot { color: #5f5b53 !important; }
:root[data-theme="light"] .sistema-item.com-arte > .ic { color: #8a867f !important; }
:root[data-theme="light"] .hero-moldura > .hero-aula { background-color: #f3f1ec !important; }
:root[data-theme="light"] .hero-aula.com-arte::after { background: linear-gradient(90deg, transparent 30%, rgb(243 241 236 / 0.6) 55%, rgb(243 241 236 / 0.92)) !important; }
:root[data-theme="light"] .hero-aula.com-arte h3 { color: #17171b !important; }
:root[data-theme="light"] .hero-aula.com-arte .ha-rot { color: #5f5b53 !important; }
@media (prefers-color-scheme: light) {
:root:not([data-theme="dark"]) .sistema-item.com-arte, :root:not([data-theme="dark"]) .sistema-item.com-arte:hover, :root:not([data-theme="dark"]) .sistema-item.com-arte.ativo { background-color: #f3f1ec !important; background-image: url(avatares/hero-vera-claro.jpg), url(avatares/hero-vera.jpg) !important; }
:root:not([data-theme="dark"]) .sistema-item.com-arte.faixa-oraculo, :root:not([data-theme="dark"]) .sistema-item.com-arte.faixa-oraculo:hover, :root:not([data-theme="dark"]) .sistema-item.com-arte.faixa-oraculo.ativo { background-image: url(avatares/hero-aula-claro.jpg), url(avatares/hero-aula.jpg) !important; }
:root:not([data-theme="dark"]) .sistema-item.com-arte.faixa-curta::before, :root:not([data-theme="dark"]) .sistema-item.com-arte::before { background: linear-gradient(90deg, transparent 18%, rgb(243 241 236 / 0.82) 44%, rgb(243 241 236 / 0.97) 70%) !important; }
:root:not([data-theme="dark"]) .sistema-item.com-arte .sis-txt b { color: #17171b !important; }
:root:not([data-theme="dark"]) .sistema-item.com-arte .sis-rot { color: #5f5b53 !important; }
:root:not([data-theme="dark"]) .sistema-item.com-arte > .ic { color: #8a867f !important; }
:root:not([data-theme="dark"]) .hero-moldura > .hero-aula { background-color: #f3f1ec !important; }
:root:not([data-theme="dark"]) .hero-aula.com-arte::after { background: linear-gradient(90deg, transparent 30%, rgb(243 241 236 / 0.6) 55%, rgb(243 241 236 / 0.92)) !important; }
:root:not([data-theme="dark"]) .hero-aula.com-arte h3 { color: #17171b !important; }
:root:not([data-theme="dark"]) .hero-aula.com-arte .ha-rot { color: #5f5b53 !important; }
}


/* ================= 29/11 · lateral em duas caixas: Squad em cima, Projetos embaixo ================= */
.lateral.lateral-dupla { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; gap: 12px; overflow: visible; }
.lateral.lateral-dupla:not(.recolhida) > .lateral-squad, .lateral.lateral-dupla:not(.recolhida) > .lateral-projetos { display: flex; flex-direction: column; min-height: 0; }
.lateral-squad { flex: none; max-height: 62%; overflow: auto; scrollbar-width: thin; }
.lateral-projetos { flex: 1 1 auto; min-height: 140px; }
.lateral-squad > .caixa-squad { margin: 0 !important; background: transparent !important; box-shadow: none !important; border: 0 !important; }
.lateral.lateral-dupla.recolhida { background: var(--color-surface) !important; border: 1px solid var(--color-line) !important; }
.lateral.lateral-dupla.recolhida > section { display: none !important; }
/* 29/11 · faixa ativa: o véu sobre a foto acompanha o arredondamento (sem canto seco); no claro, a borda tem 1px a mais */
.sistema-item.com-arte::before { border-radius: inherit !important; }
:root[data-theme="light"] .caixa-squad .sistema-item.com-arte.ativo::after { padding: 3px !important; inset: -3px !important; border-radius: calc(var(--r3, 10px) + 3px) !important; }
.lateral-squad > .caixa-squad { --m: 14px; display: flex !important; flex-direction: column; gap: var(--m) !important; padding: var(--m) !important; }

/* 29/11 · status do sistema: abrir os detalhes não muda a largura; tudo dentro do mesmo card, sem setinha */
#visaoProjeto .vp-recolhido { border: 1px solid var(--color-line); border-radius: var(--r2, 12px); background: rgb(var(--ink-rgb) / 0.03); overflow: hidden; }
#visaoProjeto .vp-recolhido > summary { border: 0 !important; background: transparent !important; border-radius: 0 !important; margin: 0 !important; cursor: pointer; }
#visaoProjeto .vp-recolhido > summary::before, #visaoProjeto .vp-recolhido > summary::after { content: none !important; display: none !important; }
#visaoProjeto .vp-recolhido > summary > span { font-size: 0 !important; }
#visaoProjeto .vp-recolhido > summary > span::after { content: "ver detalhes"; font: 400 9.5px var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; }
#visaoProjeto .vp-recolhido[open] > summary > span::after { content: "esconder"; }
#visaoProjeto .vp-recolhido > .vp-bloco { margin: 0 !important; border: 0 !important; border-top: 1px dashed var(--color-line-soft) !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; padding: 14px 16px 16px !important; }
#visaoProjeto .vp-recolhido > .vp-bloco > .md-h { display: none; }
:root[data-theme="dark"] #visaoProjeto .vp-recolhido { border-color: rgb(240 236 228 / 0.15); }
#visaoProjeto .vp-recolhido, #visaoProjeto .vp-recolhido-linha { display: block; width: 100% !important; max-width: none !important; box-sizing: border-box; align-self: stretch; } #visaoProjeto .vp-recolhido-linha { display: flex !important; }
/* o conteúdo dos detalhes (campo do token, botões) não pode alargar a coluna */ .coluna.viewport, .coluna.viewport .painel, #visaoProjeto { min-width: 0 !important; } #visaoProjeto .vp-recolhido * { min-width: 0; max-width: 100%; } #visaoProjeto .vp-token { display: flex; flex-wrap: wrap; gap: 8px; } #visaoProjeto .vp-token input { flex: 1 1 140px; min-width: 0; } #visaoProjeto .vp-passos li { overflow-wrap: anywhere; } #visaoProjeto .vp-passos .k-btn { white-space: normal; }
.coluna.viewport .painel { scrollbar-gutter: stable; } /* abrir/fechar detalhes não muda a largura */

/* 29/11 · com as imagens claras de verdade, o véu do modo claro fica bem leve */
:root[data-theme="light"] .sistema-item.com-arte.faixa-curta::before, :root[data-theme="light"] .sistema-item.com-arte::before { background: linear-gradient(90deg, transparent 30%, rgb(243 241 236 / 0.35) 50%, rgb(243 241 236 / 0.6) 75%) !important; }
:root[data-theme="light"] .sistema-item.com-arte, :root[data-theme="light"] .sistema-item.com-arte:hover, :root[data-theme="light"] .sistema-item.com-arte.ativo { background-color: #efebe4 !important; }
:root[data-theme="light"] .hero-aula.com-arte::after { background: linear-gradient(90deg, transparent 35%, rgb(243 241 236 / 0.25) 60%, rgb(243 241 236 / 0.45)) !important; }
@media (prefers-color-scheme: light) {
:root:not([data-theme="dark"]) .sistema-item.com-arte.faixa-curta::before, :root:not([data-theme="dark"]) .sistema-item.com-arte::before { background: linear-gradient(90deg, transparent 30%, rgb(243 241 236 / 0.35) 50%, rgb(243 241 236 / 0.6) 75%) !important; }
:root:not([data-theme="dark"]) .sistema-item.com-arte, :root:not([data-theme="dark"]) .sistema-item.com-arte:hover, :root:not([data-theme="dark"]) .sistema-item.com-arte.ativo { background-color: #efebe4 !important; }
:root:not([data-theme="dark"]) .hero-aula.com-arte::after { background: linear-gradient(90deg, transparent 35%, rgb(243 241 236 / 0.25) 60%, rgb(243 241 236 / 0.45)) !important; }
}
.lateral-squad { scrollbar-width: none; } .lateral-squad::-webkit-scrollbar { width: 0; height: 0; } /* rola com a roda do mouse, sem barra empurrando o conteúdo */

/* ================= 29/11 · projeto aberto = o MESMO card que cresce: título no topo igual ao fechado, seções dentro como itens leves ================= */
.projetos > .projeto.aberto { padding: 0 !important; gap: 0 !important; border-radius: var(--r3, 10px) !important; background: var(--color-surface) !important;
  box-shadow: 0 0 0 1px var(--color-line), 0 4px 12px rgb(23 23 27 / 0.06) !important; overflow: hidden; }
.projetos > .projeto.aberto > .projeto-linha { background: transparent !important; box-shadow: none !important; border-radius: 0 !important; }
.projetos > .projeto.aberto > .secoes { display: flex !important; flex-direction: column; gap: 2px !important; padding: 4px 8px 10px 8px !important; border-top: 1px solid var(--color-line-soft) !important; }
.projeto.aberto .secoes > .secao-linha { height: 38px !important; background: transparent !important; box-shadow: none !important; border-radius: 8px !important; padding-right: 2px !important; }
.projeto.aberto .secoes > .secao-linha:hover { background: rgb(var(--ink-rgb) / 0.05) !important; }
.projeto.aberto .secoes > .secao-linha:has(.secao.ativa) { background: rgb(var(--accent-rgb) / 0.12) !important; box-shadow: none !important; }
.projeto.aberto .secoes > .secao-linha > .secao { padding: 0 8px 0 26px !important; font-size: 13.5px; }
.projeto.aberto .secoes > .linha-nova { margin: 6px 0 0 18px !important; }
:root[data-theme="dark"] .projetos > .projeto.aberto { background: #1d1f23 !important; box-shadow: 0 0 0 1px rgb(240 236 228 / 0.15), 0 10px 28px rgb(0 0 0 / 0.3) !important; }
:root[data-theme="dark"] .projeto.aberto .secoes > .secao-linha, :root[data-theme="dark"] .projeto.aberto .secoes > .secao-linha:not(:has(.secao.ativa)) { background: transparent !important; box-shadow: none !important; }
:root[data-theme="dark"] .projeto.aberto .secoes > .secao-linha:has(.secao.ativa) { background: rgb(var(--accent-rgb) / 0.14) !important; box-shadow: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .projetos > .projeto.aberto { background: #1d1f23 !important; box-shadow: 0 0 0 1px rgb(240 236 228 / 0.15), 0 10px 28px rgb(0 0 0 / 0.3) !important; }
  :root:not([data-theme="light"]) .projeto.aberto .secoes > .secao-linha { background: transparent !important; box-shadow: none !important; }
  :root:not([data-theme="light"]) .projeto.aberto .secoes > .secao-linha:has(.secao.ativa) { background: rgb(var(--accent-rgb) / 0.14) !important; }
}


/* ================= 29/11 · alça (⋮⋮) para reordenar projetos e seções ================= */
.alca-ordem { flex: none; display: grid; place-items: center; width: 18px; height: 28px; margin-left: 2px; padding: 0; border: 0; border-radius: 6px; background: transparent;
  color: var(--color-faint); cursor: grab; opacity: 0; transition: opacity 0.15s, background 0.15s; touch-action: none; }
.projeto-linha:hover > .alca-ordem, .secao-linha:hover > .alca-ordem, .alca-ordem:focus-visible { opacity: 0.8; }
.alca-ordem:hover { background: rgb(var(--ink-rgb) / 0.07); opacity: 1 !important; color: var(--color-ink); }
.alca-ordem:active, body.reordenando-lista .alca-ordem { cursor: grabbing; }
.projetos > .projeto > .projeto-linha { padding-left: 2px !important; }
.projeto.aberto .secoes > .secao-linha > .alca-ordem { margin-left: 4px; }
.projeto.aberto .secoes > .secao-linha > .secao { padding-left: 6px !important; }
.reordenando { position: relative; z-index: 20; opacity: 0.92; box-shadow: 0 14px 34px rgb(0 0 0 / 0.25) !important; transition: none !important; }
body.reordenando-lista { cursor: grabbing; user-select: none; }
.poe-antes { box-shadow: 0 -3px 0 0 var(--color-accent) !important; }
.poe-depois { box-shadow: 0 3px 0 0 var(--color-accent) !important; }
/* 29/11 · a linha da fala do agente termina sumindo (no último bloco antes de outra coisa) */ .mensagens > .do-agente:not(:has(+ .do-agente))::before { background: linear-gradient(to bottom, var(--color-line) 0%, var(--color-line) 40%, transparent 100%) !important; }
/* 29/11 · olhinho: o nome do projeto também some (na lista, no topo, no rótulo da conversa e no campo) */
.projeto.oculto .projeto-nome .nome { filter: blur(6px); user-select: none; }
body.projeto-oculto #trilha, body.projeto-oculto [data-ctx], body.projeto-oculto .ctx-rotulo, body.projeto-oculto #missaoViva, body.projeto-oculto .missao-faixa { filter: blur(7px); user-select: none; }
body.projeto-oculto .campo-texto::placeholder { color: transparent; }
/* 29/11 · laterais: mesma margem do chat (≈20px da borda) nas caixas da Squad e de Projetos */
.lateral-squad > .caixa-squad { padding-left: 20px !important; padding-right: 20px !important; }
.lateral-projetos .projetos { padding-left: 20px !important; padding-right: 14px !important; }
.lateral-projetos .lateral-topo { padding-left: 20px !important; padding-right: 20px !important; }
/* 29/11 · caixa da squad: só a borda do card de fora (o contorno antigo de dentro fazia uma borda dupla com cantos diferentes) */ :root .lateral .lateral-squad > .caixa-squad { box-shadow: none !important; border: 0 !important; background: transparent !important; border-radius: 0 !important; }
#lateralSquad > #vitrineSquad { box-shadow: none !important; border: 0 !important; background: transparent !important; border-radius: 0 !important; }
.squad-cab .recolher { margin-left: auto; }

/* 29/11 · partículas laranja no card em trabalho */
.com-particulas { position: relative; isolation: isolate; }
.com-particulas > canvas.particulas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; border-radius: inherit; opacity: 0.9; }
.com-particulas > :not(canvas) { position: relative; z-index: 1; }
.projetos > .projeto > .projeto-linha.com-particulas { box-shadow: 0 0 0 1px rgb(217 119 87 / 0.35), 0 0 18px rgb(217 119 87 / 0.12) !important; }

/* ================= 29/11 · sem cor por agente: tudo na paleta base do sistema =================
   A cor de cada agente vinha em --ag/--ag-rgb (no estilo de cada elemento). !important aqui vence o estilo da linha. */
:root, :root * { --ag: rgb(var(--ink-rgb) / 0.28) !important; --ag-rgb: var(--ink-rgb) !important; }
.cartao-agente .ca-papel, .ag-card-papel, .quem-papel, .fala-papel { color: var(--color-faint) !important; }
.cartao-agente .ca-papel { background: rgb(var(--ink-rgb) / 0.06) !important; border-color: var(--color-line) !important; }
.cartao-agente::before, .cartao-agente .ca-topo::before { background: var(--color-line) !important; }
/* 29/11 · arrastar com feedback: os outros deslizam, o da mão fica sólido e em destaque */
.abre-espaco { transition: transform 0.18s var(--ease) !important; }
.reordenando { opacity: 1 !important; z-index: 30 !important; transition: none !important; }
.projetos > .projeto.reordenando > .projeto-linha, .secao-linha.reordenando { box-shadow: 0 0 0 1.5px var(--color-accent), 0 18px 40px rgb(0 0 0 / 0.35) !important; background: var(--color-surface) !important; }
:root[data-theme="dark"] .projetos > .projeto.reordenando > .projeto-linha, :root[data-theme="dark"] .secao-linha.reordenando { background: #24272c !important; }

/* 29/11 · "time · 9" com o spinner colado no texto (antes ficava solto no meio) e a seta na ponta */
.caixa-squad .vs-time-linha .squad-time { justify-content: flex-start !important; gap: 8px; }
.caixa-squad .vs-time-linha .squad-time > .ic:last-child { margin-left: auto; }
/* busca de projetos no padrão dos cards: 52px, mesmo raio, mesma margem lateral (20px) */
.lateral-projetos .busca { margin: 0 20px 14px !important; height: 52px; padding: 0 8px 0 14px !important; border-radius: var(--r3, 10px) !important; box-sizing: border-box; }
.lateral-projetos .busca .k-input { height: 100%; }
.rr-extra.rr-resposta { border-style: solid; padding: 9px 12px; font-size: 13.5px; } /* pergunta aberta: o campo é a resposta */
.com-particulas > canvas.particulas { image-rendering: pixelated; opacity: 1 !important; }

/* 29/11 · sem a tarjinha cinza ("aula da squad", "projeto X, seção Y", "missão M-n") nas suas mensagens */
.msg.voce > .tag, .msg.voce .tag.aula-tag, .msg.voce .tag.missao-tag { display: none !important; }
/* horário e copiar em cada mensagem: discretos, aparecem mais ao passar o mouse */
.msg-meta { display: flex; align-items: center; gap: 6px; margin-top: 6px; font: 400 10px var(--font-mono); letter-spacing: 0.04em; color: var(--color-faint); opacity: 0.55; transition: opacity 0.15s; }
.msg.voce .msg-meta { justify-content: flex-end; }
.msg:hover > .msg-meta { opacity: 1; }
.msg-copiar { display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--color-faint); cursor: pointer; }
.msg-copiar:hover { background: rgb(var(--ink-rgb) / 0.07); color: var(--color-ink); }
.msg-copiar.ok { color: var(--color-accent); }
/* 29/11 · conversa: fotos sem sombra nem borda; linha da fala com 1px */
.mensagens .fala-cab .ag-av, .mensagens .fala-cab .ag-av img, .mensagens .bastidor-cab .ag-av, .mensagens .bastidor-cab .ag-av img,
.mensagens .bloco-av .ag-av, .mensagens .bloco-av .ag-av img, .mensagens .ap-pilula .ag-av, .mensagens .ap-pilula .ag-av img { box-shadow: none !important; border: 0 !important; outline: 0 !important; }
.mensagens > .do-agente::before { width: 1px !important; border-radius: 0 !important; }
/* 29/11 · nas conversas as fotos são redondas (no resto do Hub continuam quadradas com canto suave) */
.mensagens .ag-av, .mensagens .ag-av img, .mensagens .lm-rosto { border-radius: 50% !important; --raio: 50% !important; }
/* 29/11 · projeto aberto: as partículas terminam num degradê transparente e não há linha entre o projeto e as seções */
.projetos > .projeto.aberto > .projeto-linha > canvas.particulas { -webkit-mask-image: linear-gradient(to bottom, #000 35%, transparent 100%); mask-image: linear-gradient(to bottom, #000 35%, transparent 100%); }
.projetos > .projeto.aberto > .secoes { border-top: 0 !important; }

/* ================= 29/11 · revisão: etapas ligadas num card só ================= */
.ck-grupo { display: flex; flex-direction: column; gap: 0; padding: 0 !important; overflow: hidden; border-radius: var(--r2, 12px) !important; border: 1px solid var(--color-line) !important; background: var(--color-surface) !important; }
.ckg-cab { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 10px; }
.ckg-tit { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.ckg-tit code { flex: none; font: 500 10.5px var(--font-mono); color: #d97757; background: none; padding: 0; }
.ckg-tit b { font-weight: 500; font-size: 13.5px; line-height: 1.35; color: var(--color-ink); }
.ckg-n { display: inline-flex; align-items: center; gap: 5px; font: 400 10px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-faint); }
.ckg-itens { display: flex; flex-direction: column; border-top: 1px solid var(--color-line-soft); }
.ckg-itens > .card-k.ck-ligado { margin: 0 !important; border: 0 !important; border-left: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: transparent !important;
  padding: 10px 14px !important; border-bottom: 1px solid var(--color-line-soft) !important; cursor: pointer; }
.ckg-itens > .card-k.ck-ligado:hover { background: rgb(var(--ink-rgb) / 0.03) !important; }
.ckg-itens > .card-k.ck-ligado p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 4px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--color-muted); }
.ckg-itens > .card-k.ck-ligado .ck-nav { display: none !important; }
.ckg-itens > .card-k.ck-ligado .ck-missao { display: none; }
.ckg-acoes { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 12px; }
.ckg-aprovar { width: 100%; justify-content: center; }
.ckg-sec { display: flex; justify-content: space-between; gap: 8px; }
.ckg-link { padding: 4px 2px; border: 0; background: none; font: 400 10px var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-muted); cursor: pointer; }
.ckg-link:hover { color: var(--color-ink); text-decoration: underline; text-underline-offset: 3px; }
.ckg-cancelar:hover { color: var(--color-alert-fg, #c2410c); }
/* 29/11 · seções: uma camada só de destaque (a linha) e margens alinhadas com o título do projeto */
.projetos > .projeto.aberto > .secoes { padding: 2px 12px 12px 12px !important; gap: 4px !important; }
.projeto.aberto .secoes > .secao-linha > .secao, .projeto.aberto .secoes > .secao-linha > .secao.ativa, .projeto.aberto .secoes > .secao-linha > .secao:hover { background: transparent !important; box-shadow: none !important; border: 0 !important; }
.projeto.aberto .secoes > .secao-linha:has(.secao.ativa) .secao { color: var(--color-accent) !important; font-weight: 500; }
.projeto.aberto .secoes > .secao-linha > .menu-gatilho { margin-right: 2px; }
.projeto.aberto .secoes > .linha-nova { margin: 8px 0 0 4px !important; }
/* 29/11 · modo claro: o título do projeto aberto faz parte do card (sem card dentro do card) */
:root[data-theme="light"] .projetos > .projeto.aberto > .projeto-linha { box-shadow: none !important; background: transparent !important; }
:root[data-theme="light"] .projetos > .projeto.aberto { background: #fff !important; box-shadow: 0 0 0 1px rgb(23 23 27 / 0.10), 0 4px 12px rgb(23 23 27 / 0.06) !important; }
:root[data-theme="light"] .projeto.aberto .secoes > .secao-linha:has(.secao.ativa) { background: rgb(var(--accent-rgb) / 0.10) !important; }
:root[data-theme="light"] .ck-grupo { background: #fff !important; box-shadow: 0 4px 12px rgb(23 23 27 / 0.05); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .projetos > .projeto.aberto > .projeto-linha { box-shadow: none !important; background: transparent !important; }
  :root:not([data-theme="dark"]) .projetos > .projeto.aberto { background: #fff !important; box-shadow: 0 0 0 1px rgb(23 23 27 / 0.10), 0 4px 12px rgb(23 23 27 / 0.06) !important; }
  :root:not([data-theme="dark"]) .ck-grupo { background: #fff !important; }
}
/* 29/11 · Vera e Oráculo trabalhando: partículas a 50% só na parte escura, como se passassem por trás da foto */
.sistema-item.com-arte > canvas.particulas { z-index: 1; -webkit-mask-image: linear-gradient(90deg, transparent 0, transparent 34%, #000 52%); mask-image: linear-gradient(90deg, transparent 0, transparent 34%, #000 52%); border-radius: inherit; }
.sistema-item.com-arte.com-particulas > .sis-txt, .sistema-item.com-arte.com-particulas > .ic { z-index: 2; }
/* 29/11 · faixas da Vera e do Oráculo: a foto cobre o card inteiro (sem o corte seco onde a imagem acabava), claro e escuro */
.caixa-squad .squad-pilha .sistema-item.com-arte.faixa-curta, .caixa-squad .squad-pilha .sistema-item.com-arte.faixa-curta:hover, .caixa-squad .squad-pilha .sistema-item.com-arte.faixa-curta.ativo { background-size: cover !important; background-position: left 28% !important; }
/* 29/11 · projeto aberto em trabalho: sem a "linha" (o contorno laranja vai para o card inteiro) e as partículas descem 50% além do título, sumindo */
.projetos > .projeto.aberto > .projeto-linha.com-particulas { box-shadow: none !important; overflow: visible !important; }
.projetos > .projeto.aberto:has(> .projeto-linha.com-particulas) { box-shadow: 0 0 0 1px rgb(217 119 87 / 0.35), 0 0 18px rgb(217 119 87 / 0.12) !important; }
.projetos > .projeto.aberto > .projeto-linha > canvas.particulas { inset: 0 0 auto 0 !important; height: 150% !important;
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 100%) !important; mask-image: linear-gradient(to bottom, #000 40%, transparent 100%) !important; }
.projetos > .projeto.aberto > .secoes { position: relative; z-index: 1; }
/* 29/11 · faixas Vera/Oráculo: o véu que protege o texto cobre só a área do texto (a partir de ~40%), não a foto — claro e escuro */
.caixa-squad .squad-pilha .sistema-item.com-arte.faixa-curta::before { background: linear-gradient(90deg, transparent 0, transparent 36%, rgb(24 25 28 / 0.9) 44%, rgb(24 25 28 / 0.94) 100%) !important; opacity: 1 !important; }
:root[data-theme="light"] .caixa-squad .squad-pilha .sistema-item.com-arte.faixa-curta::before { background: linear-gradient(90deg, transparent 0, transparent 36%, rgb(243 241 236 / 0.88) 44%, rgb(243 241 236 / 0.94) 100%) !important; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .caixa-squad .squad-pilha .sistema-item.com-arte.faixa-curta::before { background: linear-gradient(90deg, transparent 0, transparent 36%, rgb(243 241 236 / 0.88) 44%, rgb(243 241 236 / 0.94) 100%) !important; } }

/* Lia, assistente pessoal: faixa fixa abaixo do Oráculo (29/11). No claro, a arte clara dela (feita no ChatGPT do Filipe). */
.sistema-item.com-arte.faixa-lia, .sistema-item.com-arte.faixa-lia:hover, .sistema-item.com-arte.faixa-lia.ativo { background-image: url(avatares/hero-lia.jpg) !important; }
:root[data-theme="light"] .sistema-item.com-arte.faixa-lia, :root[data-theme="light"] .sistema-item.com-arte.faixa-lia:hover, :root[data-theme="light"] .sistema-item.com-arte.faixa-lia.ativo,
:root:not([data-theme="dark"]) .sistema-item.com-arte.faixa-lia, :root:not([data-theme="dark"]) .sistema-item.com-arte.faixa-lia:hover, :root:not([data-theme="dark"]) .sistema-item.com-arte.faixa-lia.ativo { background-image: url(avatares/hero-lia-claro.jpg), url(avatares/hero-lia.jpg) !important; }

/* Vera e Lia com o mesmo zoom e posição do Oráculo na caixa da squad: rosto do mesmo tamanho, olhos na mesma linha (29/11) */
.caixa-squad .squad-pilha .sistema-item.com-arte.faixa-curta.faixa-vera, .caixa-squad .squad-pilha .sistema-item.com-arte.faixa-curta.faixa-vera:hover, .caixa-squad .squad-pilha .sistema-item.com-arte.faixa-curta.faixa-vera.ativo { background-size: 140% auto !important; background-position: 8% 17% !important; }
.caixa-squad .squad-pilha .sistema-item.com-arte.faixa-curta.faixa-lia, .caixa-squad .squad-pilha .sistema-item.com-arte.faixa-curta.faixa-lia:hover, .caixa-squad .squad-pilha .sistema-item.com-arte.faixa-curta.faixa-lia.ativo { background-size: 140% auto !important; background-position: 0% 16% !important; }
/* no claro as artes da Vera e da Lia já vêm com o rosto maior: menos zoom para casar com o Oráculo */
:root[data-theme="light"] .caixa-squad .squad-pilha .sistema-item.com-arte.faixa-curta:is(.faixa-vera, .faixa-lia):is(*, :hover, .ativo),
:root:not([data-theme="dark"]) .caixa-squad .squad-pilha .sistema-item.com-arte.faixa-curta:is(.faixa-vera, .faixa-lia):is(*, :hover, .ativo) { background-size: 112% auto !important; background-position: 6% 20% !important; }

/* PIN das conversas privadas (Lia e Oráculo) (29/11) */
.dialogo-pin { width: min(380px, calc(100vw - 32px)); }
.dialogo-pin .dp-form { display: flex; flex-direction: column; gap: 14px; }
.dialogo-pin .dp-cab { display: flex; align-items: center; gap: 12px; }
.dialogo-pin .dp-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: var(--color-ink); background: rgb(var(--ink-rgb) / 0.07); }
.dialogo-pin h3 { margin: 0; font: 400 20px/1.2 var(--font-serif, 'Newsreader', serif); color: var(--color-ink); }
.dialogo-pin .dp-cab p { margin: 3px 0 0; font-size: 12.5px; color: var(--color-faint); }
.dialogo-pin .dp-pin { text-align: center; font: 500 22px var(--font-mono); letter-spacing: 0.5em; padding: 10px 12px; }
.dialogo-pin .dp-pin::placeholder { font: 400 13px var(--font-sans, inherit); letter-spacing: 0; }
.dialogo-pin .dp-erro { margin: -4px 0 0; font-size: 12.5px; color: var(--color-alert-fg, #e5484d); text-align: center; }
.dialogo-pin .dp-acoes { display: flex; justify-content: flex-end; gap: 10px; }
.chat-trancado { align-items: center; text-align: center; gap: 8px; }
.chat-trancado > .ic { color: var(--color-faint); }

/* PIN, versão final (29/11): só o cadeado e as 6 caixas; a tela inteira some atrás; sem texto e sem saída */
.dialogo-pin { width: auto; max-width: none; padding: 28px 30px 30px; border: 1px solid var(--color-line); border-radius: 20px; background: var(--color-surface, #1f2023); color: var(--color-ink);
  display: flex; flex-direction: column; align-items: center; gap: 20px; box-shadow: 0 30px 80px rgb(0 0 0 / 0.45); }
.dialogo-pin:not([open]) { display: none; }
.dialogo-pin::backdrop { background: rgb(14 15 17 / 0.92); backdrop-filter: blur(24px) saturate(0.6); }
:root[data-theme="light"] .dialogo-pin::backdrop { background: rgb(236 233 226 / 0.94); }
.dialogo-pin .dp-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: var(--color-ink); background: rgb(var(--ink-rgb) / 0.07); }
.dialogo-pin .dp-caixas { display: flex; gap: 10px; }
.dialogo-pin .dp-caixas input { width: 46px; height: 56px; padding: 0; text-align: center; font: 500 24px var(--font-mono); color: var(--color-ink); caret-color: #d97757;
  background: var(--color-bg, #18191c); border: 1px solid var(--color-line); border-radius: 12px; outline: none; transition: border-color 0.15s, box-shadow 0.15s; }
.dialogo-pin .dp-caixas input:focus { border-color: rgb(217 119 87 / 0.7); box-shadow: 0 0 0 3px rgb(217 119 87 / 0.15); }
.dialogo-pin .dp-caixas input:disabled { opacity: 0.6; }
.dialogo-pin.errou .dp-caixas { animation: pin-errou 0.36s var(--ease, ease); }
.dialogo-pin.errou .dp-caixas input { border-color: rgb(229 72 77 / 0.7); }
@keyframes pin-errou { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
dialog.dialogo-pin { width: fit-content !important; min-width: 0 !important; max-width: calc(100vw - 32px) !important; margin: auto !important; inset: 0 !important; height: fit-content !important; }

/* PIN no padrão de skwadra.com.br/entrar (30/11): sem caixa, sem texto; fundo quase preto com brilho no centro,
   o cadeado em cima e as 6 casas. Campo de texto com bolinhas (não "senha"), então o Chrome não oferece senhas salvas. */
dialog.dialogo-pin { padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; overflow: visible !important; gap: 26px; }
dialog.dialogo-pin::backdrop { background: rgb(2 2 4) radial-gradient(70% 50% at 50% 42%, rgb(10 10 13), rgb(0 0 0 / 0) 70%) !important; backdrop-filter: none !important; }
.dialogo-pin .dp-ic { width: auto; height: auto; border-radius: 0; background: none !important; color: #f0ece4; }
.dialogo-pin .dp-ic .ic { width: 34px; height: 34px; }
.dialogo-pin .dp-caixas input { -webkit-text-security: disc; width: 48px; height: 56px; font: 500 22px var(--font-mono); color: #f0ece4; caret-color: #d97757;
  background: rgb(12 12 16 / 0.86) !important; border: 1px solid rgb(240 236 228 / 0.24) !important; border-radius: 14px; }
.dialogo-pin .dp-caixas input:focus { border-color: rgb(240 236 228 / 0.55) !important; box-shadow: 0 0 0 3px rgb(240 236 228 / 0.08) !important; }
.dialogo-pin.errou .dp-caixas input { border-color: rgb(229 72 77 / 0.75) !important; }
